/* VAULT HAVEN design system v2: premium dark software marketplace.
   Type: Inter. Surfaces: near-black. Accent: one muted neon green. Radius 8. Hairline borders. No glow. */
:root {
  --bg: #090b0c; --bg-2: #0d1011; --surface: #121618; --surface-2: #171c1f; --surface-3: #1e2427;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --text: #f3f5f4; --text-2: #a9b2ae; --text-3: #7a847f;
  --accent: #3ddb90; --accent-2: #66e8ac; --accent-ink: #03160c; --accent-soft: rgba(61, 219, 144, .11); --accent-line: rgba(61, 219, 144, .32);
  --amber: #f2b441; --blue: #6aaeff; --red: #ff6b7d; --violet: #a58bff;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --r-sm: 6px; --r: 8px; --r-lg: 12px; --w: 1240px; --hdr: 64px;
  --shadow: 0 10px 36px rgba(0, 0, 0, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--font); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 650; line-height: 1.22; letter-spacing: -.015em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1rem; } h4 { font-size: .9rem; }
.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); } .small { font-size: .84rem; } .xs { font-size: .76rem; }
.green { color: var(--accent); } .amber { color: var(--amber); } .red { color: var(--red); }
.mono { font-family: var(--mono); font-size: .88em; } .num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 16px; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; } .hide { display: none !important; }
.i { width: 18px; height: 18px; flex: none; } .i-sm { width: 15px; height: 15px; } .i-lg { width: 22px; height: 22px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

/* ---------- Header ---------- */
.promo { background: var(--accent-soft); border-bottom: 1px solid var(--accent-line); color: var(--accent-2); text-align: center; font-size: .84rem; padding: 8px 16px; }
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(9, 11, 12, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .14em; font-size: .86rem; white-space: nowrap; }
.logo svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: .9rem; font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); } .nav a.on { color: var(--text); background: var(--surface-2); }
.hdr-search { margin-left: auto; position: relative; width: 280px; }
.hdr-search input { padding-left: 38px; height: 38px; background: var(--surface); border-color: var(--line); font-size: .88rem; }
.hdr-search .i { position: absolute; left: 12px; top: 10px; color: var(--text-3); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.btn.menu-btn, .btn.search-btn { display: none; }
.drawer { display: none; }
@media (max-width: 960px) {
  .hdr-in { gap: 12px; } .logo { margin-right: auto; } .nav, .hdr-search, .hdr-actions .btn-text { display: none; }
  .btn.menu-btn, .btn.search-btn { display: inline-flex; }
  .drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); }
  .drawer.open { display: block; }
  .drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 360px); background: var(--bg-2); border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; animation: slide .22s ease both; }
  .drawer-panel .nav-item { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 13px 10px; border-radius: var(--r); font-weight: 500; text-align: left; }
  .drawer-panel .nav-item:hover { background: var(--surface-2); }
  .drawer-panel .hdr-search { display: block; width: 100%; margin: 14px 0; }
}
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* ---------- Buttons / forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 .88rem var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, .24); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); } .btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-danger { color: var(--red); border-color: rgba(255, 107, 125, .35); background: transparent; } .btn-danger:hover { background: rgba(255, 107, 125, .1); border-color: var(--red); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: .8rem; } .btn-lg { min-height: 48px; font-size: .95rem; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-icon { width: 38px; padding: 0; }
label, .label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 500; color: var(--text-2); }
input, select, textarea { width: 100%; min-height: 40px; padding: 9px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 .92rem var(--font); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .24); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; } .mono-area { font-family: var(--mono); font-size: .84rem; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9b2ae' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--accent); flex: none; }
input[type=file] { padding: 7px; font-size: .85rem; }
.field { margin-bottom: 16px; } .hint { margin-top: 5px; font-size: .78rem; color: var(--text-3); }
.check { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text-2); margin: 0; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; } .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .form-grid, .form-grid.three { grid-template-columns: 1fr; } }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 5px; font-size: .7rem; font-weight: 600; letter-spacing: .02em; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.b-accent { background: var(--accent-soft); color: var(--accent); } .b-amber { background: rgba(242, 180, 65, .13); color: var(--amber); } .b-blue { background: rgba(106, 174, 255, .13); color: var(--blue); } .b-red { background: rgba(255, 107, 125, .13); color: var(--red); } .b-violet { background: rgba(165, 139, 255, .14); color: var(--violet); }
.flash { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 11px 14px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: .9rem; }
.flash.err { background: rgba(255, 107, 125, .09); border-color: rgba(255, 107, 125, .35); color: #ffc2ca; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 20px; } .card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.card-b { padding: 20px; }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--text-2); }
.empty .i { margin: 0 auto 12px; width: 30px; height: 30px; color: var(--text-3); } .empty h3 { color: var(--text); margin-bottom: 6px; }
.section { padding: 64px 0; } .section.tight { padding: 40px 0; } .section + .section { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; font-size: 1.4rem; } .sec-head p { margin: 4px 0 0; color: var(--text-2); font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .88rem; font-weight: 500; } .link-arrow:hover { color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.page { padding-top: 36px; padding-bottom: 72px; } .page-head { margin-bottom: 28px; } .page-head p { color: var(--text-2); margin: 4px 0 0; max-width: 62ch; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--text-3); margin-bottom: 14px; flex-wrap: wrap; } .crumbs a:hover { color: var(--text); } .crumbs .i { width: 12px; height: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(900px 420px at 80% -10%, rgba(61, 219, 144, .10), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 76px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin: 16px 0 18px; max-width: 15ch; }
.hero .lead { font-size: 1.05rem; color: var(--text-2); max-width: 46ch; margin-bottom: 28px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.trust div { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--text-2); } .trust .i { color: var(--accent); }
.spot { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--surface); transition: transform .3s ease, border-color .2s; }
.spot:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.spot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.spot-info { padding: 16px 20px; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spot-info b { display: block; font-size: 1.15rem; letter-spacing: -.01em; } .spot-info span { color: var(--text-2); font-size: .85rem; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 44px; padding-bottom: 48px; } .hero h1 { max-width: 20ch; } }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .22s ease, border-color .2s, box-shadow .22s; }
.pcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.pcard-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; } .pcard:hover .pcard-art img { transform: scale(1.04); }
.pcard-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard-badges .badge { background: rgba(9, 11, 12, .78); backdrop-filter: blur(6px); color: var(--text); } .pcard-badges .b-accent { background: var(--accent); color: var(--accent-ink); } .pcard-badges .b-amber { background: var(--amber); color: #201400; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.pcard-cat { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.pcard-name { font-weight: 650; font-size: 1rem; letter-spacing: -.01em; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-sub { color: var(--text-2); font-size: .85rem; line-height: 1.45; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.pcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; } .price s { color: var(--text-3); font-weight: 400; font-size: .85em; margin-right: 6px; } .price .now { color: var(--text); }
.pcard-go { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--text-3); transition: color .2s, gap .2s; } .pcard:hover .pcard-go { color: var(--accent); gap: 7px; }
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .cat-row::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: .86rem; font-weight: 500; white-space: nowrap; transition: all .15s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .28); } .chip.on { background: var(--text); color: #0a0c0d; border-color: var(--text); } .chip .count { opacity: .55; font-size: .78rem; }

/* ---------- Catalogue ---------- */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--hdr) + 20px); }
.fgroup { padding: 18px 0; border-bottom: 1px solid var(--line); } .fgroup:first-child { padding-top: 0; } .fgroup h4 { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; font-weight: 600; }
.fopt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; margin: 0 -10px; border-radius: var(--r-sm); color: var(--text-2); font-size: .9rem; } .fopt:hover { background: var(--surface-2); color: var(--text); } .fopt.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; } .fopt .count { color: var(--text-3); font-size: .78rem; font-weight: 400; }
.cat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; } .cat-top select { width: auto; min-width: 190px; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; } .active-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .8rem; color: var(--text-2); } .active-chips a:hover { color: var(--text); }
.filters-m { display: none; }
@media (max-width: 960px) { .catalog { grid-template-columns: minmax(0, 1fr); gap: 0; } .filters-d { display: none; } .filters-m { display: block; margin-bottom: 18px; } .filters-m summary { list-style: none; cursor: pointer; } .filters-m summary::-webkit-details-marker { display: none; } .filters-m .fm-body { margin-top: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); } }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.pdp-head { margin-bottom: 22px; } .pdp-head h1 { font-size: 2rem; letter-spacing: -.025em; margin-bottom: 6px; } .pdp-head .row { margin-top: 12px; }
.gallery .main { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 16 / 9; } .gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 10px; }
.gallery .thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: var(--bg-2); cursor: pointer; aspect-ratio: 16 / 9; opacity: .6; transition: opacity .15s, border-color .15s; } .gallery .thumbs button:hover { opacity: 1; } .gallery .thumbs button.on { opacity: 1; border-color: var(--accent); } .gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.art-note { margin-top: 10px; font-size: .76rem; color: var(--text-3); }
.subnav { position: sticky; top: var(--hdr); z-index: 20; display: flex; gap: 4px; padding: 10px 0; margin: 28px 0 8px; background: linear-gradient(var(--bg) 82%, transparent); overflow-x: auto; scrollbar-width: none; } .subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--text-2); white-space: nowrap; } .subnav a:hover { color: var(--text); background: var(--surface-2); } .subnav a.on { background: var(--surface-3); color: var(--text); }
.block { padding: 8px 0 32px; } .block > h2 { font-size: 1.15rem; margin-bottom: 14px; }
.prose { color: #cdd5d1; line-height: 1.75; max-width: 70ch; } .prose h3, .prose h4, .prose h5 { color: var(--text); margin: 1.6em 0 .5em; } .prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .35em; } .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; } .prose strong { color: var(--text); } .prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .feat { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: .92rem; } .feat .i { color: var(--accent); margin-top: 2px; }
.spec { display: grid; grid-template-columns: 180px 1fr; } .spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); } .spec dt { color: var(--text-3); font-size: .86rem; } .spec dd { font-size: .92rem; } .spec dt:last-of-type, .spec dd:last-of-type { border-bottom: 0; }
.buy { position: sticky; top: calc(var(--hdr) + 20px); }
.buy-card { padding: 22px; } .buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; } .buy-price .now { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .buy-price s { color: var(--text-3); font-size: 1.05rem; }
.editions { display: grid; gap: 8px; margin: 18px 0 14px; } .edition { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; } .edition:hover { border-color: rgba(255, 255, 255, .3); } .edition input { position: absolute; opacity: 0; } .edition:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); } .edition .e-name { font-weight: 600; font-size: .92rem; } .edition .e-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.edition .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; } .edition:has(input:checked) .dot { border-color: var(--accent); } .edition:has(input:checked) .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .qty select { width: 84px; }
.perks { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; } .perks li { display: flex; gap: 11px; align-items: center; font-size: .86rem; color: var(--text-2); } .perks .i { color: var(--accent); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; } .stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bundle-items { display: grid; gap: 10px; } .bi { display: flex; gap: 14px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; } .bi:hover { border-color: var(--line-2); } .bi img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; } .bi b { display: block; font-size: .95rem; }
.save { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: .9rem; margin-bottom: 14px; }
.timeline { position: relative; display: grid; gap: 0; } .tl { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 0 0 26px; } .tl:last-child { padding-bottom: 0; }
.tl-when { text-align: right; color: var(--text-3); font-size: .82rem; padding-top: 2px; } .tl-body { position: relative; padding-left: 26px; border-left: 1px solid var(--line-2); padding-bottom: 4px; } .tl-body::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); } .tl-body h3 { margin: 0 0 4px; font-size: 1rem; } .tl:last-child .tl-body { border-left-color: transparent; }
.buybar { display: none; }
@media (max-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 0; } .buy { position: static; margin-top: 24px; } .pdp-head h1 { font-size: 1.6rem; } .features-grid { grid-template-columns: 1fr; } .spec { grid-template-columns: 130px 1fr; }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(13, 16, 17, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); } .buybar .price { font-size: 1.2rem; }
  body.has-buybar { padding-bottom: 76px; } .tl { grid-template-columns: 1fr; gap: 4px; } .tl-when { text-align: left; order: 2; padding-left: 26px; } .tl-body { order: 1; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
.t th { text-align: left; padding: 11px 16px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-2); }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; } .t tr:last-child td { border-bottom: 0; } .t tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.t .num, .t td.r { text-align: right; } .t a:not(.btn):hover { color: var(--accent); }
.thumb-s { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); }

/* ---------- Portal (customer) ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 32px; align-items: start; }
.side { position: sticky; top: calc(var(--hdr) + 20px); }
.me { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; } .me b { display: block; font-size: .88rem; } .me span { display: block; font-size: .78rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.side-nav { display: grid; gap: 2px; } .side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); color: var(--text-2); font-size: .9rem; font-weight: 500; transition: all .15s; } .side-nav a:hover { background: var(--surface-2); color: var(--text); } .side-nav a.on { background: var(--surface-3); color: var(--text); } .side-nav a.on .i { color: var(--accent); }
.side-nav .grp { margin: 16px 12px 6px; font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); } .stat .l { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: .8rem; margin-bottom: 8px; } .stat .n { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; } .stat .s { margin-top: 6px; font-size: .78rem; color: var(--text-3); }
.mine { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mine-card { display: flex; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); } .mine-card img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; align-self: flex-start; } .mine-card b { display: block; margin-bottom: 8px; line-height: 1.3; }
.keyrow { display: flex; gap: 16px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); } .keyrow img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.keybox { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 8px 8px 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); font-family: var(--mono); font-size: .92rem; letter-spacing: .04em; word-break: break-all; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; } .step { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--text-3); } .step b { display: block; color: var(--text-2); margin-bottom: 2px; } .step.done { border-color: var(--accent-line); background: var(--accent-soft); } .step.done b { color: var(--accent); } .step.bad { border-color: rgba(255, 107, 125, .35); } .step.bad b { color: var(--red); }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; } .dl-head { display: flex; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); } .dl-head img { width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; } .dl-file { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .dl-file:last-child { border-bottom: 0; }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 18px; } .side { position: static; } .me { display: none; }
  .side-nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; } .side-nav::-webkit-scrollbar { display: none; } .side-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; } .side-nav .grp { display: none; }
  .keyrow { flex-wrap: wrap; } .steps { grid-template-columns: 1fr; }
}

/* ---------- FAQ / legal / support / auth ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; } @media (max-width: 960px) { .two { grid-template-columns: minmax(0, 1fr) !important; } }
details.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 10px; transition: border-color .15s; } details.faq[open] { border-color: var(--line-2); } details.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 550; list-style: none; } details.faq summary::-webkit-details-marker { display: none; } details.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--text-3); line-height: 1; transition: transform .2s; } details.faq[open] summary::after { transform: rotate(45deg); color: var(--accent); } details.faq .ans { padding: 0 18px 18px; color: var(--text-2); line-height: 1.7; }
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; } .toc { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 2px; } .toc a { padding: 7px 12px; border-left: 2px solid var(--line); color: var(--text-2); font-size: .86rem; } .toc a:hover { color: var(--text); border-left-color: var(--accent); }
.legal-body h2 { font-size: 1.15rem; margin-top: 2em; padding-top: .2em; } .legal-body h2:first-child { margin-top: 0; } .legal-body p { color: var(--text-2); line-height: 1.75; max-width: 70ch; }
@media (max-width: 960px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 20px; } .toc { position: static; display: flex; overflow-x: auto; gap: 6px; } .toc a { border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; } }
.auth-wrap { min-height: calc(100vh - var(--hdr) - 200px); display: grid; place-items: center; padding-top: 48px; padding-bottom: 48px; } .auth-card { width: 100%; max-width: 430px; padding: 30px; } .auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; } .auth-card .sub { color: var(--text-2); margin-bottom: 24px; font-size: .92rem; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .how > div { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); } .how .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; } .how h3 { margin-bottom: 6px; } .how p { color: var(--text-2); font-size: .9rem; margin: 0; } @media (max-width: 800px) { .how { grid-template-columns: 1fr; } }
.news { display: grid; gap: 12px; } .news-i { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; } .news-i:hover { border-color: var(--line-2); } .news-i time { color: var(--text-3); font-size: .8rem; white-space: nowrap; min-width: 84px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px 32px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(120deg, var(--surface) 30%, rgba(61, 219, 144, .08)); } .cta-band h2 { margin: 0 0 4px; }

/* ---------- Footer ---------- */
.ftr { margin-top: 24px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } .ftr h4 { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 600; } .ftr a { display: block; color: var(--text-2); font-size: .88rem; padding: 4px 0; } .ftr a:hover { color: var(--text); }
.ftr-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .8rem; }
@media (max-width: 800px) { .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .ftr-grid > :first-child { grid-column: 1 / -1; } .section { padding: 44px 0; } .container { padding: 0 16px; } .page { padding-top: 24px; } }

/* ---------- Admin ---------- */
.adm-top { position: sticky; top: 0; z-index: 50; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(9, 11, 12, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.adm-top .logo { font-size: .8rem; } .adm-tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 56px); } .adm-side { position: sticky; top: 56px; align-self: start; height: calc(100vh - 56px); overflow-y: auto; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg-2); }
.adm-main { padding: 28px 32px 80px; min-width: 0; max-width: 1240px; width: 100%; }
.a-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; } .a-head h1 { font-size: 1.5rem; margin-bottom: 2px; } .a-head p { margin: 0; color: var(--text-2); font-size: .9rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; } .toolbar input, .toolbar select { width: auto; min-width: 180px; flex: 1; max-width: 320px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; } .chart .bar { flex: 1; min-width: 3px; background: var(--accent); opacity: .85; border-radius: 3px 3px 0 0; min-height: 2px; transition: opacity .15s; } .chart .bar:hover { opacity: 1; } .chart .bar.zero { background: var(--surface-3); opacity: 1; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid rgba(242, 180, 65, .35); background: rgba(242, 180, 65, .07); font-size: .88rem; } .alert .i { color: var(--amber); margin-top: 2px; } .alert.red { border-color: rgba(255, 107, 125, .35); background: rgba(255, 107, 125, .07); } .alert.red .i { color: var(--red); }
.ed-nav { position: sticky; top: 56px; z-index: 30; display: flex; gap: 4px; padding: 10px 0; margin: -10px 0 18px; background: linear-gradient(var(--bg) 85%, transparent); overflow-x: auto; } .ed-nav a { padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--text-2); white-space: nowrap; } .ed-nav a:hover { color: var(--text); background: var(--surface-2); }
.save-bar { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; padding: 12px 16px; background: rgba(18, 22, 24, .96); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; } .media-i { padding: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); } .media-i img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; margin-bottom: 8px; }
.sec { scroll-margin-top: 130px; margin-bottom: 20px; }
.adm-mnav { display: none; }
@media (max-width: 960px) { .adm { grid-template-columns: minmax(0, 1fr); } .adm-side { display: none; } .adm-main { padding: 20px 16px 80px; } .adm-mnav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); scrollbar-width: none; } .adm-mnav a { white-space: nowrap; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; color: var(--text-2); } .adm-mnav a.on { background: var(--text); color: #0a0c0d; border-color: var(--text); } .adm-top .btn-text { display: none; } }

.reveal { animation: rise .45s ease both; } @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

html, body { overflow-x: clip; }
@media (max-width: 600px) { .stats, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 14px; } .stat .n { font-size: 1.4rem; } .mine { grid-template-columns: minmax(0, 1fr); } .mine-card img { width: 96px; } }
.cat-search { position: relative; flex: 1 1 200px; min-width: 0; max-width: 380px; } .cat-search-i { position: absolute; left: 12px; top: 11px; color: var(--text-3); pointer-events: none; }
.cat-top > .grow { flex: 1 1 300px; min-width: 0; }
@media (max-width: 600px) { .cat-top { gap: 10px; } .cat-top > div { width: 100%; } .cat-top .row:last-child { justify-content: space-between; flex-wrap: nowrap; } .cat-top select { width: auto; min-width: 0; flex: 1; } }

/* ---- mobile polish (admin tables, editor, keys, categories) ---- */
.thumb-s { flex: none; }
.subnav, .ed-nav, .side-nav, .adm-mnav { scrollbar-width: none; } .subnav::-webkit-scrollbar, .ed-nav::-webkit-scrollbar { display: none; }
.card-h { flex-wrap: wrap; }
.keybox { flex-wrap: wrap; } .keybox > span:first-child { min-width: 0; flex: 1 1 150px; }
.cat-card { flex-wrap: nowrap; }
.ai-pop { position: relative; } .ai-pop > summary { list-style: none; cursor: pointer; } .ai-pop > summary::-webkit-details-marker { display: none; }
.ai-pop-body { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(360px, 86vw); padding: 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid; gap: 10px; }
@media (max-width: 720px) {
  .t.cards thead { display: none; }
  .t.cards tbody tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); } .t.cards tbody tr:last-child { border-bottom: 0; }
  .t.cards td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 5px 0; border: 0; text-align: right; white-space: normal; }
  .t.cards td::before { content: attr(data-label); flex: none; color: var(--text-3); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
  .t.cards td[data-label=""]::before { display: none; } .t.cards td[data-label=""] { justify-content: flex-end; }
  .t.cards td:first-child { display: block; text-align: left; padding-bottom: 8px; } .t.cards td:first-child::before { display: none; }
  .t.cards tbody tr:hover td { background: none; }
  .t.cards .mono { white-space: nowrap; }
  .keyrow { align-items: flex-start; } .keyrow img { width: 84px; }
  .cat-card { flex-wrap: wrap; } .cat-card > div:first-child { width: 140px !important; } .cat-card > div:first-child .thumb-s { width: 140px !important; } .cat-card .grow { flex-basis: 100%; } .cat-card input, .card-pad.row > input { width: 100% !important; flex: 1 1 100% !important; }
  .save-bar { gap: 8px; } .ai-pop-body { right: auto; left: 0; }
}
