/* ================================================================
   FlashLoad — Merged CSS
   Lovable visual design · Current functional components
   ================================================================ */

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Lovable brand palette */
  --brand-1: #0a84ff;
  --brand-2: #00c2a8;
  --brand-3: #6c5cff;
  --grad-hero: linear-gradient(135deg, var(--brand-1), var(--brand-3) 55%, var(--brand-2));
  --grad-card: linear-gradient(160deg, rgba(10,132,255,.18), rgba(108,92,255,.05) 60%, rgba(0,194,168,.12));

  /* Surfaces */
  --bg-0: #07090f;
  --bg-1: #0b1020;
  --bg-2: #11172b;
  --bg-3: #161d36;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  /* Current app surface tokens (functional components) */
  --bg:          #060c1a;
  --bg-mid:      #0a1224;
  --surface:     rgba(11,20,42,0.82);
  --surface-hi:  rgba(16,27,56,0.9);
  --border:      rgba(255,255,255,0.07);
  --border-hi:   rgba(255,255,255,0.13);

  /* Accent */
  --accent:       #1a80ff;
  --accent-light: #5aa8ff;
  --accent-glow:  rgba(26,128,255,0.22);
  --accent-soft:  rgba(26,128,255,0.12);

  /* Text */
  --fg:       #e8ecf5;
  --fg-soft:  #aab2c8;
  --fg-muted: #7c869f;
  --text:         #eef3ff;
  --text-soft:    #c0ccdf;
  --muted:        #8899b8;
  --muted-dim:    #5a6a84;

  /* Status */
  --ok:          #2ecc71;
  --warn:        #ffb020;
  --err:         #ff5c6c;
  --info:        #43b0ff;
  --success:     #0ec08a;
  --success-soft: rgba(14,192,138,0.12);
  --warn-soft:   rgba(245,158,11,0.12);
  --danger:      #f43f5e;
  --danger-soft: rgba(244,63,94,0.12);

  /* Shadows */
  --shadow-1:  0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.35);
  --shadow-2:  0 1px 0 rgba(255,255,255,.06) inset, 0 24px 60px rgba(0,0,0,.55);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.28), 0 0 0 1px var(--border);
  --shadow-md: 0 8px 28px rgba(0,0,0,.36), 0 0 0 1px var(--border);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.44), 0 0 0 1px var(--border);
  --shadow-btn:    0 6px 24px rgba(26,128,255,.30);
  --shadow-btn-hi: 0 10px 32px rgba(26,128,255,.42);
  --ring: 0 0 0 3px rgba(10,132,255,.35);

  /* Radii */
  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Layout */
  --container: 1180px;
  --max-w:     1180px;

  /* Motion */
  --ease-out: cubic-bezier(0.22,0.68,0,1.2);
  --ease-std: cubic-bezier(0.4,0,0.2,1);
  --dur-fast: 140ms;
  --dur-std:  220ms;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(108,92,255,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(10,132,255,.18), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(0,194,168,.12), transparent 60%),
    var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }

/* ── Background decorative ───────────────────────────────────── */
.bg-orb, .bg-grid {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.bg-orb::before, .bg-orb::after {
  content: ""; position: absolute;
  border-radius: 50%; filter: blur(90px);
  animation: drift 18s ease-in-out infinite;
}
.orb-a::before {
  width: 520px; height: 520px; top: -8%; right: -6%;
  background: radial-gradient(circle, rgba(26,128,255,.14) 0%, transparent 70%);
}
.orb-a::after {
  width: 320px; height: 320px; top: 60%; left: -4%;
  background: radial-gradient(circle, rgba(14,192,138,.08) 0%, transparent 70%);
  animation-delay: -7s;
}
.orb-b::before {
  width: 380px; height: 380px; bottom: 5%; right: 12%;
  background: radial-gradient(circle, rgba(26,128,255,.10) 0%, transparent 70%);
  animation-delay: -3s;
}
.orb-b::after {
  width: 200px; height: 200px; top: 28%; left: 8%;
  background: radial-gradient(circle, rgba(90,168,255,.06) 0%, transparent 70%);
  animation-delay: -12s;
}

/* Floating decorative chips */
.bg-chips {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-chips .chip {
  position: absolute;
  font-weight: 700; font-size: 13px; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(232,236,245,.55);
  opacity: .14; white-space: nowrap; will-change: transform;
}
.bg-chips .chip--gcash   { color: #6cb6ff; border-color: rgba(108,182,255,.25); }
.bg-chips .chip--qrph    { color: #b6f0d8; border-color: rgba(182,240,216,.25); }
.bg-chips .chip--paid    { color: #ffd58a; border-color: rgba(255,213,138,.25); }
.bg-chips .chip--tracked { color: #c8b6ff; border-color: rgba(200,182,255,.25); }

.bg-chips .chip:nth-child(1) { top: 12%;  left: 6%;  animation: drift1 26s ease-in-out infinite; }
.bg-chips .chip:nth-child(2) { top: 22%;  left: 78%; animation: drift2 30s ease-in-out infinite; }
.bg-chips .chip:nth-child(3) { top: 56%;  left: 12%; animation: drift3 24s ease-in-out infinite; }
.bg-chips .chip:nth-child(4) { top: 68%;  left: 70%; animation: drift4 28s ease-in-out infinite; }
.bg-chips .chip:nth-child(5) { top: 84%;  left: 30%; animation: drift1 22s ease-in-out infinite reverse; }
.bg-chips .chip:nth-child(6) { top: 8%;   left: 44%; animation: drift2 27s ease-in-out infinite reverse; }
.bg-chips .chip:nth-child(7) { top: 40%;  left: 50%; animation: drift3 25s ease-in-out infinite; }
.bg-chips .chip:nth-child(8) { top: 76%;  left: 88%; animation: drift4 29s ease-in-out infinite reverse; }

/* Bring page content above decorative layer */
main, .site-header, .site-footer, .modal { position: relative; z-index: 1; }

/* ── Site header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 24px;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7,9,15,.75), rgba(7,9,15,.45));
  border-bottom: 1px solid var(--line);
}

/* ── Brand ───────────────────────────────────────────────────── */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .2px;
}
.brand__mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--grad-hero);
  color: white; font-weight: 800;
  box-shadow: var(--shadow-1);
}
.brand__name { font-size: 17px; color: var(--text); }

/* ── Navigation ──────────────────────────────────────────────── */
.site-nav {
  display: flex; gap: 22px; justify-self: center;
  color: var(--fg-soft); font-size: 14px;
}
.site-nav a:hover { color: var(--fg); }

/* ── Buttons: .btn system (static HTML) ──────────────────────── */
.btn {
  --pad-y: 12px; --pad-x: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease,
              color .2s ease, border-color .2s ease;
  user-select: none; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: not-allowed; }
.btn--sm { --pad-y: 8px; --pad-x: 14px; font-size: 13px; }
.btn--lg { --pad-y: 14px; --pad-x: 22px; font-size: 15px; }

.btn--primary {
  color: #07101f;
  background: linear-gradient(180deg, #ffffff, #d8e4ff);
  box-shadow: 0 6px 20px rgba(10,132,255,.35), 0 0 0 1px rgba(255,255,255,.4) inset;
}
.btn--primary:hover { background: linear-gradient(180deg, #ffffff, #c7d6ff); }

.btn--ghost {
  color: var(--fg);
  background: rgba(255,255,255,.04);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ── Buttons: .button system (app.js-generated / modal) ─────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-std),
    background var(--dur-fast) var(--ease-std),
    opacity var(--dur-fast) var(--ease-std);
  will-change: transform; position: relative;
  white-space: nowrap;
}
.button:hover:not(:disabled), .button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
}
.button-primary {
  background: linear-gradient(160deg, #2e96ff 0%, var(--accent) 100%);
  color: #fff; box-shadow: var(--shadow-btn);
}
.button-primary:hover:not(:disabled), .button-primary:focus-visible:not(:disabled) {
  box-shadow: var(--shadow-btn-hi), 0 0 20px rgba(26,128,255,.25);
  background: linear-gradient(160deg, #4aa8ff 0%, #1a80ff 100%);
}
.button-primary:active:not(:disabled), .button-ghost:active:not(:disabled) {
  transform: translateY(0);
}
.button-ghost {
  background: rgba(255,255,255,.05);
  color: var(--text-soft);
  border: 1px solid var(--border-hi);
}
.button-ghost:hover:not(:disabled), .button-ghost:focus-visible:not(:disabled) {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
  color: var(--text);
}
.button-sm { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }
.button-full { width: 100%; }
.button:disabled {
  opacity: 0.45; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}

/* Spinner in btn */
.btn .spinner, .button .spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px; align-items: center;
}
.hero__inner { display: flex; flex-direction: column; gap: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(67,176,255,.1);
  border: 1px solid rgba(67,176,255,.25);
  color: #cfe6ff; font-size: 12px; font-weight: 600;
  width: fit-content;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--info);
  box-shadow: 0 0 0 4px rgba(67,176,255,.18);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.hero__title {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 800;
}
.grad {
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub {
  color: var(--fg-soft); max-width: 560px; font-size: 16px;
}
.hero__sub em { font-style: italic; color: var(--fg); }
.hero__cta { display: flex; gap: 12px; margin: 22px 0 26px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 28px; padding: 0; margin: 0; list-style: none;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.hero__meta li { display: grid; }
.hero__meta strong { font-size: 18px; }
.hero__meta span { color: var(--fg-muted); font-size: 12px; }

/* Hero voucher card */
.hero__card { display: grid; place-items: center; }
.vcard {
  position: relative; width: 100%; max-width: 380px;
  padding: 22px; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(10,132,255,.35), transparent 60%),
    radial-gradient(100% 80% at 100% 100%, rgba(0,194,168,.30), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2); overflow: hidden;
  transform: rotate(-1.2deg);
}
.vcard::after {
  content: ""; position: absolute; inset: -2px;
  background: conic-gradient(from 200deg, transparent 0%, rgba(255,255,255,.18) 12%, transparent 25%);
  filter: blur(18px); opacity: .6; pointer-events: none;
}
.vcard__top { display: flex; justify-content: space-between; align-items: center; }
.vcard__brand { font-weight: 700; letter-spacing: .2px; }
.vcard__chip {
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid var(--line-strong);
}
.vcard__amount { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 16px; }
.vcard__currency { font-size: 22px; color: var(--fg-soft); }
.vcard__value { font-size: 56px; font-weight: 800; letter-spacing: -.02em; }
.vcard__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--fg-soft);
}
.vcard__bars { display: flex; gap: 6px; margin-top: 14px; }
.vcard__bars span {
  flex: 1; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
}

/* Pills */
.pill {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.pill--ok  { background: rgba(46,204,113,.12); color: #b4f0c9; border-color: rgba(46,204,113,.4); }
.pill--warn{ background: rgba(255,176,32,.12);  color: #ffd58a; border-color: rgba(255,176,32,.4); }
.pill--err { background: rgba(255,92,108,.12);  color: #ffb6bd; border-color: rgba(255,92,108,.4); }
.pill--info{ background: rgba(67,176,255,.12);  color: #cfe6ff; border-color: rgba(67,176,255,.4); }

/* ── Section shared ──────────────────────────────────────────── */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
}
.section--shop { overflow: visible; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section__head > div { flex: 1; min-width: 0; }
.section__head h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800; letter-spacing: -0.03em;
}
.section-kicker {
  margin-bottom: 6px;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem; font-weight: 800;
}
.section-note {
  color: var(--muted); font-size: 0.85rem;
  text-align: right; max-width: 40ch; line-height: 1.5;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(26,128,255,.28);
  background: rgba(26,128,255,.12);
  color: var(--text); font-size: 0.92rem; font-weight: 800;
  letter-spacing: -0.01em; box-shadow: var(--shadow-sm);
}

/* ── Product grid ────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.product-grid-loading { margin-bottom: 0; }

/* Product card (class names generated by app.js) */
.product-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(12,22,48,.88);
  overflow: hidden;
  transition:
    transform var(--dur-std) var(--ease-out),
    border-color var(--dur-std) var(--ease-std),
    box-shadow var(--dur-std) var(--ease-std);
  position: relative;
}
.product-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(26,128,255,.3), transparent);
  opacity: 0;
  transition: opacity var(--dur-std) var(--ease-std);
  pointer-events: none;
}
.product-card:hover, .product-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(26,128,255,.38);
  box-shadow: 0 24px 56px rgba(0,0,0,.45), 0 0 0 1px rgba(26,128,255,.2), 0 0 32px rgba(26,128,255,.08);
}
.product-card:hover::before, .product-card:focus-within::before { opacity: 1; }

.product-inner {
  display: flex; flex-direction: column; flex: 1; padding: 18px; gap: 12px;
}
.product-top {
  display: flex; flex-direction: column; gap: 0.85rem;
}
.product-art {
  width: 100%; max-width: 220px; aspect-ratio: 16 / 9;
  margin: 0 auto; padding: 0.45rem; border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(120,170,255,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
  pointer-events: none;
}
.product-art-img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  border-radius: 12px; background: #f5f7fb; pointer-events: none;
}
.product-art-placeholder {
  width: 100%; height: 100%; border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,128,255,.08), rgba(90,168,255,.04));
  border: 1px dashed rgba(90,168,255,.2);
}
.wallet-chip {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(26,128,255,.18) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(26,128,255,.18);
  color: var(--accent-light); flex-shrink: 0;
}
.card-badge {
  display: inline-flex; align-items: center;
  min-height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(26,128,255,.16); color: var(--accent-light);
  border: 1px solid rgba(26,128,255,.24);
}
.card-badge-hot  { background: rgba(251,113,133,.16); color: #ffa0b5; border-color: rgba(251,113,133,.24); }
.card-badge-best { background: rgba(14,192,138,.16); color: #6effd9; border-color: rgba(14,192,138,.24); }
.card-badge-spacer { visibility: hidden; }

.product-body { flex: 1; }
.product-name  { font-size: .98rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.product-value { font-family: "DM Mono", ui-monospace, monospace; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.product-price { font-family: "DM Mono", ui-monospace, monospace; font-size: 1.18rem; font-weight: 500; color: var(--text); }

.product-foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.product-card .button { width: 100%; min-height: 42px; position: relative; z-index: 3; pointer-events: auto; }

.availability-chip {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: .73rem; font-weight: 700; width: fit-content;
  background: var(--success-soft); color: #7fffce;
  border: 1px solid rgba(14,192,138,.2);
}
.availability-chip::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
}
.availability-chip.is-empty, .availability-chip.is-disabled {
  background: var(--warn-soft); color: #ffd17a; border-color: rgba(245,158,11,.2);
}
.availability-chip.is-empty::before, .availability-chip.is-disabled::before { background: var(--warn); }
.availability-chip.is-unavailable { background: var(--danger-soft); color: #ffa0b5; border-color: rgba(244,63,94,.2); }
.availability-chip.is-unavailable::before { background: var(--danger); }

/* Loading skeletons */
.product-skeleton {
  border-radius: var(--radius-md); border: 1px solid var(--border);
  min-height: 200px; background: rgba(12,22,48,.5);
  overflow: hidden; position: relative;
}
.product-skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.8s ease-in-out infinite;
}

/* ── Steps (How it works) ────────────────────────────────────── */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.steps__item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.steps__num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad-hero); color: #07101f;
  font-weight: 800; margin-bottom: 8px;
}
.steps__item h3 { margin: 6px 0 6px; font-size: 16px; }
.steps__item p { margin: 0; color: var(--fg-soft); font-size: 14px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 800px; margin: 0 auto; }
.faq details {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0; overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-std);
}
.faq details[open] { border-color: rgba(26,128,255,.2); background: rgba(26,128,255,.04); }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; font-size: .93rem;
  user-select: none; -webkit-user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--fg-soft); font-size: 18px;
  transition: transform .2s ease; flex-shrink: 0; margin-left: 12px;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0 18px 16px; color: var(--fg-soft); font-size: 14px; line-height: 1.7;
}

/* ── My Order tracker ────────────────────────────────────────── */
.tracker-card {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(1.05);
  transition: border-color var(--dur-std) var(--ease-std);
}
.tracker-card:focus-within { border-color: rgba(26,128,255,.22); }

.tracker-note {
  margin-bottom: 22px; color: var(--muted);
  font-size: .9rem; line-height: 1.6;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.tracker-form { display: flex; flex-direction: column; gap: 14px; }
.tracker-result {
  margin-top: 16px; min-height: 20px;
  color: var(--text-soft); font-size: .9rem;
}

/* ── Forms (shared: tracker + checkout) ─────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field > label, .field > span {
  font-size: .84rem; font-weight: 700; color: var(--text-soft);
}
.field input,
.tracker-form input,
.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form input[type="password"] {
  width: 100%; min-height: 48px; padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hi);
  background: rgba(0,0,0,.22); color: var(--text);
  outline: none; font: inherit;
  transition:
    border-color var(--dur-fast) var(--ease-std),
    box-shadow var(--dur-fast) var(--ease-std),
    background var(--dur-fast) var(--ease-std);
}
.field input::placeholder { color: var(--muted-dim); }
.field input:focus,
.tracker-form input:focus,
.checkout-form input:focus {
  border-color: rgba(26,128,255,.55);
  box-shadow: 0 0 0 3px rgba(26,128,255,.14);
  background: rgba(0,0,0,.28);
}
.field input[aria-invalid="true"] {
  border-color: rgba(244,63,94,.55);
  box-shadow: 0 0 0 3px rgba(244,63,94,.1);
}
.field-error {
  min-height: 17px; font-size: .78rem; font-weight: 600;
  color: #ff8fa3; line-height: 1.4;
}
.check-row { display: flex; flex-direction: column; gap: 6px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-field input[type="checkbox"] {
  width: 17px; height: 17px; min-height: 17px; padding: 0;
  border-radius: 5px; accent-color: var(--accent);
  cursor: pointer; flex-shrink: 0; margin-top: 2px; font: inherit;
}
.check-label { font-size: .88rem; color: var(--text-soft); line-height: 1.5; }
.hp-field {
  position: absolute; left: -9999px; opacity: 0;
  pointer-events: none; width: 1px; height: 1px;
}
.grid-2 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.tracker-actions, .checkout-actions, .payment-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.payment-actions { margin-top: 0; background: transparent; border-top: 0; }

/* ── Site footer ─────────────────────────────────────────────── */
.site-footer {
  max-width: var(--container); margin: 32px auto 0; padding: 24px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--fg-soft); font-size: 13px;
  position: relative; z-index: 1;
}
.site-footer__brand {
  display: inline-flex; gap: 10px; align-items: center;
  color: var(--fg); font-weight: 700;
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer nav a:hover { color: var(--fg); }
.site-footer p { margin: 0; text-align: center; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 12px; overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(3,6,15,.72);
  backdrop-filter: blur(12px) saturate(.65);
  cursor: pointer;
  animation: fadeIn .2s ease;
}
.modal-card {
  position: relative; width: min(100%, 920px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(26,128,255,.15);
  background: rgba(10,18,38,.97);
  backdrop-filter: blur(32px) saturate(1.1);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(26,128,255,.10) inset, 0 0 60px rgba(26,128,255,.06);
  padding: 26px; z-index: 1;
  animation: modalIn var(--dur-std) var(--ease-out) forwards;
}

.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 4px;
}
.modal-header-copy .section-kicker { margin-bottom: 4px; }
.modal-header h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -.03em;
}
.icon-button {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: rgba(255,255,255,.04); color: var(--muted); flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std);
}
.icon-button:hover, .icon-button:focus-visible {
  background: rgba(255,255,255,.09); color: var(--text);
}
.modal-description {
  font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 4px;
}
.checkout-summary {
  margin: 14px 0; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(26,128,255,.07); border: 1px solid rgba(26,128,255,.18);
}
.checkout-summary strong {
  display: block; font-size: .92rem; font-weight: 700; margin-bottom: 4px; color: var(--text);
}
.checkout-summary p { font-size: .84rem; color: var(--text-soft); }
.status-banner {
  min-height: 20px; margin-bottom: 6px;
  font-size: .88rem; color: var(--accent-light); font-weight: 600;
}
.checkout-form {
  display: flex; flex-direction: column; gap: 14px; position: relative;
}

/* ── Payment panel ───────────────────────────────────────────── */
.payment-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.payment-shell {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1fr);
  gap: 20px; align-items: start;
}
.qr-column { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-frame {
  width: 100%; display: grid; place-items: center;
  padding: 14px; border-radius: var(--radius-md);
  background: rgba(0,0,0,.2); border: 1px solid var(--border);
}
.qr-frame img {
  width: min(100%, 300px); border-radius: var(--radius-sm);
  background: white; padding: 10px; display: block;
}
.skeleton-qr {
  width: min(100%, 300px); aspect-ratio: 1;
  border-radius: var(--radius-sm); background: rgba(255,255,255,.05);
  overflow: hidden; position: relative;
}
.skeleton-qr::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transform: translateX(-100%); animation: shimmer 1.8s ease-in-out infinite;
}
.payment-countdown {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .85rem; color: var(--muted); text-align: center; min-height: 20px;
}
.payment-meta { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.payment-state { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.4; }

/* Progress stepper */
.payment-progress {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(255,255,255,.02); overflow: hidden;
}
.payment-progress-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-size: .82rem; font-weight: 600; color: var(--muted-dim);
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast) var(--ease-std), background var(--dur-fast) var(--ease-std);
}
.payment-progress-step:last-child { border-bottom: none; }
.payment-progress-icon {
  position: relative; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  display: grid; place-items: center;
  transition: border-color var(--dur-fast) var(--ease-std),
              background var(--dur-fast) var(--ease-std),
              box-shadow var(--dur-fast) var(--ease-std);
}
.payment-progress-check { display: none; color: var(--success); }
.payment-progress-spinner {
  display: none; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.payment-progress-step.is-pending { color: var(--muted-dim); }
.payment-progress-step.is-complete { color: var(--text-soft); }
.payment-progress-step.is-complete .payment-progress-icon {
  background: rgba(14,192,138,.15); border-color: rgba(14,192,138,.4);
  box-shadow: 0 0 8px rgba(14,192,138,.25);
}
.payment-progress-step.is-complete .payment-progress-check { display: block; }
.payment-progress-step.is-complete .payment-progress-spinner { display: none; }
.payment-progress-step.is-current { color: var(--accent-light); background: rgba(26,128,255,.05); }
.payment-progress-step.is-current .payment-progress-icon {
  background: rgba(26,128,255,.15); border-color: rgba(26,128,255,.4);
  box-shadow: 0 0 8px rgba(26,128,255,.3);
}
.payment-progress-step.is-current .payment-progress-check { display: none; }
.payment-progress-step.is-current .payment-progress-spinner { display: block; }
.payment-progress-step.is-error { color: #ff8fa3; }
.payment-progress-step.is-error .payment-progress-icon {
  background: rgba(244,63,94,.15); border-color: rgba(244,63,94,.4);
  box-shadow: 0 0 8px rgba(244,63,94,.25);
}

/* Payment details */
.payment-details {
  display: flex; flex-direction: column;
  margin: 0; border-radius: var(--radius-sm);
  border: 1px solid var(--border); overflow: hidden;
}
.pd-row { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.pd-row:last-child { border-bottom: none; }
.payment-details dt {
  font-size: .74rem; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.payment-details dd { margin: 0; font-size: .9rem; color: var(--text); word-break: break-all; }
.pd-hint { font-size: .7rem; font-weight: 400; color: var(--muted-dim); text-transform: none; letter-spacing: 0; }
.mono-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mono-value, .mono { font-family: "DM Mono", ui-monospace, monospace; font-size: .82rem; }
.text-button {
  border: none; background: none;
  color: var(--accent-light); font-size: .78rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; cursor: pointer; flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std);
}
.text-button:hover, .text-button:focus-visible { background: var(--accent-soft); color: var(--text); }

/* Payment success card */
.payment-success-card {
  width: 100%; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px; padding: 28px 20px;
  border-radius: var(--radius-md);
  background: rgba(14,192,138,.06); border: 1px solid rgba(14,192,138,.18);
  box-shadow: 0 0 32px rgba(14,192,138,.05);
  animation: fadeInUp .4s var(--ease-out) forwards;
}
.psc-icon { display: grid; place-items: center; width: 64px; height: 64px; }
.psc-headline { font-size: 1.05rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.psc-subtext { font-size: .84rem; color: var(--muted); line-height: 1.6; max-width: 28ch; }

/* ── Toasts ──────────────────────────────────────────────────── */
.toasts {
  position: fixed; right: 16px; bottom: 16px; z-index: 200;
  display: grid; gap: 8px; max-width: calc(100vw - 32px);
}
.toast {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-strong);
  color: var(--fg); padding: 12px 14px; border-radius: 12px;
  box-shadow: var(--shadow-2); font-size: 13px;
  min-width: 220px; max-width: 360px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .25s ease;
}
.toast::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--info); flex: none;
}
.toast.is-success::before { background: var(--ok); }
.toast.is-error::before   { background: var(--err); }
.toast.is-warn::before    { background: var(--warn); }

/* ── Utilities ───────────────────────────────────────────────── */
.sr-live {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.hidden  { display: none !important; }

:focus-visible {
  outline: 2px solid rgba(90,168,255,.9);
  outline-offset: 3px; border-radius: 3px;
}
button:focus-visible, .icon-button:focus-visible { outline-offset: 2px; }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes drift   { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(0,-14px,0) scale(1.04); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse   { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(.92); } }
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(67,176,255,.28); }
  50%     { box-shadow: 0 0 0 8px rgba(67,176,255,0); }
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) rotate(-2deg); } 50% { transform: translate(24px,-18px) rotate(2deg); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) rotate(1deg); }  50% { transform: translate(-22px,22px) rotate(-2deg); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) rotate(-1deg); } 50% { transform: translate(18px,14px) rotate(2deg); } }
@keyframes drift4 { 0%,100% { transform: translate(0,0) rotate(2deg); }  50% { transform: translate(-16px,-22px) rotate(-1deg); } }

/* ── Responsive: 1200px ──────────────────────────────────────── */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Responsive: 960px ───────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 28px; }
  .hero__card { order: -1; }
  .payment-shell { grid-template-columns: 1fr; }
  .qr-column { width: 100%; }
  .site-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; justify-content: flex-start; width: 100%; max-width: none; }
}

/* ── Responsive: 640px ───────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 28px 16px; }
  .hero { padding: 24px 16px 28px; }
  .hero__meta { gap: 18px; flex-wrap: wrap; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .tracker-card { padding: 20px 16px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 8px; }
  .button { min-height: 50px; }
  .hero__cta, .tracker-actions, .checkout-actions, .payment-actions { flex-direction: column; }
  .button-primary, .button-ghost { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { width: 100%; border-radius: 20px 20px 0 0; max-height: 94vh; overflow-y: auto; animation: none; }
  .mono-row { flex-direction: column; align-items: flex-start; }
}

/* ── Responsive: 480px ───────────────────────────────────────── */
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.1rem; }
  .product-art { max-width: 150px; aspect-ratio: 3 / 2; padding: .35rem; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
