@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1535;
  --bg-card: rgba(255,255,255,0.06);
  --bg-elevated: rgba(255,255,255,0.1);
  --bg-dark: #0f172a;
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.5);
  --text-light: #f8fafc;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.08);
  --primary-glow: rgba(99, 102, 241, 0.25);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --alert: #ef4444;
  --alert-bg: rgba(239, 68, 68, 0.08);
  --warning: #f59e0b;
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Red Hat Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #1a1535;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary-light);
  color: var(--text);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-glow); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--primary-hover); }
a.logo, a.logo:hover, a.logo:active, a.logo:focus { color: #fff !important; text-decoration: none; }

*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 21, 53, 0.45);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  transition: none;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  -webkit-text-fill-color: unset;
  background: none;
}

.nav-link {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-user {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 0 8px;
  border-left: 1px solid rgba(255,255,255,0.15);
  margin-left: 8px;
  padding-left: 16px;
}

/* Light nav for non-landing screens */
/* Navbar is dark glass on all pages — logo always white */

/* ─── NAV BOUNCE AT SCROLL TOP ─── */
#navbar.bounce .logo,
#navbar.bounce .hamburger {
  animation: navBounce 0.4s ease;
}
@keyframes navBounce {
  0% { transform: translateY(-6px); opacity: 0.7; }
  60% { transform: translateY(2px); }
  100% { transform: translateY(0); opacity: 1; }
}

/* ─── HAMBURGER BUTTON ─── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
body:has(#screen-auth.active) .hamburger span { background: rgb(36,34,32); }
.hamburger.open { display: none; }

/* ─── DARK OVERLAY ─── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}
.nav-overlay.open { display: block; }

/* ─── DRAWER PANEL ─── */
.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 90vw;
  background: #f5f4f2;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.nav-links.open { transform: translateX(0); }

/* ─── DRAWER HEADER ─── */
.nav-drawer-header {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 28px 26px 28px;
}
.nav-drawer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: rgb(36,34,32);
}
.nav-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgb(36,34,32);
  font-size: 28px;
  line-height: 1;
  padding: 0;
}
.nav-drawer-close:hover { color: rgb(120,120,120); }

/* ─── DRAWER MENU ITEMS ─── */
.nav-links .nav-link {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  color: rgb(36,34,32);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 0;
  background: none;
  transition: all 0.2s ease;
  position: relative;
}
.nav-links .nav-link:hover {
  background: #f7f7f5;
  color: rgb(36,34,32);
  padding-left: 36px;
}
.nav-links .nav-link::after {
  content: '\203A';
  font-size: 22px;
  color: rgb(190,190,190);
  transition: transform 0.2s ease, color 0.2s ease;
}
.nav-links .nav-link:hover::after {
  transform: translateX(4px);
  color: rgb(36,34,32);
}

/* ─── AUTH IN DRAWER ─── */
.nav-links #nav-auth-area { padding: 0; margin: 0; border: none; }
.drawer-user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 4px;
}
.drawer-user-name {
  font-size: 15px;
  font-weight: 600;
  color: rgb(36, 34, 32);
}
.drawer-user-plan {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgb(55, 55, 55);
  background: #eeedeb;
  padding: 3px 10px;
  border-radius: 6px;
}
.drawer-signout {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: rgb(55, 55, 55) !important;
}
.nav-links .nav-user { color: rgb(36,34,32); border: none; padding: 0; margin: 0; font-size: 15px; }

.plan-toggle {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--gradient);
  color: #fff !important;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}
.plan-toggle:hover { opacity: 0.9; transform: scale(1.02); }

/* ═══════════════════════════════════════════
   SCREENS
   ═══════════════════════════════════════════ */
.screen { display: none; padding-top: 68px; min-height: 100vh; }
.screen.active { display: block; }
body.page-transitioning { opacity: 0; }
body { transition: opacity 0.15s ease; }

/* ═══════════════════════════════════════════
   BUTTONS (global)
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ═══════════════════════════════════════════
   FORMS (global)
   ═══════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  height: 48px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.form-group input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════ */

/* --- Landing container --- */
#screen-landing {
  padding-top: 0;
  background: #f5f4f2;
  color: rgb(36, 34, 32);
  font-family: 'Red Hat Text', 'Inter', -apple-system, sans-serif;
}

/* --- Alternating section backgrounds (skip hero and cta-banner) --- */
#screen-landing > section:nth-of-type(even):not(.hero):not(.cta-banner) { background: #f5f4f2; }
#screen-landing > section:nth-of-type(odd):not(.hero):not(.cta-banner) { background: #eeedeb; }
#screen-landing > .cta-banner { background: #1a1535; }

/* --- Section labels (small caps above headings) --- */
.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgb(55, 55, 55);
  margin-bottom: 12px;
  font-family: 'Red Hat Text', 'Inter', sans-serif;
}

/* --- Section subtitles --- */
.section-sub {
  text-align: center;
  color: rgb(55, 55, 55);
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 48px;
  line-height: 1.7;
  font-family: 'Red Hat Text', 'Inter', sans-serif;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══ HERO ═══ */
#screen-landing > .hero {
  width: 100%;
  background: #1a1535;
  text-align: center;
  padding: 148px 24px 80px;
  position: relative;
  overflow: hidden;
}

#screen-landing > .hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 70px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
  color: #fff;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero-accent {
  color: #a78bfa;
  background: none;
  -webkit-text-fill-color: unset;
}

.hero-sub {
  font-family: 'Red Hat Text', 'Inter', sans-serif;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 72px;
}

.hero-actions .btn-primary {
  padding: 16px 36px;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  background: #fff;
  color: #1a1535;
  border: none;
  box-shadow: none;
  letter-spacing: -0.2px;
  transition: background 0.2s, transform 0.2s;
}
.hero-actions .btn-primary:hover {
  background: #fff;
  color: #1a1535;
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
  transform: none;
  box-shadow: none;
}
.hero-actions .btn-primary svg { display: none; }

.hero-actions .btn-outline {
  padding: 16px 36px;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: none;
  letter-spacing: -0.2px;
  transition: border-color 0.2s, background 0.2s;
}
.hero-actions .btn-outline:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 32px 56px;
  max-width: 680px;
  margin: 0 auto;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
}

/* ═══ TRUST TICKER ═══ */
.trust-bar {
  overflow: hidden;
  padding: 18px 0;
  background: #faf9f7;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
}
.trust-bar p { display: none; }

.trust-logos {
  display: flex;
  gap: 48px;
  animation: ticker 20s linear infinite;
  width: max-content;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-logos span {
  font-size: 12px;
  font-weight: 600;
  color: rgb(56, 56, 56);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.trust-logos span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(84, 84, 84);
  flex-shrink: 0;
}

/* ═══ HOW IT WORKS ═══ */
#screen-landing .how-it-works {
  max-width: 100%;
  padding: 60px 24px 64px;
}

.how-it-works h2 {
  text-align: center;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: rgb(36, 34, 32);
}
.how-it-works h2::after { display: none; }

.how-it-works .section-sub { margin-bottom: 40px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.step {
  background: #faf9f7;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.step:hover {
  border: 2px solid rgba(0,0,0,0.15);
}

.step-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: rgb(36, 34, 32);
  margin-bottom: 8px;
  line-height: 1;
}

.step h3 {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgb(36, 34, 32);
}
.step p {
  color: rgb(55, 55, 55);
  font-size: 15px;
  line-height: 1.7;
}

/* ═══ SOCIAL PROOF SECTIONS ═══ */
#screen-landing .social-proof {
  max-width: 100%;
  padding: 56px 24px 64px;
}
.social-proof .section-label { text-align: center; }

.social-proof h2 {
  text-align: center;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: rgb(36, 34, 32);
}
.social-proof h2::after { display: none; }
.social-proof .section-sub { margin-bottom: 36px; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.proof-card {
  background: #faf9f7;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.proof-card:hover {
  border: 2px solid rgba(0,0,0,0.15);
}

.proof-icon { display: none; }

.proof-card h3 {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgb(36, 34, 32);
}
.proof-card p {
  color: rgb(55, 55, 55);
  font-size: 15px;
  line-height: 1.7;
}

/* ═══ CTA BANNER (dark sections) ═══ */
.cta-banner {
  text-align: center;
  padding: 90px 24px 100px;
  background: #1a1535;
  position: relative;
  overflow: hidden;
}
.cta-banner::before { display: none; }

.cta-banner .section-label {
  text-align: center;
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.5);
}

.cta-banner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 18px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  letter-spacing: -1.5px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  font-family: 'Red Hat Text', 'Inter', sans-serif;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #1a1535;
  font-family: 'Red Hat Text', sans-serif;
  font-weight: 600;
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 14px;
  box-shadow: none;
  letter-spacing: -0.2px;
  transition: background 0.2s;
}
.cta-banner .btn:hover {
  background: #fff;
  color: #1a1535;
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
  transform: none;
  box-shadow: none;
}

/* ═══ TESTIMONIALS ═══ */
/* Testimonials get 2-column grid */
#testimonials-section .proof-grid {
  grid-template-columns: repeat(2, 1fr);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.testimonial-quote {
  font-size: 15px;
  color: rgb(36, 34, 32);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 16px;
  font-family: 'Red Hat Text', 'Inter', sans-serif;
}
.testimonial-name {
  font-size: 14px;
  color: rgb(55, 55, 55);
  margin-bottom: 8px;
}
.testimonial-name strong { color: rgb(36, 34, 32); }
.testimonial-savings {
  font-size: 12px;
  font-weight: 700;
  color: #0d9668;
  background: rgba(16, 185, 129, 0.1);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}

/* ═══ FAQ ═══ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: #faf9f7;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
}
.faq-item:hover { border-color: rgba(0,0,0,0.15); }
.faq-item summary {
  padding: 22px 28px;
  font-size: 16px;
  font-weight: 600;
  color: rgb(36, 34, 32);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Red Hat Text', 'Inter', sans-serif;
}
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: rgb(55, 55, 55);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 28px 22px;
  font-size: 15px;
  color: rgb(55, 55, 55);
  line-height: 1.8;
  font-family: 'Red Hat Text', 'Inter', sans-serif;
}

/* ═══ PRICING ═══ */
#screen-landing .pricing-section {
  max-width: 100%;
  background: #f5f4f2;
  padding: 80px 24px 100px;
  scroll-margin-top: 80px;
  scroll-margin-bottom: 40px;
}

.pricing-section h2 {
  text-align: center;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: rgb(36, 34, 32);
}
.pricing-section h2::after { display: none; }
.pricing-section .section-sub { margin-bottom: 56px; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: #faf9f7;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 36px 28px 32px;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: priceSlideIn 0.5s ease both;
}
.pricing-card:nth-child(1) { animation-delay: 0s; }
.pricing-card:nth-child(2) { animation-delay: 0.1s; }
.pricing-card:nth-child(3) { animation-delay: 0.2s; }
.pricing-card:nth-child(4) { animation-delay: 0.3s; }
@keyframes priceSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.pricing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.pricing-card.featured {
  border: 2px solid rgba(0,0,0,0.1);
}
.pricing-card.featured::before { content: none; }
.pricing-card.featured::after { content: none; }

.pricing-card .badge {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  background: linear-gradient(90deg, #6366f1, #a78bfa, #c4b5fd, #a78bfa, #6366f1);
  background-size: 200% 100%;
  animation: ribbonShimmer 3s linear infinite;
  color: #fff;
  padding: 12px 14px;
  border-radius: 16px 16px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
@keyframes ribbonShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.pricing-card.featured { padding-top: 56px; }

.pricing-card h3 {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: rgb(36, 34, 32);
  transition: color 0.3s;
}

.pricing-card .price {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: rgb(36, 34, 32);
  transition: color 0.3s;
}
.pricing-card .price span {
  font-size: 15px;
  color: rgb(55, 55, 55);
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.3s;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
  flex: 1;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 14px;
  color: rgb(55, 55, 55);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Red Hat Text', sans-serif;
  transition: color 0.3s, border-color 0.3s;
}
.pricing-card li:last-child { border: none; }

.pricing-card li::before {
  content: '\2713';
  color: rgb(46, 147, 111);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.pricing-card .btn-primary,
.pricing-card .btn-outline {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 15px;
  margin-top: auto;
  transition: all 0.3s ease;
}

#screen-landing .pricing-card .btn-outline {
  background: transparent;
  color: rgb(36, 34, 32);
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 12px;
}
#screen-landing .pricing-card .btn-outline:hover {
  background: transparent;
  color: #6366f1;
  border-color: #6366f1;
}
/* featured button same as others */

/* ═══ FOOTER ═══ */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  color: rgb(120, 120, 120);
  background: transparent;
  font-family: 'Red Hat Text', 'Inter', sans-serif;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 14px 0;
}
.footer-links a {
  color: rgb(55, 55, 55);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: rgb(36, 34, 32); }

.footer-disclaimer {
  font-size: 12px;
  color: rgb(120, 120, 120);
  margin-top: 14px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   AUTH
   ═══════════════════════════════════════════ */
#screen-auth {
  background: #f5f4f2;
}
body:has(#screen-auth.active) #navbar {
  background: #f5f4f2;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}
body:has(#screen-auth.active) a.logo { color: rgb(36,34,32) !important; }
#screen-auth.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 40px;
  background: #faf9f7;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 28px;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: rgb(36, 34, 32);
}

.auth-container .form-group label {
  color: rgb(36, 34, 32);
}
.auth-container .form-group input {
  height: 48px;
  border-radius: var(--radius);
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.12);
  color: rgb(36, 34, 32);
}
.auth-container .form-group input::placeholder { color: rgb(150,150,150); }
.auth-container .form-group input:focus { border-color: var(--primary); }
.auth-container .btn-primary {
  background: var(--primary);
  color: #fff;
}
.auth-container .btn-primary:hover { background: var(--primary-hover); }
.auth-divider span { color: rgb(150,150,150); }
.auth-toggle a { color: var(--primary); font-weight: 600; }
.password-requirements .req {
  background: rgba(0,0,0,0.05);
  color: rgb(150,150,150);
}
.password-requirements .req.met {
  background: rgba(16,185,129,0.1);
  color: rgb(13,150,104);
}

.auth-divider {
  text-align: center;
  margin: 24px 0;
  color: rgb(150,150,150);
  font-size: 14px;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(0,0,0,0.1);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: rgb(80, 80, 80);
}

.password-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.password-requirements .req {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.04);
  color: rgb(150,150,150);
  transition: all 0.2s;
}
.password-requirements .req.met {
  background: rgba(16,185,129,0.1);
  color: rgb(13,150,104);
}

#google-signin-btn { display: flex; justify-content: center; }

/* ═══════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════ */
.dashboard-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 28px;
}

.dashboard-greeting h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  color: #fff;
}

.dashboard-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.plan-pro {
  background: rgba(167,139,250,0.15);
  color: #a78bfa;
  border-color: rgba(167,139,250,0.2);
}
.plan-free {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.upgrade-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.upgrade-link:hover { color: var(--primary-hover); }

.dashboard-section { margin-top: 12px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: none;
}
.stat-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.stat-card-num { color: #fff; }
.stat-card-label { color: rgba(255,255,255,0.5); }
.stat-card-icon { color: rgba(255,255,255,0.4); }

.stat-card-highlight {
  background: rgba(255,255,255,0.08);
  border-color: rgba(167,139,250,0.2);
}
.stat-card-highlight:hover {
  background: rgba(255,255,255,0.12);
}
.stat-card-highlight .stat-card-num,
.stat-card-highlight .stat-card-label { color: #fff; }
.stat-card-highlight .stat-card-icon { color: #a78bfa; opacity: 1; }

.stat-card.alert {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.stat-card.success {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.stat-card.success .stat-card-icon { color: #34d399; opacity: 1; }

.stat-card-icon {
  margin-bottom: 14px;
}

.stat-card-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}
.stat-card-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   BILLS LIST
   ═══════════════════════════════════════════ */
.bills-list { margin: 0; }

.bill-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid #a78bfa;
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}
.bill-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
  border-left-color: #c4b5fd;
}
.bill-card-amount { color: #fff; }
.bill-card-icon { color: rgba(255,255,255,0.4); }
.bill-card-arrow { color: rgba(255,255,255,0.3); }
.bill-card:hover .bill-card-arrow { color: #a78bfa; }
.bill-card-meta { color: rgba(255,255,255,0.5); }

/* Dashboard dark overrides */
#screen-dashboard .btn-primary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: none;
}
#screen-dashboard .btn-primary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(167,139,250,0.4);
}
#screen-dashboard .empty-state { color: rgba(255,255,255,0.4); }
#screen-dashboard .empty-state .btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
#screen-dashboard .empty-state .btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(167,139,250,0.4);
}
#screen-dashboard .upgrade-link { color: #a78bfa; }
.btn-icon-sm { color: rgba(255,255,255,0.4); }
.btn-icon-sm:hover { background: rgba(255,255,255,0.1); }

.bill-card-icon { color: rgba(255,255,255,0.4); flex-shrink: 0; }
.bill-card-info { flex: 1; }
.bill-card-amount { font-size: 18px; font-weight: 700; margin-bottom: 2px; color: #fff; }
.bill-card-meta { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.5); }
.bill-card-right { text-align: right; flex-shrink: 0; color: rgba(255,255,255,0.6); }
.bill-card-arrow { color: rgba(255,255,255,0.3); flex-shrink: 0; opacity: 0.3; transition: all 0.2s ease; }
.bill-card:hover .bill-card-arrow { opacity: 1; color: #a78bfa; }

.bill-card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-icon-sm {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  opacity: 0;
  transition: all 0.2s ease;
}
.bill-card:hover .btn-icon-sm { opacity: 0.6; }
.btn-icon-sm:hover { opacity: 1 !important; background: rgba(255,255,255,0.1); }
.btn-delete:hover { color: var(--alert); background: rgba(239,68,68,0.1); }


.btn-danger-outline { color: var(--alert) !important; border-color: var(--alert) !important; }
.btn-danger-outline:hover { background: var(--alert-bg) !important; }

.bill-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}
.status-analyzed { color: var(--success); background: var(--success-bg); }
.status-processing { color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.status-uploaded { color: var(--text-muted); background: var(--bg-elevated); }
.status-error { color: var(--alert); background: var(--alert-bg); }
.status-draft { color: var(--text-muted); background: var(--bg-elevated); }
.status-sent { color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.status-responded { color: var(--success); background: var(--success-bg); }

.bill-date { font-size: 13px; color: var(--text-muted); }
.bill-charged { font-weight: 600; }
.bill-savings { color: var(--success); font-size: 14px; font-weight: 600; }

.error-badge {
  background: var(--alert-bg);
  color: var(--alert);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.clean-badge {
  background: var(--success-bg);
  color: var(--success);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   UPLOAD
   ═══════════════════════════════════════════ */
.upload-container {
  max-width: 540px;
  margin: 40px auto;
  padding: 0 24px;
}
.upload-container h2 {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}
.upload-container > p { color: rgba(255,255,255,0.5); margin-bottom: 28px; }

.upload-zone {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: rgba(167,139,250,0.4);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  transform: scale(1.01);
}
.upload-zone svg { margin-bottom: 16px; opacity: 0.6; color: rgba(255,255,255,0.5); }
.upload-hint { font-size: 13px; margin-top: 6px; color: rgba(255,255,255,0.4); }

/* Upload form fields */
.upload-container .form-group label { color: rgba(255,255,255,0.6); }
.upload-container .form-group input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}
.upload-container .form-group input::placeholder { color: rgba(255,255,255,0.3); }
.upload-container .btn-primary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: none;
}
.upload-container .btn-primary:hover { background: rgba(255,255,255,0.14); border-color: rgba(167,139,250,0.4); }

.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.progress-bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 20px;
}
.progress-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 3px;
}
#progress-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   BILL DETAIL
   ═══════════════════════════════════════════ */
#screen-bill > div, #screen-dispute > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.bill-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.bill-detail-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.table-wrap { overflow-x: auto; margin-bottom: 36px; }

.line-items-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
}
.line-items-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1.5px solid var(--border);
  font-weight: 600;
}
.line-items-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.line-items-table tr:hover { background: var(--bg-card); }

.row-overcharged { background: var(--alert-bg) !important; }

.overcharge-badge {
  color: var(--alert);
  font-weight: 600;
  font-size: 13px;
  background: var(--alert-bg);
  padding: 2px 10px;
  border-radius: 20px;
}
.ok-badge {
  color: var(--success);
  font-weight: 600;
  font-size: 13px;
  background: var(--success-bg);
  padding: 2px 10px;
  border-radius: 20px;
}
.flag-badge {
  color: var(--warning);
  font-weight: 600;
  font-size: 12px;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
}
.revenue-badge {
  color: var(--text-muted);
  font-size: 12px;
}

.errors-list { margin-bottom: 36px; }
.error-item {
  padding: 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: all 0.2s ease;
}
.error-item:hover { box-shadow: var(--shadow-sm); }
.error-item.error-high { border-left: 4px solid var(--alert); }
.error-item.error-medium { border-left: 4px solid var(--warning); }

.error-type {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.error-high .error-type { color: var(--alert); }
.error-medium .error-type { color: var(--warning); }
.error-detail { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.error-amount { font-size: 14px; color: var(--alert); margin-top: 6px; font-weight: 700; }

.alert-banner {
  background: var(--alert-bg);
  border: 1.5px solid rgba(239, 68, 68, 0.2);
  color: var(--alert);
  padding: 14px 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-weight: 600;
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   DISPUTE PROFILE SECTION
   ═══════════════════════════════════════════ */
.dispute-profile-section {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.profile-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.profile-field { display: flex; flex-direction: column; }

.field-label-sm {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.input-sm {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.input-sm:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.insurance-details { margin-top: 14px; }
.insurance-toggle {
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.insurance-toggle:hover { color: var(--primary-hover); }

/* ═══════════════════════════════════════════
   LETTER EDITING
   ═══════════════════════════════════════════ */
.letter-edit-wrap { margin-top: 0; }

.letter-edit-textarea {
  width: 100%;
  min-height: 400px;
  padding: 24px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Georgia', serif;
  font-size: 15px;
  line-height: 1.8;
  resize: vertical;
  transition: all 0.2s ease;
}
.letter-edit-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.letter-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}

.dispute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn-disabled {
  opacity: 0.4 !important;
  pointer-events: none;
}

/* ─── DISPUTE PROGRESS BAR ─── */
.dispute-progress { margin-bottom: 28px; }
.dispute-progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}
.dispute-progress-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 0.6s ease;
  border-radius: 4px;
}
.dispute-progress-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

/* ─── RENDERED LETTER ─── */
.letter-output {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 28px;
  box-shadow: var(--shadow-sm);
}

.letter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.letter-actions { display: flex; gap: 8px; }

.letter-text-wrap {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.letter-rendered h1.letter-h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.letter-rendered h2.letter-h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.letter-rendered p { margin-bottom: 14px; }
.letter-rendered hr.letter-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.letter-rendered strong { color: var(--text); }
.letter-rendered .letter-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.letter-rendered .letter-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 14px;
}
.letter-rendered .letter-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.letter-rendered .letter-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}
.letter-rendered .letter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.letter-rendered .letter-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1.5px solid var(--border);
  font-weight: 600;
}
.letter-rendered .letter-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.letter-text {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.gated-preview { text-align: center; }
.upgrade-cta {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-top: 36px;
}
.upgrade-cta h3 { margin-bottom: 10px; font-size: 22px; font-weight: 700; }
.upgrade-cta p { color: var(--text-muted); margin-bottom: 24px; }

.disputes-list { margin-bottom: 36px; }

.dispute-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.dispute-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.dispute-type {
  font-weight: 600;
  text-transform: capitalize;
  color: var(--text);
}

.dispute-card-full {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dispute-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
}

.savings-feedback {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.savings-feedback.reported {
  background: rgba(34, 197, 94, 0.05);
  border-top-color: rgba(34, 197, 94, 0.2);
}
.savings-feedback-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.savings-feedback-inner p { margin: 0; font-size: 14px; color: var(--text-muted); }
.savings-feedback-form { width: 100%; }
.savings-feedback-form select,
.savings-feedback-form input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.savings-feedback-form textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.dispute-card-header .letter-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.saved-letter-body {
  border-top: 1px solid var(--border);
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-card);
}

/* ═══════════════════════════════════════════
   PRICE CHECKER
   ═══════════════════════════════════════════ */
#screen-price-checker {
  background: #1a1535;
  padding-top: 0 !important;
  display: none;
}
#screen-price-checker.active {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body:has(#screen-price-checker.active) .logo { color: #fff; }
body:has(#screen-price-checker.active) .hamburger span { background: #fff; }

.price-checker-container {
  max-width: 800px;
  margin: auto;
  padding: 80px 24px 24px;
  text-align: center;
}
.price-checker-container h2 {
  margin-bottom: 12px;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}
.price-checker-container > p {
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.search-row input {
  flex: 1;
  padding: 12px 16px;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.search-row input::placeholder { color: rgba(255,255,255,0.35); }
.search-row input:focus {
  outline: none;
  border-color: rgba(167,139,250,0.5);
}
.search-row .btn {
  border-radius: 12px;
  background: #fff;
  color: #1a1535;
  font-family: 'Red Hat Text', sans-serif;
  font-weight: 600;
  padding: 12px 24px;
  box-shadow: none;
}
.search-row .btn:hover {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
}

.price-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.price-result:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(167,139,250,0.3);
}
.price-result-code {
  font-family: 'Red Hat Text', sans-serif;
  font-weight: 700;
  font-size: 16px;
  min-width: 60px;
  color: #fff;
}
.price-result-desc { flex: 1; font-size: 14px; color: rgba(255,255,255,0.6); }
.price-result-rate { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 500; }

.price-detail {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 36px;
}
.price-detail h3 {
  margin-bottom: 28px;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.price-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
}
.price-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.price-value { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.price-value.highlight { color: #34d399; }
.price-note { font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 24px; line-height: 1.7; }

.rate-factor {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-transform: capitalize;
}
.rate-discount {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.rate-discount:last-child { border: none; }
.rate-discount-pct { color: #34d399; font-weight: 600; }

#screen-price-checker .btn-primary {
  background: #fff;
  color: #1a1535;
  box-shadow: none;
}
#screen-price-checker .btn-primary:hover {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════
   UTILS
   ═══════════════════════════════════════════ */
.loading {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}
.empty-state .btn { margin-top: 20px; }

.error-state {
  text-align: center;
  padding: 24px;
  color: var(--alert);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════ */
.admin-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.admin-header { padding: 32px 0 20px; }
.admin-header h2 {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 0;
}

.admin-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.admin-tab:hover { color: var(--text); background: var(--bg-elevated); }
.admin-tab.active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.admin-tab-content { display: none; padding: 28px 0; }
.admin-tab-content.active { display: block; }

.admin-search-bar { margin-bottom: 20px; }
.admin-search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  height: 48px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}
.admin-search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.admin-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  font-weight: 600;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.admin-table tr:nth-child(even) { background: var(--bg-card); }
.admin-table tr:hover { background: var(--bg-elevated); }

.admin-actions { display: flex; gap: 8px; white-space: nowrap; }

.row-unread { background: rgba(167,139,250,0.08) !important; }

/* ─── ADMIN DARK THEME ─── */
#screen-admin .admin-header h2 { color: #fff; }
#screen-admin .admin-tab { color: rgba(255,255,255,0.5); }
#screen-admin .admin-tab:hover { color: #fff; background: rgba(255,255,255,0.06); }
#screen-admin .admin-tab.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}
#screen-admin .admin-table {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
#screen-admin .admin-table th {
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#screen-admin .admin-table td {
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#screen-admin .admin-table tr:nth-child(even) { background: rgba(255,255,255,0.02); }
#screen-admin .admin-table tr:hover { background: rgba(255,255,255,0.06); }
#screen-admin .admin-search-bar input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}
#screen-admin .admin-search-bar input::placeholder { color: rgba(255,255,255,0.3); }
#screen-admin .section-header h3 { color: #fff; }
#screen-admin .btn-primary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: none;
}
#screen-admin .btn-primary:hover { background: rgba(255,255,255,0.14); border-color: rgba(167,139,250,0.4); }
#screen-admin .btn-outline { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
#screen-admin .btn-outline:hover { color: #fff; border-color: rgba(167,139,250,0.4); background: rgba(255,255,255,0.06); }
#screen-admin .admin-agents-desc { color: rgba(255,255,255,0.5); }
#screen-admin h3 { color: #fff; }
#screen-admin p { color: rgba(255,255,255,0.6); }
#screen-admin input, #screen-admin textarea, #screen-admin select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}
#screen-admin input::placeholder, #screen-admin textarea::placeholder { color: rgba(255,255,255,0.3); }
#screen-admin input:focus, #screen-admin textarea:focus, #screen-admin select:focus { border-color: rgba(167,139,250,0.4); outline: none; }
#screen-admin select {
  padding: 6px 10px;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  cursor: pointer;
}
#screen-admin select option {
  background: #1a1535;
  color: #fff;
}

.msg-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.msg-unread { background: var(--gradient); color: #fff; }
.msg-read { background: var(--bg-elevated); color: var(--text-muted); }
.msg-text { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Groq API Status */
.groq-status-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
}
.groq-status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.groq-status-title { font-size: 14px; font-weight: 600; color: #fff; }
.groq-status-keys { font-size: 12px; color: rgba(255,255,255,0.6); }
.groq-bar-track { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.groq-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.groq-warning { font-size: 12px; color: #ef4444; margin-top: 8px; font-weight: 500; }
.groq-key-mgmt { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.groq-keys-list { display: flex; gap: 6px; flex-wrap: wrap; }
.groq-key-badge {
  font-size: 11px; padding: 4px 12px; border-radius: 6px; font-family: 'SF Mono', 'Fira Code', monospace;
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15);
}
.groq-key-badge.warn { border-color: #f59e0b; color: #fbbf24; }
.groq-key-badge.exhausted { border-color: #ef4444; color: #f87171; opacity: 0.7; }
.groq-add-key { display: flex; gap: 8px; align-items: center; }
.groq-add-key input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
}
.groq-add-key input::placeholder { color: rgba(255,255,255,0.3); }

.groq-refresh-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  padding: 5px 7px;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}
.groq-refresh-btn:hover {
  color: #fff;
  border-color: rgba(167,139,250,0.4);
  background: rgba(255,255,255,0.06);
}

/* Groq key table */
.groq-keys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0;
}
.groq-keys-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.groq-keys-table td {
  padding: 10px 12px;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.groq-key-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; color: #fff; }
.groq-key-count { font-weight: 600; }
.groq-key-count.warn { color: #fbbf24; }
.groq-key-count.exhausted { color: #f87171; }
.groq-row-bad { background: rgba(239,68,68,0.08); }
.groq-health-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
}

/* Agent Instructions */
.admin-agents-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; line-height: 1.7; }

.agent-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.agent-card:hover { box-shadow: var(--shadow); }
.agent-card-inactive { opacity: 0.5; }

.agent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.agent-card-header h4 { font-size: 16px; font-weight: 600; }

.agent-name-wrap { display: flex; align-items: center; gap: 10px; }
.agent-color-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(0,0,0,0.05); }
.agent-name-display {
  font-size: 15px; font-weight: 600; cursor: default; color: var(--text);
  transition: color 0.2s ease;
}
.agent-name-display:hover { color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.agent-name-edit { font-size: 15px; font-weight: 600; font-family: inherit; }

.agent-controls { display: flex; align-items: center; gap: 12px; }

.agent-schedule-select {
  padding: 6px 10px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  appearance: auto;
  font-family: inherit;
  transition: all 0.2s ease;
}
.agent-schedule-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }

.agent-toggle { position: relative; display: inline-block; width: 38px; height: 20px; }
.agent-toggle input { opacity: 0; width: 0; height: 0; }
.agent-toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border); border-radius: 20px; transition: 0.2s;
}
.agent-toggle-slider::before {
  content: ''; position: absolute; height: 16px; width: 16px; left: 2px; bottom: 2px;
  background: var(--text-muted); border-radius: 50%; transition: 0.2s;
}
.agent-toggle input:checked + .agent-toggle-slider { background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.agent-toggle input:checked + .agent-toggle-slider::before { transform: translateX(18px); background: #fff; }

.agent-card-tooltip { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }

.agent-instructions-input {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s ease;
}
.agent-instructions-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.agent-instructions-input::placeholder { color: var(--text-muted); }

.agent-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.agent-card-footer .agent-updated { font-size: 12px; color: var(--text-muted); }

.agent-save-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.agent-save-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.agent-save-btn:disabled { opacity: 0.5; cursor: default; }
.agent-save-btn.saved { border-color: var(--success); color: var(--success); background: var(--success-bg); }

.agent-log-entry {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: background 0.15s;
}
.agent-log-entry:last-child { border-bottom: none; }
.agent-log-entry:hover { background: var(--bg-card); }

.log-entry-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-agent-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.log-action-text { color: var(--text); flex: 1; text-transform: capitalize; font-weight: 500; }
.log-expand-hint { font-size: 10px; color: var(--text-muted); background: var(--bg-elevated); padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.log-time { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

.log-detail-panel {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.log-detail-grid { display: flex; flex-direction: column; gap: 6px; }
.log-detail-row { display: flex; gap: 12px; font-size: 13px; line-height: 1.6; }
.log-detail-key { color: var(--text-muted); min-width: 100px; flex-shrink: 0; font-weight: 600; }
.log-detail-val { color: var(--text); word-break: break-word; }
.log-suggestions { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; gap: 12px; font-size: 13px; }
.log-suggestions .log-detail-key { color: var(--primary); }

/* ═══════════════════════════════════════════
   REDDIT QUEUE
   ═══════════════════════════════════════════ */
.reddit-queue-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; gap: 12px; }

.reddit-card {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; margin-bottom: 14px; transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.reddit-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.reddit-card-header { margin-bottom: 10px; }
.reddit-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reddit-sub { font-size: 12px; font-weight: 700; color: #ff4500; }
.reddit-score { font-size: 12px; font-weight: 600; }
.reddit-stats { font-size: 12px; color: var(--text-muted); }

.reddit-title {
  display: block; font-size: 16px; font-weight: 600; color: var(--text);
  margin-bottom: 8px; line-height: 1.5; text-decoration: none;
  transition: color 0.2s ease;
}
.reddit-title:hover { color: var(--primary); }

.reddit-body { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }

.reddit-draft-section { margin: 14px 0; }
.reddit-draft-label { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.reddit-draft-text {
  width: 100%; padding: 12px 14px; background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 14px;
  line-height: 1.6; resize: vertical; transition: all 0.2s ease;
}
.reddit-draft-text:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }

.reddit-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-data-section {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.admin-data-section h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.admin-data-section p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.admin-data-actions { display: flex; gap: 12px; }

.import-result {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--success-bg);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  color: var(--success);
  font-size: 14px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   ADMIN CHAT
   ═══════════════════════════════════════════ */
.admin-chat-wrap {
  display: flex;
  height: 540px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-chat-sidebar {
  width: 280px;
  min-width: 280px;
  border-right: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}

.admin-chat-sidebar-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.admin-chat-sidebar-header h3 { font-size: 15px; font-weight: 600; }

.admin-convo-list { flex: 1; overflow-y: auto; }

.convo-delete {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: rgba(255,255,255,0.3);
  transition: color 0.15s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.convo-delete:hover { color: var(--alert); }
.admin-convo-info { flex: 1; min-width: 0; }

.admin-convo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.admin-convo-item:hover { background: var(--bg-elevated); }
.admin-convo-item.active { background: var(--primary-light); border-left: 3px solid var(--primary); }

.admin-convo-name { font-weight: 600; font-size: 14px; color: var(--text); }
.admin-convo-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; margin-top: 2px; }
.admin-convo-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.admin-chat-empty-list { padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }

.admin-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-width: 0;
}

.admin-chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-muted);
  font-size: 14px;
}

.admin-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-msg {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
}

.admin-msg.visitor {
  background: var(--bg-elevated);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.admin-msg.admin {
  background: var(--gradient);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.admin-msg-sender { font-size: 11px; font-weight: 600; opacity: 0.6; margin-bottom: 2px; }
.admin-msg-text { line-height: 1.5; word-wrap: break-word; }

.admin-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.admin-msg-time { font-size: 10px; color: var(--text-muted); }
.admin-msg.admin .admin-msg-time { color: rgba(255,255,255,0.6); }
.admin-msg-read { font-size: 10px; color: var(--primary); }
.admin-msg.admin .admin-msg-read { color: rgba(255,255,255,0.7); }

.admin-msg-delete {
  background: none; border: none; color: var(--text-muted);
  font-size: 14px; cursor: pointer; padding: 0 2px;
  opacity: 0; transition: opacity 0.2s;
  line-height: 1;
}
.admin-msg:hover .admin-msg-delete { opacity: 0.6; }
.admin-msg-delete:hover { opacity: 1 !important; color: var(--alert); }

.admin-chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.admin-chat-input-area input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}
.admin-chat-input-area input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }

/* Typing indicator */
.typing-dots {
  display: flex;
  gap: 5px;
  padding: 4px 0;
}
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Message status */
.chat-msg-status {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  margin-top: 3px;
  text-align: right;
}
.chat-msg-status[data-status="read"] { color: var(--primary); opacity: 0.8; }

/* ═══════════════════════════════════════════
   CHAT WIDGET
   ═══════════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}
.chat-widget.chat-expanded {
  bottom: 0;
  right: 0;
}

.chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(26, 21, 53, 0.45);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.2s;
}
.chat-toggle:hover {
  transform: scale(1.08);
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 4px 20px rgba(167,139,250,0.2);
}

.chat-window {
  display: none;
  flex-direction: column;
  position: relative;
  width: 380px;
  height: 560px;
  background: rgba(19, 16, 42, 0.7);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(167,139,250,0.2);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(167,139,250,0.08), -4px -4px 24px rgba(0,0,0,0.15);
  animation: chatUp 0.25s ease-out;
}
@keyframes chatUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  flex-shrink: 0;
}
.chat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid rgba(19,16,42,0.55);
}
.chat-header-title {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.chat-header-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.chat-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.chat-close:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 76px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}
.chat-body::-webkit-scrollbar { width: 3px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.chat-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  word-wrap: break-word;
  animation: msgIn 0.2s ease-out;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: rgba(255,255,255,0.08);
  color: #e8e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.admin {
  background: rgba(255,255,255,0.08);
  color: #e8e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg-label {
  font-size: 10px;
  color: #34d399;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.chat-msg.user {
  background: #a78bfa;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}
.chat-msg.user .chat-msg-time { text-align: right; color: rgba(255,255,255,0.5); }

/* Topic arrows */
.chat-suggestions-wrap {
  display: none;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: transparent;
}
.chat-suggestions-wrap:has(.chat-suggestions[style*="flex"]) { display: flex; }
.chat-sug-arrow {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 22px;
  padding: 0 10px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.chat-sug-arrow:hover { color: #ffffff; }
.chat-suggestions {
  display: none;
  gap: 8px;
  padding: 12px 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  flex: 1;
}
.chat-suggestions::-webkit-scrollbar { display: none; }
.chat-suggestion-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8e8f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-suggestion-btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.2); }

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: transparent;
}
.chat-input-area input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8e8f0;
  padding: 11px 16px;
  border-radius: 8px;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.chat-input-area input:focus { border-color: rgba(255,255,255,0.25); }
.chat-input-area input::placeholder { color: rgba(255,255,255,0.35); }
.chat-input-area button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.chat-input-area button:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); }

.chat-typing { background: rgba(255,255,255,0.08) !important; border: none !important; }

/* Chat widget typing dots (dark theme) */
.chat-widget .typing-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.35);
  animation: typingBounce 1.2s infinite;
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Chat feedback */
.chat-feedback { display: flex; gap: 4px; margin-top: 6px; }
.chat-fb-btn {
  background: none; border: none; font-size: 14px; cursor: pointer;
  opacity: 0.4; transition: opacity 0.15s; padding: 0 3px;
}
.chat-fb-btn:hover { opacity: 1; }
.chat-fb-done { font-size: 11px; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════ */
body.dark-mode {
  background: #13102a;
  color: #e8e8f0;
}

/* Nav */
body.dark-mode #navbar { background: rgba(26,21,53,0.7); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); border-bottom: 1px solid rgba(255,255,255,0.06); }
body.dark-mode .logo { color: #fff; }
body.dark-mode .hamburger span { background: #fff; }
body.dark-mode .nav-link { color: rgba(255,255,255,0.6); }
body.dark-mode .nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
body.dark-mode .nav-user { color: rgba(255,255,255,0.8); border-left-color: rgba(255,255,255,0.1); }

/* Drawer */
body.dark-mode .nav-links { background: #1a1535; box-shadow: -8px 0 40px rgba(0,0,0,0.4); }
body.dark-mode .nav-overlay { background: rgba(0,0,0,0.6); }
body.dark-mode .nav-drawer-logo { color: #fff; }
body.dark-mode .nav-drawer-close { color: rgba(255,255,255,0.6); }
body.dark-mode .nav-drawer-close:hover { color: #fff; }
body.dark-mode .nav-links .nav-link { color: rgba(255,255,255,0.7); }
body.dark-mode .nav-links .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
body.dark-mode .nav-links .nav-link::after { color: rgba(255,255,255,0.25); }
body.dark-mode .nav-links .nav-link:hover::after { color: rgba(255,255,255,0.6); }
body.dark-mode .drawer-user-info { border-bottom-color: rgba(255,255,255,0.08); }
body.dark-mode .drawer-user-name { color: #fff; }
body.dark-mode .drawer-user-plan { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); }
body.dark-mode .drawer-signout { border-top-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5) !important; }

/* All screens */
body.dark-mode .screen { background: #13102a; color: #e8e8f0; }

/* Dashboard */
body.dark-mode .dashboard-greeting h2 { color: #fff; }
body.dark-mode .dashboard-plan { color: rgba(255,255,255,0.6); }
body.dark-mode .plan-badge { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }
body.dark-mode .section-header h3 { color: #fff; }
body.dark-mode .stat-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); box-shadow: none; }
body.dark-mode .stat-card:hover { background: rgba(255,255,255,0.08); }
body.dark-mode .stat-card-num { color: #fff; }
body.dark-mode .stat-card-label { color: rgba(255,255,255,0.5); }
body.dark-mode .stat-card-icon { color: rgba(255,255,255,0.4); }
body.dark-mode .bill-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); border-left-color: #a78bfa; box-shadow: none; }
body.dark-mode .bill-card:hover { background: rgba(255,255,255,0.08); border-left-color: #c4b5fd; }
body.dark-mode .bill-card-amount { color: #fff; }
body.dark-mode .bill-card-icon { color: rgba(255,255,255,0.4); }
body.dark-mode .bill-card-arrow { color: rgba(255,255,255,0.3); }
body.dark-mode .bill-card:hover .bill-card-arrow { color: #a78bfa; }

/* Auth */
body.dark-mode .auth-container { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
body.dark-mode .auth-container h2 { color: #fff; }
body.dark-mode .form-group label { color: rgba(255,255,255,0.7); }
body.dark-mode .form-group input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #e8e8f0; }
body.dark-mode .form-group input::placeholder { color: rgba(255,255,255,0.3); }
body.dark-mode .auth-divider { color: rgba(255,255,255,0.3); }
body.dark-mode .password-requirements .req { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35); }
body.dark-mode .password-requirements .req.met { background: rgba(16,185,129,0.15); color: #34d399; }
body.dark-mode .auth-divider::before, body.dark-mode .auth-divider::after { background: rgba(255,255,255,0.1); }
body.dark-mode .auth-toggle { color: rgba(255,255,255,0.5); }

/* Upload */
body.dark-mode .upload-container h2 { color: #fff; }
body.dark-mode .upload-container p { color: rgba(255,255,255,0.6); }
body.dark-mode .upload-zone { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.5); }
body.dark-mode .upload-zone:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }

/* Buttons */
body.dark-mode .btn-primary { background: #fff; color: #1a1535; box-shadow: none; }
body.dark-mode .btn-primary:hover { background: #eeedeb; }
body.dark-mode .btn-outline { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
body.dark-mode .btn-outline:hover { border-color: rgba(255,255,255,0.3); color: #fff; background: rgba(255,255,255,0.05); }

/* Price checker */
body.dark-mode .price-checker-container h2 { color: #fff; }
body.dark-mode .price-checker-container > p { color: rgba(255,255,255,0.6); }
body.dark-mode .search-row input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #e8e8f0; }
body.dark-mode .search-row .btn { background: #fff; color: #1a1535; }
body.dark-mode .price-result { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
body.dark-mode .price-result-code { color: #fff; }
body.dark-mode .price-result-desc { color: rgba(255,255,255,0.6); }
body.dark-mode .price-detail { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
body.dark-mode .price-detail h3 { color: #fff; }
body.dark-mode .price-item { background: rgba(255,255,255,0.05); }
body.dark-mode .price-label { color: rgba(255,255,255,0.5); }
body.dark-mode .price-value { color: #fff; }

/* Empty/loading states */
body.dark-mode .empty-state { color: rgba(255,255,255,0.4); }
body.dark-mode .loading { color: rgba(255,255,255,0.4); }
body.dark-mode .error-state { color: rgba(255,255,255,0.5); }

/* Tags and badges */
body.dark-mode .badge, body.dark-mode .tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }

/* Misc */
body.dark-mode .section-header { border-bottom-color: rgba(255,255,255,0.06); }
body.dark-mode .file-preview { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #e8e8f0; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .hero-sub { font-size: 16px; }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .stat-divider { width: 60px; height: 1px; }

  .proof-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }

  .steps { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-card.featured { /* no special styles */ }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .dashboard-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .search-row { flex-direction: column; }

  .bill-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dispute-actions { flex-direction: column; }

  .nav-inner { padding: 0 16px; height: 64px; }
  .nav-link { font-size: 13px; padding: 6px 10px; }

  .auth-container {
    margin: 16px 12px;
    padding: 28px 20px;
    max-width: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg);
  }
  .auth-container h2 { font-size: 24px; margin-bottom: 20px; }
  .auth-container .form-group { margin-bottom: 14px; }
  .auth-container .form-group label { display: none; }
  .auth-container .form-group input {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius);
  }
  .auth-container .btn { padding: 14px; font-size: 15px; }
  .auth-divider { margin: 16px 0; }
  .auth-toggle { margin-top: 14px; }

  .pricing-section { padding: 40px 16px 60px; }
  .pricing-section h2 { font-size: 28px; margin-bottom: 24px; }
  .pricing-card { padding: 28px 24px; }
  .pricing-card .price { font-size: 40px; margin-bottom: 20px; }
  .pricing-card ul { margin-bottom: 20px; }

  #screen-landing .how-it-works { padding: 56px 16px; }
  .how-it-works h2 { font-size: 28px; }
  .social-proof h2 { font-size: 28px; }
  #screen-landing .social-proof { padding: 56px 16px; }
  .cta-banner { padding: 56px 16px; }
  .cta-banner h2 { font-size: 28px; }

  .admin-chat-wrap { flex-direction: column; height: calc(100vh - 240px); }
  .admin-chat-sidebar { width: 100%; min-width: unset; max-height: 180px; border-right: none; border-bottom: 1.5px solid var(--border); }
  .admin-convo-item { padding: 10px 14px; }
  .admin-msg { max-width: 85%; }

  .chat-window { width: calc(100vw - 32px); right: -12px; height: 70vh; max-height: 540px; }

  .dashboard-wrap { padding: 0 16px; }
  .admin-wrap { padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 28px; }
  .hero-stats { padding: 20px; gap: 16px; }
}
