/* ============================================================
   DNAmin — premium design system (v2 "super hero")
   ============================================================ */
:root {
  --bg: #05070f;
  --bg-2: #080b16;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --card: rgba(17, 24, 42, .55);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --txt: #eef2fb;
  --muted: #94a3c4;
  --brand: #4f8cff;
  --brand-2: #8b5cff;
  --brand-3: #c46bff;
  --green: #2fd07a;
  --amber: #f5b32f;
  --orange: #ff8a3d;
  --red: #ff4d6a;
  --radius: 20px;
  --radius-sm: 14px;
  --grad: linear-gradient(120deg, #4f8cff 0%, #8b5cff 50%, #c46bff 100%);
  --grad-soft: linear-gradient(120deg, rgba(79,140,255,.18), rgba(139,92,255,.14));
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --glow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 50px rgba(79,140,255,.18);
  --maxw: 1160px;
}

body.light {
  --bg: #eef2fb;
  --bg-2: #e6ecf7;
  --surface: rgba(20, 40, 90, .035);
  --surface-2: rgba(20, 40, 90, .06);
  --card: rgba(255, 255, 255, .8);
  --line: rgba(20, 40, 90, .1);
  --line-2: rgba(20, 40, 90, .18);
  --txt: #0c1730;
  --muted: #51618a;
  --shadow: 0 24px 60px rgba(30,50,110,.14);
  --glow: 0 0 0 1px rgba(20,40,90,.05), 0 18px 50px rgba(79,140,255,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Tajawal", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ---- aurora animated background ---- */
body::before {
  content: "";
  position: fixed; inset: -20% -10% auto -10%; height: 120vh; z-index: -2;
  background:
    radial-gradient(40% 40% at 20% 18%, rgba(79,140,255,.30), transparent 70%),
    radial-gradient(38% 38% at 82% 12%, rgba(196,107,255,.24), transparent 70%),
    radial-gradient(45% 45% at 60% 75%, rgba(139,92,255,.20), transparent 70%);
  filter: blur(40px);
  animation: aurora 22s ease-in-out infinite alternate;
  pointer-events: none;
}
body::after { /* subtle grain */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.04); }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(139,92,255,.35); }

/* ---- buttons ---- */
.btn-primary {
  position: relative; display: inline-block; background: var(--grad); color: #fff;
  font-weight: 700; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 10px 30px rgba(79,140,255,.40); transition: transform .18s, box-shadow .18s, filter .18s;
  overflow: hidden; isolation: isolate;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(139,92,255,.55); filter: brightness(1.05); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-ghost {
  background: var(--surface); color: var(--txt); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 600;
  backdrop-filter: blur(8px); transition: border-color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--brand); background: var(--surface-2); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 26px; background: rgba(5,7,15,.55); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
body.light .nav { background: rgba(238,242,251,.6); }
.nav.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo { font-size: 26px; filter: drop-shadow(0 2px 8px rgba(139,92,255,.5)); }
.brand-name { font-size: 21px; letter-spacing: .3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color .15s; }
.nav-links a:hover { color: var(--txt); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--grad); transition: width .2s; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- language selector ---- */
.lang-select { position: relative; }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 160px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); backdrop-filter: blur(18px); padding: 6px; z-index: 60; display: grid; gap: 2px; animation: pop .18s ease; }
.lang-menu[hidden] { display: none; }
.lang-menu button { width: 100%; text-align: start; background: none; border: 0; color: var(--txt); font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.lang-menu button:hover { background: var(--surface-2); color: var(--brand); }

/* ---- ticker ---- */
.ticker-bar { display: flex; align-items: stretch; height: 38px; background: rgba(8,11,22,.7); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: 13px; overflow: hidden; }
body.light .ticker-bar { background: rgba(230,236,247,.7); }
.ticker-clock { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 0 16px; background: var(--grad); color: #fff; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; }
.ticker-track { display: inline-flex; gap: 30px; align-items: center; height: 100%; white-space: nowrap; will-change: transform; animation: ticker 64s linear infinite; padding-inline-start: 30px; }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ti { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.ti b { color: var(--txt); font-weight: 700; }
.ti .up { color: var(--green); } .ti .down { color: var(--red); }
.ti .sym { color: var(--brand); font-weight: 800; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker-track { animation-name: tickerRtl; }
@keyframes tickerRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---- icon buttons ---- */
.icon-btn { background: var(--surface); border: 1px solid var(--line-2); color: var(--txt); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: 16px; backdrop-filter: blur(8px); transition: border-color .15s, transform .15s; }
.icon-btn:hover { border-color: var(--brand); transform: translateY(-1px); }

/* ---- hero ---- */
.hero { position: relative; max-width: 900px; margin: 0 auto; padding: 84px 20px 48px; text-align: center; }
.hero-glow { display: none; }

/* large animated "investigator" logo above the search */
.hero-logo { position: relative; width: 132px; height: 132px; margin: 0 auto 22px;
  display: grid; place-items: center; animation: heroFloat 6s ease-in-out infinite; }
.hero-logo-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), #8b5cff, #4f8cff, var(--brand));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: heroSpin 9s linear infinite; opacity: .9; }
.hero-logo-glyph { font-size: 62px; filter: drop-shadow(0 6px 22px rgba(139,92,255,.55));
  animation: heroPulse 3.2s ease-in-out infinite; }
.hero-logo-lens { position: absolute; right: 6px; bottom: 8px; font-size: 38px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); animation: heroScan 5s ease-in-out infinite; }
@keyframes heroSpin { to { transform: rotate(360deg); } }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes heroPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes heroScan { 0%,100% { transform: translate(0,0) rotate(-8deg); } 50% { transform: translate(-10px,-8px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-logo-ring, .hero-logo-glyph, .hero-logo-lens, .badge-pill { animation: none; }
}
@media (max-width: 600px) { .hero-logo { width: 104px; height: 104px; } .hero-logo-glyph { font-size: 48px; } .hero-logo-lens { font-size: 30px; } }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #d7e2ff; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line-2); padding: 8px 18px; border-radius: 999px;
  margin-bottom: 26px; backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.25);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.hero-title { font-size: clamp(36px, 7vw, 66px); font-weight: 800; line-height: 1.08; letter-spacing: -1px; }
.hero-title b, .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2.4vw, 20px); max-width: 660px; margin: 22px auto 34px; }
.hero-sub b { color: var(--txt); }

.scan-box {
  display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 8px 8px 8px 24px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto;
  backdrop-filter: blur(16px); position: relative; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.scan-box:focus-within { border-color: rgba(139,92,255,.55); box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 0 4px rgba(139,92,255,.14); transform: translateY(-1px); }
.scan-ico { font-size: 20px; opacity: .7; }
.scan-box input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--txt); font-size: 17px; padding: 15px 8px; }
.scan-box input::placeholder { color: var(--muted); }
.scan-box button { background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 15px 30px; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: 0 8px 22px rgba(79,140,255,.4); transition: transform .15s, filter .15s; }
.scan-box button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.scan-box button:disabled { opacity: .6; cursor: progress; }

.upload-row { margin-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.upload-btn { background: var(--surface); border: 1px dashed var(--line-2); color: var(--txt); border-radius: 12px; padding: 10px 16px; font-size: 13px; cursor: pointer; backdrop-filter: blur(8px); transition: border-color .15s, background .15s; }
.upload-btn:hover { border-color: var(--brand); background: var(--surface-2); }

.examples { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 13px; color: var(--muted); }
.chip { background: var(--surface); border: 1px solid var(--line); color: var(--txt); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--brand); transform: translateY(-1px); }

.trust-row { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 46px auto 0; max-width: 740px; }
.trust-row li { display: flex; flex-direction: column; gap: 3px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); backdrop-filter: blur(12px); transition: transform .15s, border-color .15s; }
.trust-row li:hover { transform: translateY(-3px); border-color: var(--line-2); }
.trust-row b { font-size: 17px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-row span { font-size: 12px; color: var(--muted); }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: var(--maxw); margin: 34px auto; padding: 30px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.stats b { display: block; font-size: 38px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 13px; color: var(--muted); }

/* ---- sections ---- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 20px; }
.section-title { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; text-align: center; letter-spacing: -.6px; }
.section-sub { text-align: center; color: var(--muted); margin-top: 10px; margin-bottom: 42px; font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(12px); transition: transform .18s, border-color .18s; }
.step:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step-n { width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(79,140,255,.4); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(12px); transition: transform .18s, border-color .18s; overflow: hidden; }
.feat::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s; }
.feat:hover { transform: translateY(-5px); }
.feat:hover::before { opacity: .7; }
.feat > span { font-size: 32px; display: inline-block; filter: drop-shadow(0 4px 10px rgba(139,92,255,.35)); }
.feat h3 { margin: 14px 0 6px; font-size: 17px; }
.feat p { color: var(--muted); font-size: 14px; }

/* ---- transparency ---- */
.trans-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.trans-text { color: var(--muted); margin: 18px 0; font-size: 16.5px; }
.trans-text b { color: var(--txt); }
.trans-list { list-style: none; display: grid; gap: 10px; }
.trans-list li { color: var(--green); font-weight: 600; font-size: 14.5px; }
.trans-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.tc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tc-row:last-of-type { border-bottom: 0; }
.tc-neg, .tc-pos { font-weight: 800; min-width: 44px; }
.tc-neg { color: var(--red); } .tc-pos { color: var(--green); }
.tc-foot { margin-top: 16px; font-size: 15px; }
.tc-foot b { color: var(--red); font-size: 24px; }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; backdrop-filter: blur(12px); transition: transform .18s, border-color .18s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan.featured { border-color: transparent; box-shadow: var(--glow); }
.plan.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.plan-flag { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(139,92,255,.5); }
.plan-badge { font-size: 11px; color: var(--green); font-weight: 700; margin-bottom: 4px; }
.plan h4 { font-size: 18px; margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 800; }
.plan-price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.plan-scans { color: var(--brand); font-weight: 700; font-size: 13px; margin: 8px 0 14px; }
.plan ul { list-style: none; display: grid; gap: 8px; margin: 0 0 20px; flex: 1; }
.plan li { font-size: 13px; color: var(--muted); padding-inline-start: 22px; position: relative; }
.plan li::before { content: "✓"; color: var(--green); position: absolute; inset-inline-start: 0; font-weight: 800; }
.plan-cta { display: block; text-align: center; font-weight: 700; font-size: 14px; padding: 13px; border-radius: 13px; background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(79,140,255,.35); transition: transform .15s, filter .15s; }
.plan-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.plan-cta.disabled { background: var(--surface); color: var(--muted); border: 1px solid var(--line); box-shadow: none; cursor: default; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }

/* ---- faq ---- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; backdrop-filter: blur(12px); transition: border-color .15s; }
.faq-item.open { border-color: var(--line-2); }
.faq-q { width: 100%; text-align: start; background: none; border: 0; color: var(--txt); font-size: 15px; font-weight: 600; padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.faq-q::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; color: var(--muted); font-size: 14px; padding: 0 22px; transition: max-height .25s, padding .25s; }
.faq-item.open .faq-a { max-height: 260px; padding: 0 22px 18px; }

/* ---- cta band ---- */
.cta-band { position: relative; max-width: var(--maxw); margin: 40px auto 70px; padding: 64px 24px; text-align: center; border-radius: 32px; background: var(--grad); overflow: hidden; box-shadow: 0 30px 80px rgba(79,140,255,.4); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% -20%, rgba(255,255,255,.35), transparent 60%); }
.cta-band h2 { position: relative; font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; color: #fff; }
.cta-band p { position: relative; margin: 12px 0 26px; color: rgba(255,255,255,.92); }
.cta-band .btn-primary { position: relative; background: #fff; color: #1b2545; box-shadow: 0 12px 34px rgba(0,0,0,.3); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 20px 26px; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-tag { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 320px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--txt); }
.copy { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; }

/* ============ RESULT PANEL ============ */
.result { margin-top: 34px; text-align: start; }
.hidden { display: none; }
.score-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; grid-template-columns: 160px 1fr; gap: 26px; align-items: center; backdrop-filter: blur(16px); animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.gauge { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.gauge svg { transform: rotate(-90deg); filter: drop-shadow(0 0 14px rgba(79,140,255,.35)); }
.gauge .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .num b { font-size: 40px; line-height: 1; }
.gauge .num small { color: var(--muted); font-size: 11px; }
.grade-badge { display: inline-block; font-size: 14px; font-weight: 800; padding: 4px 13px; border-radius: 9px; margin-top: 6px; }
.verdict-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verdict-line h3 { font-size: 25px; }
.meta-row { color: var(--muted); font-size: 13px; margin-top: 6px; }
.meta-row b { color: var(--txt); }
.input-echo { word-break: break-all; color: var(--muted); font-size: 13px; margin-top: 8px; }
.ai-summary { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; font-size: 14px; white-space: pre-wrap; }
.ai-summary::before { content: "🤖 "; }
.signals { margin-top: 24px; }
.signals h4 { font-size: 12px; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .6px; }
.signal { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 8px; background: var(--surface); transition: border-color .15s; }
.signal:hover { border-color: var(--line-2); }
.signal .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; }
.signal.pos .dot { background: var(--green); box-shadow: 0 0 10px rgba(47,208,122,.6); }
.signal.neg .dot { background: var(--red); box-shadow: 0 0 10px rgba(255,77,106,.6); }
.signal .body { flex: 1; }
.signal .reason { font-size: 14px; }
.signal .tag { font-size: 11px; color: var(--muted); }
.signal .delta { font-weight: 800; font-size: 13px; }
.signal.pos .delta { color: var(--green); } .signal.neg .delta { color: var(--red); }
.error-box { background: rgba(255,77,106,.12); border: 1px solid var(--red); border-radius: 13px; padding: 15px; color: #ffd0d8; }

/* ---- forensics ---- */
.forensics { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 10px; }
.fx-item { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; }
.fx-item .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.fx-item .v { font-size: 14px; font-weight: 600; word-break: break-all; margin-top: 4px; }
.fx-item .v a { color: var(--brand); }

/* ---- paywall ---- */
.locked-teaser { margin-top: 10px; font-size: 14px; color: var(--muted); }
.locked-teaser b { color: var(--txt); }
.blur-lines { margin-top: 10px; display: grid; gap: 8px; }
.blur-lines span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), var(--surface)); filter: blur(2px); opacity: .7; }
.blur-lines span:nth-child(1){width:90%}.blur-lines span:nth-child(2){width:75%}.blur-lines span:nth-child(3){width:82%}.blur-lines span:nth-child(4){width:60%}
.paywall { margin-top: 18px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(14px); }
.paywall > h3 { font-size: 21px; } .paywall > p { color: var(--muted); margin: 6px 0 20px; }
.redeem { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.redeem > p { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.redeem-row { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.redeem-row input, .redeem-row select { flex: 1; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; color: var(--txt); padding: 11px 13px; }
.redeem-row button { background: var(--grad); border: 0; color: #fff; border-radius: 11px; padding: 11px 20px; font-weight: 700; cursor: pointer; }
.redeem-msg { margin-top: 10px; font-size: 13px; min-height: 18px; }
.redeem-msg.ok { color: var(--green); } .redeem-msg.err { color: var(--red); }
.quota-pill { display: inline-block; margin-top: 16px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; }

/* ---- modal ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(3,6,14,.72); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay[hidden] { display: none; }
.modal { background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow); width: 100%; max-width: 470px; padding: 30px; max-height: 90vh; overflow-y: auto; backdrop-filter: blur(20px); animation: pop .25s ease; }
.modal h3 { font-size: 23px; margin-bottom: 6px; }
.modal .modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.modal label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.modal input[type=text], .modal input[type=email] { width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; color: var(--txt); padding: 12px 14px; font-size: 14px; }
.modal .consent { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0; font-size: 12.5px; color: var(--muted); }
.modal .consent a { color: var(--brand); }
.modal .modal-actions { margin-top: 18px; }
.modal .modal-actions .btn-primary { width: 100%; text-align: center; }
.modal-close { float: inline-end; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.modal-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.modal-msg.ok { color: var(--green); } .modal-msg.err { color: var(--red); }
.ref-box { background: var(--surface); border: 1px dashed var(--brand); border-radius: 14px; padding: 16px; text-align: center; margin: 14px 0; }
.ref-code { font-size: 28px; font-weight: 800; letter-spacing: 3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: monospace; }
.ref-stats { display: flex; justify-content: space-around; margin: 16px 0; text-align: center; }
.ref-stats b { display: block; font-size: 24px; }
.ref-stats span { font-size: 12px; color: var(--muted); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.share-row a, .share-row button { background: var(--surface); border: 1px solid var(--line-2); color: var(--txt); border-radius: 11px; padding: 10px 15px; font-size: 13px; cursor: pointer; }
.share-row a:hover, .share-row button:hover { border-color: var(--brand); }

.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .trans-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .trust-row { grid-template-columns: repeat(2,1fr); }
  .hero { padding-top: 60px; }
}
@media (max-width: 560px) {
  .score-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .plan.featured { transform: none; }
  .nav { padding: 12px 16px; }
}

/* ============ investigation room additions (v4) ============ */
.dev-credit { margin-top: 8px; font-size: 12px; }
.dev-credit b { color: var(--txt); }
.dev-credit a { color: var(--brand); }

/* AI assistant chatbot */
.chat-fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 24px;
  box-shadow: 0 12px 30px rgba(79,140,255,.5); transition: transform .15s;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); }
.chat-panel {
  position: fixed; inset-inline-end: 22px; bottom: 92px; z-index: 91;
  width: min(370px, calc(100vw - 32px)); height: 480px; max-height: calc(100vh - 130px);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: var(--shadow); backdrop-filter: blur(20px); display: flex; flex-direction: column;
  overflow: hidden; animation: pop .22s ease;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--grad); color: #fff; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.chat-msg.bot { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-inline-start: 2px solid var(--brand); }
.chat-msg.user { background: var(--grad); color: #fff; align-self: flex-end; }
.chat-msg.typing { color: var(--muted); font-style: italic; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; color: var(--txt); padding: 11px 13px; font-size: 14px; }
.chat-input button { background: var(--grad); border: 0; color: #fff; width: 44px; border-radius: 12px; cursor: pointer; font-size: 16px; }

/* download report button */
.report-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--txt); border-radius: 12px; padding: 11px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, transform .15s; }
.report-btn:hover { border-color: var(--brand); transform: translateY(-1px); }

/* locked result — "case file" reveal vibe */
.locked-banner { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px; background: rgba(255,77,106,.1); border: 1px solid rgba(255,77,106,.3); border-radius: 12px; font-size: 13px; color: #ffd0d8; }
.signal.blurred .reason, .signal.blurred .tag, .signal.blurred .delta { filter: blur(5px); user-select: none; }
.unlock-row { text-align: center; margin-top: 14px; }

/* user chip when logged in */
.user-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.user-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* trusted / data sources band */
.trusted-band { max-width: var(--maxw); margin: 30px auto 0; padding: 24px 20px; text-align: center; }
.trusted-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.trusted-logos { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; }
.trusted-logos span { color: var(--txt); font-weight: 700; font-size: 15px; opacity: .65; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.trusted-logos span:hover { opacity: 1; filter: none; color: var(--brand); }

/* people / face search */
.people-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(16px); animation: pop .3s ease; text-align: start; }
.people-head { display: flex; align-items: center; gap: 16px; }
.people-count { width: 64px; height: 64px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 28px; font-weight: 800; display: grid; place-items: center; flex: 0 0 auto; }
.people-head h3 { font-size: 20px; }
.people-head span { color: var(--muted); font-size: 13px; }
.people-desc { margin: 14px 0; padding-inline-start: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.people-card h4 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 18px 0 10px; }
.people-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; }
.people-link { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 13px; transition: border-color .15s, transform .15s; }
.people-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.people-link b { font-size: 14px; }
.people-link span { font-size: 12px; color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; transition: border-color .15s; }
.social-links a:hover { border-color: var(--brand); color: var(--brand); }
.ethics-note { margin-top: 18px; padding: 12px 14px; background: rgba(245,179,47,.1); border: 1px solid rgba(245,179,47,.3); border-radius: 12px; font-size: 12.5px; color: #f5d98f; }
.ethics-note b { color: var(--amber); }

/* certified-by cybersecurity companies */
.certified-band { max-width: var(--maxw); margin: 30px auto 0; padding: 24px 20px 8px; text-align: center; }
.cert-logos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 14px; }
.cert-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; backdrop-filter: blur(10px); transition: transform .15s, border-color .15s; }
.cert-pill:hover { transform: translateY(-3px); border-color: var(--brand); }
.cert-glyph { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px; }
.cert-name { font-weight: 700; font-size: 15px; }

/* animated logo marquee (data sources) */
.marquee { overflow: hidden; position: relative; margin-top: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; gap: 16px; align-items: center; white-space: nowrap; will-change: transform; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.logo-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; flex: 0 0 auto; opacity: .85; transition: opacity .2s, border-color .2s; }
.logo-pill:hover { opacity: 1; border-color: var(--brand); }
.logo-glyph { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; }
.logo-text { font-weight: 700; font-size: 14px; color: var(--txt); white-space: nowrap; }

/* personal user dashboard (in modal) */
.dash-h { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 18px 0 10px; }
.dash-list { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.dash-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.dash-score { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.dash-main { flex: 1; min-width: 0; }
.dash-input { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-meta { font-size: 11px; color: var(--muted); }
.dash-rep { flex: 0 0 auto; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--txt); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 15px; }
.dash-rep:hover { border-color: var(--brand); color: var(--brand); }
.dash-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }

/* reverse-lookup digital footprint */
.grav { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line-2); }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 8px; }
.fp-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; transition: border-color .15s, transform .15s; }
.fp-link:hover { border-color: var(--brand); transform: translateY(-1px); }
.fp-found { border-color: rgba(47,208,122,.5); background: rgba(47,208,122,.07); }
.fp-plat { font-weight: 600; font-size: 13px; }
.fp-badge { font-size: 11px; font-weight: 700; color: var(--green); }
.fp-go { font-size: 11px; color: var(--muted); }

/* protective banner + DMCA removal CTA (people search) */
.protect-banner { margin-top: 18px; padding: 16px; border-radius: 14px; background: linear-gradient(120deg, rgba(79,140,255,.14), rgba(139,92,255,.12)); border: 1px solid var(--line-2); text-align: center; }
.protect-banner b { display: block; font-size: 15px; margin-bottom: 4px; }
.protect-banner span { font-size: 13px; color: var(--muted); }
.removal-cta { width: 100%; margin-top: 12px; background: var(--surface); border: 1px solid var(--line-2); color: var(--txt); border-radius: 12px; padding: 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: border-color .15s; }
.removal-cta:hover { border-color: var(--brand); color: var(--brand); }

/* search tips & examples */
.tips-list { margin: 6px 0 4px; padding-inline-start: 20px; display: grid; gap: 6px; }
.tips-list li { font-size: 13px; color: var(--muted); }
.tips-list.ex li { color: var(--txt); }
.tips-list.ex li::marker { content: "💡 "; }

/* file scan + "coming soon" device button */
.upload-btn.soon { position: relative; opacity: .85; }
.soon-tag { font-size: 10px; font-weight: 800; background: var(--grad); color: #fff; padding: 2px 7px; border-radius: 999px; margin-inline-start: 4px; }

/* full responsive polish (phones / tablets) */
@media (max-width: 700px) {
  .upload-row { gap: 8px; }
  .upload-btn { font-size: 12px; padding: 9px 12px; flex: 1 1 auto; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-ghost { padding: 8px 10px; font-size: 12px; }
  .scan-box { flex-direction: column; padding: 12px; }
  .scan-box input { width: 100%; text-align: center; }
  .scan-box button { width: 100%; }
  .modal { padding: 22px; border-radius: 18px; }
  .chat-panel { inset-inline-end: 10px; bottom: 84px; width: calc(100vw - 20px); }
  .features, .plans, .steps { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .features, .plans { grid-template-columns: repeat(2, 1fr); }
}
/* respect notches / safe areas on phones */
.nav, .footer { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* in-page reverse-image match results */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; margin-top: 6px; }
.match-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.match-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.match-card img { width: 100%; height: 110px; object-fit: cover; background: var(--bg-soft); }
.match-info { padding: 8px 10px; }
.match-info b { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-info span { font-size: 10.5px; color: var(--muted); }
/* blurred locked preview for non-subscribers */
.locked-matches { position: relative; }
.locked-matches .match-grid { filter: blur(8px); pointer-events: none; user-select: none; }
.locked-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.locked-overlay .lock-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px 24px; box-shadow: var(--shadow); }
.locked-overlay h4 { font-size: 16px; margin-bottom: 6px; }
.locked-overlay p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* login / register tabs */
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.auth-tab { flex: 1; background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 14px; padding: 10px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.auth-tab.active { background: var(--grad); color: #fff; }

/* rotating hero slogans */
.hero-slogan { min-height: 26px; margin: 10px 0 4px; font-size: 18px; font-weight: 800;
  letter-spacing: .2px; background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; transition: opacity .25s ease; }
@media (max-width: 600px) { .hero-slogan { font-size: 15px; } }

/* loyalty streak flame in the user chip */
.streak-flame { font-size: 12px; font-weight: 800; margin-inline-start: 4px;
  padding: 1px 6px; border-radius: 999px; background: #ff8a0022; color: #ff8a00;
  border: 1px solid #ff8a0055; }

/* family invite code */
.fam-code { display: block; margin: 8px 0 4px; font-size: 18px; font-weight: 800;
  letter-spacing: 2px; text-align: center; padding: 10px; border-radius: 10px;
  background: var(--surface); border: 1px dashed var(--primary); color: var(--primary); }
.fam-seats { display: block; font-size: 12px; color: var(--muted); text-align: center; }

/* free-quota 24h cooldown notice */
.cooldown-banner { background: #f59e0b18; color: #b45309; border: 1px solid #f59e0b55;
  border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14px; margin: 4px 0 14px; }

/* AI company profile + subscriber teaser */
.biz-profile { background: linear-gradient(180deg, var(--surface), transparent); border-radius: 14px; padding: 12px 14px; }
.biz-teaser { background: #4f8cff14; color: var(--primary); border: 1px dashed #4f8cff66;
  border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14px; margin: 8px 0; }

/* business verification grid */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 14px; }
.biz-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.biz-grid span { display: block; font-size: 12px; color: var(--muted); }
.biz-grid b { font-size: 14px; }

/* crypto wallet result card */
.crypto-card h4 { display: flex; align-items: center; gap: 6px; }
.crypto-warn { background: #ef444418; color: #ef4444; border: 1px solid #ef444455;
  border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 13px; margin: 6px 0 10px; }

/* live threat activity (community intelligence) */
.threat-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 18px; max-width: 920px; margin: 0 auto; }
.threat-stats { display: flex; flex-direction: column; gap: 12px; }
.tstat { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; text-align: center; box-shadow: var(--shadow); }
.tstat b { display: block; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tstat span { font-size: 12.5px; color: var(--muted); }
.threat-feed { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); max-height: 360px; overflow-y: auto; }
.threat-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.threat-row:last-child { border-bottom: 0; }
.threat-ico { font-size: 20px; flex-shrink: 0; }
.threat-main { flex: 1; min-width: 0; }
.threat-main b { font-size: 14px; display: block; }
.threat-meta { font-size: 12px; color: var(--muted); }
.tverif { color: #16a34a; font-weight: 700; }
.threat-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.threat-empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.threat-cta { text-align: center; margin-top: 18px; }
@media (max-width: 640px) { .threat-wrap { grid-template-columns: 1fr; } .threat-stats { flex-direction: row; } .tstat { flex: 1; } }

/* coming-soon plan card (e.g. Developer API while under construction) */
.plan.coming { opacity: .72; }
.plan.coming .plan-cta.disabled { background: #ff8a0018; color: #ff8a00; border: 1px solid #ff8a0055; }

/* coming-soon teaser badge inside a modal */
.soon-badge-big { display: inline-block; margin: 10px auto; padding: 6px 14px; border-radius: 999px;
  font-weight: 800; font-size: 13px; color: #ff8a00; background: #ff8a0018; border: 1px solid #ff8a0055; }

/* smart engagement nudge (floating, dismissible) */
.nudge { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 70;
  width: min(340px, calc(100vw - 44px)); display: flex; gap: 12px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(18px) scale(.96);
  pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.nudge.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.nudge-ico { font-size: 26px; line-height: 1.2; flex-shrink: 0; }
.nudge-body { flex: 1; min-width: 0; }
.nudge-head { font-size: 12px; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nudge-free { font-size: 10px; font-weight: 800; color: #16a34a; background: #16a34a1a;
  border: 1px solid #16a34a55; border-radius: 999px; padding: 1px 7px; }
.nudge-body p { font-size: 13.5px; line-height: 1.5; margin: 4px 0 9px; color: var(--text); }
.nudge-cta { width: 100%; border: 0; border-radius: 10px; padding: 9px; cursor: pointer;
  font-weight: 800; font-size: 13px; color: #fff; background: var(--grad); }
.nudge-cta:hover { filter: brightness(1.06); }
.nudge-x { position: absolute; top: 8px; inset-inline-end: 10px; background: none; border: 0;
  font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; }
.nudge-x:hover { color: var(--text); }
@media (max-width: 600px) { .nudge { bottom: 14px; inset-inline-start: 10px; } }

/* ============================================================
   Design-system polish + trust/conversion section + scroll motion
   ============================================================ */

/* shared section header (used by threats, trust, …) */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: clamp(15px, 2vw, 18px); }

/* trust & security band */
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: var(--maxw); margin: 0 auto 48px; }
.trust-badge { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; text-align: center;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s; }
.trust-badge:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--glow); }
.tb-ico { font-size: 34px; margin-bottom: 10px; filter: drop-shadow(0 4px 12px rgba(79,140,255,.4)); }
.trust-badge h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.trust-badge p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.testi-h { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 22px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--maxw); margin: 0 auto; }
.testi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 0;
  transition: transform .25s, border-color .25s; }
.testi-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.testi-stars { color: var(--amber); font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.testi-card blockquote { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--txt); }
.testi-card figcaption { color: var(--muted); font-size: 13px; font-weight: 700; }

@media (max-width: 860px) {
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
}

/* Scroll motion: staggered children rise as a section reveals (Phase A, no libs).
   Honors reduced-motion. Builds on the existing .reveal/.reveal.in observer. */
.trust-badges .trust-badge,
.testi-grid .testi-card,
#features .feat,
.threat-wrap .tstat {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
.reveal.in .trust-badge,
.reveal.in .testi-card,
.reveal.in .feat,
.reveal.in .tstat { opacity: 1; transform: none; }
.reveal.in .trust-badge:nth-child(2),
.reveal.in .testi-card:nth-child(2) { transition-delay: .08s; }
.reveal.in .trust-badge:nth-child(3),
.reveal.in .testi-card:nth-child(3) { transition-delay: .16s; }
.reveal.in .trust-badge:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .trust-badges .trust-badge, .testi-grid .testi-card,
  #features .feat, .threat-wrap .tstat { opacity: 1; transform: none; transition: none; }
}

/* Cyber Risk Timeline (user dashboard) */
.risk-timeline { position: relative; margin: 6px 0 16px; padding-inline-start: 18px; }
.risk-timeline::before { content: ""; position: absolute; inset-inline-start: 4px; top: 4px; bottom: 4px; width: 2px; background: var(--line-2); }
.rt-item { position: relative; display: flex; gap: 12px; padding: 8px 0; }
.rt-dot { position: absolute; inset-inline-start: -18px; top: 12px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--bg); }
.rt-safe .rt-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(47,208,122,.2); }
.rt-caution .rt-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,179,47,.2); }
.rt-danger .rt-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(255,77,106,.2); }
.rt-body { flex: 1; min-width: 0; }
.rt-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rt-top b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.rt-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.rt-meta { font-size: 12.5px; color: var(--muted); }

/* detected scam-pattern hits (message analysis) */
.scam-card .scam-hit { display: flex; gap: 8px; align-items: flex-start; font-size: 14px;
  padding: 9px 12px; margin: 6px 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.scam-card .scam-hit-strong { background: #ef444412; border-color: #ef444455; color: #ffd5dc; font-weight: 600; }

/* Scam-or-Not engagement quiz */
.quiz-card { max-width: 720px; margin: 28px auto 0; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.quiz-head { font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.quiz-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.quiz-actions { display: flex; gap: 10px; }
.quiz-btn { flex: 1; padding: 13px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--txt); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: border-color .15s, transform .15s; }
.quiz-btn:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-1px); }
.quiz-btn:disabled { opacity: .55; cursor: default; }
.quiz-result { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.quiz-result.ok { background: #22c55e14; border: 1px solid #22c55e55; }
.quiz-result.err { background: #ef444414; border: 1px solid #ef444455; }
.quiz-result p { color: var(--muted); margin: 8px 0 12px; line-height: 1.6; }
.quiz-foot { display: flex; gap: 8px; }

/* threat classification badge + manual-verify note */
.threat-class { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 12px;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.threat-impersonation { background: #f59e0b18; color: #f59e0b; border: 1px solid #f59e0b55; }
.threat-theft { background: #ef444418; color: #ff6b81; border: 1px solid #ef444455; }
.threat-intrusion { background: #ff4d6a18; color: #ff4d6a; border: 1px solid #ff4d6a66; }
.threat-suspected { background: #94a3c422; color: var(--muted); border: 1px solid var(--line-2); }
.tc-conf { font-weight: 600; font-size: 12.5px; opacity: .9; }
.scam-manual { margin-top: 10px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px;
  background: #19d3ff12; border: 1px dashed #19d3ff66; color: var(--txt); }
