/* ============================================================
   ShopZone — design system
   Dark premium commerce theme (navy #0B1120 + emerald #10B981,
   continuing the original gateway palette). Pure CSS, no CDN.
   ============================================================ */

:root {
  --bg: #0b1120;
  --bg-2: #0e1729;
  --surface: #131c31;
  --surface-2: #1a2540;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.32);
  --ink: #f3f4f6;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --emerald: #10b981;
  --emerald-deep: #059669;
  --sky: #38bdf8;
  --red: #ef4444;
  --amber: #f59e0b;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --shadow: 0 18px 44px rgba(2, 6, 17, 0.55);
  --shadow-soft: 0 8px 24px rgba(2, 6, 17, 0.35);
  --radius: 16px;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --on-acc: #04121a;
  --nav-bg: rgba(11, 17, 32, 0.82);
  --proc-bg: rgba(4, 8, 18, 0.82);
  --glass: rgba(19, 28, 49, 0.82);
  --auth-bg: rgba(19, 28, 49, 0.9);
  --thumb: #24314f;
  --track: #22304e;
  --track-2: #1b2742;
  --acc-green: var(--acc-green);
  --acc-amber: var(--acc-amber);
  --acc-red: var(--acc-red);
  --acc-blue: var(--acc-blue);
  --acc-indigo: var(--acc-indigo);
  --grid-line: rgba(148, 163, 184, 0.06);
  --row-hover: rgba(148, 163, 184, 0.04);
  --ph-grad: linear-gradient(135deg, #1c2a4a, #101a30 60%, #0c2a25);
  --glow-em: rgba(16, 185, 129, 0.4);
  --glow-sky: rgba(56, 189, 248, 0.32);
  color-scheme: dark;
}

/* ---------- LIGHT THEME ---------- */
html[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-2: #edf1f8;
  --surface: #ffffff;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.22);
  --surface-2: #f1f5f9;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #5b6b81;
  --faint: #8595ab;
  --emerald: #059669;
  --emerald-deep: #047857;
  --sky: #0284c7;
  --red: #dc2626;
  --amber: #d97706;
  --indigo: #4f46e5;
  --blue: #2563eb;
  --on-acc: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --proc-bg: rgba(245, 247, 251, 0.82);
  --glass: rgba(255, 255, 255, 0.85);
  --auth-bg: rgba(255, 255, 255, 0.92);
  --thumb: #cbd5e1;
  --track: #e2e8f0;
  --track-2: #e2e8f0;
  --acc-green: #047857;
  --acc-amber: #b45309;
  --acc-red: #b91c1c;
  --acc-blue: #1d4ed8;
  --acc-indigo: #4338ca;
  --grid-line: rgba(15, 23, 42, 0.05);
  --row-hover: rgba(15, 23, 42, 0.03);
  --ph-grad: linear-gradient(135deg, #dbeafe, #e0f2fe 55%, #d1fae5);
  --glow-em: rgba(16, 185, 129, 0.30);
  --glow-sky: rgba(56, 189, 248, 0.26);
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  transition: background-color .3s ease, color .3s ease;
  line-height: 1.55;
  letter-spacing: -0.01em;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

::selection { background: rgba(16, 185, 129, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 5vw; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------------- navbar ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1180px; margin: 0 auto; padding: 12px 5vw;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .bag {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--emerald), #0ea5e9);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  color: var(--on-acc);
}
.brand em { font-style: normal; color: var(--emerald); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 13px; border-radius: 10px; color: var(--muted);
  font-size: 14.5px; font-weight: 550; transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(148, 163, 184, 0.08); }
.nav-links a.active { color: var(--ink); background: rgba(16, 185, 129, 0.12); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600;
  transition: border-color .18s, transform .18s;
}
.cart-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.cart-count {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--emerald); color: var(--on-acc); font-size: 11.5px; font-weight: 800;
  display: inline-grid; place-items: center;
}
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; color: var(--ink-soft);
}
.user-chip b { color: var(--ink); font-weight: 650; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 650; padding: 11px 20px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: var(--on-acc); box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.btn-sky { background: linear-gradient(135deg, var(--sky), #0ea5e9); color: var(--on-acc); box-shadow: 0 8px 22px rgba(56, 189, 248, 0.3); }
.btn-danger { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: var(--acc-red); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.22); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 66px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.hero-bg::before {
  width: 560px; height: 560px; left: -140px; top: -180px;
  background: radial-gradient(circle, var(--glow-em), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-bg::after {
  width: 620px; height: 620px; right: -160px; top: -120px;
  background: radial-gradient(circle, var(--glow-sky), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 40%, transparent 100%);
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 40px) scale(1.12); }
}
.hero-in {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 5vw;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1); color: var(--acc-green);
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em; margin-bottom: 20px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: blink 1.6s ease infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 62px); line-height: 1.04; font-weight: 850; letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--emerald) 10%, var(--sky) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 17px; max-width: 54ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .st b { display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats .st span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* floating glass cards in hero */
.hero-visual { position: relative; min-height: 400px; }
.float-card {
  position: absolute; padding: 16px 18px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite;
}
.float-card.fc-1 { top: 4%; left: 6%; width: 240px; animation-delay: 0s; }
.float-card.fc-2 { top: 36%; right: 2%; width: 250px; animation-delay: 1.4s; }
.float-card.fc-3 { bottom: 4%; left: 16%; width: 270px; animation-delay: 2.6s; }
@keyframes floaty { 50% { transform: translateY(-14px); } }
.fc-row { display: flex; align-items: center; gap: 11px; }
.fc-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 19px; flex: none;
}
.fc-ico.green { background: rgba(16,185,129,.16); }
.fc-ico.sky { background: rgba(56,189,248,.16); }
.fc-ico.amber { background: rgba(245,158,11,.16); }
.fc-t { font-weight: 700; font-size: 14px; }
.fc-s { font-size: 12px; color: var(--muted); }
.fc-meter { height: 7px; border-radius: 99px; background: var(--track); margin-top: 12px; overflow: hidden; }
.fc-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--emerald), var(--sky)); width: 22%; animation: meter 3.4s ease-in-out infinite; }
@keyframes meter { 0%,100% { width: 18%; } 45% { width: 82%; background: linear-gradient(90deg, var(--amber), var(--red)); } 55% { width: 82%; } }
.fc-verdict { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--emerald); }

/* ---------------- sections ---------------- */
.sec { padding: 62px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.kicker {
  font-size: 12px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 8px;
}
.sec h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.sec-head .link { color: var(--sky); font-weight: 650; font-size: 14.5px; }
.sec-head .link:hover { text-decoration: underline; }

/* ---------------- product grid ---------------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 52px;
  background: var(--ph-grad);
}
.badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; z-index: 2;
}
.badge.sale { background: var(--red); color: #fff; }
.badge.new { background: var(--sky); color: var(--on-acc); }
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 650; }
.card-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.card-desc { font-size: 12.5px; color: var(--muted); }
.card-rate { font-size: 12.5px; color: var(--amber); font-weight: 650; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.price { font-size: 17px; font-weight: 800; }
.price small { font-size: 12px; color: var(--faint); font-weight: 500; text-decoration: line-through; margin-left: 6px; }
.add-btn {
  border: 1px solid rgba(16,185,129,.4); background: rgba(16,185,129,.12); color: var(--acc-green);
  border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700;
  transition: background .16s, transform .16s;
}
.add-btn:hover { background: rgba(16,185,129,.22); transform: translateY(-1px); }

/* ---------------- shield section ---------------- */
.shield-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shield-card {
  padding: 24px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.shield-card::after {
  content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  right: -60px; top: -60px; filter: blur(40px); opacity: .3;
}
.shield-card.s1::after { background: var(--sky); }
.shield-card.s2::after { background: var(--amber); }
.shield-card.s3::after { background: var(--emerald); }
.shield-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 14px; background: rgba(148,163,184,.1); border: 1px solid var(--line);
}
.shield-card h3 { font-size: 17px; margin-bottom: 8px; }
.shield-card p { font-size: 13.5px; color: var(--muted); }
.shield-step { position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------------- steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: stp; }
.step {
  padding: 20px 18px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); counter-increment: stp; position: relative;
}
.step::before {
  content: "0" counter(stp); font-family: var(--mono); font-size: 12px; color: var(--emerald);
  display: block; margin-bottom: 10px;
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* ---------------- CTA band + footer ---------------- */
.cta-band {
  margin: 10px 0 0; padding: 52px 8%; border-radius: 22px; text-align: center;
  background: linear-gradient(120deg, rgba(16,185,129,.16), rgba(56,189,248,.14));
  border: 1px solid rgba(16,185,129,.3); position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 22px; }
.footer {
  border-top: 1px solid var(--line); margin-top: 64px; padding: 26px 0 34px;
  color: var(--faint); font-size: 13px;
}
.footer-in { max-width: 1180px; margin: 0 auto; padding: 0 5vw; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------- page header (inner pages) ---------------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin-top: 6px; }

/* ---------------- shop controls ---------------- */
.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 22px 0; }
.search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.search input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-size: 14.5px; }
.search input::placeholder { color: var(--faint); }
.select {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 10px 14px; font-size: 14px; outline: none;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600;
  transition: all .16s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.on { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.45); color: var(--acc-green); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }

/* ---------------- cart / checkout ---------------- */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; padding-bottom: 60px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-soft);
}
.panel h3 { font-size: 17px; margin-bottom: 16px; }
.line {
  display: flex; gap: 14px; align-items: center; padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child { border-bottom: none; }
.line-thumb {
  width: 62px; height: 52px; border-radius: 10px; flex: none; overflow: hidden;
  background: var(--surface-2); position: relative; display: grid; place-items: center; font-size: 24px;
}
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-info { flex: 1; min-width: 0; }
.line-info b { font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-info span { font-size: 12.5px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button {
  width: 32px; height: 32px; border: none; background: var(--surface-2); color: var(--ink);
  font-size: 16px; font-weight: 700; transition: background .15s;
}
.qty button:hover { background: var(--thumb); }
.qty span { width: 38px; text-align: center; font-size: 14px; font-weight: 700; }
.line-price { font-weight: 800; font-size: 15px; min-width: 92px; text-align: right; }
.rm { background: none; border: none; color: var(--faint); font-size: 17px; padding: 6px; border-radius: 8px; }
.rm:hover { color: var(--red); background: rgba(239,68,68,.1); }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; color: var(--muted); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 15px; color: var(--ink); font-size: 18px; font-weight: 800; }

/* card form */
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); font-size: 15px; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.16); }
.field input.bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-type-chip { font-size: 12px; font-weight: 750; color: var(--sky); margin-top: 6px; display: block; min-height: 17px; }
.hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
.error-banner {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); color: var(--acc-red);
  padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px;
}
.ok-banner {
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.35); color: var(--acc-green);
  padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px;
}

/* processing overlay + verdict */
.proc {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: var(--proc-bg); backdrop-filter: blur(8px);
}
.proc.on { display: grid; }
.proc-card {
  width: min(430px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px; box-shadow: var(--shadow); text-align: center;
}
.proc-card h3 { font-size: 19px; margin-bottom: 20px; }
.proc-steps { text-align: left; display: grid; gap: 12px; }
.proc-step { display: flex; align-items: center; gap: 11px; color: var(--faint); font-size: 14px; transition: color .3s; }
.proc-step .ico {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong);
  display: grid; place-items: center; font-size: 12px; flex: none; transition: all .3s;
}
.proc-step.on { color: var(--ink); }
.proc-step.on .ico { border-color: var(--sky); color: var(--sky); animation: spinpulse 1s linear infinite; }
.proc-step.done { color: var(--ink-soft); }
.proc-step.done .ico { border-color: var(--emerald); background: rgba(16,185,129,.15); color: var(--emerald); animation: none; }
@keyframes spinpulse { 50% { box-shadow: 0 0 0 5px rgba(56,189,248,.15); } }

.verdict { max-width: 560px; margin: 0 auto; padding: 46px 0 70px; text-align: center; }
.verdict-ico {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  font-size: 42px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.verdict.success .verdict-ico { background: rgba(16,185,129,.15); border: 2px solid var(--emerald); color: var(--emerald); }
.verdict.suspicious .verdict-ico { background: rgba(245,158,11,.14); border: 2px solid var(--amber); color: var(--amber); }
.verdict.fraud .verdict-ico { background: rgba(239,68,68,.14); border: 2px solid var(--red); color: var(--red); }
.verdict h1 { font-size: 30px; margin-bottom: 8px; }
.verdict .sub { color: var(--muted); margin-bottom: 24px; }
.risk-meter { max-width: 420px; margin: 0 auto 26px; text-align: left; }
.risk-meter .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.risk-meter .lbl b { color: var(--ink); font-size: 14px; }
.risk-bar { height: 11px; border-radius: 99px; background: var(--track); overflow: hidden; }
.risk-bar i {
  display: block; height: 100%; border-radius: 99px; width: 0;
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.risk-bar.low i { background: linear-gradient(90deg, var(--blue), var(--sky)); }
.risk-bar.med i { background: linear-gradient(90deg, var(--amber), #fbbf24); }
.risk-bar.high i { background: linear-gradient(90deg, #f97316, var(--red)); }
.signals { display: grid; gap: 8px; max-width: 420px; margin: 0 auto 26px; text-align: left; }
.signal {
  display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px;
}
.signal b { font-family: var(--mono); color: var(--amber); }
.verdict-meta { font-size: 12.5px; color: var(--faint); margin-bottom: 26px; }
.verdict-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- auth pages ---------------- */
.auth-wrap { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 48px 16px; position: relative; overflow: hidden; }
.auth-wrap .hero-bg { position: absolute; inset: 0; }
.auth-card {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: var(--auth-bg); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 30px 26px; box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.auth-card .logo { display: grid; place-items: center; margin-bottom: 16px; }
.auth-card h1 { font-size: 25px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.auth-switch a { color: var(--sky); font-weight: 650; }
.auth-switch a:hover { text-decoration: underline; }
.demo-note {
  margin-top: 14px; padding: 10px 13px; border-radius: 12px; font-size: 12.5px;
  background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.25); color: var(--ink-soft);
}

/* ---------------- admin ---------------- */
.metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; margin: 24px 0; }
.metric {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 17px 16px;
}
.metric span { display: block; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.metric b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.metric.green b { color: var(--emerald); }
.metric.amber b { color: var(--amber); }
.metric.red b { color: var(--red); }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.bars { display: grid; gap: 13px; margin-top: 6px; }
.bar-row { display: grid; grid-template-columns: 84px 1fr 44px; gap: 11px; align-items: center; font-size: 13px; }
.bar-row .track { height: 11px; background: var(--track-2); border-radius: 99px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar-row b { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
thead th {
  text-align: left; padding: 12px 14px; background: var(--surface-2); color: var(--muted);
  font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--row-hover); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 750; }
.pill.success { background: rgba(16,185,129,.14); color: var(--acc-green); }
.pill.suspicious { background: rgba(245,158,11,.14); color: var(--acc-amber); }
.pill.fraud { background: rgba(239,68,68,.14); color: var(--acc-red); }
.pill.low { background: rgba(59,130,246,.14); color: var(--acc-blue); }
.pill.medium { background: rgba(99,102,241,.16); color: var(--acc-indigo); }
.pill.high { background: rgba(245,158,11,.14); color: var(--acc-amber); }
.pill.critical { background: rgba(239,68,68,.14); color: var(--acc-red); }

/* ---------------- toast + reveal ---------------- */
.toast-zone { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: grid; gap: 10px; }
.toast {
  padding: 13px 17px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600; max-width: 330px;
  animation: toastin .3s cubic-bezier(.2,1.2,.4,1) both;
}
.toast.ok { border-color: rgba(16,185,129,.5); }
.toast.err { border-color: rgba(239,68,68,.5); }
@keyframes toastin { from { transform: translateY(14px); opacity: 0; } }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }
[data-reveal][data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .shield-grid, .steps, .charts { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
}


/* ---------------- theme toggle ---------------- */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  display: grid; place-items: center; transition: color .18s, border-color .18s, transform .18s;
}
.theme-toggle:hover { color: var(--amber); border-color: var(--line-strong); transform: translateY(-1px); }
.theme-toggle svg { transition: transform .35s ease; }
.theme-toggle:hover svg { transform: rotate(18deg) scale(1.1); }

/* ---------------- category tiles (landing) ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile {
  position: relative; overflow: hidden; text-align: left;
  padding: 20px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cat-tile:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.cat-tile::after {
  content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%;
  right: -50px; bottom: -50px; filter: blur(36px); opacity: .22;
  background: var(--tile-glow, var(--emerald)); transition: opacity .2s ease;
}
.cat-tile:hover::after { opacity: .4; }
.cat-ico { font-size: 30px; margin-bottom: 12px; display: block; }
.cat-tile b { display: block; font-size: 15px; margin-bottom: 3px; }
.cat-tile span.n { font-size: 12.5px; color: var(--muted); }
.cat-tile .go { position: absolute; top: 16px; right: 16px; color: var(--faint); font-size: 14px; transition: color .2s, transform .2s; }
.cat-tile:hover .go { color: var(--emerald); transform: translateX(3px); }

@media (max-width: 1020px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cat-grid { grid-template-columns: 1fr; } }


/* ---------------- back / forward navigation ---------------- */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 -6px;
  padding: 8px 14px 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 13.5px; font-weight: 650; transition: all .16s ease;
}
.back-btn:hover { color: var(--ink); border-color: var(--line-strong); transform: translateX(-2px); }
.back-btn svg { flex: none; }
.auth-back {
  position: fixed; top: 18px; left: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 10px; font-size: 13px; font-weight: 650;
  border: 1px solid var(--line); background: var(--glass); color: var(--muted);
  backdrop-filter: blur(10px); transition: all .16s ease;
}
.auth-back:hover { color: var(--ink); border-color: var(--line-strong); }
.fwd-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--sky); }
.fwd-link:hover { text-decoration: underline; }

/* ---------------- password checklist + eye ---------------- */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.eye-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; border-radius: 8px; background: none;
  color: var(--faint); display: grid; place-items: center; transition: color .15s, background .15s;
}
.eye-btn:hover { color: var(--ink); background: var(--surface-2); }
.eye-btn.seeing { color: var(--sky); }
.pw-check { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 8px 0 2px; }
.pw-rule { font-size: 11.5px; color: var(--faint); transition: color .15s; }
.pw-rule.ok { color: var(--acc-green); font-weight: 650; }

/* ---------------- phone with +91 prefix ---------------- */
.phone-group { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); transition: border-color .16s, box-shadow .16s; }
.phone-group:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.16); }
.phone-isd {
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: var(--surface-2); color: var(--ink-soft); font-weight: 750; font-size: 14.5px;
  border-right: 1px solid var(--line); flex: none;
}
.phone-group input { border: none !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }

/* ---------------- avatar / profile ---------------- */
.avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.ini {
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  background: linear-gradient(135deg, var(--emerald), var(--sky)); color: var(--on-acc);
}
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; transition: border-color .16s; }
.user-chip:hover { border-color: var(--line-strong); }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; padding: 18px 0 60px; }
.profile-id { text-align: center; padding: 30px 22px; }
.profile-pic {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden;
  border: 3px solid var(--emerald); background: var(--surface-2);
  display: grid; place-items: center; font-size: 40px; font-weight: 800; color: var(--on-acc);
}
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }
.profile-pic.ini { background: linear-gradient(135deg, var(--emerald), var(--sky)); }
.profile-id h3 { margin-bottom: 2px; }
.profile-id .muted { font-size: 13px; }
.upload-row { margin-top: 16px; display: grid; gap: 8px; }
.profile-links { display: grid; gap: 9px; margin-top: 18px; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }

/* ---------------- wishlist heart ---------------- */
.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass); color: var(--muted);
  display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: color .16s, transform .16s, border-color .16s;
}
.wish-btn:hover { color: var(--red); transform: scale(1.1); border-color: rgba(239,68,68,.45); }
.wish-btn.on { color: var(--red); border-color: rgba(239,68,68,.5); }
.wish-btn.on svg { fill: currentColor; }

/* --- RESPONSIVE FIXES --- */
*, *::before, *::after {
  box-sizing: border-box;
}
body, html {
  overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}
.container, .auth-box, .card, .login-container {
  width: 100%;
  max-width: 100%;
  padding: 15px;
}
@media (min-width: 768px) {
  .auth-box, .card, .login-container {
    max-width: 420px; /* Constrain width on PC */
    margin: 0 auto;
  }
}

/* --- PASSWORD TOGGLE STYLES --- */
.password-wrapper {
  position: relative;
  width: 100%;
  display: block;
}
.password-wrapper input {
  width: 100%;
  padding-right: 40px !important; /* Make room for icon */
}
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.toggle-password:hover { color: #374151; }
