/* ==========================================================
   bocco account shell — dashboard, profile, orders, addresses,
   delivery. One sidebar, one page head, one card system.
   Maroon sidebar (brand dominant), coral actions, soft-grey canvas.
   ========================================================== */

.acct { min-height: 100vh; background: var(--bg); }

/* Main content */
.acct-main { max-width: 1240px; margin: 0 auto; padding: 22px 16px 120px; min-width: 0; }
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.acct-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--ink); }
.acct-head p { margin: 4px 0 0; color: var(--muted); }
.acct-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid-stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-stats.stats-narrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }

/* Cards — shadow-2 (not shadow-1) so account cards read as raised against
   the dark surface instead of only a 1px border away from the page bg. */
.acard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  padding: 20px;
  min-width: 0;
}
.acard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.acard-head h2 { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.acard-head a { font-weight: 600; color: var(--accent-text); font-size: 0.9rem; }

.stat { display: grid; gap: 6px; }
.stat .k { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.stat .v { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.stat .d { font-size: 0.8rem; color: var(--green); font-weight: 600; }
.stat .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); font-size: 1.1rem; }

/* Greeting hero card (dashboard) */
/* Active-delivery alert (Dashboard only, shown only while an order is in
   flight — not a page hero). The redesign drops the repeated gradient
   hero card everywhere; each screen's own anchor component carries its
   identity instead (reorder card, receipt cards, metal pass card, etc.). */
.hello {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  margin-top: 18px;
  color: var(--ink);
  background: var(--brand-soft);
  border: 1px solid var(--line);
}
.hello h2 { color: var(--ink); font-size: 1.2rem; }
.hello p { color: var(--ink-2); margin: 0; }
.hello .btn-primary { justify-self: start; }
.hello .pill.live { justify-self: start; }
.hello[hidden], .reorder-card[hidden] { display: none; }

/* Order row */
.orow {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.2s;
}
.orow + .orow { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.orow:hover { background: var(--bg); }
.orow .thumb { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--brand-soft); }
.orow .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orow .t strong { display: block; font-size: 0.98rem; color: var(--ink); }
.orow .t small { color: var(--muted); font-size: 0.84rem; }
.orow .r { display: grid; justify-items: end; gap: 6px; }
.orow .amt { font-weight: 700; font-variant-numeric: tabular-nums; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--bg-2); color: var(--ink-2); }
.pill.live { background: var(--coral-soft); color: var(--accent-text); }
.pill.done { background: var(--green-soft); color: var(--green); }
.pill.cancel { background: rgba(229, 72, 77, 0.16); color: #FF8178; }

/* Receipt cards (Orders list) — a cream ticket with a torn perforation
   between the items and the total, distinct from every dark card around
   it, matching the paper reorder card's material. */
.orders-list { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.receipt { position: relative; background: var(--receipt); color: var(--on-coral); border-radius: var(--r-lg); }
.receipt-top { padding: 18px 18px 16px; }
.receipt-top-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.receipt-id { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: #6B4A4F; }
.receipt-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 0.76rem; white-space: nowrap; }
.receipt-status.delivered { background: #D9F2E4; color: #135C37; }
.receipt-status.active { background: rgba(255, 107, 94, 0.2); color: #8D263C; }
.receipt-items { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.receipt-items img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: 0 0 auto; }
.receipt-items .noimg { width: 56px; height: 56px; border-radius: 16px; flex: 0 0 auto; background: var(--maroon); color: #fff; display: grid; place-items: center; }
.receipt-items .names { flex: 1; min-width: 0; font-weight: 600; font-size: 0.95rem; line-height: 1.4; white-space: pre-line; }
.receipt-tear { position: relative; height: 0; border-top: 2px dashed #D8C3BA; margin: 0 18px; }
.receipt-tear::before, .receipt-tear::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.receipt-tear::before { left: -29px; }
.receipt-tear::after { right: -29px; }
.receipt-foot { display: flex; align-items: center; gap: 8px; padding: 14px 14px 14px 18px; height: 72px; box-sizing: border-box; }
.receipt-total { flex: 1; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.btn-receipt-outline, .btn-receipt-dark { height: 44px; padding: 0 16px; border-radius: 14px; font-weight: 700; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 6px; justify-content: center; white-space: nowrap; }
.btn-receipt-outline { border: 1.5px solid #D8C3BA; color: #2A0B12; background: transparent; }
.btn-receipt-dark { border: 0; background: #2A0B12; color: #FFF3EF; cursor: pointer; }

/* Chart */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; display: grid; gap: 8px; justify-items: center; align-content: end; height: 100%; min-width: 0; }
.chart .bar {
  width: 100%;
  max-width: 44px;
  height: var(--h);
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, var(--coral), var(--maroon));
  transform-origin: bottom;
  animation: grow 0.8s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
  position: relative;
}
.chart .bar[data-v]::after {
  content: attr(data-v);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}
.chart .lbl { font-size: 0.78rem; color: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } }

/* Quick actions */
.qa { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qa a {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease-out), background 0.2s, border-color 0.2s;
}
.qa a:hover { transform: translateY(-3px); background: var(--surface); border-color: var(--accent-text); text-decoration: none; }
.qa .ic { font-size: 1.4rem; }

/* Favourites */
.favs { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fav { display: grid; gap: 8px; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.fav .ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--brand-soft); }
.fav .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease-spring); }
.fav strong { font-size: 0.9rem; color: var(--ink); line-height: 1.25; }
.fav small { color: var(--muted); font-size: 0.78rem; }
/* Same tilt-on-hover + photo gloss the home-page item cards use (.product,
   .cat) — the favourites tiles are the one account-section spot with real
   product photography, so they're the natural place to borrow it. */
.fav .gloss { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.4), transparent 55%); pointer-events: none; opacity: 0; transition: opacity .3s; }
.fav[data-tilt] { transform-style: preserve-3d; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease-out), box-shadow .4s; }
.fav[data-tilt]:hover { box-shadow: var(--shadow-2); }
.fav[data-tilt]:hover .ph img { transform: scale(1.08); }
.fav[data-tilt]:hover .gloss { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .fav[data-tilt] { transform: none; } }

/* Forms */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.fld { display: grid; gap: 6px; }
.fld > label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.fld .hint { font-size: 0.8rem; color: var(--muted); }
.fld .err { min-height: 1em; font-size: 0.82rem; color: #FF8178; font-weight: 500; }
.fld .input { min-height: 52px; }
.fld textarea.input { min-height: 90px; resize: vertical; }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.radio-cards label {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.28s var(--ease-spring);
}
.radio-cards label:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px rgba(253, 91, 87, 0.3); }
.radio-cards label small { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards label:has(input:checked) { border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--brand-soft); }
.radio-cards label:focus-within { outline: 3px solid var(--coral); outline-offset: 2px; }

/* Settings rows */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row strong { display: block; color: var(--ink); font-size: 0.95rem; }
.set-row span { color: var(--muted); font-size: 0.85rem; }

/* Tabs in pages */
/* Segmented tabs: a filled track, 4px padding, the active segment goes
   solid ink with dark text (Orders filter, Profile Personal/Preferences). */
.seg-tabs { display: grid; gap: 0; padding: 4px; margin-bottom: 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.seg-tabs.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg-tabs.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg-tabs button { height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: background .2s, color .2s; }
.seg-tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-coral); }

.ptabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.ptabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.ptabs button:hover { color: var(--ink); }
.ptabs button[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--coral); }

/* Address cards */
.addr-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.addr {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--line);
}
.addr.default { border-color: var(--coral); }
.addr-map { position: relative; height: 118px; background: var(--bg); }
.addr-map svg { width: 100%; height: 100%; display: block; }
.addr-default-badge { position: absolute; top: 12px; right: 12px; background: var(--white); color: var(--on-coral); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.addr-body { padding: 16px; display: grid; gap: 4px; }
.addr-body strong { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.addr-body p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.addr .acts { display: flex; gap: 8px; margin-top: 10px; }
.btn-outline { flex: 1; min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--coral); background: transparent; color: var(--accent-text); font: inherit; font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: background .2s; }
.btn-outline:hover { background: var(--coral-soft); }
.icon-btn-outline { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; border: 1px solid var(--line); background: var(--brand-soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn-outline:hover { border-color: var(--accent-text); color: var(--accent-text); }
.addr-add-dashed { height: 64px; border-radius: var(--r-xl); border: 1.5px dashed var(--line); background: transparent; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.addr-add-dashed:hover { border-color: var(--accent-text); color: var(--accent-text); }

/* Delivery page — full-bleed map at the top, a rounded sheet pulled up
   over it on phones, matching the redesign's tracking anchor. One back
   control only (the shared header's), not a second one floating on the
   map — every other account page uses just the header's. On desktop,
   .del-grid turns this into the same two-column layout as everywhere
   else (map stays put in a sticky card, sheet becomes a plain column
   of cards) instead of stretching the phone layout edge to edge. */
.del-grid { display: block; }
.track-main { padding-top: 0; max-width: none; }
.track-map-wrap { position: relative; margin: 0 -16px; }
.track-map-pill { position: absolute; top: 22px; right: 16px; left: auto; background: var(--bg); }
.map.track-map-full { border-radius: 0; aspect-ratio: auto; width: 100%; height: 340px; box-shadow: none; border: 0; }
.track-sheet { position: relative; margin: -40px -16px 0; background: var(--surface); border-radius: 30px 30px 0 0; padding: 14px 16px 40px; display: grid; gap: 14px; }
.track-sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; }
.track-kicker { margin: 0; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.track-sheet h1 { margin: 2px 0 0; font-size: clamp(1.7rem, 4vw, 2.1rem); }
.track-sub { margin: 0; color: var(--ink-2); }
.eta-row { margin: 4px 0 0; display: flex; align-items: baseline; gap: 8px; }
.eta-caption { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.eta-caption.hidden { display: none; }
.eta-row strong { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

.map { position: relative; border-radius: 24px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 16 / 11; box-shadow: var(--shadow-1); }
.map svg { width: 100%; height: 100%; display: block; }
.map-pill { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 0.82rem; font-weight: 600; border: 1px solid var(--line); }
.map .badge-glass { position: absolute; right: 14px; bottom: 14px; padding: 8px 12px; border-radius: 12px; background: var(--surface-glass); font-size: 0.82rem; font-weight: 600; border: 1px solid var(--line); }
/* Named stops on the route — without these the shop/home markers are two
   identical white pins with no way to tell which is which at a glance. */
.map-tag { position: absolute; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: var(--surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }

/* 4-segment progress bar, replacing the old vertical dot-and-line list */
.track-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.seg { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.seg-bar { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.seg.done .seg-bar, .seg.active .seg-bar { background: var(--coral); }
.seg-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg.done .seg-label, .seg.active .seg-label { color: var(--ink); font-weight: 700; }

.track-deliver-to { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.track-deliver-to .ico { color: var(--gold); flex: 0 0 auto; margin-top: 1px; }
/* Plain address text, reused on Profile's "Delivering to" sidebar card
   and here — distinct from .addr, which is the Addresses page's full
   mini-map card and has its own overflow/border chrome. */
.addr-text { margin: 0; color: var(--ink-2); line-height: 1.5; }
.addr-text strong { color: var(--ink); }
.track-all-orders { display: flex; justify-content: center; align-items: center; height: 48px; font-weight: 700; font-size: 0.9rem; color: var(--accent-text); }

.rider { display: flex; align-items: center; gap: 14px; }
.rider .av { width: 52px; height: 52px; border-radius: 16px; background: var(--maroon); color: #fff; display: grid; place-items: center; font-weight: 700; }
.rider strong { display: block; color: var(--ink); }
.rider small { color: var(--muted); }
.rate { display: flex; gap: 8px; font-size: 1.9rem; }
.rate button { background: none; border: 0; cursor: pointer; filter: grayscale(1); opacity: 0.45; padding: 2px; transition: transform 0.25s var(--ease-spring); }
.rate button:hover { transform: scale(1.2); }
.rate button.on { filter: none; opacity: 1; }

/* Empty */
.empty-box { text-align: center; padding: 34px 16px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); }
.empty-box .big { font-size: 2.4rem; display: inline-block; animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.note { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .grid-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .favs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .addr-grid { grid-template-columns: 1fr 1fr; }
  .acct-main { padding: 26px 26px 60px; }
}
@media (min-width: 1024px) {
  .acct-main { padding: 32px 36px 72px; }
  .grid-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .track-main { max-width: 1240px; }
  .del-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
  .track-map-wrap { margin: 0; position: sticky; top: 92px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-2); }
  .map.track-map-full { height: 520px; }
  .track-sheet { margin: 0; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow-2); padding: 24px; }
  .track-sheet-handle { display: none; }
}
@media (min-width: 1024px) and (max-width: 1280px) { .grid-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 719px) { .radio-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .chart .bar, .eta-card::before { animation: none; } }

/* Switch (preferences) */
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 0.25s; cursor: pointer; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform 0.3s var(--ease-spring); }
.switch input:checked + .track { background: var(--maroon); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--coral); outline-offset: 2px; }

/* Menu hub: grouped navigation rows */
.nav-list { display: grid; }
.nav-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); transition: transform 0.2s var(--ease-out); }
.nav-row:last-child { border-bottom: 0; }
.nav-row:hover { transform: translateX(4px); text-decoration: none; }
.nav-row .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--accent-text); flex: 0 0 auto; }
.nav-row .lbl { flex: 1 1 auto; font-weight: 600; }
.nav-row .chev { color: var(--muted); flex: 0 0 auto; }

.ul-clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ul-clean li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 0.95rem; }
.ul-clean li span:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.avatar-lg { width: 64px; height: 64px; border-radius: 20px; background: var(--coral); color: var(--on-coral); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; flex: 0 0 auto; }

/* Account hub (more.html) */
.hub-profile { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.hub-avatar { transform: rotate(-4deg); }
.hub-profile-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hub-profile-body strong { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.hub-profile-body small { color: var(--ink-2); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-profile-chev { color: var(--muted); flex: 0 0 auto; }

.hub-gold-banner { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 16px; border-radius: var(--r-xl); color: var(--on-coral); background: linear-gradient(125deg, #FBE3A4 0%, #F2B544 40%, #D9992E 100%); }
.hub-gold-ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: rgba(42,11,18,0.12); }
.hub-gold-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hub-gold-body strong { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.hub-gold-body small { font-size: 0.82rem; }
.hub-gold-cta { flex: 0 0 auto; padding: 8px 12px; border-radius: 12px; background: var(--on-coral); color: var(--gold); font-weight: 700; font-size: 0.82rem; }

.hub-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.hub-tile { height: 108px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.hub-tile-top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--accent-text); }
.hub-tile-count { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.hub-tile-lbl { font-weight: 700; font-size: 0.92rem; }

.hub-signout { width: 100%; }

/* Profile: centered identity instead of a form-header avatar */
.profile-identity { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 22px; gap: 4px; }
.profile-avatar { width: 96px; height: 96px; border-radius: 32px; background: var(--coral); color: var(--on-coral); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; transform: rotate(-4deg); margin-bottom: 14px; }
.profile-identity h1 { font-size: clamp(1.6rem, 3vw, 1.9rem); }
.profile-identity p { margin-top: 2px; color: var(--ink-2); }
.profile-gp-chip { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 0.78rem; }
.acard .sr-only { position: absolute; }

.stat .v.text { font-size: 1.05rem; line-height: 1.3; }

/* Page hero band (same card as the dashboard) */
/* Plain page title — no hero card. Every account screen used to open
   with an identical gradient card; the redesign drops that in favour of
   a plain heading plus each screen's own anchor component below it. */
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 20px 0 4px; }
.page-title h1 { color: var(--ink); }
.page-title p { margin: 6px 0 0; color: var(--ink-2); }
.page-title .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hello .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.32); }
.hello .btn-ghost:hover { background: rgba(255,255,255,0.22); }
.hello .btn-primary { box-shadow: 0 12px 24px -12px rgba(253,91,87,0.8); }

/* Dashboard-style pointer parallax on the hero band */
.hello { --px: 0px; --py: 0px; }
.hello::before { transform: translate3d(var(--px), var(--py), 0); transition: transform 0.6s var(--ease-out); }
.hello::after { transform: translate3d(calc(var(--px) * -0.6), calc(var(--py) * -0.6), 0); transition: transform 0.6s var(--ease-out); }
[data-speed] { will-change: transform; }
.rate button svg { fill: currentColor; }

/* ---------- Golden Pass ---------- */

/* Dashboard greeting */
.dash-greet { margin: 0; color: var(--ink-2); font: 500 1rem var(--font); }
.dash-head h1 { margin-top: 2px; }

/* Paper reorder card: the one "paper" surface on an otherwise dark
   page, per spec — the most-ordered item, photo right, reorder CTA. */
.reorder-card {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 196px;
  margin: 20px 0 0;
  border-radius: var(--r-xl);
  background: var(--paper);
  color: var(--on-coral);
  box-shadow: var(--shadow-2);
}
.reorder-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 20px 4px 20px 22px; }
.reorder-label { font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--maroon); }
.reorder-name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.05; }
.reorder-price { font-weight: 600; font-size: 0.88rem; color: #5C3A3F; }
.reorder-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 14px; background: var(--on-coral); color: var(--white); font-weight: 700; font-size: 0.88rem; }
.reorder-photo { width: 150px; flex: 0 0 auto; height: auto; object-fit: cover; }

/* Bento: orders this month / total spent, with the Golden Pass tile
   spanning both rows in a soft gold gradient — the account section's
   one gold surface outside the pass card itself. */
.dash-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 10px; margin-top: 12px; }
.bento-tile { border-radius: var(--r-lg); padding: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.bt-k { font-weight: 600; font-size: 0.82rem; color: var(--ink-2); }
.bt-v { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.03em; line-height: 1; }
.bento-tile.gold { grid-row: span 2; color: var(--on-coral); background: linear-gradient(150deg, #F7CF73 0%, #E9A93A 55%, #C9851F 100%); border: 0; }
.bt-gold-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(42,11,18,0.12); }
.bt-gold-body { display: block; margin-top: auto; }
.bt-gold-body strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.1; }
.bt-gold-body small { display: block; margin-top: 4px; font-size: 0.82rem; line-height: 1.3; }
.bt-gold-cta { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; font-weight: 700; font-size: 0.82rem; }

/* Compact "N saved addresses" link row under the bento */
.addr-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.addr-row-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--gold); }
.addr-row-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.addr-row-body strong { font-weight: 700; font-size: 0.95rem; }
.addr-row-body small { color: var(--ink-2); font-size: 0.82rem; }
.addr-row-chev { color: var(--muted); flex: 0 0 auto; }
@media (max-width: 480px) { .reorder-photo { width: 120px; } }

/* Golden Pass gets its own darker, warmer ground than the rest of the
   account section — a deliberate step down from --bg, not the same
   maroon-dark every other screen uses, so the page itself feels like
   stepping into the membership tier. */
body[data-page="golden"] { --bg: #120607; --surface: #1E1310; --line: #3A2A1A; --brand-soft: #1E1310; }
.golden-header .topbar-inner { justify-content: space-between; }
.golden-header-label { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.golden-header-spacer { width: 44px; }
.back-btn.icon-only { width: 44px; height: 44px; padding: 0; justify-content: center; }
.back-btn.icon-only span { display: none; }

/* Profile tab + dedicated page: everything stacks in this column */
.pass-panel { display: grid; gap: 0; max-width: 460px; margin: 0 auto; perspective: 900px; }

/* The tilted gold metal card — always visible, active or not */
.pass-metal {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 212px;
  margin: 4px 4px 0;
  padding: 22px;
  border-radius: 22px;
  color: var(--on-coral);
  background: var(--gold-metal);
  box-shadow: 0 30px 60px -20px rgba(242, 181, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: rotateX(8deg) rotateZ(-2deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pass-metal::before { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,0.14); }
.pass-metal-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pass-metal-word { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.045em; }
.pass-metal-title { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; }
.pass-metal-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.pass-metal-name { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; }
.pass-metal-tag { font-weight: 700; font-size: 0.7rem; padding: 4px 9px; border-radius: 999px; background: rgba(42,11,18,0.14); }
@media (prefers-reduced-motion: reduce) { .pass-metal { transform: none; } }

.pass-headline { text-align: center; margin: 30px 20px 0; font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.1; }
.pass-headline span { color: var(--gold); }

/* Sticky activate CTA (shown only while picking a plan) */
.pass-cta-footer { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 16px 22px; background: var(--bg); border-top: 1px solid var(--line); z-index: 40; }
.pass-cta-footer[hidden] { display: none; }
.pass-cta-btn { width: 100%; height: 58px; border-radius: 18px; border: 0; background: var(--gold); color: var(--on-coral); font-weight: 800; font-size: 1rem; cursor: pointer; }
#pass-panel { padding-bottom: 90px; }

/* The pass card itself (shown once a pass is active) — a real card,
   not a full-width banner: fixed width, centred, ticket-style stub. */
.pass-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, #3B0F1A 0%, #6E1B2C 45%, #8D263C 100%);
  box-shadow: var(--shadow-3);
}
.pass-card::before { content: ""; position: absolute; width: 380px; height: 380px; right: -130px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(254,176,61,0.45), transparent 65%); z-index: -1; }
.pass-card::after {
  content: "";
  position: absolute;
  inset: -50% -70%;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  background-size: 250% 250%;
  transform: rotate(-8deg);
  animation: pass-sheen 6.5s linear infinite;
  pointer-events: none;
}
@keyframes pass-sheen { to { background-position: -250% -250%; } }
.pass-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.pass-chip { width: 42px; height: 30px; border-radius: 7px; flex: 0 0 auto; background: linear-gradient(135deg, var(--gold), #C98A1F); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); position: relative; }
.pass-chip::before { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 6px); }
.pass-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--gold); }
.pass-tier-badge { margin-left: auto; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255,255,255,0.14); border: 1px solid rgba(254,176,61,0.5); color: var(--gold); }
.pass-mid { display: grid; gap: 4px; margin-bottom: 22px; }
.pass-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; }
.pass-number { color: rgba(255,255,255,0.72); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; font-size: 0.9rem; }
.pass-progress { margin-bottom: 18px; }
.pass-progress-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.84rem; color: rgba(255,255,255,0.88); margin-bottom: 8px; }
.pass-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.2); overflow: hidden; }
.pass-bar > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--coral)); transition: width 0.9s var(--ease-out); }
.pass-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 2px dashed rgba(255,255,255,0.22);
}
.pass-foot > span:first-child { font-size: 0.82rem; color: rgba(255,255,255,0.72); }
.pass-barcode { width: 88px; height: 26px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.85) 0 2px, transparent 2px 5px, rgba(255,255,255,0.5) 5px 6px, transparent 6px 9px); opacity: 0.55; }
@media (prefers-reduced-motion: reduce) { .pass-card::after { animation: none; } }

/* Perks grid (shown next to the plans, and while a pass is active) */
.perk-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0 0; }
.perk { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.perk .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--gold); flex: 0 0 auto; margin-bottom: 12px; }
.perk strong { color: var(--ink); font-size: 0.88rem; font-weight: 600; line-height: 1.35; }

/* Plan picker: a radiogroup of rows, not separate tilted cards — matches
   the gold-foil page's calmer, list-like "choose one" pattern. */
.pass-pick-h { margin: 28px 4px 12px; }
.plan-grid { display: flex; flex-direction: column; gap: 10px; }
.plan-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 16px;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.plan-radio.selected { background: var(--gold-soft); border-color: var(--gold); }
.plan-radio-dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--muted); }
.plan-radio.selected .plan-radio-dot { border: 7px solid var(--gold); background: var(--on-coral); }
.plan-radio-body { flex: 1; min-width: 0; }
.plan-radio-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; }
.plan-radio-body small { display: block; margin-top: 3px; font-size: 0.82rem; color: var(--ink-2); }
.plan-radio-price { text-align: right; white-space: nowrap; }
.plan-radio-price strong { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.plan-radio-price small { font-size: 0.76rem; color: var(--ink-2); }
.plan-radio-cover { position: absolute; inset: 0; border-radius: inherit; }
.plan-ribbon { padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--on-coral); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

/* Checkout step (payment method + confirm) */
.pass-checkout { display: grid; gap: 16px; }
.pass-pay-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; padding-top: 10px; border-top: 1px solid var(--line); }
.pass-pay-row strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--accent-text); }

/* Signed-out prompt */
.pass-signin { text-align: center; padding: 36px 20px; display: grid; gap: 8px; justify-items: center; }
.pass-signin .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--accent-text); margin-bottom: 6px; }
.pass-signin h2 { margin: 0; }
.pass-signin p { max-width: 40ch; }
.pass-signin .btn { margin-top: 6px; }

/* A previous pass that lapsed without auto-renew */
.pass-lapsed { background: var(--gold-soft); color: var(--ink-2); border: 1px solid rgba(254,176,61,0.5); border-radius: 14px; padding: 12px 16px; }
