/* ============================================================
   RhôneRisk Cyber Insurance Policy Analyzer — Stylesheet
   ============================================================ */

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

:root {
  --navy:        #1a1a2e;
  --navy-light:  #22223a;
  --navy-mid:    #2d2d4a;
  --gold:        #d4a843;
  --gold-light:  #e8c96a;
  --gold-dark:   #b8922e;
  --white:       #ffffff;
  --off-white:   #f7f7fa;
  --gray-50:     #fafafa;
  --gray-100:    #f3f3f6;
  --gray-200:    #e5e5ea;
  --gray-300:    #d1d1d6;
  --gray-400:    #a1a1aa;
  --gray-500:    #71717a;
  --gray-600:    #52525b;
  --gray-700:    #3f3f46;
  --gray-800:    #27272a;
  --red:         #dc2626;
  --red-light:   #fef2f2;
  --green:       #16a34a;
  --green-light: #f0fdf4;
  --amber:       #d97706;
  --amber-light: #fffbeb;
  --blue:        #2563eb;
  --blue-light:  #eff6ff;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --radius:      8px;
  --radius-lg:   12px;
  --transition:  .25s ease;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;
  --font-mono:   'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* --- Utility --------------------------------------------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Header / Navbar ------------------------------------- */
.navbar {
  background: var(--navy);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.navbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: var(--navy);
  letter-spacing: -1px; line-height: 1;
}
.logo-text {
  font-size: 20px; font-weight: 700; color: var(--white);
  letter-spacing: .3px;
}
.logo-text span { color: var(--gold); }

.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px; transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }

/* --- Nav Right / Auth Buttons ----------------------------- */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-auth-buttons { display: flex; align-items: center; gap: 8px; }
.nav-auth-buttons .btn-outline {
  color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2);
}
.nav-auth-buttons .btn-outline:hover {
  color: var(--white); border-color: var(--gold);
}
.nav-user-menu {
  display: flex; align-items: center; gap: 12px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--navy);
  flex-shrink: 0;
}
.user-info {
  display: flex; flex-direction: column; line-height: 1.3;
}
.user-name {
  font-size: 13px; font-weight: 600; color: var(--white);
}
.user-email {
  font-size: 11px; color: rgba(255,255,255,.5);
}
.nav-user-menu .btn-outline {
  color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.15);
  padding: 8px 16px; font-size: 13px;
}
.nav-user-menu .btn-outline:hover {
  color: var(--white); border-color: rgba(255,255,255,.4);
}

/* --- Auth Pages ------------------------------------------ */
.auth-container {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 64px - 80px);
  padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  padding: 48px 40px;
}
.auth-header {
  text-align: center; margin-bottom: 32px;
}
.auth-logo-mark {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 26px; color: var(--navy);
  margin-bottom: 20px;
}
.auth-header h2 {
  font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 8px;
}
.auth-header p {
  font-size: 15px; color: var(--gray-500);
}
.auth-form {
  display: flex; flex-direction: column; gap: 20px;
}
.auth-error {
  background: var(--red-light); color: var(--red);
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(220,38,38,.15);
}
.auth-success {
  background: var(--green-light); color: var(--green);
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(22,163,74,.15);
}
.auth-success a { color: var(--green); font-weight: 700; text-decoration: underline; }
.auth-footer {
  text-align: center; margin-top: 24px;
  font-size: 14px; color: var(--gray-500);
}
.auth-footer a { color: var(--gold-dark); font-weight: 600; }
.auth-footer a:hover { color: var(--gold); }
.btn-full { width: 100%; }

@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
  .user-info { display: none; }
  .nav-auth-buttons .btn { padding: 8px 14px; font-size: 13px; }
}

/* --- Register Page Layout -------------------------------- */
#view-register .page-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 60px 24px;
}

.register-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.register-value-panel {
  color: var(--white);
}

.register-value-panel h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 32px;
  letter-spacing: -.5px;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  line-height: 1.4;
}

.value-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.register-layout .auth-card {
  max-width: 100%;
  margin-bottom: 0;
}

.auth-form .form-group {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .register-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .register-value-panel h2 {
    font-size: 24px;
    text-align: center;
  }
  .value-list {
    align-items: flex-start;
  }
}

/* --- Hero ------------------------------------------------ */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
  padding: 100px 24px 110px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(212,168,67,.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 20%, rgba(212,168,67,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,67,.12); border: 1px solid rgba(212,168,67,.25);
  border-radius: 100px; padding: 6px 18px; margin-bottom: 28px;
  font-size: 13px; font-weight: 600; color: var(--gold-light);
  letter-spacing: .5px; text-transform: uppercase;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: var(--white);
  line-height: 1.15; margin-bottom: 20px; letter-spacing: -.5px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p {
  font-size: 18px; color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7;
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 14px 32px; border-radius: 8px; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy); box-shadow: 0 4px 16px rgba(212,168,67,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,168,67,.45);
  color: var(--navy);
}
.btn-secondary {
  background: rgba(255,255,255,.08); color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
}
.btn-secondary:hover { background: rgba(255,255,255,.14); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Features -------------------------------------------- */
.features {
  padding: 80px 24px;
  background: var(--white);
}
.features-header { text-align: center; margin-bottom: 56px; }
.features-header h2 { font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.features-header p { font-size: 16px; color: var(--gray-500); max-width: 520px; margin: 0 auto; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; max-width: 1080px; margin: 0 auto;
}
.feature-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,168,67,.12), rgba(212,168,67,.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* --- Page Sections --------------------------------------- */
.page-section {
  padding: 60px 24px 80px;
}
.page-section .container { max-width: 760px; }

.section-title {
  font-size: 28px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 15px; color: var(--gray-500); margin-bottom: 36px;
}

/* --- Card ------------------------------------------------ */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 36px; margin-bottom: 24px;
}

/* --- Form ------------------------------------------------ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 14px; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px;
}
.form-hint { font-size: 12px; color: var(--gray-400); font-weight: 400; margin-left: 4px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 11px 14px; font-size: 15px; font-family: var(--font);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  background: var(--white); color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,.15);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.checkbox-group {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--gold);
  cursor: pointer;
}
.checkbox-group label { font-size: 14px; color: var(--gray-700); cursor: pointer; }

/* --- Dropzone -------------------------------------------- */
.dropzone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--gray-50);
  position: relative;
}
.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--gold); background: rgba(212,168,67,.04);
}
.dropzone-icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.dropzone h3 { font-size: 16px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.dropzone p { font-size: 13px; color: var(--gray-400); }
.dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.dropzone.has-file { border-color: var(--green); background: var(--green-light); }
.dropzone.has-file .dropzone-icon { opacity: 1; }

.file-info {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  margin-top: 12px; font-size: 14px; color: var(--gray-600);
}
.file-info .file-name { font-weight: 600; color: var(--navy); }
.file-info .file-size { color: var(--gray-400); }
.file-info .remove-file {
  color: var(--red); cursor: pointer; font-weight: 600; font-size: 13px;
  background: none; border: none; font-family: var(--font);
}
.file-info .remove-file:hover { text-decoration: underline; }

/* --- Progress -------------------------------------------- */
.progress-container { text-align: center; padding: 20px 0; }

.progress-ring-wrap {
  position: relative; width: 180px; height: 180px; margin: 0 auto 28px;
}
.progress-ring { transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: var(--gray-200); stroke-width: 8; }
.progress-ring-fill {
  fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}
.progress-pct {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.progress-pct .pct { font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1; }
.progress-pct .pct-label { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

.progress-stage {
  font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px;
}
.progress-elapsed {
  font-size: 14px; font-weight: 600; color: var(--gold-dark); margin-bottom: 6px;
  min-height: 20px;
}
.progress-detail { font-size: 14px; color: var(--gray-500); }

.stage-steps {
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
  margin-top: 28px;
}
.stage-step {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: var(--gray-100); color: var(--gray-400);
  transition: all var(--transition);
}
.stage-step.active { background: rgba(212,168,67,.12); color: var(--gold-dark); }
.stage-step.done { background: var(--green-light); color: var(--green); }
.stage-step .step-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* --- Results --------------------------------------------- */
.results-header {
  text-align: center; padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200); margin-bottom: 32px;
}

.score-gauge {
  position: relative; width: 200px; height: 200px; margin: 0 auto 20px;
}
.score-gauge svg { width: 100%; height: 100%; }
.gauge-bg { fill: none; stroke: var(--gray-200); stroke-width: 12; }
.gauge-fill {
  fill: none; stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 1.2s ease, stroke .4s ease;
}
.score-value {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-value .score-num { font-size: 52px; font-weight: 800; line-height: 1; }
.score-value .score-max { font-size: 16px; color: var(--gray-400); margin-top: 2px; }

.rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 24px; border-radius: 100px; font-size: 15px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
}
.rating-superior { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.rating-average  { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.rating-basic    { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.rating-nocoverage { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.recommendation-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-radius: var(--radius-lg);
  margin: 24px 0 32px; font-size: 15px; font-weight: 600;
}
.rec-bind { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.rec-caution { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.rec-decline { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.rec-icon { font-size: 28px; flex-shrink: 0; }

/* --- Coverage Table -------------------------------------- */
.coverage-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.coverage-table th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 14px; border-bottom: 2px solid var(--gray-200);
}
.coverage-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--gray-100);
  font-size: 14px; color: var(--gray-700);
}
.coverage-table tr:hover td { background: var(--gray-50); }
.score-cell { font-weight: 700; font-size: 15px; }
.score-cell.superior { color: #059669; }
.score-cell.average { color: #2563eb; }
.score-cell.basic { color: #d97706; }
.score-cell.nocoverage { color: #dc2626; }

.score-bar-cell { width: 120px; }
.score-bar {
  height: 6px; border-radius: 3px; background: var(--gray-200);
  overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width .8s ease;
}

/* --- Red Flags / Gaps ------------------------------------ */
.alert-box {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius);
  margin-bottom: 12px; font-size: 14px; line-height: 1.6;
}
.alert-box.alert-red { background: var(--red-light); border: 1px solid #fecaca; color: #991b1b; }
.alert-box.alert-amber { background: var(--amber-light); border: 1px solid #fde68a; color: #92400e; }
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* --- Footer ---------------------------------------------- */
.footer {
  background: var(--navy); padding: 32px 24px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,.4);
  margin-top: 60px;
}
.footer a { color: var(--gold); }

/* --- Spinner --------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(26,26,46,.15);
  border-top-color: var(--navy); border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
.spinner-gold { border-color: rgba(212,168,67,.2); border-top-color: var(--gold); }

/* --- Fade / Animate -------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .5s ease both; }
.fade-in-delay { animation: fadeInUp .5s ease .15s both; }

/* --- View Transitions ------------------------------------ */
.view { display: none; }
.view.active { display: block; }

/* =========================================================
   MONITORING DASHBOARD STYLES
   ========================================================= */

/* --- Summary Stats --------------------------------------- */
.monitor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
  text-align: center; box-shadow: var(--shadow-sm);
}
.stat-value {
  font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1.1;
}
.stat-value.stat-green { color: var(--green); }
.stat-value.stat-red { color: var(--red); }
.stat-value.stat-amber { color: var(--amber); }
.stat-label {
  font-size: 13px; font-weight: 600; color: var(--gray-500);
  margin-top: 6px; text-transform: uppercase; letter-spacing: .5px;
}

/* --- Monitor Table --------------------------------------- */
.monitor-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.monitor-table th {
  text-align: left; font-size: 11px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 10px; border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.monitor-table td {
  padding: 10px 10px; border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700); vertical-align: middle;
}
.monitor-table tr:hover td { background: var(--gray-50); }
.monitor-table code {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--gray-100); padding: 2px 6px; border-radius: 4px;
}

/* Timing cells with color coding */
.timing-fast { color: var(--green); font-weight: 600; }
.timing-slow { color: var(--amber); font-weight: 600; }
.timing-very-slow { color: var(--red); font-weight: 600; }
.timing-na { color: var(--gray-400); }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}
.status-completed { background: var(--green-light); color: var(--green); }
.status-failed { background: var(--red-light); color: var(--red); }
.status-running { background: var(--amber-light); color: var(--amber); }
.status-pending { background: var(--gray-100); color: var(--gray-500); }

/* --- Log Viewer ------------------------------------------ */
.log-viewer {
  background: #0d1117; border-radius: var(--radius);
  padding: 16px; font-family: var(--font-mono); font-size: 12px;
  line-height: 1.7; color: #c9d1d9;
  max-height: 280px; overflow-y: auto;
  border: 1px solid #30363d;
}
.log-viewer-tall { max-height: 420px; }

.log-viewer::-webkit-scrollbar { width: 6px; }
.log-viewer::-webkit-scrollbar-track { background: transparent; }
.log-viewer::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }

.log-entry { padding: 2px 0; word-break: break-word; }
.log-entry .log-time { color: #6e7681; }
.log-entry .log-level-info { color: #58a6ff; }
.log-entry .log-level-warning { color: #d29922; }
.log-entry .log-level-error { color: #f85149; }
.log-entry .log-level-debug { color: #8b949e; }
.log-entry .log-stage { color: #7ee787; }
.log-entry .log-msg { color: #c9d1d9; }

.log-placeholder {
  color: #6e7681; text-align: center; padding: 40px 0;
  font-family: var(--font); font-size: 14px;
}

.log-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-400); display: inline-block;
}
.log-status-dot.connected {
  background: var(--green);
  box-shadow: 0 0 6px rgba(22,163,74,.5);
  animation: pulse 2s ease infinite;
}
.log-status-dot.disconnected { background: var(--gray-400); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* --- Detail Modal ---------------------------------------- */
.detail-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.detail-modal {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 32px;
  max-width: 700px; width: 100%; max-height: 80vh; overflow-y: auto;
}
.detail-modal .detail-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid var(--gray-100); font-size: 14px;
}
.detail-modal .detail-row .detail-label { color: var(--gray-500); font-weight: 600; }
.detail-modal .detail-row .detail-value { color: var(--gray-800); text-align: right; }
.detail-modal .detail-section {
  margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--gray-200);
}
.detail-modal .detail-section h4 {
  font-size: 14px; font-weight: 700; color: var(--navy);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px;
}
.detail-error {
  background: var(--red-light); border: 1px solid #fecaca;
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 13px; color: #991b1b; word-break: break-word;
  font-family: var(--font-mono); line-height: 1.5;
}

/* --- Empty State ----------------------------------------- */
.empty-state {
  text-align: center; padding: 40px 0;
}
.empty-state p { color: var(--gray-400); font-size: 14px; }

/* --- Responsive ------------------------------------------ */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 70px; }
  .hero h1 { font-size: 28px; }
  .nav-links { display: none; }
  .card { padding: 24px; }
  .stage-steps { gap: 6px; }
  .stage-step { padding: 5px 10px; font-size: 11px; }
  .coverage-table { font-size: 13px; }
  .coverage-table th, .coverage-table td { padding: 8px 10px; }
  .monitor-stats { grid-template-columns: repeat(2, 1fr); }
  .monitor-table { font-size: 11px; }
  .monitor-table th, .monitor-table td { padding: 6px 6px; }
}

/* --- Toast ----------------------------------------------- */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--navy); color: var(--white); padding: 14px 24px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: all .35s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--red); }

/* --- Error state ----------------------------------------- */
.error-state { text-align: center; padding: 40px 0; }
.error-state .error-icon { font-size: 48px; margin-bottom: 16px; }
.error-state h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.error-state p { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }

/* --- Monitor page wider container override --------------- */
#view-monitor .page-section .container { max-width: 1100px; }


/* ============================================================
   Dashboard View — Per-User Personalized Landing Page
   ============================================================ */

/* --- Dashboard Hero -------------------------------------- */
.dash-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 48px 0 40px;
  margin-bottom: 0;
}
.dash-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.dash-greeting {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.dash-greeting span {
  color: var(--gold);
}
.dash-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

/* --- Dashboard Stats Cards ------------------------------- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -32px;
  position: relative;
  z-index: 1;
}
.dash-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.dash-stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
  line-height: 1;
}
.dash-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.dash-stat-green { color: var(--green); }
.dash-stat-red { color: var(--red); }
.dash-stat-gold { color: var(--gold-dark); }
.dash-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* --- Dashboard Section Header ---------------------------- */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-section-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

/* --- Dashboard Table ------------------------------------- */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dash-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.dash-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.dash-table tbody tr:hover {
  background: var(--gray-50);
}
.dash-table tbody tr:last-child td {
  border-bottom: none;
}

/* Score pill in dashboard table */
.dash-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
}
.dash-score-high { background: var(--green-light); color: var(--green); }
.dash-score-mid  { background: var(--amber-light); color: var(--amber); }
.dash-score-low  { background: var(--red-light); color: var(--red); }
.dash-score-na   { background: var(--gray-100); color: var(--gray-400); }

/* Rating badge in dashboard */
.dash-rating {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.dash-rating-superior { background: var(--green-light); color: var(--green); }
.dash-rating-average  { background: var(--amber-light); color: var(--amber); }
.dash-rating-basic    { background: var(--red-light); color: var(--red); }
.dash-rating-none     { background: var(--gray-100); color: var(--gray-500); }

/* Red flag count in dashboard */
.dash-flags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.dash-flags-warn { color: var(--red); }
.dash-flags-ok   { color: var(--green); }

/* Action buttons in table */
.dash-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

/* --- Dashboard Empty State ------------------------------- */
.dash-empty-state {
  text-align: center;
  padding: 60px 20px;
}
.dash-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.dash-empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.dash-empty-state p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive adjustments ------------------------------ */
@media (max-width: 768px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -24px;
  }
  .dash-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .dash-greeting { font-size: 22px; }
}
@media (max-width: 480px) {
  .dash-stats {
    grid-template-columns: 1fr;
    margin-top: -16px;
  }
}


/* ============================================================
   CONVERSION OPTIMIZATION — New Styles (v2.0)
   Teaser, Pricing, Onboarding, Credits, Unlock Animation
   ============================================================ */

/* --- Nav Credits Badge ----------------------------------- */
.nav-credits-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(212,168,67,.15); color: var(--gold-light);
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .3px;
}
.nav-credits-badge.credits-zero {
  background: rgba(220,38,38,.15); color: #fca5a5;
}

/* --- Auth Page Improvements ------------------------------ */
.auth-container {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 50%, #1a1a35 100%);
  min-height: calc(100vh - 64px);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.auth-trust-signals {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 24px; flex-wrap: wrap;
}
.trust-signal {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-500); font-weight: 500;
}
.trust-signal .trust-icon {
  font-size: 14px; opacity: .7;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0;
  font-size: 13px; color: var(--gray-400);
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px;
  background: var(--white); color: var(--gray-700);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-google:hover {
  background: var(--gray-50); border-color: var(--gray-400);
}
.btn-google img {
  width: 18px; height: 18px;
}

.phone-opt-in {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
}
.phone-opt-in input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--gold);
}
.phone-opt-in label {
  font-size: 13px; color: var(--gray-500);
}

/* --- Onboarding Modal ------------------------------------ */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.onboarding-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  max-width: 520px; width: 100%;
  padding: 48px 40px 36px;
  text-align: center;
  position: relative;
}
.onboarding-step {
  display: none;
}
.onboarding-step.active {
  display: block;
  animation: fadeInUp .4s ease both;
}
.onboarding-step .step-icon {
  font-size: 56px; margin-bottom: 20px;
  line-height: 1;
}
.onboarding-step h2 {
  font-size: 22px; font-weight: 800; color: var(--navy);
  margin-bottom: 12px;
}
.onboarding-step p {
  font-size: 15px; color: var(--gray-500); line-height: 1.7;
  max-width: 380px; margin: 0 auto 24px;
}
.onboarding-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light); color: var(--green);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 20px;
}
.onboarding-dots {
  display: flex; gap: 8px; justify-content: center;
  margin: 20px 0 24px;
}
.onboarding-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-300); cursor: pointer;
  transition: all var(--transition);
}
.onboarding-dot.active {
  background: var(--gold); width: 24px; border-radius: 4px;
}
.onboarding-actions {
  display: flex; gap: 12px; justify-content: center;
}
.btn-skip {
  background: none; border: none; color: var(--gray-400);
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: var(--font);
}
.btn-skip:hover { color: var(--gray-600); }

/* --- Credit Info on Upload Page --------------------------- */
.credit-info {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius);
  background: rgba(212,168,67,.08);
  border: 1px solid rgba(212,168,67,.2);
  font-size: 13px; font-weight: 600; color: var(--gold-dark);
  margin-bottom: 20px;
}
.credit-info .credit-icon { font-size: 16px; }
.credit-info.credits-empty {
  background: rgba(220,38,38,.06);
  border-color: rgba(220,38,38,.15);
  color: var(--red);
}

/* --- Reassurance Strip ----------------------------------- */
.reassurance-strip {
  display: flex; gap: 24px; justify-content: center;
  padding: 16px 0; margin-top: 16px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.reassurance-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--gray-500);
}
.reassurance-item .reassurance-icon {
  font-size: 14px;
}

/* --- Teaser View ----------------------------------------- */
.teaser-container {
  max-width: 760px; margin: 0 auto;
}

.teaser-header {
  text-align: center; padding: 40px 0 32px;
}
.teaser-header h2 {
  font-size: 28px; font-weight: 800; color: var(--navy);
  margin-bottom: 8px;
}
.teaser-header p {
  font-size: 15px; color: var(--gray-500);
}

.teaser-score-section {
  text-align: center; padding: 32px 0;
}
.teaser-gauge {
  position: relative; width: 200px; height: 200px; margin: 0 auto 20px;
}
.teaser-gauge svg { width: 100%; height: 100%; }
.teaser-gauge-bg { fill: none; stroke: var(--gray-200); stroke-width: 12; }
.teaser-gauge-fill {
  fill: none; stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease, stroke .4s ease;
}
.teaser-score-value {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.teaser-score-value .score-num {
  font-size: 52px; font-weight: 800; line-height: 1;
  color: var(--navy);
}
.teaser-score-value .score-max {
  font-size: 16px; color: var(--gray-400); margin-top: 2px;
}

/* Teaser summary stats (5-stat row under score gauge) */
.teaser-summary-stats {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 24px;
}
.teaser-stat {
  display: flex; flex-direction: column; align-items: center;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 16px 20px;
  min-width: 110px; flex: 1; box-shadow: var(--shadow-sm);
}
.teaser-stat-value {
  font-size: 28px; font-weight: 800; line-height: 1.2;
  color: var(--navy);
}
.teaser-stat-red { color: var(--red) !important; }
.teaser-stat-amber { color: var(--amber) !important; }
.teaser-stat-green { color: var(--green) !important; }
.teaser-stat-label {
  font-size: 11px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .5px;
  margin-top: 4px; text-align: center;
}

/* Teaser locked section overlay */
.teaser-lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(3px);
  z-index: 2; text-align: center; padding: 16px;
}

/* Blurred / locked sections */
.teaser-locked {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.teaser-locked .blur-overlay {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.teaser-locked .lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(2px);
  z-index: 2;
}
.lock-icon {
  font-size: 32px; margin-bottom: 8px;
  opacity: .6;
}
.lock-text {
  font-size: 14px; font-weight: 600; color: var(--gray-600);
}

/* Teaser stats row */
.teaser-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 24px 0;
}
.teaser-stat-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
  text-align: center; box-shadow: var(--shadow-sm);
}
.teaser-stat-value {
  font-size: 36px; font-weight: 800; line-height: 1.2;
}
.teaser-stat-value.stat-red { color: var(--red); }
.teaser-stat-value.stat-amber { color: var(--amber); }
.teaser-stat-value.stat-green { color: var(--green); }
.teaser-stat-label {
  font-size: 13px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .5px;
  margin-top: 4px;
}

/* Teaser recommendation (blurred) */
.teaser-recommendation {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
  margin: 24px 0; min-height: 80px;
}

/* Teaser urgency hooks */
.teaser-urgency {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin: 24px 0;
}
.urgency-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
}
.urgency-badge.urgency-red {
  background: var(--red-light); color: var(--red);
  border: 1px solid #fecaca;
}
.urgency-badge.urgency-amber {
  background: var(--amber-light); color: var(--amber);
  border: 1px solid #fde68a;
}
.urgency-badge.urgency-blue {
  background: var(--blue-light); color: var(--blue);
  border: 1px solid #bfdbfe;
}

/* --- Sticky CTA Bar -------------------------------------- */
.sticky-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: var(--navy);
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.sticky-cta-bar .cta-text {
  color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500;
}
.sticky-cta-bar .cta-text strong {
  color: var(--white); font-weight: 700;
}
.sticky-cta-bar .cta-price {
  font-size: 24px; font-weight: 800; color: var(--gold);
}
.sticky-cta-bar .btn-primary {
  padding: 14px 32px; font-size: 15px;
}

/* --- Unlock Overlay -------------------------------------- */
.unlock-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(26,26,46,.85);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.unlock-content {
  text-align: center; color: var(--white);
}
.unlock-content .unlock-icon {
  font-size: 72px; margin-bottom: 20px;
  animation: unlockBounce 1s ease;
}
.unlock-content h2 {
  font-size: 28px; font-weight: 800; margin-bottom: 12px;
}
.unlock-content p {
  font-size: 16px; color: rgba(255,255,255,.7);
}
@keyframes unlockBounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Unlock CTA Section ---------------------------------- */
.teaser-unlock-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin: 32px 0;
}
.teaser-unlock-section h3 {
  font-size: 22px; font-weight: 800; color: var(--white);
  margin-bottom: 8px;
}
.teaser-unlock-section p {
  font-size: 14px; color: rgba(255,255,255,.6);
  margin-bottom: 24px;
}
.teaser-unlock-section .unlock-features {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 28px;
}
.unlock-feature {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8);
}
.unlock-feature .check-icon { color: var(--gold); }

.unlock-buttons {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}
.btn-unlock-credit {
  background: rgba(255,255,255,.1); color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-unlock-credit:hover {
  background: rgba(255,255,255,.18);
}
.btn-unlock-credit:disabled,
.btn-unlock-credit.btn-disabled {
  opacity: .4; cursor: not-allowed;
}
.btn-unlock-purchase {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(212,168,67,.35);
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-unlock-purchase:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,168,67,.45);
}

/* --- Pricing Section ------------------------------------- */
.pricing-section {
  padding: 80px 24px;
  background: var(--off-white);
}
.pricing-header {
  text-align: center; margin-bottom: 48px;
}
.pricing-header h2 {
  font-size: 32px; font-weight: 800; color: var(--navy);
  margin-bottom: 12px;
}
.pricing-header p {
  font-size: 16px; color: var(--gray-500);
  max-width: 520px; margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pricing-card.pricing-featured {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(212,168,67,.2);
}
.pricing-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  padding: 4px 16px; border-radius: 100px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
}
.pricing-card h3 {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 40px; font-weight: 800; color: var(--navy);
  line-height: 1.2;
}
.pricing-price .currency { font-size: 20px; vertical-align: super; }
.pricing-price .period {
  font-size: 14px; font-weight: 500; color: var(--gray-400);
}
.pricing-desc {
  font-size: 14px; color: var(--gray-500);
  margin: 8px 0 20px;
}
.pricing-features {
  list-style: none; text-align: left;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; font-size: 14px; color: var(--gray-600);
}
.pricing-features li .check {
  color: var(--green); font-weight: 700; flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card .btn { width: 100%; }

/* --- Post-Report Actions --------------------------------- */
.post-report-section {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 32px;
}
.post-report-section h3 {
  font-size: 18px; font-weight: 700; color: var(--navy);
  margin-bottom: 20px; text-align: center;
}
.post-report-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}

/* --- Upsell Banner --------------------------------------- */
.upsell-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: 32px;
}
.upsell-banner .upsell-text {
  color: var(--white);
}
.upsell-banner .upsell-text h4 {
  font-size: 18px; font-weight: 700; margin-bottom: 4px;
}
.upsell-banner .upsell-text h4 span { color: var(--gold); }
.upsell-banner .upsell-text p {
  font-size: 14px; color: rgba(255,255,255,.6);
}

/* --- Tier Badge ------------------------------------------ */
.tier-badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}
.tier-superior { background: var(--green-light); color: var(--green); }
.tier-above-average { background: #eff6ff; color: #2563eb; }
.tier-average { background: var(--amber-light); color: var(--amber); }
.tier-basic { background: var(--red-light); color: var(--red); }
.tier-no-coverage { background: var(--red-light); color: var(--red); }

/* --- Gap Item -------------------------------------------- */
.gap-item {
  padding: 10px 14px;
  background: var(--red-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  font-size: 14px; color: #991b1b;
  margin-bottom: 8px;
}

/* --- Responsive additions -------------------------------- */
@media (max-width: 768px) {
  .teaser-stats-row {
    grid-template-columns: 1fr;
  }
  .sticky-cta-bar {
    flex-direction: column; gap: 12px;
    padding: 12px 16px;
  }
  .sticky-cta-bar .cta-text { text-align: center; }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .unlock-buttons {
    flex-direction: column;
  }
  .onboarding-card {
    padding: 32px 24px 28px;
  }
}

@media (max-width: 480px) {
  .teaser-gauge {
    width: 160px; height: 160px;
  }
  .teaser-score-value .score-num {
    font-size: 40px;
  }
  .auth-trust-signals {
    flex-direction: column; align-items: center;
  }
}

/* --- Google OAuth Button & Auth Divider -------------------- */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn-google:active {
  background: #e8eaed;
}
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.auth-divider span {
  font-size: 13px;
  color: var(--gray-400);
  white-space: nowrap;
}


/* ============================================================
   LEAD FUNNEL — Progress Discovery Feed & Enhanced Teaser
   ============================================================ */

/* --- Progress Main Card Glow Effect --- */
.progress-main-card {
  position: relative;
  overflow: hidden;
}
.progress-main-card::before {
  content: '';
  position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, var(--gold), var(--navy), var(--gold));
  border-radius: inherit;
  z-index: -1;
  animation: progressGlow 3s linear infinite;
  opacity: 0.3;
}
@keyframes progressGlow {
  to { transform: rotate(360deg); }
}

/* --- Discovery Feed Card --- */
.discovery-feed-card {
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid var(--gray-200);
  background: linear-gradient(135deg, #fefefe 0%, #fafbff 100%);
}
.discovery-feed-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.discovery-feed-title {
  display: flex; align-items: center; gap: 10px;
}
.discovery-feed-title h3 {
  font-size: 15px; font-weight: 700; color: var(--navy); margin: 0;
}
.discovery-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  animation: discoveryPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
}
@keyframes discoveryPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
.discovery-counter {
  display: flex; align-items: center; gap: 6px;
  background: var(--red-light); border: 1px solid #fecaca;
  padding: 6px 14px; border-radius: 100px;
}
.discovery-counter-num {
  font-size: 20px; font-weight: 800; color: var(--red);
  transition: transform 0.3s ease;
}
.discovery-counter-num.bump {
  transform: scale(1.3);
}
.discovery-counter-label {
  font-size: 12px; font-weight: 600; color: var(--red);
  text-transform: uppercase; letter-spacing: .3px;
}

/* Discovery Feed Items */
.discovery-feed {
  max-height: 280px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.discovery-placeholder {
  text-align: center; padding: 32px 16px;
  font-size: 14px; color: var(--gray-400);
  font-style: italic;
}
.discovery-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  animation: discoverySlideIn 0.4s ease-out;
  border-left: 3px solid transparent;
}
.discovery-item.discovery-red {
  background: var(--red-light); border-left-color: var(--red);
}
.discovery-item.discovery-amber {
  background: var(--amber-light); border-left-color: var(--amber);
}
.discovery-item.discovery-blue {
  background: var(--blue-light); border-left-color: var(--blue);
}
.discovery-item.discovery-green {
  background: var(--green-light); border-left-color: var(--green);
}
.discovery-item-icon {
  font-size: 18px; flex-shrink: 0; margin-top: 1px;
}
.discovery-item-content {
  flex: 1;
}
.discovery-item-title {
  font-size: 13px; font-weight: 700; color: var(--navy);
  margin-bottom: 2px;
}
.discovery-item-detail {
  font-size: 12px; color: var(--gray-500);
}
.discovery-item-time {
  font-size: 11px; color: var(--gray-400); white-space: nowrap;
  margin-top: 2px;
}
@keyframes discoverySlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Progress Stats Bar --- */
.progress-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 16px;
}
.progress-stat-item {
  display: flex; flex-direction: column; align-items: center;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 16px 12px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.progress-stat-item:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.progress-stat-icon { font-size: 18px; margin-bottom: 6px; }
.progress-stat-num {
  font-size: 24px; font-weight: 800; line-height: 1;
  transition: all 0.3s ease;
}
.progress-stat-lbl {
  font-size: 11px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .3px; margin-top: 4px;
}
.progress-stat-red .progress-stat-num { color: var(--red); }
.progress-stat-amber .progress-stat-num { color: var(--amber); }
.progress-stat-blue .progress-stat-num { color: var(--blue); }
.progress-stat-navy .progress-stat-num { color: var(--navy); }

/* Stat bump animation */
.progress-stat-num.stat-bump {
  animation: statBump 0.4s ease;
}
@keyframes statBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* --- Collapsible Log Viewer --- */
.log-details {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
}
.log-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--gray-500);
  user-select: none;
}
.log-summary:hover { background: var(--gray-50); }
.log-details[open] .log-viewer {
  border-top: 1px solid var(--gray-100);
}

/* --- Enhanced Teaser Styles --- */
.teaser-alert-banner {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-light); border: 1px solid #fecaca;
  padding: 8px 20px; border-radius: 100px;
  margin-bottom: 16px;
  animation: alertPulse 2s ease-in-out infinite;
}
.teaser-alert-icon { font-size: 16px; }
#teaser-alert-text {
  font-size: 13px; font-weight: 700; color: var(--red);
}
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.teaser-highlight {
  color: var(--red); font-weight: 800;
}

.teaser-social-proof {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; margin-top: 12px;
}
.teaser-proof-item {
  font-size: 13px; color: var(--gray-500); font-weight: 500;
}

/* Teaser CTA Urgency badges */
.teaser-cta-urgency {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 20px;
}

/* Teaser unlock includes */
.teaser-unlock-includes {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 24px;
}
.teaser-unlock-includes span {
  font-size: 13px; color: var(--gray-600); font-weight: 500;
}

/* Teaser CTA card */
.teaser-cta-card {
  margin-top: 24px; padding: 32px;
  text-align: center;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, #fffdf5 0%, #ffffff 100%);
}
.teaser-cta-buttons {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-top: 16px;
}
.teaser-cta-or {
  margin: 12px 0; font-size: 13px; color: var(--gray-400);
}

/* Trust row */
.teaser-trust-row {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 16px;
  font-size: 12px; color: var(--gray-400); font-weight: 500;
}

/* Pulse button animation */
.btn-pulse {
  animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(212, 168, 67, 0.6); }
}

/* --- Responsive: Progress Stats --- */
@media (max-width: 640px) {
  .progress-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .discovery-feed-header {
    flex-direction: column; gap: 12px; align-items: flex-start;
  }
  .teaser-social-proof {
    flex-direction: column; align-items: center; gap: 8px;
  }
  .teaser-cta-urgency {
    flex-direction: column; align-items: center;
  }
  .teaser-unlock-includes {
    flex-direction: column; align-items: center; gap: 8px;
  }
  .teaser-trust-row {
    flex-direction: column; align-items: center; gap: 8px;
  }
}
