/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #020617;
  --navy-2: #0F172A;
  --navy-3: #1E293B;
  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F1C40F 100%);
  --emerald: #10B981;
  --magenta: #E91E63;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --border: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 175, 55, 0.2);
  --glass: rgba(15, 23, 42, 0.8);
  --glass-light: rgba(255, 255, 255, 0.03);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --radius: 10px;
  --radius-lg: 24px;
  --font: 'Roboto Condensed', sans-serif;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--navy); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }

/* Premium Utility Classes */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.gold-text { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }

.btn-premium {
  background: var(--gold-gradient);
  color: #000 !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--gold-glow);
}
.btn-premium:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--gold-glow); filter: brightness(1.1); }

/* ========== TYPOGRAPHY ========== */
h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem,3vw,2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-secondary); }
a { text-decoration: none; color: inherit; }
.gradient-text { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ========== LAYOUT ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-family: var(--font); font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-primary { background: linear-gradient(135deg, var(--blue-light), var(--blue-accent)); color: #fff; box-shadow: 0 4px 15px rgba(37,99,235,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.5); }
.btn-secondary { background: var(--glass); color: var(--text-primary); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.15); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); }
.btn-outline { background: transparent; color: var(--blue-accent); border: 1px solid var(--blue-accent); }
.btn-outline:hover { background: var(--blue-accent); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gold-light); }
.btn-gold { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--navy); box-shadow: 0 4px 15px rgba(212,175,55,0.3); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,175,55,0.4); }
.btn-success { background: var(--emerald); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ========== HEADER ========== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: var(--transition); }
.site-header.scrolled { background: rgba(10,14,26,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 12px 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; }
.logo-icon { color: var(--gold); font-size: 1.5rem; }
.logo-highlight { color: var(--gold); }
.nav-links { display: flex; list-style: none; gap: 8px; margin-left: auto; }
.nav-links a { padding: 8px 16px; border-radius: 8px; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--text-primary); background: var(--glass); }
.nav-actions { display: flex; gap: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ========== FORMS ========== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.form-control { width: 100%; padding: 12px 16px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-family: var(--font); font-size: 0.95rem; transition: var(--transition); outline: none; }
.form-control:focus { border-color: var(--blue-accent); background: rgba(59,130,246,0.05); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--navy-2); color: var(--text-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--red); margin-top: 4px; display: none; }
.form-control.error { border-color: var(--red); }

/* ========== CARDS ========== */
.card { background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: var(--transition); }
.card:hover { border-color: rgba(255,255,255,0.12); box-shadow: var(--shadow); }
.card-gold { border-color: var(--border-gold); box-shadow: var(--shadow-gold); }

/* ========== BADGES / TAGS ========== */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.badge-blue { background: rgba(37,99,235,0.15); color: var(--blue-accent); border: 1px solid rgba(37,99,235,0.3); }
.badge-gold { background: rgba(212,175,55,0.15); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-green { background: rgba(5,150,105,0.15); color: #34D399; border: 1px solid rgba(5,150,105,0.3); }
.badge-red { background: rgba(220,38,38,0.15); color: #F87171; border: 1px solid rgba(220,38,38,0.3); }
.badge-orange { background: rgba(217,119,6,0.15); color: #FBBF24; border: 1px solid rgba(217,119,6,0.3); }
.badge-gray { background: rgba(100,116,139,0.15); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.2); }

/* ========== SECTION HEADERS ========== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; padding: 6px 18px; background: rgba(212,175,55,0.1); border: 1px solid var(--border-gold); border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-bottom: 16px; }
.section-title { margin-bottom: 16px; }
.section-desc { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ========== TABLE ========== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.data-table tr:hover td { background: var(--glass); }
.data-table tr:last-child td { border-bottom: none; }

/* ========== SIDEBAR LAYOUT ========== */
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex-shrink: 0; background: var(--navy-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100; overflow-y: auto; }
.sidebar-logo { padding: 24px 20px; border-bottom: 1px solid var(--border); }
.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-section-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0 8px; margin-bottom: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: var(--transition); margin-bottom: 2px; }
.sidebar-link:hover { background: var(--glass); color: var(--text-primary); }
.sidebar-link.active { background: rgba(37,99,235,0.15); color: var(--blue-accent); border: 1px solid rgba(37,99,235,0.2); }
.sidebar-link .link-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-user { padding: 16px 20px; border-top: 1px solid var(--border); }
.main-content { margin-left: 260px; flex: 1; padding: 32px; min-height: 100vh; }
.page-header { margin-bottom: 32px; }
.page-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { color: var(--text-muted); }

/* ========== STATS GRID ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.stat-card-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.stat-card-value { font-size: 2rem; font-weight: 800; }
.stat-card-change { font-size: 0.8rem; margin-top: 4px; }

/* ========== ALERTS ========== */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #93C5FD; }
.alert-success { background: rgba(5,150,105,0.1); border: 1px solid rgba(5,150,105,0.3); color: #6EE7B7; }
.alert-warning { background: rgba(217,119,6,0.1); border: 1px solid rgba(217,119,6,0.3); color: #FCD34D; }
.alert-error { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.3); color: #FCA5A5; }

/* ========== MODAL ========== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--navy-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; padding: 0; line-height: 1; }
.modal-close:hover { color: var(--text-primary); }

/* ========== TABS ========== */
.tabs { display: flex; gap: 4px; background: var(--glass); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.tab-btn { flex: 1; padding: 10px 16px; border-radius: 8px; border: none; background: transparent; color: var(--text-secondary); font-family: var(--font); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.tab-btn.active { background: var(--navy-3); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* ========== PROGRESS ========== */
.progress-bar { height: 6px; background: var(--glass); border-radius: 50px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--blue-light), var(--blue-accent)); transition: width 0.6s ease; }
.progress-fill.gold { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.progress-fill.green { background: var(--emerald); }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy-2); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-green { color: #34D399; }
.text-red { color: #F87171; }
.text-muted { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-2); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav-actions.open { display: flex; padding: 0 16px 16px; background: var(--navy-2); gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
