@font-face { font-family: 'gg sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/ggsans-400.woff2') format('woff2'); }
@font-face { font-family: 'gg sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/static/fonts/ggsans-500.woff2') format('woff2'); }
@font-face { font-family: 'gg sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/static/fonts/ggsans-600.woff2') format('woff2'); }
@font-face { font-family: 'gg sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/static/fonts/ggsans-700.woff2') format('woff2'); }

:root {
  --app: #1a1b1e;
  --bg: #2b2d31;
  --bg2: #1e1f22;
  --surface: #2b2d31;
  --surface2: #313338;
  --elevated: #383a40;
  --line: #232428;
  --line2: #3f4147;
  --text: #dbdee1;
  --header: #f2f3f5;
  --muted: #949ba4;
  --faint: #80848e;
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --green: #23a55a;
  --red: #da373c;
  --yellow: #f0b232;
  --link: #00a8fc;
  --mono: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background:
    radial-gradient(900px 460px at 50% -8%, rgba(88,101,242,.12), transparent 62%),
    radial-gradient(700px 400px at 86% 2%, rgba(167,139,250,.08), transparent 60%),
    var(--app);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
::selection { background: rgba(88,101,242,.3); }
* { scrollbar-width: thin; scrollbar-color: #1a1b1e transparent; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--header); font-weight: 700; }
.mono, .num { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.sp { flex: 1; }
.spacer { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bg2); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 56px; }
.logo { font-weight: 700; font-size: 18px; color: var(--header); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo .dot { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #a78bfa); display: grid; place-items: center; }
.logo .dot::after { content: ''; display: block; width: 66%; height: 66%; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='9.5' width='16' height='11.5' rx='1.5'/><path d='M4 13.5h16M12 9.5v11.5'/><path d='M12 9.5C9.6 9.5 7.3 9.5 7.3 7.8 7.3 6.2 10.5 6 12 9.5ZM12 9.5c2.4 0 4.7 0 4.7-1.7C16.7 6.2 13.5 6 12 9.5Z'/></svg>") center/contain no-repeat; }
.logo span em { font-style: normal; color: var(--brand); }
.by-credit { display: inline-flex; align-items: center; gap: 5px; align-self: center; white-space: nowrap; font-size: 12.5px; padding-left: 13px; margin-left: 3px; border-left: 1px solid var(--line2); }
.by-credit .by-pre { color: var(--faint); font-weight: 500; }
.by-credit .by-name { font-weight: 700; background: linear-gradient(135deg, var(--brand), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.by-credit:hover { text-decoration: none; }
.by-credit:hover .by-name { filter: brightness(1.18); }
@media (max-width: 560px) { .by-credit { display: none; } }
.navlink { color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; }
.navlink:hover { color: var(--text); text-decoration: none; }
.pill { padding: 8px 14px; border-radius: var(--radius); background: var(--surface2); font-size: 14px; color: var(--text); cursor: pointer; font-weight: 500; }
.pill:hover { background: var(--elevated); }
.pill b { color: var(--green); }

/* hero */
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 14px; line-height: 1.15; font-weight: 700; color: var(--header); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { color: var(--muted); font-size: 17px; margin: 0; }
.hstats { display: flex; justify-content: center; gap: 0; margin-top: 26px; }
.hstat { padding: 0 24px; border-left: 1px solid var(--line2); }
.hstat:first-child { border-left: 0; }
.hstat .v { font-weight: 700; font-size: 20px; color: var(--header); }
.hstat .k { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* landing hero banner (Discord-shop style, filled) */
.hero-banner {
  position: relative; border-radius: 16px; overflow: hidden; margin-top: 24px;
  padding: 40px 42px 38px;
  background:
    radial-gradient(130% 150% at 88% -35%, rgba(180,156,253,.62), transparent 52%),
    radial-gradient(90% 150% at 2% 135%, rgba(88,101,242,.55), transparent 55%),
    linear-gradient(118deg, #4a57db 0%, #3a3fa6 52%, #24264f 100%);
  box-shadow: 0 18px 46px -22px rgba(42,46,120,.9);
}
.hero-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 78% 20%, rgba(255,255,255,.12), transparent 55%);
}
.hero-banner.gb::before { display: none; }
.hb-content { position: relative; z-index: 1; max-width: 640px; }
.qpill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: #eef0ff; background: rgba(0,0,0,.26); border: 1px solid rgba(255,255,255,.16);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; backdrop-filter: blur(6px);
}
.qpill i { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 0 3px rgba(59,165,93,.3); }
.qpill b { color: #fff; }
.hero-banner h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; margin: 0 0 14px; color: #fff; letter-spacing: -.01em; }
.hero-banner h1 em { font-style: normal; color: #fff; background: linear-gradient(180deg, #fff, #d9ddff); -webkit-background-clip: text; background-clip: text; }
.hero-banner p { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.55; margin: 0 0 22px; max-width: 560px; }
.hero-banner p b { color: #fff; font-weight: 700; }
.paste-wrap { position: relative; }
.paste-wrap textarea {
  width: 100%; min-height: 58px; max-height: 150px; resize: vertical;
  background: rgba(10,11,22,.46); border: 1px solid rgba(255,255,255,.16); color: #fff;
  border-radius: 12px; padding: 15px 16px; font-size: 15px; line-height: 1.5; backdrop-filter: blur(8px);
}
.paste-wrap textarea::placeholder { color: rgba(255,255,255,.55); }
.paste-wrap textarea:focus { border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.paste-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.btn.hb-cta { background: #fff; color: #3b41a8; font-weight: 700; padding: 12px 22px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.btn.hb-cta:hover { background: #eef0ff; }
.hb-hint { color: rgba(255,255,255,.72); font-size: 13.5px; }
.rand-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.rand-hint { color: rgba(255,255,255,.72); font-size: 13.5px; }
.btn.rand-btn { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.22); font-weight: 600; }
.btn.rand-btn:hover { background: rgba(255,255,255,.24); }
.hero-mascot { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.hero-mascot svg { width: 232px; height: auto; filter: drop-shadow(0 20px 36px rgba(16,16,54,.45)); animation: floaty 5s ease-in-out infinite; }
@media (max-width: 1000px) { .hero-mascot { display: none; } }

/* total bar (elevated) */
.total.gb { margin-top: 18px; }
.total.gb .total-in { display: flex; align-items: center; background: var(--surface2); border-radius: 14px; padding: 16px 20px; }
.total.gb { border-top: 0; padding-top: 0; }
.total.gb .t { font-size: 24px; }

/* section header */
.section-head { display: flex; align-items: baseline; gap: 14px; margin: 42px 0 2px; }
.section-head h2 { font-size: 20px; margin: 0; }
.section-head .see-all { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.section-head .see-all:hover { color: var(--text); }

/* cart */
.cart { margin-top: 18px; }
.cart .cart-in { background: var(--surface2); border-radius: 16px; padding: 18px 20px; }
.cart-head { display: flex; align-items: center; margin-bottom: 6px; }
.cart-head h3 { font-size: 16px; margin: 0; }
.cart-count { color: var(--muted); font-weight: 500; }
.cart-clear { margin-left: auto; color: var(--muted); font-size: 13px; cursor: pointer; font-weight: 600; }
.cart-clear:hover { color: var(--red); }
.cart-items { display: flex; flex-direction: column; }
.cart-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-art { width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(120% 115% at 50% 2%, #313338, #1c1d21 74%); flex-shrink: 0; position: relative; overflow: hidden; }
.cart-art img { width: 86%; height: 86%; object-fit: contain; }
.cart-art .badge { top: 4px; left: 4px; font-size: 8px; padding: 2px 5px; }
.cart-info { flex: 1; min-width: 0; }
.cart-info .nm { font-weight: 600; color: var(--header); font-size: 15px; }
.cart-info .price { margin-top: 4px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rtag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #ffd874; background: rgba(240,178,50,.14); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.cart-x { background: transparent; border: 0; color: var(--faint); font-size: 14px; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.cart-x:hover { background: rgba(218,55,60,.14); color: var(--red); }
.cart-total { display: flex; align-items: center; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line2); }
.ct-l { display: flex; align-items: baseline; gap: 10px; }
.ct-k { color: var(--muted); font-size: 14px; }
.ct-v { font-size: 24px; font-weight: 700; color: var(--header); }
.cart-total .was { color: var(--faint); text-decoration: line-through; font-size: 14px; }
.cart-total .btn { margin-left: auto; }

/* order / processing */
.order-shell { max-width: 620px; margin: 30px auto 0; }
.ohero { text-align: center; padding: 10px 0 22px; }
.ohero .obig { font-size: 44px; margin-bottom: 8px; line-height: 1; }
.ohero h2 { font-size: 24px; margin: 0 0 6px; }
.ohero p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.5; }
.ohero.ok h2 { color: #4fd178; }
.ohero.ok .obig { font-size: 0; margin-bottom: 4px; }
.hmascot { filter: drop-shadow(0 12px 24px rgba(88,101,242,.4)); animation: mpop .55s cubic-bezier(.2,1.4,.5,1) both, floaty 3.6s ease-in-out .55s infinite; }
@keyframes mpop { 0% { transform: scale(0) rotate(-14deg); opacity: 0; } 70% { transform: scale(1.08) rotate(3deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.ohero.bad h2 { color: #f5a3a5; }
.oring { width: 52px; height: 52px; border: 4px solid var(--line2); border-top-color: var(--brand); border-radius: 50%; margin: 4px auto 16px; animation: sp 1s linear infinite; }
.eta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--bg2); padding: 7px 14px; border-radius: 999px; }
.gift { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid rgba(35,165,90,.3); border-radius: 10px; padding: 11px 12px; margin-top: 10px; }
.gc-link { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4fd178; font-size: 14px; }
.osum { margin-top: 22px; border-top: 1px solid var(--line2); padding-top: 12px; }
.osum-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.osum-art { width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; background: radial-gradient(120% 115% at 50% 2%, #313338, #1c1d21 74%); overflow: hidden; flex-shrink: 0; position: relative; }
.osum-art img { width: 86%; height: 86%; object-fit: contain; }
.osum-nm { flex: 1; font-weight: 500; color: var(--text); font-size: 14px; }
.osum-pr { color: var(--header); font-weight: 600; }
.osum-total { display: flex; align-items: center; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line2); }
.osum-total span { flex: 1; color: var(--muted); }
.osum-total b { font-size: 20px; color: var(--header); }
.order-meta { text-align: center; margin-top: 16px; font-size: 13px; }
.order-meta a { cursor: pointer; color: var(--muted); }
.step.cur .d { box-shadow: 0 0 0 4px rgba(88,101,242,.22); }

/* cards */
.card { background: var(--surface); border-radius: 16px; padding: 18px; }
.card.pad { padding: 22px; }
.gb { position: relative; border-radius: 16px; }
.gb::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(88,101,242,.35), rgba(88,101,242,.04) 40%, rgba(167,139,250,.04) 70%, rgba(167,139,250,.22));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin-bottom: 9px; font-weight: 700; }

/* inputs + buttons */
textarea, input, select {
  width: 100%; background: var(--bg2); border: 1px solid transparent; color: var(--text);
  border-radius: var(--radius); padding: 11px 13px; font-size: 15px; font-family: inherit; outline: none; transition: border-color .15s;
}
textarea::placeholder, input::placeholder { color: var(--faint); }
textarea:focus, input:focus, select:focus { border-color: var(--brand); }
textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: var(--radius); padding: 11px 18px; font-weight: 500; font-size: 15px; cursor: pointer; transition: background .15s; font-family: inherit; min-height: 40px; }
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn.green { background: #248046; }
.btn.green:hover { background: #1a6334; }
.btn.sec { background: var(--elevated); color: #fff; }
.btn.sec:hover { background: #4e5058; }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--surface2); }
.btn.sm { padding: 6px 12px; font-size: 13px; min-height: 32px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* shop cards — Discord's real productCard_fcbddd: art fills the card, footer gradient scrim,
   hover lifts art -6px + collapses name/price (grid 1fr->0fr) for a buy button (0fr->1fr) */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 12px; margin-top: 16px; }
.item { position: relative; display: flex; flex-direction: column; min-height: 246px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: radial-gradient(120% 110% at 50% 0%, #313338, #1c1d21 72%); transition: border-color .2s ease; }
.item:hover { border-color: var(--line2); }
.item .art { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px 14px 58px; z-index: 0; }
.item .art img { max-width: 86%; max-height: 100%; object-fit: contain; transition: transform .25s ease; }
.item:hover .art img { transform: translateY(-6px); }
/* nameplates are wide art -> fill the card like Discord's background preview */
.item .art.np { padding: 0; }
.item .art.np img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; }
.cart-art.np img { width: 100%; height: 100%; object-fit: cover; }
.item .footer { position: relative; margin-top: auto; padding: 12px 14px 13px; z-index: 1; }
.item .fgrad { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: -1; pointer-events: none; background: linear-gradient(to top, var(--app) 8%, rgba(26,27,30,.74) 46%, transparent); }
.item .finfo { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .25s ease, opacity .2s ease; }
.item .finfo .inner { min-height: 0; overflow: hidden; }
.item:hover .finfo { grid-template-rows: 0fr; opacity: 0; }
.item .nm { font-weight: 600; font-size: 15px; color: var(--header); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .price { margin-top: 7px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.item .orig, .cart-info .orig { color: var(--faint); text-decoration: line-through; font-size: 13px; }
.item .sell, .cart-info .sell { color: #fff; font-weight: 700; font-size: 15px; }
.item .disc, .cart-info .disc { color: #5ad67d; font-weight: 600; font-size: 13px; }
.item .fbtn { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(14%); transition: grid-template-rows .25s ease, opacity .2s ease, transform .25s ease; }
.item:hover .fbtn { grid-template-rows: 1fr; opacity: 1; transform: translateY(0); }
.item .addbtn { display: block; min-height: 0; overflow: hidden; margin-top: 8px; background: var(--brand); color: #fff; text-align: center; padding: 9px; border-radius: 6px; font-weight: 600; font-size: 13px; }
/* Discord's product-card badge: white chip, black text */
.badge { position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 3px 8px; border-radius: 4px; background: #fff; color: #000; }

.total { display: flex; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line2); }
.total .t { font-size: 22px; font-weight: 700; color: var(--header); }
.total .t .was { font-size: 15px; color: var(--faint); text-decoration: line-through; margin-right: 10px; font-weight: 400; }

.errbox { background: rgba(218,55,60,.1); border: 1px solid rgba(218,55,60,.3); color: #f5a3a5; padding: 11px 14px; border-radius: var(--radius); font-size: 14px; margin-top: 12px; }

.shopnav { background: var(--bg2); border-bottom: 1px solid var(--line); }
.shopnav .wrap { display: flex; align-items: center; gap: 22px; height: 48px; }
.snav { color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; height: 48px; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.snav:hover { color: var(--text); }
.snav.on { color: var(--text); border-bottom-color: var(--brand); }
.searchbox { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--line); border-radius: 8px; padding: 0 12px; height: 34px; color: var(--muted); max-width: 48vw; }
.searchbox input { background: transparent; border: 0; width: 200px; max-width: 42vw; padding: 8px 0; font-size: 14px; }
.searchbox input:focus { box-shadow: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 26px 0 8px; }
.pager .btn { min-height: 34px; }
.pager .pg { color: var(--muted); font-size: 14px; font-family: var(--mono); }

/* browse filter bar */
.browse-bar { display: flex; align-items: center; gap: 12px; margin: 22px 0 2px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { background: var(--surface2); border: 1px solid var(--line2); color: var(--muted); border-radius: 999px; padding: 7px 15px; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: .12s; }
.fchip:hover { color: var(--text); border-color: var(--faint); }
.fchip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sort-sel { margin-left: auto; width: auto; background: var(--surface2); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; cursor: pointer; }
.sort-sel:focus { border-color: var(--brand); }
@media (max-width: 560px) { .sort-sel { margin-left: 0; width: 100%; } }

.collection { margin-top: 24px; }
/* collection hero — Discord bannerContent: 476px content column, text block gap 8 + mb 24, then CTA */
.col-banner { aspect-ratio: 1320 / 370; max-height: 232px; border-radius: 12px; background-size: cover; background-position: center; display: flex; align-items: center; padding: 28px 34px; position: relative; overflow: hidden; }
.col-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.74), rgba(0,0,0,.4) 44%, transparent 72%); }
.col-content { position: relative; z-index: 1; max-width: 476px; display: flex; flex-direction: column; align-items: flex-start; }
.col-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; text-align: left; }
.col-title { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.col-sub { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.col-banner .col-logo { max-height: 84px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.col-cta { background: #fff; color: #1a1b1e; font-weight: 700; padding: 10px 18px; border-radius: 8px; border: 0; cursor: pointer; font-size: 14px; }
.col-cta:hover { background: #e9ebff; }
@media (max-width: 560px) { .col-banner { padding: 20px; } .col-title { font-size: 20px; } .col-banner .col-logo { max-height: 62px; } }
.collection .items { margin-top: 14px; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin: 28px 0 8px; color: var(--muted); font-size: 13px; }
.trust span { white-space: nowrap; }
.trust .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

/* features / how */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 28px 0; }
.feat { padding: 20px; border-radius: 16px; background: var(--surface); height: 100%; }
.feat .ic { font-size: 26px; margin-bottom: 12px; }
.feat h3 { margin: 0 0 6px; font-size: 16px; }
.feat p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.section-t { text-align: center; font-size: 24px; font-weight: 700; margin: 46px 0 18px; color: var(--header); }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.how .s { padding: 20px; }
.how .n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; color: #fff; }

/* order steps */
.steps { display: flex; margin: 6px 0 22px; }
.step { flex: 1; text-align: center; font-size: 12px; color: var(--faint); position: relative; font-weight: 500; }
.step .d { width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.step.on .d { background: var(--brand); color: #fff; }
.step.on { color: var(--text); }
.step::after { content: ""; position: absolute; top: 15px; left: 62%; right: -38%; height: 2px; background: var(--line2); z-index: -1; }
.step:last-child::after { display: none; }

.code { display: flex; align-items: center; gap: 10px; background: var(--bg2); border-radius: var(--radius); padding: 11px 13px; margin-top: 8px; font-family: var(--mono); font-size: 13px; }
.code a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--link); }
.code .sell { color: var(--green); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal-bg.show { display: flex; }
.modal { width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; }
.modal .card { background: var(--surface2); }
.modal h3 { margin: 0 0 4px; font-size: 20px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 4px; }
.auth-brand .dot { width: 26px; height: 26px; }
.auth-brand h3 { margin: 0; font-size: 20px; }
.auth-sub { color: var(--muted); font-size: 13px; text-align: center; margin: 0 0 4px; line-height: 1.5; }
.tabs { display: flex; gap: 8px; margin: 16px 0; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: var(--radius); background: var(--bg2); cursor: pointer; font-size: 15px; color: var(--muted); font-weight: 500; }
.tab.on { color: #fff; background: var(--brand); }
.field { margin-bottom: 11px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--elevated); padding: 12px 18px; border-radius: var(--radius); font-size: 15px; z-index: 99; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; font-weight: 500; box-shadow: 0 8px 16px rgba(0,0,0,.3); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spin { width: 38px; height: 38px; border: 3px solid var(--line2); border-top-color: var(--brand); border-radius: 50%; animation: sp 1s linear infinite; margin: 22px auto; }
@keyframes sp { to { transform: rotate(360deg); } }

/* gift-box loader (mascot) */
.gl-box { display: block; width: 56px; height: 56px; margin: 6px auto 16px; transform-origin: 50% 92%; animation: glbounce 1.15s cubic-bezier(.5,.05,.5,.95) infinite; }
.gl-box.sm { width: 38px; height: 38px; margin: 14px auto; }
@keyframes glbounce { 0%,100% { transform: translateY(0) scale(1,1); } 20% { transform: translateY(-13px) scale(.95,1.07); } 45% { transform: translateY(0) scale(1.08,.9); } 62% { transform: translateY(-5px) scale(1,1); } }
.gl-spark { transform-origin: center; animation: glspark 1.15s ease-in-out infinite; }
@keyframes glspark { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* confetti burst (on delivery) */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; border-radius: inherit; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; opacity: .92; animation: cfall linear forwards; }
@keyframes cfall { to { transform: translateY(520px) rotate(620deg); opacity: 0; } }

/* add-to-cart pop */
.cart.pop { animation: cartpop .34s ease; }
@keyframes cartpop { 0% { transform: scale(1); } 42% { transform: scale(1.015); } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade { animation: fadeUp .4s ease both; }
.fade.d1 { animation-delay: .06s; } .fade.d2 { animation-delay: .12s; } .fade.d3 { animation-delay: .18s; }
.foot { text-align: center; color: var(--faint); font-size: 13px; padding: 44px 0 28px; }
.foot a { color: var(--muted); }

/* goat / credits */
.goat-wrap { position: relative; max-width: 500px; margin: 56px auto 70px; }
.goat-glow { position: absolute; inset: -40px; z-index: -1; background: radial-gradient(60% 50% at 50% 0%, rgba(88,101,242,.3), transparent 70%); pointer-events: none; }
.goat-card .card { background: var(--surface2); text-align: center; padding: 34px 30px; }
.goat-av { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--line2); margin-bottom: 14px; }
.goat-name { font-size: 30px; margin: 0; letter-spacing: -.01em; }
.goat-handle { color: var(--muted); font-size: 14px; margin-top: 4px; font-weight: 500; }
.goat-tag { color: var(--header); font-weight: 600; font-size: 15px; margin-top: 16px; }
.goat-sub { color: var(--faint); font-size: 13.5px; margin-top: 5px; font-style: italic; }
.goat-skills { max-width: 100%; height: 44px; margin: 22px 0 6px; }
.goat-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.glink { display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: #fff; border: 1px solid transparent; }
.glink:hover { text-decoration: none; filter: brightness(1.12); }
.glink.gh { background: #2b2d31; border-color: var(--line2); }
.glink.dc { background: #5865f2; }
.glink.tg { background: #2ca5e0; }
.glink.pm { background: #6d4aff; }
.goat-distro { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.gchip { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg2); border: 1px solid var(--line2); padding: 5px 12px; border-radius: 999px; }
.goat-credit { color: var(--faint); font-size: 12.5px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.goat-credit b { color: var(--text); }

/* 404 */
.err-page { text-align: center; max-width: 480px; margin: 0 auto; padding: 68px 20px 80px; }
.err-art { margin-bottom: 8px; filter: drop-shadow(0 12px 28px rgba(88,101,242,.3)); }
.err-art svg { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.err-code { font-size: 64px; font-weight: 800; letter-spacing: -.02em; line-height: 1; background: linear-gradient(135deg, var(--brand), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-page h1 { font-size: 24px; margin: 14px 0 8px; }
.err-page p { color: var(--muted); font-size: 15px; margin: 0 0 24px; line-height: 1.55; }
.err-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.err-help { color: var(--faint); font-size: 13px; margin-top: 26px; }

/* site footer */
.site-footer { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line); }
.sf-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 30px; }
.sf-brand .logo { font-size: 18px; margin-bottom: 12px; }
.sf-brand p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; max-width: 260px; }
.sf-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin: 0 0 12px; font-weight: 700; }
.sf-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; cursor: pointer; }
.sf-col a:hover { color: var(--text); text-decoration: none; }
.sf-bottom { display: flex; justify-content: space-between; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
@media (max-width: 720px) { .sf-cols { grid-template-columns: 1fr 1fr; gap: 24px; } .sf-brand { grid-column: 1 / -1; } }

/* admin */
.admin-nav { display: flex; gap: 2px; margin: 20px 0 22px; border-bottom: 1px solid var(--line2); }
.admin-nav .t { padding: 12px 16px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav .t:hover { color: var(--text); }
.admin-nav .t.on { color: #fff; border-bottom-color: var(--brand); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.stat { background: var(--surface); padding: 18px; border-radius: var(--radius); }
.stat .v { font-size: 26px; font-weight: 700; color: var(--header); }
.stat .v.g { color: var(--green); } .stat .v.r { color: var(--red); } .stat .v.a { color: var(--brand); }
.stat .k { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line2); font-size: 12px; text-transform: uppercase; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tr:hover td { background: var(--surface2); }
.st { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; white-space: nowrap; text-transform: capitalize; }
.st.delivered, .st.topup, .st.refund, .st.overpay { background: rgba(35,165,90,.18); color: #4fd178; }
.st.paid, .st.processing, .st.order { background: rgba(88,101,242,.2); color: #b8bff5; }
.st.pending_payment, .st.admin { background: rgba(240,178,50,.16); color: #f3cd74; }
.st.failed, .st.underpaid { background: rgba(218,55,60,.2); color: #f5a3a5; }
.st.cancelled { background: var(--elevated); color: var(--muted); }
.acts { display: flex; gap: 5px; flex-wrap: wrap; }
.mono { font-family: var(--mono); font-size: 13px; }

/* checkout modal (exact Discord checkout) */
.co-head { display: flex; align-items: center; margin-bottom: 14px; }
.co-head h3 { margin: 0; flex: 1; }
.co-x { color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.co-x:hover { color: var(--text); }
.co-region { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
/* Discord purchaseSummary: boxed row, 100x56 image radius 4, flex info, price column */
.co-item { display: flex; align-items: center; gap: 12px; background: var(--bg2); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.co-img { width: 76px; height: 56px; border-radius: 4px; background: var(--app); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.co-img img { max-width: 82%; max-height: 82%; object-fit: contain; }
.co-img.np img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; }
.co-info { flex: 1; min-width: 0; }
.co-item .nm { font-weight: 600; color: var(--header); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item .ty { font-size: 13px; color: var(--muted); margin-top: 2px; }
.co-pr { color: var(--header); font-weight: 700; font-size: 15px; flex-shrink: 0; }
.co-div { height: 1px; background: var(--line2); margin: 14px 0; }
.co-pay { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--brand); border-radius: 8px; padding: 13px 14px; font-weight: 500; }
.co-pay::after { content: "✓"; margin-left: auto; color: var(--brand); font-weight: 700; }
.co-total { display: flex; align-items: center; }
.co-total span { flex: 1; color: var(--header); font-weight: 700; font-size: 17px; }
.co-total b { color: var(--header); font-size: 20px; }
.co-terms { font-size: 12px; color: var(--faint); margin-top: 12px; line-height: 1.5; text-align: center; }
.co-agree { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.co-agree input { width: auto; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); cursor: pointer; }
.co-agree a { color: var(--link); }
.ts-box { margin-top: 12px; display: flex; justify-content: center; }
.ts-box:empty { margin: 0; }

/* docs */
.codeblock { background: var(--bg2); border-radius: var(--radius); padding: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow-x: auto; color: #c7ccd1; white-space: pre; }
.codeblock .k { color: #b8bff5; } .codeblock .s { color: #86e0a3; } .codeblock .c { color: var(--faint); }
.ep { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: rgba(35,165,90,.18); color: #4fd178; margin-right: 8px; }
.ep.post { background: rgba(88,101,242,.2); color: #b8bff5; }
.codeblock .b { color: #86e0a3; }
.codeblock .n { color: #f0b67f; }

/* docs */
.docs-side-h { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); font-weight: 700; padding: 4px 12px 12px; }
.docs { max-width: 760px; }
.docs section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 76px; }
.docs section:last-child { border-bottom: 0; }
.docs h1 { font-size: 30px; margin: 0 0 12px; }
.docs h2 { font-size: 22px; margin: 0 0 10px; }
.docs p { color: var(--text); font-size: 15px; line-height: 1.65; margin: 0 0 16px; }
.docs .lead { font-size: 17px; color: var(--muted); }
.doc-note { background: rgba(88,101,242,.1); border: 1px solid rgba(88,101,242,.28); border-radius: 10px; padding: 13px 16px; font-size: 14px; color: #c7ccf5; margin-bottom: 18px; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-row:last-child { border-bottom: 0; }
.kv-k { color: var(--muted); font-weight: 500; }
.kv-v { color: var(--text); font-weight: 600; }
.endpoint { margin-bottom: 10px; }
.res-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: 16px 0 8px; }
.res-label.err { color: #f5a3a5; }
.state-grid { display: flex; flex-direction: column; gap: 10px; }
.state-item { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.state-item .st { min-width: 92px; text-align: center; }

/* admin extras */
.admin-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #f5a3a5; background: rgba(218,55,60,.18); padding: 4px 9px; border-radius: 6px; }
.admin-login { max-width: 400px; margin: 70px auto 0; text-align: center; }
.admin-login .card { background: var(--surface2); }
.admin-login h2 { margin: 0 0 4px; font-size: 24px; }
.al-icon { font-size: 34px; margin-bottom: 10px; }
.admin-login .field { text-align: left; }
.bc-side { margin-left: auto; text-align: right; position: relative; z-index: 1; }
.bc-side .bc-q { color: #fff; font-size: 30px; font-weight: 700; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip { text-transform: capitalize; }
.toggle-row { display: flex; align-items: center; gap: 16px; padding: 4px 0 16px; }
.toggle-row .tg-t { font-weight: 600; color: var(--header); font-size: 14px; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; margin-left: auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: var(--elevated); border-radius: 999px; cursor: pointer; transition: .2s; }
.switch .sl::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .sl { background: var(--green); }
.switch input:checked + .sl::before { transform: translateX(20px); }
/* live fulfillment indicator */
.live { display: flex; align-items: center; gap: 14px; background: var(--surface2); border-radius: 12px; padding: 16px 18px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--faint); }
.live.on .live-dot { background: #3ba55d; animation: lpulse 1.4s ease-in-out infinite; }
@keyframes lpulse { 0%,100% { box-shadow: 0 0 0 3px rgba(59,165,93,.28); } 50% { box-shadow: 0 0 0 8px rgba(59,165,93,.05); } }
.live-body { min-width: 0; }
.live-step { font-weight: 600; color: var(--header); font-size: 15px; }
.live.idle .live-step { color: var(--muted); font-weight: 500; }
.live-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* dashboard */
.dash { display: grid; grid-template-columns: 248px 1fr; gap: 26px; margin: 28px 0 44px; align-items: start; }
.dash-side { position: sticky; top: 76px; background: var(--surface); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; min-height: 440px; }
.dash-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line2); margin-bottom: 14px; }
.dash-av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #a78bfa); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px; flex-shrink: 0; }
.dash-id .nm { font-weight: 600; color: var(--header); font-size: 14px; overflow: hidden; text-overflow: ellipsis; max-width: 150px; white-space: nowrap; }
.dash-id .rl { font-size: 12px; color: var(--muted); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.dash-nav a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.dash-nav a:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.dash-nav a.on { background: var(--brand); color: #fff; }
.dash-main { min-width: 0; }
.dash-head { margin-bottom: 18px; }
.dash-head h1 { font-size: 28px; margin: 0 0 4px; }
.dash-head p { margin: 0; }
.bal-card { display: flex; align-items: center; gap: 16px; padding: 24px 26px; border-radius: 16px; position: relative; overflow: hidden;
  background: radial-gradient(120% 170% at 92% -45%, rgba(180,156,253,.52), transparent 55%), linear-gradient(120deg, #4a57db, #2b2d64);
  box-shadow: 0 16px 40px -22px rgba(42,46,120,.9); }
.bal-card .bc-k { color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; }
.bal-card .bc-v { color: #fff; font-size: 34px; font-weight: 700; margin-top: 2px; letter-spacing: -.01em; }
.bal-card .btn { margin-left: auto; position: relative; z-index: 1; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.tile { background: var(--surface); border-radius: 12px; padding: 18px; }
.tile .tv { font-size: 23px; font-weight: 700; color: var(--header); }
.tile .tk { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.dash-sec { background: var(--surface); border-radius: 16px; padding: 22px; margin-top: 16px; }
.dsh { display: flex; align-items: baseline; margin-bottom: 14px; }
.dsh h2 { font-size: 17px; margin: 0; }
.dsh .see-all { margin-left: auto; }
.dash-sec .table-wrap { background: var(--surface2); }
.topup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--surface2); border: 1px solid var(--line2); color: var(--text); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: #fff; }
.irow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.irow:last-of-type { border-bottom: 0; }
.irow .ik { color: var(--muted); font-weight: 500; }
.irow .iv { color: var(--text); font-weight: 600; }
.empty { padding: 30px; text-align: center; color: var(--muted); font-size: 14px; }
.empty a { cursor: pointer; }
.upsell b { color: var(--header); }
.upsell p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }

@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; gap: 16px; }
  .dash-side { position: static; min-height: 0; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-nav a { flex: 1; text-align: center; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .shopnav .wrap { gap: 16px; }
  .shopnav .navlink { display: none; }
  .searchbox { max-width: 150px; min-width: 0; }
  .searchbox input { width: 100%; max-width: 100%; min-width: 0; }
  .topbar .wrap { gap: 10px; }
}
@media (max-width: 560px) { .hero h1 { font-size: 28px; } .item img { width: 44px; height: 44px; } .wrap { padding: 0 16px; } .hero-banner { padding: 28px 22px; } .dash-stats { grid-template-columns: 1fr 1fr; } .items { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
