/* Bonsai Gaming storefront — the boutique design language, live and responsive. */

:root {
  --bg: #F2ECDF;
  --ink: #24251E;
  --ink-2: #22231C;
  --muted: #6B6A5C;
  --muted-2: #5B5A4E;
  --soft: #9A968A;
  --label: #8C8877;
  --gold: #9A7B36;
  --gold-deep: #7A6026;
  --accent: #3B4A38;
  --accent-ink: #F4EFE3;
  --line: rgba(60, 55, 40, .12);
  --line-strong: rgba(60, 55, 40, .22);
  --glass: rgba(255, 255, 255, .5);
  --glass-2: rgba(255, 255, 255, .42);
  --shadow: 0 24px 50px -32px rgba(50, 45, 30, .5);
  --danger: #9A4A32;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
.bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 720px at 80% -10%, rgba(123, 139, 111, .20), transparent 60%),
    radial-gradient(1000px 700px at 6% 10%, rgba(200, 178, 120, .18), transparent 62%),
    radial-gradient(900px 900px at 50% 118%, rgba(90, 110, 86, .10), transparent 60%),
    linear-gradient(180deg, #F5F0E4, #EDE7D8);
}
::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; color: var(--ink); }
img, svg { display: block; }

.serif { font-family: 'Cormorant Garamond', serif; }
.micro { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--label); }
.eyebrow { font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

#app { position: relative; z-index: 2; }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  background: rgba(244, 239, 228, .74); border-bottom: 1px solid rgba(60, 55, 40, .10);
}
nav.site {
  max-width: 1240px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; background: none; border: none; padding: 0; color: var(--accent); }
.brand b { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 22px; color: var(--ink); line-height: 1; }
.navlinks { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); flex-wrap: nowrap; justify-content: flex-end; }
.nav-sections { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 22px); }
.nav-account { display: flex; align-items: center; gap: 13px; padding-left: clamp(14px, 1.8vw, 22px); border-left: 1px solid rgba(60, 55, 40, .14); }
.navlink {
  position: relative; display: flex; align-items: center; gap: 7px; background: none; border: none;
  font-family: 'Jost', sans-serif; font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: #4A4A3E; padding: 5px 0; transition: color .2s;
}
.navlink:hover { color: var(--ink); }
.navlink.on::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: var(--accent); }
.nav-cart {
  display: flex; align-items: center; gap: 7px; border-radius: 999px;
  background: rgba(59, 74, 56, .07); border: 1px solid rgba(59, 74, 56, .16);
  color: var(--accent); padding: 7px 15px;
  font-family: 'Jost', sans-serif; font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
}
.nav-cart:hover { background: rgba(59, 74, 56, .12); }
.cart-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.nav-balance {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  background: rgba(154, 123, 54, .13); border: 1px solid rgba(154, 123, 54, .32);
  color: var(--gold-deep); padding: 6px 14px 6px 11px; transition: background .2s;
}
.nav-balance:hover { background: rgba(154, 123, 54, .21); }
.nav-balance .nb-ico { display: inline-flex; align-items: center; color: var(--gold-deep); }
.nav-balance .nb-amt { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .02em; color: var(--gold-deep); }
.nav-balance.on { box-shadow: inset 0 0 0 1px rgba(154, 123, 54, .45); }
.nav-user {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(60, 55, 40, .05); border: 1px solid rgba(60, 55, 40, .16);
  color: #4A4A3E; padding: 7px 14px;
  font-family: 'Jost', sans-serif; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s;
}
.nav-user:hover { background: rgba(60, 55, 40, .09); color: var(--ink); }

/* ---------- layout ---------- */

main { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4vw, 52px) clamp(16px, 4vw, 40px) clamp(48px, 6vw, 96px); }
.view { animation: fadeUp .5s ease both; }
.section-head { margin-bottom: clamp(18px, 3vw, 32px); }
.section-head h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(34px, 5vw, 58px); color: var(--ink-2); margin: 10px 0 0; line-height: 1.02; }
.lede { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 12px 0 0; max-width: 56ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; border: none;
  background: var(--accent); color: var(--accent-ink);
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 12px 26px -12px rgba(59, 74, 56, .75);
  transition: transform .2s, box-shadow .25s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(59, 74, 56, .85); }
.btn.ghost { background: transparent; color: #3A3A30; border: 1px solid var(--line-strong); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); background: rgba(59, 74, 56, .05); }
.btn.block { width: 100%; }
.btn.small { padding: 10px 18px; font-size: 10.5px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: none; padding: 0; color: var(--accent); font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.link-btn:hover { color: var(--gold); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.chip.processing { background: rgba(154, 123, 54, .13); color: var(--gold-deep); }
.chip.delivered { background: rgba(59, 74, 56, .1); color: var(--accent); }
.chip.cancelled, .chip.expired { background: rgba(60, 55, 40, .08); color: var(--soft); }
.chip.awaiting_payment { background: rgba(154, 123, 54, .16); color: var(--gold-deep); border: 1px dashed rgba(154, 123, 54, .45); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.field input, .field select {
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(70, 64, 44, .18); border-radius: 11px;
  padding: 12px 14px; outline: none; width: 100%; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 74, 56, .12); }
.form-error { color: var(--danger); font-size: 14.5px; }

.card-glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
}

/* ---------- gift card face ---------- */

/* The whole face scales proportionally with its own width (container units),
   so it is pixel-faithful at every size — hero, showcase, cart, detail — and
   its rows can never overlap. */
.face {
  position: relative; width: 100%; aspect-ratio: 1585 / 1000; container-type: inline-size;
  border-radius: 2.6cqw; overflow: hidden; isolation: isolate; color: var(--f-ink);
  background: var(--f-bg); border: 1px solid var(--f-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(52,46,30,.10), 0 22px 44px -26px rgba(52,46,30,.55);
}
.face .sheen { position: absolute; inset: 0; background: linear-gradient(158deg, rgba(255,255,255,.42), rgba(255,255,255,0) 44%); pointer-events: none; z-index: 1; }
.face .streak { display: none; }
@keyframes sheen { 0% { transform: translateX(-130%) rotate(8deg); } 55%, 100% { transform: translateX(260%) rotate(8deg); } }
.face .inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 4cqw; }
.face .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.6cqw; }
.face .logo { display: flex; align-items: center; gap: 2.4cqw; }
.face .leaf { width: 5.3cqw; height: 5.3cqw; opacity: .9; flex-shrink: 0; }
.face .brand2 { line-height: 1; }
.face .brand2 b { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 5.1cqw; letter-spacing: .01em; line-height: 1; }
.face .brand2 span { display: block; font-family: 'Jost', sans-serif; font-size: 2.35cqw; letter-spacing: .44em; margin-top: .55cqw; color: var(--f-sub); }
.face .tag { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 2.5cqw; letter-spacing: .22em; text-transform: uppercase; padding: 1.4cqw 3cqw; border-radius: 999px; background: var(--f-tagbg); color: var(--f-tagink); white-space: nowrap; }
.face .mid { display: flex; flex-direction: column; gap: 3cqw; }
.face .chipico { width: 9cqw; height: 6.6cqw; border-radius: 1.7cqw; background: linear-gradient(135deg, var(--f-chipa), var(--f-chipb)); box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -2px 4px rgba(0,0,0,.16); }
.face .digits { font-family: 'Jost', sans-serif; font-size: 3.9cqw; letter-spacing: .18em; }
.face .digits .dim { opacity: .42; margin: 0 .4em; }
.face .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqw; }
.face .cap { font-family: 'Jost', sans-serif; font-size: 2.2cqw; letter-spacing: .26em; text-transform: uppercase; color: var(--f-sub); margin-bottom: 1.1cqw; }
.face .who { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 4.5cqw; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.face .vt { font-family: 'Jost', sans-serif; font-size: 3.9cqw; letter-spacing: .16em; text-align: right; line-height: 1; }

/* ---------- home ---------- */

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(20px, 4vw, 48px) 0 clamp(20px, 4vw, 40px); }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(42px, 7vw, 76px); line-height: 1.01; letter-spacing: -.01em; color: var(--ink-2); margin: 16px 0 0; text-wrap: balance; }
.hero p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.62; color: var(--muted-2); max-width: 47ch; margin: 22px 0 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(60, 55, 40, .14); }
.hero-stats .v { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 30px; color: #2A2A22; line-height: 1; }
.hero-fan { position: relative; height: clamp(320px, 42vw, 460px); }
.hero-fan .fc { position: absolute; animation: floaty 9s ease-in-out infinite; backface-visibility: hidden; }
.hero-fan .fc:nth-child(1) { top: 4%; left: 15%; width: 66%; z-index: 1; --rot: -3deg; animation-duration: 8s; }
.hero-fan .fc:nth-child(2) { top: 32%; left: 0; width: 60%; z-index: 3; --rot: -9deg; animation-duration: 9.4s; animation-delay: .5s; }
.hero-fan .fc:nth-child(3) { top: 18%; right: 0; width: 55%; z-index: 2; --rot: 8deg; animation-duration: 8.7s; animation-delay: .9s; }

.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 206px), 1fr)); gap: clamp(18px, 2vw, 26px); }
.series-tile { text-align: left; background: none; border: none; padding: 0; display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.series-tile .series-art { transition: transform .3s; }
.series-tile:hover .series-art { transform: translateY(-5px); }
.series-tile .name { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 20px; color: #2A2A22; }
.series-tile .cnt { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.blurb { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; }

.rail { display: flex; gap: clamp(16px, 2vw, 24px); overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; }
.rail > * { flex: 0 0 auto; width: clamp(238px, 58vw, 300px); scroll-snap-align: start; }

/* ---------- collection ---------- */

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: clamp(20px, 3vw, 30px); }
.chips-row { display: flex; gap: 9px; flex-wrap: wrap; }
.pill { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.45); color: #4A4A3E; border: 1px solid rgba(70,64,44,.18); font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: all .2s; }
.pill.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.tile { text-align: left; background: none; border: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 12px; transition: transform .3s; }
.tile:hover { transform: translateY(-5px); }
.tile .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tile .ser { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.tile .price { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 22px; color: var(--ink); }
.tile .loc { font-size: 14px; color: var(--muted); }

/* Collection — dense list */
.filters { padding: clamp(16px, 2.2vw, 24px); margin-bottom: clamp(22px, 3vw, 34px); }
.filters .frow { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { flex: 1 1 150px; min-width: 130px; }
.reset-btn { background: none; border: none; color: var(--gold-deep); font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 4px; white-space: nowrap; }

.collist { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--glass-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -32px rgba(50, 45, 30, .5); }
.collist .inner2 { min-width: 900px; }
.lrow { display: grid; grid-template-columns: 56px minmax(78px, .72fr) minmax(70px, .6fr) minmax(108px, 1fr) minmax(126px, 1.1fr) minmax(70px, .55fr) 90px 42px; gap: 14px; align-items: center; padding: 12px 22px; }
.lhead { border-bottom: 1px solid var(--line); }
.lhead span { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.lbody { border-top: 1px solid rgba(60, 55, 40, .07); cursor: pointer; transition: background .18s; background: none; border-left: none; border-right: none; border-bottom: none; width: 100%; text-align: left; }
.lbody:hover { background: rgba(59, 74, 56, .05); }
.lbody .miniart { width: 56px; }
.swatch { position: relative; display: block; width: 56px; height: 35px; border-radius: 6px; overflow: hidden; border: 1px solid; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 5px -1px rgba(50, 45, 30, .28); }
.swatch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(255, 255, 255, .5), transparent 55%); pointer-events: none; }
.swatch .sw-chip { position: absolute; left: 6px; top: 7px; width: 11px; height: 8px; border-radius: 2px; box-shadow: inset 0 .5px .5px rgba(255, 255, 255, .55), inset 0 -1px 1.5px rgba(0, 0, 0, .18); z-index: 1; }
.swatch .sw-top { position: absolute; left: 21px; top: 9px; right: 6px; height: 2.5px; border-radius: 2px; opacity: .3; }
.swatch .sw-l { position: absolute; left: 6px; bottom: 7px; width: 62%; height: 2.5px; border-radius: 2px; opacity: .24; }
.swatch .sw-l2 { position: absolute; left: 6px; bottom: 13px; width: 40%; height: 2px; border-radius: 2px; opacity: .16; }
.lbody .ref { font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: .1em; color: #2C2C22; }
.lbody .refsub { font-family: 'Jost', sans-serif; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-top: 3px; }
.lbody .owner { font-family: 'Cormorant Garamond', serif; font-size: 19px; color: #2A2A22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbody .lloc { font-size: 15px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbody .lcontact { font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .02em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbody .ltype { font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbody .lcontact.na, .lbody .ltype.na, .lbody .owner.na, .meta-grid .v.na { color: var(--soft); opacity: .6; font-style: normal; letter-spacing: .08em; }
.lbody .owner.na { font-family: 'Jost', sans-serif; font-size: 12px; }
.lbody .lprice { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 21px; color: var(--ink); text-align: right; }
.add-ic { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(60, 55, 40, .14); color: var(--accent); justify-self: end; }
.add-ic.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.add-ic:hover { background: rgba(59, 74, 56, .08); }

.pager { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 26px); flex-wrap: wrap; margin-top: clamp(26px, 3.4vw, 44px); }
.pager .btn[disabled] { opacity: .4; pointer-events: none; }
.pageinfo { font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.empty { text-align: center; padding: clamp(46px, 8vw, 96px) 20px; color: var(--muted); }
.empty .big { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(24px, 3.4vw, 34px); color: var(--muted-2); }

/* ---------- modal / drawer ---------- */

.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(34, 32, 24, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; animation: fadeIn .3s ease both; }
.scrim.center { align-items: center; justify-content: center; padding: clamp(14px, 3vw, 32px); overflow-y: auto; }
.scrim.side { justify-content: flex-end; }
.modal-card {
  width: min(940px, 100%); background: rgba(249, 245, 236, .93);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(30, 26, 16, .6); position: relative;
  animation: riseIn .5s cubic-bezier(.2, .8, .2, 1) both;
}
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.detail-art { padding: clamp(24px, 4vw, 46px); display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.4), transparent 60%); }
.detail-art .holder { width: 100%; max-width: 400px; transform: perspective(1200px); transition: transform .12s ease; will-change: transform; }
.detail-body { padding: clamp(24px, 4vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.detail-price { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(38px, 6vw, 56px); line-height: 1; color: var(--ink); }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 24px 0; padding: 22px 0; border-top: 1px solid rgba(60,55,40,.14); border-bottom: 1px solid rgba(60,55,40,.14); }
.meta-grid .v { font-family: 'Cormorant Garamond', serif; font-size: 19px; color: #2A2A22; }
.x-btn { position: absolute; top: 16px; right: 16px; z-index: 5; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.6); border: 1px solid rgba(60,55,40,.14); color: #3A3A30; font-size: 16px; }
.x-btn:hover { background: rgba(255,255,255,.9); }

.drawer {
  width: min(440px, 100%); height: 100%; overflow-y: auto;
  background: rgba(249, 245, 236, .96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, .5); box-shadow: -30px 0 80px -30px rgba(30, 26, 16, .5);
  padding: clamp(22px, 4vw, 40px); animation: slideIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
.drawer h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 32px; color: var(--ink); margin: 0 0 6px; }

/* ---------- cart / checkout ---------- */

.cart-line { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.cart-line .art { flex: 0 0 auto; width: 100px; }
.cart-line .info { flex: 1 1 auto; min-width: 0; }
.summary { padding: clamp(22px, 3vw, 30px); }
.summary .row { display: flex; justify-content: space-between; font-size: 16px; color: var(--muted-2); margin-bottom: 12px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 22px; }
.summary .total .amt { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 30px; color: var(--ink); }

/* ---------- orders / account ---------- */

.order { background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 2.4vw, 24px); }
.order .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.ocode { font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.ometa { font-size: 14px; color: var(--soft); margin-top: 4px; }
.ohead-r { display: flex; align-items: center; gap: 14px; }
.ototal { font-weight: 600; font-size: 23px; color: var(--ink); }
/* One composed panel per purchased card. */
.oitem { background: rgba(255, 255, 255, .55); border: 1px solid rgba(70, 64, 44, .12); border-radius: 14px; padding: 14px clamp(14px, 2vw, 18px); margin-top: 12px; }
.oitem-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.oitem-id { flex: 1 1 auto; min-width: 0; }
.oitem-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.2; }
.oitem-sub { font-size: 13.5px; color: var(--soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oitem-price { flex: 0 0 auto; font-weight: 600; font-size: 19px; color: var(--ink); }
.oitem.expandable .oitem-head { cursor: pointer; }
.oitem.expandable .oitem-head:hover .oitem-title { color: var(--accent); }
.oitem-tgl { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 999px; border: 1px solid rgba(70, 64, 44, .2); display: grid; place-items: center; color: var(--accent); font-size: 12px; transition: transform .25s, background .2s; }
.oitem.open .oitem-tgl { transform: rotate(180deg); background: rgba(59, 74, 56, .07); }
.ofoot { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(60, 55, 40, .08); }

.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 40px; }

/* ---------- auth ---------- */

.auth-wrap { max-width: 420px; margin: clamp(20px, 6vw, 70px) auto; }
.auth-card { padding: clamp(28px, 5vw, 40px); }
.tabs { display: flex; gap: 8px; margin: 18px 0 22px; }
.tab { flex: 1; padding: 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: #4A4A3E; font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.tab.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- wallet ---------- */

.wallet-hero { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(26px, 5vw, 40px); background: linear-gradient(150deg, #2C4034, #35503F 55%, #1E2E25); color: #EAF1E7; box-shadow: 0 30px 60px -30px rgba(30, 44, 34, .7); margin-bottom: 16px; }
.wallet-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(158deg, rgba(255, 255, 255, .16), transparent 46%); pointer-events: none; }
.wh-amt { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(44px, 8vw, 66px); line-height: 1; margin-top: 10px; }

.wrow { display: flex; align-items: center; gap: 13px; padding: 12px 2px; border-bottom: 1px solid rgba(60, 55, 40, .08); }
.wlist .wrow:last-child, .card-glass > .wrow:last-child { border-bottom: none; }
.wrow-ic { flex-shrink: 0; width: 34px; display: flex; align-items: center; justify-content: center; }
.wrow-ic svg { width: 28px; height: 28px; }
.hist-badge { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-family: 'Jost', sans-serif; }
.hist-badge.pos { background: rgba(59, 74, 56, .08); color: var(--accent); }
.hist-badge.neg { background: rgba(154, 74, 50, .08); color: var(--danger); }
.wrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wrow-t { font-size: 15.5px; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow-s { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .08em; color: var(--soft); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow-amt { flex-shrink: 0; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 19px; }
.wrow-amt.pos { color: var(--accent); }
.wrow-amt.neg { color: var(--danger); }

.af-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 16px; }
.af-step2:not([hidden]) { animation: riseIn .4s cubic-bezier(.2, .8, .2, 1) both; }
.af-step2 .af-methods { margin-top: 0; }
.af-method { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 15px 8px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); transition: transform .2s, box-shadow .25s, border .2s; }
.af-method:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(50, 45, 30, .5); border-color: var(--line-strong); }
.af-method svg { display: block; }
.af-method .t { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #4A4A3E; }
.af-method .s { font-family: 'Jost', sans-serif; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.af-method.off { opacity: .5; pointer-events: none; }

.copyline { display: flex; align-items: center; gap: 10px; width: 100%; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-top: 10px; }
.copy-btn { flex-shrink: 0; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 7px 14px; font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.copy-btn:hover { background: rgba(59, 74, 56, .07); }
.statusline { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px 0 4px; color: var(--muted); font-size: 15px; text-align: center; }
.pulse { width: 9px; height: 9px; border-radius: 999px; background: var(--gold); animation: pulse 1.6s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.spinner { width: 46px; height: 46px; border-radius: 999px; border: 3px solid rgba(59, 74, 56, .15); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- support tickets ---------- */
.ticket-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid rgba(60, 55, 40, .08); padding: 15px 4px; cursor: pointer; transition: background .15s; }
.ticket-row:last-child { border-bottom: none; }
.ticket-row:hover { background: rgba(59, 74, 56, .04); }
.attach-label { display: inline-flex; align-items: center; gap: 8px; font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .06em; text-transform: none; color: var(--accent); padding: 8px 12px; border: 1px dashed rgba(59, 74, 56, .35); border-radius: 10px; background: rgba(255, 255, 255, .45); }
.attach-label:hover { border-color: var(--accent); background: rgba(59, 74, 56, .06); }
.attach-clear { font-size: 11px; }
/* The delivered goods: card number / exp / redeem code inside an order. */
/* The delivered details: quiet labeled grid inside the card's panel. */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 13px clamp(16px, 2.4vw, 28px); margin-top: 13px; padding-top: 13px; border-top: 1px dashed rgba(70, 64, 44, .2); }
.creds.billing { border-top-style: solid; border-top-color: rgba(70, 64, 44, .1); }
.cred { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cred-num { grid-column: 1 / -1; }
.cred-l { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.cred-v { font-family: 'Jost', sans-serif; font-size: 15.5px; letter-spacing: .12em; color: var(--ink); background: none; border: none; padding: 0; text-align: left; overflow-wrap: anywhere; }
.cred-v.plain { font-family: 'EB Garamond', serif; font-size: 16.5px; letter-spacing: .015em; }
.cred-v.copyable { cursor: copy; align-self: flex-start; border-bottom: 1px dashed rgba(59, 74, 56, .35); transition: color .15s, border-color .15s; }
.cred-v.copyable:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cred-num .cred-v { font-size: clamp(17px, 2.4vw, 20px); letter-spacing: .16em; }

/* ---------- footer ---------- */

footer.site { position: relative; z-index: 2; border-top: 1px solid rgba(60,55,40,.14); }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: clamp(30px, 4vw, 52px) clamp(16px, 4vw, 40px); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-inner .micro { color: var(--soft); }

/* ---------- toast ---------- */

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 120;
  background: rgba(36, 37, 30, .94); color: #F2ECDF;
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .1em;
  padding: 13px 24px; border-radius: 999px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
  animation: toastIn .3s ease both; max-width: min(90vw, 480px); text-align: center;
}
.toast.err { background: rgba(112, 50, 33, .96); }

/* ---------- animations ---------- */

@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-20px) rotate(var(--rot, 0deg)); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  nav.site { padding: 11px 14px; gap: 10px; }
  .navlinks { gap: 14px; width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; }
  .navlinks::-webkit-scrollbar { display: none; }
  .nav-sections, .nav-account { flex: 0 0 auto; }
  .nav-sections { gap: 15px; }
  .nav-account { gap: 12px; padding-left: 15px; }
  .navlink, .nav-balance, .nav-cart, .nav-user { flex: 0 0 auto; }
  .navlink { font-size: 11px; letter-spacing: .1em; padding: 5px 0; }
  .nav-cart { padding: 6px 13px; }
  .brand b { font-size: 20px; }
}
@media (max-width: 720px) {
  .detail-grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .drawer { width: 100%; }
}

/* ---------- mobile · comfort pass (additive only — desktop rules above are untouched) ----------
   ≤900px so half-snapped desktop windows and tablets get the comfortable layout too. */

@media (max-width: 900px) {
  /* global comfort */
  .link-btn { padding: 8px 2px; }
  .toast { width: calc(100vw - 36px); max-width: 420px; text-align: center; bottom: 18px; }
  .foot-inner { flex-direction: column; justify-content: center; text-align: center; gap: 16px; }
  .foot-inner > div:first-child { justify-content: center; }

  /* collection — the dense table becomes two-line touch cards */
  .collist { overflow-x: hidden; }
  .collist .inner2 { min-width: 0; }
  .lrow.lhead { display: none; }
  .lrow.lbody {
    grid-template-columns: 52px auto minmax(0, 1fr) auto 44px;
    grid-template-areas:
      "art ref ref price add"
      "art gen loc loc   add";
    gap: 3px 12px;
    padding: 13px 14px;
  }
  .lbody .miniart { grid-area: art; align-self: center; }
  .lbody .refcol { grid-area: ref; }
  .lbody .lprice { grid-area: price; font-size: 19px; align-self: start; }
  .lbody .add-ic { grid-area: add; align-self: center; width: 44px; height: 44px; }
  .lbody .owner { grid-area: gen; font-family: 'Jost', sans-serif; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); align-self: center; }
  .lbody .owner::after { content: '·'; margin-left: 9px; color: var(--soft); }
  .lbody .lloc { grid-area: loc; font-size: 13.5px; align-self: center; }
  .lbody .lcontact { display: none; }

  /* collection filters — tidy 2-column grid, chips become a scroll strip */
  .filters .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
  .filters .field { min-width: 0; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .chips-row::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; padding: 10px 16px; }

  /* centered modals (card detail, lightbox) — tall content scrolls from the top */
  .scrim.center { padding: 10px; align-items: flex-start; }
  .scrim.center > * { margin: auto; }
  .modal-card { border-radius: 18px; }
  .detail-body > div:last-of-type { flex-direction: column; }
  /* the buttons carry inline flex-basis:150px which would become HEIGHT in a column — neutralize it */
  .detail-body > div:last-of-type .btn { flex: 0 0 auto !important; min-height: 50px; }

  /* cart */
  .cart-line { gap: 12px; padding: 12px; }
  .cart-line .art { width: 76px; }

  /* orders — the delivered credentials stack with big copy targets */
  .creds { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .cred-v { font-size: 16px; }
  .cred-v.copyable { align-self: flex-start; padding: 3px 0 6px; }

  /* pager */
  .pager { gap: 10px; }
  .pager .btn { min-height: 46px; flex: 1 1 130px; }
  .pageinfo { order: 3; flex-basis: 100%; text-align: center; }

  /* home — network tiles two-up */
  .series-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .series-tile { gap: 10px; }
  .series-tile .name { font-size: 17px; }
  .blurb { font-size: 13px; line-height: 1.45; }
  .series-tile .cnt { margin-top: 5px; }

  .auth-wrap { margin-top: 14px; }
}

@media (max-width: 480px) {
  .hero-fan { height: clamp(240px, 76vw, 320px); }
  .hero-stats { gap: 16px 22px; }
  .meta-grid { gap: 14px 16px; }
  .summary .total .amt { font-size: 26px; }
  .drawer h2 { font-size: 27px; }
  .wh-amt { font-size: clamp(38px, 11vw, 52px); }
}
