:root {
  color-scheme: light dark;
  --shop-bg: #fbf5e6;
  --shop-bg-soft: #f3ead6;
  --shop-panel: #fffdf7;
  --shop-panel-strong: #ffffff;
  --shop-ink: #13251e;
  --shop-muted: #5d7267;
  --shop-forest: #0c3b2e;
  --shop-forest-soft: #155743;
  --shop-emerald: #347957;
  --shop-emerald-soft: #e6efe7;
  --shop-gold: #bd8a2f;
  --shop-gold-soft: #f7e8c4;
  --shop-line: rgba(12, 59, 46, 0.14);
  --shop-line-strong: rgba(12, 59, 46, 0.28);
  --shop-danger: #ad2f2f;
  --shop-danger-soft: #f8dddd;
  --shop-radius: 20px;
  --shop-shadow: 0 22px 55px -30px rgba(12, 42, 32, 0.55);
  --shop-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --shop-bg: #111411;
    --shop-bg-soft: #191d18;
    --shop-panel: #191d19;
    --shop-panel-strong: #222620;
    --shop-ink: #f2efe5;
    --shop-muted: #aaa99f;
    --shop-forest: #151a16;
    --shop-forest-soft: #242a23;
    --shop-emerald: #d7b461;
    --shop-emerald-soft: #2b271c;
    --shop-gold: #e2c47c;
    --shop-gold-soft: #30291b;
    --shop-line: rgba(232, 226, 207, 0.11);
    --shop-line-strong: rgba(232, 226, 207, 0.23);
    --shop-danger: #ff9b93;
    --shop-danger-soft: #3a1614;
    --shop-shadow: 0 26px 65px -34px rgba(0, 0, 0, 0.9);
  }
}

:root[data-theme="dark"] {
  --shop-bg: #111411;
  --shop-bg-soft: #191d18;
  --shop-panel: #191d19;
  --shop-panel-strong: #222620;
  --shop-ink: #f2efe5;
  --shop-muted: #aaa99f;
  --shop-forest: #151a16;
  --shop-forest-soft: #242a23;
  --shop-emerald: #d7b461;
  --shop-emerald-soft: #2b271c;
  --shop-gold: #e2c47c;
  --shop-gold-soft: #30291b;
  --shop-line: rgba(232, 226, 207, 0.11);
  --shop-line-strong: rgba(232, 226, 207, 0.23);
  --shop-danger: #ff9b93;
  --shop-danger-soft: #3a1614;
  --shop-shadow: 0 26px 65px -34px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.shop-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 12% -12%, var(--shop-gold-soft), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, var(--shop-emerald-soft), transparent 55%),
    var(--shop-bg);
  color: var(--shop-ink);
  font-family: var(--shop-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.shop-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(var(--shop-line) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: -1;
}
.shop-skip { position: absolute; left: -999px; top: 8px; background: var(--shop-forest); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 20; }
.shop-skip:focus { left: 12px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--shop-gold); outline-offset: 2px; border-radius: 8px; }

.store-shell { width: min(1160px, 100% - 32px); margin: 0 auto; padding: 18px 0 56px; }
.store-header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius);
  background: color-mix(in srgb, var(--shop-panel) 92%, transparent);
  backdrop-filter: blur(12px); box-shadow: var(--shop-shadow); position: sticky; top: 10px; z-index: 10;
}
.store-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.store-mark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--shop-emerald), var(--shop-forest)); color: #f7ffe9;
  font-weight: 800; letter-spacing: -1px; font-size: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.store-brand strong { display: block; font-size: 16px; letter-spacing: -0.2px; }
.store-brand small { display: block; color: var(--shop-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; }
.store-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.store-nav a, .theme-toggle {
  text-decoration: none; border: 1px solid transparent; background: transparent; color: var(--shop-forest);
  font: inherit; font-weight: 650; font-size: 14px; padding: 9px 12px; border-radius: 11px; cursor: pointer;
}
:root[data-theme="dark"] .store-nav a, :root[data-theme="dark"] .theme-toggle { color: var(--shop-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store-nav a, :root:not([data-theme="light"]) .theme-toggle { color: var(--shop-ink); } }
.store-nav a:hover, .theme-toggle:hover { background: var(--shop-bg-soft); border-color: var(--shop-line); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 22px; padding: 44px 4px 30px; align-items: center; }
.hero-copy .eyebrow, .section-kicker { color: var(--shop-emerald); font-size: 12px; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -2px; margin: 12px 0 14px; }
.hero h1 span { color: var(--shop-emerald); }
.hero p { color: var(--shop-muted); font-size: 17px; max-width: 58ch; margin: 0 0 22px; }
.hero-trust { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--shop-line); background: var(--shop-panel); padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--shop-muted); }
.trust-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shop-emerald); }

.coin-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 26px;
  background: linear-gradient(155deg, var(--shop-forest), #071b14 78%); color: #f8f5e7;
  box-shadow: var(--shop-shadow); border: 1px solid rgba(255,255,255,.12);
}
.coin-card::after {
  content: ""; position: absolute; width: 190px; height: 190px; right: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f8df9b, var(--shop-gold) 55%, #6e4b12 100%);
  opacity: .9; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
}
.coin-card::before {
  content: "₦"; position: absolute; right: 10px; top: 26px; font-size: 56px; font-weight: 800; color: #08241a; z-index: 1;
}
.coin-card .coin-label { color: #b9e9d2; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; }
.coin-card strong { display: block; font-size: 30px; letter-spacing: -1px; margin: 10px 0 4px; position: relative; z-index: 1; }
.coin-card p { color: #c3d9cd; margin: 0; position: relative; z-index: 1; }
.coin-card .coin-rate { margin-top: 22px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; font-size: 13px; color: #d5e8de; position: relative; z-index: 1; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 26px 4px 14px; flex-wrap: wrap; }
.section-head h2 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -1px; }
.section-head p { margin: 0; color: var(--shop-muted); max-width: 60ch; }

.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.bundle-card {
  text-align: left; cursor: pointer; border: 1px solid var(--shop-line); border-radius: 18px; padding: 16px;
  background: var(--shop-panel); color: inherit; box-shadow: 0 10px 24px -20px rgba(12,42,32,.6);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.bundle-card:hover { transform: translateY(-2px); border-color: var(--shop-line-strong); }
.bundle-card[aria-pressed="true"] { border-color: var(--shop-emerald); background: color-mix(in srgb, var(--shop-emerald-soft) 60%, var(--shop-panel)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-emerald) 22%, transparent); }
.bundle-card .coins { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.8px; }
.bundle-card .price { display: block; color: var(--shop-emerald); font-weight: 750; margin-top: 4px; }
.bundle-card .hint { display: block; color: var(--shop-muted); font-size: 12px; margin-top: 8px; }

.buy-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 16px; margin-top: 22px; }
.panel-card { border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-panel); box-shadow: var(--shop-shadow); padding: 20px; }
.panel-card h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.5px; }
.panel-card .fine { color: var(--shop-muted); font-size: 13px; margin: 0 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 13px; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--shop-line-strong); border-radius: 12px; padding: 12px 13px;
  background: var(--shop-panel-strong); color: var(--shop-ink); font: inherit; min-height: 46px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--shop-emerald); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-emerald) 20%, transparent); outline: none; }
.field .help { color: var(--shop-muted); font-size: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none;
  background: var(--shop-forest); color: #f7fff6; min-height: 46px;
}
.btn:hover:not(:disabled) { background: var(--shop-forest-soft); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(145deg, var(--shop-emerald), #087a55); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--shop-line-strong); color: var(--shop-forest); }
:root[data-theme="dark"] .btn-ghost { color: var(--shop-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost { color: var(--shop-ink); } }
.btn-ghost:hover:not(:disabled) { background: var(--shop-bg-soft); }
.btn.wide { width: 100%; }
.btn.small { min-height: 36px; padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.form-error { color: var(--shop-danger); background: var(--shop-danger-soft); border: 1px solid color-mix(in srgb, var(--shop-danger) 30%, transparent); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.form-note { color: var(--shop-muted); font-size: 13px; }
.selected-summary { border: 1px dashed var(--shop-line-strong); border-radius: 14px; padding: 14px; margin-bottom: 16px; background: var(--shop-bg-soft); }
.selected-summary strong { font-size: 22px; letter-spacing: -0.6px; }
.selected-summary span { display: block; color: var(--shop-muted); font-size: 13px; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--shop-line); background: var(--shop-bg-soft); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--shop-muted); flex: none; }
.status-dot.is-active { background: var(--shop-gold); box-shadow: 0 0 0 0 color-mix(in srgb, var(--shop-gold) 55%, transparent); animation: shop-pulse 1.6s infinite; }
.status-dot.is-ok { background: var(--shop-emerald); }
.status-dot.is-bad { background: var(--shop-danger); }
@keyframes shop-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--shop-gold) 50%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .status-dot.is-active { animation: none; } .bundle-card { transition: none; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--shop-emerald); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--shop-line-strong); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; font-size: 14px; }
.timeline span { color: var(--shop-muted); font-size: 12px; }

.receipt-box { border: 1px solid var(--shop-line-strong); background: var(--shop-panel-strong); border-radius: 16px; padding: 16px; }
.receipt-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.receipt-box dt { color: var(--shop-muted); }
.receipt-box dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }
.account-box { border-left: 4px solid var(--shop-gold); background: var(--shop-gold-soft); color: var(--shop-ink); border-radius: 12px; padding: 13px 15px; }
.account-box strong { display: block; font-size: 18px; letter-spacing: .3px; }
.account-box span { font-size: 13px; color: var(--shop-muted); }

.support-note { border: 1px solid var(--shop-line); border-radius: 14px; padding: 14px 16px; background: var(--shop-panel); color: var(--shop-muted); font-size: 13px; }
.footer { margin-top: 34px; padding: 18px 4px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; color: var(--shop-muted); font-size: 13px; border-top: 1px solid var(--shop-line); }
.footer a { color: var(--shop-emerald); font-weight: 650; }

.vendor-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--shop-line-strong); border-radius: 12px; background: var(--shop-bg-soft); gap: 4px; }
.vendor-toggle button { border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--shop-muted); cursor: pointer; }
.vendor-toggle button[aria-pressed="true"] { background: var(--shop-forest); color: #f7fff6; }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.quick-amounts button { border: 1px solid var(--shop-line-strong); background: var(--shop-panel); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.quick-amounts button:hover { border-color: var(--shop-emerald); }

@media (max-width: 760px) {
  .store-shell { width: min(100% - 22px, 1160px); padding-top: 10px; }
  .store-header { position: static; }
  .hero { grid-template-columns: 1fr; padding: 28px 2px 18px; }
  .buy-panel { grid-template-columns: 1fr; }
  .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundle-card .coins { font-size: 21px; }
  .store-nav { width: 100%; justify-content: space-between; }
  .store-nav a, .theme-toggle { padding: 8px 9px; }
  .receipt-box dl { grid-template-columns: 1fr; gap: 4px; }
  .receipt-box dd { text-align: left; }
}

/* Admin shop section */
.shop-admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.shop-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.shop-admin-grid .panel { margin: 0; }
.shop-price-row { display: grid; grid-template-columns: 90px 1fr 130px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.shop-price-row:last-child { border-bottom: 0; }
.shop-price-row input { width: 100%; }
.shop-order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.shop-order-detail { margin-top: 14px; }
.shop-order-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: 13px; }
.shop-order-detail dt { color: var(--muted); }
.shop-order-detail dd { margin: 0; text-align: right; word-break: break-word; }
.shop-timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.shop-timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.shop-timeline li:last-child { border-bottom: 0; }
.shop-inline-form { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.shop-inline-form textarea, .shop-inline-form input, .shop-inline-form select { width: 100%; }
.shop-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--line-strong); }
.shop-badge.ok { background: rgba(84, 242, 165, .12); color: var(--green); }
.shop-badge.warn { background: rgba(255, 200, 87, .12); color: var(--amber); }
.shop-badge.bad { background: rgba(242, 109, 109, .12); color: var(--red); }
.shop-badge.idle { color: var(--muted); }
@media (max-width: 760px) {
  .shop-price-row { grid-template-columns: 70px 1fr 100px; }
  .shop-order-detail dd { text-align: left; }
}

/* Compact buyer flow: keep bundle selection and delivery details together. */
.store-shell { padding: 12px 0 28px; }
.store-header { flex-wrap: nowrap; top: 6px; padding: 10px 14px; }
.store-brand { min-width: 0; }
.store-brand .store-mark { width: 42px; height: 42px; flex: none; }
.store-nav { flex-wrap: nowrap; gap: 8px; }
.portal-menu { position: relative; }
.portal-menu > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 12px; border: 1px solid var(--shop-line-strong);
  border-radius: 11px; color: var(--shop-forest); font-size: 14px; font-weight: 700;
  cursor: pointer; list-style: none;
}
:root[data-theme="dark"] .portal-menu > summary { color: var(--shop-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .portal-menu > summary { color: var(--shop-ink); } }
.portal-menu > summary::-webkit-details-marker { display: none; }
.menu-glyph { display: grid; width: 18px; gap: 4px; }
.menu-glyph span { height: 2px; width: 18px; border-radius: 2px; background: currentColor; transition: transform .16s ease, opacity .16s ease; }
.portal-menu[open] .menu-glyph span:first-child { transform: translateY(6px) rotate(45deg); }
.portal-menu[open] .menu-glyph span:nth-child(2) { opacity: 0; }
.portal-menu[open] .menu-glyph span:last-child { transform: translateY(-6px) rotate(-45deg); }
.portal-menu[open] > summary { background: var(--shop-bg-soft); border-color: var(--shop-line-strong); }
.portal-menu-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  display: grid; width: min(340px, calc(100vw - 32px)); padding: 7px;
  border: 1px solid var(--shop-line-strong); border-radius: 15px;
  background: var(--shop-panel); box-shadow: var(--shop-shadow);
}
.portal-menu:not([open]) > .portal-menu-panel { display: none; }
.portal-menu-panel a { display: grid; gap: 2px; padding: 10px 11px; border-radius: 10px; text-decoration: none; }
.portal-menu-panel a:hover, .portal-menu-panel a:focus-visible { background: var(--shop-bg-soft); }
.portal-menu-panel strong { font-size: 14px; }
.portal-menu-panel small { color: var(--shop-muted); font-size: 12px; line-height: 1.4; }
.hero.hero-compact { display: block; padding: 24px 4px 12px; }
.hero-compact .hero-copy { max-width: 720px; }
.hero-compact h1 { margin: 7px 0 8px; font-size: clamp(32px, 4.8vw, 48px); }
.hero-compact p { max-width: 58ch; margin: 0; font-size: 15px; }
.purchase-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: 12px; align-items: start; }
.bundle-panel, .purchase-card .panel-card { min-width: 0; padding: 16px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-panel); box-shadow: var(--shop-shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-heading h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.2; letter-spacing: -.5px; }
.panel-heading .section-kicker { font-size: 10px; letter-spacing: 1.2px; }
.panel-hint { color: var(--shop-muted); font-size: 12px; }
.bundle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bundle-card { min-width: 0; min-height: 76px; padding: 10px; border-radius: 13px; }
.bundle-card .coins { font-size: 18px; letter-spacing: -.4px; }
.bundle-card .price { margin-top: 2px; font-size: 13px; }
.bundle-card .hint { margin-top: 2px; font-size: 10px; }
.delivery-panel h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.2; }
.delivery-panel .fine { margin: 0 0 10px; font-size: 13px; }
.delivery-panel .field { gap: 4px; margin-bottom: 9px; }
.delivery-panel .field input { min-height: 43px; padding: 9px 11px; }
.delivery-panel .field .help { font-size: 11px; }
.selected-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 10px; padding: 8px 11px; border-radius: 11px; }
.selected-summary span:first-child { width: 100%; font-size: 11px; }
.selected-summary strong { font-size: 18px; }
.selected-summary span:last-child { font-size: 12px; }
.payment-note { margin: 7px 0 0; text-align: center; font-size: 11px; }
.after-payment { margin-top: 12px; border: 1px solid var(--shop-line); border-radius: 13px; background: var(--shop-panel); }
.after-payment summary { min-height: 44px; padding: 11px 13px; color: var(--shop-forest); font-size: 14px; font-weight: 700; cursor: pointer; }
:root[data-theme="dark"] .after-payment summary { color: var(--shop-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .after-payment summary { color: var(--shop-ink); } }
.after-payment p { margin: 0; padding: 0 13px 8px; color: var(--shop-muted); font-size: 13px; }
.after-payment a { display: inline-block; margin: 0 13px 12px; color: var(--shop-emerald); font-weight: 700; }
.footer { margin-top: 18px; padding: 12px 4px; font-size: 12px; }

:root[data-theme="dark"] .store-mark { background: linear-gradient(145deg, #4f8768, #28523d); }
:root[data-theme="dark"] .btn-primary { background: linear-gradient(145deg, #e1c16f, #c99e4c); color: #211f18; }
:root[data-theme="dark"] .btn-ghost { color: var(--shop-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .store-mark { background: linear-gradient(145deg, #4f8768, #28523d); }
  :root:not([data-theme="light"]) .btn-primary { background: linear-gradient(145deg, #e1c16f, #c99e4c); color: #211f18; }
  :root:not([data-theme="light"]) .btn-ghost { color: var(--shop-ink); }
}

@media (max-width: 760px) {
  .store-shell { width: min(100% - 20px, 1160px); padding-top: 7px; }
  .store-header { position: sticky; top: 0; gap: 8px; padding: 8px 10px; border-radius: 15px; }
  .store-brand { gap: 8px; flex: 1; min-width: 0; }
  .store-brand .store-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; }
  .store-brand > span:last-child { min-width: 0; }
  .store-brand strong { font-size: 14px; white-space: nowrap; }
  .store-brand small { display: none; }
  .store-nav { width: auto; flex: 0 0 auto; justify-content: flex-end; gap: 6px; }
  .portal-menu > summary { min-height: 40px; padding: 7px 9px; font-size: 13px; }
  .portal-menu-panel { position: fixed; top: 72px; left: 50%; right: auto; transform: translateX(-50%); width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 88px); overflow: auto; }
  .portal-menu-panel a { padding: 12px; }
  .theme-toggle { width: 40px; min-width: 40px; min-height: 40px; padding: 6px; overflow: hidden; font-size: 0; }
  .theme-toggle::before { content: "◐"; font-size: 18px; }
  .hero.hero-compact { padding: 17px 3px 11px; }
  .hero-compact h1 { font-size: clamp(30px, 8vw, 38px); letter-spacing: -1.2px; }
  .hero-compact p { font-size: 14px; line-height: 1.45; }
  .purchase-card { grid-template-columns: 1fr; gap: 9px; }
  .bundle-panel, .purchase-card .panel-card { padding: 13px; border-radius: 16px; }
  .panel-heading { margin-bottom: 9px; }
  .panel-heading h2, .delivery-panel h2 { font-size: 19px; }
  .bundle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .bundle-card { min-height: 62px; padding: 7px 6px; }
  .bundle-card .coins { font-size: 16px; }
  .bundle-card .price { font-size: 12px; }
  .bundle-card .hint { font-size: 9px; }
  .delivery-panel .field input { min-height: 42px; }
  .footer { gap: 5px; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-glyph span { transition: none; }
}

@media (max-width: 360px) {
  .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundle-card { padding-inline: 10px; }
  .bundle-card .coins { font-size: 17px; }
  .bundle-card .price { font-size: 13px; }
  .bundle-card .hint { font-size: 10px; }
}
