/* ═══════════════════════════════════════════════════════
   MUNDUS — Dark Pro Theme v2
   ═══════════════════════════════════════════════════════ */

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

/* ── Custom Property Animation for Radar ── */
@property --radar-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* ── GreenLight Framework Design System ── */

  /* Core Backgrounds — Deep dark with subtle blue undertone */
  --bg-body:      #07090E;
  --bg-sidebar:   #060810;
  --bg-card:      #0E1117;
  --bg-card-alt:  #0B0D14;
  --bg:           #0B0D14;
  --bg-input:     #0B0D14;
  --bg-hover:     #13161F;
  --bg-active:    #1A1E2A;

  /* Brand Accent — Vivid Teal-Cyan */
  --accent:       #00E5A0;
  --accent-dim:   rgba(0, 229, 160, 0.08);
  --accent-glow:  rgba(0, 229, 160, 0.15);
  --accent-hover: #33FFBE;

  /* Secondary — Electric Purple */
  --secondary:    #7C5CFC;
  --secondary-dim: rgba(124, 92, 252, 0.15);

  /* Text — Higher contrast, crisper */
  --text:         #F4F5F7;
  --text-soft:    #C8CDD5;
  --text-muted:   #7E8A9A;
  --text-dim:     #454E5C;

  /* Borders — Subtle glass effect */
  --border:       rgba(255, 255, 255, 0.06);
  --border-soft:  rgba(255, 255, 255, 0.04);
  --border-focus: rgba(0, 229, 160, 0.50);

  /* Semantic Colors — More vivid */
  --success:      #00E5A0;
  --warning:      #FFB547;
  --error:        #FF5C5C;
  --info:         #54B5FF;

  /* Score Colors — Bright, saturated */
  --score-green:  #00E5A0;
  --score-blue:   #54B5FF;
  --score-amber:  #FFB547;
  --score-red:    #FF5C5C;

  /* Dimensions */
  --sidebar-w:    168px;
  --topbar-h:     64px;
  --radius-sm:    10px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-pill:  100px;

  /* Multi-layer Shadows — Depth like Dribbble */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.24), 0 0 1px rgba(0,0,0,0.12);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.28), 0 2px 6px rgba(0,0,0,0.16);
  --shadow-lg:    0 24px 48px rgba(0,0,0,0.36), 0 8px 16px rgba(0,0,0,0.20);
  --shadow-glow:  0 4px 24px rgba(0, 229, 160, 0.10), 0 0 1px rgba(0, 229, 160, 0.30);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-body);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══════════════════════════════════════
   APP SHELL — SIDEBAR + MAIN
   ══════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
  /* No height:100vh/overflow:hidden — the whole page scrolls as ONE document
     (2026-06-07). Sidebar stays pinned via position:sticky below. */
}

/* ══════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: linear-gradient(180deg, #070A12 0%, #050710 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  backdrop-filter: blur(12px);
  position: sticky;     /* stays visible while the whole page scrolls */
  top: 0;
  height: 100vh;
  align-self: flex-start; /* don't stretch to the (tall) scrolling row */
}

.sidebar-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 1px 4px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-logo-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sidebar-logo-mark {
  width: 30px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: invert(1) brightness(1.45);
}

.sidebar-logo-wordmark {
  width: 88px;
  height: auto;
  display: block;
  filter: invert(1) brightness(1.5);
}

/* New Scan Button */
.new-scan-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  height: 40px;
  background: rgba(84, 181, 255, 0.10);
  color: #D9ECFF;
  border: 1px solid rgba(84, 181, 255, 0.30);
  padding: 0 12px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none;
}

.new-scan-btn:hover {
  background: rgba(84, 181, 255, 0.16);
  border-color: rgba(84, 181, 255, 0.42);
  color: #F4F9FF;
}

.new-scan-btn span {
  display: block;
}

/* Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 40px;
  background: transparent;
  border: 1px solid transparent;
  padding: 0 12px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  position: relative;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
}

.sidebar-nav-item.active {
  background: rgba(84, 181, 255, 0.11);
  border-color: rgba(84, 181, 255, 0.24);
  color: #D9ECFF;
}

.sidebar-nav-item.active svg {
  stroke: #7CC8FF;
}

.sidebar-nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-nav-item.active svg {
  opacity: 1;
}

.sidebar-nav-item > span:not(.archive-count-badge) {
  display: block;
}

.archive-count-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #54B5FF;
  color: #04101C;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

.archive-count-badge:empty {
  display: none;
}

.sidebar-account-card,
.sidebar-credit-card {
  --sidebar-panel-accent: var(--score-blue);
  --sidebar-panel-surface-a: #142437;
  --sidebar-panel-surface-b: #0B1522;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--sidebar-panel-accent) 28%, var(--border));
  border-left: 3px solid var(--sidebar-panel-accent);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--sidebar-panel-surface-a), var(--sidebar-panel-surface-b));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--sidebar-panel-accent) 12%, transparent),
    0 10px 24px rgba(0,0,0,0.18);
}

.sidebar-account-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 10px 11px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-account-card:hover {
  border-color: color-mix(in srgb, var(--sidebar-panel-accent) 56%, var(--border));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--sidebar-panel-accent) 16%, var(--sidebar-panel-surface-a)),
    color-mix(in srgb, var(--sidebar-panel-accent) 8%, var(--sidebar-panel-surface-b)));
}

.sidebar-panel-kicker {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 7.5px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-panel-accent);
}

.sidebar-account-email,
.sidebar-account-meta,
.sidebar-credit-status,
.sidebar-credit-value,
.sidebar-credit-note {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-email {
  color: #EAF6FF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.25;
}

.sidebar-account-meta {
  color: color-mix(in srgb, var(--sidebar-panel-accent) 44%, var(--text-muted));
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.25;
}

.sidebar-credit-card {
  --sidebar-panel-accent: var(--score-amber);
  --sidebar-panel-surface-a: #2B1F13;
  --sidebar-panel-surface-b: #17120D;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-credit-card:hover {
  border-color: color-mix(in srgb, var(--sidebar-panel-accent) 56%, var(--border));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--sidebar-panel-accent) 16%, var(--sidebar-panel-surface-a)),
    color-mix(in srgb, var(--sidebar-panel-accent) 8%, var(--sidebar-panel-surface-b)));
}

.sidebar-credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.sidebar-credit-status {
  flex-shrink: 0;
  max-width: none;
  color: var(--sidebar-panel-accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 7.5px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}

.sidebar-credit-value {
  color: var(--text-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: visible;
}

.sidebar-credit-note {
  color: color-mix(in srgb, var(--sidebar-panel-accent) 48%, var(--text-muted));
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.sidebar-credit-card.is-empty {
  border-color: color-mix(in srgb, var(--score-amber) 62%, var(--border));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--score-amber) 18%, #2B1F13),
    color-mix(in srgb, var(--score-amber) 8%, #17120D));
}

.sidebar-logout-btn {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-logout-btn:hover {
  border-color: rgba(255, 92, 122, 0.38);
  background: rgba(255, 92, 122, 0.07);
  color: #FFB3C1;
}

.sidebar-scan-timer {
  --sidebar-panel-accent: #FF9D00;
  --scan-led: #FF9D00;
  --scan-led-hot: #FFC04D;
  --scan-led-dim: rgba(255, 157, 0, 0.18);
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(255, 157, 0, 0.30);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 157, 0, 0.13), transparent 52%),
    linear-gradient(180deg, #050505 0%, #000000 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 157, 0, 0.08),
    inset 0 0 24px rgba(255, 157, 0, 0.08),
    0 10px 24px rgba(0,0,0,0.22);
}

.sidebar-scan-timer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.03) 50%, rgba(0,0,0,0.08) 50%),
    linear-gradient(90deg, rgba(255,157,0,0.06), transparent 18%, transparent 82%, rgba(255,157,0,0.05));
  background-size: 100% 4px, 100% 100%;
  opacity: 0.5;
}

.scan-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.scan-timer-label,
.scan-timer-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 7.5px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scan-timer-label {
  color: rgba(255, 185, 82, 0.78);
}

.scan-timer-status {
  color: rgba(255, 185, 82, 0.58);
  text-align: right;
}

.scan-timer-value {
  --digit-w: 18px;
  --digit-h: 36px;
  --segment-thick: 5px;
  --segment-overlap: 1px;
  --segment-skew: -7deg;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--digit-h);
  color: var(--scan-led);
  text-align: center;
}

.scan-timer-digit {
  position: relative;
  width: var(--digit-w);
  height: var(--digit-h);
  flex: 0 0 var(--digit-w);
}

.scan-timer-segment {
  position: absolute;
  display: block;
  opacity: 0;
  background: var(--scan-led);
  filter: saturate(1.08);
  transform: skewX(var(--segment-skew));
}

.scan-timer-segment.is-on {
  opacity: 1;
  background: linear-gradient(180deg, var(--scan-led-hot), var(--scan-led) 44%, #FF7A00 100%);
  box-shadow:
    0 0 2px var(--scan-led-hot),
    0 0 9px var(--scan-led-dim),
    0 0 18px rgba(255, 126, 0, 0.20);
}

.scan-timer-segment-a,
.scan-timer-segment-d,
.scan-timer-segment-g {
  left: var(--segment-overlap);
  width: calc(100% - (var(--segment-overlap) * 2));
  height: var(--segment-thick);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}

.scan-timer-segment-a { top: 0; }
.scan-timer-segment-g { top: calc(50% - (var(--segment-thick) / 2)); }
.scan-timer-segment-d { bottom: 0; }

.scan-timer-segment-b,
.scan-timer-segment-c,
.scan-timer-segment-e,
.scan-timer-segment-f {
  width: var(--segment-thick);
  height: calc(50% - 1px);
  clip-path: polygon(50% 0, 100% 13%, 100% 87%, 50% 100%, 0 87%, 0 13%);
}

.scan-timer-segment-b,
.scan-timer-segment-c { right: 0; }
.scan-timer-segment-f,
.scan-timer-segment-e { left: 0; }
.scan-timer-segment-b,
.scan-timer-segment-f { top: var(--segment-overlap); }
.scan-timer-segment-c,
.scan-timer-segment-e { bottom: var(--segment-overlap); }

.scan-timer-colon {
  display: flex;
  width: 5px;
  height: var(--digit-h);
  flex: 0 0 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.scan-timer-colon span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--scan-led);
  box-shadow:
    0 0 2px var(--scan-led-hot),
    0 0 8px var(--scan-led-dim);
}

.sidebar-scan-timer[data-state="running"] {
  border-color: rgba(255, 157, 0, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 157, 0, 0.12),
    inset 0 0 28px rgba(255, 157, 0, 0.10),
    0 10px 24px rgba(0,0,0,0.24),
    0 0 18px rgba(255, 157, 0, 0.12);
}

.sidebar-scan-timer[data-state="running"] .scan-timer-status {
  color: var(--scan-led-hot);
}

.sidebar-scan-timer[data-state="complete"] {
  border-color: rgba(255, 157, 0, 0.46);
}

.sidebar-scan-timer[data-state="complete"] .scan-timer-status {
  color: rgba(255, 192, 77, 0.86);
}

.sidebar-scan-timer[data-state="error"] {
  border-color: rgba(255, 92, 122, 0.52);
}

.sidebar-scan-timer[data-state="error"] .scan-timer-status {
  color: #FF8AA2;
}

/* Sidebar Bottom */
.sidebar-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sidebar-lang {
  display: flex;
  flex-direction: row;
  gap: 5px;
  width: 100%;
}

.sidebar-theme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  width: 100%;
}

.theme-btn {
  min-height: 28px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
}

.theme-btn.active {
  background: rgba(84, 181, 255, 0.14);
  border-color: rgba(84, 181, 255, 0.28);
  color: #D9ECFF;
}

.theme-btn:not(.active):hover {
  border-color: rgba(84, 181, 255, 0.20);
  color: var(--text);
}

.lang-btn {
  flex: 1;
  width: auto;
  border: 1px solid var(--border);
  background: transparent;
  padding: 5px 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lang-btn.active {
  background: rgba(84, 181, 255, 0.14);
  border-color: rgba(84, 181, 255, 0.28);
  color: #D9ECFF;
}

.lang-btn:not(.active):hover {
  border-color: rgba(84, 181, 255, 0.20);
  color: var(--text);
}

.sidebar-version {
  display: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════
   MAIN AREA
   ══════════════════════════════════════ */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: rgba(6, 8, 16, 0.90);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.topbar-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-chip {
  min-width: 136px;
  max-width: 240px;
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(84, 181, 255, 0.22);
  background: rgba(84, 181, 255, 0.08);
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.account-chip:hover {
  border-color: rgba(84, 181, 255, 0.40);
  background: rgba(84, 181, 255, 0.12);
}

.account-chip-main {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.account-chip-sub {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: #D9ECFF;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── VIEW PANELS ── */
.view-panel {
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════
   CONTENT AREA (two-column)
   ══════════════════════════════════════ */
/* Vertical flow: selector (full-width) → input form → output, all stacked
   (2026-06-07 — replaces the old left input column / right output split). */
.content-area {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* No height cap / overflow-y here — content flows and the whole page
     (document/body) provides the single scrollbar. (2026-06-07) */
}

/* ── INPUT SECTION (full-width, below the selector) ── */
/* The scan panel adopts the selected module's gradient surface so the area
   below the cards visibly matches the chosen product color (2026-06-07). */
.input-section {
  width: 100%;
  border-top: 3px solid color-mix(in srgb, var(--run-accent, var(--accent)) 76%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--run-accent, var(--accent)) 32%, var(--border));
  background: linear-gradient(180deg,
    var(--run-surface-a, var(--bg-card)),
    var(--run-surface-b, var(--bg-card)));
  display: flex;
  flex-direction: column;
  overflow: visible;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--run-accent, var(--accent)) 32%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--run-accent, var(--accent)) 10%, transparent);
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-section::-webkit-scrollbar { width: 4px; }
.input-section::-webkit-scrollbar-track { background: transparent; }
.input-section::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Service product selector */
/* Service product selector — 5 modules side by side (2026-06-07) */
.service-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: transparent;
  border-bottom: 1px solid var(--border);
  align-items: stretch;
}

.service-option {
  --service-surface-a: var(--bg-card);
  --service-surface-b: var(--bg-card);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  align-items: start;
  row-gap: 5px;
  width: 100%;
  min-height: 150px;
  background: linear-gradient(180deg, var(--service-surface-a), var(--service-surface-b));
  border: 1px solid color-mix(in srgb, var(--service-accent, var(--accent)) 26%, var(--border));
  border-left: 3px solid var(--service-accent, var(--accent));
  border-radius: 8px;
  padding: 13px 12px 11px;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.service-option[data-product="page_visibility_scan"] {
  --service-accent: var(--score-blue);
  --service-surface-a: #142437;
  --service-surface-b: #0B1522;
}

.service-option[data-product="full_website_geo_audit"] {
  --service-accent: var(--score-green);
  --service-surface-a: #0D2B25;
  --service-surface-b: #081C18;
}

.service-option[data-product="modules_scan"] {
  --service-accent: var(--secondary);
  --service-surface-a: #17142B;
  --service-surface-b: #0F0D1E;
}

.service-option[data-product="monthly_geo_monitoring"] {
  --service-accent: var(--score-amber);
  --service-surface-a: #2B1F13;
  --service-surface-b: #17120D;
}

.service-option:hover {
  color: var(--text-soft);
  border-color: color-mix(in srgb, var(--service-accent, var(--accent)) 52%, var(--border));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--service-accent, var(--accent)) 13%, var(--service-surface-a)),
    color-mix(in srgb, var(--service-accent, var(--accent)) 7%, var(--service-surface-b)));
}

.service-option.active {
  color: var(--text);
  align-items: start;
  border-color: color-mix(in srgb, var(--service-accent, var(--accent)) 74%, var(--border));
  border-left-color: var(--service-accent, var(--accent));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--service-accent, var(--accent)) 23%, var(--service-surface-a)),
    color-mix(in srgb, var(--service-accent, var(--accent)) 13%, var(--service-surface-b)));
  outline: 2px solid color-mix(in srgb, var(--service-accent, var(--accent)) 62%, transparent);
  outline-offset: -1px;
  box-shadow:
    inset 5px 0 0 color-mix(in srgb, var(--service-accent, var(--accent)) 92%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--service-accent, var(--accent)) 44%, transparent),
    0 16px 34px rgba(0,0,0,0.30),
    0 0 28px color-mix(in srgb, var(--service-accent, var(--accent)) 16%, transparent);
}

.service-option-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18;
  min-width: 0;
}

.service-option.active .service-option-name {
  color: var(--text);
}

.service-option-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: normal;
  line-height: 1.35;
}

.service-option.active .service-option-meta {
  color: var(--service-accent, var(--accent));
}

.service-option-output {
  grid-column: 1 / -1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding-top: 5px;
  width: 100%;
}


.service-output-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 650;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-output-chip:nth-child(1) {
  color: var(--score-blue);
  border-color: rgba(84,181,255,0.22);
  background: rgba(84,181,255,0.06);
}

.service-output-chip:nth-child(2) {
  color: var(--score-green);
  border-color: rgba(0,229,160,0.20);
  background: rgba(0,229,160,0.06);
}

.service-output-chip:nth-child(3) {
  color: var(--score-amber);
  border-color: rgba(255,181,71,0.20);
  background: rgba(255,181,71,0.06);
}

.service-output-chip:nth-child(4) {
  color: var(--secondary);
  border-color: rgba(124,92,252,0.20);
  background: rgba(124,92,252,0.06);
}

.service-option.active .service-output-chip {
  color: var(--text-soft);
  border-color: color-mix(in srgb, var(--service-accent, var(--accent)) 22%, var(--border));
  background: color-mix(in srgb, var(--service-accent, var(--accent)) 7%, transparent);
}

.service-option.active .service-output-chip:nth-child(1) {
  color: var(--score-blue);
  border-color: rgba(84,181,255,0.26);
  background: rgba(84,181,255,0.08);
}

.service-option.active .service-output-chip:nth-child(2) {
  color: var(--score-green);
  border-color: rgba(0,229,160,0.24);
  background: rgba(0,229,160,0.08);
}

.service-option.active .service-output-chip:nth-child(3) {
  color: var(--score-amber);
  border-color: rgba(255,181,71,0.24);
  background: rgba(255,181,71,0.08);
}

.service-option.active .service-output-chip:nth-child(4) {
  color: var(--secondary);
  border-color: rgba(124,92,252,0.24);
  background: rgba(124,92,252,0.08);
}

/* Full Audit "can include" band — Citation / AEO layer signal (2026-06-07) */
.included-layers {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 8px;
  padding: 7px 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  background: rgba(0,229,160,0.05);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.included-label {
  flex: 1 0 100%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.layer-pill {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.layer-pill.citation {
  color: #A58CFF;
  border: 1px solid rgba(124,92,252,0.38);
  background: rgba(124,92,252,0.12);
}
.layer-pill.benchmark {
  color: var(--score-amber);
  border: 1px solid rgba(255,181,71,0.38);
  background: rgba(255,181,71,0.10);
}
.layer-pill.aeo {
  color: var(--info);
  border: 1px solid rgba(84,181,255,0.38);
  background: rgba(84,181,255,0.10);
}
.layer-pill.discovery {
  color: var(--accent);
  border: 1px solid rgba(0,229,160,0.34);
  background: rgba(0,229,160,0.08);
}

/* Add-on toggles — shown only when Full Audit is active (2026-06-07) */
.addon-row {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
.addon-row.show { display: grid; }
.modules-addon-row {
  display: grid;
  margin-bottom: 0;
}
.addon {
  --addon-accent: var(--secondary);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  text-align: left;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--addon-accent) 34%, var(--border));
  background: color-mix(in srgb, var(--addon-accent) 7%, transparent);
  color: var(--text-soft);
  padding: 10px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.addon[data-addon="benchmark"],
.addon[data-module="benchmark"] { --addon-accent: var(--score-amber); }
.addon[data-addon="aeo"] { --addon-accent: var(--info); }
.addon[data-addon="discovery"],
.addon[data-module="discovery"] { --addon-accent: var(--accent); }
.addon[data-module="aeo"] { --addon-accent: var(--info); }
.addon[data-module="citation"] { --addon-accent: var(--secondary); }
.addon.on {
  background: color-mix(in srgb, var(--addon-accent) 13%, transparent);
  border-color: color-mix(in srgb, var(--addon-accent) 64%, var(--border));
}
.addon-check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--addon-accent) 58%, var(--border));
  position: relative;
}
.addon.on .addon-check { background: var(--addon-accent); }
.addon.on .addon-check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #03140f;
  font-size: 12px;
  font-weight: 800;
}
.addon-name { display: block; font-size: 13px; font-weight: 800; color: var(--text); }
.addon-note { display: block; margin-top: 2px; font-size: 11px; line-height: 1.3; color: var(--text-muted); }

/* Primary scan button follows the selected module color (2026-06-07) */
.scan-btn-primary {
  background: var(--run-accent, var(--accent));
  box-shadow: 0 0 20px color-mix(in srgb, var(--run-accent, var(--accent)) 30%, transparent);
}
.scan-btn-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--run-accent, var(--accent)) 88%, #fff);
  box-shadow: 0 0 30px color-mix(in srgb, var(--run-accent, var(--accent)) 38%, transparent);
}

/* Tabs */
.input-tabs {
  display: none;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.input-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.tab-btn:hover:not(.disabled) {
  color: var(--text-soft);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-btn.tab-btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.phase-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 600;
  background: rgba(85,85,106,0.3);
  color: var(--text-dim);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

/* Input Body */
.input-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.input-area {
  margin-bottom: 0;
}

.input-group {
  margin-top: 14px;
}

.input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 7px;
}

.input-label svg { opacity: 0.7; }

.label-note {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  color: var(--text-dim);
  margin-left: 2px;
}

/* Fields */
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid color-mix(in srgb, var(--run-accent, var(--accent)) 18%, rgba(255,255,255,0.06));
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-dim);
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  border-color: color-mix(in srgb, var(--run-accent, var(--accent)) 78%, var(--border-focus));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--run-accent, var(--accent)) 18%, transparent),
    0 0 20px color-mix(in srgb, var(--run-accent, var(--accent)) 12%, transparent);
  background: color-mix(in srgb, var(--run-accent, var(--accent)) 7%, #1e1e2a);
}

.field-textarea {
  min-height: 160px;
  resize: vertical;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
}

.field-textarea-sm {
  min-height: 60px;
  resize: none;
}

.field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.field-select option {
  background: var(--bg-card);
  color: var(--text);
}

.keyword-set-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 8px;
  align-items: start;
}

.keyword-set-row-compact {
  margin-bottom: 8px;
}

.keyword-set-row > .field-input,
.keyword-set-row > .field-textarea {
  min-width: 0;
}

.keyword-set-select {
  height: 40px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
}

.keyword-set-row > .field-textarea + .keyword-set-select {
  height: 60px;
}

@media (max-width: 720px) {
  .keyword-set-row {
    grid-template-columns: 1fr;
  }

  .keyword-set-select {
    width: 100%;
  }
}

.textarea-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}

.char-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.field-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.5;
}

/* AI Mode */
.ai-mode-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.ai-mode-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap;
}

.ai-mode-btns {
  display: flex;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.ai-mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.ai-mode-btn.active {
  background: var(--accent);
  color: #000;
}

.ai-mode-badge {
  font-size: 8.5px;
  background: rgba(255,255,255,0.15);
  padding: 1px 5px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.ai-mode-btn:not(.active) .ai-mode-badge {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Report Outputs */
.output-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.output-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.output-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

.output-check span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-soft);
}

.output-check:hover span {
  color: var(--text);
}

/* Error Bar */
.error-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(224,82,82,0.10);
  border: 1px solid rgba(224,82,82,0.25);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--error);
}

/* ═══ Unified Scan Actions Bar ═══ */
.scan-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 0;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.scan-actions .error-bar {
  margin: 0 0 2px;
}
.scan-actions .analyze-btn {
  margin-top: 0;
}
/* Secondary scan buttons — Benchmark = orange, Citation = purple (2026-06-07).
   The old bright-green outline clashed with the new card palette. */
.scan-credit-context {
  margin-top: -2px;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.scan-credit-context.is-empty {
  color: var(--warning);
}

.scan-btn-secondary {
  --secondary-btn: var(--text-muted);
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--secondary-btn) 55%, transparent) !important;
  color: var(--secondary-btn) !important;
  box-shadow: none !important;
  font-size: 11px !important;
  padding: 10px 16px !important;
}
.scan-btn-secondary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary-btn) 12%, transparent) !important;
  border-color: var(--secondary-btn) !important;
  transform: none !important;
}
#benchmarkBtn.scan-btn-secondary { --secondary-btn: #FF8C42; }   /* orange */
#citationScanBtn.scan-btn-secondary { --secondary-btn: var(--secondary); }  /* purple */
#benchmarkBtn.scan-btn-secondary svg,
#citationScanBtn.scan-btn-secondary svg { color: var(--secondary-btn) !important; }

/* Analyze Button */
.analyze-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 16px;
  box-shadow: 0 0 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.analyze-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.analyze-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 0 30px rgba(0,229,160,0.35);
  transform: translateY(-1px);
}

.analyze-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.analyze-btn.is-credit-blocked:not(:disabled) {
  background: rgba(255, 181, 71, 0.18);
  color: #FFD89B;
  border: 1px solid rgba(255, 181, 71, 0.30);
  box-shadow: none;
}

.analyze-btn.is-credit-blocked:hover:not(:disabled) {
  background: rgba(255, 181, 71, 0.24);
  box-shadow: none;
}

.analyze-btn-icon {
  font-size: 18px;
  font-weight: 700;
}

/* Spinner */
.analyze-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════
   OUTPUT SECTION (right)
   ══════════════════════════════════════ */
.output-section {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg-body);
  position: relative;
}

.output-section::-webkit-scrollbar { width: 5px; }
.output-section::-webkit-scrollbar-track { background: transparent; }
.output-section::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── IDLE STATE ── */
.idle-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  padding: 60px 40px;
  text-align: center;
}

.idle-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  opacity: 0.36;
  filter: invert(1) brightness(1.42) drop-shadow(0 0 18px rgba(0, 229, 160, 0.14));
  pointer-events: none;
}

.idle-brand-mark {
  width: 48px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.idle-brand-wordmark {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.idle-graphic {
  margin-bottom: 24px;
  opacity: 0.7;
}

.idle-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.idle-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.idle-desc strong {
  color: var(--accent);
  font-weight: 600;
}

.idle-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.idle-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.idle-chip:hover {
  border-color: rgba(0, 229, 160, 0.20);
  color: var(--accent);
}

/* ── RESULTS PANEL ── */
.results-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.results-panel-brand {
  justify-content: center;
  margin: 10px auto 18px;
}

/* ══════════════════════════════════════
   LOADING STATES
   ══════════════════════════════════════ */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 16px;
}

/* Geo Progress */
.geo-progress-header {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  align-self: flex-start;
  width: 100%;
}

.geo-progress-title {
  font-weight: 700;
}

.geo-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.geo-stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.geo-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.geo-stat-item strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
}

/* ── RADAR ANIMATION ── */
.radar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.radar-container {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-sweep-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 300deg,
    rgba(0, 229, 160, 0.12) 340deg,
    rgba(0, 229, 160, 0.22) 360deg
  );
  animation: radarSpin 2s linear infinite;
}

.radar-svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(0, 229, 160, 0.22));
}

.radar-sweep-line {
  transform-origin: 60px 60px;
  animation: radarSpin 2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(0, 229, 160, 0.80));
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.radar-blips {
  position: absolute;
  inset: 0;
}

.radar-blip {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  animation: blipPulse 2.4s ease-in-out infinite;
}

@keyframes blipPulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  40%, 60%  { opacity: 1; transform: scale(1); }
}

/* Scan progress bar + steps */
.scan-anim {
  width: 100%;
  max-width: 400px;
}

.scan-bar-track {
  height: 3px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.scan-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 2.4s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

.scan-steps-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.scan-step {
  flex: 1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 3px;
  text-align: center;
  transition: all 0.3s ease;
}

.scan-step.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(0,204,112,0.30);
  animation: scanPulse 1.4s ease-in-out infinite;
}

.scan-step.done {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

@keyframes scanPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.loading-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.loading-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
}

/* ══════════════════════════════════════
   RESULTS CONTENT
   ══════════════════════════════════════ */
.results-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.scan-report-masthead {
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(0, 229, 160, 0.05));
  box-shadow: var(--shadow-sm);
}

.scan-report-kicker {
  color: #fb923c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.scan-report-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.results-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.results-ts {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.results-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── EXECUTIVE SUMMARY ── */
.exec-summary-card {
  background: linear-gradient(135deg, rgba(0,229,160,0.06) 0%, rgba(0,229,160,0.02) 100%);
  border: 1px solid rgba(0,229,160,0.15);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
}
.exec-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.exec-summary-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.exec-summary-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exec-text {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
  padding-left: 24px;
  position: relative;
}
.exec-text::before {
  content: '\2022';
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: 700;
}

/* ── GAUGES ROW ── */
.gauges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.gauge-card {
  background: linear-gradient(135deg, #121722 0%, #0F141F 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.gauge-card:hover {
  border-color: rgba(0, 229, 160, 0.20);
  background: linear-gradient(135deg, #151B28 0%, #111724 100%);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.gauge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  isolation: isolate;
}

.gauge-wrap::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gauge-glow-color, rgba(84, 181, 255, 0.26)) 0%, transparent 68%);
  filter: blur(13px);
  opacity: 0.72;
  transform: translateZ(0);
  pointer-events: none;
  z-index: 0;
}

.gauge-wrap.gauge-glow-green { --gauge-glow-color: rgba(0, 229, 160, 0.30); }
.gauge-wrap.gauge-glow-blue { --gauge-glow-color: rgba(84, 181, 255, 0.30); }
.gauge-wrap.gauge-glow-amber { --gauge-glow-color: rgba(255, 181, 71, 0.28); }
.gauge-wrap.gauge-glow-red { --gauge-glow-color: rgba(255, 92, 92, 0.24); }

.gauge-svg {
  display: block;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.gauge-bg {
  fill: none;
  stroke: var(--bg-active);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  filter: none;
  shape-rendering: geometricPrecision;
}

.gauge-fill.fill-green  { stroke: var(--score-green); }
.gauge-fill.fill-blue   { stroke: var(--score-blue); }
.gauge-fill.fill-amber  { stroke: var(--score-amber); }
.gauge-fill.fill-red    { stroke: var(--score-red); }

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  z-index: 2;
}

.gauge-score {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.gauge-score.score-green { color: var(--score-green); }
.gauge-score.score-blue  { color: var(--score-blue); }
.gauge-score.score-amber { color: var(--score-amber); }
.gauge-score.score-red   { color: var(--score-red); }

.gauge-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gauge-sublabel {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  padding: 0 4px;
}

.visibility-dimensions-card {
  background: linear-gradient(135deg, rgba(14,17,23,0.98), rgba(11,13,20,0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.visibility-dimensions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.visibility-dimensions-head h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.visibility-dimensions-head p {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.visibility-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.visibility-dimension {
  min-height: 104px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}

.visibility-dimension.pass { border-color: rgba(0,229,160,0.24); }
.visibility-dimension.warning { border-color: rgba(255,181,71,0.28); }
.visibility-dimension.fail { border-color: rgba(255,92,92,0.28); }

.visibility-dim-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.visibility-dim-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-soft);
  line-height: 1.2;
}

.visibility-dim-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.visibility-dim-bar {
  height: 4px;
  background: var(--bg-active);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 10px;
}

.visibility-dim-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.visibility-dimension.warning .visibility-dim-bar span { background: var(--warning); }
.visibility-dimension.fail .visibility-dim-bar span { background: var(--error); }

.visibility-dim-summary {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.visibility-signal-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.visibility-signal-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px;
  background: rgba(255,255,255,0.025);
}

.visibility-signal-row.pass { border-color: rgba(0,229,160,0.18); }
.visibility-signal-row.warning { border-color: rgba(255,181,71,0.22); }
.visibility-signal-row.fail { border-color: rgba(255,92,92,0.22); }

.visibility-signal-main {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.visibility-signal-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}

.visibility-signal-row.pass .visibility-signal-status { background: var(--success); }
.visibility-signal-row.warning .visibility-signal-status { background: var(--warning); }
.visibility-signal-row.fail .visibility-signal-status { background: var(--error); }

.visibility-signal-name {
  min-width: 0;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.visibility-signal-weight {
  color: var(--text-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
}

.visibility-signal-detail {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.visibility-dim-next {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.4;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-bottom: 9px;
}

.visibility-dim-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
}

.visibility-signal-dots {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.visibility-signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}

.visibility-signal-dot.pass { background: var(--success); }
.visibility-signal-dot.warning { background: var(--warning); }
.visibility-signal-dot.fail { background: var(--error); }

/* ── VERDICT LAMP (traffic-light stack beside each gauge) ── */
.gauge-wrap {
  /* ensure the lamp has room to sit to the right of the gauge */
  padding-right: 0;
}

.verdict-lamp {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.verdict-lamp-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a1a20;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.verdict-lamp-light.lamp-red.active {
  background: #ff4d5e;
  box-shadow: 0 0 8px #ff4d5e, 0 0 14px rgba(255, 77, 94, 0.5);
  border-color: rgba(255, 77, 94, 0.8);
}
.verdict-lamp-light.lamp-yellow.active {
  background: #ffc84d;
  box-shadow: 0 0 8px #ffc84d, 0 0 14px rgba(255, 200, 77, 0.5);
  border-color: rgba(255, 200, 77, 0.8);
}
.verdict-lamp-light.lamp-green.active {
  background: #00e5a0;
  box-shadow: 0 0 8px #00e5a0, 0 0 14px rgba(0, 229, 160, 0.5);
  border-color: rgba(0, 229, 160, 0.8);
}

/* ── VERDICT LEGEND ── */
.verdict-legend {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.verdict-legend-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.verdict-legend-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verdict-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.verdict-legend-row strong {
  color: var(--text);
  font-weight: 700;
}

.verdict-lamp-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.verdict-lamp-dot.lamp-red    { background: #ff4d5e; box-shadow: 0 0 6px rgba(255, 77, 94, 0.6); }
.verdict-lamp-dot.lamp-yellow { background: #ffc84d; box-shadow: 0 0 6px rgba(255, 200, 77, 0.6); }
.verdict-lamp-dot.lamp-green  { background: #00e5a0; box-shadow: 0 0 6px rgba(0, 229, 160, 0.6); }

/* ── SCORE ANATOMY (waterfall breakdown per gauge) ── */
.score-anatomy-wrap {
  margin: 10px 0 14px;
}
.score-anatomy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 1100px) {
  .score-anatomy-grid { grid-template-columns: 1fr; }
}
.anatomy-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.anatomy-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.anatomy-head:hover { background: rgba(255,255,255,0.02); }
.anatomy-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text);
}
.anatomy-summary {
  margin-left: auto;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.anatomy-chev {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
.anatomy-head[aria-expanded="true"] .anatomy-chev { transform: rotate(180deg); }
.anatomy-body {
  border-top: 1px solid var(--border);
  padding: 10px 14px 12px;
}
.anatomy-body[hidden] { display: none; }
.anatomy-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
}
.anatomy-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 6px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.anatomy-table td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  vertical-align: middle;
}
.anatomy-table tbody tr:last-child td { border-bottom: 0; }
.anatomy-table tfoot td {
  padding: 7px 6px;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  font-weight: 700;
  color: var(--text);
}
.anatomy-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; }
.anatomy-weight { width: 48px; color: var(--text-muted); }
.anatomy-status { width: 110px; }
.anatomy-status span { margin-left: 6px; }
.anatomy-gain { width: 60px; text-align: right; font-weight: 600; }
.anatomy-running { width: 70px; text-align: right; color: var(--text-muted); }

.anatomy-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}
.anatomy-dot-pass    { background: #00e5a0; box-shadow: 0 0 4px rgba(0,229,160,0.5); }
.anatomy-dot-warning { background: #ffc84d; box-shadow: 0 0 4px rgba(255,200,77,0.5); }
.anatomy-dot-fail    { background: #ff4d5e; box-shadow: 0 0 4px rgba(255,77,94,0.5); }

.anatomy-gain-pass    { color: #00e5a0; }
.anatomy-gain-warning { color: #ffc84d; }
.anatomy-gain-fail    { color: #ff4d5e; }

.anatomy-cap-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border-left: 3px solid var(--border);
}
.anatomy-cap-red    { border-left-color: #ff4d5e; color: #ff8b97; background: rgba(255,77,94,0.06); }
.anatomy-cap-yellow { border-left-color: #ffc84d; color: #ffd98a; background: rgba(255,200,77,0.06); }
.anatomy-cap-green  { border-left-color: #00e5a0; color: #6ff0c5; background: rgba(0,229,160,0.05); }

/* ── REPORT TOGGLE ── */
.report-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  width: 100%;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.report-toggle-btn:hover {
  background: var(--bg-hover);
  border-color: rgba(0,229,160,0.30);
  box-shadow: var(--shadow-glow);
}

/* ── RESULT CARDS ── */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.result-card:hover {
  border-color: rgba(0, 229, 160, 0.14);
  box-shadow: var(--shadow-md);
}

.download-center-card {
  --download-primary-text: #E2E7EF;
  --download-muted-text: #96A2B3;
  padding: 16px;
  border-color: rgba(249, 115, 22, 0.26);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.10), rgba(0, 229, 160, 0.035) 42%, rgba(255,255,255,0.018)),
    var(--bg-card);
}

.download-center-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.download-center-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: #fb923c;
  margin: 0 0 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.download-center-header p {
  font-size: 11.5px;
  color: var(--download-muted-text);
  line-height: 1.45;
  margin: 0;
  max-width: 680px;
}

.download-center-context {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: right;
  min-width: 160px;
}

.download-center-context span {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.download-center-context strong {
  color: var(--download-primary-text);
  font-size: 12px;
  font-weight: 700;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.download-option {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.download-option:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.06);
}

.download-option-copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
}

.download-option-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-option-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--accent);
  background: rgba(0, 229, 160, 0.09);
}

.download-option:hover .download-option-icon {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.13);
}

.download-option-action {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.10);
  transition: var(--transition);
}

.download-option:hover .download-option-action {
  color: #0B0D14;
  background: #fb923c;
  border-color: #fb923c;
}

.download-option-copy strong {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--download-primary-text);
}

.download-option-copy small {
  font-size: 10px;
  line-height: 1.35;
  color: var(--download-muted-text);
}

.download-option.is-disabled {
  cursor: not-allowed;
  opacity: .52;
}

.download-option.is-disabled:hover {
  border-color: var(--border);
  background: var(--bg-card-alt);
}

.download-option.is-disabled:hover .download-option-action {
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.10);
}

@media (max-width: 1220px) {
  .download-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .download-center-header {
    flex-direction: column;
  }

  .scan-subsection-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .scan-subsection-trailing {
    justify-content: flex-start;
  }

  .download-center-context {
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }

  .download-options {
    grid-template-columns: 1fr;
  }
}

.module-overview-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 10px;
}

.module-overview-chip {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.module-overview-chip::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px 52px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.module-overview-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
}

.module-overview-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.035);
}

.module-overview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.module-overview-chip strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.module-overview-chip small {
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-overview-chip.is-selected,
.module-overview-chip.is-done {
  border-color: rgba(249, 115, 22, 0.40);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(0, 229, 160, 0.04)),
    var(--bg-card-alt);
}

.module-overview-chip.is-done {
  border-color: rgba(0, 229, 160, 0.52);
  background:
    linear-gradient(135deg, rgba(0, 229, 160, 0.18), rgba(249, 115, 22, 0.055)),
    var(--bg-card-alt);
}

.module-overview-chip.is-done::after {
  background: linear-gradient(90deg, #00E5A0, rgba(249, 115, 22, 0.62));
}

.module-overview-chip.is-done .module-overview-icon {
  color: #06140f;
  border-color: rgba(0, 229, 160, 0.55);
  background: #00E5A0;
  box-shadow: 0 0 0 4px rgba(0, 229, 160, 0.12);
}

.module-overview-chip.is-selected .module-overview-icon {
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(249, 115, 22, 0.13);
}

.module-download-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(249, 115, 22, 0.075);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.module-download-note-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #06140f;
  background: #fb923c;
  font-weight: 900;
}

.module-download-anchor {
  display: none;
}

.module-scan-meta-grid {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .module-overview-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .module-overview-chips {
    grid-template-columns: 1fr;
  }
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  min-height: 50px;
  background:
    linear-gradient(90deg, rgba(0,229,160,0.055), rgba(84,181,255,0.025)),
    rgba(255,255,255,0.012);
  border-bottom: 1px solid var(--border);
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.result-card > .card-header::before,
.scan-section-symbol {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--accent);
  border: 1px solid rgba(0, 229, 160, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 229, 160, 0.12), rgba(84, 181, 255, 0.06)),
    rgba(255,255,255,0.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.result-card > .card-header::before { content: "\25C6"; }
#crawlerViewCard > .card-header::before { content: "\2609"; }
#summaryCard > .card-header::before { content: "\25C6"; }
#citationCard > .card-header::before { content: "\2605"; }
#aeoCard > .card-header::before { content: "\26A1"; }
#geoAuditCard > .card-header::before { content: "\25EF"; }
#funnelCard > .card-header::before { content: "\25B3"; }
#seoCard > .card-header::before { content: "\25CE"; }
#geoCard > .card-header::before { content: "\25C7"; }
#aiCard > .card-header::before { content: "\2726"; }
#eeatCard > .card-header::before { content: "\25C6"; }
#actionsCard > .card-header::before { content: "\2192"; }
#platformCard > .card-header::before { content: "\25C9"; }

.result-card > .card-header .card-icon,
.result-card > .card-header > .scan-section-symbol {
  display: none;
}

.collapsible-header {
  cursor: pointer;
  justify-content: space-between;
}

.collapsible-header:hover {
  background: rgba(255,255,255,0.03);
}

.card-icon {
  font-size: 14px;
  color: var(--accent);
  opacity: 0.8;
  flex-shrink: 0;
}

.card-title {
  font-size: 12.5px;
  font-weight: 850;
  color: var(--text) !important;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.scan-section-heading,
.scan-subsection-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.scan-subsection-card {
  margin-bottom: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.scan-subsection-compact {
  margin-bottom: 16px;
}

.scan-subsection-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.scan-subsection-compact .scan-subsection-head {
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: 0;
}

.scan-section-title-text,
.visibility-dimensions-head h3 {
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.2;
}

.scan-subsection-trailing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}

.scan-subsection-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.collapse-icon {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.collapse-icon.rotated { transform: rotate(180deg); }

/* Section Intro */
.section-intro {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 12px;
  padding: 0 4px;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 16px;
  gap: 10px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 20px 14px 16px;
  background: linear-gradient(135deg, rgba(14,17,23,0.95) 0%, rgba(11,13,20,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  text-align: center;
  min-height: 96px;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
}

.summary-item:hover {
  border-color: rgba(0, 229, 160, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,229,160,0.10), 0 2px 10px rgba(0,0,0,0.25);
}

.summary-item > * {
  display: block;
  width: 100%;
}

.summary-value {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.summary-value.text-val {
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

.summary-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.summary-desc {
  display: block;
  font-size: 9px;
  color: var(--text-dim);
  line-height: 1.4;
  max-width: 140px;
}

/* LLM Crawler View */
.crawler-view-wrap {
  padding: 14px 16px 16px;
}

.crawler-view-intro {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
}

.crawler-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 900px) {
  .crawler-view-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.crawler-view-item {
  min-height: 88px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(14,17,23,0.96), rgba(11,13,20,0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.crawler-view-value {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.crawler-view-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 5px;
}

.crawler-view-note {
  display: block;
  font-size: 9px;
  color: var(--text-dim);
  line-height: 1.4;
}

.crawler-action-box {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0,229,160,0.16);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(0,229,160,0.05);
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-muted);
}

.crawler-action-box strong {
  color: var(--text);
}

/* Page Type Banner */
.page-type-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 160, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.page-type-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.page-type-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.page-type-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* Geo Audit Mono */
.geo-audit-mono {
  padding: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--text-soft);
  white-space: normal;
  background: var(--bg-card-alt);
}

/* Check List — GreenLight Pricing Typography Pattern */
.check-list {
  padding: 4px 0;
}

.check-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.check-item:last-child { border-bottom: none; }

.check-item:hover { background: rgba(0, 229, 160, 0.03); }

.check-status {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  margin-top: 1px;
  line-height: 1;
}

.check-status.pass    { color: var(--success); background: rgba(0, 229, 160, 0.10); }
.check-status.warning { color: var(--warning); background: rgba(255, 181, 71, 0.10); }
.check-status.fail    { color: var(--error);   background: rgba(255, 92, 92, 0.10); }

.check-info { flex: 1; min-width: 0; line-height: 1.5; }

.check-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
  letter-spacing: 0.01em;
}

.check-detail {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  line-height: 1.6;
}

.check-narrative {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-soft);
  font-style: italic;
}

.check-narrative.warning,
.check-narrative.fail {
  color: var(--warning);
}

.geo-check-group-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 18px 8px;
  padding: 9px 12px;
  border: 1px solid rgba(84, 181, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 181, 255, 0.12), rgba(0, 229, 160, 0.045)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.geo-check-group-heading strong {
  min-width: 0;
  font-size: 10.5px;
  font-weight: 850;
  color: #D9ECFF;
  letter-spacing: 0.085em;
  line-height: 1.25;
  text-transform: uppercase;
}

.geo-check-group-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 181, 255, 0.32);
  border-radius: 7px;
  color: #54B5FF;
  background: rgba(84, 181, 255, 0.11);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 900;
}

.geo-check-group-heading--aeo {
  border-color: rgba(167, 139, 250, 0.28);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.13), rgba(0, 229, 160, 0.04)),
    rgba(255, 255, 255, 0.018);
}

.geo-check-group-heading--aeo .geo-check-group-mark {
  color: #A78BFA;
  border-color: rgba(167, 139, 250, 0.34);
  background: rgba(167, 139, 250, 0.12);
}

.aeo-result-shell {
  padding: 14px 18px 18px;
}

.aeo-result-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 0 16px;
  border-bottom: 1px solid var(--border);
}

.aeo-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.aeo-issues-title {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(0, 229, 160, 0.22);
  border-radius: 7px;
  background: rgba(0, 229, 160, 0.06);
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .aeo-result-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .aeo-step-grid {
    grid-template-columns: 1fr;
  }
}

/* Funnel */
.funnel-body {
  padding: 14px 16px;
}

.funnel-stages {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.funnel-stage {
  flex: 1;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.funnel-stage:hover {
  border-color: rgba(0,229,160,0.15);
  transform: translateY(-1px);
}

.funnel-stage.active {
  background: linear-gradient(135deg, rgba(0,229,160,0.08) 0%, rgba(0,229,160,0.03) 100%);
  border-color: rgba(0,229,160,0.35);
  box-shadow: 0 2px 12px rgba(0,229,160,0.10), 0 2px 8px rgba(0,0,0,0.12);
}

.funnel-stage-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.funnel-stage.active .funnel-stage-name { color: var(--accent); }

.funnel-stage-label {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
}

.funnel-confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.funnel-conf-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.funnel-conf-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-active);
  border-radius: 4px;
  overflow: hidden;
}

.funnel-conf-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 1s ease;
}

.funnel-conf-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
}

.funnel-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.funnel-hook {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(0,229,160,0.05);
  border-left: 3px solid var(--accent, #00E5A0);
  border-radius: 6px;
}
.funnel-hook-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}
.funnel-hook-body {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 8px;
}
.funnel-hook-next {
  font-size: 12px;
  color: var(--accent, #00E5A0);
  font-style: italic;
  line-height: 1.55;
}
.funnel-gap-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.025);
  border-radius: 4px;
}
.funnel-gap-text { line-height: 1.55; font-size: 11.5px; }

.funnel-gaps {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.funnel-gap-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.funnel-gap-stage {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--warning);
  font-size: 10px;
  background: rgba(245,166,35,0.10);
  padding: 2px 6px;
  border-radius: 3px;
}

.funnel-gap-text { color: var(--text-muted); }

.ai-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-top: 12px;
}

/* AI Quality */
.ai-body { padding: 14px 16px; }

.ai-stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.ai-stat {
  flex: 1;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.ai-stat-num {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.ai-stat-num.good  { color: var(--success); }
.ai-stat-num.warn  { color: var(--warning); }
.ai-stat-num.bad   { color: var(--error); }

.ai-stat-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.cliche-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cliche-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: var(--bg-card-alt);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cliche-phrase {
  color: var(--warning);
  font-style: italic;
  font-weight: 500;
}

.cliche-arrow { color: var(--text-dim); }

.cliche-suggestion { color: var(--text-soft); }

.ai-issues { margin-top: 10px; }

.ai-issue-item {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.ai-issue-item:last-child { border-bottom: none; }

/* E-E-A-T */
.eeat-body { padding: 14px 16px; }

.eeat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.eeat-dimension {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.eeat-dim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.eeat-dim-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eeat-dim-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
}

.eeat-dim-score.score-green { color: var(--score-green); }
.eeat-dim-score.score-blue  { color: var(--score-blue); }
.eeat-dim-score.score-amber { color: var(--score-amber); }
.eeat-dim-score.score-red   { color: var(--score-red); }

.eeat-dim-bar {
  height: 3px;
  background: var(--bg-active);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.eeat-dim-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.eeat-issues { }

.eeat-issue {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Platform */
.platform-body { padding: 10px; }

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.platform-item.platform-expandable { cursor: pointer; }
.platform-item.platform-expandable:hover { border-color: rgba(0,229,160,0.22); }

.platform-priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prio-critical { background: var(--error); box-shadow: 0 0 6px rgba(224,82,82,0.5); }
.prio-high     { background: var(--warning); }
.prio-medium   { background: var(--info); }
.prio-low      { background: var(--text-dim); }

.platform-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.platform-action {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.platform-detail {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.5;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.platform-prio-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.badge-critical { background: rgba(224,82,82,0.15); color: var(--error); }
.badge-high     { background: rgba(245,166,35,0.15); color: var(--warning); }
.badge-medium   { background: rgba(74,158,255,0.12); color: var(--info); }
.badge-low      { background: rgba(136,136,160,0.12); color: var(--text-dim); }

.platform-expand-icon {
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* Actions */
.actions-body { padding: 10px; }

.action-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: action-counter;
}

.action-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--text-dim);
  border-radius: 0;
  padding-left: 16px;
  transition: background 0.15s;
}

.action-item:last-child { border-bottom: none; }
.action-item:hover { background: rgba(0,229,160,0.03); }

.action-item.critical { border-left-color: var(--error); }
.action-item.high     { border-left-color: var(--warning); }
.action-item.medium   { border-left-color: var(--info); }
.action-item.low      { border-left-color: var(--accent); }

.action-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* GreenLight pricing pattern for actions */
.action-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: inline;
  line-height: 1.5;
}

.action-detail {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  display: inline;
  margin-left: 4px;
  line-height: 1.5;
}

/* ── EXPORT BAR ── */
.export-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

/* ── ACTION BUTTONS (SMALL) ── */
.action-btn-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.action-btn-sm.primary {
  background: var(--accent);
  color: #000;
}

.action-btn-sm.primary:hover {
  background: var(--accent-hover);
}

.action-btn-sm.secondary {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.action-btn-sm.secondary:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: rgba(0,229,160,0.22);
}

.action-btn-sm.large {
  padding: 10px 20px;
  font-size: 13px;
}

/* ══════════════════════════════════════
   ARCHIVE VIEW
   ══════════════════════════════════════ */
.archive-view {
  padding: 24px;
  max-width: 800px;
}

.archive-view-header {
  margin-bottom: 20px;
}

.archive-view-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.archive-view-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.archive-list-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.archive-list {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.archive-list::-webkit-scrollbar { width: 4px; }
.archive-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.archive-placeholder {
  padding: 32px 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  transition: background 0.15s;
  cursor: pointer;
}

.archive-item:last-child { border-bottom: none; }

.archive-item:hover { background: var(--bg-hover); }

.archive-item-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.archive-domain {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.archive-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.archive-product {
  width: fit-content;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 204, 112, 0.08);
  border: 1px solid rgba(0, 204, 112, 0.20);
  border-radius: 4px;
  padding: 2px 6px;
}

.archive-item-scores {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.archive-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.archive-score b {
  color: var(--accent);
  font-weight: 600;
}

.archive-artifact-count {
  color: var(--text-soft);
}

.projects-view {
  padding: 28px 32px;
  height: 100%;
  overflow-y: auto;
}

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

.projects-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.projects-overview-card {
  min-height: 76px;
  padding: 14px 15px;
  border: 1px solid rgba(84, 181, 255, 0.18);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(84, 181, 255, 0.10), rgba(0, 204, 112, 0.04)),
    var(--bg-card);
}

.projects-overview-card span,
.projects-overview-card small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects-overview-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
}

.projects-overview-card.wide strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.projects-overview-card.wide small {
  margin-top: 7px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.projects-domain-panel,
.projects-scan-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.projects-domain-panel {
  position: sticky;
  top: 16px;
}

.projects-panel-title {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-domain-list {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

.project-domain-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.project-domain-item:hover {
  background: var(--bg-hover);
}

.project-domain-item.active {
  background: rgba(0, 204, 112, 0.08);
}

.project-domain-name {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.project-domain-sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--text-muted);
}

.project-domain-count {
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(0, 204, 112, 0.25);
  border-radius: 4px;
  padding: 2px 6px;
}

.projects-empty {
  padding: 26px 18px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.project-detail {
  min-height: 360px;
}

.project-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.project-spotlight {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(0, 204, 112, 0.10), rgba(84, 181, 255, 0.06)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
}

.project-spotlight-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 22px rgba(30, 214, 131, 0.12);
}

.project-spotlight-main {
  min-width: 0;
}

.project-spotlight-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.project-spotlight-title {
  font-size: 18px;
  font-weight: 850;
  color: var(--text);
}

.project-spotlight-meta {
  margin-top: 5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.project-spotlight-stats {
  display: flex;
  gap: 8px;
}

.project-spotlight-stats span {
  min-width: 70px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
}

.project-spotlight-stats b {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  color: var(--text);
}

.project-spotlight-stats small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-open-latest {
  min-height: 38px;
  padding-inline: 13px;
  background: rgba(0, 204, 112, 0.10);
}

.project-domain-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.project-domain-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.project-scan-list {
  display: flex;
  flex-direction: column;
}

.project-scan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.project-scan-card.is-latest {
  background: rgba(84, 181, 255, 0.04);
  box-shadow: inset 3px 0 0 rgba(84, 181, 255, 0.55);
}

.project-scan-card:last-child {
  border-bottom: 0;
}

.project-scan-main {
  min-width: 0;
}

.project-scan-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.project-scan-product {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.project-latest-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  color: #D9ECFF;
  border: 1px solid rgba(84, 181, 255, 0.28);
  background: rgba(84, 181, 255, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-scan-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.project-scan-url {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.project-scan-scores {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.project-scan-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 380px;
}

.project-download-btn,
.project-open-btn {
  border: 1px solid var(--border);
  background: var(--bg-card-alt);
  color: var(--text-soft);
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.project-open-btn {
  color: var(--accent);
  border-color: rgba(0, 204, 112, 0.25);
}

.project-download-btn:hover,
.project-open-btn:hover {
  border-color: var(--accent);
}

.project-download-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .projects-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-layout {
    grid-template-columns: 1fr;
  }

  .projects-domain-panel {
    position: static;
  }

  .project-scan-card {
    grid-template-columns: 1fr;
  }

  .project-spotlight {
    grid-template-columns: 1fr;
  }

  .project-spotlight-stats {
    flex-wrap: wrap;
  }

  .project-scan-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

.product-report-summary {
  padding: 18px;
}

.product-report-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.product-report-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.product-report-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.product-report-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(0,229,160,0.28);
  border-radius: 6px;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.product-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.product-report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.product-report-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.product-report-card-value {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.45;
}

.product-report-findings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-report-finding {
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--bg-card-alt);
}

.product-report-finding.high { border-left-color: var(--error); }
.product-report-finding.low { border-left-color: var(--accent); }

.product-report-finding-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

.product-report-finding-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ══════════════════════════════════════
   SETTINGS MODAL
   ══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--bg-card);
  width: 90%;
  max-width: 460px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease-out;
  overflow: hidden;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 16px;
  color: var(--accent);
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(224,82,82,0.15);
  border-color: rgba(224,82,82,0.30);
  color: var(--error);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

/* Provider Tabs */
.provider-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.provider-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.provider-btn.active {
  background: var(--accent-dim);
  border-color: rgba(0,229,160,0.35);
  color: var(--accent);
}

.provider-btn:not(.active):hover {
  background: var(--bg-hover);
  color: var(--text);
}

.provider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

.provider-btn.active .provider-dot {
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent-glow);
}

/* API Key Wrap */
.api-key-wrap {
  display: flex;
  gap: 6px;
}

.api-key-wrap .field-input { flex: 1; }

.modal-input {
  background: var(--bg-card-alt);
}

.key-toggle-btn {
  background: var(--bg-card-alt);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.key-toggle-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.eye-icon { display: block; }
.eye-icon.hidden { display: none; }

/* Model Display */
.model-display {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.settings-note {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.account-modal {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
}

.account-modal .modal-header {
  flex: 0 0 auto;
  padding: 12px 18px;
}

.account-modal .modal-body {
  min-height: 0;
  overflow: auto;
  padding: 14px 18px 16px;
  gap: 12px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.auth-mode-btn {
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.auth-mode-btn.active {
  background: rgba(84, 181, 255, 0.16);
  color: #D9ECFF;
}

.account-auth-panel,
.account-billing-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-summary-item {
  min-width: 0;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.account-summary-item span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.account-summary-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-billing-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}

.account-billing-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-panel {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(84, 181, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
    rgba(7, 11, 20, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.purchase-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

.purchase-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.purchase-header h3 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
}

.payment-methods {
  display: grid;
  margin-top: 10px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.70)),
    rgba(255, 255, 255, 0.025);
}

.payment-logo-tile {
  min-width: 0;
  display: block;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.payment-logo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-logo-tile-moneyback {
  grid-column: span 2;
}
.billing-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.billing-product-card {
  --card-accent: #54b5ff;
  --card-accent-soft: rgba(84, 181, 255, 0.14);
  --card-accent-line: rgba(84, 181, 255, 0.32);
  min-height: 188px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr auto;
  align-items: start;
  column-gap: 11px;
  row-gap: 7px;
  padding: 14px;
  border: 1px solid var(--card-accent-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--card-accent-soft), rgba(255, 255, 255, 0.018) 42%),
    rgba(8, 13, 24, 0.92);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  text-align: left;
  transition: var(--transition);
}

.billing-product-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent), transparent);
  opacity: 0.95;
}

.billing-product-card::after {
  content: '';
  position: absolute;
  width: 82px;
  height: 82px;
  right: -30px;
  top: -34px;
  border-radius: 999px;
  background: var(--card-accent-soft);
  pointer-events: none;
}

.billing-product-card:hover:not(:disabled) {
  border-color: var(--card-accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.billing-product-card:disabled {
  cursor: not-allowed;
}

.billing-product-card-featured,
.billing-product-card-plan {
  --card-accent: #00e5a0;
  --card-accent-soft: rgba(0, 229, 160, 0.15);
  --card-accent-line: rgba(0, 229, 160, 0.44);
}

.billing-product-card-single {
  --card-accent: #54b5ff;
  --card-accent-soft: rgba(84, 181, 255, 0.13);
  --card-accent-line: rgba(84, 181, 255, 0.32);
}

.billing-product-card-pack {
  --card-accent: #f5b85c;
  --card-accent-soft: rgba(245, 184, 92, 0.13);
  --card-accent-line: rgba(245, 184, 92, 0.34);
}

.billing-product-card-locked {
  opacity: 0.74;
}

.billing-card-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 56%, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-accent) 18%, rgba(255, 255, 255, 0.035));
  color: var(--card-accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.billing-product-card strong {
  grid-column: 2;
  grid-row: 2;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.billing-card-topline {
  grid-column: 2;
  grid-row: 1;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 34%, rgba(255, 255, 255, 0.08));
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent) 12%, rgba(255, 255, 255, 0.035));
  color: color-mix(in srgb, var(--card-accent) 78%, #ffffff);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.billing-card-price {
  grid-column: 1 / -1;
  grid-row: 3;
  color: var(--card-accent);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

.billing-card-detail {
  grid-column: 1 / -1;
  grid-row: 4;
  min-height: 40px;
  color: color-mix(in srgb, var(--text-muted) 86%, #ffffff);
  font-size: 12px;
  line-height: 1.45;
}

.billing-card-cta {
  grid-column: 1 / -1;
  grid-row: 5;
  margin-top: 2px;
  width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 42%, rgba(255, 255, 255, 0.10));
  border-radius: 7px;
  background: color-mix(in srgb, var(--card-accent) 14%, rgba(255, 255, 255, 0.035));
  color: color-mix(in srgb, var(--card-accent) 86%, #ffffff);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.billing-product-card:disabled .billing-card-cta {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}
@media (max-width: 1120px) {
  .account-modal {
    width: calc(100vw - 28px);
  }

  .account-billing-workspace {
    grid-template-columns: 1fr;
  }

  .account-billing-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    align-items: start;
  }

  .account-billing-side .modal-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .account-modal {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .account-modal .modal-body {
    padding: 12px;
  }

  .account-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-billing-side {
    display: flex;
  }

  .payment-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-actions {
    grid-template-columns: 1fr;
  }

  .billing-product-card {
    min-height: 0;
  }
}
.credit-code-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credit-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.credit-code-row .action-btn-sm {
  min-width: 116px;
}

.credit-ledger {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.account-billing-side .credit-code-panel,
.account-billing-side .credit-ledger {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.account-billing-side .settings-note {
  padding: 8px 10px;
}

.account-billing-side .credit-ledger-list {
  max-height: 126px;
}

.credit-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.credit-ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.credit-ledger-main {
  color: var(--text);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-ledger-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
}

.credit-ledger-row strong {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

.credit-ledger-empty {
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
}

/* ══════════════════════════════════════
   TOAST
   ══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 2000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   UTILITY
   ══════════════════════════════════════ */
.hidden { display: none !important; }

/* ══════════════════════════════════════
   SCROLLBAR — Global
   ══════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.14);
}

/* ══════════════════════════════════════
   RESPONSIVE — compact output at mid sizes
   ══════════════════════════════════════ */
@media (max-width: 1100px) {
  .gauges-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .visibility-dimensions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .service-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-option[data-product="monthly_geo_monitoring"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .results-panel-brand {
    margin-top: 4px;
    margin-bottom: 14px;
  }
  .content-area {
    flex-direction: column;
  }
  .service-selector {
    grid-template-columns: 1fr;
  }
  .service-option[data-product="monthly_geo_monitoring"] {
    grid-column: auto;
  }
  .input-section {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .gauges-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .visibility-dimensions-grid {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .eeat-grid {
    grid-template-columns: 1fr;
  }

}

/* ══════════════════════════════════════
   DETAILED AUDIT MODAL (INLINE)
   ══════════════════════════════════════ */
.modal-lg {
  width: 900px;
  max-width: 95vw;
  height: 85vh;
  margin-top: 4vh;
}

.modal-actions-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Audit Report Content (Inside Modal) */
.audit-report-container {
  color: var(--text);
  line-height: 1.6;
}

.audit-report-header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.audit-report-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--accent);
}

.audit-report-meta {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audit-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.audit-site-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.site-icon {
  font-size: 16px;
}

.audit-param-badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audit-report-section {
  margin-bottom: 40px;
}

.audit-report-h2 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--accent-dim);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.audit-score-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.audit-score-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.audit-score-val {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.audit-score-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.audit-table th {
  text-align: left;
  background: var(--bg-sidebar);
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.audit-table td {
  padding: 14px 16px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.audit-status-icon {
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  width: 30px;
}

.status-pass { color: var(--success); }
.status-warning { color: var(--warning); }
.status-fail { color: var(--error); }
