/* ==========================================================================
   Aurum Gift Cards - UK e-Gift Card storefront
   Minimal but complete MVP shell: browse -> configure -> checkout -> code
   Visual language: premium / editorial (whitespace, serif, low-sat gold)
   ========================================================================== */

:root {
  --ivory: #fbf9f6;
  --paper: #ffffff;
  --ink: #17161a;
  --ink-soft: #3f3b38;
  --muted: #6f6a63;
  --line: #e6e0d8;
  --line-strong: #d6cec2;
  --gold: #b08d57;
  --gold-soft: #d9c5a3;
  --gold-wash: #f3ece0;
  --ok: #2f6b4f;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 18px 40px -28px rgba(23, 22, 26, 0.45);
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.lede { font-size: 1.08rem; max-width: 60ch; }

.muted { color: var(--muted); font-size: 0.9rem; }

.center { text-align: center; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.brand .mark {
  width: 34px;
  height: 30px;
  flex: none;
  color: var(--gold);
}

.brand small {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.88rem;
}

.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--gold); }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--ink);
}

.cart-btn:hover { border-color: var(--gold); color: var(--gold); }

.cart-btn .count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { background: var(--gold); border-color: var(--gold); }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.gold:hover { background: #97753f; border-color: #97753f; }

.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn.small { padding: 10px 18px; font-size: 0.76rem; }

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 88% 0%, var(--gold-wash) 0%, rgba(243, 236, 224, 0) 60%),
    var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 18px; }

.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.hero-note {
  margin-top: 26px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-note span::before { content: "— "; color: var(--gold-soft); }

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ---------- gift card visual ---------- */

.gcard {
  position: relative;
  aspect-ratio: 1.6 / 1;
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 42%);
}

.gcard .g-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.gcard .g-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.gcard .g-cat {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.78;
}

.gcard .g-mono {
  font-family: var(--serif);
  font-size: 2rem;
  opacity: 0.9;
  line-height: 1;
}

.gcard .g-logo {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  line-height: 0;
}

.brand-logo { display: block; }

.detail-brand { color: var(--gold); margin-bottom: 18px; line-height: 0; }
.detail-brand svg { display: block; }

.gcard .g-amt {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.gcard .g-strip {
  position: relative;
  z-index: 1;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---------- sections ---------- */

section { padding: 76px 0; }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink p, .band-ink .muted { color: rgba(255, 255, 255, 0.72); }
.band-ink h2 { color: #fff; }

/* ---------- catalog ---------- */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--sans);
}

.chip.active, .chip:hover { border-color: var(--gold); color: var(--gold); }

.catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.card-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card-tile .gcard { border-radius: 0; box-shadow: none; aspect-ratio: 1.66 / 1; }

.card-tile .tile-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-tile h3 { margin: 0; font-size: 1.05rem; }

.card-tile .tagline { font-size: 0.85rem; color: var(--muted); margin: 0; flex: 1; }

.card-tile .from { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  counter-reset: step;
}

.step { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

/* ---------- trust ---------- */

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.trust-item { border-left: 1px solid var(--line-strong); padding-left: 20px; }
.trust-item h3 { font-size: 1rem; margin-bottom: 6px; }
.trust-item p { font-size: 0.88rem; margin: 0; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  margin-top: 34px;
  font-family: var(--serif);
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.95rem;
}

.logo-row span { opacity: 0.75; }

/* ---------- promo ---------- */

.promo-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }

.promo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.promo .tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.promo-code {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  border: 1px dashed var(--line-strong);
  padding: 12px 16px;
  border-radius: var(--radius);
  display: inline-block;
  background: var(--ivory);
}

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.03rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; font-size: 0.92rem; }

/* ---------- forms / configurator ---------- */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--ink);
}

.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

textarea { resize: vertical; min-height: 108px; }

.amounts { display: flex; flex-wrap: wrap; gap: 10px; }

.amount {
  min-width: 78px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.92rem;
  font-family: var(--sans);
  color: var(--ink);
}

.amount.active { border-color: var(--gold); background: var(--gold-wash); color: #7d6132; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }

.radio-card {
  flex: 1 1 200px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  background: var(--paper);
}

.radio-card.active { border-color: var(--gold); background: var(--gold-wash); }
.radio-card strong { display: block; font-size: 0.9rem; }
.radio-card span { font-size: 0.8rem; color: var(--muted); }

/* ---------- detail page ---------- */

.detail-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }

.detail-visual { position: sticky; top: 100px; }

.spec-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.spec-list li span:first-child { color: var(--muted); }

.summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 0.9rem; }
.summary .row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* ---------- checkout ---------- */

.checkout-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 46px; align-items: start; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }

.panel + .panel { margin-top: 24px; }

.line-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item .mini {
  width: 74px;
  aspect-ratio: 1.6 / 1;
  border-radius: var(--radius);
  flex: none;
}

.line-item .li-body { flex: 1; }
.line-item .li-body h4 { font-family: var(--sans); font-size: 0.95rem; margin: 0 0 4px; font-weight: 600; }
.line-item .li-body p { margin: 0; font-size: 0.82rem; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--sans);
}

.link-btn:hover { color: var(--gold); }

.sticky-summary { position: sticky; top: 100px; }

.notice {
  background: var(--gold-wash);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.84rem;
  color: #6d5628;
  margin-bottom: 20px;
}

.notice.dark { background: #efeae2; border-color: var(--line-strong); color: var(--ink-soft); }

/* ---------- simulated payment ---------- */

.alert {
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.86rem;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  background: #efeae2;
  color: var(--ink-soft);
}

.alert.error { background: #fbeeec; border-color: #e0b4ad; color: #8c2f22; }
.alert.ok { background: #eef6f0; border-color: #b6d5c1; color: #235c40; }
.alert.info { background: var(--gold-wash); border-color: var(--gold-soft); color: #6d5628; }

.testcards { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.testcards summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  list-style: none;
}
.testcards summary::-webkit-details-marker { display: none; }
.testcards summary::after { content: " +"; color: var(--gold); }
.testcards[open] summary::after { content: " \2013"; }

.testcard {
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.5fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: 8px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink);
}

.testcard:hover { border-color: var(--gold); }
.testcard .tc-num { font-family: "SFMono-Regular", Menlo, Consolas, monospace; }
.testcard .tc-brand { color: var(--muted); }
.testcard .tc-note { color: var(--gold); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 22, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 60px -30px rgba(23, 22, 26, 0.6);
}

@media (max-width: 640px) {
  .testcard { grid-template-columns: 1fr; gap: 3px; }
}

/* ---------- payment methods ---------- */

.pay-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 16px 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  color: var(--ink);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.pay-method:hover { border-color: var(--gold-soft); }
.pay-method.active { border-color: var(--gold); background: var(--gold-wash); }
.pay-method .pay-mark { display: flex; align-items: center; height: 26px; }
.pay-method .pay-mark svg { height: 26px; width: auto; display: block; }
.pay-method strong { font-size: 0.84rem; font-weight: 600; }
.pay-method .pay-note { font-size: 0.7rem; color: var(--muted); line-height: 1.3; }

.wallet-blurb {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.wallet-blurb .wb-brand { display: flex; margin-bottom: 10px; }
.wallet-blurb .wb-brand svg { height: 30px; width: auto; display: block; }
.wallet-blurb p { margin: 0 0 8px; font-size: 0.86rem; }
.wallet-blurb .wb-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* wallet-brand primary buttons */
.btn.wallet { color: #fff; }
.btn.wallet.applepay { background: #000; border-color: #000; color: #fff; }
.btn.wallet.applepay:hover { background: #1d1d1f; border-color: #1d1d1f; }
.btn.wallet.googlepay { background: #fff; border-color: #dadce0; color: #3c4043; }
.btn.wallet.googlepay:hover { background: #f6f7f8; border-color: #c4c7cb; }
.btn.wallet.paypal { background: #ffc439; border-color: #ffc439; color: #003087; }
.btn.wallet.paypal:hover { background: #f5b52c; border-color: #f5b52c; }

.btn .bm { display: inline-flex; align-items: center; gap: 5px; vertical-align: -3px; margin-right: 6px; }
.btn .bm svg { height: 18px; width: auto; display: block; }
.btn .bm b { font-weight: 700; }
.btn .bm.bm-paypal .p1 { color: #003087; }
.btn .bm.bm-paypal .p2 { color: #009cde; }
.btn.wallet .bm-amt { font-weight: 600; }

/* ---------- wallet sheets ---------- */

.modal.wallet { max-width: 400px; }

.wallet-brand { display: flex; justify-content: center; margin-bottom: 10px; }
.wallet-brand svg { height: 30px; width: auto; display: block; }

.wallet-step {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}

.wallet-title { text-align: center; font-size: 1.15rem; margin: 0 0 8px; }

.wallet-lede { font-size: 0.85rem; color: var(--muted); text-align: center; margin-bottom: 4px; }

.wallet-foot {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}

.wallet-rows {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 6px;
}
.wallet-rows .row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 0.88rem; }
.wallet-rows .row span:first-child { color: var(--muted); }

.wallet-actions { display: flex; gap: 10px; margin-top: 20px; }
.wallet-actions .btn { flex: 1; }

@media (max-width: 720px) {
  .pay-methods { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- order / code ---------- */

.code-box {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--ivory);
  text-align: center;
}

.code-value {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 0.12em;
  margin: 14px 0;
  word-break: break-all;
}

.code-value.masked { filter: blur(6px); user-select: none; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 1px solid var(--line-strong);
  font-size: 0.9rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.timeline li.done::before { background: var(--gold); }
.timeline strong { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; }

/* ---------- toast / drawer ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 24px);
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  display: flex;
  gap: 18px;
  align-items: center;
  z-index: 80;
}
.cookie p { margin: 0; font-size: 0.84rem; }
.cookie .actions { display: flex; gap: 10px; flex: none; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: 60px 0 34px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; font-family: var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.footer-grid li { margin-bottom: 10px; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .detail-grid, .checkout-grid, .promo-grid { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-visual, .sticky-summary { position: static; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav a:not(.cart-btn) { display: none; }
  .catalog { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Visual refresh - soft ivory layering + dark payment zone
   --------------------------------------------------------------------------
   Part one: replace hairline borders with layered surfaces, larger radii and
   a wider vertical rhythm, so the page breathes instead of looking ruled.
   Part two: the payment steps (method panel, wallet sheets, checkout rail)
   become a dark, gold-ruled block that focuses the decision moment.
   ========================================================================== */

/* ---------- part one: softer tokens and surfaces ---------- */

:root {
  --paper: #fffdfa;
  --sand: #f4eee4;
  --canvas: #faf6f0;
  --line: #ece5da;
  --line-strong: #ded4c5;
  --noir: #17161a;
  --noir-2: #201e24;
  --noir-3: #2b2831;
  --noir-line: #3a3640;
  --on-noir: #f4efe6;
  --on-noir-soft: #b3aca0;
  --gold-on-noir: #d3b078;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 4px rgba(30, 26, 20, 0.05), 0 30px 56px -34px rgba(30, 26, 20, 0.42);
  --shadow-card: 0 1px 2px rgba(30, 26, 20, 0.035), 0 22px 44px -30px rgba(30, 26, 20, 0.30);
  --shadow-lift: 0 2px 5px rgba(30, 26, 20, 0.05), 0 36px 62px -34px rgba(30, 26, 20, 0.36);
  --noir-glow: 0 0 0 1px rgba(211, 176, 120, 0.20), 0 30px 58px -34px rgba(23, 22, 26, 0.8);
}

body { background: var(--canvas); line-height: 1.72; }

h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }

/* header: no hard rule, just a soft shelf */
.site-header {
  background: rgba(250, 246, 240, 0.86);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(236, 229, 218, 0.85), 0 16px 34px -28px rgba(30, 26, 20, 0.55);
}

.cart-btn {
  border-color: transparent;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.cart-btn:hover { border-color: transparent; box-shadow: var(--shadow-lift); color: var(--gold); }

/* buttons become pills */
.btn {
  border-color: transparent;
  border-radius: 999px;
  padding: 15px 34px;
  box-shadow: 0 14px 26px -18px rgba(23, 22, 26, 0.75);
}
.btn:hover { border-color: transparent; }
.btn.ghost { border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.gold { border-color: transparent; }
.btn.small { padding: 11px 20px; }
.btn.wallet { box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.8); }

/* hero: roomier, no closing rule */
.hero {
  border-bottom: 0;
  padding: 76px 0 84px;
  background:
    radial-gradient(72% 118% at 86% -12%, rgba(211, 176, 120, 0.22) 0%, rgba(211, 176, 120, 0) 64%),
    var(--canvas);
}

/* gift card faces */
.gcard { border-radius: 15px; padding: 22px; }
.card-tile .gcard { border-radius: 0; }

/* sections breathe */
section { padding: 96px 0; }
.section-head { margin-bottom: 54px; }
.band { background: var(--paper); border-top: 0; border-bottom: 0; }

/* filter chips: no outline, filled states */
.chip {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 20px;
  transition: background 0.22s, color 0.22s;
}
.chip:hover { border-color: transparent; background: var(--gold-wash); color: #6d5628; }
.chip.active { border-color: transparent; background: var(--ink); color: #fff; }

/* catalogue tiles float instead of being outlined */
.catalog { gap: 30px; }
.card-tile {
  border-color: transparent;
  box-shadow: var(--shadow-card);
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.38s;
}
.card-tile:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card-tile .tile-body { padding: 22px 22px 24px; gap: 10px; }

/* steps and trust become cards rather than ruled columns */
.steps { gap: 26px; }
.step {
  border-top: 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-card);
}
.step::before { margin-bottom: 16px; }

.trust-grid { gap: 22px; }
.trust-item {
  border-left: 0;
  padding: 28px 26px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* promos */
.promo { border-color: transparent; box-shadow: var(--shadow-card); padding: 40px; }
.promo-code {
  border-style: solid;
  border-color: var(--gold-soft);
  background: var(--paper);
  border-radius: 999px;
  padding: 13px 22px;
}

/* faq keeps dividers, but with air */
.faq { border-top-color: var(--line); }
.faq details { border-bottom-color: var(--line); padding: 24px 0; }

/* forms: inset hairline instead of a drawn box */
.field { margin-bottom: 22px; }
.field label { letter-spacing: 0.15em; }
.input, select, textarea {
  border-color: transparent;
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.22s;
}
.input:focus, select:focus, textarea:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px var(--gold-wash);
}

/* amount picker: filled pills */
.amount {
  border-color: transparent;
  background: var(--sand);
  border-radius: 999px;
  min-width: 88px;
  padding: 13px 22px;
  transition: background 0.22s, color 0.22s;
}
.amount.active { border-color: transparent; background: var(--ink); color: #fff; }

/* delivery / timing choices */
.radio-row { gap: 12px; }
.radio-card {
  border-color: transparent;
  background: var(--sand);
  border-radius: 16px;
  padding: 18px 20px;
  transition: background 0.22s, box-shadow 0.22s;
}
.radio-card.active {
  border-color: transparent;
  background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* panels, summaries and code boxes */
.panel {
  border-color: transparent;
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.panel + .panel { margin-top: 26px; }
.summary { border-color: transparent; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); }

.spec-list { border-top-color: var(--line); }
.spec-list li { border-bottom-color: var(--line); padding: 15px 0; }

/* panels gained a row layout: previously these rows had no flex at all */
.panel .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 0.9rem; }
.panel .row.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 16px;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.line-item { border-bottom-color: var(--line); padding: 20px 0; }
.line-item .mini { border-radius: 10px; }

.notice { border-color: transparent; border-radius: 14px; padding: 16px 18px; }
.notice.dark { border-color: transparent; background: var(--sand); }

.alert { border-color: transparent; border-radius: 14px; padding: 15px 18px; }

.testcards { border-top-color: var(--line); }
.testcard {
  border-color: transparent;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.testcard:hover { border-color: transparent; box-shadow: inset 0 0 0 1px var(--gold); }

.modal { border-radius: 24px; padding: 38px; box-shadow: var(--shadow-lift); }

.code-box {
  border-color: var(--gold-soft);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 32px;
}

.timeline li { border-left-color: var(--line); }

.cookie {
  border-color: transparent;
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: var(--shadow-lift);
}

/* ---------- part two: the dark payment zone ---------- */

#paymentPanel,
.sticky-summary > .panel,
.modal.wallet {
  position: relative;
  background:
    radial-gradient(118% 92% at 100% 0%, rgba(211, 176, 120, 0.17) 0%, rgba(211, 176, 120, 0) 58%),
    var(--noir);
  color: var(--on-noir);
  box-shadow: var(--noir-glow);
}

.sticky-summary > .panel { padding: 32px; }

#paymentPanel h3,
.sticky-summary > .panel h3,
.modal.wallet .wallet-title { color: #fff; }
.sticky-summary > .panel h3 { font-size: 1.32rem; }

#paymentPanel .field label,
.sticky-summary > .panel .field label,
.modal.wallet .field label { color: var(--on-noir-soft); }

#paymentPanel .input,
.modal.wallet .input {
  background: var(--noir-2);
  color: var(--on-noir);
  box-shadow: inset 0 0 0 1px var(--noir-line);
}
#paymentPanel .input::placeholder,
.modal.wallet .input::placeholder { color: #7c766c; }
#paymentPanel .input:focus,
.modal.wallet .input:focus {
  box-shadow: inset 0 0 0 1px var(--gold-on-noir), 0 0 0 4px rgba(211, 176, 120, 0.13);
}
#paymentPanel .input[disabled] { color: var(--on-noir-soft); }

#paymentPanel .notice.dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
  color: var(--on-noir-soft);
}

#paymentPanel .alert { background: rgba(211, 176, 120, 0.12); color: #e6d2ab; }
#paymentPanel .alert.error { background: rgba(202, 82, 66, 0.18); color: #f0bdb3; }
#paymentPanel .alert.ok { background: rgba(58, 148, 106, 0.18); color: #b6dfc6; }
#paymentPanel .alert.info { background: rgba(211, 176, 120, 0.12); color: #e6d2ab; }

/* method tiles on dark */
.pay-methods { gap: 12px; }
.pay-method {
  border-color: var(--noir-line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  padding: 18px 10px 15px;
  color: var(--on-noir);
}
.pay-method:hover { border-color: rgba(211, 176, 120, 0.42); }
.pay-method.active {
  border-color: var(--gold-on-noir);
  background: rgba(211, 176, 120, 0.13);
  box-shadow: 0 0 0 1px rgba(211, 176, 120, 0.34), 0 18px 36px -26px rgba(0, 0, 0, 0.95);
}
.pay-method strong { color: var(--on-noir); }
.pay-method .pay-note { color: var(--on-noir-soft); }

/* wallet marks need lighter ink on dark surfaces */
#paymentPanel .pp-a, .modal.wallet .pp-a, .pay-method .pp-a { fill: #9dc0ee; }
#paymentPanel .pp-b, .modal.wallet .pp-b, .pay-method .pp-b { fill: #4fb3e8; }
#paymentPanel .gp-txt, .modal.wallet .gp-txt, .pay-method .gp-txt { fill: #cfc9bf; }

/* wallet blurb + test cards on dark */
.wallet-blurb,
#paymentPanel .wallet-blurb {
  border-color: transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px var(--noir-line);
}
#paymentPanel .wallet-blurb p { color: var(--on-noir-soft); }
#paymentPanel .wallet-blurb .wb-note { border-top-color: var(--noir-line); }
#paymentPanel .wallet-blurb .wb-note strong { color: var(--on-noir); }

#paymentPanel .testcards { border-top-color: var(--noir-line); }
#paymentPanel .testcards summary { color: var(--on-noir-soft); }
#paymentPanel .testcard {
  background: rgba(255, 255, 255, 0.045);
  color: var(--on-noir);
  box-shadow: inset 0 0 0 1px var(--noir-line);
}
#paymentPanel .testcard:hover { box-shadow: inset 0 0 0 1px rgba(211, 176, 120, 0.5); }
#paymentPanel .testcard .tc-brand { color: var(--on-noir-soft); }
#paymentPanel .testcard .tc-note { color: var(--gold-on-noir); }

/* checkout rail */
.sticky-summary > .panel .muted { color: var(--on-noir-soft); }
.sticky-summary > .panel .row.total { border-top-color: var(--noir-line); color: #fff; }
.sticky-summary > .panel .row.total span:last-child { color: var(--gold-on-noir); }
.sticky-summary > .panel a { color: var(--gold-on-noir); }
.sticky-summary > .panel .btn.gold {
  background: #c9a468;
  border-color: #c9a468;
  color: var(--noir);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.95);
}
.sticky-summary > .panel .btn.gold:hover { background: #d8b57c; border-color: #d8b57c; }
.sticky-summary > .panel .btn.wallet.applepay { border-color: rgba(255, 255, 255, 0.24); }

/* wallet sheets */
.modal.wallet .wallet-step { color: var(--gold-on-noir); }
.modal.wallet .wallet-lede { color: var(--on-noir-soft); }
.modal.wallet .wallet-foot { border-top-color: var(--noir-line); color: var(--on-noir-soft); }
.modal.wallet .wallet-rows { border-top-color: var(--noir-line); }
.modal.wallet .wallet-rows .row span:first-child { color: var(--on-noir-soft); }
.modal.wallet .link-btn { color: var(--on-noir-soft); }
.modal.wallet .link-btn:hover { color: var(--gold-on-noir); }
.modal.wallet .btn.gold { background: #c9a468; border-color: #c9a468; color: var(--noir); }
.modal.wallet .btn.gold:hover { background: #d8b57c; border-color: #d8b57c; }
.modal.wallet .btn.ghost { border-color: var(--noir-line); color: var(--on-noir); }
.modal.wallet .btn.ghost:hover { background: var(--on-noir); border-color: var(--on-noir); color: var(--noir); }
.modal.wallet .wallet-brand svg { color: var(--on-noir); }

/* dark-mode aware status text inside the payment panel */
#payAlert .alert { margin-bottom: 20px; }

@media (max-width: 980px) {
  #paymentPanel, .sticky-summary > .panel { box-shadow: var(--shadow-card); }
}

@media (max-width: 640px) {
  .pay-method { border-radius: 14px; padding: 15px 8px 12px; }
  .panel { padding: 26px 22px; }
  .sticky-summary > .panel { padding: 24px 20px; }
}

/* ==========================================================================
   Brand card faces
   Every product card is built from the brand's own colourway, mark and
   wordmark, so the product is recognisable before the label is read.
   ========================================================================== */

.gcard { padding: 20px 22px; }

.gcard .g-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

.gcard .g-top { align-items: center; gap: 12px; }
.gcard .g-logo { color: inherit; line-height: 1; }
.gcard .g-cat { flex: none; }
.gcard .g-foot { position: relative; z-index: 1; }

/* lockup: mark + wordmark */
.g-lock { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.g-lock-stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.g-lock-stack .g-mark { align-self: stretch; }
.g-lock-stack .g-mark svg { width: 100%; height: auto; }

.g-mark { display: inline-flex; line-height: 0; flex: none; }
.g-mark svg { display: block; }

.g-word {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* wordmark treatments - the parts a font family alone cannot carry */
.w-giftcard { font-weight: 400; letter-spacing: 0.1em; opacity: 0.9; }
.w-amazon { font-size: 1.42rem; font-weight: 700; letter-spacing: -0.035em; color: #131A22; }
.w-netflix { font-size: 1.06rem; font-weight: 800; letter-spacing: 0.05em; color: #E50914; }
.w-spotify { font-size: 1.14rem; font-weight: 800; letter-spacing: -0.025em; color: #0B0B0B; }
.w-googleplay { font-size: 0.98rem; font-weight: 500; letter-spacing: -0.01em; color: #5F6368; }
.w-playstation { font-size: 1rem; font-weight: 700; letter-spacing: -0.005em; }
.w-xbox { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }
.w-uber { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.04em; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.w-tesco { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.11em; }

/* ambience per brand, so no two faces read the same */
.gcard.b-apple .g-art { background: radial-gradient(72% 82% at 84% 12%, rgba(255, 255, 255, 0.18), transparent 68%); }
.gcard.b-amazon .g-art { background: radial-gradient(62% 72% at 90% 98%, rgba(255, 153, 0, 0.16), transparent 70%); }
.gcard.b-netflix .g-art { background: radial-gradient(78% 88% at 14% 90%, rgba(229, 9, 20, 0.55), transparent 66%); }
.gcard.b-spotify .g-art { background: radial-gradient(70% 80% at 86% 14%, rgba(255, 255, 255, 0.3), transparent 62%); }
.gcard.b-googleplay .g-art { background: radial-gradient(64% 74% at 10% 94%, rgba(0, 160, 255, 0.1), transparent 70%); }
.gcard.b-playstation .g-art { background: radial-gradient(80% 88% at 88% 86%, rgba(0, 12, 46, 0.38), transparent 70%); }
.gcard.b-xbox .g-art { background: radial-gradient(70% 80% at 84% 14%, rgba(255, 255, 255, 0.14), transparent 66%); }
.gcard.b-uber .g-art { background: radial-gradient(72% 82% at 12% 10%, rgba(255, 255, 255, 0.14), transparent 66%); }
.gcard.b-tesco .g-art { background: radial-gradient(64% 74% at 92% 92%, rgba(238, 28, 46, 0.42), transparent 70%); }

/* light faces need a hairline so they hold their edge on the ivory page */
.gcard.b-amazon .g-art,
.gcard.b-googleplay .g-art {
  box-shadow: inset 0 0 0 1px rgba(23, 22, 26, 0.09);
}

/* the detail-page brand signature */
.detail-brand { line-height: 1; }
.detail-brand .g-lock { gap: 14px; }

@media (max-width: 640px) {
  .gcard { padding: 16px 18px; }
  .gcard .g-cat { display: none; }
  .g-lock { gap: 8px; }
  .g-lock-stack { gap: 3px; }
}

/* ---------- hero ring carousel ---------- */

.hero-cards {
  --ring-r: 290px;
  --ring-w: 165px;
  --ring-h: 102px;
  display: block;
  overflow: visible;
}

.ring-stage {
  position: relative;
  height: 292px;
  perspective: 1150px;
  perspective-origin: 50% 46%;
}

/* ground shadow sits under the front row */
.ring-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 48%;
  height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(23, 22, 26, 0.15), rgba(23, 22, 26, 0) 72%);
  pointer-events: none;
}

.ring-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-12deg);
}

.ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: ringSpin 40s linear infinite;
  will-change: transform;
}

.hero-cards:hover .ring { animation-play-state: paused; }

.ring-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ring-w);
  height: var(--ring-h);
  margin: calc(var(--ring-h) / -2) 0 0 calc(var(--ring-w) / -2);
  display: block;
  text-decoration: none;
  transform: rotateY(var(--a)) translateZ(var(--ring-r));
  transform-style: preserve-3d;
}

/* two faces per card: the ring reads as a full circle, never a gap */
.ring-face {
  position: absolute;
  inset: 0;
  display: block;
  backface-visibility: hidden;
}

.ring-back { transform: rotateY(180deg); }

/* atmospheric depth - the far half of the ring sits back a touch */
.ring-back .gcard { filter: brightness(0.9) saturate(0.92); }

.ring-item .gcard {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding: 13px 14px;
  box-shadow: 0 14px 30px -18px rgba(23, 22, 26, 0.42);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.ring-item:hover .gcard {
  box-shadow: 0 26px 50px -20px rgba(23, 22, 26, 0.6);
}

.ring-item .g-name { font-size: 0.8rem; }
.ring-item .g-cat { font-size: 0.49rem; }
.ring-item .g-amt { font-size: 0.98rem; }
.ring-item .g-strip { font-size: 0.49rem; letter-spacing: 0.08em; }
.ring-item .g-lock { gap: 6px; }
.ring-item .w-amazon { font-size: 0.94rem; }
.ring-item .w-netflix { font-size: 0.71rem; letter-spacing: 0.05em; }
.ring-item .w-spotify { font-size: 0.76rem; }
.ring-item .w-googleplay { font-size: 0.66rem; }
.ring-item .w-playstation { font-size: 0.67rem; }
.ring-item .w-xbox { font-size: 0.74rem; }
.ring-item .w-uber { font-size: 0.86rem; }
.ring-item .w-tesco { font-size: 0.74rem; }

@keyframes ringSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; }
}

@media (max-width: 980px) {
  .hero-cards { --ring-r: 218px; --ring-w: 126px; --ring-h: 78px; }
  .ring-stage { height: 246px; perspective: 950px; }
}

@media (max-width: 640px) {
  .hero-cards { --ring-r: 162px; --ring-w: 98px; --ring-h: 61px; }
  .ring-stage { height: 196px; perspective: 720px; }
  .ring-item .gcard { padding: 9px 10px; }
  .ring-item .g-strip { display: none; }
}

/* ==========================================================================
   Accounts, orders and the admin console
   --------------------------------------------------------------------------
   Same ivory layering as the storefront, with denser data surfaces for the
   console: stat cards, tables, tabs and badges.
   ========================================================================== */

/* ---------- header account link ---------- */
.nav-account {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-card);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-account:hover { color: var(--gold); border-color: transparent; }
.nav-account[data-signed-in] { color: var(--gold); }
.nav-admin { border-color: var(--gold-soft); }

/* ---------- shared ---------- */
.narrow { max-width: 720px; margin: 0 auto; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.danger-text { color: #b3261e; font-weight: 600; }

.input.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tab {
  font: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab:hover { border-color: var(--ink); }
.tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.admin-tabs { margin-bottom: 26px; }

.auth-panel { max-width: 560px; margin: 0 auto; }

/* ---------- guest checkout ---------- */
.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 16px;
  color: var(--ink-soft, #6C6656);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line, #E3DCCB);
}
.remembered { border-top: 1px solid var(--line, #E3DCCB); padding-top: 6px; }
.remembered-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line, #E3DCCB);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.remembered-row:last-child { border-bottom: none; }

/* ---------- mobile number verification ---------- */
.phone-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line, #E3DCCB);
  border-radius: 8px;
  background: var(--paper, #FBF9F4);
  color: var(--ink-soft, #6C6656);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  flex: none;
}
.phone-row .input { flex: 1; min-width: 0; }
.phone-row .btn { flex: none; white-space: nowrap; }
.code-hint { margin: 8px 0 0; font-size: 0.78rem; }

/* ---------- stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stat {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
}
.stat-label {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.stat-value {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
}
.stat-note { margin: 8px 0 0; font-size: 0.76rem; color: var(--muted); }

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--ink-soft);
  vertical-align: middle;
}
.badge-paid { background: #e7f0ea; color: #245c40; }
.badge-fulfilled { background: #eae4f5; color: #48356e; }
.badge-refunded { background: #f6e8e6; color: #8a2f26; }
.badge-cancelled { background: #f0ece5; color: #6f6a63; }
.badge-sold { background: #f6e8e6; color: #8a2f26; }
.badge-available, .badge-in { background: #e7f0ea; color: #245c40; }
.badge-void { background: #f0ece5; color: #6f6a63; }
.badge-ok { background: #e7f0ea; color: #245c40; }

/* ---------- tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(243, 236, 224, 0.42); }
.table a { color: var(--gold); }
.table .input.select { padding: 8px 30px 8px 10px; font-size: 0.78rem; }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.toolbar-right .input { min-width: 240px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.inline-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.inline-form .input { max-width: 240px; }

/* ---------- seven day chart ---------- */
.chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  align-items: end;
  height: 190px;
  margin-top: 12px;
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
}
.chart-bar {
  width: 100%;
  max-width: 54px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  min-height: 4px;
}
.chart-label { font-size: 0.7rem; color: var(--muted); }
.chart-value { font-size: 0.68rem; color: var(--ink-soft); }

/* ---------- order history rows ---------- */
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--canvas);
  margin-bottom: 12px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.order-row:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.order-row p { margin: 0 0 4px; font-size: 0.84rem; }
.order-ref { font-weight: 600; color: var(--ink); }
.order-total { font-family: var(--serif); font-size: 1.15rem; white-space: nowrap; }

.timeline-at { display: block; font-size: 0.7rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-right .input { min-width: 0; }
  .table { font-size: 0.8rem; }
  .table th, .table td { padding: 10px 8px; }
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr; }
  .nav a.nav-account { display: inline-flex; }
  .order-row { flex-direction: column; align-items: flex-start; }
  .chart { height: 150px; gap: 8px; }
  .inline-form .input { max-width: none; flex: 1 1 140px; }
}

/* extra codes when an order holds more than one */
.code-more {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 12px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.code-more.masked {
  filter: blur(6px);
  user-select: none;
}
