/* =============================================
   InsightFinances - Global Stylesheet
   Color Palette:
     Navy:  #0B2447
     Gold:  #C8902A
   ============================================= */

:root {
  --navy:       #0B2447;
  --navy-light: #163563;
  --navy-dark:  #071836;
  --gold:       #C8902A;
  --gold-light: #e0a83d;
  --gold-dark:  #a97020;
  --white:      #ffffff;
  --off-white:  #f4f7fb;
  --gray-100:   #f1f4f9;
  --gray-200:   #e4eaf2;
  --gray-400:   #9bacc2;
  --gray-600:   #5a6e88;
  --gray-800:   #2e3f55;
  --text:       #1e2d42;
  --danger:     #dc3545;
  --success:    #28a745;
  --warning:    #ffc107;
  --info:       #17a2b8;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 20px rgba(11,36,71,.12);
  --shadow-lg:  0 8px 40px rgba(11,36,71,.18);
  --transition: all .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

/* ---- Container ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ NAVIGATION ============ */
.navbar {
  background: var(--navy);
  position: sticky; top: var(--sal-h, 0px); z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1200px; margin: 0 auto;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 800; color: var(--white);
  letter-spacing: -.5px;
}
.navbar-brand span { color: var(--gold); }
.navbar-brand .logo-icon {
  width: 38px; height: 38px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--navy);
}
.navbar-links { display: flex; align-items: center; gap: 30px; }
.navbar-links a { color: #c0d0e4; font-size: 14px; font-weight: 500; position: relative; }
.navbar-links a:hover { color: var(--gold); }
.navbar-links a.active { color: var(--gold); }
.navbar-links a.active::after { content:''; position:absolute; bottom:-4px; left:0; right:0; height:2px; background:var(--gold); border-radius:2px; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
/* Mobile menu — hidden by default on ALL screen sizes */
.mobile-menu { display: none; }
.hamburger {
  display: none; flex-direction: column; cursor: pointer; gap: 5px; padding: 4px;
  background: none; border: none; outline: none;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; display: block; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius); border: 2px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: 50px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 8px; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control, .form-input {
  display: block; width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px; color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}
.form-control:focus, .form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,144,42,.15); }
.form-control::placeholder, .form-input::placeholder { color: var(--gray-400); }
.form-control.is-invalid, .form-input.is-invalid { border-color: var(--danger); }
.form-control.is-valid, .form-input.is-valid { border-color: var(--success); }
select.form-control, select.form-input { cursor: pointer; appearance: auto; }
textarea.form-control, textarea.form-input { resize: vertical; min-height: 120px; }
.form-text { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-success { font-size: 12px; color: var(--success); margin-top: 4px; }
/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.alert-success { background: rgba(40,167,69,.1); border: 1px solid rgba(40,167,69,.3); color: #155724; }
.alert-danger  { background: rgba(220,53,69,.1);  border: 1px solid rgba(220,53,69,.3);  color: #721c24; }
.alert-warning { background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.4);  color: #856404; }
.alert-info    { background: rgba(23,162,184,.1); border: 1px solid rgba(23,162,184,.3); color: #0c5460; }

/* Phone input with flag */
.phone-group { display: flex; gap: 8px; }
.phone-code-select {
  width: 130px; flex-shrink: 0;
  padding: 11px 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.phone-code-select:focus { border-color: var(--gold); }
.phone-group .form-control { flex: 1; }

/* Password toggle */
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer; color: var(--gray-400); font-size: 16px;
  transition: var(--transition);
}
.password-toggle:hover { color: var(--gold); }

/* Password Strength */
.strength-bar { height: 4px; border-radius: 4px; background: var(--gray-200); margin-top: 6px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 4px; transition: width .4s ease, background .4s ease; }
.strength-label { font-size: 11px; font-weight: 600; margin-top: 4px; }
.strength-1 { width: 16%; background: var(--danger); }
.strength-2 { width: 33%; background: #ff6b35; }
.strength-3 { width: 50%; background: var(--warning); }
.strength-4 { width: 66%; background: #7cb518; }
.strength-5 { width: 83%; background: var(--success); }
.strength-6 { width: 100%; background: #0f7b3a; }

/* Checkbox */
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--gold);
  cursor: pointer; flex-shrink: 0; margin-top: 2px;
}
.form-check label { font-size: 13px; color: var(--gray-800); cursor: pointer; }

/* ============ AUTH PAGES ============ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  display: flex; flex-direction: column;
}
.auth-container {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 480px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.auth-card-header {
  background: var(--navy); padding: 32px 40px;
  text-align: center;
}
.auth-card-header .logo-text {
  font-size: 1.6rem; font-weight: 800; color: var(--white);
}
.auth-card-header .logo-text span { color: var(--gold); }
.auth-card-header p { color: #a0b4cc; font-size: 13px; margin-top: 6px; }
.auth-card-body { padding: 36px 40px; }
.auth-card-footer { padding: 16px 40px 28px; text-align: center; font-size: 13px; color: var(--gray-600); }
.auth-card-footer a { color: var(--gold); font-weight: 600; }
.auth-divider { text-align: center; margin: 20px 0; font-size: 12px; color: var(--gray-400); position: relative; }
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ============ ALERTS ============ */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; border: 1px solid transparent;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border-color: #ffeeba; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-color: #bee5eb; }

/* ============ LANDING PAGE ============ */
/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1a4a7a 100%);
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 80px 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,144,42,.15); border: 1px solid rgba(200,144,42,.3);
  color: var(--gold-light); padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-subtitle { color: #c0d4ec; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 600px; margin: 0 auto 36px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 56px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--gold); display: block; }
.stat-label { font-size: 13px; color: #a0b8d4; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--navy); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .badge {
  display: inline-block; background: rgba(200,144,42,.12); color: var(--gold);
  padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-alt .section-header h2 { color: var(--white); }
.section-alt .section-header p { color: #a0b8d4; }

/* Feature Cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; border: 2px solid transparent;
  transition: var(--transition); box-shadow: var(--shadow);
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--navy); margin-bottom: 20px;
}
.feature-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { color: var(--gray-600); font-size: 14px; }

/* Domains Grid */
.domains-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.domain-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
  transition: var(--transition); cursor: pointer;
}
.domain-card:hover { background: rgba(200,144,42,.12); border-color: var(--gold); transform: translateY(-3px); }
.domain-card .icon { font-size: 2rem; color: var(--gold); margin-bottom: 14px; }
.domain-card h4 { color: var(--white); font-size: 15px; margin-bottom: 8px; }
.domain-card p { color: #8aa0ba; font-size: 13px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 32px; border: 2px solid var(--gray-200);
  transition: var(--transition); position: relative; overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(200,144,42,.25);
}
.pricing-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: 20px; right: -28px;
  background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700;
  padding: 4px 40px; transform: rotate(45deg); transform-origin: center;
}
.pricing-price { font-size: 2.8rem; font-weight: 800; color: var(--navy); margin: 16px 0 8px; }
.pricing-price span { font-size: 1rem; color: var(--gray-600); font-weight: 400; }
.pricing-features { margin: 20px 0 28px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--gray-800); }
.pricing-features li i { color: var(--success); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px;
}
.testimonial-text { color: #c0d0e4; font-size: 14px; font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy); }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--white); }
.testimonial-role { font-size: 12px; color: #8aa0ba; }

/* Subscribe Section */
.subscribe-section { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); padding: 60px 0; }
.subscribe-form { display: flex; gap: 12px; max-width: 480px; margin: 24px auto 0; flex-wrap: wrap; }
.subscribe-form input {
  flex: 1; min-width: 200px; padding: 12px 18px; border-radius: var(--radius);
  border: none; font-size: 14px; outline: none;
}
.subscribe-form .btn { background: var(--navy); color: var(--white); border-color: var(--navy); }
.subscribe-form .btn:hover { background: var(--navy-light); }

/* Footer */
.footer { background: var(--navy-dark); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.footer-brand .logo-text span { color: var(--gold); }
.footer-brand p { color: #8aa0ba; font-size: 13px; margin-top: 12px; line-height: 1.7; }
.footer-col h5 { color: var(--white); font-size: 14px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #8aa0ba; font-size: 13px; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: #6a7f99; font-size: 13px; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #8aa0ba; font-size: 15px; }
.social-links a:hover { background: var(--gold); color: var(--navy); }

/* ============ DASHBOARD ============ */
.dashboard-layout { display: flex; min-height: 100vh; background: var(--off-white); overflow-x: hidden; }

/* Sidebar */
.sidebar {
  width: 260px; background: var(--navy); flex-shrink: 0;
  display: flex; flex-direction: column;
  position: fixed; top: var(--sal-h, 0px); left: 0; bottom: 0; z-index: 500;
  transition: transform .3s ease;
}
.sidebar.collapsed { transform: translateX(-260px); }
.sidebar-header {
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.sidebar-logo span { color: var(--gold); }
.sidebar-role { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy); font-size: 14px; flex-shrink: 0; }
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info .name { font-size: 13px; font-weight: 600; color: var(--white); }
.sidebar-user-info .email { font-size: 11px; color: var(--gray-400); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 0; }
.nav-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-400); padding: 12px 20px 6px; }
.nav-item a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; color: #a0b4cc;
  font-size: 14px; font-weight: 500; transition: var(--transition);
  border-left: 3px solid transparent;
}
.nav-item a:hover, .nav-item a.active {
  background: rgba(200,144,42,.12); color: var(--gold);
  border-left-color: var(--gold);
}
.nav-item a i { width: 18px; text-align: center; font-size: 15px; }
.nav-badge {
  margin-left: auto; background: var(--danger);
  color: var(--white); font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 50px; min-width: 20px; text-align: center;
}
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.logout-btn { display: flex; align-items: center; gap: 10px; color: #a0b4cc; font-size: 14px; width: 100%; background: none; border: none; cursor: pointer; padding: 8px 0; }
.logout-btn:hover { color: var(--danger); }

/* Main Content */
.main-content { flex: 1; margin-left: 260px; display: flex; flex-direction: column; min-height: 100vh; transition: margin .3s ease; overflow-x: hidden; min-width: 0; }
.main-content.expanded { margin-left: 0; }
.topbar {
  background: var(--white); padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  position: fixed; top: var(--sal-h, 0px); left: 260px; right: 0; z-index: 400;
  transition: left .3s ease;
}
.main-content.expanded .topbar { left: 0; }
.topbar-spacer { height: 66px; flex-shrink: 0; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; }
.sidebar-toggle i { font-size: 18px; color: var(--gray-600); }
.page-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-icon { position: relative; width: 38px; height: 38px; border-radius: 10px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); color: var(--gray-600); }
.topbar-icon:hover { background: var(--gold); color: var(--white); }
.topbar-badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: var(--white); font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }
.page-content { flex: 1; padding: 28px; min-width: 0; }

/* Dashboard Cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; transition: var(--transition); border: 2px solid transparent; min-width: 0; }
.stat-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.stat-card-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-card-icon.gold { background: rgba(200,144,42,.12); color: var(--gold); }
.stat-card-icon.navy { background: rgba(11,36,71,.08); color: var(--navy); }
.stat-card-icon.success { background: rgba(40,167,69,.12); color: var(--success); }
.stat-card-icon.danger { background: rgba(220,53,69,.12); color: var(--danger); }
.stat-card-value { font-size: 1.5rem; font-weight: 800; color: var(--navy); word-break: break-word; min-width: 0; }
.stat-card-label { font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.stat-card-trend { font-size: 12px; margin-top: 4px; }
.stat-card-trend.up { color: var(--success); }
.stat-card-trend.down { color: var(--danger); }

/* Cards */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 24px; min-width: 0; overflow: hidden; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.card-header h4 { font-size: 15px; color: var(--navy); font-weight: 700; margin: 0; }
.card-body { padding: 24px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--gray-200); }

/* Tables */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 12px 14px; background: var(--gray-100); color: var(--navy); font-weight: 600; text-align: left; border-bottom: 2px solid var(--gray-200); font-size: 13px; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-200); color: var(--gray-800); vertical-align: middle; }
.table tbody tr:hover { background: var(--off-white); }
.table-actions { display: flex; gap: 6px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-success { background: rgba(40,167,69,.12); color: var(--success); }
.badge-danger  { background: rgba(220,53,69,.12); color: var(--danger); }
.badge-warning { background: rgba(255,193,7,.15); color: #856404; }
.badge-info    { background: rgba(23,162,184,.12); color: var(--info); }
.badge-gold    { background: rgba(200,144,42,.12); color: var(--gold); }
.badge-navy    { background: rgba(11,36,71,.1); color: var(--navy); }

/* Search & Filter bar */
.table-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 14px; }
.search-box input { width: 100%; padding: 9px 14px 9px 36px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; outline: none; transition: var(--transition); }
.search-box input:focus { border-color: var(--gold); }
.filter-select { padding: 9px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; outline: none; cursor: pointer; transition: var(--transition); }
.filter-select:focus { border-color: var(--gold); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 0; flex-wrap: wrap; }
.page-btn { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--gray-200); background: var(--white); color: var(--gray-800); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Avatar */
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 100px; height: 100px; }
.avatar-initials {
  border-radius: 50%; background: var(--gold); color: var(--navy);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 900; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 560px; margin: 20px; box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform .25s; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-header h4 { color: var(--navy); font-size: 16px; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--gray-600); padding: 4px; line-height: 1; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 12px; }

/* Chat */
.chat-layout { display: flex; height: calc(100vh - 130px); gap: 0; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.chat-sidebar { width: 280px; border-right: 1px solid var(--gray-200); display: flex; flex-direction: column; flex-shrink: 0; }
.chat-header { padding: 16px 18px; border-bottom: 1px solid var(--gray-200); font-weight: 700; color: var(--navy); font-size: 15px; }
.chat-list { flex: 1; overflow-y: auto; }
.chat-item { padding: 14px 18px; cursor: pointer; transition: var(--transition); border-left: 3px solid transparent; }
.chat-item:hover, .chat-item.active { background: var(--off-white); border-left-color: var(--gold); }
.chat-item-domain { font-size: 13px; font-weight: 600; color: var(--navy); }
.chat-item-preview { font-size: 12px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-item-time { font-size: 11px; color: var(--gray-400); }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.message-bubble { max-width: 72%; }
.message-bubble.sent { align-self: flex-end; }
.message-bubble.received { align-self: flex-start; }
.bubble-content { padding: 10px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.sent .bubble-content { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.received .bubble-content { background: var(--gray-100); color: var(--text); border-bottom-left-radius: 4px; }
.bubble-time { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.sent .bubble-time { text-align: right; }
.chat-input-area { padding: 16px 20px; border-top: 1px solid var(--gray-200); display: flex; gap: 10px; align-items: flex-end; }
.chat-input { flex: 1; resize: none; padding: 10px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; outline: none; font-family: inherit; min-height: 44px; max-height: 120px; transition: var(--transition); }
.chat-input:focus { border-color: var(--gold); }
.anonymous-notice { background: rgba(200,144,42,.08); border: 1px solid rgba(200,144,42,.2); padding: 8px 14px; font-size: 12px; color: var(--gold-dark); border-radius: 6px; margin: 0 20px 10px; display: flex; align-items: center; gap: 6px; }

/* Notifications dropdown */
.notif-dropdown { position: absolute; top: 50px; right: 0; width: 340px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 600; border: 1px solid var(--gray-200); opacity: 0; pointer-events: none; transition: var(--transition); transform: translateY(-8px); }
.notif-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.notif-header { padding: 14px 18px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.notif-header h5 { font-size: 14px; color: var(--navy); }
.notif-item { padding: 12px 18px; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: var(--transition); }
.notif-item:hover { background: var(--off-white); }
.notif-item.unread { border-left: 3px solid var(--gold); }
.notif-item-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.notif-item-msg { font-size: 12px; color: var(--gray-600); margin-top: 2px; }
.notif-item-time { font-size: 11px; color: var(--gray-400); margin-top: 3px; }

/* Profile */
.profile-header { background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-radius: var(--radius-lg); padding: 36px 32px; display: flex; align-items: center; gap: 28px; margin-bottom: 24px; }
.profile-avatar-wrap { position: relative; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); }
.profile-avatar-upload { position: absolute; bottom: 2px; right: 2px; width: 28px; height: 28px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); font-size: 12px; }
.profile-info .name { font-size: 1.3rem; font-weight: 700; color: var(--white); }
.profile-info .role-badge { display: inline-block; background: rgba(200,144,42,.25); color: var(--gold); padding: 3px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; margin-top: 6px; }
.profile-info .joined { font-size: 13px; color: #a0b8d4; margin-top: 4px; }

/* Confidence Score */
.confidence-ring { width: 80px; height: 80px; position: relative; flex-shrink: 0; }
.confidence-ring svg { transform: rotate(-90deg); }
.confidence-ring .bg { fill: none; stroke: var(--gray-200); stroke-width: 6; }
.confidence-ring .fill { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.confidence-ring .label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.confidence-ring .label .pct { font-size: 1.1rem; font-weight: 800; color: var(--navy); line-height: 1; }
.confidence-ring .label small { font-size: 9px; color: var(--gray-600); }

/* Model Cards */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.model-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 2px solid transparent; transition: var(--transition); overflow: hidden; }
.model-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.model-card-img { height: 6px; background: linear-gradient(90deg, var(--gold), var(--navy)); }
.model-card-body { padding: 22px; }
.model-card h4 { color: var(--navy); margin-bottom: 8px; font-size: 15px; }
.model-card p { color: var(--gray-600); font-size: 13px; margin-bottom: 14px; }
.model-price { font-size: 1.2rem; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.model-confidence { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-600); margin-bottom: 16px; }

/* Verification Page */
.verify-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; text-align: center; max-width: 480px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.verify-icon { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--navy); margin: 0 auto 24px; }

/* Tooltip */
.tooltip-wrapper { position: relative; display: inline-flex; }
.tooltip-box { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: 5px 10px; border-radius: 6px; font-size: 11px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 100; }
.tooltip-wrapper:hover .tooltip-box { opacity: 1; }

/* Spinner */
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast Notification */
.toast-container { position: fixed; top: calc(var(--sal-h, 0px) + 20px); right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--white); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-lg); min-width: 280px; max-width: 360px; display: flex; align-items: flex-start; gap: 12px; animation: slideIn .3s ease; }
.toast.success { border-left-color: var(--success); }
.toast.danger  { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ MODAL ============ */
.modal-overlay { display:none; position:fixed; top:var(--sal-h,0px); left:0; right:0; bottom:0; background:rgba(0,0,0,.55); z-index:2000; align-items:center; justify-content:center; padding:16px; }
.modal-overlay.open { display:flex; }
.modal-box { background:var(--white); border-radius:var(--radius-lg); width:100%; max-width:680px; max-height:92vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,.35); animation:modalIn .2s ease; overflow:hidden; }
.modal-box > form { display:flex; flex-direction:column; flex:1; min-height:0; }
@keyframes modalIn { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
.modal-header { padding:18px 24px; border-bottom:1px solid var(--gray-200); display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.modal-header h4 { font-size:15px; color:var(--navy); font-weight:700; margin:0; }
.modal-close { background:none; border:none; font-size:1.3rem; color:var(--gray-400); cursor:pointer; padding:4px 8px; border-radius:6px; line-height:1; }
.modal-close:hover { background:var(--gray-100); color:var(--navy); }
.modal-body { padding:24px; overflow-y:auto; flex:1; }
.modal-footer { padding:16px 24px; border-top:1px solid var(--gray-200); display:flex; gap:10px; justify-content:flex-end; flex-shrink:0; }
.rate-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(200,144,42,.1); color:var(--gold); border-radius:6px; padding:4px 10px; font-size:12px; font-weight:600; margin-bottom:8px; }
.free-badge { display:inline-flex; align-items:center; gap:5px; background:rgba(40,167,69,.12); color:var(--success); border-radius:6px; padding:4px 10px; font-size:12px; font-weight:700; }

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-260px); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { left: 0; }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 499; display: none; }
  .sidebar-overlay.show { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open {
    display: flex; flex-direction: column; gap: 0; align-items: center;
    background: var(--navy-light);
    padding: 8px 20px 16px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .mobile-menu a {
    color: #c0d4ec; font-size: 15px; font-weight: 500;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: block; text-align: center; width: 100%;
  }
  .mobile-menu a:last-of-type { border-bottom: none; }
  .mobile-menu a:hover, .mobile-menu a:focus { color: var(--gold); background: rgba(200,144,42,.06); transition: all .2s; }
  .mobile-menu hr { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 8px 0; }
  .mobile-menu .btn { margin-top: 10px; align-self: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .auth-card-body, .auth-card-header, .auth-card-footer { padding-left: 24px; padding-right: 24px; }
  .page-content { padding: 16px; }
  .chat-sidebar { display: none; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr !important; }
  .model-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .table-toolbar { flex-direction: column; }
  .profile-header { flex-direction: column; text-align: center; }
}
