/* Linear / Aceternity-inspired modular SaaS UI layer + WCAG 2.2 AA & V4.0 Data-Trust hygiene */
.skip-main {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-main:focus {
  left: 12px;
}

/* Radar brand mark in header */
.brand-radar-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(110, 231, 168, 0.32);
}

/* Ironclad grid containment — zero overflowing fields on desktop or 360px */
.panel,
.stat-card,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.form-stack > * {
  min-width: 0;
  max-width: 100%;
}

.form-stack select,
.form-stack input,
.form-stack textarea {
  max-width: 100%;
  min-height: 42px;
}

/* Glassmorphism panels & crisp hover glow (Linear / Aceternity style) */
.ln-card {
  background: linear-gradient(180deg, rgba(20, 28, 42, 0.88) 0%, rgba(12, 17, 27, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) {
  .ln-card-interactive:hover {
    border-color: rgba(110, 231, 168, 0.36);
    transform: translateY(-2px);
  }
}
.ln-card.is-selected {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.55), 0 16px 38px rgba(251, 191, 36, 0.14);
}
.ln-card.is-popular {
  border-color: rgba(251, 191, 36, 0.45);
}

/* Trust Strip (V4.0 Zero Law: Data Age & Provenance) + Unified Footer */
.trust-footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 13, 20, 0.92);
  margin-top: 32px;
  padding: 20px 18px 28px;
  font-size: 12.5px;
  color: var(--muted);
}
.trust-footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.trust-strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.trust-sources-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.trust-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: var(--body);
}

/* Searchable Multi-Sphere Picker (Replaces Ctrl+Click <select multiple>) */
.sp-picker {
  display: grid;
  gap: 12px;
}
.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  align-items: center;
}
.sp-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  font-size: 13px;
  font-weight: 600;
}
.sp-tag button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
}
.sp-dropdown-trigger {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.sp-dropdown-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #090d15;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.sp-dropdown-panel[hidden] {
  display: none !important;
}
.sp-options-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}
.sp-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 33, 0.72);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  min-height: 40px;
}
.sp-option:hover {
  border-color: rgba(110, 231, 168, 0.35);
}
.sp-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #10b981;
  flex-shrink: 0;
}

/* Unified Checkout Bar on /pricing */
.pr-checkout-bar {
  position: sticky;
  bottom: 12px;
  z-index: 40;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(10, 15, 26, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pr-addon-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(15, 22, 35, 0.72);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.pr-addon-card:has(input:checked) {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.09);
}
.pr-addon-tip {
  display: inline-block;
  margin-top: 5px;
  font-size: 11.5px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 6px;
  padding: 3px 7px;
}

/* 3-Step Clean Stepper for /magic (Telegram & Lot Probe) */
.st-stepper {
  display: grid;
  gap: 16px;
}
.st-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.st-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.st-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.st-mode-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 13, 21, 0.72);
  cursor: pointer;
  display: grid;
  gap: 6px;
  text-align: left;
  color: var(--ink);
  font: inherit;
}
.st-mode-card[aria-pressed="true"] {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}
.st-probe-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.st-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 8px;
}
.st-action-btn {
  min-height: 48px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 24, 33, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.st-action-btn:hover {
  border-color: rgba(110, 231, 168, 0.45);
  background: rgba(23, 33, 47, 0.95);
}

@media (max-width: 720px) {
  .st-mode-grid,
  .st-probe-bar {
    grid-template-columns: 1fr;
  }
  .page-wrap {
    padding: 14px 12px 44px;
  }
  .pr-checkout-bar {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ln-card,
  .pr-addon-card {
    transition: none !important;
    transform: none !important;
  }
}


/* ── Global Light Theme Overrides (synced with V7 via localStorage gosradar_theme) ── */
html[data-theme="light"] {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --panel-3: #e2e8f0;
  --panel-hover: #e2e8f0;
  --input-bg: #ffffff;
  --card: #ffffff;
  --ink: #0f172a;
  --body: #1e293b;
  --muted: #475569;
  --border: #cbd5e1;
  --line: #cbd5e1;
  --line-soft: #e2e8f0;
  --link: #0c5641;
  --link-hover: #064e3b;
  --link-underline: rgba(12, 86, 65, 0.35);
  --accent: #0c5641;
  --accent-strong: #0c5641;
  --accent-soft: rgba(12, 86, 65, 0.1);
  --accent-ink: #064e3b;
  --ok: #059669;
  --warn: #b45309;
  --bad: #dc2626;
}
html[data-theme="light"] body {
  background: #f6f8fa !important;
  color: #1e293b !important;
}
html[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: #cbd5e1 !important;
}
html[data-theme="light"] .panel,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .trust-footer,
html[data-theme="light"] .jump-bar,
html[data-theme="light"] .card-fold,
html[data-theme="light"] .lot-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .demo-banner {
  background: linear-gradient(90deg, #fefce8 0%, #f0fdf4 100%) !important;
  border-color: #ca8a04 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .google-hero,
html[data-theme="light"] .alt-auth-box,
html[data-theme="light"] .an-sources-strip {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .an-source-pill {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .fold-head-go { background: #ecfdf5 !important; }
html[data-theme="light"] .fold-head-ask { background: #fffbeb !important; }
html[data-theme="light"] .fold-head-no { background: #fef2f2 !important; }
html[data-theme="light"] .fold-badge-go,
html[data-theme="light"] .fold-mark,
html[data-theme="light"] .fold-margin-pos,
html[data-theme="light"] .risk-chip.risk-low { background: #dcfce7 !important; color: #166534 !important; border-color: #86efac !important; }
html[data-theme="light"] .fold-badge-ask,
html[data-theme="light"] .risk-chip.risk-medium,
html[data-theme="light"] .deadline-soon { background: #fef3c7 !important; color: #92400e !important; border-color: #fcd34d !important; }
html[data-theme="light"] .fold-badge-no,
html[data-theme="light"] .fold-margin-neg,
html[data-theme="light"] .risk-chip.risk-high,
html[data-theme="light"] .deadline-urgent { background: #fee2e2 !important; color: #991b1b !important; border-color: #fca5a5 !important; }
html[data-theme="light"] .deadline-ok { background: #e0f2fe !important; color: #075985 !important; border-color: #7dd3fc !important; }
html[data-theme="light"] .deadline-dead { background: #e2e8f0 !important; color: #475569 !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .v2-score-box { background: #f8fafc !important; border-top-color: #cbd5e1 !important; }
html[data-theme="light"] .notice { background: #fffbeb !important; border-color: #f59e0b !important; color: #78350f !important; }
html[data-theme="light"] .jump-btn,
html[data-theme="light"] .shortlist-bar button,
html[data-theme="light"] .tab-btn,
html[data-theme="light"] .btn-reset {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .shortlist-bar button.active,
html[data-theme="light"] .tab-btn.active {
  background: #0c5641 !important;
  color: #ffffff !important;
  border-color: #0c5641 !important;
}
html[data-theme="light"] .topbar a,
html[data-theme="light"] .nav-links a {
  color: #1e293b !important;
}
html[data-theme="light"] .nav-links a.active {
  background: rgba(12, 86, 65, 0.1) !important;
  color: #0c5641 !important;
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .btn-secondary {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
