:root {
  --bg: #08070a;
  --bg-2: #100e14;
  --ink: #f6efe2;
  --muted: #9c9386;
  --gold: #e2b657;
  --gold-2: #f4d78a;
  --gold-dim: rgba(226, 182, 87, .16);
  --line: rgba(246, 239, 226, .08);
  --card: rgba(20, 17, 24, .72);
  --card-2: rgba(32, 27, 38, .8);
  --ok: #5ee4a6;
  --ok-dim: rgba(94, 228, 166, .12);
  --danger: #ff8b96;
  --danger-dim: rgba(255, 139, 150, .12);
  --ice: #9fd6ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --r: 22px;
  --r-sm: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --dock-h: calc(72px + var(--safe-b));
  --rail: 280px;
  --font: "Vazirmatn", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { min-height: 100dvh; overflow: hidden; }

/* اسکرول‌بار نامرئی — اسکرول لمسی/چرخی همچنان کار می‌کند */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}
button, input, textarea, select { font-family: inherit; }
a { color: var(--gold-2); }
img { max-width: 100%; display: block; }
.is-hidden { display: none !important; }

.sky {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(226, 182, 87, .16), transparent 55%),
    radial-gradient(900px 500px at -10% 110%, rgba(159, 214, 255, .08), transparent 50%),
    linear-gradient(180deg, #0b0910 0%, #08070a 40%, #0c0a10 100%);
}
.sky:after {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 72%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 67% 22%, #f4d78a, transparent),
    radial-gradient(1px 1px at 81% 64%, #fff, transparent),
    radial-gradient(1px 1px at 44% 38%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 91% 84%, #fff, transparent);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.splash {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: #07060a; transition: opacity .55s ease, visibility .55s ease;
}
.splash.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-mark { text-align: center; animation: rise .8s ease; }
.splash-logo { width: 78px; height: 78px; margin: 0 auto 16px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(226,182,87,.35)); }
.splash-word { letter-spacing: .42em; font-weight: 700; font-size: 22px; color: var(--gold-2); }
.splash-sub { margin-top: 8px; color: var(--muted); letter-spacing: .18em; font-size: 11px; }

.app {
  position: relative; z-index: 2; height: 100dvh;
  display: grid; grid-template-columns: 1fr;
  padding-bottom: var(--dock-h);
}
.app.is-docs-desktop { grid-template-columns: var(--rail) 1fr; padding-bottom: 0; }

.rail {
  display: none; border-left: 1px solid var(--line);
  background: rgba(10, 8, 13, .7); backdrop-filter: blur(18px);
  padding: calc(18px + var(--safe-t)) 16px 20px;
  overflow: auto;
}
.app.is-docs-desktop .rail { display: flex; flex-direction: column; }
.rail.open {
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0;
  width: min(86vw, 320px); z-index: 40; box-shadow: var(--shadow);
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; cursor: pointer; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand strong { display: block; font-size: 18px; }
.brand span { color: var(--muted); font-size: 12px; }
.rail-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rail-link {
  border: 0; background: transparent; color: var(--muted); text-align: right;
  padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 13.5px;
}
.rail-link:hover, .rail-link.is-on { background: var(--gold-dim); color: var(--gold-2); }
.rail-group { margin: 14px 8px 6px; font-size: 11px; color: var(--gold); letter-spacing: .08em; }
.rail-foot { margin-top: 16px; font-size: 12px; color: var(--muted); }

.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 7, 10, .55); backdrop-filter: blur(16px);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title em { display: block; font-style: normal; font-weight: 700; font-size: 15px; }
.topbar-title span { color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.shop-nav { display: flex; gap: 6px; }
.mini {
  border: 1px solid var(--line); background: #141118; color: var(--ink);
  border-radius: 999px; padding: 7px 10px; font-size: 11px; cursor: pointer;
}
.icon-btn, .chip, .btn, .ghost {
  border: 0; cursor: pointer; border-radius: 999px;
}
.icon-btn {
  width: 40px; height: 40px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
}
.app.is-docs-desktop .icon-btn#menuBtn { display: none; }
.chip {
  padding: 8px 14px; background: var(--gold); color: #20180a; font-weight: 700; font-size: 12px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, #3a2d16, #1a1410); color: var(--gold-2);
  border: 1px solid var(--gold-dim); font-size: 12px; font-weight: 700;
}

.main {
  flex: 1; overflow: auto; padding: 18px 16px 28px;
  -webkit-overflow-scrolling: touch;
}
.wrap { max-width: 1080px; margin: 0 auto; }

.hero {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: 28px 24px; margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(226,182,87,.16), transparent 46%),
    linear-gradient(180deg, #17131c, #100d14);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero:after {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 220px; height: 220px;
  border: 1px solid rgba(226,182,87,.18); border-radius: 50%;
}
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .16em; margin-bottom: 8px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(22px, 4vw, 36px); line-height: 1.35; }
.hero p { margin: 0; color: var(--muted); line-height: 1.9; max-width: 62ch; }
.hero-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.hero-docs {
  padding: 32px 26px 28px;
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(226,182,87,.22), transparent 55%),
    radial-gradient(500px 240px at 0% 100%, rgba(94,228,166,.08), transparent 50%),
    linear-gradient(165deg, #1a1520 0%, #100d14 55%, #0c0a10 100%);
}
.hero-docs h1 { max-width: 18ch; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted);
}
.pill-ok { background: var(--ok-dim); border-color: transparent; color: var(--ok); }

.tabs-label {
  font-size: 11px; color: var(--gold); letter-spacing: .12em; margin: 6px 4px 8px;
}
.docs-wrap .tabs { margin-bottom: 14px; }
.doc-landing { padding: 26px 22px; }
.lead {
  font-size: 15.5px; line-height: 2; color: var(--ink); margin: 0 0 22px !important;
  max-width: 68ch;
}

.offer-banner {
  display: grid; gap: 16px; align-items: center;
  margin: 0 0 22px; padding: 20px 18px; border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(94,228,166,.14), transparent 42%),
    linear-gradient(180deg, #151a16, #101410);
  border: 1px solid rgba(94,228,166,.22);
}
.offer-banner-lg { padding: 24px 20px; margin-bottom: 20px; }
.offer-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--ok);
  letter-spacing: .08em; margin-bottom: 8px;
}
.offer-banner h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.offer-banner p { margin: 0; color: var(--muted); line-height: 1.85; }
.offer-aside {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid var(--line);
  text-align: center;
}
.offer-aside b { color: var(--gold-2); font-size: 15px; }
.offer-aside span { color: var(--muted); font-size: 12px; }
@media (min-width: 720px) {
  .offer-banner { grid-template-columns: 1fr auto; }
}

.pitch-grid { margin: 8px 0 22px; }
.pitch-card {
  padding: 18px 16px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(32,27,38,.9), rgba(16,13,20,.9));
  border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.pitch-card:hover { border-color: rgba(226,182,87,.3); transform: translateY(-2px); }
.pitch-icon {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--gold);
  background: var(--gold-dim); border: 1px solid rgba(226,182,87,.2);
}
.pitch-card h3 { margin: 0 0 8px; font-size: 15px; }
.pitch-card p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 13.5px; }

.cta-strip, .docs-bottom-cta {
  display: grid; gap: 14px; align-items: center;
  margin-top: 22px; padding: 18px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(226,182,87,.14), rgba(226,182,87,.04));
  border: 1px solid rgba(226,182,87,.22);
}
.cta-strip strong, .docs-bottom-cta strong { display: block; margin-bottom: 4px; font-size: 15px; }
.cta-strip span, .docs-bottom-cta span { color: var(--muted); font-size: 13px; line-height: 1.7; }
@media (min-width: 720px) {
  .cta-strip, .docs-bottom-cta { grid-template-columns: 1fr auto; }
}

.compare {
  display: grid; gap: 12px; margin: 8px 0 22px;
}
@media (min-width: 720px) {
  .compare { grid-template-columns: 1fr 1fr; }
}
.compare-col {
  padding: 18px 16px; border-radius: 20px; border: 1px solid var(--line);
}
.compare-col h3 { margin: 0 0 12px; font-size: 15px; }
.compare-col ul { margin: 0; padding-right: 18px; color: var(--muted); line-height: 1.95; }
.compare-col.bad { background: rgba(255,139,150,.06); border-color: rgba(255,139,150,.18); }
.compare-col.bad h3 { color: var(--danger); }
.compare-col.good { background: rgba(94,228,166,.07); border-color: rgba(94,228,166,.2); }
.compare-col.good h3 { color: var(--ok); }

.benefit-list { display: grid; gap: 10px; margin: 8px 0 6px; }
@media (min-width: 720px) {
  .benefit-list { grid-template-columns: 1fr 1fr; }
}
.benefit {
  padding: 14px 16px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line);
}
.benefit b { display: block; margin-bottom: 4px; color: var(--gold-2); font-size: 14px; }
.benefit span { color: var(--muted); font-size: 13px; line-height: 1.75; }

.roadmap { display: grid; gap: 12px; margin: 12px 0 8px; }
.road-item {
  position: relative; padding: 16px 16px 16px 18px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  border-right: 3px solid rgba(226,182,87,.35);
}
.road-item.is-now {
  border-right-color: var(--ok);
  background: linear-gradient(90deg, rgba(94,228,166,.08), transparent 55%), var(--card);
}
.road-item span {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: .08em; margin-bottom: 6px;
}
.road-item.is-now span { color: var(--ok); }
.road-item b { display: block; margin-bottom: 6px; font-size: 15px; }
.road-item p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 13.5px; }

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-stats { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-stats { grid-template-columns: repeat(4, 1fr); }
  .main { padding: 24px 28px 40px; }
}

.card, .doc, .product, .row-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(12px);
}
.card { padding: 18px; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p, .doc p { color: var(--muted); line-height: 1.9; margin: 0 0 10px; }
.kicker { color: var(--gold); font-size: 12px; margin-bottom: 6px; }

.doc { padding: 22px; }
.doc h2 { margin: 0 0 12px; font-size: 22px; }
.doc h3 { margin: 20px 0 8px; font-size: 16px; color: var(--gold-2); }
.doc ul, .doc ol { color: var(--muted); line-height: 1.95; padding-right: 18px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: right; }
.doc th { color: var(--gold-2); font-weight: 600; }
.note {
  margin: 16px 0; padding: 14px 16px; border-radius: 16px;
  background: var(--gold-dim); color: var(--ink); line-height: 1.8;
}
.flow {
  display: grid; gap: 8px; margin: 16px 0;
}
.flow-item {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start;
}
.num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #1c1710; color: var(--gold); border: 1px solid var(--gold-dim); font-weight: 700;
}

.search {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.search input, .field input, .field textarea, .field select {
  width: 100%; background: #141118; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; outline: 0;
}
.search input:focus, .field input:focus, .field textarea:focus { border-color: rgba(226,182,87,.4); }
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.field textarea { min-height: 110px; resize: vertical; }

.btn {
  padding: 12px 16px; background: var(--gold); color: #20180a; font-weight: 700;
}
.btn.block { width: 100%; }
.btn.ok { background: var(--ok); color: #062016; }
.btn.danger { background: var(--danger); color: #2a0b10; }
.ghost {
  padding: 12px 16px; background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn, .btn-row .ghost { flex: 1; min-width: 120px; }

.product { overflow: hidden; cursor: pointer; transition: transform .2s ease, border-color .2s; }
.product:hover { transform: translateY(-3px); border-color: rgba(226,182,87,.28); }
.product-cover {
  aspect-ratio: 1 / 1; background:
    linear-gradient(160deg, #1b1620, #0f0d12);
  position: relative; overflow: hidden;
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--muted); letter-spacing: .2em; font-size: 12px;
}
.product-body { padding: 12px 14px 14px; }
.product-body h4 { margin: 0 0 6px; font-size: 14px; }
.price { color: var(--gold-2); font-weight: 700; }
.meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px;
  font-size: 11px; background: var(--gold-dim); color: var(--gold-2);
}
.badge.ok { background: var(--ok-dim); color: var(--ok); }
.badge.warn { background: var(--danger-dim); color: var(--danger); }

.detail-cover {
  border-radius: 28px; overflow: hidden; margin-bottom: 16px;
  aspect-ratio: 4 / 3; background: #121016; border: 1px solid var(--line);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
@media (min-width: 860px) {
  .detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
  .detail-cover { margin-bottom: 0; aspect-ratio: 1 / 1; }
}

.row-card {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 12px; margin-bottom: 10px;
}
.thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #16131a; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: #16131a; color: var(--ink); cursor: pointer;
}

.empty {
  text-align: center; padding: 48px 16px; color: var(--muted);
}
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 8px; }

.lock {
  max-width: 520px; margin: 40px auto; text-align: center; padding: 36px 22px;
}
.lock .seal {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--gold-dim);
  color: var(--gold); font-size: 28px;
}

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: var(--dock-h); padding: 8px 12px var(--safe-b);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  background: rgba(8, 7, 10, .86); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.app.is-docs-desktop .dock { display: none; }
.dock-item {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px;
}
.dock-item.is-on { color: var(--gold-2); }
.dock-item i { font-style: normal; font-size: 18px; }
.dock-item.is-soon span::after {
  content: " · v2";
  font-size: 9px;
  color: var(--gold);
  opacity: .9;
}
.shop-soon {
  max-width: 520px;
  margin: 24px auto;
  text-align: center;
}
.shop-soon .btn-row {
  justify-content: center;
}
.shop-soon .btn-row .btn,
.shop-soon .btn-row .ghost {
  flex: 0 1 auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 12px); transform: translateX(-50%);
  z-index: 70; min-width: min(92vw, 360px); max-width: 92vw;
  background: #1b1710; color: var(--ink); border: 1px solid var(--gold-dim);
  padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow); text-align: center;
}
.app.is-docs-desktop .toast { bottom: 24px; }

.toast[hidden],
.modal[hidden],
.lightbox[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.modal, .lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.62);
  display: grid; place-items: center; padding: 18px;
}
.modal-card {
  width: min(520px, 100%); background: #141118; border: 1px solid var(--line);
  border-radius: 24px; padding: 20px; box-shadow: var(--shadow);
}
.lightbox img { max-height: 86dvh; max-width: 94vw; border-radius: 16px; }
.lightbox { -webkit-user-select: none; user-select: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; margin-bottom: 8px; }
.tab {
  flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; font-size: 12px;
}
.tab.is-on { background: var(--gold-dim); color: var(--gold-2); border-color: transparent; }

.hero-cta-3 .chip,
.hero-cta-3 .ghost { min-width: 118px; justify-content: center; }
.intro-section-title {
  margin: 28px 0 12px; font-size: 20px; color: var(--gold-2);
}

.guide-shell { max-width: 1080px; }
.guide-top {
  display: grid; gap: 14px; margin-bottom: 16px;
  padding: 18px 16px; border-radius: 22px;
  background: linear-gradient(165deg, #1a1520 0%, #100d14 100%);
  border: 1px solid var(--line);
}
.guide-heading { margin: 0 0 6px; font-size: 20px; }
.guide-sub { margin: 0; color: var(--muted); line-height: 1.8; font-size: 13.5px; }
.guide-top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 720px) {
  .guide-top { grid-template-columns: 1fr auto; align-items: end; }
}

.guide-groups {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.guide-group-btn {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 12px;
}
.guide-group-btn.is-on {
  background: var(--gold-dim); color: var(--gold-2); border-color: transparent;
}

.guide-picker {
  position: sticky; top: 0; z-index: 5;
  display: grid; gap: 10px; margin-bottom: 14px; padding: 12px;
  border-radius: 18px; background: rgba(12, 10, 16, .92);
  border: 1px solid var(--line); backdrop-filter: blur(12px);
}
.guide-select-label {
  font-size: 11px; color: var(--gold); letter-spacing: .08em;
}
.guide-select {
  width: 100%; background: #141118; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  outline: 0; appearance: none;
}
.guide-nav-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide-nav-btns .ghost:disabled { opacity: .35; cursor: default; }

.guide-layout { display: grid; gap: 14px; }
.guide-toc { display: none; }
.guide-toc-link {
  display: block; width: 100%; border: 0; background: transparent; color: var(--muted);
  text-align: right; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 13px;
}
.guide-toc-link.is-on, .guide-toc-link:hover {
  background: var(--gold-dim); color: var(--gold-2);
}
@media (min-width: 900px) {
  .guide-layout { grid-template-columns: 220px 1fr; align-items: start; }
  .guide-toc {
    display: block; position: sticky; top: 12px;
    padding: 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
    max-height: calc(100dvh - 140px); overflow: auto;
  }
  .guide-picker { grid-template-columns: 1fr auto; align-items: end; }
  .guide-select-label { grid-column: 1 / -1; }
  .guide-nav-btns { min-width: 200px; }
}

.guide-panel { min-height: 280px; }
.guide-fade { animation: rise .35s ease; }
.guide-gallery {
  display: grid; gap: 14px; margin: 12px 0 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .guide-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .guide-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.guide-shot {
  margin: 0; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: #121016;
  max-width: 340px; width: 100%; justify-self: center;
}
.guide-shot.is-wide {
  max-width: min(100%, 520px);
  grid-column: 1 / -1;
  justify-self: stretch;
  max-width: min(100%, 560px);
  margin-inline: auto;
}
.guide-shot-frame {
  width: 100%;
  aspect-ratio: 9 / 19;
  background: #0c0a10 center / contain no-repeat;
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.guide-shot-frame.is-wide {
  aspect-ratio: 3 / 4;
  min-height: 320px;
}
.guide-shot img,
.lightbox img,
.lightbox-frame {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}
.guide-shot figcaption {
  display: grid; gap: 4px;
  padding: 12px 14px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.guide-shot figcaption b {
  color: var(--gold-2); font-size: 13px; font-weight: 700;
}
.guide-shot figcaption span { line-height: 1.75; }
.lightbox-frame {
  width: min(92vw, 400px);
  height: min(86dvh, 820px);
  border-radius: 16px;
  background: #0c0a10 center / contain no-repeat;
  box-shadow: var(--shadow);
}
.lightbox-frame.is-wide {
  width: min(94vw, 680px);
  height: min(86dvh, 920px);
}

.stat { padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 18px; margin-top: 4px; }

.admin-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.admin-bar .ghost, .admin-bar .btn { border-radius: 14px; }

.shimmer {
  background: linear-gradient(90deg, #16131a 0%, #221d28 50%, #16131a 100%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s ease; }

@media (max-width: 719px) {
  .row-card { grid-template-columns: 56px 1fr; }
  .row-card .qty { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (min-width: 1080px) {
  .app.is-app-desktop { grid-template-columns: 92px 1fr; padding-bottom: 0; }
  .app.is-app-desktop .rail { display: flex; width: 92px; padding: 18px 10px; }
  .app.is-app-desktop .rail-nav { display: none; }
  .app.is-app-desktop .dock {
    display: flex; flex-direction: column; position: static; height: auto;
    border: 0; background: transparent; padding: 0; gap: 10px;
  }
}
