/* ══════════════════════════════════════════════════════════════════════════
   TaxSnooze — World-Class UX Design System v2.0
   Redesigned for intuitive navigation and minimal-guidance workflows
   ══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

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

:root {
  /* Color system */
  --bg:         #f5fbf8;
  --bg-1:       #ffffff;
  --bg-2:       #eaf4f1;
  --bg-3:       #dcebe6;
  --bg-elevated: #cfe2db;
  --border:     rgba(44,70,74,0.18);
  --border-lg:  rgba(44,70,74,0.28);
  --border-focus: rgba(47,111,122,0.38);
  --text:       #1e2f33;
  --text-1:     #1e2f33;
  --text-2:     #3f5c61;
  --text-3:     #648289;
  --accent:     #2f6f7a;
  --accent-dim: rgba(47,111,122,0.12);
  --accent-2:   #5f8f4f;
  --danger:     #b42318;
  --warn:       #9a6a13;
  --success:    #2f7f4d;
  --surface:    var(--bg-1);
  --card-bg:    var(--bg-1);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  /* Border radius */
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow:     0 4px 18px rgba(44,70,74,0.16);
  --shadow-lg:  0 10px 40px rgba(44,70,74,0.22);
  --shadow-glow: 0 0 20px rgba(47,111,122,0.2);

  /* Typography */
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'IBM Plex Sans', sans-serif;
  --max-w:      1480px;
  --content-pad: clamp(14px, 1.9vw, 34px);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --sidebar-w: 256px;
  --sidebar-collapsed-w: 72px;
  --nav-h: 64px;
}

body.theme-alt {
  --bg: #f6fbff;
  --bg-1:       #ffffff;
  --bg-2: #edf4fb;
  --bg-3: #e2ecf8;
  --bg-elevated: #d8e6f4;
  --border: rgba(40,68,98,0.18);
  --border-lg: rgba(40,68,98,0.24);
  --border-focus: rgba(47,95,152,0.45);
  --text: #223a53;
  --text-1: #223a53;
  --text-2: #476889;
  --text-3: #6d88a5;
  --accent: #2f5f98;
  --accent-dim: rgba(47,95,152,0.12);
  --accent-2: #6da5c7;
  --danger: #b42318;
  --warn:       #9a6a13;
  --success: #1f7a49;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 8% -8%, rgba(47,111,122,0.12), transparent 36%),
    radial-gradient(circle at 92% -10%, rgba(95,143,79,0.1), transparent 42%),
    linear-gradient(145deg, #f5fbf8 0%, #ffffff 42%, #eaf4f1 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body.theme-alt {
  background:
    radial-gradient(circle at 8% -6%, rgba(47,95,152,0.1), transparent 38%),
    radial-gradient(circle at 94% -12%, rgba(109,165,199,0.11), transparent 44%),
    linear-gradient(145deg, #f6fbff 0%, #ffffff 40%, #edf4fb 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.1;
  mix-blend-mode: multiply;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(47,111,122,0.11), transparent 55%);
}

body.theme-alt::after {
  background: radial-gradient(circle at 50% 120%, rgba(47,95,152,0.11), transparent 55%);
}

::selection {
  background: rgba(47,111,122,0.24);
  color: #fff;
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--content-pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); z-index: 9999; font-weight: 600; font-size: 14px; text-decoration: none; }
.skip-link:focus { top: 8px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-full); border: none;
  cursor: pointer; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
  box-shadow: 0 4px 16px rgba(47,111,122,0.2);
  position: relative; overflow: hidden;
}
.btn-primary:hover { background: #275f68; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(47,111,122,0.26); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(47,111,122,0.2); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary.btn-lg { font-size: 17px; padding: 16px 36px; }
.btn-primary-sm {
  font-size: 13px; padding: 9px 20px; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; border-radius: var(--radius-full);
  text-decoration: none; transition: var(--transition); letter-spacing: 0.01em;
  border: none; cursor: pointer;
}
.btn-primary-sm:hover { background: #275f68; color: #fff; }
.btn-ghost {
  color: var(--text); text-decoration: none; font-size: 14px;
  transition: var(--transition); background: none; border: none;
  cursor: pointer; padding: 8px 12px; border-radius: var(--radius-sm);
}
.btn-ghost:hover { color: var(--accent); background: rgba(47,111,122,0.05); }
.btn-text { color: var(--text); text-decoration: none; font-size: 15px; transition: var(--transition); }
.btn-text:hover { color: var(--accent); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-lg); color: var(--text);
  padding: 13px 28px; border-radius: var(--radius-full); font-size: 15px;
  font-family: var(--font-body); cursor: pointer;
  background: transparent; text-decoration: none;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(47,111,122,0.05); }
.btn-outline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Button states */
.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(0,0,0,0.15);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loading { pointer-events: none; opacity: 0.8; }
.btn-loading .btn-text-inner { display: none; }
.btn-loading .btn-spinner { display: inline-block; }
.btn-spinner { display: none; }

/* ── Free Tool Flashy CTA ─────────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px #1f4f8244, 0 0 20px #1f4f8222; }
  50% { box-shadow: 0 0 16px #1f4f8288, 0 0 40px #1f4f8244; }
}
@keyframes badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.btn-free-tool {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #ffffff, #eef3f8);
  border: 1px solid #1f4f8266; color: #1f4f82;
  font-weight: 700; font-size: 15px;
  padding: 12px 24px; border-radius: var(--radius-full);
  text-decoration: none; position: relative;
  animation: pulse-glow 2.5s ease-in-out infinite;
  transition: all 0.2s ease;
}
.btn-free-tool:hover {
  border-color: #1f4f82; transform: translateY(-2px);
  box-shadow: 0 0 24px #1f4f8266, 0 0 48px #1f4f8233; color: #fff;
}
.btn-free-tool .free-tag {
  background: #22c55e; color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 4px; text-transform: uppercase;
  letter-spacing: 0.5px; animation: badge-bounce 2s ease-in-out infinite;
}
.nav-links .nav-free-link {
  color: #1f4f82; font-weight: 600; position: relative;
  background: linear-gradient(90deg, #1f4f82, #2f8f83, #1f4f82);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: shimmer 3s linear infinite;
}
.nav-links .nav-free-link::after {
  content: 'FREE'; position: absolute; top: -8px; right: -28px;
  font-size: 9px; font-weight: 800; background: #22c55e; color: #fff;
  padding: 1px 5px; border-radius: 3px; -webkit-text-fill-color: #fff;
  letter-spacing: 0.3px;
}
.nav-mobile .nav-free-link-mobile {
  color: #1f4f82; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.nav-mobile .nav-free-link-mobile::after {
  content: 'FREE'; font-size: 9px; font-weight: 800;
  background: #22c55e; color: #fff; padding: 2px 6px; border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVIGATION — Redesigned for instant clarity
   ══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled { background: rgba(255,255,255,0.96); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--content-pad);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; background: var(--accent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #fff;
  flex-shrink: 0; letter-spacing: -1px;
  box-shadow: 0 2px 8px rgba(47,111,122,0.25);
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14px; transition: var(--transition); border-radius: var(--radius-sm); padding: 6px 10px; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.btn-primary-sm { background: var(--accent); color: #fff; font-size: 13px; padding: 9px 20px; font-family: var(--font-head); font-weight: 700; border-radius: var(--radius-full); letter-spacing: 0.01em; }
.nav-links a.btn-primary-sm:hover { background: #0a63c4; color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--radius-sm); }
.nav-toggle:hover { background: rgba(255,255,255,0.05); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--transition); }
.nav-mobile { display: none; flex-direction: column; padding: 16px 24px 20px; gap: 12px; border-top: 1px solid var(--border); background: var(--bg-1); }
.nav-mobile a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ══════════════════════════════════════════════════════════════════════════
   HERO — Landing page
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; padding: 160px 0 0;
  overflow: hidden; display: flex; flex-direction: column;
}
.landing-page .hero::before {
  content: '';
  position: absolute;
  width: 34vw;
  min-width: 260px;
  height: 34vw;
  min-height: 260px;
  right: -10vw;
  top: 8vh;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(47,111,122,0.3), rgba(47,111,122,0));
  filter: blur(14px);
  animation: orbitPulse 7s ease-in-out infinite;
  pointer-events: none;
}
.landing-page .hero::after {
  content: '';
  position: absolute;
  width: 28vw;
  min-width: 220px;
  height: 28vw;
  min-height: 220px;
  left: -8vw;
  top: 24vh;
  border-radius: 36% 64% 72% 28% / 40% 31% 69% 60%;
  background: radial-gradient(circle at center, rgba(95,143,79,0.22), rgba(95,143,79,0));
  filter: blur(18px);
  animation: orbitPulse 9s ease-in-out infinite reverse;
  pointer-events: none;
}
.landing-page .hero .container {
  max-width: 1480px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(47,111,122,0.1) 0%, rgba(95,143,79,0.05) 40%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(47,111,122,0.08); border: 1px solid rgba(47,111,122,0.2);
  color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: var(--radius-full); margin-bottom: 32px; width: fit-content;
}
.badge-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes auditPulse { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }
.hero-title {
  font-family: var(--font-head); font-size: clamp(42px, 6vw, 80px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 24px; max-width: 820px;
}
.landing-page .hero-title {
  max-width: 940px;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0,0,0,0.36);
}
.hero-accent {
  color: var(--accent);
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.landing-page .hero-accent {
  color: var(--accent);
  animation: none;
}
.landing-page .hero-sub {
  max-width: 640px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
}
.landing-page .hero-badge {
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 26px rgba(0,0,0,0.28);
}
.landing-page .hero-trust {
  gap: 12px;
}
.landing-page .trust-item {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.landing-page .section-header h2 {
  letter-spacing: 0.015em;
  text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 54px);
}
.landing-page .step-card,
.landing-page .price-card,
.landing-page .testimonial-card,
.landing-page .security-card {
  box-shadow: 0 22px 40px rgba(0,0,0,0.24);
}
.landing-page .price-card,
.landing-page .testimonial-card,
.landing-page .security-card {
  border-radius: 26px;
}
.landing-page .price-card {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.012)),
    linear-gradient(160deg, rgba(47,111,122,0.07), var(--bg-2));
}
.landing-page .price-card::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -1px;
  width: 82px;
  height: 82px;
  background: linear-gradient(135deg, rgba(95,143,79,0.65), rgba(47,111,122,0.35));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.16;
  pointer-events: none;
}
.landing-page .price-amount {
  font-size: clamp(52px, 5vw, 72px);
}
@keyframes accentFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 540px; line-height: 1.65; margin-bottom: 40px; font-weight: 300; }
.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); }
.trust-check { color: var(--accent); font-size: 12px; }
.hero-deadline-bar {
  background: rgba(47,111,122,0.04); border-top: 1px solid rgba(47,111,122,0.12);
  padding: 14px 0; margin-top: 40px;
}
.hero-deadline-bar .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.deadline-label { font-size: 13px; color: var(--text-3); }
.deadline-date { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--accent); }
.deadline-countdown { font-size: 12px; color: var(--text-3); background: var(--bg-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: var(--radius-full); }
@keyframes orbitPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; }
  50% { transform: translateY(-16px) scale(1.08); opacity: 1; }
}

/* ── Section Shared ─────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); padding: 5px 14px; border-radius: var(--radius-full); margin-bottom: 16px; }
.section-header h2 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-2); max-width: 480px; margin: 0 auto; }

/* ── How it works ───────────────────────────────────────────────────────── */
.how-it-works { padding: 40px 0 120px; }
.steps-grid { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; gap: 0; }
.step-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.step-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(47,111,122,0.05) 0%, transparent 60%); opacity: 0; transition: var(--transition); }
.step-card:hover { border-color: rgba(47,111,122,0.3); transform: translateY(-4px); }
.step-card:hover::before { opacity: 1; }
.step-num { font-family: var(--font-head); font-size: 64px; font-weight: 800; color: rgba(47,111,122,0.15); line-height: 1; margin-bottom: 20px; letter-spacing: -0.04em; }
.step-card h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step-card p { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.step-connector { display: flex; align-items: center; justify-content: center; }
.step-connector::after { content: '→'; font-size: 24px; color: var(--text-3); }

/* ── Comparison ─────────────────────────────────────────────────────────── */
.comparison { padding: 80px 0; background: var(--bg-1); }
.compare-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; max-width: 920px; margin: 0 auto; }
.compare-header { display: grid; grid-template-columns: 1fr 140px 140px; background: var(--bg-3); padding: 16px 28px; font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-3); text-transform: uppercase; }
.compare-us { color: var(--accent); }
.compare-row { display: grid; grid-template-columns: 1fr 140px 140px; padding: 16px 28px; border-top: 1px solid var(--border); font-size: 14px; align-items: center; transition: var(--transition); }
.compare-row:hover { background: var(--bg-3); }
.compare-feature { color: var(--text-2); }
.compare-yes { color: var(--accent); font-weight: 600; }
.compare-no { color: var(--text-3); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing { padding: 120px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto 32px; }
.price-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px 40px;
  position: relative; overflow: hidden; text-align: center;
  transition: var(--transition);
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(144,208,198,0.2); }
.price-featured {
  border-color: rgba(47,111,122,0.3);
  background: linear-gradient(135deg, rgba(47,111,122,0.06) 0%, var(--bg-2) 60%);
}
.price-badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); letter-spacing: 0.04em; }
.price-name { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.price-amount { font-family: var(--font-head); font-size: 60px; font-weight: 800; line-height: 1; color: var(--text); margin-bottom: 4px; letter-spacing: -0.04em; }
.price-amount span { font-size: 28px; color: var(--text-2); }
.price-form { font-size: 13px; color: var(--text-3); margin-bottom: 32px; }
.price-features { list-style: none; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.price-features li { font-size: 14px; color: var(--text-2); display: flex; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.price-card .btn-primary { width: 100%; justify-content: center; }
.pricing-note { text-align: center; font-size: 13px; color: var(--text-3); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { padding: 120px 0; background: var(--bg-1); }
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; text-align: left;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  color: var(--text); transition: var(--transition);
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq-icon { font-size: 22px; color: var(--text-3); flex-shrink: 0; transition: var(--transition); line-height: 1; }
.faq-q.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s ease; }
.faq-a.open { max-height: 300px; padding-bottom: 20px; }
.faq-a p { color: var(--text-2); font-size: 15px; line-height: 1.7; }

/* ── CTA Section ────────────────────────────────────────────────────────── */
.cta-section { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, rgba(47,111,122,0.08) 0%, rgba(95,143,79,0.05) 100%);
  border: 1px solid rgba(47,111,122,0.2); border-radius: var(--radius-xl);
  padding: 80px; text-align: center;
}
.cta-box h2 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-box p { font-size: 17px; color: var(--text-2); max-width: 480px; margin: 0 auto 40px; }

/* ── Trust Bar ──────────────────────────────────────────────────────────── */
.trust-bar { padding: 48px 0; border-bottom: 1px solid var(--border); }
.trust-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust-bar-item { display: flex; align-items: center; gap: 14px; }
.trust-bar-icon { width: 36px; height: 36px; color: var(--accent); flex-shrink: 0; }
.trust-bar-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.trust-bar-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials { padding: 100px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testimonial-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(47,111,122,0.3); transform: translateY(-2px); }
.testimonial-stars { color: #fbbf24; font-size: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; color: var(--text-2); line-height: 1.7; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2f8f83);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 12px; color: var(--text-3); }

/* ── Security Section ───────────────────────────────────────────────────── */
.security-section { padding: 100px 0; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.security-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; transition: var(--transition);
}
.security-card:hover { border-color: rgba(47,111,122,0.3); }
.security-icon { width: 48px; height: 48px; margin: 0 auto 20px; color: var(--accent); }
.security-icon svg { width: 100%; height: 100%; }
.security-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.security-card p { font-size: 14px; color: var(--text-3); line-height: 1.65; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { font-size: 14px; color: var(--text-3); line-height: 1.65; margin-bottom: 20px; max-width: 280px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 11px; color: var(--text-3); border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.footer-links a { font-size: 14px; color: var(--text-3); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; }
.footer-bottom p { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.footer-disclaimer { margin-top: 8px; opacity: 0.7; }

/* ══════════════════════════════════════════════════════════════════════════
   AUTH PAGES — Login / Register
   ══════════════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px; position: relative;
}
.auth-page::before {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(47,111,122,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  background: var(--bg-1); border: 1px solid var(--border-lg);
  border-radius: var(--radius-xl); padding: 48px 40px;
  width: 100%; max-width: 480px; position: relative; z-index: 1;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo a { text-decoration: none; }
.auth-title { font-family: var(--font-head); font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--text-2); font-size: 15px; margin-bottom: 32px; }
.auth-link { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-3); }
.auth-link a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS — Clean, accessible, responsive
   ══════════════════════════════════════════════════════════════════════════ */
label {
  color: var(--text-1);
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; letter-spacing: 0.02em; }
.form-label .required { color: var(--accent); margin-left: 2px; }
.form-input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-lg);
  border-radius: var(--radius); padding: 13px 16px; font-size: 15px;
  font-family: var(--font-body); color: var(--text); outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--border-focus); background: var(--bg-3); box-shadow: 0 0 0 3px rgba(47,111,122,0.08); }
.form-input:invalid:not(:placeholder-shown) { border-color: rgba(248,113,113,0.4); }
.form-input::placeholder { color: var(--text-3); }
.form-select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-lg);
  border-radius: var(--radius); padding: 13px 16px; font-size: 15px;
  font-family: var(--font-body); color: var(--text); outline: none;
  cursor: pointer; transition: var(--transition); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a7e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-select:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(47,111,122,0.08); }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: none; }
.form-error.show { display: block; }
.form-section-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin: 32px 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.form-submit { width: 100%; margin-top: 8px; font-size: 16px; padding: 16px 28px; border-radius: var(--radius); }
.form-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.form-divider span { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; display: none; line-height: 1.5; }
.alert.show { display: block; }
.alert-error { background: rgba(248,113,113,0.06); border: 1px solid rgba(248,113,113,0.2); color: var(--danger); }
.alert-success { background: rgba(52,211,153,0.06); border: 1px solid rgba(52,211,153,0.2); color: var(--success); }
.password-wrapper { position: relative; }
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-2); font-size: 14px; padding: 4px 8px; transition: var(--transition); border-radius: 4px; }
.password-toggle:hover { color: var(--accent); background: rgba(47,111,122,0.05); }
.strength-meter { margin-top: 8px; }
.strength-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: var(--transition); width: 0; }
.strength-fill.weak { width: 25%; background: var(--danger); }
.strength-fill.fair { width: 50%; background: var(--warn); }
.strength-fill.good { width: 75%; background: var(--accent-2); }
.strength-fill.strong { width: 100%; background: var(--success); }
.strength-text { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.checkbox-group label { font-size: 13px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.checkbox-group a { color: var(--accent); text-decoration: none; }

/* ══════════════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT — Redesigned for world-class UX
   ══════════════════════════════════════════════════════════════════════════ */
.dashboard { min-height: 100vh; padding-top: var(--nav-h); display: flex; }

.dashboard-page .dashboard {
  position: relative;
  isolation: isolate;
}
.dashboard-page .dashboard::before {
  content: '';
  position: fixed;
  inset: var(--nav-h) 0 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 12%, rgba(47,111,122,0.14), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(95,143,79,0.14), transparent 34%);
  z-index: -1;
}
.dashboard-page .dashboard::after {
  content: '';
  position: fixed;
  inset: var(--nav-h) 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.42;
  z-index: -1;
}

/* ── Sidebar Navigation ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); background: linear-gradient(170deg, rgba(255,255,255,0.03), var(--bg-1));
  border-right: 1px solid var(--border);
  position: fixed; top: var(--nav-h); left: 0; bottom: 0;
  display: flex; flex-direction: column; padding: 16px 0;
  overflow-y: auto; overflow-x: hidden;
  z-index: 50; transition: transform 0.3s ease;
}
.dashboard-page .sidebar {
  box-shadow: 14px 0 28px rgba(0,0,0,0.2);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar-section { padding: 0 12px; margin-bottom: 6px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
  padding: 10px 12px 6px; margin-bottom: 2px; opacity: 0.8;
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); text-decoration: none; font-size: 13.5px;
  transition: all 0.15s ease; cursor: pointer; border: none;
  background: none; width: 100%; text-align: left;
  position: relative; font-weight: 400;
}
.dashboard-page .sidebar-link {
  border: 1px solid transparent;
}
.sidebar-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(47,111,122,0.1), rgba(47,111,122,0.04));
  color: var(--accent); font-weight: 500;
}
.dashboard-page .sidebar-link.active {
  border-color: rgba(47,111,122,0.28);
  box-shadow: inset 0 0 0 1px rgba(47,111,122,0.08);
}
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.sidebar-link .sidebar-icon { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; opacity: 0.85; }
.sidebar-link.active .sidebar-icon { opacity: 1; }
.sidebar-link .nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: var(--accent); color: #fff;
  padding: 1px 6px; border-radius: var(--radius-full);
  min-width: 16px; text-align: center; line-height: 16px;
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto; padding: 12px; border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm); transition: var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,0.03); }
.user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 12px; color: #fff; flex-shrink: 0;
}
.user-info-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.user-info-email { font-size: 11px; color: var(--text-3); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Main Content Area ──────────────────────────────────────────────────── */
.dash-content {
  margin-left: var(--sidebar-w); flex: 1;
  width: calc(100% - var(--sidebar-w));
  padding: clamp(20px, 2vw, 30px) clamp(18px, 2.8vw, 40px) 48px;
  min-height: calc(100vh - var(--nav-h));
  max-width: calc(100% - var(--sidebar-w));
}
.dashboard-page .dash-content {
  backdrop-filter: blur(1px);
}
.dashboard-page .dash-header h1 {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.dash-header { margin-bottom: 28px; }
.dash-header h1 {
  font-family: var(--font-head); font-size: 26px; font-weight: 800;
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.dash-header p { color: var(--text-2); font-size: 14px; }

/* ── Quick Actions Toolbar ─────────────────────────────────────────────── */
.quick-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 10px 14px;
  background: linear-gradient(170deg, rgba(255,255,255,0.03), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dashboard-page .quick-actions {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  z-index: 15;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.quick-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.15s ease; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2);
}
.quick-action-btn:hover {
  border-color: rgba(47,111,122,0.3); color: var(--text);
  background: rgba(47,111,122,0.04); transform: translateY(-1px);
}
.quick-action-btn.primary {
  background: var(--accent); color: #fff;
  border-color: transparent; font-weight: 600;
  box-shadow: 0 2px 10px rgba(47,111,122,0.2);
}
.quick-action-btn.primary:hover {
  background: #2d676f; box-shadow: 0 4px 14px rgba(47,111,122,0.3);
  color: #fff;
}

/* ── Dashboard Stat Cards ──────────────────────────────────────────────── */
.dash-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.dash-card {
  background: linear-gradient(155deg, rgba(255,255,255,0.03), var(--bg-1)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  transition: all 0.2s ease; position: relative; overflow: hidden;
}
.dash-card:hover { border-color: rgba(144,208,198,0.16); transform: translateY(-1px); }
.dashboard-page .dash-card {
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(0,0,0,0.2);
}
.dash-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.dash-card:hover::after { opacity: 0.4; }
.dash-card-label { font-size: 11px; color: var(--text-3); margin-bottom: 8px; letter-spacing: 0.04em; font-weight: 500; text-transform: uppercase; }
.dash-card-value { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.2; }
.dash-card-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.extensions-table {
  background: linear-gradient(165deg, rgba(255,255,255,0.025), var(--bg-1)); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.dashboard-page .extensions-table,
.dashboard-page .form-card {
  border-radius: 18px;
  box-shadow: 0 14px 24px rgba(0,0,0,0.2);
}
.table-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.table-header h3 { font-family: var(--font-head); font-size: 14px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg-2); padding: 10px 16px; text-align: left;
  font-size: 10px; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td {
  padding: 12px 16px; font-size: 13px; color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(47,111,122,0.02); }
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: var(--radius-full); white-space: nowrap;
}
.status-accepted { background: rgba(52,211,153,0.12); color: var(--success); }
.status-pending { background: rgba(251,191,36,0.12); color: var(--warn); }
.status-rejected { background: rgba(248,113,113,0.08); color: var(--danger); }

/* ── Form Cards ────────────────────────────────────────────────────────── */
.submit-page { padding: 0; max-width: 780px; }
.submit-page .dash-header { margin-bottom: 24px; }
.form-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.02), var(--bg-1)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 16px;
  transition: border-color 0.2s;
}
.form-card:focus-within { border-color: rgba(47,111,122,0.12); }
.form-card-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.form-card-title .card-icon { font-size: 17px; }

/* Extension type buttons */
.ext-type-btn {
  flex: 1; min-width: 150px; padding: 14px 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-lg);
  background: var(--bg-2); color: var(--text-2); cursor: pointer;
  text-align: left; font-size: 14px; transition: all 0.2s;
}
.ext-type-btn:hover { border-color: rgba(47,111,122,0.35); background: rgba(47,111,122,0.04); }
.ext-type-btn--active {
  border-color: var(--accent); background: rgba(47,111,122,0.08); color: var(--text);
  box-shadow: 0 0 0 1px var(--accent), 0 2px 8px rgba(47,111,122,0.1);
}

/* Summary box */
.summary-box {
  background: var(--accent-dim); border: 1px solid rgba(47,111,122,0.2);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px;
}
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13px; }
.summary-row:not(:last-child) { border-bottom: 1px solid rgba(47,111,122,0.1); }
.summary-label { color: var(--text-2); }
.summary-value { font-weight: 600; color: var(--text); }
.summary-value.accent { color: var(--accent); }

/* ── Progress Steps ─────────────────────────────────────────────────────── */
.progress-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px; padding: 14px 18px;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.progress-step { display: flex; align-items: center; gap: 8px; flex: 1; }
.progress-step:last-child { flex: 1; }
.step-circle {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--border-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--text-3); flex-shrink: 0;
  transition: var(--transition);
}
.step-circle.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.step-circle.done { border-color: var(--success); background: var(--success); color: #0b1120; }
.step-label-wrap { display: flex; flex-direction: column; }
.step-name { font-size: 12px; font-weight: 500; color: var(--text-3); transition: var(--transition); }
.step-name.active { color: var(--text); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 10px; border-radius: 1px; }
.step-line.done { background: var(--success); opacity: 0.6; }

/* ── Success State ──────────────────────────────────────────────────────── */
.success-state { text-align: center; padding: 48px 28px; }
.success-icon { font-size: 52px; margin-bottom: 20px; animation: bounceIn 0.6s cubic-bezier(0.68,-0.55,0.27,1.55); }
@keyframes bounceIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-state h2 { font-family: var(--font-head); font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.success-state p { color: var(--text-2); margin-bottom: 8px; font-size: 14px; }
.ack-number {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--accent); margin: 14px auto; display: inline-block;
  letter-spacing: 0.04em;
}

/* ── Sidebar Mobile ─────────────────────────────────────────────────────── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 49; backdrop-filter: blur(4px); }
.sidebar-toggle-btn {
  display: none; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer;
  color: var(--text); font-size: 13px; align-items: center; gap: 8px; margin-bottom: 16px;
  font-weight: 500;
}

/* ── Mobile Bottom Navigation ──────────────────────────────────────────── */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 9px; font-weight: 600;
  text-decoration: none; transition: var(--transition);
  border: none; background: none; cursor: pointer;
  letter-spacing: 0.02em;
}
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--accent); }
.mobile-nav-item .nav-icon { font-size: 18px; line-height: 1; }

/* ── IRS mode banner ─────────────────────────────────────────────────────── */
.irs-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.5; margin-bottom: 20px; border: 1px solid;
}
.irs-banner--live { background: rgba(47,111,122,0.06); border-color: rgba(47,111,122,0.2); color: var(--text-2); }
.irs-banner--demo { background: rgba(251,146,60,0.06); border-color: rgba(251,146,60,0.2); color: var(--text-2); }
.irs-banner strong { color: var(--text); }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite; }
.banner-dot--live { background: var(--accent); }
.banner-dot--demo { background: var(--warn); }

/* ── Review / Success mode badges ────────────────────────────────────────── */
.review-mode-note { font-size: 12px; padding: 10px 14px; border-radius: var(--radius-sm); line-height: 1.55; }
.review-mode-note--live { background: rgba(47,111,122,0.06); color: var(--accent); border: 1px solid rgba(47,111,122,0.15); }
.review-mode-note--demo { background: rgba(251,146,60,0.06); color: var(--warn); border: 1px solid rgba(251,146,60,0.2); }
.success-mode-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-full); margin: 8px auto 0;
  letter-spacing: 0.05em;
}
.success-mode-badge--live { background: rgba(47,111,122,0.1); color: var(--accent); }
.success-mode-badge--demo { background: rgba(251,146,60,0.1); color: var(--warn); }

/* ── Agent Chat ────────────────────────────────────────────────────────── */
.typing-dots { animation: typingPulse 1.2s ease-in-out infinite; }
@keyframes typingPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
#agentMessages .review-row,
#agentReviewCard .review-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
#agentReviewCard .review-row span:first-child { color: var(--text-3); font-weight: 500; }
#agentReviewCard .review-row span:last-child { font-weight: 600; text-align: right; }
#agentMessages::-webkit-scrollbar { width: 5px; }
#agentMessages::-webkit-scrollbar-track { background: transparent; }
#agentMessages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Empty States ──────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 28px;
  border: 1px dashed var(--border-lg); border-radius: var(--radius);
  background: rgba(47,111,122,0.02);
}
.empty-state-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.85; }
.empty-state h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-2); font-size: 13px; margin-bottom: 18px; max-width: 380px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.dashboard-legal-note {
  background: rgba(248,200,76,0.07);
  border: 1px solid rgba(248,200,76,0.2);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
}
.dashboard-legal-note span {
  color: var(--text-2);
}
.dashboard-legal-note a {
  color: var(--accent);
}
.dashboard-page .dashboard-legal-note {
  backdrop-filter: blur(10px);
}

.theme-toggle-btn {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 1200;
  border: 1px solid var(--border-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .theme-toggle-btn {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    font-size: 10px;
    padding: 9px 12px;
  }
}

/* ── Contextual Help ──────────────────────────────────────────────────── */
.help-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--border-lg); color: var(--text-3);
  font-size: 9px; font-weight: 700; cursor: help;
  margin-left: 5px; transition: var(--transition);
}
.help-tip:hover { background: var(--accent-dim); color: var(--accent); }

/* ── Breadcrumb ────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-3); margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { opacity: 0.5; font-size: 10px; }
.breadcrumb .current { color: var(--text-2); font-weight: 500; }

/* ── Section Transitions ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-animate { animation: fadeInUp 0.25s ease forwards; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first optimizations
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .dash-content { padding: 24px 20px 48px; }
}

@media (min-width: 1200px) {
  /* Section-specific desktop widths for better use of wide screens without over-stretching dense forms. */
  .dashboard-page #section-file .form-card,
  .dashboard-page #section-history .form-card,
  .dashboard-page #section-tools .form-card,
  .dashboard-page #section-calculator .form-card,
  .dashboard-page #section-admin .form-card {
    max-width: min(100%, 1140px) !important;
  }

  .dashboard-page #section-profile .form-card,
  .dashboard-page #section-preparer .form-card {
    max-width: min(100%, 980px) !important;
  }

  .dashboard-page #brandingCard,
  .dashboard-page #qboCard,
  .dashboard-page #subscriptionCard,
  .dashboard-page #pollCard {
    max-width: min(100%, 920px) !important;
  }

  .dashboard-page #firmMembersCard,
  .dashboard-page #apiKeysCard,
  .dashboard-page #webhooksCard,
  .dashboard-page #teamWorkloadCard {
    max-width: min(100%, 1220px) !important;
  }

  .dashboard-page #agentChatSection,
  .dashboard-page .submit-page {
    max-width: min(100%, 1220px) !important;
  }
}

@media (min-width: 1440px) {
  .landing-page .hero .container { max-width: 1640px; }
  .dash-content { padding: 22px clamp(34px, 3.2vw, 64px) 56px; }
  .section-header p { max-width: 620px; }
}

@media (min-width: 1700px) {
  .container,
  .nav-inner,
  .hero .container {
    max-width: 1640px;
  }
  .dash-content {
    padding-inline: clamp(42px, 4vw, 78px);
  }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-connector { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }

  /* Sidebar becomes overlay */
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-overlay.show { display: block; }
  .dash-content { margin-left: 0; padding: 16px 14px 88px; max-width: 100%; }
  .sidebar-toggle-btn { display: flex; }
  .submit-page { padding: 0; }
  .compare-header, .compare-row { grid-template-columns: 1fr 100px 100px; padding: 12px 16px; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; }

  /* Show bottom nav on mobile */
  .mobile-bottom-nav { display: block; }
}

@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-trust { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .auth-card { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
  .dash-header h1 { font-size: 20px; }
  .dash-cards { grid-template-columns: 1fr; }
  .form-card { padding: 18px; }
  .progress-steps { gap: 0; padding: 10px 12px; }
  .step-name { display: none; }
  .trust-bar-inner { grid-template-columns: 1fr; gap: 20px; }
  .trust-bar { padding: 32px 0; }
  .security-grid { grid-template-columns: 1fr; }
  .testimonials, .security-section { padding: 60px 0; }
  .quick-actions { padding: 8px 10px; gap: 6px; }
  .quick-action-btn { padding: 6px 10px; font-size: 11px; }
  .table-header { padding: 10px 14px; }
  thead th { padding: 8px 10px; font-size: 9px; }
  tbody td { padding: 10px; font-size: 12px; }
}

@media (max-width: 400px) {
  .logo-text { display: none; }
  .hero-title { font-size: 36px; }
}

/* ── Focus visible for keyboard navigation ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Print styles ─────────────────────────────────────────────────────── */
@media print {
  .sidebar, .nav, .quick-actions, .mobile-bottom-nav { display: none !important; }
  .dash-content { margin-left: 0 !important; padding: 0 !important; }
  body { background: #fff; color: #000; }
}
