/* ===== CSS VARIABLES ===== */
:root {
  --navy: #001f3f;
  --navy2: #002A4E;
  --blue: #0074b7;
  --blue2: #36749D;
  --teal: #00c9b1;
  --teal2: #00a693;
  --gold: #85714D;
  --gray-dark: #1a2535;
  --gray-mid: #2d3f55;
  --gray-light: #8fa3b8;
  --white: #ffffff;
  --off-white: #e8eef4;
  --border: rgba(0,201,177,0.2);
  --glass: rgba(0,31,63,0.7);
  --glass2: rgba(0,116,183,0.12);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 12px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 32px; height: 64px;
  background: rgba(0, 42, 78, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,201,177,0.12);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo .atlas-badge {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: white;
  box-shadow: 0 0 12px rgba(0,201,177,0.4);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 6px 14px; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  color: var(--gray-light); background: none; border: none; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body); text-decoration: none;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.btn-nav-cta {
  padding: 8px 20px; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  background: var(--teal); color: var(--navy); border: none; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
  box-shadow: 0 0 16px rgba(0,201,177,0.3);
}
.btn-nav-cta:hover { background: #00e6cc; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,201,177,0.5); }

/* ===== HERO ===== */
.hero-section {
  position: relative; z-index: 1;
  min-height: 100vh;
  background: url('/img/tech_hero_bg.png') no-repeat center center;
  background-size: cover;
  display: flex; align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  /* ============================================================
     HERO BACKGROUND DARKNESS — adjust the last value (0.0 = none, 1.0 = black)
     ============================================================ */
  background: rgba(0, 10, 25, 0.7);
  pointer-events: none;
}
.hero {
  position: relative; z-index: 1;
  display: flex; align-items: stretch; gap: 32px; /* stretch = all columns same height */
  padding: 100px 32px 60px;
  max-width: 1300px; margin: 0 auto; width: 100%;
  min-height: 100vh;
}
.hero-col-left {
  flex: 1.2; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 18px;
}
.hero-badge-img { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(0,180,255,0.5)); }
.hero-heading {
  font-family: 'Inter', var(--font-head);
  font-size: 64px; font-weight: 700; line-height: 1.1; margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.hero-sub { font-size: 1.1rem; color: var(--off-white); line-height: 1.5; margin: 0; }
.hero-tagline { font-size: 1rem; color: var(--teal); font-weight: 600; margin: 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 1rem; font-weight: 700;
  background: #00b8a0; color: #ffffff; border: none; cursor: pointer;
  transition: all 0.25s; font-family: var(--font-body);
  box-shadow: 0 0 24px rgba(0,201,177,0.35);
}
.btn-primary:hover { background: #00d4b8; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,201,177,0.5); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  background: rgba(255,255,255,0.07); color: var(--white);
  border: 1px solid rgba(255,255,255,0.15); cursor: pointer;
  transition: all 0.25s; font-family: var(--font-body);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }

/* Hero center card */
.hero-col-center {
  flex: 1; min-width: 240px; min-height: 500px; align-self: stretch;
  display: flex; align-items: stretch; justify-content: center;
}
.hero-steps-card {
  border: 1px solid rgba(0,201,177,0.35);
  border-radius: 14px;
  background: rgba(0,15,30,0.75);
  backdrop-filter: blur(12px);
  width: 100%; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.hero-steps-title {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,201,177,0.2);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--teal); text-transform: uppercase;
}
.hero-steps-list { padding: 6px 0; }
.hero-step-link {
  display: block; padding: 12px 20px; width: 100%;
  color: var(--white); text-decoration: none; text-align: left;
  font-size: 0.9rem; font-weight: 500; font-family: var(--font-body);
  background: none; border: none; cursor: pointer;
  transition: color 0.2s;
}
.hero-step-link:hover { color: var(--teal); }

/* Hero right image */
.hero-col-right {
  flex: 1; min-width: 0; min-height: 500px; align-self: stretch;
  display: flex; align-items: stretch;
}
.hero-office-img {
  width: 100%; height: 100%; min-height: 500px;
  object-fit: cover; border-radius: 14px;
}

/* ===== SECTION WRAPPER ===== */
.section { position: relative; z-index: 1; padding: 80px 32px; max-width: 1300px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; margin-bottom: 16px; letter-spacing: -0.01em;
}
.section-sub { font-size: 1rem; color: var(--gray-light); max-width: 560px; line-height: 1.6; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.feature-card {
  background: rgba(0,31,63,0.5);
  border: 1px solid rgba(0,201,177,0.12);
  border-radius: 14px; padding: 28px 24px;
  transition: all 0.3s; cursor: pointer;
  backdrop-filter: blur(8px);
}
.feature-card:hover { border-color: rgba(0,201,177,0.4); background: rgba(0,116,183,0.1); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.875rem; color: var(--gray-light); line-height: 1.6; }

/* ===== MODAL BASE ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,8,20,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: linear-gradient(160deg, #001a35 0%, #001228 100%);
  border: 1px solid rgba(0,201,177,0.2);
  border-radius: 18px; width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  transform: translateY(20px); transition: transform 0.25s;
  scrollbar-width: thin; scrollbar-color: rgba(0,201,177,0.3) transparent;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(0,201,177,0.12);
}
.modal-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.modal-subtitle { font-size: 0.8rem; color: var(--gray-light); margin-top: 2px; }
.modal-close {
  margin-left: auto; width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.07); border: none; cursor: pointer;
  color: var(--gray-light); font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.modal-body { padding: 24px; }

/* ===== STEPPER ===== */
.stepper {
  display: flex; gap: 0; margin-bottom: 28px;
  background: rgba(0,0,0,0.3); border-radius: 10px; padding: 4px; overflow-x: auto;
}
.step-tab {
  flex: 1; min-width: 80px; padding: 8px 10px; border-radius: 8px; border: none;
  background: none; color: var(--gray-light); font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-align: center; font-family: var(--font-body);
  white-space: nowrap;
}
.step-tab.active { background: rgba(0,201,177,0.15); color: var(--teal); }
.step-tab.done { color: rgba(0,201,177,0.6); }

/* Form elements */
.form-group { margin-bottom: 18px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-light); margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; border-radius: 9px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(0,201,177,0.2);
  color: var(--white); font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(0,201,177,0.6); background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(0,201,177,0.08);
}
.form-select option { background: #001a35; }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

/* Carrier multi-select chips */
.carrier-search { margin-bottom: 10px; }
.carrier-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 200px; overflow-y: auto; padding: 4px 0;
  scrollbar-width: thin; scrollbar-color: rgba(0,201,177,0.3) transparent;
}
.carrier-chip {
  padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  border: 1px solid rgba(0,201,177,0.2); background: rgba(0,0,0,0.3);
  color: var(--gray-light); cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.carrier-chip:hover { border-color: rgba(0,201,177,0.5); color: var(--white); }
.carrier-chip.selected { background: rgba(0,201,177,0.15); border-color: var(--teal); color: var(--teal); }
.carrier-chip.state-match { border-color: rgba(0,201,177,0.35); }

/* Upload zone */
.upload-zone {
  border: 2px dashed rgba(0,201,177,0.25); border-radius: 12px;
  padding: 28px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--teal); background: rgba(0,201,177,0.05); }
.upload-zone.locked { opacity: 0.5; cursor: not-allowed; }
.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-label { font-size: 0.9rem; color: var(--gray-light); }
.upload-label strong { color: var(--teal); }
.upload-files { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.upload-file-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: rgba(0,201,177,0.08); border-radius: 8px; font-size: 0.85rem;
}

/* Output card */
.output-card {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(0,201,177,0.15);
  border-radius: 12px; padding: 20px; margin-top: 16px;
}
.output-card pre {
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7;
  color: var(--off-white); white-space: pre-wrap; word-break: break-word;
}
.output-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Discount results */
.discount-results { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.discount-item {
  background: rgba(0,201,177,0.06); border: 1px solid rgba(0,201,177,0.15);
  border-radius: 10px; padding: 14px 16px;
}
.discount-item .di-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.discount-item .di-type { font-weight: 600; font-size: 0.9rem; }
.discount-item .di-range {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--teal); white-space: nowrap; padding: 2px 8px;
  background: rgba(0,201,177,0.1); border-radius: 999px;
}
.discount-item .di-meta { font-size: 0.78rem; color: var(--gray-light); margin-top: 4px; }

/* Strategy modules */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.module-card {
  background: rgba(0,116,183,0.1); border: 1px solid rgba(0,116,183,0.25);
  border-radius: 10px; padding: 14px 12px; text-align: center;
}
.module-icon { font-size: 1.4rem; margin-bottom: 6px; }
.module-name { font-size: 0.82rem; font-weight: 600; }
.module-desc { font-size: 0.75rem; color: var(--gray-light); margin-top: 4px; }

/* Action buttons */
.btn-teal {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 9px; font-size: 0.875rem; font-weight: 600;
  background: var(--teal); color: var(--navy); border: none; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.btn-teal:hover { background: #00e6cc; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 9px; font-size: 0.875rem; font-weight: 600;
  background: rgba(255,255,255,0.07); color: var(--white);
  border: 1px solid rgba(255,255,255,0.15); cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 9px; font-size: 0.875rem; font-weight: 600;
  background: none; color: var(--gray-light); border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }

.modal-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 16px 24px; border-top: 1px solid rgba(0,201,177,0.1);
  flex-wrap: wrap;
}

/* ===== GATE MODAL ===== */
#gateModal .modal-box { max-width: 460px; }
.gate-logo { text-align: center; margin-bottom: 24px; }
.gate-logo .big-badge {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 0 24px rgba(0,201,177,0.4);
}
.gate-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.gate-sub { font-size: 0.875rem; color: var(--gray-light); }
.gate-benefits { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.gate-benefits li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--off-white); }
.gate-benefits li::before { content: "✓"; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* Loss runs table */
.lr-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.85rem; }
.lr-table th { padding: 8px 12px; text-align: left; color: var(--teal); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid rgba(0,201,177,0.15); }
.lr-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--off-white); }
.lr-table tr:last-child td { border-bottom: none; }
.lr-table tr:hover td { background: rgba(0,201,177,0.04); }
.masked { color: var(--gray-light); font-family: var(--font-mono); font-size: 0.8rem; }
.locked-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: rgba(133,113,77,0.2); color: var(--gold); border: 1px solid rgba(133,113,77,0.3); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 12px 20px; border-radius: 10px;
  background: rgba(0,201,177,0.15); border: 1px solid var(--teal);
  color: var(--white); font-size: 0.875rem; font-weight: 500;
  backdrop-filter: blur(12px);
  transform: translateY(20px); opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }


/* Footer */
.site-footer {
  background: #002A4E;
  color: #fff;
  font-size: 0.85rem;
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 20px 40px;
}
.site-footer__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer__right { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.site-footer__right a, .site-footer__left a { color: #fff; text-decoration: none; }
.site-footer__right a:hover, .site-footer__left a:hover { opacity: 0.75; }
.site-footer__right > div { display: flex; flex-direction: column; gap: 2px; }
.site-footer__fineprint {
  padding: 10px 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
}

/* Dividers */
.divider { border: none; border-top: 1px solid rgba(0,201,177,0.08); margin: 0; }

/* Info row in modals */
.info-row { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: rgba(0,201,177,0.06); border-radius: 9px; margin-bottom: 16px; font-size: 0.85rem; color: var(--gray-light); }
.info-row strong { color: var(--teal); }

/* Progress bar */
.progress-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 999px; margin-bottom: 24px; }
.progress-fill { height: 100%; background: var(--teal); border-radius: 999px; transition: width 0.3s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,201,177,0.3); border-radius: 3px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-col-left, .hero-col-center, .hero-col-right { flex: none; width: 100%; }
  .hero-office-img { min-height: 220px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 42, 78, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(0,201,177,0.15);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; font-size: 1rem; border-radius: 8px; }
  .nav-link:hover { background: rgba(255,255,255,0.07); }
}
@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .section { padding: 60px 16px; }
  .hero { padding: 90px 16px 32px; }
}

/* ===== Post-registration cards ===== */
.post-reg-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
  transition: all 0.2s;
}
.post-reg-card:hover {
  border-color: rgba(0,201,177,0.3);
  background: rgba(0,201,177,0.05);
  transform: translateX(3px);
}
.post-reg-icon {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.post-reg-content { flex: 1; min-width: 0; }
.post-reg-title { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.post-reg-desc { font-size: 0.8rem; color: var(--gray-light); line-height: 1.5; }
.post-reg-arrow { color: var(--teal); font-size: 1rem; align-self: center; flex-shrink: 0; opacity: 0.6; transition: opacity 0.2s; }
.post-reg-card:hover .post-reg-arrow { opacity: 1; }


/* ===== Mobile fixes ===== */
@media (max-width: 600px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .discount-results .di-header { flex-direction: column; gap: 4px; }
  .discount-item .di-range { align-self: flex-start; }
  .lr-table { font-size: 0.75rem; }
  .lr-table td, .lr-table th { padding: 7px 6px; }
  .carrier-grid { max-height: 160px; }
  .modal-box { border-radius: 12px 12px 0 0; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .output-actions { flex-direction: column; }
  .output-actions .btn-teal,
  .output-actions .btn-outline { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr !important; }
  #progressBar { bottom: 0; border-radius: 14px 14px 0 0; }
  .atlas-chat-launcher { width: 56px; height: 56px; }
  .atlas-chat-launcher img { width: 48px; height: 48px; }
}

/* ===== Floating Progress Bar ===== */
#progressBar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1500;
  width: calc(100% - 48px);
  max-width: 860px;
  background: rgba(0,10,24,0.92);
  border: 1px solid rgba(0,201,177,0.25);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,201,177,0.05);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
#progressBar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.pb-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.pb-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  margin-right: 4px;
}
.pb-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.pb-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(0,201,177,0.2);
  background: rgba(0,201,177,0.07);
  color: var(--off-white);
  white-space: nowrap;
  transition: all 0.2s;
}
.pb-pill.filled {
  border-color: var(--teal);
  background: rgba(0,201,177,0.12);
  color: var(--teal);
}
.pb-pill .pb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,201,177,0.3);
  flex-shrink: 0;
}
.pb-pill.filled .pb-dot { background: var(--teal); }
.pb-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.pb-build {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #00b8a0;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
  opacity: 0.5;
}
.pb-build.ready {
  opacity: 1;
  box-shadow: 0 0 16px rgba(0,184,160,0.35);
  animation: pb-pulse 2.5s ease-in-out infinite;
}
@keyframes pb-pulse {
  0%,100% { box-shadow: 0 0 12px rgba(0,184,160,0.3); }
  50% { box-shadow: 0 0 24px rgba(0,184,160,0.6); }
}
.pb-build:hover { background: #00d4b8; transform: translateY(-1px); opacity: 1 !important; }
.pb-dismiss {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.pb-dismiss:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.pb-progress-track {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.pb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue2), var(--teal));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ===== Selectable discount cards ===== */
.discount-item.selectable { cursor: pointer; transition: all 0.2s; }
.discount-item.selectable:hover { border-color: rgba(0,201,177,0.4); background: rgba(0,201,177,0.08); }
.discount-item.selectable.selected {
  border-color: var(--teal);
  background: rgba(0,201,177,0.1);
}
.discount-item .di-check {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid rgba(0,201,177,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--teal); flex-shrink: 0;
  margin-left: auto; margin-top: 2px;
  transition: all 0.15s;
}
.discount-item.selected .di-check {
  background: var(--teal); border-color: var(--teal); color: var(--navy);
}

/* ===== State-filtered carrier badge ===== */
.carrier-filter-note {
  font-size: 0.75rem; color: var(--teal);
  padding: 5px 10px; background: rgba(0,201,177,0.07);
  border-radius: 6px; margin-bottom: 8px;
  border: 1px solid rgba(0,201,177,0.15);
}


/* ===== Out-of-state discount cards ===== */
.discount-item.out-of-state {
  opacity: 0.45;
  cursor: not-allowed;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.015) 8px,
    rgba(255,255,255,0.015) 9px
  ) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.discount-item.out-of-state:hover {
  opacity: 0.45 !important;
  transform: none !important;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.015) 8px,
    rgba(255,255,255,0.015) 9px
  ) !important;
}
.discount-item.out-of-state .di-type {
  text-decoration: line-through;
  opacity: 0.6;
}
.di-unavailable-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--gray-light);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.08);
}
.discount-item.out-of-state .di-check {
  display: none;
}


/* ===== ATLAS CHAT WIDGET ===== */
@keyframes atlas-chat-pulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,0.22); }
    50%       { box-shadow: 0 12px 28px rgba(0,0,0,0.22), 0 0 0 8px rgba(0,116,183,0.15); }
}
.atlas-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 18px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.atlas-chat-widget.atlas-chat-hidden { display: none; }
.atlas-chat-launcher {
    width: 80px; height: 80px; border-radius: 50%;
    border: none; background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    display: grid; place-items: center;
    cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.atlas-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,0.26); }
.atlas-chat-launcher img { width: 72px; height: 72px; object-fit: contain; }
.atlas-chat-launcher.atlas-chat-launcher--pulse { animation: atlas-chat-pulse 1.6s ease-in-out infinite; }
.atlas-chat-panel {
    width: 360px; max-height: min(70vh, 640px);
    position: absolute; right: 0; bottom: calc(100% + 12px);
    background: #f8fafc; border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
    overflow: hidden; display: flex; flex-direction: column;
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.atlas-chat-panel.atlas-chat-panel--open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.atlas-chat-header {
    background: linear-gradient(135deg, #002a4e, #0a3c6c);
    color: #fff; padding: 14px 16px;
    display: flex; flex-wrap: wrap; align-items: flex-start;
    justify-content: space-between; gap: 12px;
}
.atlas-chat-header-left { display: flex; align-items: flex-start; flex: 1 1 240px; min-width: 240px; gap: 12px; }
.atlas-chat-header-left > div { min-width: 0; }
.atlas-chat-badge { display: block; width: 64px; height: 64px; border-radius: 10px; background: #fff; object-fit: cover; padding: 1px; }
.atlas-chat-title { font-size: 16px; font-weight: 700; }
.atlas-chat-subtitle { font-size: 11px; opacity: 0.9; line-height: 1.3; }
.atlas-chat-header-actions { display: flex; align-items: flex-start; flex: 0 0 auto; gap: 8px; margin-left: auto; align-self: flex-start; }
.atlas-chat-reset, .atlas-chat-voice-toggle, .atlas-chat-close {
    border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.15);
    color: #fff; font-size: 11px; padding: 6px 8px; border-radius: 8px; cursor: pointer;
}
.atlas-chat-close { width: 28px; height: 28px; font-size: 18px; line-height: 1; padding: 0; }
.atlas-chat-voice-toggle.atlas-chat-voice-toggle--active { background: #1ab0a9; border-color: rgba(26,176,169,0.9); color: #062033; }
.atlas-chat-reset:disabled { opacity: 0.5; cursor: not-allowed; }
.atlas-chat-body {
    padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
    flex: 1; overflow: hidden; background: #f8fafc; position: relative;
}
.atlas-intro-overlay {
    position: absolute; inset: 0; z-index: 25;
    display: flex; align-items: center; justify-content: center;
    background: rgba(5,18,30,0.78); border-radius: 12px;
    opacity: 0; pointer-events: none; transition: opacity 0.32s ease;
}
.atlas-intro-overlay--visible { opacity: 1; pointer-events: auto; }
.atlas-intro-overlay--hiding { opacity: 0; pointer-events: none; }
.atlas-intro-video { width: min(100%, 290px); max-height: 100%; border-radius: 12px; background: #000; box-shadow: 0 16px 36px rgba(0,0,0,0.35); }
.atlas-intro-skip {
    position: absolute; top: 10px; right: 10px;
    border: 1px solid rgba(255,255,255,0.45); background: rgba(0,0,0,0.35);
    color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.atlas-intro-sound {
    display: none; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,0.45); background: rgba(0,0,0,0.35);
    color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.atlas-intro-sound--visible { display: inline-block; }
.atlas-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-chat-chip {
    background: #fff; border: 1px solid rgba(0,42,78,0.16); color: #002a4e;
    font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.atlas-chat-chip:hover { border-color: rgba(0,42,78,0.35); box-shadow: 0 6px 14px rgba(0,42,78,0.12); }
.atlas-chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.atlas-chat-message { display: flex; }
.atlas-chat-message--user { justify-content: flex-end; }
.atlas-chat-message--assistant { justify-content: flex-start; }
.atlas-chat-bubble {
    max-width: 86%; padding: 10px 12px; border-radius: 14px;
    font-size: 13px; line-height: 1.45; box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    background: #fff; color: #102033;
}
.atlas-chat-message--user .atlas-chat-bubble { background: #0a3c6c; color: #fff; box-shadow: 0 6px 16px rgba(10,60,108,0.35); }
.atlas-chat-bubble p { margin: 0 0 8px; }
.atlas-chat-bubble p:last-child { margin-bottom: 0; }
.atlas-chat-bubble ul { margin: 6px 0 0 18px; padding: 0; }
.atlas-chat-cta { background: #fff; border: 1px dashed rgba(0,42,78,0.2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.atlas-chat-cta-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7a90; }
.atlas-chat-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-chat-cta-link { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px; background: rgba(54,116,157,0.12); color: #002a4e; border: 1px solid rgba(54,116,157,0.25); font-size: 12px; text-decoration: none; cursor: pointer; }
.atlas-chat-input-row { border-top: 1px solid rgba(0,0,0,0.06); padding: 10px 12px; display: flex; gap: 8px; align-items: center; background: #fff; margin: 0; }
.atlas-chat-input { flex: 1; border: 1px solid rgba(0,0,0,0.15); border-radius: 999px; padding: 10px 12px; font-size: 13px; outline: none; }
.atlas-chat-input:focus { border-color: rgba(54,116,157,0.6); box-shadow: 0 0 0 2px rgba(54,116,157,0.15); }
.atlas-chat-send { background: #0074b7; color: #fff; border: none; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.atlas-chat-send:disabled { opacity: 0.6; cursor: not-allowed; }
.atlas-chat-voice-row { display: none; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 0; background: #fff; }
.atlas-chat-voice-row.atlas-chat-voice-row--visible { display: flex; }
.atlas-chat-voice-row[hidden] { display: none !important; }
.atlas-chat-ptt { border: 1px solid rgba(0,42,78,0.22); background: #f3f7fb; color: #002a4e; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 7px 12px; cursor: pointer; }
.atlas-chat-ptt.is-active { background: #0a3c6c; color: #fff; border-color: #0a3c6c; }
.atlas-chat-ptt:disabled { opacity: 0.55; cursor: not-allowed; }
.atlas-chat-voice-state { font-size: 11px; color: #6b7a90; min-width: 68px; text-align: right; }
.atlas-chat-voice-audio { display: none; }
.atlas-chat-status { min-height: 18px; font-size: 11px; color: #6b7a90; padding: 0 14px 12px; }
.atlas-chat-status.atlas-chat-status--error { color: #c62828; }
.flow__quick-actions {
    padding: 10px 12px 12px; border-top: 1px solid rgba(0,0,0,0.06);
    background: #f2f6fb; display: flex; flex-direction: column; gap: 8px;
}
.flow__quick-actions-title { display: flex; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: #47607a; }
.flow__quick-actions-badge { width: 18px; height: 18px; border-radius: 6px; background: #fff; padding: 1px; object-fit: contain; }
.flow__quick-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.flow__quick-action {
    border: 1px solid rgba(0,42,78,0.18); background: #fff; color: #002a4e;
    font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; display: inline-block;
}
.flow__quick-action:hover { border-color: rgba(0,42,78,0.35); box-shadow: 0 6px 12px rgba(0,42,78,0.12); }
