:root {
  --bg: #05070D;
  --bg-2: #0B1020;
  --bg-3: #0E1530;
  --card: rgba(255,255,255,0.04);
  --card-2: rgba(255,255,255,0.06);
  --card-hi: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.12);
  --line-hi: rgba(255,255,255,0.18);
  --neon: #00D1FF;
  --neon-2: #2EA8FF;
  --gold: #D4AF37;
  --gold-2: #F1D27B;
  --fg: #F5F7FA;
  --muted: #9AA4B2;
  --muted-2: #6B7385;
  --ok: #22C55E;
  --warn: #F59E0B;
  --err: #EF4444;
  --r: 14px;
  --r-lg: 20px;
  --shadow-glow: 0 0 0 1px rgba(0,209,255,0.18), 0 14px 60px -16px rgba(0,209,255,0.45);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.neon { color: var(--neon); }
.h-num { font-family: 'JetBrains Mono', monospace; font-weight: 500; letter-spacing: -0.02em; }

/* Grid background */
.app-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(0,209,255,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(212,175,55,0.06), transparent 60%),
    linear-gradient(180deg, #05070D 0%, #06091A 50%, #05070D 100%);
}
.app-bg::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 800px at 50% 30%, black, transparent 75%);
}

/* Top nav (both .nav and .topbar-wrap share the same chrome) */
.nav, .topbar-wrap { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(18px); background: linear-gradient(180deg, rgba(5,7,13,0.85), rgba(5,7,13,0.6)); border-bottom: 1px solid var(--line); }
.nav-inner, .topbar { max-width: 1440px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #0a0e1c, #0a0e1c), radial-gradient(circle at 30% 30%, var(--neon), transparent 60%); border: 1px solid var(--line-hi); display: grid; place-items: center; box-shadow: 0 0 24px -6px rgba(0,209,255,0.6); position: relative; overflow: hidden; font-weight: 800; color: var(--gold); font-family: 'Manrope', sans-serif; font-size: 15px; letter-spacing: 0.04em; }
.brand-mark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(0,209,255,0.5), transparent 60%); pointer-events: none; }
.brand-mark svg, .brand-mark > * { position: relative; z-index: 1; }
.brand-name { font-weight: 700; letter-spacing: 0.16em; font-size: 13.5px; line-height: 1.1; }
.brand-name .gg { color: var(--gold); font-weight: 800; }
.brand-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); letter-spacing: 0.08em; margin-top: 3px; }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-links a { padding: 8px 12px; font-size: 13px; color: var(--muted); border-radius: 8px; transition: 0.15s; cursor: pointer; border: 1px solid transparent; }
.nav-links a:hover { color: var(--fg); background: var(--card); }
.nav-links a:focus-visible { outline: none; color: var(--fg); background: var(--card); border-color: var(--line-hi); }
.nav-links a.active { color: var(--fg); background: rgba(0,209,255,0.08); border-color: rgba(0,209,255,0.25); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-cta .badge-num { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--neon); color: #001823; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700; margin-left: 4px; }

/* Burger button (mobile) */
.burger { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.burger span { width: 18px; height: 1.5px; background: var(--fg); position: relative; transition: 0.2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--fg); transition: 0.2s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mob-drawer { position: fixed; inset: 65px 0 0 0; z-index: 55; background: linear-gradient(180deg, rgba(5,7,13,0.98), rgba(5,7,13,0.96)); backdrop-filter: blur(20px); padding: 24px 20px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease; }
.mob-drawer.open { transform: translateX(0); }
.mob-drawer a { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px; font-size: 16px; color: var(--fg); border-bottom: 1px solid var(--line); cursor: pointer; }
.mob-drawer a:hover { background: var(--card); }
.mob-drawer a.active { color: var(--neon); }
.mob-actions { display: flex; gap: 8px; margin-top: 22px; flex-direction: column; }
.mob-actions .btn { justify-content: center; padding: 14px; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--fg); transition: 0.2s; white-space: nowrap; }
.btn:hover { background: var(--card-hi); border-color: var(--line-hi); }
.btn-primary { background: linear-gradient(180deg, #00d1ff, #0aa6cc); color: #001823; border-color: transparent; box-shadow: 0 0 0 1px rgba(0,209,255,0.4), 0 14px 36px -10px rgba(0,209,255,0.55); }
.btn-primary:hover { background: linear-gradient(180deg, #1ee0ff, #18b5d8); color: #001823; }
.btn-gold { background: linear-gradient(180deg, #e6c14a, #b8902a); color: #1a1200; border-color: transparent; box-shadow: 0 14px 36px -12px rgba(212,175,55,0.45); }
.btn-gold:hover { background: linear-gradient(180deg, #f1d27b, #d4af37); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-lg { padding: 14px 22px; font-size: 14.5px; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-glass { background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)); border: 1px solid var(--line-2); border-radius: var(--r); backdrop-filter: blur(8px); box-shadow: var(--shadow-card); }
.card-pad { padding: 18px; }
.card-pad-lg { padding: 24px; }

/* Headings */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; color: var(--neon); text-transform: uppercase; }
.eyebrow.gold { color: var(--gold); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-2); background: var(--card); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.pill.ok { color: #b6efc8; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.08); }
.pill.ok .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pill.warn { color: #fde2a6; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.08); }
.pill.warn .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.pill.err { color: #fbb6b6; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.08); }
.pill.err .dot { background: var(--err); box-shadow: 0 0 8px var(--err); }
.pill.neon { color: #b6e8ff; border-color: rgba(0,209,255,0.3); background: rgba(0,209,255,0.08); }
.pill.neon .dot { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.pill.gold { color: var(--gold-2); border-color: rgba(212,175,55,0.3); background: rgba(212,175,55,0.08); }
.pill.gold .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Layout helpers */
.container { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }
.row { display: flex; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.input, .textarea, .select {
  background: rgba(0,0,0,0.3); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color: var(--fg); font-size: 14px; transition: 0.2s; width: 100%;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,209,255,0.15); }
.textarea { min-height: 96px; resize: vertical; }

/* Hero */
.hero { position: relative; padding: 80px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .accent { background: linear-gradient(120deg, var(--neon), #b6e8ff 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 560px; margin: 22px 0 32px; line-height: 1.55; }

/* Lock visual */
.lock-vis { position: relative; aspect-ratio: 1/1; max-width: 560px; margin-left: auto; }
.lock-vis .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0,209,255,0.12); }
.lock-vis .ring.r2 { inset: 30px; border-color: rgba(0,209,255,0.18); }
.lock-vis .ring.r3 { inset: 70px; border-color: rgba(0,209,255,0.28); border-style: dashed; animation: spin 80s linear infinite; }
.lock-vis .ring.r4 { inset: 110px; border-color: rgba(212,175,55,0.18); }
@keyframes spin { to { transform: rotate(360deg); } }
.lock-vis .core { position: absolute; inset: 22%; border-radius: 28px; background: linear-gradient(180deg, #0d1422, #050810); border: 1px solid rgba(0,209,255,0.25); box-shadow: 0 0 80px -10px rgba(0,209,255,0.4), inset 0 1px 0 rgba(255,255,255,0.1); display: grid; place-items: center; overflow: hidden; }
.lock-vis .core::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(0,209,255,0.18) 60%, transparent 80%); }
.lock-vis .keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }
.lock-vis .key { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); display: grid; place-items: center; color: var(--fg); font-family: 'JetBrains Mono', monospace; font-size: 14px; transition: 0.3s; }
.lock-vis .key.lit { background: rgba(0,209,255,0.18); border-color: rgba(0,209,255,0.5); color: var(--neon); box-shadow: 0 0 18px rgba(0,209,255,0.5); }
.lock-vis .badge { position: absolute; padding: 8px 14px; background: rgba(11,16,32,0.85); border: 1px solid var(--line-2); border-radius: 999px; backdrop-filter: blur(8px); font-size: 12px; display: flex; align-items: center; gap: 8px; }

/* Tag chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); cursor: pointer; transition: 0.2s; }
.chip:hover { color: var(--fg); border-color: var(--line-hi); }
.chip.active { color: var(--fg); background: rgba(0,209,255,0.1); border-color: rgba(0,209,255,0.4); box-shadow: 0 0 0 1px rgba(0,209,255,0.2) inset; }

/* Product card */
.prod { display: flex; flex-direction: column; transition: 0.3s; overflow: hidden; }
.prod:hover { transform: translateY(-2px); border-color: var(--line-hi); box-shadow: 0 30px 60px -30px rgba(0,209,255,0.2); }
.prod-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #0a0e1c 0%, #0d1426 100%); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.prod-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(0,209,255,0.18), transparent 60%); }
.prod-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.prod-name { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.prod-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.prod-price { display: flex; align-items: baseline; gap: 10px; }
.prod-price .now { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; color: var(--fg); }
.prod-price .old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }

/* Tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl thead th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: rgba(255,255,255,0.02); position: sticky; top: 0; }
.tbl tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(255,255,255,0.02); }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }

/* Sidebar layout (cabinet/admin) */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - 65px); }
.shell.admin { grid-template-columns: 248px 1fr; }
.sidebar { border-right: 1px solid var(--line); padding: 24px 16px; background: linear-gradient(180deg, rgba(11,16,32,0.7), rgba(5,7,13,0.7)); position: sticky; top: 65px; height: calc(100vh - 65px); overflow-y: auto; }
.sb-section { margin-bottom: 28px; }
.sb-label { font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted-2); text-transform: uppercase; font-weight: 600; padding: 0 12px; margin-bottom: 10px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: 0.15s; margin-bottom: 2px; }
.sb-link:hover { color: var(--fg); background: var(--card); }
.sb-link.active { color: var(--fg); background: linear-gradient(90deg, rgba(0,209,255,0.12), rgba(0,209,255,0)); border-left: 2px solid var(--neon); padding-left: 10px; }
.sb-link .badge-num { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); padding: 2px 7px; background: var(--card-2); border-radius: 6px; }
.sb-link.active .badge-num { color: var(--neon); background: rgba(0,209,255,0.12); }
.shell-main { padding: 32px; min-width: 0; }

/* Stat cards */
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.stat .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat .stat-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(0,209,255,0.1); border: 1px solid rgba(0,209,255,0.25); display: grid; place-items: center; color: var(--neon); }
.stat .stat-icon.gold { background: rgba(212,175,55,0.1); border-color: rgba(212,175,55,0.3); color: var(--gold); }
.stat .stat-icon.ok { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--ok); }
.stat .stat-icon.warn { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: var(--warn); }
.stat .stat-val { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.stat .stat-label { font-size: 12.5px; color: var(--muted); }
.stat .stat-trend { font-size: 11.5px; font-family: 'JetBrains Mono', monospace; }

/* Mini bar/line chart */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.spark .b { flex: 1; background: linear-gradient(180deg, rgba(0,209,255,0.5), rgba(0,209,255,0.1)); border-radius: 2px 2px 0 0; min-height: 4px; }

/* Sticky header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; }
.page-head p { color: var(--muted); margin: 6px 0 0; font-size: 13.5px; }

/* Search bar admin */
.adm-top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: rgba(5,7,13,0.6); backdrop-filter: blur(14px); position: sticky; top: 65px; z-index: 50; }
.adm-search { flex: 1; max-width: 520px; position: relative; }
.adm-search .input { padding-left: 38px; }
.adm-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* Admin/cabinet header strip */
.role-bar { padding: 8px 14px; border-radius: 10px; background: linear-gradient(90deg, rgba(212,175,55,0.08), rgba(0,209,255,0.04)); border: 1px solid rgba(212,175,55,0.18); display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--gold-2); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 4px; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.tl-time { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* Modal */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 32px; }
.modal { background: linear-gradient(180deg, #0c1226, #07091a); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; max-width: 640px; width: 100%; box-shadow: 0 60px 120px -40px rgba(0,209,255,0.18); }

/* Mobile bezels */
.phones { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; padding: 24px 0 60px; }
.phone { width: 320px; height: 660px; border-radius: 44px; background: linear-gradient(180deg, #1a1d2a, #07091a); padding: 12px; border: 1px solid var(--line-hi); box-shadow: 0 50px 100px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06); position: relative; flex-shrink: 0; }
.phone-screen { width: 100%; height: 100%; background: var(--bg); border-radius: 32px; overflow: hidden; position: relative; border: 1px solid #000; }
.phone .notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #000; border-radius: 14px; z-index: 5; }
.phone-status { display: flex; justify-content: space-between; padding: 14px 22px 6px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--fg); }
.phone-content { padding: 8px 16px 14px; height: calc(100% - 40px); overflow: hidden; position: relative; }
.phone-tab { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 18px 18px; background: rgba(11,16,32,0.85); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; justify-content: space-around; }
.phone-tab .t { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.phone-tab .t.active { color: var(--neon); }
.phone-label { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; }

/* Image placeholder */
.img-ph { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 12px, rgba(255,255,255,0.04) 12px 24px),
    linear-gradient(180deg, #0a0e1c, #0d1426);
  border: 1px dashed var(--line-2); border-radius: 12px; display: grid; place-items: center; color: var(--muted-2); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Lock illustration small */
.lock-thumb { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, #0a0e1c, #0d1426); border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden; }
.lock-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(0,209,255,0.18), transparent 60%); }
.lock-thumb svg { position: relative; z-index: 1; }

/* Decorative grid lines */
.deco-lines { position: absolute; inset: 0; pointer-events: none; opacity: 0.4; background-image:
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 1px), rgba(0,209,255,0.08) 100%);
  background-size: 80px 100%; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); }
.tab { padding: 12px 16px; font-size: 13.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--fg); border-color: var(--neon); }

/* Steps stepper */
.steps { display: flex; gap: 12px; align-items: center; }
.step { display: flex; align-items: center; gap: 10px; }
.step .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted); }
.step.active .num { background: var(--neon); color: #001823; border-color: var(--neon); }
.step.done .num { background: rgba(34,197,94,0.15); color: var(--ok); border-color: rgba(34,197,94,0.3); }
.step .lab { font-size: 13px; color: var(--muted); }
.step.active .lab, .step.done .lab { color: var(--fg); }
.steps .sep { flex: 1; height: 1px; background: var(--line-2); }

/* Notice */
.notice { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(245,158,11,0.25); background: rgba(245,158,11,0.06); color: #fde2a6; font-size: 12.5px; display: flex; align-items: flex-start; gap: 10px; }
.notice.neon { border-color: rgba(0,209,255,0.25); background: rgba(0,209,255,0.05); color: #b6e8ff; }
.notice.err { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.06); color: #fbb6b6; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 80px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 13px; margin-bottom: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--fg); font-size: 13.5px; }
.footer ul a:hover { color: var(--neon); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

/* Specific util */
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 24px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; font-size: 13.5px; }

/* Scrollbar nicer */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* Section header (admin) */
.adm-pagehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }

/* Floating router pill */
.router-pill { position: fixed; bottom: 18px; right: 18px; z-index: 200; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(11,16,32,0.85); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -14px rgba(0,209,255,0.3); }
.router-pill button { background: transparent; border: 0; color: var(--muted); font-size: 11.5px; padding: 7px 12px; border-radius: 999px; }
.router-pill button.active { background: rgba(0,209,255,0.15); color: var(--fg); }

/* progress */
.bar { height: 6px; border-radius: 3px; background: var(--card); overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--neon), #b6e8ff); border-radius: 3px; }

/* Reviews / stars row */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.review { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, rgba(0,209,255,0.25), rgba(212,175,55,0.15)); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--fg); flex-shrink: 0; }

/* Comparison table */
.cmp-tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmp-tbl th, .cmp-tbl td { padding: 16px 18px; text-align: left; vertical-align: top; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.cmp-tbl thead th { font-size: 14px; font-weight: 700; }
.cmp-tbl thead th.tt { color: var(--neon); }
.cmp-tbl thead th.sl { color: var(--gold); }
.cmp-tbl tbody td:first-child { color: var(--muted); font-size: 13px; }
.cmp-tbl tbody tr:last-child td { border-bottom: 0; }
.cmp-check { color: var(--ok); }
.cmp-cross { color: var(--muted-2); }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.trust-tile { padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.trust-tile .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(0,209,255,0.1); border: 1px solid rgba(0,209,255,0.25); color: var(--neon); display: grid; place-items: center; flex-shrink: 0; }
.trust-tile .ico.gold { background: rgba(212,175,55,0.1); border-color: rgba(212,175,55,0.3); color: var(--gold); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.calc-stat { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.calc-stat .v { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; }
.calc-stat .l { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* Loading skeleton */
@keyframes shimmer { 0% { background-position: -800px 0; } 100% { background-position: 800px 0; } }
.skel { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04)); background-size: 800px 100%; animation: shimmer 1.6s infinite linear; border-radius: 8px; }

/* Empty state */
.empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 16px; background: rgba(255,255,255,0.02); }
.empty .ico { width: 72px; height: 72px; border-radius: 20px; background: var(--card-2); display: grid; place-items: center; margin: 0 auto 18px; color: var(--muted); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14.5px; }
.faq-q:hover { background: var(--card-hi); }
.faq-a { padding: 0 20px 20px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* Map placeholder */
.map-ph { height: 360px; background:
    repeating-linear-gradient(0deg, rgba(0,209,255,0.04) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(0,209,255,0.04) 0 1px, transparent 1px 60px),
    radial-gradient(circle at 30% 60%, rgba(0,209,255,0.12), transparent 50%),
    radial-gradient(circle at 70% 40%, rgba(212,175,55,0.08), transparent 50%),
    linear-gradient(180deg, #0a0e1c, #050810);
  border: 1px solid var(--line); border-radius: 14px; position: relative; overflow: hidden;
}
.map-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.map-pin .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--neon); border: 2px solid #fff; box-shadow: 0 0 18px var(--neon), 0 0 0 8px rgba(0,209,255,0.18); }
.map-pin .lab { background: rgba(11,16,32,0.95); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }

/* Stock badge variants */
.stock-in { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-order { color: var(--muted); }

/* Range slider */
input[type="range"].range { -webkit-appearance: none; width: 100%; height: 4px; background: var(--card-hi); border-radius: 999px; outline: none; }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--neon); cursor: pointer; box-shadow: 0 0 10px rgba(0,209,255,0.6), 0 0 0 2px #001823; }
input[type="range"].range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--neon); cursor: pointer; border: 2px solid #001823; }

/* Hero CTA button hover */
.btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lock-vis { margin: 0 auto; max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .page-head h1 { font-size: 24px; }
  .hero { padding: 48px 0 60px; }
  .section { padding: 56px 0; }
}

@media (max-width: 720px) {
  .nav-cta .btn:not(.btn-icon):not(.always-show) { display: none; }
  .nav-cta .btn-icon { display: inline-grid; }
  .nav-inner, .topbar { padding: 12px 18px; gap: 12px; }
  .container { padding: 0 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px !important; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head h1 { font-size: 22px; }
  .steps { overflow-x: auto; padding-bottom: 8px; }
  .step .lab { display: none; }
  .step .num { width: 24px; height: 24px; font-size: 11px; }
}
