:root {
  --bg: #07050b;
  --bg-2: #110c18;
  --bg-3: #1b1426;
  --bg-4: #241b32;
  --ink: #f7f0e6;
  --muted: #b7a8c2;
  --gold: #e4c38a;
  --gold-2: #c9a46a;
  --pink: #ff2f86;
  --pink-2: #ff6aa8;
  --lime: #d4f56a;
  --line: rgba(228, 195, 138, 0.16);
  --ok: #5ee0a8;
  --warn: #ffcc66;
  --danger: #ff5a6a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(1200px 500px at 10% -10%, rgba(255, 47, 134, 0.16), transparent 50%),
    radial-gradient(900px 500px at 110% 10%, rgba(228, 195, 138, 0.1), transparent 45%);
}

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }
.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 5, 11, 0.78);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.word { font-family: var(--display); font-weight: 800; letter-spacing: 0.04em; font-size: 1.15rem; }
.word span { color: var(--pink); }
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav a, .nav button.linkish {
  color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 8px 10px; font-size: 0.92rem;
}
.nav a:hover, .nav button.linkish:hover { color: var(--ink); }
.badge-19 {
  border: 1px solid var(--gold); color: var(--gold); font-size: 0.72rem;
  letter-spacing: 0.14em; padding: 4px 8px; border-radius: 999px; font-weight: 700;
}

.btn {
  appearance: none; border: 0; cursor: pointer;
  border-radius: 999px; padding: 12px 18px; font-weight: 650; font-size: 0.95rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--pink), #ff6a3c); color: #fff; box-shadow: 0 10px 30px rgba(255, 47, 134, 0.28); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #8d6b32); color: #1a1208; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ok { background: var(--ok); color: #062016; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 0.82rem; }

.hero {
  position: relative; min-height: 78vh; display: grid; place-items: end start;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,5,11,0.15) 0%, rgba(7,5,11,0.88) 72%, var(--bg) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 0 0 56px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.kicker { color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.76rem; font-weight: 700; }
.hero h1 {
  font-family: var(--display); font-size: clamp(3rem, 8vw, 6.4rem); line-height: 0.92;
  margin: 10px 0 16px; letter-spacing: -0.03em; max-width: 12ch;
}
.hero p.lede { max-width: 38rem; color: #eadfce; font-size: 1.12rem; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pill {
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  padding: 7px 12px; border-radius: 999px; font-size: 0.82rem; color: var(--ink);
}

.section { padding: 72px 0; }
.section h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 8px; letter-spacing: -0.03em;
}
.sub { color: var(--muted); margin: 0 0 28px; max-width: 40rem; }
.grid-3, .grid-4, .grid-2 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.pick {
  position: relative; min-height: 300px; border-radius: 24px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 22px; color: var(--ink); border: 1px solid var(--line);
}
.pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(7,5,11,0.92) 100%);
}
.pick .pick-copy { position: relative; z-index: 1; }
.pick h3 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.shop-tabs { display: flex; gap: 8px; margin: 8px 0 4px; }
.shop-tabs a, .shop-tabs button {
  flex: 1; text-align: center; border-radius: 16px; padding: 14px 12px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--muted);
  font-family: var(--display); font-size: 1.15rem; font-weight: 700; cursor: pointer;
}
.shop-tabs a.active, .shop-tabs button.active { color: #1a1208; background: var(--gold); border-color: var(--gold); }

.store-btn {
  display: flex; align-items: center; gap: 12px; color: var(--ink);
  background: #000; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; min-height: 64px;
}
.store-btn small { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.store-btn b { display: block; font-size: 1.2rem; font-family: var(--display); }
.store-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(180deg, #fff 0%, #bbb 100%);
  position: relative; flex-shrink: 0;
}
.store-mark::after {
  content: ""; position: absolute; inset: 8px 10px 10px 10px;
  border: 2px solid #111; border-radius: 6px 6px 8px 8px;
}
.store-mark.android { background: linear-gradient(180deg, #d4f56a, #3d7c0f); }
.store-mark.android::after { border-color: #102000; border-radius: 10px 10px 6px 6px; }
.install-steps { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.install-steps li { margin: 8px 0; }
.install-bar {
  position: sticky; bottom: 0; z-index: 30;
  background: rgba(7,5,11,0.92); border-top: 1px solid var(--line);
  padding: 10px 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-family: var(--display); }
.muted { color: var(--muted); }
.step-n { color: var(--pink); font-weight: 800; letter-spacing: 0.16em; font-size: 0.75rem; }

.legal-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 0; color: var(--muted); font-size: 0.92rem;
}
footer { padding: 40px 0 64px; color: var(--muted); font-size: 0.88rem; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Shop */
.shop-head { padding: 22px 0 8px; display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 22px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.chip.active { color: #1a1208; background: var(--gold); border-color: var(--gold); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 80px; }
.product {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; cursor: pointer;
}
.product .ph { aspect-ratio: 1; background: #000; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; }
.product .meta { padding: 12px 14px 16px; }
.product h3 { margin: 0; font-size: 1rem; }
.price { color: var(--gold); font-weight: 700; }
.stock-ok { color: var(--ok); font-size: 0.78rem; }
.stock-low { color: var(--warn); font-size: 0.78rem; }
.stock-out { color: var(--danger); font-size: 0.78rem; }

.verify-banner {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
  border: 1px solid rgba(255,47,134,0.35); background: rgba(255,47,134,0.08);
  border-radius: 16px; padding: 12px 14px; margin: 8px 0 18px;
}
.verify-banner.ok { border-color: rgba(94,224,168,0.35); background: rgba(94,224,168,0.08); }

.drawer, .modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.55);
  display: grid; place-items: center; padding: 16px;
}
.panel {
  width: min(560px, 100%); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 24px; padding: 22px; box-shadow: var(--shadow); max-height: 92vh; overflow: auto;
}
.cart-panel { width: min(420px, 100%); margin-left: auto; height: 100%; max-height: none; border-radius: 0; }
.checkout-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 16px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.product.is-out { opacity: 0.58; }
.qty-row { display: flex; align-items: center; gap: 8px; }
.has-install-bar { padding-bottom: 76px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.line { height: 1px; background: var(--line); margin: 14px 0; }

label { display: block; font-size: 0.82rem; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 12px; font-size: 1rem;
}
textarea { min-height: 90px; resize: vertical; }
.msg { font-size: 0.9rem; margin-top: 10px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* Camera */
.cam-wrap { position: relative; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; }
.cam-wrap video, .cam-wrap img.preview { width: 100%; height: 100%; object-fit: cover; }
.guide-id, .guide-face {
  position: absolute; inset: 10%; border: 2px dashed rgba(228,195,138,0.8); pointer-events: none;
}
.guide-id { inset: 12% 8%; border-radius: 12px; }
.guide-face { inset: 12% 22%; border-radius: 50%; }
.cam-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.steps { display: flex; gap: 8px; margin: 8px 0 18px; flex-wrap: wrap; }
.steps span {
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.8rem;
}
.steps span.on { color: #1a1208; background: var(--gold); border-color: var(--gold); }

/* Dashboard */
.dash { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side {
  border-right: 1px solid var(--line); padding: 22px 16px; background: var(--bg-2);
}
.side nav button {
  width: 100%; text-align: left; background: transparent; color: var(--muted); border: 0;
  padding: 10px 12px; border-radius: 12px; cursor: pointer; margin-bottom: 4px;
}
.side nav button.active { background: var(--bg-4); color: var(--ink); }
.main { padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 22px; }
.books-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.books-table th, .books-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.books-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.profit-pos { color: var(--ok); }
.profit-neg { color: var(--danger); }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat b { display: block; font-size: 1.6rem; font-family: var(--display); }
.stock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stock-card .ph { aspect-ratio: 4/3; overflow: hidden; }
.stock-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.drop {
  border: 1px dashed var(--gold-2); border-radius: 16px; padding: 22px; text-align: center; color: var(--muted);
  background: rgba(228,195,138,0.05);
}
.id-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.id-pair img { width: 100%; border-radius: 12px; background: #000; min-height: 180px; object-fit: cover; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 0.75rem; }
.tag.pending { background: rgba(255,204,102,0.15); color: var(--warn); }
.tag.approved { background: rgba(94,224,168,0.15); color: var(--ok); }
.tag.rejected { background: rgba(255,90,106,0.15); color: var(--danger); }

@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4, .products, .stock-grid, .stats, .dash { grid-template-columns: 1fr 1fr; }
  .dash { display: block; }
  .side { display: flex; gap: 12px; align-items: center; overflow: auto; }
}
@media (max-width: 800px) {
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .products, .grid-2, .grid-3, .grid-4, .stock-grid, .stats, .id-pair { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; }
  .nav .btn { width: 100%; }
}
