/* ============================================================
   VINPORT consumer web — premium theme (brand: docs/brand.md)
   ============================================================ */
:root {
  --navy: #0A2540;
  --navy-2: #0E3156;
  --blue: #1E6FEB;
  --blue-light: #3B82F6;
  --blue-glow: rgba(30, 111, 235, 0.35);
  --ink: #0A2540;
  --muted: #6B7280;
  --surface: #FFFFFF;
  --bg: #F4F6F9;
  --border: #E4E9F1;
  --risk-low: #2E7D32;
  --risk-medium: #F9A825;
  --risk-high: #EF6C00;
  --risk-critical: #C62828;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(10, 37, 64, 0.07);
  --shadow-lg: 0 18px 50px rgba(10, 37, 64, 0.16);
  --grad-blue: linear-gradient(135deg, #1E6FEB, #3B82F6 60%, #60A5FA);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }

/* ---------- entrance animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { 0% { transform: scale(0.4); opacity: 0; } 80% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseArrow { 0%, 100% { transform: translateX(0); opacity: 0.7; } 50% { transform: translateX(4px); opacity: 1; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.reveal { animation: fadeUp 0.5s ease both; }
.reveal-1 { animation-delay: 0.06s; } .reveal-2 { animation-delay: 0.14s; }
.reveal-3 { animation-delay: 0.22s; } .reveal-4 { animation-delay: 0.3s; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 13px 5vw;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(10, 37, 64, 0.09); border-color: var(--border); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-mark { height: 36px; width: 36px; }
.logo-word { font-size: 1.4rem; letter-spacing: 0.5px; }
.logo-word b { color: var(--navy); font-weight: 800; }
.logo-word i { color: var(--blue); font-style: normal; font-weight: 800; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.95rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--grad-blue); border-radius: 2px; transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-user { font-size: 0.9rem; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ Buttons ============ */
.btn {
  border: 0; border-radius: 12px; font-weight: 700;
  padding: 12px 22px; transition: all 0.18s ease; position: relative;
}
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 6px 18px var(--blue-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--blue-glow); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid #D4DCE7; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-demo { background: #EAF1FD; color: var(--blue); margin-top: 10px; }
.btn-demo:hover { background: #DCE9FB; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(30, 111, 235, 0.35), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(59, 130, 246, 0.28), transparent 55%),
    linear-gradient(165deg, var(--navy) 45%, #0F3156 80%, #123A63 100%);
  background-color: var(--navy);
  color: #fff;
  padding: 84px 5vw 96px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 800;
  max-width: 850px; margin: 0 auto 16px; line-height: 1.18; letter-spacing: -0.5px;
  animation: fadeUp 0.6s ease both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #7FB0F5, #A5C9FF, #7FB0F5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  color: #C9D6E8; font-size: 1.12rem; max-width: 660px; margin: 0 auto 36px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.vin-box {
  display: flex; gap: 10px; max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: 16px; padding: 9px;
  box-shadow: 0 20px 60px rgba(2, 12, 27, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.6s 0.18s ease both;
}
.vin-box:focus-within { transform: scale(1.015); box-shadow: 0 24px 70px rgba(2, 12, 27, 0.5), 0 0 0 3px var(--blue-glow); }
.vin-box input {
  flex: 1; border: 0; outline: none; font-size: 1.06rem; padding: 12px 16px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); min-width: 0;
  font-family: Consolas, monospace;
}
.vin-hint { margin-top: 18px; font-size: 0.92rem; color: #9FC1F7; animation: fadeUp 0.6s 0.26s ease both; }
.vin-hint a {
  color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 14px; border-radius: 20px; font-family: Consolas, monospace; letter-spacing: 1px;
  cursor: pointer; transition: background 0.2s;
}
.vin-hint a:hover { background: rgba(255, 255, 255, 0.2); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px;
  animation: fadeUp 0.6s 0.34s ease both;
}
.hero-badges span {
  color: #DCE7F5; font-size: 0.88rem; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14); padding: 7px 15px; border-radius: 22px;
  backdrop-filter: blur(4px);
}
.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-top: 40px; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero-stats .hs b { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-stats .hs span { color: #9FC1F7; font-size: 0.85rem; }

/* ============ Sections ============ */
.section { padding: 72px 5vw; max-width: 1160px; margin: 0 auto; width: 100%; }
.section h2 { font-size: 1.85rem; font-weight: 800; text-align: center; margin-bottom: 8px; letter-spacing: -0.4px; }
.section h2::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 4px;
  background: var(--grad-blue); margin: 12px auto 0;
}
.section .section-sub { text-align: center; color: var(--muted); margin: 14px 0 44px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step {
  background: var(--surface); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step .n {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad-blue); color: #fff; font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  box-shadow: 0 6px 14px var(--blue-glow);
}
.step h3 { font-size: 1.04rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; align-items: stretch; }
.plan {
  background: var(--surface); border-radius: 18px; padding: 30px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative;
  border: 1.5px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan.popular {
  border: 2px solid var(--blue);
  box-shadow: 0 16px 44px var(--blue-glow);
  transform: scale(1.02);
}
.plan.popular:hover { transform: scale(1.02) translateY(-6px); }
.plan .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-blue); color: #fff; font-size: 0.75rem; font-weight: 800;
  padding: 4px 16px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.5px;
  box-shadow: 0 6px 14px var(--blue-glow);
}
.plan h3 { font-size: 1.06rem; }
.plan .price { font-size: 2.3rem; font-weight: 800; color: var(--navy); margin: 10px 0 2px; letter-spacing: -1px; }
.plan .price span { font-size: 0.95rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan .desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.plan ul { list-style: none; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 30px; position: relative; font-size: 0.93rem; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #E7F3E8; color: var(--risk-low); font-weight: 800; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Scanning loader ============ */
.scanning { max-width: 520px; margin: 70px auto; padding: 0 5vw; text-align: center; animation: fadeIn 0.3s ease; }
.radar {
  width: 108px; height: 108px; margin: 0 auto 26px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue) 0deg, rgba(30, 111, 235, 0.05) 110deg, transparent 360deg);
  animation: spin 1.1s linear infinite; position: relative;
}
.radar::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); }
.radar::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px dashed rgba(30, 111, 235, 0.25);
}
.scanning .vin-tag {
  font-family: Consolas, monospace; letter-spacing: 2px; color: var(--navy); font-weight: 700;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  display: inline-block; padding: 6px 16px; margin-bottom: 22px;
}
.scan-steps { text-align: left; max-width: 360px; margin: 0 auto; }
.scan-step { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--muted); transition: color 0.3s; }
.scan-step .dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: #fff;
  transition: all 0.3s;
}
.scan-step.active { color: var(--navy); font-weight: 600; }
.scan-step.active .dot { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow); }
.scan-step.done { color: var(--ink); }
.scan-step.done .dot { background: var(--risk-low); border-color: var(--risk-low); }
.scan-step.done .dot::after { content: "✓"; }

/* ============ Report pages ============ */
.report-wrap { max-width: 1000px; margin: 0 auto; padding: 36px 5vw 60px; }
.crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--blue); }

.report-head {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 30px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.report-head .titles { flex: 1; min-width: 220px; }
.report-head h1 { font-size: 1.7rem; letter-spacing: -0.4px; }
.vin-chip {
  display: inline-block; background: var(--bg); border: 1px solid var(--border);
  font-family: Consolas, monospace; letter-spacing: 1.5px; font-size: 0.9rem;
  padding: 5px 14px; border-radius: 9px; margin-top: 9px; color: var(--navy);
}
.status-chip { display: inline-block; margin-left: 8px; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.status-ready   { background: #E7F3E8; color: var(--risk-low); }
.status-partial { background: #FFF4DE; color: #B27B00; }
.status-pending { background: #E8EEF7; color: var(--blue); }
.status-failed  { background: #FBE5E5; color: var(--risk-critical); }

/* risk gauge (animated via JS custom degrees) */
.gauge { text-align: center; min-width: 140px; }
.gauge .dial {
  width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: inset 0 0 0 1px var(--border);
}
.gauge .dial::after { content: ""; position: absolute; inset: 11px; background: var(--surface); border-radius: 50%; box-shadow: var(--shadow); }
.gauge .val { position: relative; z-index: 1; font-size: 1.9rem; font-weight: 800; letter-spacing: -1px; }
.gauge .lbl { font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.82rem; }
.risk-low      { color: var(--risk-low); }
.risk-medium   { color: var(--risk-medium); }
.risk-high     { color: var(--risk-high); }
.risk-critical { color: var(--risk-critical); }

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px; margin-top: 22px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card > h2 { font-size: 1.14rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card > h2 .ico {
  font-size: 1.05rem; width: 36px; height: 36px; border-radius: 10px; background: #EAF1FD;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 22px; }
.kv .k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); }
.kv .v { font-weight: 700; margin-top: 2px; font-size: 1.02rem; }

/* found/locked lists on preview */
.found-list, .locked-list { list-style: none; }
.found-list li, .locked-list li { padding: 8px 0 8px 32px; position: relative; }
.found-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #E7F3E8; color: var(--risk-low); font-weight: 800; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.locked-list li { color: rgba(255, 255, 255, 0.85); }
.locked-list li::before { content: "🔒"; position: absolute; left: 2px; top: 8px; font-size: 0.85rem; }
.locked-list li .tease {
  filter: blur(5px); user-select: none; color: #AFC8EA; font-weight: 700; margin-left: 6px;
}

.paywall {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(59, 130, 246, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy), #14355A);
  color: #fff; border-radius: 18px; padding: 34px; margin-top: 22px;
  box-shadow: var(--shadow-lg);
}
.paywall h2 { font-size: 1.45rem; margin-bottom: 4px; letter-spacing: -0.3px; }
.paywall p { color: #C9D6E8; margin-bottom: 20px; }
.paywall-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; }
.pay-option {
  background: rgba(255, 255, 255, 0.07); border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px; padding: 20px; text-align: left; color: #fff; transition: all 0.18s;
}
.pay-option:hover {
  border-color: #7FB0F5; background: rgba(255, 255, 255, 0.13);
  transform: translateY(-3px); box-shadow: 0 14px 34px rgba(2, 12, 27, 0.4);
}
.pay-option .po-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; }
.pay-option .po-price span { font-size: 0.9rem; font-weight: 600; color: #9FC1F7; }
.pay-option .po-name { font-weight: 700; margin-top: 3px; }
.pay-option .po-desc { font-size: 0.85rem; color: #C9D6E8; margin-top: 3px; }
.guarantee { margin-top: 18px; font-size: 0.85rem; color: #9FC1F7; text-align: center; }

/* gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery img {
  width: 100%; height: 152px; object-fit: cover; border-radius: 12px; background: #E8EEF7;
  cursor: zoom-in; transition: transform 0.2s, box-shadow 0.2s;
}
.gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(4, 15, 30, 0.9);
  display: flex; align-items: center; justify-content: center; padding: 4vw;
  animation: fadeIn 0.2s ease; cursor: zoom-out;
}
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }

/* shipment trace */
.trace { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trace .node {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 18px; text-align: center;
}
.trace .node .t { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.trace .node .p { font-weight: 800; }
.trace .arrow { color: var(--blue); font-size: 1.4rem; font-weight: 800; padding: 0 4px; animation: pulseArrow 1.4s ease infinite; }

/* sources */
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.source-chip { font-size: 0.8rem; padding: 6px 13px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.source-chip.ok { border-color: #BFDCC1; color: var(--risk-low); background: #F3FAF3; }

/* my reports */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 18px; }
.report-tile {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 22px; display: block; color: var(--ink); transition: transform 0.16s, box-shadow 0.16s;
}
.report-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.report-tile h3 { font-size: 1.03rem; }
.report-tile .vin { font-family: Consolas, monospace; font-size: 0.82rem; color: var(--muted); letter-spacing: 1px; }
.report-tile .row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* spinner (fallback, unused by main views) */
.loading { text-align: center; padding: 90px 20px; color: var(--muted); }
.spinner {
  width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%;
  border: 4px solid #E0E6EE; border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}

/* ============ Skeleton loaders ============ */
.sk {
  background: linear-gradient(90deg, #E7ECF3 25%, #F3F6FA 50%, #E7ECF3 75%);
  background-size: 800px 100%;
  animation: shimmer 1.25s linear infinite;
  border-radius: 8px;
}
.sk-line { height: 14px; margin: 8px 0; width: 100%; }
.sk-title { height: 30px; width: 60%; margin-bottom: 12px; border-radius: 9px; }
.sk-chip { height: 26px; width: 150px; border-radius: 20px; }
.sk-gauge { width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; }
.sk-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 28px; margin-top: 18px;
}
.sk-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin-top: 14px; }
@media (max-width: 560px) { .sk-kv { grid-template-columns: 1fr; } }
.sk-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }

.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); }

/* ============ Modals ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 20, 38, 0.6); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: #fff; border-radius: 20px; padding: 32px; width: 100%; max-width: 430px;
  box-shadow: var(--shadow-lg); position: relative; max-height: 92vh; overflow-y: auto;
  animation: fadeUp 0.28s ease;
}
.modal h2 { font-size: 1.35rem; letter-spacing: -0.3px; }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin: 4px 0 18px; }
.modal-close {
  position: absolute; top: 14px; right: 18px; border: 0; background: var(--bg);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.2rem; color: var(--muted); line-height: 1; transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field input {
  width: 100%; border: 1.5px solid #D4DCE7; border-radius: 11px; padding: 11px 14px;
  font: inherit; outline: none; transition: border 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.form-error { color: var(--risk-critical); font-size: 0.88rem; margin-bottom: 12px; }
.modal-switch { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.demo-banner {
  background: #FFF4DE; color: #8a5c00; font-size: 0.82rem; font-weight: 700;
  padding: 9px 12px; border-radius: 10px; text-align: center; margin-bottom: 16px;
}
.pay-alt { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.pay-success { text-align: center; padding: 10px 0; }
.success-check {
  width: 78px; height: 78px; margin: 6px auto 16px; border-radius: 50%;
  background: #E7F3E8; color: var(--risk-low); font-size: 2.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  animation: popIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  box-shadow: 0 0 0 10px rgba(46, 125, 50, 0.08);
}

/* ============ Footer ============ */
.footer { background: var(--navy); color: #C9D6E8; margin-top: 48px; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-blue); }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 38px 5vw; text-align: center; }
.footer-logo { height: 42px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-note { font-size: 0.82rem; max-width: 720px; margin: 0 auto 10px; }
.footer-demo { font-size: 0.78rem; font-weight: 700; color: #7FB0F5; letter-spacing: 0.5px; }

/* ============ Report showcase (landing) ============ */
.showcase {
  display: flex; gap: 34px; align-items: center; justify-content: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 38px;
}
.showcase-facts { display: grid; gap: 16px; min-width: 280px; max-width: 460px; flex: 1; }
.fact { display: flex; gap: 14px; align-items: center; }
.fact .f-ico {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.fact b { display: block; font-size: 1rem; }
.fact small { color: var(--muted); }

/* ============ FAQ ============ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 0; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 700; padding: 18px 22px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 20px; top: 14px;
  font-size: 1.4rem; color: var(--blue); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--muted); font-size: 0.95rem; }

/* ============ RTL (Arabic) ============ */
[dir="rtl"] body, [dir="rtl"] { font-family: "Segoe UI", Tahoma, system-ui, sans-serif; }
[dir="rtl"] .found-list li, [dir="rtl"] .locked-list li { padding: 8px 32px 8px 0; }
[dir="rtl"] .found-list li::before, [dir="rtl"] .locked-list li::before { left: auto; right: 0; }
[dir="rtl"] .plan li { padding: 6px 30px 6px 0; }
[dir="rtl"] .plan li::before { left: auto; right: 0; }
[dir="rtl"] .vin-box input { text-align: right; direction: ltr; }
[dir="rtl"] .vin-chip, [dir="rtl"] .vin-tag, [dir="rtl"] .report-tile .vin { direction: ltr; }
[dir="rtl"] .trace .arrow { transform: scaleX(-1); }
[dir="rtl"] .nav-links a::after { left: auto; right: 0; }

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .nav { gap: 14px; padding: 12px 4vw; }
  .nav-links { display: none; }
  .hero { padding: 52px 5vw 64px; }
  .vin-box { flex-direction: column; }
  .vin-box .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .report-head { flex-direction: column; text-align: center; }
  .report-head .titles { min-width: 0; }
  .section { padding: 52px 5vw; }
}

/* ============ WhatsApp support ============ */
.wa-fab {
  position: fixed; z-index: 90; bottom: 20px; right: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  background: #25D366; color: #fff; text-decoration: none;
  padding: 11px 18px; border-radius: 30px; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55); color: #fff; }
.wa-fab svg { width: 27px; height: 27px; fill: #fff; display: block; }
html[dir="rtl"] .wa-fab { right: auto; left: 20px; flex-direction: row-reverse; }
.footer-contact { font-size: 0.82rem; margin-top: 12px; }
.footer-contact a { color: #cbd7e8; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
@media (max-width: 560px) {
  .wa-fab { padding: 14px; border-radius: 50%; }
  .wa-fab .wa-fab-txt { display: none; }
}

/* ---------------- footer legal links ---------------- */
.footer-legal {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: center; font-size: 0.8rem;
}
.footer-legal a { color: #9FB3CC; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------------- legal pages ---------------- */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 32px 5vw 64px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.legal-tab {
  font-size: 0.86rem; font-weight: 600; color: var(--muted);
  padding: 8px 14px; border: 1px solid #E4E9F1; border-radius: 999px; background: #fff;
}
.legal-tab:hover { border-color: var(--blue); color: var(--blue); }
.legal-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.legal-h1 { font-size: 1.9rem; color: var(--navy); margin: 4px 0 18px; letter-spacing: -0.5px; }
/* Legal body is the authoritative English text — read LTR even in Arabic mode. */
.legal { color: #2B3A4B; line-height: 1.7; font-size: 0.96rem; direction: ltr; text-align: left; }
.legal h2 { font-size: 1.12rem; color: var(--navy); margin: 26px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-inline-start: 22px; }
.legal li { margin-bottom: 7px; }
.legal b { color: var(--navy); }
.legal .legal-meta {
  background: #F4F6F9; border: 1px solid #E4E9F1; border-radius: 12px;
  padding: 14px 16px; font-size: 0.9rem; color: var(--muted);
}
.legal .legal-meta b { color: var(--ink); }
.legal-note {
  margin-top: 26px; padding-top: 14px; border-top: 1px solid #E4E9F1;
  font-size: 0.82rem; color: var(--muted); font-style: italic;
}

/* short disclaimer under the paywall (pay moment) */
.disclaimer-inline {
  margin: 14px 0 0; font-size: 0.78rem; line-height: 1.55;
  color: rgba(201, 214, 232, 0.7); text-align: center;
}
.disclaimer-inline a { color: #7FB0F5; text-decoration: underline; }

/* ---------------- manual transfer (Whish/OMT) checkout ---------------- */
.pay-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 12px;
  color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
}
.pay-divider::before, .pay-divider::after { content: ""; flex: 1; height: 1px; background: #E4E9F1; }
.btn-manual { background: #F4F6F9; color: var(--navy); border: 1.5px solid #D4DCE7; }
.btn-manual:hover { border-color: var(--blue); color: var(--blue); }
.manual-box {
  background: #F4F6F9; border: 1px solid #E4E9F1; border-radius: 12px;
  padding: 6px 16px; margin: 14px 0;
}
.manual-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #E9EDF3; font-size: 0.92rem;
}
.manual-row:last-child { border-bottom: 0; }
.manual-row span { color: var(--muted); }
.manual-row b { color: var(--navy); }
.manual-ref {
  font-family: Consolas, monospace; letter-spacing: 1px; background: #FFF4DE;
  border: 1px dashed #E0C990; color: #8a5c00 !important; border-radius: 8px; padding: 3px 10px;
}
.btn-wa { background: #25D366; color: #fff; text-align: center; }
.btn-wa:hover { background: #1EBE5A; }
.manual-note { margin-top: 12px; font-size: 0.8rem; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---------------- "live at auction NOW" ---------------- */
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.live-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: #E11D48; margin-inline-end: 8px; animation: livePulse 1.4s infinite;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}
.live-teaser {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #FFF1F2; border: 1.5px solid #FECDD3; border-radius: 14px;
  padding: 14px 18px; margin-bottom: 22px; font-size: 0.95rem;
}
.live-teaser b { color: #BE123C; }
.live-teaser span:last-child { color: #9F1239; font-size: 0.88rem; }
.live-card { border: 1.5px solid #FECDD3 !important; }
.live-card h2 { color: #BE123C; }
.live-sub { color: var(--muted); font-size: 0.9rem; margin: -6px 0 14px; }
.live-note { margin-top: 10px; color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.live-warn {
  margin-top: 12px; padding: 10px 14px; background: #FFF1F2; border-radius: 10px;
  color: #9F1239; font-size: 0.85rem; line-height: 1.5;
}
