/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #FFFFFF; color: #1A1A2E; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.desktop-only { display: inline; }

/* ─── UTILITIES ─────────────────────────────────────────────────────────────── */
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
  background: #fff; border-bottom: 1px solid #E0E0E0;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: #1A237E;
}
.radar-icon-sm { width: 32px; height: 32px; color: #1A237E; }
.navbar-right { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 15px; font-weight: 500; color: #1A237E; }
.nav-link:hover { text-decoration: underline; }
.credits-badge {
  display: inline-flex; align-items: center;
  background: #E8EAF6; color: #1A237E;
  font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
.credits-badge:hover {
  background: #C5CAE9; color: #0D1B8E;
}
.user-info { display: flex; align-items: center; position: relative; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 5px 10px; border-radius: 8px;
  transition: background .15s;
}
.user-menu-trigger:hover { background: #EEF2FF; }
.user-name { font-size: 14px; font-weight: 500; color: #1A1A2E; line-height: 1.2; }
.user-menu-arrow { color: #9098B8; flex-shrink: 0; }
/* Dropdown */
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #E8EAF6;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(26,35,126,.10);
  min-width: 160px; z-index: 200; overflow: hidden;
}
.user-dropdown-item {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px; font-size: 14px; color: #1A1A2E;
  background: none; border: none; cursor: pointer;
  text-decoration: none; transition: background .12s;
}
.user-dropdown-item:hover { background: #F4F6FF; }
.user-dropdown-signout { color: #C62828; border-top: 1px solid #F0F0F8; }

/* ─── DEMO BANNER ─────────────────────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(90deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff; padding: 12px 56px 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  position: relative; flex-wrap: wrap;
}
.promo-banner-left { display: flex; align-items: center; gap: 14px; }
.promo-banner-gift { font-size: 28px; line-height: 1; flex-shrink: 0; }
.promo-banner-text { display: flex; flex-direction: column; gap: 1px; }
.promo-banner-headline { font-size: 15px; font-weight: 700; color: #fff; }
.promo-banner-source { color: #a5b4fc; }
.promo-banner-sub { font-size: 13px; color: rgba(255,255,255,0.7); }
.promo-banner-sub strong { color: #fbbf24; }
.promo-banner-btn {
  background: #fff; color: #302b63; font-size: 13px; font-weight: 700;
  padding: 7px 18px; border-radius: 20px; white-space: nowrap;
  transition: background .15s, transform .1s; flex-shrink: 0;
}
.promo-banner-btn:hover { background: #e0e7ff; transform: scale(1.03); }
.promo-banner-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.4); font-size: 18px;
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
.promo-banner-close:hover { color: #fff; }
.promo-banner-close:hover { color: #fff; }
.demo-banner {
  background: #FFF8E1; border-bottom: 1px solid #FFCA28;
  color: #7B4F00; font-size: 14px; padding: 10px 24px;
  text-align: center;
}
.demo-banner code { background: rgba(0,0,0,0.08); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #2962FF; color: #fff;
  font-size: 18px; font-weight: 700; letter-spacing: 0.3px;
  padding: 14px 32px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: background 0.15s ease;
  min-height: 52px;
}
.btn-primary:hover { background: #1565C0; }
.btn-primary:active { background: #0D47A1; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #1A237E;
  font-size: 15px; font-weight: 600;
  padding: 10px 20px; border-radius: 8px;
  border: 1.5px solid #1A237E; cursor: pointer;
  transition: background 0.15s ease;
  min-height: 44px;
}
.btn-secondary:hover { background: #E8EAF6; }
.btn-sm { font-size: 14px; padding: 7px 16px; min-height: 36px; }

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  background: #1A237E;
  color: #fff;
  padding: 44px 24px 52px;
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.radar-icon-hero { width: 64px; height: 64px; margin-bottom: 20px; }
.hero-title {
  font-size: 42px; font-weight: 800; line-height: 1.18;
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 17px; color: rgba(255,255,255,0.82);
  margin-bottom: 28px; line-height: 1.6;
}
.btn-hero {
  font-size: 18px; padding: 16px 48px;
  background: #fff; color: #1A237E;
}
.btn-hero:hover { background: #E8EAF6; }

/* ─── FORM SECTION ─────────────────────────────────────────────────────────── */
.form-section { background: #F5F5F5; padding: 64px 0; }
.step-block { margin-bottom: 48px; }
.step-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 700; color: #1A1A2E;
  margin-bottom: 20px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #1A237E; color: #fff;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.step-cta { text-align: center; }

/* ─── ASSET CARDS ─────────────────────────────────────────────────────────── */
.asset-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.asset-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 28px 20px;
  background: #fff; border: 2px solid #E0E0E0;
  border-radius: 12px; cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.asset-card:hover { border-color: #1A237E; }
.asset-card.selected {
  border-color: #1A237E; background: #EEF0FB;
}
.asset-icon { font-size: 32px; margin-bottom: 4px; }
.asset-card strong { font-size: 18px; font-weight: 700; color: #1A1A2E; }
.asset-desc { font-size: 14px; color: #5F6368; text-align: center; line-height: 1.4; }

/* ─── DROPDOWN ─────────────────────────────────────────────────────────────── */
.dropdown-wrapper { position: relative; }
.dropdown-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 18px;
  background: #fff; border: 2px solid #E0E0E0;
  border-radius: 10px; font-size: 16px; color: #1A1A2E;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color 0.15s;
}
.dropdown-trigger:hover, .dropdown-trigger[aria-expanded="true"] { border-color: #1A237E; }
.dropdown-arrow { width: 20px; height: 20px; color: #5F6368; flex-shrink: 0; transition: transform 0.2s; }
.dropdown-trigger[aria-expanded="true"] .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: #fff; border: 2px solid #1A237E;
  border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-height: 380px; overflow-y: auto;
  padding: 8px 0;
}
.dropdown-group-label {
  padding: 10px 16px 4px; font-size: 13px; font-weight: 700;
  color: #5F6368; letter-spacing: 0.3px;
  border-top: 1px solid #F0F0F0; margin-top: 4px;
}
.dropdown-group-label:first-child { border-top: none; margin-top: 0; }
.dropdown-item {
  display: flex; align-items: baseline; justify-content: space-between;
  width: 100%; padding: 10px 16px; gap: 12px;
  font-size: 15px; font-weight: 600; color: #1A1A2E;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit;
  transition: background 0.1s;
}
.dropdown-item span { font-size: 13px; font-weight: 400; color: #5F6368; white-space: nowrap; }
.dropdown-item:hover { background: #F5F5F5; }
.dropdown-item.active { color: #1A237E; background: #EEF0FB; }
.dropdown-item.active::after { content: '✓'; margin-left: auto; color: #1A237E; font-weight: 700; }
.dropdown-show-more {
  display: block; width: 100%; padding: 10px 16px;
  background: #F5F7FF; border: none; border-top: 1px solid #ECEFF1;
  color: #3949AB; font-size: 13px; font-weight: 600;
  text-align: center; cursor: pointer;
  border-radius: 0 0 10px 10px; transition: background 0.15s;
}
.dropdown-show-more:hover { background: #EEF0FB; }
.field-error { color: #D32F2F; font-size: 14px; margin-top: 8px; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* ─── SLIDER ─────────────────────────────────────────────────────────────── */
.slider-container {
  display: flex; align-items: center; gap: 20px;
}
.slider-track-wrap { flex: 1; }
.slider-end-label { font-size: 15px; font-weight: 700; color: #1A237E; white-space: nowrap; }
.bias-slider {
  width: 100%; height: 8px; -webkit-appearance: none;
  background: transparent; cursor: pointer; margin: 8px 0;
}
.bias-slider::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to right, #1A237E 0%, #1A237E var(--fill, 50%), #E0E0E0 var(--fill, 50%), #E0E0E0 100%);
}
.bias-slider::-moz-range-track {
  height: 8px; border-radius: 4px; background: #E0E0E0;
}
.bias-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 3px solid #1A237E;
  box-shadow: 0 2px 8px rgba(26,35,126,0.18);
  margin-top: -10px; cursor: pointer;
}
.bias-slider::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 3px solid #1A237E; cursor: pointer;
}
.slider-sublabels {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #5F6368; margin-top: 4px;
}

/* ─── DISCOVER BUTTON ─────────────────────────────────────────────────────── */
.btn-discover {
  width: 100%; max-width: 480px; font-size: 20px;
  padding: 18px 40px; border-radius: 10px;
}
.cta-subtext { margin-top: 12px; font-size: 15px; color: #5F6368; }
.cta-powered { margin-top: 8px; font-size: 14px; color: #7B83A8; letter-spacing: 0.01em; font-weight: 500; }

/* ─── LOADING STATE ─────────────────────────────────────────────────────── */
.loading-section {
  background: #fff; padding: 80px 24px;
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
}
.loading-inner { text-align: center; max-width: 400px; margin: 0 auto; }
.radar-loading { margin: 0 auto 32px; width: 200px; height: 200px; }
.radar-scan-svg { width: 200px; height: 200px; }
.radar-sweep-arm {
  transform-origin: 100px 100px;
  animation: radarSweep 3s linear infinite;
}
.radar-blip {
  animation: radarBlip 5s ease-in-out infinite;
  opacity: 0;
}
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes radarBlip {
  0%, 25%  { opacity: 0; }
  40%, 60% { opacity: 0.85; }
  80%, 100% { opacity: 0; }
}
.loading-text {
  font-size: 17px; font-weight: 500; color: #1A1A2E;
  margin-bottom: 24px; min-height: 52px;
  transition: opacity 0.4s ease;
}
.loading-progress-bar {
  width: 100%; height: 6px; background: #E0E0E0; border-radius: 3px; overflow: hidden;
  margin-bottom: 12px;
}
.loading-progress-fill {
  height: 100%; background: linear-gradient(90deg, #1A237E, #2962FF);
  border-radius: 3px; width: 0%; transition: width 1s linear;
}
.loading-timer { font-size: 15px; color: #5F6368; font-weight: 500; }
.loading-quote {
  margin-top: 64px;
  padding: 0 16px;
  max-width: 480px;
  text-align: center;
}
.loading-quote-text {
  font-size: 17px; font-style: italic;
  color: #9098B8; line-height: 1.7;
  margin-bottom: 12px;
}
.loading-quote-author {
  font-size: 14px; font-weight: 600;
  color: #A0A8C8; letter-spacing: 0.04em;
}

/* ─── SEARCH MODE TOGGLE ─────────────────────────────────────────────────── */
.mode-toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-toggle-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px;
  border: 2px solid #ECEEF6; background: white;
  cursor: pointer; text-align: left; transition: all .18s;
}
.mode-toggle-btn:hover { border-color: #2962FF; background: #f5f7ff; }
.mode-toggle-btn.active { border-color: #2962FF; background: #e8eeff; }
.mode-toggle-icon { font-size: 22px; margin-bottom: 6px; display: block; }
.mode-toggle-name { font-size: 14px; font-weight: 700; color: #1A1A2E; display: block; margin-bottom: 3px; }
.mode-toggle-sub { font-size: 12px; color: #5F6368; display: block; line-height: 1.4; }
.mode-toggle-btn:not(.active) .mode-toggle-name { color: #5A6278; }
.mode-sub-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid #ECEEF6; }

/* ─── CONFIGURE YOUR SEARCH ──────────────────────────────────────────────── */
.configure-block { padding: 0; overflow: hidden; }
.configure-toggle-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 16px 0; user-select: none;
  border-top: 1px solid #ECEEF6;
  transition: opacity .15s;
}
.configure-toggle-header:hover { opacity: 0.8; }
.configure-toggle-left { display: flex; align-items: center; gap: 12px; }
.configure-toggle-title { font-size: 16px; font-weight: 700; color: #1A1A2E; }
.configure-optional { font-size: 13px; font-weight: 400; color: #8892A4; margin-left: 4px; }
.configure-toggle-sub { font-size: 13px; color: #5F6368; margin-top: 2px; }
.configure-badge {
  background: #2962FF; color: white;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.configure-chevron { font-size: 20px; color: #8892A4; transition: transform .25s; line-height: 1; }
.configure-chevron.open { transform: rotate(180deg); }
.configure-panel { padding: 4px 0 20px; }

/* Preset buttons */
.cfg-preset-row { display: flex; gap: 10px; margin-bottom: 20px; }
.cfg-preset-btn {
  flex: 1; padding: 11px 8px; border-radius: 10px;
  border: 1.5px solid #ECEEF6; background: white;
  font-size: 13px; font-weight: 600; color: #5A6278;
  cursor: pointer; text-align: center; transition: all .15s;
}
.cfg-preset-btn:hover { border-color: #2962FF; color: #2962FF; background: #e8eeff; }
.cfg-preset-btn.active { border-color: #2962FF; color: #2962FF; background: #e8eeff; }
.cfg-preset-icon { font-size: 18px; display: block; margin-bottom: 3px; }

/* Metric groups */
.cfg-group {
  border: 1.5px solid #ECEEF6; border-radius: 10px;
  overflow: hidden; margin-bottom: 8px;
}
.cfg-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; cursor: pointer; background: #fafbff;
  user-select: none; transition: background .15s;
}
.cfg-group-header:hover { background: #f2f4fb; }
.cfg-group-left { display: flex; align-items: center; gap: 8px; }
.cfg-group-name { font-size: 15px; font-weight: 600; color: #1A1A2E; }
.cfg-group-count {
  font-size: 12px; font-weight: 700; color: #2962FF;
  background: #e8eeff; padding: 2px 7px; border-radius: 20px;
}
.cfg-group-chev { font-size: 15px; color: #8892A4; transition: transform .2s; }
.cfg-group-chev.open { transform: rotate(180deg); }
.cfg-group-body { display: none; padding: 4px 0; }
.cfg-group-body.open { display: block; }

/* Metric rows */
.cfg-metric-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; transition: background .1s;
}
.cfg-metric-row:hover { background: #fafbff; }
.cfg-metric-row.disabled { opacity: 0.42; }
.cfg-toggle { position: relative; width: 34px; height: 18px; display: inline-block; flex-shrink: 0; }
.cfg-toggle input { opacity: 0; width: 0; height: 0; }
.cfg-toggle-track {
  position: absolute; inset: 0; background: #D1D5E0;
  border-radius: 9px; cursor: pointer; transition: background .2s;
}
.cfg-toggle input:checked + .cfg-toggle-track { background: #2962FF; }
.cfg-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 12px; height: 12px; background: white;
  border-radius: 50%; transition: transform .2s; pointer-events: none;
}
.cfg-toggle input:checked ~ .cfg-toggle-thumb { transform: translateX(16px); }
.cfg-metric-name { flex: 1; font-size: 14px; color: #1A1A2E; }
.cfg-metric-name small { display: block; font-size: 12px; color: #5F6368; margin-top: 1px; }
.cfg-dir-label {
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  cursor: pointer; flex-shrink: 0; min-width: 54px; text-align: center;
  transition: all .15s; border: 1.5px solid transparent;
}
.cfg-dir-label.above { background: #e6f4f2; color: #00897B; border-color: #b2dfdb; }
.cfg-dir-label.below { background: #fff3e0; color: #F57C00; border-color: #ffe082; }
.cfg-metric-input {
  width: 64px; padding: 5px 8px; font-size: 14px; font-weight: 600;
  border: 1.5px solid #ECEEF6; border-radius: 7px;
  text-align: right; color: #1A1A2E; background: white;
  transition: border-color .15s; flex-shrink: 0;
}
.cfg-metric-input:focus { outline: none; border-color: #2962FF; }

/* Configure footer */
.cfg-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #ECEEF6;
}
.cfg-reset-link {
  font-size: 12px; color: #8892A4; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.cfg-reset-link:hover { color: #E53935; }
.cfg-active-count { font-size: 12px; color: #5F6368; }
.cfg-active-count strong { color: #2962FF; }

/* Pill filters (startups / speculative) */
.cfg-filter-group { margin-bottom: 16px; }
.cfg-filter-label {
  font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: #8892A4; margin-bottom: 8px;
}
.cfg-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.cfg-pill {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid #ECEEF6; background: white;
  font-size: 12px; font-weight: 500; color: #5A6278;
  cursor: pointer; transition: all .15s; user-select: none;
}
.cfg-pill:hover { border-color: #2962FF; color: #2962FF; }
.cfg-pill.selected { border-color: #2962FF; color: #2962FF; background: #e8eeff; font-weight: 600; }
.cfg-stocks-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: #EEF2FF; color: #2962FF;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; letter-spacing: .04em; text-transform: uppercase;
  margin-left: 8px; vertical-align: middle;
}

/* ─── RESULTS ─────────────────────────────────────────────────────────────── */
.results-section { padding: 64px 0 80px; background: #F5F5F5; }
.results-header { text-align: center; margin-bottom: 40px; }
.results-title { font-size: 32px; font-weight: 800; color: #1A1A2E; margin-bottom: 8px; }
.results-subtitle { font-size: 16px; color: #5F6368; }
.results-date { font-size: 12px; color: #9E9E9E; margin-top: 6px; }
.results-filter-tags {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 16px;
}
.results-filter-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  background: white; border: 1.5px solid #ECEEF6;
  color: #1A1A2E;
}
.results-filter-tag.tag-asset {
  background: #1A237E; color: white; border-color: #1A237E; font-weight: 700;
}
.results-filter-tag.tag-metric {
  background: #e8eeff; color: #2962FF; border-color: #c5d0ff;
}
.results-filter-tag.tag-pill {
  background: #f0faf8; color: #00897B; border-color: #b2dfdb;
}
.results-list { display: flex; flex-direction: column; gap: 24px; max-width: 820px; margin: 0 auto; }

/* ─── RESULT CARD ─────────────────────────────────────────────────────────── */
.result-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 28px 32px; overflow: hidden;
}
.card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; gap: 12px;
}
.card-logo-wrapper { width: 48px; height: 48px; flex-shrink: 0; position: relative; }
.card-logo-img {
  width: 48px; height: 48px; border-radius: 10px;
  object-fit: contain; background: #f5f5f5;
  border: 1px solid #E8EAED; display: block;
}
.card-logo {
  width: 48px; height: 48px; border-radius: 10px;
  background: #1A237E; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  flex-shrink: 0; letter-spacing: -1px;
}
.card-identity { flex: 1; min-width: 0; }
.card-name { font-size: 22px; font-weight: 700; color: #1A1A2E; line-height: 1.2; margin-bottom: 4px; }
.card-meta { font-size: 14px; color: #5F6368; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.risk-badge {
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px;
}
.card-header-right { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex-shrink: 0; }
.moat-score-badge {
  display: flex; align-items: baseline; justify-content: center; gap: 1px;
  padding: 6px 12px; border-radius: 10px;
  font-weight: 800; cursor: default;
  position: relative;
}
.moat-score-badge:hover .moat-score-tooltip { opacity: 1; pointer-events: auto; }
.moat-score-tooltip {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #1A1A2E; color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.6;
  padding: 10px 14px; border-radius: 8px;
  width: 220px; z-index: 10;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  white-space: normal; text-align: left;
}
.moat-score-tooltip::before {
  content: ''; position: absolute; top: -5px; right: 16px;
  width: 10px; height: 10px; background: #1A1A2E;
  transform: rotate(45deg); border-radius: 2px;
}
.moat-score-num { font-size: 22px; line-height: 1; }
.moat-score-label { font-size: 11px; opacity: 0.7; margin-right: 2px; }
.card-link-tv { background: #1976D2 !important; color: #fff !important; border-color: #1976D2 !important; }
.card-link-tv:hover { opacity: 0.85; }
.card-ticker {
  background: #E8EAF6; color: #1A237E;
  font-size: 14px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px;
  white-space: nowrap; text-align: center;
}

.card-price-row {
  display: flex; gap: 0; margin-bottom: 16px;
  border: 1px solid #E0E0E0; border-radius: 8px; overflow: hidden;
}
.card-price-item {
  flex: 1; padding: 10px 16px;
  border-right: 1px solid #E0E0E0; text-align: center;
}
.card-price-item:last-child { border-right: none; }
.card-price-label { font-size: 12px; color: #5F6368; font-weight: 500; margin-bottom: 2px; }
.card-price-val { font-size: 16px; font-weight: 700; color: #1A1A2E; }

.performance-row {
  display: flex; align-items: center; gap: 8px;
  background: #F5F5F5; border-radius: 8px;
  padding: 10px 16px; margin-bottom: 16px;
}
.perf-label { font-size: 13px; font-weight: 700; color: #1A1A2E; margin-right: 4px; }
.perf-items { display: flex; gap: 12px; flex-wrap: wrap; }
.perf-item { font-size: 14px; font-weight: 600; }
.perf-item .perf-period { font-size: 12px; font-weight: 500; color: #5F6368; margin-right: 2px; }
.perf-pos { color: #2E7D32; }
.perf-neg { color: #C62828; }
.perf-na { color: #5F6368; }

.card-divider { border: none; border-top: 1px solid #F0F0F0; margin: 16px 0; }

.card-section-title {
  font-size: 13px; font-weight: 700; color: #1A237E;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.card-section-text { font-size: 15px; color: #1A1A2E; line-height: 1.65; }
.card-description { color: #3D3D5C; font-size: 14.5px; }
.chart-fallback-link {
  font-size: 13px; color: #6B7ABA; text-decoration: none;
  padding: 6px 14px; border: 1px solid #DCDFF0; border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
.chart-fallback-link:hover { background: #F0F2FF; color: #4A56A6; }

.metrics-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.metric-chip {
  position: relative;
  background: #F5F5F5; border-radius: 6px;
  padding: 6px 12px; font-size: 14px; font-weight: 600; color: #1A1A2E;
  cursor: default;
}
.metric-chip:hover .metric-tooltip { opacity: 1; pointer-events: auto; transform: translateY(0); }
.metric-tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: 240px; background: #1A1A2E; color: #fff;
  font-size: 13px; font-weight: 400; line-height: 1.5;
  padding: 10px 14px; border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  z-index: 10; text-align: left;
}
.metric-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #1A1A2E;
}

/* ─── MOAT TYPE BADGE ─────────────────────────────────────────────────────── */
.moat-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700;
  padding: 5px 13px; border-radius: 20px;
  margin-bottom: 10px; cursor: default;
  position: relative; white-space: nowrap;
}
.moat-badge-tip {
  display: none;
  position: absolute; bottom: calc(100% + 8px); left: 0;
  width: 230px; background: #1A1A2E; color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.5;
  padding: 8px 12px; border-radius: 7px;
  pointer-events: none; z-index: 20; text-align: left;
  white-space: normal;
}
.moat-badge-tip::after {
  content: ''; position: absolute; top: 100%; left: 18px;
  border: 6px solid transparent; border-top-color: #1A1A2E;
}
.moat-type-badge:hover .moat-badge-tip { display: block; }

.card-buy-timing {
  background: #E8EAF6; border-radius: 8px;
  padding: 12px 16px; font-size: 15px; color: #1A237E;
  font-weight: 500; line-height: 1.5; margin-top: 12px;
}

.startup-platform-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #5C6BC0; background: #EEF0FB;
  border: 1px solid #C5CAE9; border-radius: 20px;
  padding: 4px 12px; margin-top: 10px; margin-bottom: 4px;
  text-decoration: none;
}
.startup-platform-badge--link:hover {
  background: #E3E6F8; border-color: #9FA8DA; cursor: pointer;
}

.card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.card-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1.5px solid #E0E0E0;
  color: #1A237E; font-size: 14px; font-weight: 600;
  padding: 7px 16px; border-radius: 6px;
  transition: all 0.15s;
}
.card-link:hover { border-color: #1A237E; background: #EEF0FB; }

/* ─── Revenue+Earnings bar chart (stocks) ─────────────────── */
.card-financials {
  margin: 20px -28px 20px;
  border-top: 1px solid #ECEEF6;
  border-bottom: 1px solid #ECEEF6;
  padding: 16px 24px 10px;
  background: #FAFBFF;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ─── Price chart (LightweightCharts — stocks + crypto) ──────── */
.card-chart {
  margin: 16px -28px 24px;
  border-top: 1px solid #ECEEF6;
  border-bottom: 1px solid #ECEEF6;
  overflow: hidden;
  height: 180px;
  background: #fafbff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.no-match-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 48px 40px; text-align: center;
}
.no-match-icon { font-size: 48px; margin-bottom: 16px; }
.no-match-title { font-size: 22px; font-weight: 700; color: #1A1A2E; margin-bottom: 12px; }
.no-match-text { font-size: 16px; color: #5F6368; line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* ─── SAMPLE RESULT TRIGGER LINK ─────────────────────────────────────────── */
.cta-example-link { margin: 6px 0 0; }
.btn-example-link {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: #5F6368;
  text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 3px; padding: 0;
  transition: color 0.15s;
}
.btn-example-link:hover { color: #1A237E; }

/* ─── SAMPLE RESULT MODAL ────────────────────────────────────────────────── */
.sample-modal-backdrop {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15, 20, 50, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.sample-modal-backdrop.hidden { display: none; }
.sample-modal-box {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 860px; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  overflow: hidden;
}
.sample-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 28px 16px; border-bottom: 1px solid #F0F0F0; flex-shrink: 0;
}
.sample-modal-eyebrow {
  display: inline-block; background: #EEF0FB; color: #3949AB;
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  margin-bottom: 4px;
}
.sample-modal-title { font-size: 18px; font-weight: 700; color: #1A1A2E; margin: 0; }
.sample-modal-close {
  background: #F5F5F5; border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 15px; cursor: pointer;
  color: #5F6368; flex-shrink: 0; margin-left: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.sample-modal-close:hover { background: #E8E8E8; color: #1A1A2E; }
.sample-modal-tabs {
  display: flex; gap: 6px; padding: 12px 28px;
  border-bottom: 1px solid #F0F0F0; flex-shrink: 0; background: #FAFBFF;
}
.sample-tab {
  padding: 7px 18px; border: 1.5px solid #E3E8F0; border-radius: 20px;
  background: #fff; color: #5F6368; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.sample-tab:hover { border-color: #4A6CF7; color: #4A6CF7; }
.sample-tab.active { background: #1A237E; border-color: #1A237E; color: #fff; }
.sample-modal-body { overflow-y: auto; padding: 24px 28px; flex: 1; }
.sample-tab-panel.hidden { display: none; }
.sample-modal-footer {
  text-align: center; padding: 14px 28px;
  font-size: 13px; color: #9E9E9E;
  border-top: 1px solid #F0F0F0; flex-shrink: 0;
}

.new-search-wrap { text-align: center; margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn-new-search { font-size: 18px; padding: 16px 48px; }
.export-pdf-link { margin: 0; }
.export-pdf-link a { font-size: 14px; color: #9E9E9E; text-decoration: none; }
.export-pdf-link a:hover { color: #1A237E; text-decoration: underline; }

/* ─── PRINT / PDF EXPORT ──────────────────────────────────────────────────── */
@media print {
  body.print-mode .navbar,
  body.print-mode .hero-section,
  body.print-mode #form,
  body.print-mode .new-search-wrap,
  body.print-mode .site-footer,
  body.print-mode .cookie-banner,
  body.print-mode #searchModal,
  body.print-mode #creditsModal,
  body.print-mode .card-chart { display: none !important; }
  body.print-mode .results-section { display: block !important; }
  body.print-mode .result-card { break-inside: avoid; box-shadow: none; border: 1px solid #E0E0E0; margin-bottom: 20px; }
  body.print-mode .results-header { margin-bottom: 24px; }
}

/* ─── MODAL ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.68);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-card {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 560px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 0;
  font-size: 22px; font-weight: 700; color: #1A1A2E;
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: #F5F5F5; font-size: 22px; color: #5F6368;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; line-height: 1;
}
.modal-close:hover { background: #E0E0E0; }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 0 28px 28px; }
.step-label-sm {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #1A1A2E;
}
.step-num-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #1A237E; color: #fff; font-size: 13px; font-weight: 700;
}
.asset-cards-modal { grid-template-columns: repeat(3, 1fr); }
.asset-card-sm {
  padding: 14px 10px; font-size: 14px; font-weight: 600;
  gap: 4px;
}
.investor-select {
  width: 100%; padding: 12px 16px;
  border: 2px solid #E0E0E0; border-radius: 8px;
  font-size: 15px; font-family: inherit; color: #1A1A2E;
  background: #fff; cursor: pointer;
}
.investor-select:focus { outline: none; border-color: #1A237E; }

/* ─── PRICING MINI (Credits Modal) ─────────────────────────────────────────── */
.modal-card-credits { max-width: 640px; }
.pricing-cards-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pricing-card-mini {
  background: #F5F5F5; border-radius: 10px;
  padding: 20px 16px; text-align: center;
  border: 2px solid #E0E0E0;
}
.pricing-card-popular {
  background: #fff; border-color: #1A237E;
  position: relative;
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #1A237E; color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 12px;
  white-space: nowrap;
}
.pricing-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.pricing-price { font-size: 28px; font-weight: 800; color: #1A237E; margin-bottom: 2px; }
.pricing-credits { font-size: 13px; color: #5F6368; margin-bottom: 14px; }

/* ─── PRICING PAGE ─────────────────────────────────────────────────────────── */
.pricing-page { padding: 80px 24px; }
.pricing-page-title { font-size: 40px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.pricing-page-sub { font-size: 18px; color: #5F6368; text-align: center; margin-bottom: 56px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; align-items: start; }
.pricing-card {
  background: #fff; border-radius: 14px;
  border: 2px solid #E0E0E0;
  padding: 32px 28px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
}
.pricing-card-featured {
  border-color: #1A237E;
  box-shadow: 0 8px 32px rgba(26,35,126,0.15);
  padding-top: 48px;
}
.featured-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: #1A237E; color: #fff;
  font-size: 13px; font-weight: 700; padding: 5px 20px; border-radius: 20px;
}
.pricing-card-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pricing-card-price { font-size: 48px; font-weight: 800; color: #1A237E; line-height: 1.1; margin-bottom: 4px; }
.pricing-card-credits { font-size: 15px; color: #5F6368; margin-bottom: 6px; }
.pricing-card-bonus { font-size: 14px; color: #2E7D32; font-weight: 600; margin-bottom: 24px; }
.pricing-card-btn { width: 100%; margin-top: 8px; }
.pricing-note { text-align: center; font-size: 15px; color: #5F6368; margin-top: 32px; }

/* ─── TRUST BADGES ───────────────────────────────────────────────────────────── */
.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding: 18px 24px;
  background: #F8F9FF;
  border-radius: 14px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
  white-space: nowrap;
}
.trust-badge svg { flex-shrink: 0; }
.stripe-wordmark {
  font-size: 15px;
  font-weight: 800;
  color: #635BFF;
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
}

/* ─── HAMBURGER / MOBILE MENU ───────────────────────────────────────────────── */
.nav-mobile { display: none; }
.nav-hamburger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; padding: 6px; border-radius: 8px;
  transition: background .15s;
}
.nav-hamburger:hover { background: #F0F1F9; }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #1A237E; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
  background: #fff; border-bottom: 1px solid #E0E0E0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 8px 0 12px;
}
.mobile-menu-item {
  display: block; width: 100%; text-align: left;
  padding: 13px 24px; font-size: 16px; font-weight: 500;
  color: #1A237E; background: none; border: none;
  cursor: pointer; text-decoration: none;
  transition: background .12s;
}
.mobile-menu-item:hover { background: #F5F6FF; }
.mobile-menu-divider { border-top: 1px solid #F0F1F9; margin-top: 8px; padding-top: 4px; }
.mobile-menu-signout { color: #C62828 !important; }
.mobile-menu-googlebtn {
  color: #1A237E !important; font-weight: 600;
  background: none;
}
.mobile-menu-googlebtn:hover { background: #F5F6FF !important; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 16px; }
  .asset-cards { grid-template-columns: 1fr; }
  .pricing-cards-mini { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .slider-container { flex-direction: column; align-items: stretch; gap: 8px; }
  .slider-end-label { text-align: center; }
  .card-price-row { flex-direction: column; }
  .card-price-item { border-right: none; border-bottom: 1px solid #E0E0E0; }
  .card-price-item:last-child { border-bottom: none; }
  .perf-items { gap: 8px; }
  .result-card { padding: 20px; }
  .navbar { padding: 0 16px; }
  .navbar-brand span { font-size: 16px; }
  .nav-desktop { display: none !important; }
  .nav-mobile { display: flex !important; }
  .card-header { flex-wrap: wrap; }
  .modal-card { border-radius: 12px; }
  .asset-cards-modal { grid-template-columns: 1fr; }
  .card-links { gap: 8px; }
  .metric-chip { font-size: 13px; }
}

@media (max-width: 480px) {
  .hero { padding: 32px 16px 40px; }
  .hero-title { font-size: 26px; }
  .form-section { padding: 40px 0; }
  .results-section { padding: 40px 0 60px; }
}

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #F4F5FB;
  border-top: 1px solid #E8EAF6;
  padding: 44px 0 48px;
  margin-top: 0;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-copy { font-size: 13px; color: #9CA3AF; }
.footer-sep  { color: #D1D5DB; }
.footer-link {
  font-size: 13px; color: #9CA3AF;
  text-decoration: none; transition: color 0.15s;
}
.footer-link:hover { color: #4361EE; }
.footer-mail {
  font-size: 13px; color: #C0C4D0;
  text-decoration: none; transition: color 0.15s;
}
.footer-mail:hover { color: #9CA3AF; }

/* ─── COOKIE BANNER ─────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 680px;
  background: #1A1A2E;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 18px 20px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.cookie-icon { font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.cookie-text div { display: flex; flex-direction: column; gap: 2px; }
.cookie-text strong { font-size: 14px; font-weight: 600; color: #fff; }
.cookie-text span { font-size: 13px; color: #9E9E9E; line-height: 1.5; }
.cookie-link { color: #7986CB; text-decoration: none; }
.cookie-link:hover { color: #fff; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.cookie-decline {
  background: transparent;
  color: #9E9E9E;
  border: 1px solid #333;
}
.cookie-decline:hover { background: #2a2a3e; color: #fff; }
.cookie-accept {
  background: #3949AB;
  color: #fff;
}
.cookie-accept:hover { background: #1A237E; }
@media (max-width: 540px) {
  .cookie-banner { bottom: 0; border-radius: 14px 14px 0 0; width: 100%; left: 0; transform: none; }
  .cookie-banner-inner { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}
