/* ==========================================================================
   Blink Store — interface styles
   Presentation layer only. Every class name used by the PHP templates is
   preserved; new components are additive.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* brand */
  --navy: #07145c;
  --navy-deep: #040c3c;
  --navy-mid: #122a8f;
  --yellow: #ffd800;
  --yellow-deep: #e8c400;
  --yellow-wash: #fff8d6;
  --lime: #7cff00;
  --lime-deep: #5ec900;

  /* ink + surfaces */
  --ink: #0c1740;
  --ink-soft: #56618a;
  --ink-faint: #8a93b2;
  --paper: #ffffff;
  --wash: #f4f6fb;
  --wash-deep: #eaeef8;
  --line: #e3e8f2;
  --line-soft: #eef1f8;

  /* states */
  --green: #0f7a4d;
  --green-wash: #e7f6ee;
  --amber: #8a5a00;
  --amber-wash: #fff4de;
  --red: #c0271d;
  --red-wash: #fdeeec;

  /* type */
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: var(--sans);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* shape */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --radius: 14px;              /* legacy alias */

  /* elevation — navy tinted, kept soft */
  --sh-1: 0 1px 2px rgba(7, 20, 92, .06);
  --sh-2: 0 4px 16px rgba(7, 20, 92, .07);
  --sh-3: 0 14px 40px rgba(7, 20, 92, .12);
  --sh-yellow: 0 6px 18px rgba(255, 216, 0, .35);

  /* rhythm */
  --bleed: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.admin { background: var(--wash); }

a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: .88em; }
.wrapcode { font-family: var(--mono); font-size: .78rem; word-break: break-all; color: var(--ink-soft); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  letter-spacing: -0.022em;
  margin: 0 0 .5rem;
  line-height: 1.18;
  color: var(--ink);
}
h1 { font-size: clamp(1.85rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.06rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 1rem; }

/* ------------------------------------------------------------- utilities */

.wrap { max-width: 78rem; margin: 0 auto; padding: 0 var(--bleed); }
.wrap.narrow { max-width: 28rem; }
.wrap.narrow-ish { max-width: 50rem; }
.pad { padding-top: clamp(1.75rem, 4vw, 3.25rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.lede { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 1.5rem; max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.opt { font-weight: 500; color: var(--ink-faint); font-size: .8em; }
.empty { color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.crumb { font-size: .875rem; color: var(--ink-soft); margin: 0 0 1.5rem; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--navy); text-decoration: underline; }
.crumb i { font-style: normal; color: var(--ink-faint); margin: 0 .35rem; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.35rem;
}
.section-head h1, .section-head h2 { margin: 0; }
.section-head .sub { color: var(--ink-soft); font-size: .95rem; margin: .25rem 0 0; }
.section-link { font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--navy-mid); }
.section-link:hover { text-decoration: underline; }

/* ============================================================= store bar */

.store-bar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  max-width: 78rem; margin: 0 auto;
  padding: .7rem var(--bleed);
  display: flex; align-items: center; gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-badge { width: 40px; height: 40px; border-radius: 50%; flex: none; display: block; }
.brand-name {
  font-weight: 800; font-size: 1.08rem; letter-spacing: -0.03em; color: var(--navy);
  line-height: 1.12; max-width: 12ch;
}
.brand-name.on-dark { color: #fff; }
.brand .tag {
  font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  color: var(--navy); background: var(--yellow); border-radius: 999px;
  padding: .14rem .45rem; align-self: center;
}

.store-nav { display: flex; align-items: center; gap: .15rem; margin-left: .5rem; }
.store-nav a {
  color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 600;
  padding: .45rem .7rem; border-radius: var(--r-sm); transition: background .15s, color .15s;
}
.store-nav a:hover { background: var(--wash); color: var(--navy); }
.store-nav a.on { color: var(--navy); background: var(--wash-deep); }

.bar-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); cursor: pointer; text-decoration: none; padding: 0;
}
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn svg { width: 19px; height: 19px; }

.bar-wa {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  color: var(--ink); border: 1px solid var(--line); background: var(--paper);
  padding: .55rem .9rem; border-radius: var(--r-sm);
}
.bar-wa svg { width: 17px; height: 17px; color: #25d366; }
.bar-wa:hover { border-color: #25d366; color: var(--ink); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }
.mobile-menu { display: none; }

/* header search drawer */
.bar-search { border-top: 1px solid var(--line); background: var(--paper); display: none; }
.bar-search.open { display: block; }
.bar-search form { max-width: 78rem; margin: 0 auto; padding: .85rem var(--bleed); }

/* ================================================================ search */

.searchbox { position: relative; display: flex; align-items: center; width: 100%; }
.searchbox svg.ic {
  position: absolute; left: 1rem; width: 20px; height: 20px; color: var(--ink-faint); pointer-events: none;
}
.searchbox input[type=search] {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 500;
  padding: .95rem 7.5rem .95rem 3rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  box-shadow: var(--sh-1); color: var(--ink);
}
.searchbox input[type=search]::placeholder { color: var(--ink-faint); font-weight: 400; }
.searchbox input[type=search]:focus {
  border-color: var(--navy); outline: none; box-shadow: 0 0 0 4px rgba(7, 20, 92, .1);
}
.searchbox input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbox button.go {
  position: absolute; right: .35rem; font: inherit; font-size: .92rem; font-weight: 700;
  padding: .62rem 1.25rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--navy);
}
.searchbox button.go:hover { background: var(--yellow-deep); }
.searchbox .clear {
  position: absolute; right: 6.6rem; width: 26px; height: 26px; border-radius: 50%;
  display: none; place-items: center; border: 0; cursor: pointer;
  background: var(--wash-deep); color: var(--ink-soft); font-size: 15px; line-height: 1; padding: 0;
}
.searchbox.has-value .clear { display: grid; }
.searchbox.compact input[type=search] { padding: .7rem 3rem .7rem 2.6rem; font-size: .95rem; }
.searchbox.compact svg.ic { left: .8rem; width: 17px; height: 17px; }
.searchbox.compact button.go { padding: .48rem .95rem; font-size: .85rem; }
.searchbox.compact .clear { right: 5.4rem; }

.search-hints {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0;
  font-size: .85rem; color: rgba(255, 255, 255, .7);
  align-items: center;
}
.search-hints a {
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .22rem .75rem;
}
.search-hints a:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* =============================================================== notices */

.notice {
  padding: .9rem 1.1rem; margin: 1.25rem 0;
  background: var(--wash); border: 1px solid var(--line);
  border-left: 4px solid var(--navy); border-radius: var(--r-sm);
  font-size: .94rem; color: var(--ink);
}
.notice-ok { background: var(--green-wash); border-color: #cbe9d9; border-left-color: var(--green); }
.notice-bad { background: var(--red-wash); border-color: #f5d6d2; border-left-color: var(--red); }
.notice-warn { background: var(--amber-wash); border-color: #f4e3c2; border-left-color: #d08a00; }

/* ================================================================== hero */

.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  background-image:
    radial-gradient(60rem 30rem at 85% -10%, rgba(255, 216, 0, .16), transparent 60%),
    radial-gradient(40rem 26rem at 5% 110%, rgba(124, 255, 0, .12), transparent 60%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 85%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 85%);
}
.hero-inner {
  position: relative; max-width: 78rem; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--bleed) clamp(2.75rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 1rem; }
.hero-sub { color: rgba(255, 255, 255, .76); font-size: 1.08rem; max-width: 48ch; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.85rem; }
.hero-search { max-width: 34rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.75rem; margin: 1.85rem 0 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-meta b { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-meta span { font-size: .82rem; color: rgba(255, 255, 255, .6); }

/* hero screenshot composition */
.hero-art { position: relative; }
.shotstack { position: relative; min-height: 22rem; }
.shotstack figure {
  position: absolute; margin: 0; border-radius: var(--r);
  overflow: hidden; background: #0a1a5e;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 22px 50px rgba(2, 8, 40, .5);
}
.shotstack figure img { width: 100%; height: 100%; object-fit: cover; }
.shotstack .s1 { left: 0; top: 1.5rem; width: 66%; aspect-ratio: 16/10; z-index: 3; }
.shotstack .s2 { right: 0; top: 0; width: 46%; aspect-ratio: 16/11; z-index: 2; }
.shotstack .s3 { right: 4%; bottom: 0; width: 56%; aspect-ratio: 16/10; z-index: 4; }
.shotstack figcaption {
  position: absolute; inset: auto 0 0 0; padding: .6rem .75rem;
  background: linear-gradient(to top, rgba(4, 12, 60, .92), transparent);
  color: #fff; font-size: .78rem; font-weight: 600;
}
.shot-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, #0a1c6e, #07145c);
  color: rgba(255,255,255,.45); font-weight: 800; font-size: 1.5rem;
}
.demo-dot {
  position: absolute; left: .7rem; top: .7rem; z-index: 5;
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(4, 12, 60, .8); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .7rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px;
}
.demo-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* ================================================================= trust */

.trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-grid {
  max-width: 78rem; margin: 0 auto; padding: 1.15rem var(--bleed);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .9rem 1.75rem;
}
.trust-grid div { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.trust-grid svg { width: 20px; height: 20px; color: var(--navy); flex: none; }

/* ============================================================ categories */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .9rem; }
.cat-card {
  display: flex; align-items: center; gap: .85rem; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1rem; color: var(--ink); transition: border-color .16s, box-shadow .16s, transform .16s;
}
.cat-card:hover {
  border-color: var(--navy); box-shadow: var(--sh-2); transform: translateY(-2px); color: var(--ink);
}
.cat-ic {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 11px; background: var(--wash-deep); color: var(--navy);
  transition: background .16s;
}
.cat-card:hover .cat-ic { background: var(--yellow); }
.cat-ic svg { width: 21px; height: 21px; }
.cat-card b { display: block; font-size: .95rem; font-weight: 700; letter-spacing: -0.01em; }
.cat-card span { font-size: .8rem; color: var(--ink-soft); }

/* ================================================================= chips */

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.5rem; }
.chip {
  font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink);
  padding: .42rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); transition: border-color .15s, background .15s, color .15s;
}
.chip span { color: var(--ink-faint); font-weight: 500; font-size: .8rem; margin-left: .15rem; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on span { color: rgba(255, 255, 255, .6); }
.result-line { font-size: .9rem; color: var(--ink-soft); margin: -0.25rem 0 1.35rem; }

.toolbar {
  display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; margin-bottom: 1.35rem;
}
.toolbar .sortline { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-soft); }
.toolbar select { width: auto; font-size: .9rem; font-weight: 600; padding: .6rem 2.25rem .6rem .8rem; }

/* ============================================================ card  grid */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.35rem; }

.card {
  display: flex; flex-direction: column; position: relative;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }

.card-shot {
  position: relative; display: block; aspect-ratio: 16 / 10;
  background: var(--wash); overflow: hidden; text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.card-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card-shot-empty {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-weight: 800; font-size: 2rem; color: #b9c2dc; letter-spacing: -0.02em;
  background:
    radial-gradient(28rem 12rem at 50% 0%, #eef1f9, transparent),
    repeating-linear-gradient(45deg, #f1f4fb 0 12px, #f7f9fd 12px 24px);
}
.card-shot-empty.big { font-size: 3.5rem; aspect-ratio: 16/10; }
.card-shot-hint {
  position: absolute; left: .7rem; bottom: .7rem;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(7, 20, 92, .92); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .4rem .8rem; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
.card-shot-hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.card:hover .card-shot-hint, .card-shot:focus-visible .card-shot-hint { opacity: 1; transform: none; }
.card:hover .card-shot img { transform: scale(1.045); }

.ribbon {
  position: absolute; right: .75rem; top: .75rem; z-index: 4;
  background: var(--yellow); color: var(--navy);
  font-size: .72rem; font-weight: 800;
  padding: .3rem .7rem; border-radius: 999px; box-shadow: var(--sh-1);
}

.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-cat {
  display: inline-block; font-size: .74rem; font-weight: 700; color: var(--navy-mid);
  background: var(--wash-deep); padding: .18rem .6rem; border-radius: 999px; align-self: flex-start;
}
.card-body h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.02em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--navy-mid); }
.card-tag {
  margin: 0; font-size: .89rem; color: var(--ink-soft); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: auto; padding-top: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
}
.price { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.price.big { font-size: clamp(1.7rem, 4vw, 2.1rem); margin: .1rem 0 .3rem; display: block; }
.price-note { font-size: .84rem; color: var(--ink-soft); margin: 0 0 1.25rem; }
.card-links { display: flex; gap: .4rem; }
.mini {
  font-size: .84rem; font-weight: 700; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .44rem .8rem;
  background: var(--paper); transition: border-color .15s, background .15s;
}
.mini:hover { border-color: var(--navy); color: var(--navy); }
.mini.solid { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.mini.solid:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--navy); }

.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; justify-content: center; }
.pager a {
  text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .5rem .85rem; color: var(--ink); font-size: .9rem; font-weight: 600; background: var(--paper);
}
.pager a:hover { border-color: var(--navy); color: var(--navy); }
.pager a.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.empty-state {
  background: var(--wash); border: 1px dashed #c8d1e6; border-radius: var(--r-lg);
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; text-align: center;
}
.empty-state h2 { margin-bottom: .4rem; }
.empty-state p { color: var(--ink-soft); margin: .4rem auto 0; max-width: 46ch; }

/* ========================================================= how it works */

.how { margin-top: clamp(3rem, 7vw, 5rem); }
.steps {
  counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.steps li {
  counter-increment: s; position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.25rem 1.25rem; color: var(--ink-soft); font-size: .93rem;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 1.25rem; top: -0.95rem;
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  font-size: .85rem; font-weight: 800; color: var(--navy);
  background: var(--yellow); border-radius: 50%; box-shadow: var(--sh-1);
}
.steps strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: .3rem; }

/* CTA band */
.band {
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--navy);
  background-image: radial-gradient(40rem 20rem at 90% 0%, rgba(255,216,0,.16), transparent 60%);
  border-radius: var(--r-xl); color: #fff;
  padding: clamp(1.75rem, 5vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.band h2 { color: #fff; margin-bottom: .35rem; }
.band p { color: rgba(255,255,255,.72); margin: 0; max-width: 48ch; }

/* =============================================================== product */

.product { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.product-shot {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--wash); box-shadow: var(--sh-2); position: relative;
}
.shot-link { position: relative; display: block; }
.shot-link img { width: 100%; }
.shot-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--yellow); color: var(--navy); font-size: .9rem; font-weight: 700;
  padding: .6rem 1.1rem; border-radius: 999px; box-shadow: var(--sh-2);
}
.shot-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.shot-link:hover .shot-badge { background: #fff; }

.product-buy {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--sh-2); position: sticky; top: 5.5rem;
}
.product-buy h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .6rem 0 .45rem; }
.buy-actions { display: grid; gap: .6rem; }
.wa-inline { font-size: .9rem; margin: 1rem 0 0; text-align: center; }
.wa-inline a { font-weight: 600; text-decoration: none; }
.wa-inline a:hover { text-decoration: underline; }

.spec { margin: 1.5rem 0 0; }
.spec div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-top: 1px solid var(--line-soft); font-size: .88rem;
}
.spec dt { color: var(--ink-soft); }

.variant-options { display: grid; gap: .55rem; margin: 0 0 1rem; }
.variant-opt {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem .9rem;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.variant-opt:has(input:checked) { border-color: var(--navy-mid); background: var(--wash); }
.variant-opt input[type=radio] { margin: 0 .6rem 0 0; }
.variant-opt-name { flex: 1; font-weight: 600; font-size: .92rem; }
.variant-opt-price { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec dd { margin: 0; text-align: right; font-weight: 600; }

.product-cols {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2.5rem, 6vw, 4rem);
}
.product-cols h2 { margin-top: 0; }
.product-cols section + section { margin-top: 2.5rem; }
.product-cols aside section + section { margin-top: 1.25rem; }
.prose { color: var(--ink-soft); }
.prose p { margin: 0 0 1rem; max-width: 70ch; }

.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-size: .94rem; color: var(--ink); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .28rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7a4d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/.75rem no-repeat;
}
.ticks.two { grid-template-columns: 1fr 1fr; }

.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: .95rem 1.1rem; transition: border-color .15s;
}
.faq details[open] { border-color: var(--navy); }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: .96rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; font-weight: 500; color: var(--ink-faint); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; color: var(--navy); }
.faq details p { margin: .7rem 0 0; font-size: .93rem; color: var(--ink-soft); }

.help-card { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem; }
.help-card h3 { margin-bottom: .35rem; }
.help-card p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }

/* ================================================================== forms */

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.15rem, 3vw, 1.6rem); margin-bottom: 1.35rem; box-shadow: var(--sh-1);
}
.panel.soft { background: var(--wash); box-shadow: none; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.stack { display: grid; gap: 1.05rem; }
.stack.tight { gap: .75rem; margin-top: 1rem; }
.grid-2 { display: grid; gap: 1.05rem; grid-template-columns: 1fr 1fr; }

label { display: grid; gap: .35rem; font-size: .89rem; font-weight: 600; color: var(--ink); }
label small { font-weight: 400; color: var(--ink-soft); }
label.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number],
input[type=tel], input[type=datetime-local], input:not([type]), textarea, select {
  width: 100%; font: inherit; font-size: .96rem;
  padding: .7rem .85rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356618a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem;
  padding-right: 2.4rem;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus {
  border-color: var(--navy); outline: none; box-shadow: 0 0 0 4px rgba(7, 20, 92, .1);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2;
  padding: .82rem 1.5rem; border: 1px solid var(--yellow); border-radius: var(--r-sm);
  background: var(--yellow); color: var(--navy); cursor: pointer; text-decoration: none;
  justify-self: start; text-align: center;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.btn:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--navy); box-shadow: var(--sh-yellow); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.full { width: 100%; justify-self: stretch; }
.btn.lg { font-size: 1rem; padding: .95rem 1.8rem; }

.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; box-shadow: var(--sh-2); }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--wash); color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; box-shadow: none; }
.btn-off { background: var(--wash); color: var(--ink-faint); border-color: var(--line); cursor: not-allowed; }
.btn-off:hover { background: var(--wash); color: var(--ink-faint); border-color: var(--line); box-shadow: none; }
.btn-danger { background: var(--paper); color: var(--red); border-color: #f1cdc9; }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); box-shadow: none; }
.btn-wa { background: #25d366; border-color: #25d366; color: #05331a; }
.btn-wa:hover { background: #1db954; border-color: #1db954; color: #05331a; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

.linkbtn {
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
}
.linkbtn:hover { color: var(--navy); }
.linkbtn.danger { color: var(--red); }
.inline { display: inline; }
.inline-search { display: flex; gap: .4rem; }
.inline-search input { font-size: .9rem; padding: .55rem .75rem; }

.copy {
  font: inherit; font-size: .82rem; font-weight: 600; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .3rem .65rem; cursor: pointer;
}
.copy:hover { border-color: var(--navy); color: var(--navy); }

.drop {
  position: relative; display: block; text-align: center; padding: 2rem 1rem;
  border: 2px dashed #c2cbe0; border-radius: var(--r); background: var(--wash);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.drop.over, .drop:hover { border-color: var(--navy); background: var(--wash-deep); }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-main { display: block; font-weight: 600; font-size: .93rem; word-break: break-all; color: var(--ink); }
.drop-sub { display: block; margin-top: .35rem; font-size: .8rem; color: var(--ink-soft); }
.drop.small { padding: 1.25rem 1rem; }

.extras summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.extras[open] summary { margin-bottom: .75rem; }
details summary { cursor: pointer; }
.panel details { border-bottom: 1px solid var(--line-soft); padding: .7rem 0; }
.panel details:last-child { border-bottom: 0; }
.panel details summary { font-size: .94rem; font-weight: 600; }
.panel details p { font-size: .9rem; color: var(--ink-soft); margin: .55rem 0 .2rem; }

.form-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.form-main > .panel:last-child, .form-side > .panel:last-child { margin-bottom: 0; }
.filenote { font-size: .87rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.thumb-preview { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: .6rem; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }

/* --------------------------------------------------------- stepped form */

.stepper { display: flex; gap: .5rem; margin: 0 0 1.5rem; padding: 0; flex-wrap: wrap; }
.stepper li {
  display: flex; align-items: center; gap: .55rem; list-style: none;
  font-size: .87rem; font-weight: 700; color: var(--ink-faint);
  padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.stepper li i {
  display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--wash-deep); color: var(--ink-soft); font-style: normal; font-size: .75rem;
}
.stepper li.on { color: var(--navy); border-color: var(--navy); }
.stepper li.on i { background: var(--yellow); color: var(--navy); }

.formstep { border: 0; padding: 0; margin: 0 0 1.5rem; }
.formstep legend {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.05rem; color: var(--ink); padding: 0; margin-bottom: .95rem;
}
.formstep legend b {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .8rem; font-weight: 800; flex: none;
}
.pickedsoft {
  display: flex; gap: 1rem; align-items: center;
  background: var(--wash); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem;
}
.pickedsoft img { width: 7rem; border-radius: var(--r-sm); border: 1px solid var(--line); flex: none; }
.pickedsoft b { display: block; font-size: 1rem; }
.pickedsoft span { font-size: .87rem; color: var(--ink-soft); }

.summary-rows { margin: 0; }
.summary-rows div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem;
}
.summary-rows div:last-child { border-bottom: 0; }
.summary-rows dt { color: var(--ink-soft); }
.summary-rows dd { margin: 0; font-weight: 700; text-align: right; }

/* =============================================================== tracking */

.order-head {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start;
  background: var(--navy); color: #fff; border: 0; box-shadow: var(--sh-2);
  background-image: radial-gradient(30rem 16rem at 100% 0%, rgba(255,216,0,.14), transparent 60%);
}
.order-head h1 { color: #fff; margin: .45rem 0 .3rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.order-head .muted { color: rgba(255,255,255,.66); margin: 0; }
.order-head .price { color: #fff; }
.ref {
  font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--navy); background: var(--yellow); padding: .22rem .6rem; border-radius: 6px;
}
.order-head-right { text-align: right; }
.order-head-right .price { margin: .7rem 0 0; }
.panel.ready { border: 1px solid #bfe8d1; background: linear-gradient(180deg, var(--green-wash), var(--paper) 55%); }
.pay-box {
  background: var(--wash); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: var(--r-sm); padding: 1rem 1.15rem; font-size: .93rem; margin: .9rem 0 1.35rem;
  line-height: 1.7;
}
.paystrip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--yellow-wash); border: 1px solid #f2e3a2; border-radius: var(--r-sm);
  padding: .95rem 1.15rem; margin-bottom: 1rem;
}
.paystrip b { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.paystrip span { font-size: .86rem; color: var(--ink-soft); display: block; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 700;
  padding: .3rem .75rem; border-radius: 999px; background: var(--wash-deep); color: var(--ink-soft);
  border: 1px solid var(--line); vertical-align: middle;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill-pending { background: #fff; color: var(--ink-soft); }
.pill-awaiting_payment { background: var(--amber-wash); color: var(--amber); border-color: #f2ddb4; }
.pill-payment_review { background: #e9edff; color: var(--navy-mid); border-color: #cfd8ff; }
.pill-paid, .pill-delivered { background: var(--green-wash); color: var(--green); border-color: #c5e7d5; }
.pill-cancelled { background: var(--red-wash); color: var(--red); border-color: #f4d3cf; }

/* payment methods */

.paymethods { display: grid; gap: .75rem; margin: 1rem 0 1.5rem; }
.paymethod {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem;
  background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.paymethod:hover { border-color: var(--navy); box-shadow: var(--sh-2); }
.paymethod b { display: block; font-size: 1rem; font-weight: 700; }
.paymethod span { font-size: .85rem; color: var(--ink-soft); }
.paymethod .btn { justify-self: end; }
.bankrows { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .35rem 1rem; margin-bottom: 1.25rem; }
.bankrows dd { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* progress track */
.track-steps { list-style: none; margin: .5rem 0 0; padding: 0; }
.track-steps li { position: relative; padding: 0 0 1.8rem 2.6rem; }
.track-steps li::before {
  content: ""; position: absolute; left: .46rem; top: 1.6rem; bottom: -.2rem;
  width: 2px; background: var(--line);
}
.track-steps li:last-child { padding-bottom: 0; }
.track-steps li:last-child::before { display: none; }
.track-steps li::after {
  content: ""; position: absolute; left: 0; top: .32rem;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line); box-sizing: border-box;
}
.track-steps li.done::after {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/.62rem no-repeat;
  border-color: var(--green);
}
.track-steps li.done::before { background: #bfe3cf; }
.track-steps li.now::after {
  background: var(--yellow); border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 216, 0, .3);
}
.track-steps b { display: block; font-size: .97rem; font-weight: 700; }
.track-steps span { font-size: .88rem; color: var(--ink-soft); }
.track-steps li.todo b { color: var(--ink-faint); }

.timeline { list-style: none; margin: .5rem 0 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem;
}
.timeline li:last-child { border-bottom: 0; }
.tl-when { font-size: .8rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.tl-what strong { font-weight: 700; }

/* download success */
.ready-hero { text-align: center; padding: .5rem 0; }
.ready-hero .tickmark {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/1.7rem no-repeat;
}
.dl-facts { display: flex; flex-wrap: wrap; gap: 1.75rem; justify-content: center; margin: 1.35rem 0; }
.dl-facts div { text-align: center; }
.dl-facts b { display: block; font-size: 1.05rem; font-weight: 700; }
.dl-facts span { font-size: .8rem; color: var(--ink-soft); }

/* ================================================================== admin */

.admin-shell { display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-height: 100vh; }
.admin-scrim { position: fixed; inset: 0; z-index: 110; display: none; background: rgba(4, 12, 60, .5); }
.admin-side {
  background: var(--navy); color: #fff; padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 120;
}
.admin-side .brand { color: #fff; padding: .25rem .4rem; gap: .55rem; }
.admin-side .brand-name { color: #fff; font-size: 1rem; }
.admin-side .brand-badge, .admin-top .brand-badge { width: 36px; height: 36px; }
.admin-nav { display: flex; flex-direction: column; gap: .2rem; }
.admin-nav a {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(255, 255, 255, .78); text-decoration: none;
  font-size: .93rem; font-weight: 600; padding: .65rem .75rem; border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-nav a.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--yellow); }
.admin-nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.admin-foot {
  margin-top: auto; display: flex; flex-direction: column; gap: .2rem;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14);
}
.admin-foot a {
  color: rgba(255,255,255,.7); text-decoration: none; font-size: .88rem; font-weight: 600;
  padding: .55rem .75rem; border-radius: var(--r-sm);
}
.admin-foot a:hover { background: rgba(255,255,255,.1); color: #fff; }

.admin-main { min-width: 0; }
.admin-top {
  display: none; align-items: center; gap: .75rem;
  padding: .7rem var(--bleed); background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 100;
}
.admin-top .brand, .admin-top .brand-name { color: #fff; }
.drawer-btn {
  margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.25); background: transparent;
  color: #fff; cursor: pointer;
}
.drawer-btn svg { width: 20px; height: 20px; }
.badge {
  display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem;
  background: var(--yellow); color: var(--navy);
  font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 0 .35rem; margin-left: auto;
}
.quiet { color: var(--ink-soft) !important; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin: 0 0 2.25rem; }
.tiles div {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.1rem 1.2rem; box-shadow: var(--sh-1); position: relative; overflow: hidden;
}
.tiles div::after {
  content: ""; position: absolute; right: -1.6rem; top: -1.6rem; width: 4.2rem; height: 4.2rem;
  border-radius: 50%; background: var(--wash);
}
.tiles dt { font-size: .8rem; color: var(--ink-soft); font-weight: 600; position: relative; }
.tiles dd {
  margin: .3rem 0 0; font-size: 1.75rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--navy); position: relative; font-variant-numeric: tabular-nums;
}
.tiles dd.sub { font-size: .82rem; font-weight: 500; color: var(--ink-faint); margin-top: .15rem; }
.tiles div.hot { border-color: #f0dc8a; background: linear-gradient(180deg, var(--yellow-wash), var(--paper) 70%); }
.tiles div.hot::after { background: rgba(255,216,0,.25); }

.table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  font-size: .92rem; overflow: hidden;
}
.table th {
  text-align: left; font-weight: 700; font-size: .78rem; color: var(--ink-soft);
  padding: .75rem .95rem; border-bottom: 1px solid var(--line); background: var(--wash);
}
.table td { padding: .8rem .95rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--wash); }
.table a { font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; }

.adminlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.adminlist li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1.2rem; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.1rem; box-shadow: var(--sh-1);
}
.al-shot { display: block; aspect-ratio: 16/10; background: var(--wash); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-soft); }
.al-shot img { width: 100%; height: 100%; object-fit: cover; }
.al-noshot { display: grid; place-items: center; height: 100%; font-size: .74rem; color: var(--ink-faint); }
.al-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; display: block; letter-spacing: -0.02em; }
.al-title:hover { color: var(--navy-mid); }
.al-meta { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .2rem; }
.al-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .65rem; font-size: .85rem; align-items: center; font-weight: 600; }
.al-state { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; max-width: 13rem; }
.al-actions {
  grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: .9rem;
  padding-top: .6rem; margin-top: .35rem; border-top: 1px solid var(--line-soft);
}

.kv { margin: 0 0 1rem; }
.kv div {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .8rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem;
}
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; word-break: break-word; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .9rem; margin: 0; }
.stats div { padding: .45rem 0; border-bottom: 1px solid var(--line-soft); }
.stats dt { font-size: .76rem; color: var(--ink-soft); font-weight: 600; }
.stats dd { margin: 0; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.files { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .8rem; }
.files li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line-soft); word-break: break-all; }
.files em { font-family: var(--sans); font-style: normal; font-size: .74rem; font-weight: 700; color: var(--green); }
.files .sz { color: var(--ink-soft); flex: none; }

.quote {
  background: var(--wash); border-left: 4px solid var(--line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: .85rem 1rem; font-size: .92rem; margin: .6rem 0 1rem;
}
.replied { background: #eef1ff; border-radius: var(--r-sm); padding: .85rem 1rem; font-size: .9rem; }

.msglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.msglist li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; box-shadow: var(--sh-1); }
.msglist li.fresh { border-left: 4px solid var(--yellow); }
.msg-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.msg-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

.checklist { list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .92rem; }
.checklist li { padding: .4rem 0 .4rem 1.6rem; position: relative; border-bottom: 1px solid var(--line-soft); word-break: break-all; }
.checklist li::before { position: absolute; left: 0; font-weight: 800; }
.checklist .good::before { content: "\2713"; color: var(--green); }
.checklist .bad::before { content: "\2715"; color: var(--red); }
.checklist .warn::before { content: "!"; color: var(--amber); }
.checklist.small li { font-size: .86rem; }

.panel.danger { border-color: #f1cdc9; }

/* ================================================================= footer */

.store-foot {
  background: var(--navy); color: rgba(255, 255, 255, .72);
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem; font-size: .92rem;
}
.foot-grid h4 { color: rgba(255,255,255,.55); font-size: .78rem; letter-spacing: .08em; margin-bottom: .9rem; }
.foot-grid p { color: rgba(255, 255, 255, .66); margin: .8rem 0 0; max-width: 36ch; font-size: .92rem; }
.foot-grid .brand { margin-bottom: .2rem; }
.foot-grid .brand-badge { width: 44px; height: 44px; }
.foot-grid a { display: block; color: rgba(255, 255, 255, .78); text-decoration: none; margin-bottom: .55rem; }
.foot-grid a:hover { color: var(--yellow); }
.foot-bottom {
  max-width: 78rem; margin: 2.5rem auto 0; padding: 1.35rem var(--bleed) 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255, 255, 255, .55);
}
.foot-bottom b { color: rgba(255, 255, 255, .82); font-weight: 600; }
.copy-line { display: block; color: rgba(255, 255, 255, .5); font-size: .85rem; margin-top: .6rem; }

/* ============================================== whatsapp float + gates */

.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem;
  background: #25d366; color: #05331a; text-decoration: none;
  padding: .8rem 1.1rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(7, 20, 92, .25);
  font-weight: 700; font-size: .92rem;
}
.wa-float:hover { background: #1db954; color: #05331a; }
.wa-float span { display: inline; }

body.gate {
  display: grid; place-items: center; min-height: 100vh; padding: 1.5rem;
  background: var(--navy);
  background-image: radial-gradient(45rem 24rem at 50% 0%, rgba(255,216,0,.14), transparent 65%);
}
.gatebox {
  width: 100%; max-width: 27rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.75rem, 5vw, 2.5rem); box-shadow: var(--sh-3);
}
.gatebox .brand { margin-bottom: 1.5rem; }
.gatebox .brand-badge { width: 48px; height: 48px; }
.gatebox h1 { font-size: 1.5rem; }
.gatebox p { color: var(--ink-soft); }
.gatebox .btn { width: 100%; }

/* =============================================================== mobile */

@media (max-width: 1080px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-top { display: flex; }
  .admin-side {
    position: fixed; inset: 0 auto 0 0; width: min(17rem, 82vw); height: 100vh;
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--sh-3);
  }
  .admin-shell.open .admin-side { transform: none; }
  .admin-shell.open .admin-scrim { display: block; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero h1 { max-width: 18ch; }
  .product, .product-cols, .form-cols, .support-grid { grid-template-columns: 1fr; }
  .product-buy { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .adminlist li { grid-template-columns: 7rem minmax(0, 1fr); }
  .al-state { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .al-actions { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .store-nav, .bar-wa, .bar-right > .btn { display: none; }
  .nav-toggle-label {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper);
    color: var(--ink); cursor: pointer;
  }
  .nav-toggle-label svg { width: 20px; height: 20px; }
  .nav-toggle:checked ~ .bar-inner .nav-toggle-label { background: var(--navy); color: #fff; border-color: var(--navy); }
  .nav-toggle:checked ~ .mobile-menu { display: block; }
  .mobile-menu {
    display: none; border-top: 1px solid var(--line); background: var(--paper);
    padding: .5rem var(--bleed) 1.25rem; max-height: calc(100vh - 4.5rem); overflow-y: auto;
  }
  .mobile-menu a {
    display: block; padding: .85rem .25rem; font-size: 1rem; font-weight: 600;
    color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft);
  }
  .mobile-menu a.on { color: var(--navy-mid); }
  .mobile-menu .btn { margin-top: 1.1rem; width: 100%; }
  .toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .ticks.two { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { flex-direction: column; align-items: flex-start; gap: .55rem; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
  .kv div { grid-template-columns: 1fr; gap: .1rem; }
  .order-head-right { text-align: left; }
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; right: .85rem; bottom: .85rem; }
  .table { display: block; overflow-x: auto; }
  .table td, .table th { min-width: 7rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Written as one shared rule (rather than a plain + a duplicated
     .compact version) so the icon-only mobile button can't accidentally
     regress back to the full "Search" label — which used to overflow the
     pill on narrow screens — if only one of the two got edited later. */
  .searchbox input[type=search],
  .searchbox.compact input[type=search] { padding-right: 3.4rem; font-size: 16px; }
  .searchbox button.go,
  .searchbox.compact button.go {
    padding: 0; font-size: 0; width: 2.6rem; height: 2.6rem;
    max-width: 2.6rem; overflow: hidden; white-space: nowrap;
  }
  .searchbox button.go::after,
  .searchbox.compact button.go::after { content: "\2192"; font-size: 1.15rem; }
  .searchbox .clear,
  .searchbox.compact .clear { right: 3.4rem; }
  .stepper li { flex: 1 1 auto; justify-content: center; padding: .5rem .55rem; font-size: .8rem; }
  .btn { width: 100%; justify-self: stretch; }
  .btn-row .btn, .buy-actions .btn { width: 100%; }
  .adminlist li { grid-template-columns: 1fr; }
  .al-shot { max-width: 12rem; }
  .pickedsoft { flex-direction: column; align-items: flex-start; }
  .pickedsoft img { width: 100%; }
  .band { text-align: left; }
}

@media (max-width: 380px) {
  .cat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
  .card-shot-hint { opacity: 1; transform: none; }
}

@media print {
  .store-bar, .store-foot, .wa-float, .admin-side, .admin-top { display: none !important; }
}
