/* iLounge Mini App — "Graphite & Champagne"
   Quiet graphite surfaces, liquid-glass panels with a thin rim light, one warm champagne accent taken from the logo's "i".
   Colors live in the :root block below: change them there and the whole store follows. */
:root {
  color-scheme: dark;
  --bg: #08090b;
  --text: #f5f5f7;
  --muted: #a4a8af;
  --dim: #6d7279;
  --gold: #dcc08f;
  --gold-hi: #f2e1bb;
  --gold-lo: #a68350;
  --ok: #86d4ae;
  --bad: #ff8f8f;
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(255, 255, 255, .20);
  --r: 24px;
  --ease: cubic-bezier(.22, .9, .24, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: rgba(220, 192, 143, .35); }
.m-only { display: revert; }
.d-only { display: none !important; }

/* ================= background: graphite, soft light pools, faint caustics, film grain ================= */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(130% 90% at 50% -15%, #171a1f 0%, var(--bg) 62%); }
.pool { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; translate: 0 calc(var(--sy, 0) * -.035px); }
.p1 { width: 64vmax; height: 64vmax; left: -26vmax; top: -32vmax; background: radial-gradient(circle, rgba(150, 172, 198, .30), transparent 66%); animation: drift1 32s ease-in-out infinite alternate; }
.p2 { width: 72vmax; height: 72vmax; right: -40vmax; top: 12vh; background: radial-gradient(circle, rgba(64, 118, 138, .26), transparent 64%); animation: drift2 38s ease-in-out infinite alternate; }
.p3 { width: 62vmax; height: 62vmax; left: 8vmax; bottom: -44vmax; background: radial-gradient(circle, rgba(222, 192, 142, .20), transparent 64%); animation: drift3 35s ease-in-out infinite alternate; }
.rays { position: absolute; inset: -12% -20% 45% -20%; background: repeating-linear-gradient(103deg, rgba(205, 224, 238, .05) 0 36px, rgba(205, 224, 238, 0) 36px 120px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%);
  filter: blur(12px); transform-origin: 50% 0; animation: sway 18s ease-in-out infinite alternate; }
.grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
@keyframes drift1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-16vmax, -8vmax, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(12vmax, -12vmax, 0) scale(1.08); } }
@keyframes sway { from { transform: skewX(-6deg) translateX(-3%); opacity: .7; } to { transform: skewX(6deg) translateX(3%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pool, .rays, .card, .view { animation: none !important; } }

/* ================= liquid glass: translucent fill + blurred backdrop + gradient rim light ================= */
.glass {
  position: relative;
  background: linear-gradient(155deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .05));
  border-radius: var(--r);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 40px -20px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .25);
}
.glass::after, .rim::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, .13) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}

/* ================= layout ================= */
#app { position: relative; max-width: 600px; margin: 0 auto; padding-block: calc(10px + var(--safe-t)) calc(120px + var(--safe-b)); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); min-height: 100vh; }
.view { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cardin { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

.hdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 2px 14px; }
.logo { display: block; line-height: 0; border-radius: 10px; transition: transform .5s var(--ease), opacity .3s; }
.logo img { height: 32px; width: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }
.logo:active { transform: scale(.95); opacity: .8; }
.dnav, .hright { display: none; }

.hero { padding: 8px 4px 18px; }
.hero h1 { margin: 0; font-size: 34px; line-height: 1.06; font-weight: 600; letter-spacing: -.035em; text-wrap: balance;
  background: linear-gradient(180deg, #fff 20%, #9fa4ac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; max-width: 34ch; }

h1.title { font-size: 30px; line-height: 1.1; margin: 6px 4px 18px; letter-spacing: -.035em; font-weight: 600; }

.eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
h2.sec { margin: 38px 4px 4px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
h2.sec em { font-style: normal; font-size: 13px; color: var(--dim); font-weight: 500; letter-spacing: 0; }
h3.sub { margin: 20px 4px 12px; display: flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
h3.sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.results { margin: 22px 4px 12px; color: var(--muted); font-size: 14px; }

/* ================= search + chips ================= */
.search { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 50px; border-radius: 999px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; }
.search input::placeholder { color: var(--dim); }
.search:focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(220, 192, 143, .45), 0 0 28px -6px rgba(220, 192, 143, .35); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px)); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 17px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--muted); scroll-snap-align: start; white-space: nowrap;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: color .3s, background .4s var(--ease), transform .3s var(--ease); }
.chip:active { transform: scale(.95); }
.chip.on { color: #0b0c0e; background: linear-gradient(180deg, #fff, #dfe2e7); box-shadow: 0 8px 20px -8px rgba(255, 255, 255, .4), inset 0 1px 0 #fff; }
.chips.subs { padding-top: 8px; }
.chips.subs .chip { height: 32px; font-size: 13px; padding: 0 14px; }
.chips.subs .chip.on { color: #2a1d08; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 8px 20px -8px rgba(220, 192, 143, .6), inset 0 1px 0 rgba(255, 255, 255, .7); }

/* ================= product grid + cards ================= */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; padding: 8px; cursor: pointer; overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  animation: cardin .8s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 14) * 45ms); }
.card::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .11), transparent 62%); }
.card:active { transform: scale(.975); }
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 34px 54px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .04); }
  .card:hover::before { opacity: 1; }
  .card:hover .thumb img { transform: scale(1.06); }
}
.thumb { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--r) - 8px); overflow: hidden; background: #111317; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .16), transparent 55%), linear-gradient(160deg, hsl(var(--h) 9% 23%), hsl(var(--h) 11% 11%)); }
.ph span { font-size: 46px; font-weight: 200; letter-spacing: -.02em; color: rgba(255, 255, 255, .72); }
.badge { position: absolute; top: 9px; left: 9px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #2a1d08;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 8px 6px; }
.card h3 { margin: 0; font-size: 15.5px; line-height: 1.22; font-weight: 600; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card p { margin: 4px 0 0; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.price { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price s { margin-left: 7px; font-size: 12.5px; font-weight: 400; color: var(--dim); }

.round { position: relative; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--text);
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-hi), inset 0 1px 0 rgba(255, 255, 255, .16); transition: transform .45s var(--ease), background .4s, color .3s; }
.round:active { transform: scale(.86); }
.round svg { width: 17px; height: 17px; }
@media (hover: hover) { .round:hover { background: rgba(255, 255, 255, .16); } }
.round.on { color: #2a1d08; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 8px 18px -6px rgba(220, 192, 143, .6), inset 0 1px 0 rgba(255, 255, 255, .6); }

/* ================= buttons & forms ================= */
.btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  color: #0b0c0e; background: linear-gradient(180deg, #fff 0%, #e8eaee 55%, #d0d4db 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -10px 18px rgba(0, 0, 0, .07), 0 16px 30px -12px rgba(255, 255, 255, .3), 0 6px 14px rgba(0, 0, 0, .35); transition: transform .4s var(--ease), opacity .3s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .8) 50%, transparent 62%); transform: translateX(-130%); transition: transform 1s var(--ease); pointer-events: none; }
@media (hover: hover) { .btn:hover::after { transform: translateX(130%); } }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; }
.btn.ghost { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn.ghost::after { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .14) 50%, transparent 62%); }
.btn.gold { color: #2a1d08; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 16px 30px -12px rgba(220, 192, 143, .5), 0 6px 14px rgba(0, 0, 0, .3); }
.btn.danger { color: var(--bad); background: rgba(255, 110, 110, .08); box-shadow: inset 0 0 0 1px rgba(255, 130, 130, .25); }
.btn.sm { height: 40px; width: auto; padding: 0 18px; font-size: 14px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, .2); border-top-color: #0b0c0e; animation: rot .8s linear infinite; }
.btn.ghost .spin { border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }
@keyframes rot { to { transform: rotate(360deg); } }

.field { display: block; margin: 0 0 14px; }
.field > span { display: block; margin: 0 6px 7px; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.input, .select, .area { width: 100%; height: 50px; padding: 0 16px; border-radius: 16px; outline: 0; font-size: 16px; color: var(--text); background: rgba(255, 255, 255, .05);
  border: 0; box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 6px rgba(0, 0, 0, .3); transition: box-shadow .3s; }
.area { height: auto; min-height: 112px; padding: 13px 16px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .area:focus { box-shadow: inset 0 0 0 1px rgba(220, 192, 143, .6), 0 0 0 4px rgba(220, 192, 143, .12); }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 22px, calc(100% - 16px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option, .select optgroup { background: #17191d; color: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { margin: -6px 6px 14px; font-size: 12px; color: var(--dim); line-height: 1.45; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px; margin-bottom: 14px; font-size: 15px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; z-index: 2; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px var(--line); transition: .4s var(--ease); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); transition: .4s var(--ease); }
.switch input:checked + i { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: none; }
.switch input:checked + i::after { transform: translateX(20px); }
.filepick { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.filepick .pv { width: 64px; height: 48px; border-radius: 12px; overflow: hidden; flex: none; background: rgba(255, 255, 255, .05); display: grid; place-items: center; color: var(--dim); }
.filepick .pv img { width: 100%; height: 100%; object-fit: cover; }
.filepick .pv svg { width: 22px; height: 22px; }
.filepick .meta { flex: 1; min-width: 0; font-size: 13px; color: var(--dim); line-height: 1.35; }
.filepick .meta b { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.filepick input[type=file] { display: none; }

/* ================= bottom tab bar (phone) with a sliding glass indicator ================= */
.tabbar { position: fixed; left: 0; right: 0; bottom: calc(14px + var(--safe-b)); z-index: 20; max-width: 480px; width: calc(100% - 32px); margin: 0 auto; display: flex; padding: 6px; border-radius: 999px;
  background: linear-gradient(155deg, rgba(58, 62, 70, .6), rgba(22, 24, 28, .62)); -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 24px 50px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.ind { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .65s var(--ease), width .65s var(--ease), opacity .3s; }
.tab { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; border-radius: 999px; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .02em; transition: color .4s; }
.tab svg { width: 23px; height: 23px; transition: transform .5s var(--ease), color .4s; }
.tab.on { color: var(--text); }
.tab.on svg { color: var(--gold-hi); transform: translateY(-1px) scale(1.06); }
.cnt { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #2a1d08;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 4px 10px rgba(0, 0, 0, .4); transition: transform .4s var(--ease); }
.cnt[data-n="0"] { display: none; }

/* ================= cart ================= */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 22px; }
.item .t { width: 62px; height: 62px; border-radius: 15px; overflow: hidden; flex: none; }
.item .t img, .item .t .ph { width: 100%; height: 100%; object-fit: cover; }
.item .t .ph span { font-size: 24px; }
.item .info { flex: 1; min-width: 0; }
.item .info b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.item .info small { color: var(--dim); font-size: 12px; }
.item .pr { font-weight: 600; font-variant-numeric: tabular-nums; }
.icon-btn { position: relative; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, transform .4s var(--ease); }
.icon-btn:active { transform: scale(.9); }
@media (hover: hover) { .icon-btn:hover { background: rgba(255, 255, 255, .13); color: var(--text); } }
.icon-btn svg { width: 17px; height: 17px; }
.promo { display: flex; gap: 10px; margin-top: 14px; }
.promo .input { flex: 1; text-transform: uppercase; letter-spacing: .1em; }
.promo .btn { width: auto; height: 50px; padding: 0 22px; }
.summary { margin-top: 14px; padding: 16px 20px; border-radius: 24px; }
.summary .ln { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.summary .ln.disc { color: var(--ok); }
.summary .ln.tot { margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.summary .ln.tot span:last-child { color: var(--gold); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 13px 15px; border-radius: 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted); background: rgba(220, 192, 143, .06); box-shadow: inset 0 0 0 1px rgba(220, 192, 143, .18); }
.note svg { width: 17px; height: 17px; flex: none; color: var(--gold); margin-top: 1px; }
.fine { text-align: center; font-size: 12px; color: var(--dim); margin: 12px 0 0; line-height: 1.55; }

/* ================= empty / skeleton / error ================= */
.empty { text-align: center; padding: 56px 20px; }
.empty .orb { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hi); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .24), rgba(255, 255, 255, .04) 62%); box-shadow: inset 0 0 0 1px var(--line-hi), 0 18px 40px -10px rgba(0, 0, 0, .6); }
.empty .orb svg { width: 34px; height: 34px; }
.empty h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.025em; }
.empty p { margin: 0 auto 20px; max-width: 280px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.empty .btn { width: auto; display: inline-flex; padding: 0 30px; }
.sk { height: 240px; border-radius: var(--r); background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .03) 70%); background-size: 220% 100%; animation: shimmer 1.5s linear infinite; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.fullcenter { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 0 24px; }
.fullcenter img { height: 52px; margin-bottom: 16px; }
.fullcenter p { color: var(--muted); margin: 0; max-width: 320px; line-height: 1.55; }

/* ================= orders ================= */
.order { padding: 18px 20px; border-radius: 24px; }
.order .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order .hd b { font-size: 16px; letter-spacing: -.015em; }
.order .dt { color: var(--dim); font-size: 12px; margin-top: 3px; }
.order ul { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.order li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.order li span:last-child { font-variant-numeric: tabular-nums; }
.order .ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.order .ft .tot { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.paid { color: var(--ok); background: rgba(134, 212, 174, .1); box-shadow: inset 0 0 0 1px rgba(134, 212, 174, .28); }
.pill.pending { color: var(--gold); background: rgba(220, 192, 143, .1); box-shadow: inset 0 0 0 1px rgba(220, 192, 143, .3); }
.pill.expired { color: var(--dim); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }

/* ================= sheets (phone: from the bottom · desktop: centered modal / side panel) ================= */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(3, 4, 6, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .45s var(--ease); }
.sheet-back.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 600px; margin: 0 auto; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px max(20px, env(safe-area-inset-left, 0px)) calc(26px + var(--safe-b)) max(20px, env(safe-area-inset-right, 0px)); border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, rgba(40, 43, 49, .94), rgba(15, 16, 19, .975)); -webkit-backdrop-filter: blur(40px) saturate(170%); backdrop-filter: blur(40px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(255, 255, 255, .07), 0 -30px 80px rgba(0, 0, 0, .55);
  transform: translateY(104%); transition: transform .7s var(--ease); scrollbar-width: none; }
.sheet::-webkit-scrollbar { display: none; }
.sheet.open { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .26); margin: 0 auto 16px; }
.xbtn { position: absolute; top: 16px; right: 16px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; display: none; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, transform .4s var(--ease); }
.xbtn svg { width: 17px; height: 17px; }
.xbtn:hover { background: rgba(255, 255, 255, .16); color: var(--text); transform: rotate(90deg); }
.sheet h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.03em; font-weight: 600; line-height: 1.12; }
.sheet .sub { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.shd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.shd h2 { margin: 0; }
.pimg { aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; margin-bottom: 18px; background: #111317; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg .ph span { font-size: 72px; }
.pricebig { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 16px; }
.pricebig b { font-size: 34px; letter-spacing: -.035em; font-weight: 600; font-variant-numeric: tabular-nums; }
.pricebig s { color: var(--dim); font-size: 17px; }
.pricebig .badge { position: static; }
.desc { white-space: pre-wrap; line-height: 1.6; color: #cdd1d7; font-size: 15px; }
.btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.payview { text-align: center; padding: 14px 6px 4px; }
.payview .ring { width: 78px; height: 78px; margin: 6px auto 22px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .1); border-top-color: var(--gold); animation: rot 1.2s linear infinite; }
.payview .okbadge { width: 84px; height: 84px; margin: 4px auto 22px; border-radius: 50%; display: grid; place-items: center; color: #2a1d08; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 20px 46px -10px rgba(220, 192, 143, .55); animation: pop .7s var(--ease) both; }
.payview .okbadge svg { width: 42px; height: 42px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.payview h2 { font-size: 24px; margin-bottom: 8px; }
.payview p { color: var(--muted); margin: 0 auto 24px; max-width: 320px; line-height: 1.55; font-size: 14.5px; }

.dlg-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(3, 4, 6, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.dlg-back.open { opacity: 1; }
.dlg { width: min(100%, 350px); padding: 24px 22px 20px; border-radius: 28px; background: linear-gradient(160deg, rgba(58, 62, 70, .96), rgba(20, 22, 26, .98)); }
.dlg p { margin: 0 0 20px; font-size: 16px; line-height: 1.5; text-align: center; }
.dlg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlg-btns .btn { height: 46px; font-size: 15px; }

/* ================= admin ================= */
.admin { display: block; }
.snav { display: flex; gap: 8px; overflow-x: auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); margin-bottom: 14px; scrollbar-width: none; position: relative; z-index: 1; }
.snav::-webkit-scrollbar { display: none; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { padding: 16px 18px; border-radius: 22px; }
.stat small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; letter-spacing: .03em; }
.stat b { font-size: 26px; letter-spacing: -.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat.gold b { color: var(--gold); }
.dash2 { display: grid; gap: 12px; margin-top: 12px; }
.chartcard { padding-bottom: 14px; border-radius: 24px; }
.chartcard h4 { margin: 16px 18px 0; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding: 14px 16px 0; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 7px; }
.bars .b i { width: 100%; min-height: 3px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); opacity: .9; transition: opacity .3s; }
.bars .b:hover i { opacity: 1; }
.bars .b span { font-size: 9.5px; color: var(--dim); height: 11px; }
.topn { padding: 8px 18px; border-radius: 24px; }
.topn h4 { margin: 12px 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.topn .ln { display: flex; justify-content: space-between; padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--line); gap: 12px; }
.topn .ln:last-child { border: 0; }
.topn .ln span:last-child { color: var(--muted); white-space: nowrap; }
.addbar { display: flex; gap: 10px; margin: 0 0 14px; }
.addbar .btn { width: auto; padding: 0 24px; }
.thead { display: none; }
.arow { display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; cursor: pointer; border-radius: 22px; transition: transform .4s var(--ease), background .3s; }
@media (hover: hover) { .arow:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .07); } }
.arow .t { width: 52px; height: 52px; border-radius: 13px; overflow: hidden; flex: none; }
.arow .t img, .arow .t .ph { width: 100%; height: 100%; object-fit: cover; }
.arow .t .ph span { font-size: 20px; }
.arow .info { flex: 1; min-width: 0; }
.arow .info b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow .info small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow .info small .warn { color: var(--gold); }
.arow .cc, .arow .cp, .arow .cf { display: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(134, 212, 174, .55); flex: none; }
.dot.off { background: var(--dim); box-shadow: none; }
.catblock { padding: 6px; margin-bottom: 12px; border-radius: 26px; }
.catblock .arow { border-radius: 20px; }
.catblock .arow.chead { cursor: pointer; }
.catblock .arow.chead .info b { font-size: 16px; }
.catblock .arow.csub { margin-left: 18px; }
.catblock .arow.csub .info b { font-weight: 500; color: var(--muted); }
.cols { display: grid; gap: 12px; }

/* ================= toast ================= */
#toast { position: fixed; left: 50%; bottom: calc(112px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 120; opacity: 0; pointer-events: none; transition: .45s var(--ease); max-width: 86vw;
  padding: 13px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 550; text-align: center; background: rgba(30, 32, 37, .92); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { color: #ffd2d2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(255, 130, 130, .4), 0 18px 40px rgba(0, 0, 0, .55); }
#toast.ok { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(220, 192, 143, .4), 0 18px 40px rgba(0, 0, 0, .55); }

/* ================= tablets ================= */
@media (min-width: 640px) and (max-width: 899px) {
  #app { max-width: 760px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================= DESKTOP (≥ 900px) ================= */
@media (min-width: 900px) {
  .m-only { display: none !important; }
  .d-only { display: flex !important; }
  .tabbar { display: none; }
  #app { max-width: 1360px; padding-inline: 44px; padding-bottom: 80px; }
  #toast { bottom: 40px; }

  .hdr { position: sticky; top: 14px; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 14px 0 8px; padding: 10px 14px 10px 22px; border-radius: 999px;
    background: linear-gradient(155deg, rgba(58, 62, 70, .55), rgba(22, 24, 28, .58)); -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 24px 50px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
  .logo { justify-self: start; }
  .logo img { height: 30px; }
  .dnav { position: relative; display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
  .dnav .ind { top: 4px; bottom: 4px; }
  .dtab { position: relative; z-index: 1; height: 38px; padding: 0 24px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--dim); transition: color .4s; }
  .dtab:hover { color: var(--muted); }
  .dtab.on { color: var(--text); }
  .hright { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
  .hright .search { width: 280px; height: 44px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; }
  .hright .search::after { display: none; }
  .cartbtn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-hi), inset 0 1px 0 rgba(255, 255, 255, .15); transition: transform .45s var(--ease), background .3s; }
  .cartbtn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
  .cartbtn svg { width: 21px; height: 21px; }
  .cartbtn .cnt { top: -4px; left: auto; right: -4px; }

  .hero { padding: 64px 4px 36px; }
  .hero h1 { font-size: 68px; max-width: 14ch; }
  .hero p { font-size: 19px; margin-top: 18px; max-width: 40ch; }
  h1.title { font-size: 40px; margin: 34px 4px 26px; }

  .store { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
  .side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
  .sitem { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 14px; text-align: left; font-size: 15px; font-weight: 550; color: var(--muted); transition: color .3s, background .4s var(--ease), transform .4s var(--ease); }
  .sitem em { font-style: normal; font-size: 12px; color: var(--dim); }
  .sitem:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
  .sitem.on { color: var(--text); background: rgba(255, 255, 255, .075); box-shadow: inset 2px 0 0 var(--gold); }
  .ssubs { display: flex; flex-direction: column; margin: 2px 0 8px 14px; padding-left: 14px; border-left: 1px solid var(--line); animation: rise .5s var(--ease) both; }
  .ssub { padding: 8px 12px; border-radius: 10px; text-align: left; font-size: 13.5px; color: var(--dim); transition: color .3s, background .3s; }
  .ssub:hover { color: var(--text); }
  .ssub.on { color: var(--gold-hi); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
  h2.sec { font-size: 32px; margin: 56px 4px 2px; }
  h2.sec:first-child { margin-top: 6px; }
  h3.sub { margin: 24px 4px 16px; }
  .card { padding: 10px; }
  .card-body { padding: 14px 10px 8px; }
  .card h3 { font-size: 16.5px; }

  /* modal + side panel */
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(960px, calc(100vw - 80px)); max-width: none; max-height: calc(100vh - 80px); margin: 0; border-radius: 34px; padding: 34px 36px 34px;
    transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .7s var(--ease), opacity .45s var(--ease); }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.narrow { width: min(560px, calc(100vw - 80px)); }
  .sheet.panel { left: auto; right: 22px; top: 22px; bottom: 22px; width: 470px; max-height: none; transform: translateX(112%); opacity: 1; border-radius: 34px; padding: 28px 28px 28px; }
  .sheet.panel.open { transform: none; }
  .grab { display: none; }
  .xbtn { display: grid; }
  .pgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .pgrid .pimg { margin: 0; aspect-ratio: 4 / 3.2; position: sticky; top: 0; }
  .sheet h2 { font-size: 32px; }
  .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .fgrid .span2 { grid-column: 1 / -1; }

  /* admin */
  .admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
  .snav { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 2px; position: sticky; top: 104px; }
  .snav .chip { height: 44px; padding: 0 16px; border-radius: 14px; text-align: left; font-size: 14.5px; background: transparent; box-shadow: none; }
  .snav .chip:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
  .snav .chip.on { color: var(--text); background: rgba(255, 255, 255, .075); box-shadow: inset 2px 0 0 var(--gold); }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .dash2 { grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .thead, .arow.prow { display: grid; grid-template-columns: 58px minmax(0, 2.2fr) minmax(0, 1.7fr) 90px 110px 30px; align-items: center; gap: 16px; }
  .thead { padding: 0 18px 10px 12px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
  .arow.prow { padding: 8px 20px 8px 12px; margin-bottom: 8px; }
  .arow.prow .info small { display: none; }
  .arow .cc, .arow .cp, .arow .cf { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .arow .cp { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
  .arow .cf .warn { color: var(--gold); }
  .arow .cf .okf { color: var(--ok); }
  .list.listp { gap: 0; }
}

/* ================= additions ================= */
.narrowview { max-width: 760px; }
.ssubs + .sitem { margin-top: 2px; }
.main { min-width: 0; }
.search.m-only { display: flex; }
.cnt.bump { animation: pop .5s var(--ease); }
@media (max-width: 899px) {
  .hdr { position: sticky; top: 0; z-index: 25; margin: 0 -16px; padding: calc(8px + var(--safe-t)) 18px 10px;
    background: linear-gradient(180deg, rgba(8, 9, 11, .86), rgba(8, 9, 11, .55)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  #app { padding-top: 0; }
  .sheet .pgrid .pimg { margin-bottom: 18px; }
}
@media (min-width: 900px) {
  .hdr { margin-inline: 0; }
}
.btn { white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }

.pool { will-change: transform; }

/* Lenis smooth scroll requirements */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.paybtns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.support { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin: 44px 0 8px; font-size: 13.5px; color: var(--dim); text-align: center; }
.support button { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(220, 192, 143, .4); transition: color .3s; }
.support button:hover { color: var(--gold-hi); }

/* ================= website account bits ================= */
.hright { gap: 10px; }
.macct { display: flex; align-items: center; margin-left: auto; }
.loginbtn { height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #0b0c0e; background: linear-gradient(180deg, #fff, #dfe2e7);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px -8px rgba(255, 255, 255, .35); transition: transform .4s var(--ease); }
.loginbtn:active { transform: scale(.96); }
.userchip { display: flex; align-items: center; gap: 9px; height: 40px; max-width: 200px; padding: 0 16px 0 5px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-hi), inset 0 1px 0 rgba(255, 255, 255, .12); transition: background .3s; }
.userchip:hover { background: rgba(255, 255, 255, .13); }
.userchip i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-style: normal; font-size: 14px; color: #2a1d08; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.userchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tglogin { display: flex; justify-content: center; align-items: center; min-height: 54px; margin: 6px 0 4px; }
.lnk { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.dls { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.dl { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; font-size: 14px; font-weight: 550; color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, transform .4s var(--ease); }
.dl:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.dl svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.dl span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl em { font-style: normal; font-size: 12.5px; color: var(--gold); }

/* login through the bot */
.lgbox { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 54px; margin: 8px 0 2px; }
.lgbox .btn { text-decoration: none; }
.lgbox .fine { margin: 10px 0 0; }

/* extras: Error FAQ + Support the project */
.extras { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 40px 0 0; }
@media (min-width: 700px) { .extras { grid-template-columns: 1fr 1fr; } }
.xcard { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 22px; text-align: left; color: var(--text); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (hover: hover) { .xcard:hover { transform: translateY(-2px); } }
.xcard:active { transform: scale(.985); }
.xic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: var(--gold); background: rgba(220, 192, 143, .10); box-shadow: inset 0 0 0 1px rgba(220, 192, 143, .22); }
.xic svg { width: 21px; height: 21px; }
.xcard.heart .xic { color: #f0a3a3; background: rgba(240, 130, 130, .10); box-shadow: inset 0 0 0 1px rgba(240, 130, 130, .25); }
.xtx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.xtx b { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.xtx em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.4; }
.xgo { flex: none; font-size: 13px; font-weight: 600; color: var(--gold); }
.sdiv { height: 1px; margin: 10px 14px; background: var(--line); }

/* donate sheet */
.donate { text-align: center; }
.donate .dh { display: grid; place-items: center; width: 58px; height: 58px; margin: 4px auto 12px; border-radius: 20px; color: #f0a3a3; background: rgba(240, 130, 130, .10); box-shadow: inset 0 0 0 1px rgba(240, 130, 130, .25); }
.donate .dh svg { width: 26px; height: 26px; }
.donate h2 { margin: 0 0 12px; }
.dintro { text-align: left; margin-bottom: 18px; }
.dintro p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.wallet { text-align: left; padding: 14px 14px 14px 16px; border-radius: 18px; margin-bottom: 10px; }
.wl { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.wa { display: flex; align-items: center; gap: 10px; }
.wa code { flex: 1; min-width: 0; font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); word-break: break-all; user-select: all; }
.cpbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; }
.cpbtn svg { width: 16px; height: 16px; }
.cpbtn:hover { background: rgba(255, 255, 255, .13); }
.cpbtn.done { color: var(--ok); }
.wn { margin-top: 9px; font-size: 12px; line-height: 1.5; color: var(--dim); }

/* admin: pages tab */
.fh { margin: 0 0 14px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.wrow { padding: 14px; border-radius: 18px; margin-bottom: 12px; }
.wgrid { display: grid; grid-template-columns: 1fr; gap: 0; }
.wrow .field { margin-bottom: 10px; }
.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* ===== background: "Eclipse" — two rendered images (calm + brighter rim) that slowly cross-fade and drift ===== */
.rays, .pool.p3 { display: none; }
.bg { background: #07080b; }
.bg::before, .bg::after { content: ""; position: absolute; inset: -3%; pointer-events: none; background: center / cover no-repeat; will-change: transform, opacity; }
.bg::before { background-image: url(/assets/bg-wide-a.webp); animation: ecDrift 60s ease-in-out infinite alternate; }
.bg::after  { background-image: url(/assets/bg-wide-b.webp); animation: ecDrift 60s ease-in-out infinite alternate, ecBreath 9s ease-in-out infinite alternate; }
@keyframes ecDrift  { from { transform: translate3d(-1.2%, .6%, 0) scale(1); } to { transform: translate3d(1.2%, -.6%, 0) scale(1.05); } }
@keyframes ecBreath { from { opacity: 0; } to { opacity: 1; } }
@media (max-aspect-ratio: 4 / 5) {
  .bg::before { background-image: url(/assets/bg-tall-a.webp); }
  .bg::after  { background-image: url(/assets/bg-tall-b.webp); }
}
/* everything in the background rests while the page is being scrolled (you cannot see it move then, and the glass stays cheap to draw) */
.scrolling .bg::before, .scrolling .bg::after, .scrolling .bg .pool { animation-play-state: paused; }
/* slow drifting light dust in two depth layers (reusing the old .p1 / .p2 elements) */
.bg .pool.p1, .bg .pool.p2 { display: block; position: absolute; border-radius: 0; filter: none; pointer-events: none; will-change: transform; background-repeat: repeat; right: auto; bottom: auto; }
.bg .pool.p1 { top: -720px; left: -720px; width: calc(100% + 720px); height: calc(100% + 720px); background-image: url(/assets/dust-far.webp); background-size: 720px 720px; opacity: .65;
  translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -6px); animation: dustA 170s linear infinite; }
.bg .pool.p2 { top: -1000px; left: -1000px; width: calc(100% + 1000px); height: calc(100% + 1000px); background-image: url(/assets/dust-near.webp); background-size: 1000px 1000px; opacity: .7;
  translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -14px); animation: dustB 110s linear infinite; }
@keyframes dustA { to { transform: translate3d(720px, 720px, 0); } }
@keyframes dustB { from { transform: translate3d(1000px, 0, 0); } to { transform: translate3d(0, 1000px, 0); } }
.bg::before, .bg::after { translate: calc(var(--px, 0) * 7px) calc(var(--py, 0) * 5px); }
@media (prefers-reduced-motion: reduce) { .bg::before, .bg::after, .bg .pool { animation: none; } }


/* ===== effects ===== */
/* 1 - light travelling along the glass edge of a card, following the pointer */
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .45s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 238, 205, .75), rgba(255, 238, 205, .12) 55%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) { .card:hover::after { opacity: 1; } }
/* 2 - cards wait (paused, invisible) until scrolled into view */
.card.rv { animation-play-state: paused; }
/* 6 - gentle 3D tilt under the pointer (not in Safari: it redraws glass on every transform) */
@media (hover: hover) {
  html:not(.safari) .card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .6s var(--ease); }
  html:not(.safari) .card:hover { transform: perspective(900px) translateY(-5px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  html:not(.safari) .card:active { transform: perspective(900px) scale(.975); }
}
/* 7 - a glossy streak crosses the cover once when the card is hovered */
.thumb::before { content: ""; position: absolute; inset: -20% auto -20% -60%; width: 45%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-18deg); }
@media (hover: hover) { .card:hover .thumb::before { animation: gloss 1.1s ease-out both; } }
@keyframes gloss { 0% { left: -60%; opacity: 0; } 15% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
/* 4 - the flying cover */
.flyghost { position: fixed; z-index: 200; border-radius: 12px; pointer-events: none; background: #1c2026 center / cover no-repeat; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .25); }
@media (prefers-reduced-motion: reduce) { .thumb::before, .card::after { display: none; } }
