:root {
    --navy: #1B2A4A;
    --navy-900: #121d36;
    --navy-700: #233456;
    --gold: #B8972E;
    --gold-bright: #FFD24A;
    --ink: #0d1526;
    --paper: #f5f3ec;
    --muted: #9aa6bd;
    --line: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    /* semantic (theme-aware) */
    --text: #eef1f7;
    --text-strong: #ffffff;
    --text-soft: #c9d2e4;
    --input-bg: rgba(0, 0, 0, 0.22);
    --hover: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(12, 20, 40, 0.85);
    --on-gold: var(--navy);
}

[data-theme="light"] {
    --navy-900: #ece7da;
    --navy-700: #ffffff;
    --line: rgba(20, 30, 50, 0.12);
    --muted: #5f6b7a;
    --shadow: 0 16px 40px rgba(20, 30, 50, 0.13);
    --gold-bright: #997a18;
    --text: #1d2532;
    --text-strong: #111927;
    --text-soft: #45505f;
    --input-bg: #ffffff;
    --hover: rgba(20, 30, 50, 0.05);
    --header-bg: rgba(250, 248, 242, 0.92);
}

[data-theme="light"] body {
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(184, 151, 46, 0.12), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(214, 206, 186, 0.55), transparent 55%),
        #f4f1e8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(184, 151, 46, 0.14), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(35, 52, 86, 0.7), transparent 55%),
        var(--navy-900);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrap { width: min(1100px, 92vw); margin: 0 auto; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Native dropdown options need a solid bg/color or the open list is unreadable in dark mode */
select option, select optgroup { background-color: var(--navy-700); color: var(--text); }

/* Themed defaults for form controls so nothing falls back to raw browser chrome.
   Placed early — scoped rules (.field, .sc-search, etc.) below still override these. */
input[type="text"], input[type="search"], input[type="email"], input[type="number"],
input[type="url"], input[type="password"], input[type="tel"], input[type="date"], textarea, select {
    padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--input-bg); color: var(--text); font: inherit; font-size: 14px;
}
input[type="text"]:focus, input[type="search"]:focus, input[type="email"]:focus, input[type="number"]:focus,
input[type="url"]:focus, input[type="password"]:focus, input[type="tel"]:focus, input[type="date"]:focus,
textarea:focus, select:focus { outline: none; border-color: var(--gold); }
select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239aa6bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
select::-ms-expand { display: none; }

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
    position: sticky; top: 0; z-index: 20;
    background: var(--header-bg);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text-strong); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif; font-size: 28px; line-height: 1;
    color: var(--on-gold);
    background: linear-gradient(160deg, var(--gold-bright), var(--gold));
    box-shadow: 0 6px 18px rgba(184, 151, 46, 0.4);
}
.brand-mark.lg { width: 72px; height: 72px; font-size: 52px; border-radius: 18px; }
.brand-logo { width: 44px; height: 44px; box-sizing: border-box; padding: 4px; object-fit: contain; display: block;
    background: #ffffff;
    border-radius: 11px; box-shadow: 0 6px 18px rgba(184, 151, 46, 0.4); }
.brand-name { font-family: 'Bebas Neue', sans-serif; display: inline-flex; flex-direction: column;
    align-items: center; line-height: 1; }
/* padding-left compensates the trailing letter-spacing so each line stays truly centered */
.brand-name-main { font-size: 18px; letter-spacing: 12px; padding-left: 12px; }
.brand-name-sub { font-size: 14px; letter-spacing: 2.5px; padding-left: 2.5px; color: var(--gold-bright); margin-top: 3px; }
/* Disabled "Join" with a coming-soon ribbon */
.join-wrap { position: relative; display: inline-flex; }
.join-wrap .btn.is-disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.3); }
.join-soon { position: absolute; top: -9px; right: -10px; z-index: 2; pointer-events: none;
    font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap;
    color: #1a1204; background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    padding: 2px 7px; border-radius: 999px; box-shadow: 0 4px 10px -3px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.35); transform: rotate(6deg); }
.brand-name .dot, .brand-name .apos { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--text-soft); font-weight: 500; }
.nav a:hover { color: var(--text-strong); text-decoration: none; }
.nav-links { display: flex; align-items: center; }
.nav-links a { position: relative; padding: 8px 18px; color: var(--text-soft); font-weight: 600; font-size: 15px; transition: color .15s ease; }
.nav-links a:hover { color: var(--gold-bright); text-decoration: none; }
.nav-links a:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 16px; width: 1px; background: var(--line); }
.nav-links a::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .18s ease; }
.nav-links a:hover::before { transform: scaleX(1); }
.nav-links a.is-active { color: var(--gold-bright); }
.nav-links a.is-active::before { transform: scaleX(1); }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--hover); color: var(--text-soft); cursor: pointer; font-size: 16px; line-height: 1; transition: border-color .2s ease, color .2s ease; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-bright); }
.inline-form { margin: 0; }
.link-btn { background: none; border: 0; color: var(--text-soft); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--text-strong); }

/* ---------- User menu ---------- */
.user-menu { position: relative; }
.user-trigger {
    display: flex; align-items: center; gap: 9px; cursor: pointer;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line);
    padding: 5px 12px 5px 5px; border-radius: 999px; color: var(--text); font: inherit;
    transition: border-color .2s ease, background .2s ease;
}
.user-trigger:hover { border-color: var(--gold); background: rgba(255,255,255,0.08); }
.avatar {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    font-family: 'Bebas Neue', sans-serif; font-size: 17px; line-height: 1; color: var(--on-gold);
    background: linear-gradient(160deg, var(--gold-bright), var(--gold)); flex-shrink: 0;
}
.avatar-lg { width: 42px; height: 42px; font-size: 24px; }
.avatar.has-img { background: var(--navy-900) center / cover no-repeat; }   /* uploaded photo replaces the initial disc */
.user-name { font-weight: 600; font-size: 14px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: var(--muted); font-size: 11px; }

.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); width: 244px; z-index: 40;
    background: var(--navy-700); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); overflow: hidden;
}
.user-dd-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.user-dd-id { display: flex; flex-direction: column; min-width: 0; }
.user-dd-id strong { color: var(--text-strong); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dd-id .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dd-credit { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.user-dd-credit strong { font-family: 'Bebas Neue', sans-serif; font-size: 19px; letter-spacing: .5px; color: var(--gold-bright); }
.user-dd-links { padding: 6px; }
.user-dd-links a, .user-dd-links button, .user-dd-signout button {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    padding: 10px 12px; border-radius: 9px; color: var(--text-soft); font: inherit; font-size: 14px; font-weight: 500;
    background: none; border: 0; cursor: pointer;
}
.user-dd-links a:hover, .user-dd-links button:hover, .user-dd-signout button:hover { background: var(--hover); text-decoration: none; color: var(--text-strong); }
/* count badge on a dropdown item — neutral by default, red when it needs the user's action */
.dd-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
    color: var(--text); background: rgba(255,255,255,0.12); font-variant-numeric: tabular-nums; }
.dd-badge.is-action { color: #fff; background: #d3392f; box-shadow: 0 0 0 3px rgba(211,57,47,0.18); }
.user-dd-div { height: 1px; background: var(--line); margin: 6px 8px; }
.user-dd-signout { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.user-dd-signout button { color: #ffb3b3; }
.dd-ic { font-size: 15px; width: 18px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; cursor: pointer;
    padding: 13px 24px; border-radius: 10px; border: 0;
    font-weight: 700; font-size: 15px; letter-spacing: 0.3px;
    transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { color: var(--on-gold); background: linear-gradient(160deg, var(--gold-bright), var(--gold)); box-shadow: 0 10px 24px rgba(184, 151, 46, 0.35); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Flash ---------- */
.flash { padding: 11px 0; font-weight: 600; font-size: 14px; }
.flash .wrap { display: block; }
.flash-success { background: rgba(46, 160, 96, 0.16); color: #8ff0b6; }
.flash-error   { background: rgba(200, 60, 60, 0.16); color: #ffb3b3; }
.flash-info    { background: rgba(184, 151, 46, 0.14); color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-inner { position: relative; z-index: 2; max-width: 660px; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; color: var(--gold); font-weight: 700; margin: 0 0 14px; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(56px, 9vw, 104px); line-height: 0.92; margin: 0 0 22px; letter-spacing: 1px; }
.hero-title.sm { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--text-soft); margin: 0 0 30px; }
.hero-sub strong { color: var(--gold-bright); }
.hero-fine { color: var(--muted); font-size: 13px; margin-top: 12px; }
.hero-glow {
    position: absolute; right: -40px; top: 40%; transform: translateY(-50%);
    font-family: 'Bebas Neue', sans-serif; font-size: 460px; line-height: 1;
    color: rgba(184, 151, 46, 0.08); z-index: 1; pointer-events: none; user-select: none;
}

.lead-form { display: flex; gap: 10px; max-width: 460px; }
.lead-form input {
    flex: 1; padding: 14px 16px; border-radius: 10px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text-strong); font-size: 15px;
}
.lead-form input::placeholder { color: var(--muted); }
.lead-form input:focus { outline: none; border-color: var(--gold); }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: rgba(0, 0, 0, 0.15); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strip-item { display: flex; flex-direction: column; gap: 4px; color: var(--text-soft); font-size: 14px; }
.strip-num { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; color: var(--gold-bright); }

/* ---------- Cards / forms ---------- */
.card { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-title { font-family: 'Bebas Neue', sans-serif; font-size: 34px; letter-spacing: 1px; margin: 0 0 20px; }
.auth-wrap { padding: 70px 0; display: grid; place-items: center; }
.auth-card { width: min(440px, 92vw); padding: 38px 34px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.form input { padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text-strong); font-size: 15px; }
.form input:focus { outline: none; border-color: var(--gold); }
.muted { color: var(--muted); font-weight: 400; }
.auth-alt { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Account ---------- */
.account { padding: 48px 0 90px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.credit-pill { display: inline-flex; align-items: stretch; border-radius: 12px; border: 1px solid var(--line); background: var(--input-bg); overflow: hidden; }
.credit-amount { display: flex; flex-direction: column; align-items: center; gap: 3px; justify-content: center; padding: 12px 24px; text-align: center; color: inherit; transition: background .15s ease; }
a.credit-amount:hover { background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.credit-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.credit-amount strong { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; color: var(--gold-bright); line-height: 1; }
.credit-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 88px; padding: 8px 18px; border: 0; border-left: 1px solid var(--line); background: rgba(184, 151, 46, 0.12); color: var(--gold-bright); font: inherit; cursor: pointer; transition: background .15s ease, color .15s ease; }
.credit-add:hover { background: rgba(184, 151, 46, 0.26); color: #ffe9a8; text-decoration: none; }
.credit-add-plus { font-family: 'Bebas Neue', sans-serif; font-size: 30px; line-height: 1; }
.credit-add-label { font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.credit-pill strong { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--gold-bright); letter-spacing: 1px; }
.locker-empty { padding: 60px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.locker-empty h2 { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; margin: 6px 0 0; }
.locker-empty p { color: var(--text-soft); max-width: 420px; margin: 0 0 8px; }

/* ---------- Error ---------- */
.error-page { padding: 110px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
    .strip-grid { grid-template-columns: 1fr; }
    .lead-form { flex-direction: column; }
    .hero-glow { font-size: 300px; }
}

/* ============================================================
   Storefront: drops grid + pack detail
   ============================================================ */
.section-label { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; margin: 36px 0 16px; }
.drops-page { padding: 48px 0 90px; }
.drops-page .dx { margin-top: 0; }   /* the browse grid already sits under the page padding here */
.drops-header { margin-bottom: 18px; }

.drop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.drop-grid.dimmed { opacity: 0.55; }

/* Signed-in home dashboard */
.dash { padding-top: 30px; padding-bottom: 60px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head .eyebrow { margin-bottom: 2px; }
.dash-drops { border: 1px solid rgba(184,151,46,0.32); border-radius: 18px; background: linear-gradient(150deg, rgba(184,151,46,0.10), rgba(184,151,46,0.02) 55%, transparent); padding: 24px; margin-bottom: 32px; }
.dash-drops-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-drops-head .eyebrow.gold { color: var(--gold-bright); }
.dash-drops-sub { margin: 6px 0 0; max-width: 460px; }
.dash-empty { padding: 22px 0; text-align: center; }
/* Live-now drops slider: one row of 2–4 cards with arrow controls */
.drop-slider { position: relative; }
/* overflow-x:auto also clips vertically, so pad the top/bottom to fit the card hover-lift + shadow. */
.drop-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding: 8px 4px 12px; }
.drop-track::-webkit-scrollbar { display: none; }
.drop-track > .drop-card { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }   /* 4 across (3 gaps) */
.slide-arrow { position: absolute; top: 46%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--navy-900); color: var(--text-strong); font-size: 24px; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.45); transition: border-color .14s ease, color .14s ease, background .14s ease; }
.slide-arrow:hover { border-color: var(--gold-bright); color: var(--gold-bright); background: var(--navy-700); }
.slide-arrow.prev { left: -14px; }
.slide-arrow.next { right: -14px; }
.slide-arrow[hidden] { display: none; }
@media (max-width: 900px) { .drop-track > .drop-card { flex-basis: calc((100% - 32px) / 3); } }   /* 3 across */
@media (max-width: 620px) { .drop-track > .drop-card { flex-basis: calc((100% - 16px) / 2); } }   /* 2 across (minimum) */

/* ===== Landing marketing pack slider (3 design options) ===== */
.promo-slider { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--navy-900); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.7); }
.dash-promo { margin-bottom: 30px; }
.promo-track { display: flex; }
.promo-track.is-ready { transition: transform .55s cubic-bezier(.5,0,.2,1); }
.promo-slide { flex: 0 0 100%; box-sizing: border-box; min-height: 380px; padding: 46px 70px; display: flex; align-items: center; gap: 40px; }
.ps-eyebrow { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: 2.4px; color: var(--gold-bright); font-weight: 700; margin-bottom: 14px; }
.ps-title { font-family: 'Bebas Neue', sans-serif; font-size: 60px; line-height: .92; letter-spacing: 1px; color: var(--text-strong); margin: 0 0 14px; }
.ps-sub { color: var(--text-soft); font-size: 16px; max-width: 430px; margin: 0 0 24px; line-height: 1.55; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* A · split hero + grading seal */
.slide-split { justify-content: space-between; background: radial-gradient(130% 150% at 100% 15%, rgba(184,151,46,0.22), transparent 55%), linear-gradient(120deg, var(--navy-900), var(--navy-700)); }
.slide-split .ps-text { flex: 1; }
.ps-visual { flex: none; }
.grade-seal { position: relative; width: 196px; height: 196px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--gold); background: radial-gradient(circle at 50% 34%, rgba(255,255,255,0.16), transparent 62%); box-shadow: 0 0 0 8px rgba(184,151,46,0.10), 0 26px 60px -14px rgba(184,151,46,0.45); }
.gs-10 { font-family: 'Bebas Neue', sans-serif; font-size: 96px; line-height: 1; color: var(--gold-bright); text-shadow: 0 4px 24px rgba(184,151,46,0.5); }
.gs-label { position: absolute; bottom: 32px; font-size: 11px; letter-spacing: 3px; color: var(--gold); font-weight: 700; }
/* A · pack graphic with top cards fanned behind it */
.ps-showcase { position: relative; flex: 0 0 400px; height: 300px; }
.ps-showcase .sc-card { position: absolute; bottom: 30px; width: 112px; height: 156px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 14px 26px -6px rgba(0,0,0,0.6); object-fit: cover; background: var(--navy-900); }
.ps-showcase .sc-card-1 { left: 24px; transform: rotate(-15deg); }
.ps-showcase .sc-card-2 { left: 140px; transform: translateY(-14px); }
.ps-showcase .sc-card-3 { left: 256px; transform: rotate(15deg); }
.ps-showcase .sc-pack { position: absolute; left: 106px; bottom: -4px; width: 178px; z-index: 3; filter: drop-shadow(0 22px 30px rgba(0,0,0,0.6)); }
.ps-showcase-badge { position: absolute; top: 4px; right: 12px; z-index: 4; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); padding: 5px 11px; border-radius: 999px; }

/* B · centered minimal spotlight */
.slide-center { flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(58% 92% at 50% 42%, rgba(184,151,46,0.16), transparent 70%), var(--navy-900); }
.ps-bigtitle { font-family: 'Bebas Neue', sans-serif; font-size: 86px; line-height: .9; letter-spacing: 7px; color: var(--text-strong); margin: 0 0 14px; text-shadow: 0 6px 40px rgba(184,151,46,0.35); }
.slide-center .ps-sub { margin-left: auto; margin-right: auto; }

/* C · editorial + feature list */
.slide-feature { justify-content: space-between; background: linear-gradient(90deg, var(--navy-700), var(--navy-900)); border-left: 3px solid var(--gold); }
.slide-feature .ps-text { flex: none; }
.ps-feats { list-style: none; margin: 0; padding: 4px 0 4px 34px; display: flex; flex-direction: column; gap: 18px; border-left: 1px solid var(--line); }
.ps-feats li { display: flex; flex-direction: column; gap: 2px; }
.ps-feats strong { color: var(--gold-bright); font-size: 16px; }
.ps-feats span { color: var(--muted); font-size: 13px; }

/* Card-showcase slides (D/E/F) */
.ps-tc { border-radius: 8px; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 16px 30px -8px rgba(0,0,0,0.6); object-fit: cover; background: var(--navy-900); }
/* D · fanned hand */
.slide-fan { justify-content: space-between; gap: 20px; border-left: 3px solid var(--gold);
    background: radial-gradient(120% 150% at 100% 12%, rgba(184,151,46,0.18), transparent 55%), linear-gradient(90deg, var(--navy-700), var(--navy-900)); }
.slide-fan .ps-text { flex: 1 1 44%; }
.ps-fan { position: relative; flex: 0 0 420px; height: 300px; }
.ps-fan .ps-tc { position: absolute; bottom: 26px; left: 50%; width: 122px; height: 170px; transform-origin: bottom center; }
.ps-fan .ps-tc:nth-child(1) { transform: translateX(-50%) rotate(-30deg); }
.ps-fan .ps-tc:nth-child(2) { transform: translateX(-50%) rotate(-15deg); }
.ps-fan .ps-tc:nth-child(3) { transform: translateX(-50%) rotate(0); z-index: 2; }
.ps-fan .ps-tc:nth-child(4) { transform: translateX(-50%) rotate(15deg); }
.ps-fan .ps-tc:nth-child(5) { transform: translateX(-50%) rotate(30deg); }
/* E · overlapping lineup */
.slide-lineup { flex-direction: column; align-items: stretch; justify-content: center; gap: 20px; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); }
.ps-lineup-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ps-lineup-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 12px; }
.ps-lineup { display: flex; padding-left: 6px; }
.ps-lineup .ps-tc { width: 116px; height: 162px; margin-left: -26px; }
.ps-lineup .ps-tc:first-child { margin-left: 0; }
.ps-lineup .ps-tc:nth-child(odd) { transform: rotate(-4deg); }
.ps-lineup .ps-tc:nth-child(even) { transform: rotate(4deg) translateY(-10px); z-index: 2; }
/* F · spotlight hero — blurred pack backdrop that slowly swirls behind a big centered hero card */
.slide-spot { position: relative; overflow: hidden; justify-content: space-between; gap: 20px; background: var(--navy-900); }
/* STATIC blurred pack backdrop + left-darkening tint baked in — never animated (blur re-raster = jank) */
.slide-spot::before { content: ""; position: absolute; inset: -10%; z-index: 0;
    background:
      linear-gradient(90deg, var(--navy-900) 14%, rgba(13,17,32,0.42) 55%, rgba(184,151,46,0.12)),
      var(--pack, none) center / cover no-repeat;
    filter: blur(46px) saturate(155%); opacity: .55; }
/* the motion: bold conic light-sweeps — pure gradient, GPU rotate, nothing to re-blur = clean & smooth */
.slide-spot::after { content: ""; position: absolute; top: 50%; left: calc(100% - 305px); /* swirl point centered behind the sample cards */
    width: 360%; height: 440%; z-index: 0; pointer-events: none; opacity: .95;
    mix-blend-mode: screen;
    background: conic-gradient(from 0deg at 50% 50%,
        rgba(184,151,46,0)   0deg, rgba(255,205,74,0.55) 34deg, rgba(184,151,46,0) 92deg,
        rgba(120,150,255,0) 150deg, rgba(120,150,255,0.34) 190deg, rgba(120,150,255,0) 236deg,
        rgba(184,151,46,0) 268deg, rgba(255,205,74,0.42) 306deg, rgba(184,151,46,0) 360deg);
    transform: translate(-50%, -50%); will-change: transform;
    animation: spotSwirl 15s linear infinite, spotPulse 6s ease-in-out infinite; }
.slide-spot > * { position: relative; z-index: 1; }   /* text + cards above the backdrop */
/* diagonal corner ribbon, clipped by .slide-spot overflow:hidden */
.ps-ribbon { position: absolute; top: 38px; left: -60px; z-index: 4;
    width: 230px; text-align: center; transform: rotate(-45deg);
    background: linear-gradient(135deg, var(--gold-bright), #b8972e);
    color: #1a1204; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 7px 0; box-shadow: 0 6px 16px -4px rgba(0,0,0,0.55);
    border-top: 1px solid rgba(255,255,255,0.35); border-bottom: 1px solid rgba(0,0,0,0.25); }
.slide-spot .ps-text { flex: 1 1 40%; }
.ps-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) { .ps-actions { justify-content: center; } }
.ps-spot { position: relative; flex: 0 0 470px; height: 340px; }
.ps-spot .ps-tc { position: absolute; top: 50%; left: 50%; overflow: hidden;
    transition: transform .45s cubic-bezier(.2,.7,.2,1); }
/* crop to just the card art — trim the barcode/text band at the top */
.ps-spot .ps-tc img { display: block; width: 100%; height: 100%; object-fit: cover;
    object-position: center center; border-radius: inherit;
    transform: scale(1.3); transform-origin: center 100%; }
/* faint static glare across each card */
.ps-spot .ps-tc::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: linear-gradient(122deg,
        rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%); }
/* static fan: hero centred, two smaller cards fanned left/right behind it */
.ps-spot-hero { width: 204px; height: 286px; transform: translate(-50%,-50%); z-index: 3;
    box-shadow: 0 28px 52px -12px rgba(0,0,0,0.72), 0 0 50px rgba(184,151,46,0.32); }
.ps-spot-l { width: 150px; height: 210px; transform: translate(calc(-50% - 104px), -50%) rotate(-13deg); z-index: 1; opacity: .9; }
.ps-spot-r { width: 150px; height: 210px; transform: translate(calc(-50% + 104px), -50%) rotate(13deg); z-index: 1; opacity: .9; }
/* hover the whole banner: fan the three cards out a little more, then ease back on mouse-out */
.slide-spot:hover .ps-spot-hero { transform: translate(-50%, calc(-50% - 10px)) scale(1.03); }
.slide-spot:hover .ps-spot-l { transform: translate(calc(-50% - 140px), -50%) rotate(-19deg); }
.slide-spot:hover .ps-spot-r { transform: translate(calc(-50% + 140px), -50%) rotate(19deg); }
@keyframes spotSwirl { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spotPulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide-spot::after { animation: none; } }

/* controls */
.promo-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16); background: rgba(13,17,32,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.promo-arrow:hover { border-color: var(--gold-bright); color: var(--gold-bright); background: rgba(13,17,32,0.8); }
.promo-arrow.prev { left: 16px; }
.promo-arrow.next { right: 16px; }
.promo-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.promo-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,0.32); cursor: pointer; transition: background .18s ease, width .18s ease, border-radius .18s ease; }
.promo-dot.is-active { background: var(--gold-bright); width: 22px; border-radius: 4px; }

@media (max-width: 700px) {
    .promo-slide { flex-direction: column; text-align: center; align-items: center; padding: 34px 22px 46px; gap: 24px; min-height: 0; }
    .slide-spot::after { left: 50%; } /* cards center horizontally when stacked */
    .ps-showcase { flex: none; width: 400px; height: 300px; transform: scale(.72); transform-origin: top center; margin: -14px auto -84px; }
    .ps-fan, .ps-spot { flex: none; width: 470px; transform: scale(.64); transform-origin: top center; margin: -12px auto -116px; }
    .ps-lineup { justify-content: center; overflow-x: auto; scrollbar-width: none; }
    .ps-sub { margin-left: auto; margin-right: auto; }
    .ps-title { font-size: 46px; }
    .ps-bigtitle { font-size: 56px; letter-spacing: 3px; }
    .slide-feature { border-left: 0; }
    .ps-feats { border-left: 0; padding-left: 0; align-items: center; text-align: center; }
    .promo-arrow { display: none; }
}
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.dash-stat { display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-700); transition: border-color .15s ease; }
a.dash-stat:hover { border-color: rgba(184,151,46,0.45); text-decoration: none; }
.dash-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: .5px; line-height: 1; color: var(--text-strong); }
.dash-stat-num.gold { color: var(--gold-bright); }
.dash-stat-lbl { font-size: 12.5px; color: var(--muted); }
.dash-section { margin-bottom: 36px; }
.dash-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.dash-more { color: var(--gold-bright); font-weight: 600; font-size: 14px; white-space: nowrap; }
.dash-more:hover { text-decoration: none; opacity: .85; }
@media (max-width: 620px) {
    .dash-stats { grid-template-columns: 1fr; }
    .dash-drops-head .btn { width: 100%; text-align: center; }
}
.drop-card { display: flex; flex-direction: column; background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); overflow: visible; transition: transform .1s ease, border-color .2s ease; }
.drop-card:hover { transform: translateY(-3px); border-color: var(--gold); text-decoration: none; }
.drop-card-img { position: relative; aspect-ratio: 4/3; overflow: visible; border-radius: var(--radius) var(--radius) 0 0; background: radial-gradient(circle at 60% 35%, rgba(184,151,46,0.25), transparent 60%), var(--navy-900); background-size: cover; background-position: center; display: grid; place-items: center; }
.drop-card-mark { font-family: 'Bebas Neue', sans-serif; font-size: 72px; color: rgba(184,151,46,0.35); }
/* Full, uncropped hero that overhangs the stage's bottom edge for a 3D "pop-out" look. */
.drop-card-hero { position: absolute; left: 0; right: 0; top: 8px; bottom: -16px; z-index: 2; pointer-events: none; transition: transform .15s ease; }
.drop-card-hero img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 12px 16px rgba(0,0,0,0.5)); }
.drop-card:hover .drop-card-hero { transform: translateY(-5px); }
/* Glare sweep on hover, masked to the hero's silhouette so the shine follows the cutout. */
.drop-card-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.55) 48%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.55) 52%, transparent 62%);
    background-size: 250% 100%; background-position: 150% 0;
    -webkit-mask: var(--hero) bottom center / contain no-repeat;
            mask: var(--hero) bottom center / contain no-repeat;
}
.drop-card:hover .drop-card-hero::after { animation: heroShimmer 0.9s ease-out; }
@keyframes heroShimmer {
    0% { opacity: 1; background-position: 150% 0; }
    100% { opacity: 1; background-position: -150% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .drop-card:hover .drop-card-hero::after,
    .locker-card:hover .locker-hero::after,
    .chase-card:hover .chase-hero::after { animation: none; }
}
.drop-type { position: absolute; top: 10px; left: 10px; z-index: 3; background: rgba(0,0,0,0.5); color: var(--gold-bright); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.drop-card-body { padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-radius: 0 0 var(--radius) var(--radius); }
.drop-card-body h3 { margin: 0; font-size: 17px; color: var(--text-strong); }
.drop-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.drop-price { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--gold-bright); letter-spacing: 1px; }
.drop-cta { color: var(--text-soft); font-weight: 600; font-size: 14px; }

.pack-detail { padding: 30px 0 90px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--text-soft); }
.pack-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.pack-hero { aspect-ratio: 16/10; border-radius: var(--radius); background: radial-gradient(circle at 60% 35%, rgba(184,151,46,0.22), transparent 60%), var(--navy-700); background-size: cover; background-position: center; display: grid; place-items: center; border: 1px solid var(--line); margin-bottom: 26px; }

/* "Grail" showcase slider — big gold hero card left, two smaller clean cards right */
.grail-slider { position: relative; height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 26px; background: var(--navy-900); }
.grail-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(54% 72% at 50% 48%, color-mix(in srgb, var(--accent, #e8b84b) 26%, transparent), transparent 62%),
        radial-gradient(120% 100% at 50% 120%, color-mix(in srgb, var(--accent, #e8b84b) 14%, transparent), transparent 60%),
        radial-gradient(90% 70% at 80% 10%, rgba(108,140,255,0.10), transparent 60%); }
/* soft conic light-swirl (matches the Perfect 10's slider), tinted to the pack's accent colour */
.grail-bg::before { content: ""; position: absolute; left: 50%; top: 50%; width: 200%; height: 200%; transform: translate(-50%,-50%);
    z-index: 0; pointer-events: none; mix-blend-mode: screen; will-change: transform;
    background: conic-gradient(from 0deg at 50% 50%,
        transparent 0deg,
        color-mix(in srgb, var(--accent, #e8b84b) 55%, transparent) 36deg,
        transparent 96deg,
        transparent 168deg,
        color-mix(in srgb, var(--accent, #e8b84b) 30%, transparent) 204deg,
        transparent 252deg,
        transparent 300deg,
        color-mix(in srgb, var(--accent, #e8b84b) 45%, transparent) 330deg,
        transparent 360deg);
    animation: grailSwirl 16s linear infinite, grailPulse 6s ease-in-out infinite; }
@keyframes grailSwirl { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes grailPulse { 0%,100% { opacity: .6; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .grail-bg::before { animation: none; } }

.grail-stage { position: absolute; inset: 0; z-index: 1; }
.grail-card { position: absolute; top: 50%; left: 50%; margin: 0; opacity: 0; pointer-events: none; cursor: pointer;
    transform: translate(-50%,-50%) scale(.6);
    transition: height .55s cubic-bezier(.2,.7,.2,1), opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.grail-frame { position: relative; height: 100%; border-radius: 12px; overflow: hidden; line-height: 0; border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 18px 34px rgba(0,0,0,0.5); background: var(--navy-700); }
.grail-img { display: block; height: 100%; width: auto; }
.grail-ph { display: grid; place-items: center; height: 100%; aspect-ratio: 3/4; line-height: 1; }
.grail-shine { position: absolute; inset: 0; pointer-events: none; transform: translateX(-140%);
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.32) 50%, transparent 60%); }
.grail-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; line-height: 1.2; background: linear-gradient(to top, rgba(0,0,0,0.84), rgba(0,0,0,0.1) 72%, transparent); }
.grail-title { max-width: 100%; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.25; text-shadow: 0 1px 6px rgba(0,0,0,0.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grail-odds { font-size: 11px; font-weight: 600; letter-spacing: .3px; color: var(--gold-bright); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.grail-card:not(.is-grail) .grail-cap { display: none; }

/* positions: grail centered, one card peeking behind it */
.grail-card.is-grail  { height: 90%; opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); z-index: 6; }
.grail-card.is-side-1 { height: 80%; opacity: .7; pointer-events: auto; transform: translate(-14%,-50%) scale(1); z-index: 3; }
.grail-card.is-side-2 { height: 80%; opacity: .7; pointer-events: auto; transform: translate(-86%,-50%) scale(1); z-index: 3; }
.grail-card.is-future { height: 80%; opacity: 0; transform: translate(80%,-50%) scale(.85); z-index: 1; }
.grail-card.is-past   { height: 80%; opacity: 0; transform: translate(-160%,-50%) scale(.85); z-index: 1; }

/* the grail card: gold border + glow, floating shadow, shimmer sweep */
.grail-card.is-grail .grail-frame { border-color: rgba(255,210,74,0.75); box-shadow: 0 26px 46px -6px rgba(0,0,0,0.6), 0 0 42px rgba(255,210,74,0.35); }
.grail-card.is-grail .grail-shine { animation: grailShine 3.4s ease-in-out .5s infinite; }
@keyframes grailShine { 0% { transform: translateX(-140%); } 55%,100% { transform: translateX(140%); } }
.grail-card.is-grail::after { content: ""; position: absolute; left: 50%; bottom: -5%; width: 72%; height: 26px; transform: translateX(-50%); z-index: -1; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%); filter: blur(5px); }

.grail-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 8; transition: background .2s ease; }
.grail-nav:hover { background: rgba(0,0,0,0.74); }
.grail-nav.prev { left: 10px; }
.grail-nav.next { right: 10px; }
.grail-nav[hidden] { display: none; }
@media (max-width: 640px) { .grail-slider { height: 320px; } }
.chase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chase-card { background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; overflow: visible; padding: 0; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: transform .1s ease, border-color .2s ease; }
.chase-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.chase-img { position: relative; aspect-ratio: 1/1; overflow: visible; border-radius: 12px 12px 0 0; background: var(--navy-900); display: grid; place-items: center; }
/* Full, uncropped chase image that overhangs the stage's bottom edge with a glare sweep on hover. */
.chase-hero { position: absolute; left: 0; right: 0; top: 6px; bottom: -12px; z-index: 2; pointer-events: none; transition: transform .15s ease; }
.chase-hero img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 10px 14px rgba(0,0,0,0.5)); }
.chase-card:hover .chase-hero { transform: translateY(-4px); }
.chase-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.55) 48%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.55) 52%, transparent 62%);
    background-size: 250% 100%; background-position: 150% 0;
    -webkit-mask: var(--hero) bottom center / contain no-repeat;
            mask: var(--hero) bottom center / contain no-repeat;
}
.chase-card:hover .chase-hero::after { animation: heroShimmer 0.9s ease-out; }
.chase-zoom { position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(0,0,0,0.5); color: var(--text-strong); font-size: 14px; opacity: 0; transition: opacity .15s ease; }
.chase-card:hover .chase-zoom { opacity: 1; }
.chase-meta { padding: 16px 12px 10px; display: flex; flex-direction: column; gap: 4px; border-radius: 0 0 12px 12px; }
.chase-meta p { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 4); }
.chase-more { text-align: center; margin: 16px 0 0; font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--gold-bright); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; background: rgba(6, 9, 16, 0.82); backdrop-filter: blur(4px); animation: modalFade .16s ease; }
.lightbox[hidden] { display: none; }
.lightbox-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.08); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { border-color: var(--gold); }
.lightbox-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: min(560px, 94vw); }
.lightbox-img { width: min(440px, 86vw); aspect-ratio: 3/4; border-radius: 14px; background: var(--navy-700); background-size: cover; background-position: center; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; }
.lightbox-cap { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lightbox-cap h3 { margin: 0; font-size: 19px; color: var(--text-strong); }

.pack-buy { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: sticky; top: 88px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0; }
.price-big { font-family: 'Bebas Neue', sans-serif; font-size: 46px; color: var(--gold-bright); letter-spacing: 1px; line-height: 1; }
.pf-badge { margin-top: 16px; padding: 11px 14px; border-radius: 10px; background: rgba(184,151,46,0.1); border: 1px solid rgba(184,151,46,0.3); color: var(--gold-bright); font-size: 13px; }
.admin-reset { margin-top: 12px; }
.btn-reset { width: 100%; cursor: pointer; padding: 9px 12px; border-radius: 10px; background: rgba(180,60,60,0.10); border: 1px dashed rgba(210,90,90,0.55); color: #e88; font-size: 13px; font-weight: 700; letter-spacing: .3px; transition: background .15s ease, border-color .15s ease; }
.btn-reset:hover { background: rgba(180,60,60,0.18); border-color: rgba(210,90,90,0.9); }
.btn-reset span { font-weight: 400; opacity: .7; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.odds-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; margin: 24px 0 10px; }
.odds-table td { padding: 9px 6px; }

.fairness-box { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: rgba(46,160,96,0.08); border: 1px solid rgba(46,160,96,0.28); }
.fairness-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--text-soft); }
.fairness-row strong { color: #8ff0b6; font-family: 'Bebas Neue', sans-serif; font-size: 19px; letter-spacing: .5px; }
.fairness-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Fairness pledge page */
.pledge { padding: 56px 0 90px; }
.pledge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 34px 0; }
.pledge-card { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; position: relative; }
.pledge-mark { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--gold); letter-spacing: 1px; }
.pledge-card h3 { margin: 8px 0 8px; font-size: 18px; color: var(--text-strong); }
.pledge-card p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.pledge-card em { color: var(--gold-bright); font-style: normal; }
.pledge-cta { text-align: center; margin-top: 18px; }
.pledge-cta p { color: var(--text-soft); font-size: 17px; margin-bottom: 16px; }

@media (max-width: 820px) {
    .pack-grid { grid-template-columns: 1fr; }
    .pack-buy { position: static; }
}

/* ============================================================
   Verify (authentication portal)
   ============================================================ */
.verify-page { padding: 50px 0 90px; max-width: 820px; }
.verify-badge { display: inline-block; padding: 9px 18px; border-radius: 999px; background: rgba(46,160,96,0.16); color: #8ff0b6; border: 1px solid rgba(46,160,96,0.5); font-weight: 700; letter-spacing: .3px; }

/* ============================================================
   Wallet
   ============================================================ */
.wallet-page { padding: 48px 0 90px; }
.wallet-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px; margin-bottom: 22px; border-radius: var(--radius); border: 1px solid rgba(184,151,46,0.3); background: radial-gradient(700px 200px at 50% -40%, rgba(184,151,46,0.18), transparent 70%), var(--navy-700); }
.wallet-hero-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.wallet-hero-amount { font-family: 'Bebas Neue', sans-serif; font-size: 64px; line-height: 1; letter-spacing: 1px; color: var(--gold-bright); }
.wallet-hero-note { color: var(--muted); font-size: 12px; }
.txn-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--line); font-size: 14px; }
.txn-pos { color: #8ff0b6; font-weight: 700; font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: .5px; }
.txn-neg { color: #ffb3b3; font-weight: 700; font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: .5px; }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8, 12, 22, 0.66); backdrop-filter: blur(3px); animation: modalFade .16s ease; }
.modal-overlay[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(440px, 96vw); max-height: 92vh; overflow-y: auto; position: relative; padding: 26px 26px 28px; border-radius: 16px; background: var(--navy-700); border: 1px solid var(--line); box-shadow: var(--shadow); animation: modalPop .18s ease; }
@keyframes modalPop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; margin: 0 0 16px; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--hover); color: var(--text-soft); font-size: 20px; line-height: 1; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.modal-close:hover { color: var(--text-strong); border-color: var(--gold); }
.modal .funds-balance { margin-top: 0; }

/* ============================================================
   Add funds (wallet)
   ============================================================ */
.funds-page { padding: 40px 0 90px; }
.funds-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; margin-top: 14px; }
.funds-card { padding: 30px 30px 34px; }
.funds-balance { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 12px; background: rgba(184,151,46,0.1); border: 1px solid rgba(184,151,46,0.28); margin: 16px 0 22px; }
.funds-balance span { color: var(--muted); font-size: 13px; }
.funds-balance strong { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; color: var(--gold-bright); }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 14px; }
.preset-tile { padding: 14px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text); font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: .5px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.preset-tile:hover { border-color: var(--gold); }
.preset-tile.selected { border-color: var(--gold); background: linear-gradient(160deg, var(--gold-bright), var(--gold)); color: var(--on-gold); }
.amount-field { position: relative; }
.amount-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.amount-field input { width: 100%; padding: 14px 14px 14px 30px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text-strong); font-size: 20px; font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.amount-field input:focus { outline: none; border-color: var(--gold); }
.pay-method { margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pay-method-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(255,255,255,0.03); font-size: 13px; font-weight: 600; color: var(--text-soft); }
.pay-element-placeholder { padding: 22px 16px; color: var(--muted); font-size: 14px; text-align: center; border-top: 1px dashed var(--line); }
.funds-aside { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.funds-aside h3 { margin: 0 0 12px; font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; }
.funds-points { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.funds-points li { margin-bottom: 8px; }

@media (max-width: 760px) {
    .funds-grid { grid-template-columns: 1fr; }
    .preset-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Card detail (page + modal)
   ============================================================ */
.card-modal-inner { width: min(760px, 96vw); padding: 0; max-height: 94vh; overflow-y: auto; }
.card-loading { padding: 48px; text-align: center; color: var(--muted); }
.card-page { padding: 40px 0 90px; max-width: 760px; }
.card-page .back-link { margin-bottom: 16px; }
.card-detail { padding: 28px 30px 30px; }
.card-detail-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.card-detail-head h2 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; line-height: 1.05; letter-spacing: 1px; margin: 8px 0 3px; color: var(--text-strong); }
.card-detail-head .muted { margin: 0; font-size: 13px; }
.card-detail-top { display: grid; grid-template-columns: 210px 1fr; gap: 26px; margin: 22px 0 4px; align-items: start; }
.card-detail-img { position: relative; aspect-ratio: 3/4; border-radius: 12px; padding: 10px; background: var(--navy-900); background-size: contain; background-position: center; background-repeat: no-repeat; background-origin: content-box; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0,0,0,0.28); display: grid; place-items: center; transition: background-image .1s ease; }
.card-detail-img.is-zoomable { cursor: zoom-in; }
.card-detail-img.is-zoomable:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.cd-zoom-hint { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(0,0,0,0.5); color: #fff; font-size: 15px; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.card-detail-img.is-zoomable:hover .cd-zoom-hint { opacity: 1; }

/* Full-size image zoom lightbox (stacks above the card modal) */
.img-zoom { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(6, 9, 16, 0.9); backdrop-filter: blur(4px); animation: modalFade .16s ease; }
.img-zoom[hidden] { display: none; }
.img-zoom-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 40px; }
.img-zoom-stage img { max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; cursor: zoom-in; will-change: transform; transition: transform .12s ease; }
.img-zoom-stage img.is-zoomed { cursor: grab; }
.img-zoom-stage img.is-grabbing { cursor: grabbing; transition: none; }
.img-zoom-close { position: absolute; top: 16px; right: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.4); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.img-zoom-close:hover { border-color: var(--gold-bright); background: rgba(0,0,0,0.6); }
.img-zoom-controls { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; gap: 2px; border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.5); }
.img-zoom-controls button { width: 48px; height: 44px; border: 0; background: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; transition: background .14s ease, color .14s ease; }
.img-zoom-controls button + button { border-left: 1px solid rgba(255,255,255,0.14); }
.img-zoom-controls button:hover { background: rgba(255,255,255,0.1); color: var(--gold-bright); }
.img-zoom-hint { position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 2; margin: 0; color: rgba(255,255,255,0.6); font-size: 12px; text-align: center; pointer-events: none; }
@media (max-width: 560px) { .img-zoom-stage { padding: 20px; } .img-zoom-hint { display: none; } }
.card-detail-gallery { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; }
.card-detail-gallery .card-detail-img { width: 100%; }
.card-detail-thumbs { display: flex; gap: 10px; }
.cd-thumb { position: relative; flex: 1; height: 74px; padding: 0; border-radius: 9px; background: var(--navy-900); background-size: cover; background-position: center; border: 2px solid transparent; cursor: pointer; overflow: hidden; transition: border-color .15s ease, transform .1s ease; }
.cd-thumb:hover { transform: translateY(-1px); }
.cd-thumb.is-active { border-color: var(--gold-bright); }
.cd-thumb-lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-align: center; background: rgba(0,0,0,0.6); color: #fff; }
.cd-sell-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cd-sell-actions .btn, .cd-sell-actions .btn-ghost { text-align: center; font-size: 14px; padding: 11px 16px; }
/* Admin item-preview front/back thumbnails */
.preview-thumbs { display: flex; gap: 8px; margin-top: 10px; margin-bottom: 18px; }
/* Front / Back side toggle on the preview (always visible; click the box to upload the shown side) */
.preview-sides { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.pv-side { border: 0; background: transparent; color: var(--text-soft); font-weight: 600; font-size: 13px;
    padding: 6px 16px; border-radius: 7px; cursor: pointer; transition: color .15s ease, background .15s ease; }
.pv-side:hover { color: var(--text); }
.pv-side.is-active { color: var(--on-gold); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.preview-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
.preview-head h3 { margin: 0; font-size: 17px; color: var(--text-strong); }
.preview-head h3:empty { display: none; }
.preview-head p { margin: 0; }
.preview-head p:empty { display: none; }
.pv-thumb { position: relative; width: 52px; height: 68px; padding: 0; border-radius: 8px; background: var(--navy-900); background-size: cover; background-position: center; border: 2px solid transparent; cursor: pointer; overflow: hidden; transition: border-color .15s ease, transform .1s ease; }
.pv-thumb:hover { transform: translateY(-1px); }
.pv-thumb.is-active { border-color: var(--gold-bright); }
.pv-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; font-size: 9px; text-transform: uppercase; letter-spacing: .3px; text-align: center; background: rgba(0,0,0,0.55); color: #fff; }
.card-detail-summary { display: flex; flex-direction: column; gap: 5px; }
.cd-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.cd-value { font-family: 'Bebas Neue', sans-serif; font-size: 48px; line-height: 1; color: var(--gold-bright); letter-spacing: 1px; }
.cd-change { font-weight: 700; font-size: 13px; }
.cd-change.up { color: #8ff0b6; } .cd-change.down { color: #ffb3b3; }
.cd-range { color: var(--text-soft); font-size: 12.5px; }
.cd-summary-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.cd-auth { align-self: flex-start; margin-top: 12px; }
.cd-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
/* Sections that live inside the right-hand summary column (description, card details). */
.cd-col-section { margin-top: 16px; padding-top: 16px; }
.cd-col-section h3 { font-size: 17px; margin-bottom: 10px; }
.cd-section h3 { font-family: 'Bebas Neue', sans-serif; font-size: 19px; letter-spacing: 1px; margin: 0 0 12px; color: var(--text-strong); }
.cd-desc { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.cd-chart { background: var(--navy-900); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px 6px; }
.cd-chart .spark { display: block; }
.cd-prices { width: 100%; border-collapse: collapse; }
.cd-prices th { padding: 6px 12px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.cd-prices td { padding: 9px 12px; border-top: 1px solid var(--line); }
.cd-prices tbody tr:first-child td { border-top: 0; }
.cd-prices tr.is-tracked td { background: rgba(184,151,46,0.12); color: var(--gold-bright); font-weight: 600; }
.cd-retail th:first-child, .cd-retail td:first-child { color: var(--text-soft); }
.cd-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cd-fact { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; background: var(--navy-700); }
.cd-fact dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.cd-fact dd { margin: 0; font-size: 14px; color: var(--text-strong); font-weight: 500; }
.cd-fact dd a { color: var(--gold-bright); }
.cd-source { margin-top: 16px; }
.cd-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 16px; }
.cd-meta a { font-size: 12px; }
[data-card] { cursor: pointer; }
.result-img, .locker-img { position: relative; }
.card-zoom { position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(0,0,0,0.5); color: #fff; font-size: 14px; opacity: 0; transition: opacity .15s ease; }
.result-img:hover .card-zoom, .locker-img:hover .card-zoom { opacity: 1; }
@media (max-width: 560px) {
    .card-detail { padding: 22px 18px 24px; }
    .card-detail-top { grid-template-columns: 150px 1fr; gap: 16px; }
    .card-detail-gallery { position: static; }
    .cd-value { font-size: 40px; }
    .cd-facts { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .card-detail-top { grid-template-columns: 1fr; } }

/* ============================================================
   Reveal (pack rip)
   ============================================================ */
.reveal { position: relative; padding: 60px 0 100px; min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.reveal.flash::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(circle at 50% 42%, #fff, var(--flash, #B8972E) 40%, transparent 72%); animation: revealFlash .55s ease forwards; }
@keyframes revealFlash { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: .95; } 100% { opacity: 0; transform: scale(1.6); } }

/* --- Swirling backdrop --- */
.reveal-swirl { position: absolute; inset: -20%; z-index: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.reveal.swirling .reveal-swirl { opacity: 1; }
.reveal.afterglow .reveal-swirl { opacity: .28; transition: opacity 1.4s ease; }
.swirl-layer { position: absolute; inset: 0; mix-blend-mode: screen; filter: blur(38px); }
.swirl-a { background: conic-gradient(from 0deg, transparent, var(--tier, #B8972E) 18%, transparent 34%, var(--gold-bright) 52%, transparent 68%, var(--tier, #B8972E) 84%, transparent); animation: swirlSpin 9s linear infinite; }
.swirl-b { background: conic-gradient(from 180deg, transparent, #6c8cff 20%, transparent 40%, var(--gold-bright) 60%, transparent 80%); opacity: .6; animation: swirlSpin 14s linear infinite reverse; }
.reveal.swirling .swirl-a { animation-duration: 3.5s; }
.reveal.swirling .swirl-b { animation-duration: 5s; }
@keyframes swirlSpin { to { transform: rotate(360deg); } }
.swirl-vignette { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, transparent 30%, var(--navy-900) 78%); }

.reveal-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.reveal-pack { position: relative; width: 300px; height: 408px; border-radius: 16px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); border: 1px solid var(--gold); display: grid; place-items: center; box-shadow: var(--shadow); overflow: hidden; perspective: 1100px; }
.reveal-pack.has-img { background: none; border: none; box-shadow: none; overflow: visible; }
.reveal-pack-mark { font-family: 'Bebas Neue', sans-serif; font-size: 130px; color: rgba(184,151,46,0.5); }

/* pack split into a peelable top flap and a body, with jagged (torn) meeting edges */
.pack-layer { position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; opacity: .88; filter: drop-shadow(0 6px 14px rgba(0,0,0,.22)); }
/* Torn seam eases to a recessed valley at both far corners (no upward spike) so nothing
   is left stranded in a corner when the top flap peels away. Shares its polyline with
   .pack-top-face below so the two tile with no gap before the rip. */
/* Body's torn top stays at/above the flap's 32% edge, so it's fully covered when sealed
   (seamless) and shows a torn edge only once the flap peels. The flap (32% tall) carries the
   pack artwork's printed frame corners away with it, so they're never left stranded at the tear. */
.pack-bottom { z-index: 1; clip-path: polygon(0 32%,12% 30%,25% 32%,38% 30%,50% 32%,62% 30%,75% 32%,88% 30%,100% 32%,100% 100%,0 100%); }
/* The peeling flap is a plain rectangle clipped by overflow (NOT clip-path): a clip-path on a
   3-D-animated element leaves a stray triangle stuck in a corner during the peel (browser
   compositor bug). overflow:hidden composites cleanly. The torn look comes from the pack
   artwork's own crimped top plus the body's jagged top edge below. */
.pack-top { position: absolute; top: 0; left: 0; width: 100%; height: 32%; overflow: hidden; z-index: 3; transform-origin: center top; }
.pack-top-face { bottom: auto; height: 408px; }   /* full pack height so the contained artwork lines up with the body */
.pack-glow { position: absolute; left: 50%; top: 6%; width: 150%; height: 60%; transform: translateX(-50%); z-index: 2; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 30%, #fff, var(--gold-bright) 30%, var(--tier, #B8972E) 55%, transparent 72%); }
.pack-rays { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; transform: translate(-50%,-50%) scale(.3); z-index: 0; opacity: 0; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.20) 0deg 8deg, transparent 8deg 20deg); mask: radial-gradient(circle, #000 0 66%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 0 66%, transparent 70%); }
.pack-rip { position: absolute; left: 6%; right: 6%; top: 31%; height: 4px; z-index: 2; opacity: 0; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold-bright), #fff, var(--gold-bright), transparent); box-shadow: 0 0 18px 4px var(--gold-bright); }

.reveal-shine { position: absolute; top: 0; left: -60%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.22), transparent); animation: shine 2.6s infinite; }
.reveal-pack.has-img .reveal-shine { display: none; }
@keyframes shine { 0% { left: -60%; } 60%,100% { left: 130%; } }

/* Phase 0: awaken — gentle breathing, a rising aura, a glint sweeping the top seam */
.reveal-pack.awaken { animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.025); } }

/* masked with the pack image (set inline) so the glint is clipped to the foil shape, not the box */
.pack-shimmer { position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none; overflow: hidden; transition: opacity .4s ease;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.pack-shimmer::before { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 42%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.9), rgba(255,231,150,.65), transparent); filter: blur(1px); transform: skewX(-18deg); }
.reveal-pack.awaken .pack-shimmer, .reveal-pack.charging .pack-shimmer, .reveal-pack.ripping .pack-shimmer { opacity: 1; }
.reveal-pack.awaken .pack-shimmer::before { animation: shimmerSweep 1.9s ease-in-out infinite; }
.reveal-pack.charging .pack-shimmer::before { animation: shimmerSweep 1.05s ease-in-out infinite; }
@keyframes shimmerSweep { 0% { left: -48%; } 55%,100% { left: 116%; } }

.pack-ring { position: absolute; left: 50%; top: 50%; width: 350px; height: 470px; transform: translate(-50%,-50%) scale(.9); z-index: 0; opacity: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(ellipse at center, transparent 54%, var(--tier, #B8972E) 67%, transparent 82%); filter: blur(11px); }
.reveal-pack.awaken .pack-ring { animation: ringPulse 2.4s ease-in-out infinite; }
.reveal-pack.charging .pack-ring { animation: ringPulse 1.1s ease-in-out infinite; }
@keyframes ringPulse { 0%,100% { opacity: .1; transform: translate(-50%,-50%) scale(.9); } 50% { opacity: .5; transform: translate(-50%,-50%) scale(1.08); } }

.pack-sparkles { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: visible; }
.sparkle { position: absolute; width: 9px; height: 9px; transform: translate(-50%,0); background: radial-gradient(circle, #fff 0 28%, var(--gold-bright) 46%, transparent 70%); border-radius: 50%; box-shadow: 0 0 9px 2px rgba(255,210,74,.85); }

/* Phase 1: vibration that builds slowly from a barely-there tremble */
.reveal-pack.charging { animation: charge 2.8s cubic-bezier(.3,.05,.4,.97) forwards; }
.reveal-pack.charging .pack-glow { animation: glowBreath 1.1s ease-in-out infinite; }
@keyframes glowBreath { 0%,100% { opacity: 0; } 50% { opacity: .3; } }
@keyframes charge {
  0%   { transform: translate(0,0) rotate(0); }
  6%   { transform: translate(-.5px,.5px) rotate(-.2deg); }
  14%  { transform: translate(1px,-.5px) rotate(.3deg); }
  22%  { transform: translate(-1px,1px) rotate(-.5deg); }
  30%  { transform: translate(1.5px,-1px) rotate(.7deg); }
  38%  { transform: translate(-2px,1px) rotate(-1deg); }
  46%  { transform: translate(2.5px,-1.5px) rotate(1.3deg); }
  54%  { transform: translate(-3px,2px) rotate(-1.7deg); }
  62%  { transform: translate(3.5px,-2px) rotate(2.1deg); }
  70%  { transform: translate(-4.5px,2px) rotate(-2.5deg); }
  78%  { transform: translate(5px,-3px) rotate(3deg); }
  86%  { transform: translate(-6px,3px) rotate(-3.6deg); }
  92%  { transform: translate(6.5px,-3px) rotate(3.9deg); }
  97%  { transform: translate(-7px,4px) rotate(-4.2deg); }
  100% { transform: translate(0,-3px) rotate(0) scale(1.06); }
}

/* Phase 2: the top tears open very slowly; light spills out */
.reveal-pack.ripping .pack-top { animation: peelTop 2.3s cubic-bezier(.45,0,.2,1) forwards; }
@keyframes peelTop {
  0%   { transform: rotateX(0) translateY(0); }
  12%  { transform: rotateX(-6deg) translateY(-1px); }
  28%  { transform: rotateX(-22deg) translateY(-4px); }
  50%  { transform: rotateX(-55deg) translateY(-12px); }
  100% { transform: rotateX(-176deg) translateY(-46px) scale(1.03); opacity: .82; }
}
.reveal-pack.ripping .pack-glow { animation: glowUp 2.3s ease forwards; }
@keyframes glowUp { 0% { opacity: 0; } 40% { opacity: .5; } 100% { opacity: 1; } }
.reveal-pack.ripping .pack-rip { animation: seam 2.3s ease forwards; }
@keyframes seam { 0% { opacity: 0; transform: scaleX(.15); } 25% { opacity: 1; } 100% { opacity: 1; transform: scaleX(1); } }
.reveal-pack.ripping .pack-rays { animation: raysIn 3.2s ease forwards; }
@keyframes raysIn { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3) rotate(0); } 100% { opacity: .6; transform: translate(-50%,-50%) scale(1) rotate(55deg); } }
.reveal-pack.ripping .pack-ring { opacity: .5; transform: translate(-50%,-50%) scale(1.12); transition: opacity .6s ease, transform .6s ease; }

/* Phase 3: the pack body drops away as the prize bursts out */
.reveal-pack.bursting .pack-bottom, .reveal-pack.bursting .pack-rip { animation: packDrop .6s ease forwards; }
@keyframes packDrop { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(60px) scale(.7); opacity: 0; } }
.reveal-pack.bursting .pack-glow { animation: glowFlare .6s ease forwards; }
@keyframes glowFlare { 0% { opacity: .95; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(2.4); } }
.reveal-pack.bursting .pack-rays { animation: raysFlare .6s ease forwards; }
@keyframes raysFlare { 0% { opacity: .6; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.6) rotate(90deg); } }
/* non-image fallback keeps a simple burst */
.reveal-pack.bursting:not(.has-img) { animation: burst .6s forwards; }
@keyframes burst { 0% { transform: scale(1); opacity: 1; } 55% { transform: scale(1.25); } 100% { transform: scale(.2); opacity: 0; } }

/* Confetti burst */
.pack-burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.confetti { position: absolute; left: 0; top: 0; width: 11px; height: 14px; transform: translate(-50%,-50%); border-radius: 2px; box-shadow: 0 0 6px rgba(0,0,0,.25); }

.reveal-commit { color: var(--muted); font-size: 13px; transition: opacity .4s ease, transform .4s ease; }
.reveal-commit code { color: var(--gold-bright); }
.is-gone { opacity: 0 !important; transform: translateY(8px); pointer-events: none; transition: opacity .4s ease, transform .4s ease; }

@media (prefers-reduced-motion: reduce) {
  .swirl-a, .swirl-b, .reveal-shine, .pack-rays { animation: none !important; }
  .reveal-pack.ripping .pack-top { animation: none; transform: rotateX(-172deg) translateY(-40px); }
  .reveal-pack.ripping .pack-glow { opacity: .9; animation: none; }
  .reveal-result.show .result-photo, .reveal-result.show .result-card, .reveal-result.show .result-burst,
  .reveal-result.show .eyebrow, .reveal-result.show .result-meta, .reveal-result.show .pf-details { animation: none !important; opacity: 1 !important; }
}

.reveal-result { width: min(820px, 94vw); opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1s ease, transform 1.1s cubic-bezier(.16,.8,.3,1); }
.reveal-result.show { opacity: 1; transform: none; }
/* reload of an already-revealed pull: show the card at rest, no entry animation */
.reveal-result.shown-static { opacity: 1; transform: none; }
.reveal-result.shown-static .result-burst { display: none; }
.reveal-result.show .result-card { animation: cardRise 1.2s cubic-bezier(.16,.8,.3,1) both; }
@keyframes cardRise { 0% { transform: translateY(24px) scale(.97); box-shadow: 0 0 0 rgba(255,210,74,0); } 60% { box-shadow: 0 0 60px rgba(255,210,74,.35); } 100% { transform: none; box-shadow: var(--shadow); } }

/* the won card spins a few slow 360s, decelerating into place before settling face-on */
.result-img { perspective: 1100px; }
.reveal-result.show .result-photo { animation: cardSpin 2.6s cubic-bezier(.16,.7,.2,1) both; }
@keyframes cardSpin {
  0%   { transform: rotateY(1080deg) scale(.78); filter: brightness(.03) blur(7px); }   /* dark, blurred, whipping around */
  70%  { transform: rotateY(70deg) scale(.9); filter: brightness(.04) blur(7px); }       /* still a dark blur */
  84%  { filter: brightness(.06) blur(5px); }                                            /* held dark until the reveal */
  92%  { transform: rotateY(12deg) scale(1.06); filter: brightness(1.05) blur(.5px); }   /* POW — snaps bright */
  100% { transform: rotateY(0deg) scale(1); filter: brightness(1) blur(0); }             /* settles face-on */
}
/* big white "POW" burst behind the card, fired at the reveal moment */
.reveal-result.show .result-burst { animation: burstPow .85s ease-out 2.1s both; }
@keyframes burstPow {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.15); }
  22%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(2); }
}
/* a sheen that sweeps once, just after the burst */
.reveal-result.show .result-shimmer { animation: shimmerLand 1s ease-out 2.4s both; }
@keyframes shimmerLand { 0% { opacity: 0; } 40% { opacity: .9; } 100% { opacity: 1; } }

/* keep all text/card info hidden until the card itself has revealed */
.reveal-result.show .eyebrow { animation: infoIn .5s ease 2.5s both; }
.reveal-result.show .result-meta { animation: infoIn .6s ease 2.6s both; }
.reveal-result.show .pf-details { animation: infoIn .5s ease 2.8s both; }
@keyframes infoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-card { display: grid; grid-template-columns: 280px 1fr; gap: 28px; background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-items: center; }
.result-media { display: flex; flex-direction: column; gap: 12px; }
.result-thumbs { display: flex; gap: 10px; }
.result-thumb { position: relative; flex: 1; height: 66px; padding: 0; border-radius: 9px; background: var(--navy-900); background-size: cover; background-position: center; border: 2px solid transparent; cursor: pointer; overflow: hidden; transition: border-color .15s ease, transform .1s ease; }
.result-thumb:hover { transform: translateY(-1px); }
.result-thumb.is-active { border-color: var(--gold-bright); }
.result-thumb-lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-align: center; background: rgba(0,0,0,0.6); color: #fff; }
.result-img { border-radius: 12px; overflow: visible; background: var(--navy-900); background-size: contain; background-repeat: no-repeat; background-position: center; display: grid; place-items: center; }
.result-img:not(.has-photo) { aspect-ratio: 3/4; overflow: hidden; }           /* keep a tidy box for the ? placeholder */
.result-photo { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 12px; }   /* full card, no cropping */
/* soft layered shadow so the card reads as floating above the panel */
.result-img.has-photo { box-shadow: 0 26px 44px -14px rgba(0,0,0,0.65), 0 10px 20px -6px rgba(0,0,0,0.45); }
/* big white "POW" starburst behind the card */
.result-burst { position: absolute; left: 50%; top: 50%; z-index: 0; width: 460px; height: 460px; opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.15); background: radial-gradient(circle, #fff 0 20%, rgba(255,255,255,0.75) 32%, rgba(255,255,255,0.16) 50%, transparent 66%); }
.result-burst::before { content: ""; position: absolute; inset: -6%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.95) 0deg 5deg, transparent 5deg 17deg); -webkit-mask: radial-gradient(circle, #000 0 26%, transparent 60%); mask: radial-gradient(circle, #000 0 26%, transparent 60%); }
.result-shimmer { display: none; }
.result-img.has-photo .result-shimmer { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(48deg, transparent 56%, rgba(255,255,255,0.08) 66%, rgba(255,255,255,0.30) 72%, rgba(255,255,255,0.08) 78%, transparent 88%); mix-blend-mode: screen; }
.result-meta { display: flex; flex-direction: column; gap: 8px; }
.result-value { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--gold-bright); letter-spacing: 1px; margin: 6px 0 0; }
.result-subvalue { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.offer-star { color: var(--gold-bright); }
.offer-note { color: var(--muted); font-size: 11px; margin: 10px 0 0; }
.reveal-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.reveal-actions .inline-form { display: contents; }
.reveal-actions .btn, .reveal-actions .btn-ghost { width: 100%; text-align: center; font-size: 14px; font-weight: 700; padding: 12px 14px; }
@media (max-width: 520px) { .reveal-actions { grid-template-columns: 1fr; } }
.pf-details { margin-top: 26px; background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.pf-details summary { cursor: pointer; font-weight: 700; color: var(--gold-bright); }
.pf-details .kv code { font-size: 12px; word-break: break-all; color: var(--text-soft); }
.pf-roll { margin: 18px 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-bright); }

/* ---------- Run It Back ---------- */
/* Buy-page add-on. Deliberately quiet next to the gold buy button: it's an upsell,
   and it should read as an option rather than the main event. */
.addon { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 14px 16px;
    background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
    transition: border-color .15s ease, background .15s ease; }
.addon:hover { border-color: rgba(184, 151, 46, 0.5); }
.addon:focus-within { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.addon input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--gold); flex: 0 0 auto; cursor: pointer; }
.addon-body { display: block; }
.addon-head { display: flex; align-items: baseline; gap: 8px; }
.addon-name { font-weight: 800; letter-spacing: .01em; }
.addon-price { font-weight: 700; color: var(--gold-bright); font-size: 14px; }
.addon-note { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* The offer on the reveal page — the one moment it must be unmissable. */
.rib-offer { margin: 18px 0; padding: 14px 16px; border-radius: 12px;
    border: 1px dashed rgba(184, 151, 46, 0.55); background: rgba(184, 151, 46, 0.07); }
.rib-head { margin: 0; font-weight: 800; }
.rib-note { margin: 4px 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.btn-rib { color: var(--on-gold); background: linear-gradient(160deg, var(--gold-bright), var(--gold));
    box-shadow: 0 8px 20px rgba(184, 151, 46, 0.3); }

/* "What you passed on" — shown after a reroll. Muted on purpose: honest, not taunting. */
.passed-strip { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 12px 14px;
    background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; opacity: .75; }
.passed-img { flex: 0 0 auto; width: 52px; height: 72px; border-radius: 6px; background-size: cover;
    background-position: center; background-color: rgba(255, 255, 255, .04);
    display: flex; align-items: center; justify-content: center; filter: grayscale(1); }
.passed-meta { min-width: 0; }
.passed-title { margin: 2px 0 3px; font-weight: 700; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

@media (max-width: 560px) {
    .passed-strip { align-items: flex-start; }
}

/* ============================================================
   Draw Two — two-card reveal + choose
   ============================================================ */
.dt-reveal { max-width: 860px; }
.dt-head { text-align: center; margin-bottom: 22px; }
.dt-head .hero-sub { max-width: 560px; margin: 8px auto 0; }

/* Sealed cover: the ×2 pack you rip to reveal both cards. */
.dt-cover { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0 6px;
    transition: opacity .45s ease, transform .45s ease; }
.dt-cover.is-gone { opacity: 0; transform: scale(.96); pointer-events: none; }
.dt-cover-pack { position: relative; width: 190px; aspect-ratio: 3/4; border-radius: 14px; background: var(--navy-900);
    background-size: contain; background-position: center; background-repeat: no-repeat; display: grid; place-items: center;
    box-shadow: 0 22px 44px -16px rgba(0,0,0,.7); }
.dt-cover-badge { position: absolute; right: -10px; top: -10px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--on-gold);
    background: linear-gradient(160deg, var(--gold-bright), var(--gold)); box-shadow: 0 6px 14px rgba(184,151,46,.4); }

.dt-body.is-hidden { display: none; }
.dt-body.dt-revealing .dt-slot { animation: dtIn .5s cubic-bezier(.16,.7,.2,1) both; }
.dt-body.dt-revealing .dt-slot:nth-child(2) { animation-delay: .12s; }
@keyframes dtIn { 0% { opacity: 0; transform: translateY(18px) scale(.94); } 100% { opacity: 1; transform: none; } }

.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dt-slot { display: flex; flex-direction: column; gap: 12px; }
.dt-card { background: var(--navy-700); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
    display: flex; flex-direction: column; gap: 12px; }
.dt-card[data-tier-color] { border-top: 3px solid var(--_tc, var(--gold)); }
.dt-media { border-radius: 12px; overflow: visible; background: var(--navy-900); display: grid; place-items: center; }
.dt-media:not(.has-photo) { aspect-ratio: 3/4; overflow: hidden; }
.dt-media .result-photo { width: 100%; height: auto; border-radius: 12px; }
.dt-media.has-photo { box-shadow: 0 20px 34px -14px rgba(0,0,0,.6); }
.dt-meta { display: flex; flex-direction: column; gap: 5px; }
.dt-title { margin: 2px 0 0; font-size: 18px; }
.dt-value { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--gold-bright); letter-spacing: .5px; margin: 4px 0 0; }
.dt-value .muted { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0; }

/* Discarded card (resolved view): dim + stamped. */
.dt-discarded { opacity: .62; }
.dt-discarded .dt-media { position: relative; filter: grayscale(.6); }
.dt-stamp { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font-family: 'Bebas Neue', sans-serif;
    font-size: 20px; letter-spacing: 1px; color: #fff; text-transform: uppercase;
    background: rgba(10,16,30,.42); border-radius: 12px; }

.dt-keep-form { display: block; }
.dt-both { margin-top: 22px; text-align: center; }
.dt-both .btn-block { max-width: 460px; margin: 0 auto; }
.dt-both-note { max-width: 460px; margin: 10px auto 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

@media (max-width: 560px) {
    .dt-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Locker grid
   ============================================================ */
/* ---- Locker: sidebar + collection layout ---- */
.locker-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 6px; }

/* Sidebar */
.locker-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.vault-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vault-stat { background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; }
.vault-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 1; letter-spacing: .5px; color: var(--text-strong); }
.vault-stat-num.gold { color: var(--gold-bright); }
.vault-stat-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.side-group { display: flex; flex-direction: column; gap: 9px; }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 700; }
/* Collapsible sidebar sections */
.side-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 2px 0; margin: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.side-toggle .side-label { transition: color .14s ease; }
.side-toggle:hover .side-label { color: var(--text-soft); }
.side-caret { flex: none; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s ease; margin-top: -3px; }
.side-toggle:hover .side-caret { border-color: var(--text-soft); }
.side-group.is-collapsed .side-caret { transform: rotate(-45deg); }
.side-group.is-collapsed .side-body { display: none; }
.side-search { position: relative; }
.side-search-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.side-search input { width: 100%; padding: 10px 12px 10px 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font: inherit; font-size: 14px; }
.side-search input:focus { outline: none; border-color: var(--gold); }
.side-select select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.side-select select:focus { outline: none; border-color: var(--gold); }
.tier-nav { display: flex; flex-direction: column; gap: 3px; }
.tier-nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text-soft); font: inherit; font-size: 14px; cursor: pointer; text-align: left; transition: background .14s ease, color .14s ease, border-color .14s ease; }
.tier-nav-btn:hover { background: var(--hover); color: var(--text-strong); }
.tier-nav-btn.is-active { background: var(--navy-700); border-color: var(--line); color: var(--text-strong); }
.tier-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,0.06); }
.tier-nav-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-nav-count { font-size: 12px; color: var(--muted); font-weight: 700; background: var(--hover); padding: 1px 8px; border-radius: 999px; }
.tier-nav-btn.is-active .tier-nav-count { color: var(--gold-bright); }
.side-link { font-size: 14px; color: var(--text-soft); font-weight: 600; }
.side-link:hover { color: var(--gold-bright); text-decoration: none; }

/* Toolbar */
.locker-main { min-width: 0; }
.locker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 34px; }
.locker-count { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.view-btn { width: 40px; height: 34px; display: grid; place-items: center; border: 0; background: var(--navy-700); color: var(--text-soft); font-size: 16px; cursor: pointer; transition: background .14s ease, color .14s ease; }
.view-btn + .view-btn { border-left: 1px solid var(--line); }
.view-btn:hover { color: var(--text-strong); }
.view-btn.is-active { background: rgba(184,151,46,0.18); color: var(--gold-bright); }
.view-btn:disabled { opacity: .4; cursor: default; }
.locker-noresults { color: var(--muted); text-align: center; padding: 40px 0; }

/* Arrange (rearrange your locker) */
.locker-tools { display: inline-flex; align-items: center; gap: 10px; }
.arrange-btn, .retrieve-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-700); color: var(--text-soft); font-size: 13px; font-weight: 700; letter-spacing: .3px; cursor: pointer; transition: border-color .14s ease, color .14s ease, background .14s ease; }
.retrieve-btn:hover { border-color: var(--gold); color: var(--text-strong); text-decoration: none; }
.arrange-btn:hover { border-color: var(--gold); color: var(--text-strong); }
.arrange-btn.is-active { border-color: var(--gold-bright); color: var(--gold-bright); background: rgba(184,151,46,0.14); }
.arrange-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; border: 1px solid rgba(184,151,46,0.4); border-radius: 12px; background: linear-gradient(135deg, rgba(184,151,46,0.12), rgba(184,151,46,0.03)); }
/* display:flex above beats the `hidden` attribute — restore it so the bar only shows in arrange mode. */
.arrange-bar[hidden] { display: none; }
.arrange-hint { font-size: 13px; color: var(--text-soft); }
.arrange-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.arrange-select select { width: auto; padding: 7px 12px; font-size: 13px; }
/* Collection while arranging: grab affordance + dragged-card feedback. */
.is-arranging .litem { cursor: grab; user-select: none; }
.is-arranging .litem:active { cursor: grabbing; }
.is-arranging .litem-window, .is-arranging .litem-actions, .is-arranging .litem-auth { pointer-events: none; }
.is-arranging .litem-zoom { display: none; }
.is-arranging .litem { outline: 1px dashed rgba(184,151,46,0.35); outline-offset: -1px; }
.litem.is-dragging { opacity: .45; transform: scale(.98); }
.locker-arranging .locker-side { opacity: .5; pointer-events: none; }

/* Locker settings panel (sidebar) */
.locker-settings { display: flex; flex-direction: column; gap: 13px; }
.lset-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.lset-row.lset-sub { padding-left: 12px; border-left: 2px solid var(--line); }
.lset-row.is-disabled { opacity: .45; cursor: default; }
.lset-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lset-text strong { font-size: 13px; color: var(--text-strong); font-weight: 600; }
.lset-text small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.lset-switch { position: relative; flex: none; }
.lset-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lset-row.is-disabled .lset-switch input { cursor: default; }
.lset-track { display: block; width: 40px; height: 23px; border-radius: 999px; background: var(--navy-700); border: 1px solid var(--line); transition: background .16s ease, border-color .16s ease; }
.lset-thumb { display: block; width: 17px; height: 17px; margin: 2px; border-radius: 50%; background: var(--muted); transition: transform .16s ease, background .16s ease; }
.lset-switch input:checked + .lset-track { background: rgba(184,151,46,0.22); border-color: var(--gold-bright); }
.lset-switch input:checked + .lset-track .lset-thumb { transform: translateX(17px); background: var(--gold-bright); }
.lset-switch input:focus-visible + .lset-track { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
/* Private locker → hide the Arrange button (arranging only matters for the public view). */
#lockerMain[data-public="0"] .arrange-btn { display: none; }

/* Collection — shared item ("slab") markup, two layouts */
.litem { position: relative; background: var(--navy-700); border: 1px solid var(--line); border-radius: 14px; }
/* Filtered-out cards — override the layout's display so [hidden] actually hides them. */
.litem[hidden] { display: none !important; }
.litem-window { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.05), var(--navy-900) 70%); display: grid; place-items: center; cursor: pointer; }
.litem-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 4; opacity: .9; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.litem-hero { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: transform .18s ease; }
.litem-hero img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.55)); }
.litem-window .brand-mark { font-size: 40px; opacity: .5; }
.litem-zoom { position: absolute; top: 9px; right: 9px; z-index: 5; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(0,0,0,0.5); color: #fff; font-size: 14px; opacity: 0; transition: opacity .15s ease; }
.litem-window:hover .litem-zoom { opacity: 1; }
/* holographic sheen sweep on hover */
.litem-window::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 48%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.35) 52%, transparent 60%); background-size: 250% 100%; background-position: 150% 0; }
.litem-window:hover::after { animation: heroShimmer .9s ease-out; }
.litem-info-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.litem-value { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: .5px; color: var(--gold-bright); line-height: 1; }
.litem-info h3 { margin: 0; color: var(--text-strong); }
.litem-sub { margin: 0; color: var(--muted); font-size: 12.5px; }
.litem-sub code { color: var(--text-soft); }
.litem-auth { font-size: 12px; color: var(--text-soft); }
.litem-auth:hover { color: var(--gold-bright); text-decoration: none; }
/* Locker item actions — compact icon tiles in one row with a gold hover accent. */
.litem-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.litem-actions .inline-form { display: contents; }
.litem-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-900); color: var(--text-soft); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .2px; text-align: center; cursor: pointer; transition: transform .12s ease, border-color .14s ease, background .14s ease, color .14s ease; }
.litem-act .ic { font-size: 15px; line-height: 1; }
.litem-act:hover { text-decoration: none; border-color: var(--gold-bright); color: var(--gold-bright); background: rgba(184,151,46,0.12); }
.litem-act.is-disabled { opacity: .45; cursor: default; }
.litem-act.is-disabled:hover { transform: none; border-color: var(--line); background: var(--navy-900); color: var(--text-soft); }

/* Binder layout — rows of 3; each playing card stands on a glass display shelf */
.locker-collection.is-binder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* Liquid-glass card: a translucent frosted fill + light rim (instead of the solid navy slab).
   List view keeps the base .litem styling. */
.is-binder .litem { display: flex; flex-direction: column; overflow: visible; border-radius: 16px;
    background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.028) 60%);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(14px) saturate(125%); -webkit-backdrop-filter: blur(14px) saturate(125%);
    box-shadow: 0 12px 32px -16px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.is-binder .litem:hover { border-color: rgba(255,255,255,0.30);
    box-shadow: 0 22px 44px -18px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.26); }
/* overflow visible so the card can hang over the top edge of the glass panel */
.is-binder .litem-window { aspect-ratio: 4/3; background: none; overflow: visible; }
.is-binder .litem-accent { display: none; }

/* The card floats just above a glass shelf near the base of the window, so it reads as
   standing on a display ledge. The shelf sits behind the card (z1 < hero z2); it's wider
   than the card, so the glossy ledge shows to either side of it. */
/* Slab-shaped, centred box so the hover shimmer sits on the card itself (not the container). */
.is-binder .litem-hero { top: -9px; bottom: 18%; left: 50%; right: auto; width: auto; aspect-ratio: 5 / 7; transform: translateX(-50%); }
.is-binder .litem-hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.14) 48%, rgba(255,255,255,0.26) 50%, rgba(255,255,255,0.14) 52%, transparent 60%);
    background-size: 250% 100%; background-position: 150% 0;
    /* clip the shimmer to the card image itself (same contain/center as the <img>) so it doesn't spill onto the box edge */
    -webkit-mask: var(--hero) center / contain no-repeat; mask: var(--hero) center / contain no-repeat; }
.is-binder .litem:hover .litem-hero::after { animation: heroShimmer .9s ease-out; }
.is-binder .litem-window::after { content: none; }   /* shimmer lives on the card now, not the window */
.is-binder .litem-window::before {
    content: ""; position: absolute; left: 11%; right: 11%; bottom: 14%; height: 8px; z-index: 1;
    border-radius: 100px;
    background: linear-gradient(180deg, rgba(255,255,255,0.60) 0%, rgba(196,214,244,0.22) 45%, rgba(120,145,185,0.05) 100%);
    box-shadow: 0 5px 13px -3px rgba(0,0,0,0.55), 0 0 16px rgba(150,190,255,0.18);
}

.is-binder .litem-info { padding: 0 15px 4px; display: flex; flex-direction: column; gap: 7px; }
/* card titles clamp to 3 lines so cards stay even regardless of name length */
.is-binder .litem-info h3 { font-size: 16px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
.is-binder .litem-actions { padding: 12px 15px 15px; margin-top: auto; }
@media (max-width: 620px) { .locker-collection.is-binder { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .locker-collection.is-binder { grid-template-columns: 1fr; } }

/* List layout — dense ledger rows */
.locker-collection.is-list { display: flex; flex-direction: column; gap: 8px; }
.is-list .litem { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 8px 14px 8px 8px; }
.is-list .litem:hover { border-color: rgba(184,151,46,0.35); }
.is-list .litem-window { width: 58px; height: 58px; border-radius: 10px; }
.is-list .litem-accent { display: none; }
.is-list .litem-hero { inset: 4px; }
.is-list .litem-zoom { display: none; }
.is-list .litem-info { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; row-gap: 2px; min-width: 0; }
.is-list .litem-info-top { order: 2; grid-column: 2; flex-direction: column; align-items: flex-end; gap: 2px; }
.is-list .litem-info h3 { grid-column: 1; grid-row: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-list .litem-value { font-size: 18px; }
.is-list .litem-sub { grid-column: 1; grid-row: 2; }
.is-list .litem-auth { display: none; }
.is-list .litem-actions { flex-wrap: nowrap; }

/* Archive ledger */
.locker-history { margin-top: 42px; }
.ledger { display: flex; flex-direction: column; gap: 6px; }
.ledger-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .14s ease; }
.ledger-row:hover { border-color: rgba(184,151,46,0.3); }
.ledger-thumb { width: 46px; height: 46px; border-radius: 8px; background: var(--navy-900) center/cover no-repeat; display: grid; place-items: center; }
.ledger-thumb .brand-mark { font-size: 20px; opacity: .5; }
.ledger-main { min-width: 0; }
.ledger-main h4 { margin: 0; font-size: 14px; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-sku { font-size: 12px; color: var(--muted); }
.ledger-val { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--text-soft); letter-spacing: .5px; }
.ledger-status { text-transform: capitalize; }

/* Open trade-in offers banner (top of locker) */
.offer-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 18px; border: 1px solid rgba(184,151,46,0.4); border-radius: 14px; background: linear-gradient(135deg, rgba(184,151,46,0.14), rgba(184,151,46,0.04)); color: var(--text); transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease; }
.offer-banner:hover { border-color: var(--gold-bright); transform: translateY(-1px); text-decoration: none; box-shadow: 0 10px 26px -12px rgba(184,151,46,0.5); }
.offer-banner-ic { font-size: 26px; line-height: 1; }
.offer-banner-text { display: flex; flex-direction: column; gap: 1px; }
.offer-banner-text strong { color: var(--text-strong); font-size: 15px; }
.offer-banner-cta { margin-left: auto; color: var(--gold-bright); font-weight: 700; white-space: nowrap; }

/* Trade-in offers page */
.offers-page { max-width: 780px; padding: 48px 0 90px; }
.offers-intro { margin: 4px 0 18px; }
.offers-form { display: flex; flex-direction: column; gap: 14px; }
.offers-bar { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(21,27,43,0.86); backdrop-filter: blur(8px); }
.offers-selectall { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.offers-bar-right { display: flex; align-items: center; gap: 14px; }
.offers-sel-summary { font-size: 14px; color: var(--text-soft); }
.offers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.offer-row { display: grid; grid-template-columns: auto 56px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-700); transition: border-color .14s ease; }
.offer-row:hover { border-color: rgba(184,151,46,0.35); }
.offer-check { display: inline-flex; cursor: pointer; }
.offer-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.offer-check-box { width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 7px; display: inline-block; position: relative; transition: border-color .14s ease, background .14s ease; }
.offer-check input:checked + .offer-check-box { border-color: var(--gold-bright); background: var(--gold-bright); }
.offer-check input:checked + .offer-check-box::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-gold); font-size: 13px; font-weight: 900; }
.offer-check input:focus-visible + .offer-check-box { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.offer-thumb { width: 56px; height: 56px; border-radius: 9px; background: var(--navy-900) center/cover no-repeat; display: grid; place-items: center; }
.offer-thumb .brand-mark { font-size: 22px; opacity: .5; }
.offer-info { min-width: 0; }
.offer-info h3 { margin: 3px 0 0; font-size: 15px; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.offer-amount { text-align: right; }
.offer-amount-val { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: .5px; color: var(--gold-bright); line-height: 1; }
.offer-amount-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.tier-chip.sm { font-size: 10px; padding: 2px 7px; }
/* Retrievals (batch shipping) address block */
.ship-address { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-700); }
.ship-address .section-label { margin: 0 0 14px; }
.ship-fields { display: flex; flex-direction: column; gap: 12px; }
.ship-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-soft); }
.ship-fields input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font: inherit; }
.ship-fields input:focus { outline: none; border-color: var(--gold); }
.ship-fields .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ship-save { flex-direction: row !important; align-items: center; gap: 9px; cursor: pointer; margin-top: 2px; }
.ship-save input { flex: none; width: 16px; height: 16px; padding: 0; border: 0; background: none; accent-color: var(--gold-bright); cursor: pointer; }
#shipSubmit { margin-top: 20px; }
/* Retrievals search + sort bar */
.ship-tools { display: flex; gap: 12px; margin-bottom: 14px; }
.ship-search { flex: 1; }
.ship-sort select { width: auto; }
.offer-row[hidden] { display: none !important; }   /* .offer-row is display:grid, so override for filtering */
.retrievals-page .offer-row { cursor: pointer; }   /* whole row toggles the checkbox */
.offer-name { display: block; max-width: 100%; cursor: pointer; transition: color .14s ease;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-name:hover { color: var(--gold-bright); }
.offers-noresults { color: var(--muted); text-align: center; padding: 28px 0; }
@media (max-width: 560px) { .ship-tools { flex-direction: column; } .ship-sort select { width: 100%; } }
@media (max-width: 560px) {
    .offer-row { grid-template-columns: auto 44px minmax(0, 1fr) auto; row-gap: 10px; }
    .offer-thumb { width: 44px; height: 44px; }
    .offer-row .js-trade-one { grid-column: 2 / -1; justify-self: end; }
    .ship-fields .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .locker-layout { grid-template-columns: 1fr; gap: 20px; }
    .locker-side { position: static; }
    .vault-stats { grid-template-columns: 1fr 1fr; }
    .tier-nav { flex-direction: row; flex-wrap: wrap; }
    .tier-nav-btn { width: auto; }
}
.btn-xs { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.small { font-size: 12px; }

@media (max-width: 640px) {
    .result-card { grid-template-columns: 1fr; }
}

/* ============================================================
   Admin back-office
   ============================================================ */
body.admin { display: block; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
    background: var(--navy-900); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; margin-bottom: 26px; }
.admin-brand:hover { text-decoration: none; }
.admin-brand em { color: var(--gold); font-style: normal; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-link { color: var(--text-soft); padding: 11px 14px; border-radius: 9px; font-weight: 600; font-size: 15px; }
.admin-nav-link:hover { background: rgba(255,255,255,0.05); text-decoration: none; color: var(--text-strong); }
.admin-nav-link.active { background: linear-gradient(160deg, var(--gold-bright), var(--gold)); color: var(--on-gold); }
.admin-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-content { padding: 34px 38px; width: 100%; max-width: 1100px; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

/* Dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; color: var(--text-strong); line-height: 1; }
.stat-link { color: var(--gold-bright); font-size: 18px; }
.alert-row { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.alert-row:last-child { border-bottom: 0; }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 999px; }
.admin-title { font-family: 'Bebas Neue', sans-serif; font-size: 38px; letter-spacing: 1px; margin: 0; }
.admin-sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tbl th { color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; }
.tbl tr:last-child td { border-bottom: 0; }
.col-check { width: 42px; text-align: center; }
.col-check input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; vertical-align: middle; }
.bulk-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-height: 36px; }
.bulk-count { font-size: 14px; color: var(--text-soft); }
.bulk-select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
    padding: 9px 34px 9px 12px; border-radius: 9px; border: 1px solid var(--line);
    background: var(--input-bg); color: var(--text-strong); font: inherit; font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239aa6bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.bulk-select:focus { outline: none; border-color: var(--gold); }
.bulk-select:disabled { opacity: .5; cursor: not-allowed; }
.bulk-select::-ms-expand { display: none; }
.tbl tr:hover td { background: rgba(255,255,255,0.02); }

/* Badges / pills */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); white-space: nowrap; }
.drop-pill { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.bulk-search { margin-right: auto; min-width: 220px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font-size: 13px; }
.col-link { width: 52px; text-align: center; }
.pool-thumb { width: 46px; }
.pool-thumb img { display: block; width: 40px; height: 54px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); }
.pool-remove { cursor: pointer; width: 24px; height: 24px; padding: 0; line-height: 1; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 17px; font-weight: 700; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.pool-remove:hover { color: #fff; background: #8a2e2e; border-color: #8a2e2e; }

/* Drag-to-tier pool buckets */
.tier-bucket { margin-bottom: 14px; }
.tier-bucket-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.tier-drop { border: 1px dashed var(--line); border-radius: 10px; padding: 6px; min-height: 44px; transition: border-color .15s ease, background .15s ease; }
.tier-drop.is-over { border-color: var(--gold); background: rgba(184,151,46,0.08); }
.tier-empty { margin: 0; padding: 8px 6px; color: var(--muted); font-size: 12px; font-style: italic; }
.pool-item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; background: var(--navy-900); border: 1px solid var(--line); margin-bottom: 6px; }
.pool-item:last-child { margin-bottom: 0; }
.pool-item.is-dragging { opacity: .45; }
.pool-item.is-drawn { opacity: .6; }
.drag-handle { cursor: grab; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 2px; user-select: none; }
.drag-handle.is-locked { cursor: default; opacity: .35; }
.pool-item .pool-thumb { width: auto; flex: 0 0 auto; }
.pool-item .pool-thumb img { width: 34px; height: 46px; }
.pool-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pool-item-title { display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-family: inherit; color: var(--gold-bright); }
.pool-item-title:hover { text-decoration: underline; }

/* Item view/edit modal body */
.im-grid { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 4px; }
.im-media { display: flex; flex-direction: column; gap: 8px; }
.im-main { aspect-ratio: 3/4; border-radius: 10px; background: var(--navy-900); background-size: contain; background-repeat: no-repeat; background-position: center; border: 1px solid var(--line); }
.im-main.im-empty { display: grid; place-items: center; }
.im-thumbs { display: flex; gap: 8px; }
.im-thumb { width: 46px; height: 60px; padding: 0; border-radius: 7px; background: var(--navy-900); background-size: cover; background-position: center; border: 2px solid transparent; cursor: pointer; }
.im-thumb.is-active { border-color: var(--gold-bright); }
.im-info { min-width: 0; }
.im-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.im-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
@media (max-width: 560px) { .im-grid { grid-template-columns: 1fr; } }

/* Browse / bulk-add modal */
.modal-wide { width: min(780px, 94vw); max-width: 780px; }
.browse-toolbar { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.browse-toolbar .bulk-search { margin: 0; flex: 1; }
.browse-table-wrap { max-height: 56vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
#browseTable { margin: 0; }
#browseTable thead th { position: sticky; top: 0; z-index: 1; background: var(--navy-700); }
#browseTable .pool-thumb img { width: 30px; height: 40px; }
#browseTable tbody tr { cursor: default; }
.link-ok { display: inline-flex; color: #46b483; }
.link-broken { display: inline-flex; color: #a35a5a; }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--gold-bright); }
th.sortable .sort-arrow { font-size: 10px; color: var(--gold-bright); }
/* inventory row thumbnail */
.col-thumb { width: 48px; }
.inv-thumb { display: block; width: 40px; height: 54px; border-radius: 5px; border: 1px solid var(--line); object-fit: cover; background: var(--navy-900); }
.inv-thumb-ph { display: grid; place-items: center; width: 40px; height: 54px; border-radius: 5px;
    border: 1px dashed var(--line); color: var(--muted); background: rgba(255,255,255,0.02); font-size: 18px; }
/* client-side pagination bar */
.tbl-pager { display: flex; align-items: center; gap: 14px; justify-content: flex-end; margin-top: 16px; font-size: 14px; color: var(--text-soft); }
.tbl-pager button { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.tbl-pager button:hover:not(:disabled) { border-color: var(--gold); }
.tbl-pager button:disabled { opacity: .4; cursor: default; }
.badge-live { color: #8ff0b6; border-color: rgba(46,160,96,0.5); }
.badge-draft { color: var(--muted); }
.badge-warn { color: #ffb3b3; border-color: rgba(200,60,60,0.5); }
/* A draw that was rerolled away — still audited, just not the outcome. */
.row-muted { opacity: .55; }
.tier-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--on-gold); }

/* Admin forms */
.admin-form { display: grid; gap: 18px; max-width: 720px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
    padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line);
    background: var(--input-bg); color: var(--text-strong); font: inherit; font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 90px; resize: vertical; }
/* Strip native select chrome (the thick grey bevel Windows draws in dark mode) and draw our own caret */
.field select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239aa6bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.field select::-ms-expand { display: none; }
/* Add-on price row: mode dropdown + either a % input or a fixed-$ input (JS shows one). */
.addon-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.addon-price .addon-mode { width: auto; min-width: 160px; }
.addon-price .addon-in { display: inline-flex; align-items: center; gap: 7px; }
.addon-price .addon-in input { width: 96px; }
.addon-price .addon-unit { color: var(--muted); font-size: 13px; white-space: nowrap; }
.form-actions { display: flex; gap: 12px; align-items: center; }

.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 12px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { border-color: var(--gold); text-decoration: none; }
.btn-danger { background: rgba(200,60,60,0.18); color: #ffb3b3; border: 1px solid rgba(200,60,60,0.4); }

/* Card lookup (SportsCardsPro) */
.card-lookup { margin-bottom: 18px; }
.card-results { list-style: none; margin: 4px 0 0; padding: 4px; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: 320px; overflow-y: auto; background: var(--navy-700); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.card-result { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.card-result:hover { background: var(--hover); }
.card-result .muted { font-size: 12px; }
.card-data-panel { margin-bottom: 18px; }
.card-data-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-data-toggle { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; flex: 1; min-width: 0; }
.cd-caret { color: var(--muted); font-size: 12px; line-height: 1; transition: transform .15s ease; }
.card-data-panel.is-collapsed .cd-caret { transform: rotate(-90deg); }
.card-data-panel.is-collapsed .card-data-body { display: none; }
.card-data-panel h4 { margin: 0 0 4px; font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 1px; }
.card-data-toggle h4 { margin: 0; }
.cd-mini-h { margin: 12px 0 6px; font-weight: 700; font-size: 13px; }

/* Item edit: two-column with sticky live preview */
.item-edit-cols { grid-template-columns: 1fr 320px; }
.item-preview { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.preview-card { padding: 16px; }
.preview-img { position: relative; border: 2px solid var(--line); border-radius: 10px; padding: 5px; background: var(--navy-900); margin-bottom: 14px; cursor: pointer; transition: border-color .2s ease; }
.preview-img img { display: block; width: 100%; height: auto; border-radius: 6px; }
.preview-img.is-empty { aspect-ratio: 3/4; display: grid; place-items: center; }
.preview-upload { position: absolute; inset: 5px; border-radius: 6px; background: rgba(0,0,0,0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; opacity: 0; transition: opacity .15s ease; }
.preview-img:hover .preview-upload { opacity: 1; }
.preview-upload span { font-size: 13px; font-weight: 600; }
.preview-body { display: flex; flex-direction: column; gap: 4px; }
.preview-body p { margin: 0; }            /* kill default p margins — the flex gap controls spacing */
.preview-body p:empty { display: none; }  /* drop blank meta/grade lines instead of leaving a gap */
.preview-body h3 { margin: 2px 0 0; font-size: 17px; color: var(--text-strong); }
.preview-value { margin-top: 6px; }
#pvValue { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; color: var(--gold-bright); }
.preview-actions { flex-direction: column; align-items: stretch; }
@media (max-width: 860px) {
    .item-edit-cols { grid-template-columns: 1fr; }
    .item-preview { position: static; }
}
.card-result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-result-text span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-thumb { flex-shrink: 0; width: 34px; height: 46px; border-radius: 5px; background-size: cover; background-position: center; border: 1px solid var(--line); display: grid; place-items: center; }
.card-thumb--ph { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: var(--gold-bright); font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 1px; }

/* EV / odds panel */
.panel { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.trade-show .panel + .panel { margin-top: 22px; }   /* space between stacked panels on the trade detail page */
.panel h3 { margin: 0; font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; font-size: 22px; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .big { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--gold-bright); }
.note-ok { color: #8ff0b6; } .note-bad { color: #ffb3b3; }
.fair-pill { display: inline-flex; align-items: center; line-height: 1; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); white-space: nowrap; }
.fair-pill.fair-ok { color: #8ff0b6; border-color: rgba(46,160,96,0.5); background: rgba(46,160,96,0.12); }
.fair-pill.fair-warn { color: var(--gold-bright); border-color: rgba(184,151,46,0.5); background: rgba(184,151,46,0.12); }
.fair-pill.fair-bad { color: #ffb3b3; border-color: rgba(200,60,60,0.5); background: rgba(200,60,60,0.12); }
.cols { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.pack-side { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto; }

@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-sidebar-foot { margin: 0 0 0 auto; flex-direction: row; border: 0; padding: 0; }
    .grid-2, .cols { grid-template-columns: 1fr; }
    .pack-side { position: static; max-height: none; overflow: visible; }
}

/* ============================================================
   Marketplace / Auctions
   ============================================================ */
.market, .market-detail, .market-new { padding: 48px 0 90px; }
/* Sidebar nav (reuses the Locker's .locker-side / .tier-nav styles) */
a.tier-nav-btn:hover { text-decoration: none; }
.side-nav-ic { width: 18px; flex: none; text-align: center; font-size: 14px; }
.side-label-row { display: flex; align-items: center; justify-content: space-between; }
.facet-clear { border: 0; background: none; color: var(--gold-bright); font: inherit; font-size: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 0; }
.facet-clear:hover { text-decoration: underline; }

/* eBay-style facet checkbox lists */
.facet-list { display: flex; flex-direction: column; gap: 1px; max-height: 220px; overflow-y: auto; margin: -4px -4px 0; padding: 4px; }
.facet-opt { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; cursor: pointer; transition: background .12s ease; }
.facet-opt[hidden], .side-group[hidden] { display: none !important; }   /* let live recount hide dead options/groups */
.facet-opt:hover { background: var(--hover); }
.facet-opt input { width: 16px; height: 16px; flex: none; accent-color: var(--gold-bright); cursor: pointer; margin: 0; }
.facet-name { flex: 1; font-size: 14px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facet-opt:hover .facet-name { color: var(--text-strong); }
.facet-count { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Price / year range inputs */
.facet-price { display: flex; align-items: center; gap: 6px; }
.facet-price-pre { color: var(--muted); font-size: 14px; }
.facet-price-dash { color: var(--muted); }
.facet-price input { width: 100%; min-width: 0; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font: inherit; font-size: 14px; }
.facet-price input:focus { outline: none; border-color: var(--gold); }
/* hide number spinners for a cleaner range look */
.facet-price input::-webkit-outer-spin-button, .facet-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.facet-price input[type=number] { -moz-appearance: textfield; }

/* Listing grid + tiles */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.mkt-tile[hidden] { display: none !important; }   /* let search/filter actually hide tiles */
/* glass segmented tabs (For Sale / On Auction) */
.mkt-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 12px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.mkt-tab { border: 0; background: transparent; color: var(--text-soft); font-weight: 600; font-size: 14px;
    padding: 8px 20px; border-radius: 9px; cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.mkt-tab:hover { color: var(--text); }
.mkt-tab.is-active { color: var(--text-strong);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 16px -10px rgba(0,0,0,0.7),
        0 0 0 1px color-mix(in srgb, var(--gold) 22%, transparent); }
/* dashboard market: single row, cards keep their natural width (don't stretch to fill), left-aligned */
.dash-market-row { display: flex; flex-wrap: nowrap; gap: 20px; }
.dash-market-row .mkt-tile { flex: 0 1 240px; min-width: 0; }
.dash-market-empty { padding: 34px 20px; text-align: center; color: var(--text-soft); font-size: 15px;
    border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
.mkt-tile { display: flex; flex-direction: column; background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.mkt-tile:hover { transform: translateY(-4px); border-color: rgba(184,151,46,0.4); box-shadow: 0 16px 34px rgba(0,0,0,0.34); text-decoration: none; }
.mkt-tile.is-inactive { opacity: .62; }
.mkt-tile-img { position: relative; aspect-ratio: 4/3; background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.05), var(--navy-900) 70%); display: grid; place-items: center; overflow: hidden; }
.mkt-tile-hero { position: absolute; inset: 10px 10px -12px; z-index: 2; pointer-events: none; }
.mkt-tile-hero img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.55)); }
.mkt-type-badge { position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.mkt-type-badge.is-auction { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--on-gold); }
.mkt-type-badge.is-fixed { background: rgba(46,125,184,0.9); color: #fff; }
.mkt-status-badge { position: absolute; top: 10px; right: 10px; z-index: 3; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,0.6); color: #fff; }
.mkt-timer { position: absolute; bottom: 10px; right: 10px; z-index: 3; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.62); color: #fff; }
.mkt-timer.is-urgent { background: rgba(190,60,60,0.9); }
.mkt-tile-body { padding: 16px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.mkt-tile-body h3 { margin: 0; font-size: 16px; color: var(--text-strong); }
.mkt-tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.mkt-price-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.mkt-price { font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 1; letter-spacing: .5px; color: var(--gold-bright); }
.mkt-bidcount { font-size: 12px; color: var(--muted); }
/* "Hide my listings" — inline with the listing count, pushed to the right */
.mkt-hidemine { margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: var(--text-soft); cursor: pointer; white-space: nowrap; }
.mkt-hidemine:hover { color: var(--text); }
.mkt-hidemine input { width: 15px; height: 15px; accent-color: var(--gold-bright); cursor: pointer; }
/* the listing link fills the tile; the seller row sits below it (outside the link) */
.mkt-tile-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; min-width: 0; }
.mkt-tile-link:hover { text-decoration: none; }
/* market tiles reuse the showcase owner footer (.sc-owner); just set the tile's own padding */
.mkt-tile-seller { margin-top: 0; padding: 10px 15px 13px; }
.mkt-seller { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Listing detail */
.mkt-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: start; margin-top: 8px; }
.mkt-detail-card { display: flex; flex-direction: column; gap: 10px; }
.mkt-detail-img { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.06), var(--navy-900) 72%); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.mkt-detail-hero { position: absolute; inset: 18px 18px 4px; z-index: 2; pointer-events: none; }
.mkt-detail-hero img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0,0,0,0.55)); }
.mkt-detail-hint { text-align: center; }
.mkt-panel { background: var(--navy-700); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 88px; }
.mkt-panel-type { position: static; align-self: flex-start; }
.mkt-panel h1 { margin: 6px 0 0; }
.mkt-price-box { display: flex; flex-direction: column; gap: 3px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; }
.mkt-price-big { font-family: 'Bebas Neue', sans-serif; font-size: 46px; line-height: 1; letter-spacing: 1px; color: var(--gold-bright); }
.mkt-reserve-flag { display: inline-block; align-self: flex-start; margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.mkt-reserve-flag.is-met { background: rgba(46,125,184,0.16); color: #bfe0ff; }
.mkt-reserve-flag.is-unmet { background: rgba(198,142,42,0.18); color: var(--gold-bright); }
.mkt-result { padding: 12px 14px; border-radius: 10px; font-size: 15px; text-align: center; }
.mkt-result-sold { background: rgba(46,125,184,0.16); color: #bfe0ff; }
.mkt-result-expired, .mkt-result-cancelled { background: var(--hover); color: var(--text-soft); }
.mkt-field-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.mkt-amount-row { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--input-bg); overflow: hidden; }
.mkt-amount-row:focus-within { border-color: var(--gold); }
.mkt-amount-prefix { padding: 0 4px 0 14px; color: var(--muted); font-size: 18px; }
.mkt-amount-row input { flex: 1; border: 0; background: none; color: var(--text); font: inherit; font-size: 20px; padding: 12px 14px 12px 4px; width: 100%; }
.mkt-amount-row input:focus { outline: none; }
.mkt-bid-form, .mkt-buy-form { display: flex; flex-direction: column; gap: 10px; }
.mkt-fine { margin: 0; }
.mkt-credit-note { font-size: 13px; color: var(--text-soft); text-align: center; }
.mkt-credit-note strong { color: var(--gold-bright); }
.mkt-owner-note { font-weight: 600; color: var(--text-soft); }
.mkt-seller-line { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.mkt-bids { margin-top: 40px; max-width: 640px; }

/* List-a-card form */
.mkt-new-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 20px; }
.mkt-new-preview { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 88px; }
.mkt-new-preview .mkt-detail-img { width: 100%; }
.mkt-new-preview h3 { margin: 4px 0 0; font-size: 17px; color: var(--text-strong); }
.mkt-new-form { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.mkt-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mkt-type-opt { position: relative; cursor: pointer; }
.mkt-type-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mkt-type-opt span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-700); transition: border-color .14s ease, background .14s ease; }
.mkt-type-opt span strong { color: var(--text-strong); }
.mkt-type-opt span small { color: var(--muted); font-size: 12px; }
.mkt-type-opt input:checked + span { border-color: var(--gold-bright); background: rgba(184,151,46,0.12); }
.mkt-type-opt input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.mkt-select select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.mkt-select select:focus { outline: none; border-color: var(--gold); }
/* Auction-only options: match the form's vertical rhythm and give each label+control its own gap. */
.mkt-auction-block { display: flex; flex-direction: column; gap: 14px; }
.mkt-field { display: flex; flex-direction: column; gap: 7px; }
/* The display:flex above beats the `hidden` attribute's UA display:none — restore it. */
.mkt-auction-block[hidden], .mkt-field[hidden] { display: none; }
.mkt-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.mkt-radio-chip { position: relative; cursor: pointer; }
.mkt-radio-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mkt-radio-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-700); color: var(--text); font-size: 14px; font-weight: 600; transition: border-color .14s ease, background .14s ease, color .14s ease; }
.mkt-radio-chip:hover span { border-color: var(--gold); }
.mkt-radio-chip input:checked + span { border-color: var(--gold-bright); background: rgba(184,151,46,0.14); color: var(--text-strong); }
.mkt-radio-chip input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.mkt-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 2px; }
.mkt-switch-text { display: flex; flex-direction: column; gap: 2px; }
.mkt-switch-text small { font-size: 12px; }
.mkt-switch { position: relative; flex: none; cursor: pointer; }
.mkt-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mkt-switch-track { display: block; width: 46px; height: 26px; border-radius: 999px; background: var(--navy-700); border: 1px solid var(--line); transition: background .16s ease, border-color .16s ease; }
.mkt-switch-thumb { display: block; width: 20px; height: 20px; margin: 2px; border-radius: 50%; background: var(--muted); transition: transform .16s ease, background .16s ease; }
.mkt-switch input:checked + .mkt-switch-track { background: rgba(184,151,46,0.22); border-color: var(--gold-bright); }
.mkt-switch input:checked + .mkt-switch-track .mkt-switch-thumb { transform: translateX(20px); background: var(--gold-bright); }
.mkt-switch input:focus-visible + .mkt-switch-track { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.mkt-net-box { background: var(--navy-900); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.mkt-net-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.mkt-net-total { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 2px; }
.mkt-net-total strong { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: .5px; color: var(--gold-bright); }

@media (max-width: 820px) {
    .mkt-detail-grid { grid-template-columns: 1fr; gap: 22px; }
    .mkt-panel { position: static; }
    .mkt-new-grid { grid-template-columns: 1fr; gap: 22px; }
    .mkt-new-preview { position: static; flex-direction: row; align-items: center; }
    .mkt-new-preview .mkt-detail-img { width: 120px; flex: none; }
}

/* ============ Trades ============ */
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.trade-search { display: flex; gap: 8px; margin-top: 12px; }
.trade-search input { flex: 1; }
.trade-partners, .trade-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.trade-partners a, .trade-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: var(--text); transition: border-color .15s ease, background .15s ease; }
.trade-partners a:hover, .trade-list a:hover { border-color: var(--gold); text-decoration: none; background: rgba(255,255,255,0.04); }
.trade-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 800; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.trade-partner-name { flex: 1; font-weight: 600; }
.trade-go { color: var(--gold-bright); font-weight: 700; font-size: 13px; }
.trade-list-main { flex: 1; display: flex; flex-direction: column; }
.trade-list a .badge { flex: 0 0 auto; }

/* builder */
.trade-build { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; margin-bottom: 20px; }
.trade-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.trade-side-head h3 { margin: 0; }
.trade-side-sum { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.trade-cash { margin: 12px 0; }
.trade-cash input { max-width: 180px; }
.trade-grid-search { width: 100%; margin-bottom: 12px; }
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 460px; overflow-y: auto; padding: 2px; }
.trade-card { position: relative; display: flex; flex-direction: column; text-align: left; gap: 8px; padding: 8px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--navy-900); color: var(--text); cursor: pointer; transition: border-color .15s ease, transform .1s ease, box-shadow .15s ease; }
.trade-card:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); transform: translateY(-1px); }
.trade-card.is-selected { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright), 0 10px 22px -12px rgba(0,0,0,0.7); }
.trade-card-img { aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--navy-700); display: grid; place-items: center; }
.trade-card-img img { width: 100%; height: 100%; object-fit: cover; }
.trade-card-info { display: flex; flex-direction: column; gap: 2px; }
.trade-card-title { font-size: 12px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.trade-card-val { font-size: 12px; font-weight: 800; color: var(--gold-bright); }
.trade-card-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    font-size: 12px; color: var(--on-gold); background: var(--gold-bright); opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease; }
.trade-card.is-selected .trade-card-check { opacity: 1; transform: scale(1); }
.trade-footer { display: flex; align-items: flex-end; gap: 16px; }
.trade-footer textarea { flex: 1; }
.trade-footer .btn { flex: 0 0 auto; white-space: nowrap; }

/* trade detail */
.trade-terms-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 4px; }
.trade-terms-arrow { font-size: 26px; color: var(--gold-bright); text-align: center; }
.trade-terms-h { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); font-weight: 700; margin: 0 0 8px; }
.trade-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trade-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); font-size: 13px; }
.trade-chip img { width: 26px; height: 34px; object-fit: cover; border-radius: 5px; }
.trade-chip-t { display: flex; flex-direction: column; line-height: 1.2; }
.trade-chip-cash { padding: 6px 12px; font-weight: 700; color: var(--gold-bright); }
.trade-terms { margin-bottom: 22px; }

/* timeline */
.trade-timeline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.trade-tl-item { display: flex; gap: 12px; }
.trade-tl-body { flex: 1; }
.trade-tl-head { margin: 0 0 3px; }
.trade-tl-terms { margin: 2px 0; }
.trade-tl-note { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: rgba(255,255,255,0.03); border-radius: 0 8px 8px 0; font-style: italic; color: var(--text); }

@media (max-width: 800px) {
    .trade-cols, .trade-build { grid-template-columns: 1fr; }
    .trade-terms-cols { grid-template-columns: 1fr; }
    .trade-terms-arrow { transform: rotate(90deg); }
    .trade-footer { flex-direction: column; align-items: stretch; }
}

/* ============ Showcase ============ */
.sc { padding: 48px 0 90px; }
.sc-head { margin-bottom: 20px; }
.sc-sub { margin-top: 6px; max-width: 60ch; }
/* sidebar + results layout */
.sc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.sc-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.sc-rail form { display: flex; flex-direction: column; gap: 22px; }
.sc-rail-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-soft); margin: 0 0 10px; font-weight: 700; }
.sc-search { position: relative; display: flex; align-items: center; }
.sc-search svg { position: absolute; left: 12px; color: var(--text-soft); pointer-events: none; }
.sc-search input { width: 100%; padding-left: 34px; }
.sc-opt { display: flex; align-items: center; gap: 9px; padding: 5px 4px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text); transition: background .15s ease; }
.sc-opt:hover { background: rgba(255,255,255,0.04); }
.sc-opt input { accent-color: var(--gold-bright); cursor: pointer; }
.sc-rail select { width: 100%; }
.sc-clear { color: var(--gold-bright); font-size: 13px; font-weight: 600; text-align: center; margin-top: 2px; }
.sc-count { color: var(--text-soft); font-size: 13px; margin: 2px 0 14px; }
@media (max-width: 820px) {
    .sc-layout { grid-template-columns: 1fr; }
    .sc-rail { position: static; }
    .sc-rail form { flex-flow: row wrap; gap: 14px 22px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
}
/* Showcase reuses the locker's glass "binder" cards; just make the columns responsive + add the owner footer. */
.sc-collection.is-binder { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sc-collection .litem-info { padding-bottom: 14px; }   /* space above the footer divider line */
.sc-owner { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 12px 15px 15px; border-top: 1px solid rgba(255,255,255,0.10); }
.sc-avatar { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
    font-weight: 800; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.sc-owner-name { flex: 1; font-size: 12px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-open { color: var(--gold-bright); }
.sc-trade { flex: 0 0 auto; font-size: 11px; font-weight: 700; white-space: nowrap; text-decoration: none;
    padding: 4px 10px; border-radius: 999px; color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    transition: filter .15s ease, transform .1s ease; }
.sc-trade:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.sc-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.sc-pager-info { color: var(--text-soft); font-size: 14px; }
.sc-pager .is-disabled { opacity: .4; }

/* ============ Player search widget ============ */
.player-search { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.ps-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; align-self: flex-start;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.ps-league { border: 0; background: transparent; color: var(--text-soft); font-weight: 700; font-size: 13px;
    letter-spacing: .5px; padding: 7px 16px; border-radius: 8px; cursor: pointer; transition: color .15s ease, background .15s ease; }
.ps-league:hover { color: var(--text); }
.ps-league.is-active { color: var(--on-gold); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.ps-input { position: relative; display: flex; align-items: center; }
.ps-input svg { position: absolute; left: 13px; color: var(--text-soft); pointer-events: none; }
/* higher specificity than the global input[type=search] rule so the icon padding sticks */
.ps-input .ps-field { width: 100%; padding: 12px 14px 12px 38px; font-size: 15px; }
.ps-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; margin: 0; padding: 6px;
    list-style: none; max-height: 320px; overflow-y: auto; border-radius: 12px; border: 1px solid var(--line);
    background: var(--navy-700); box-shadow: 0 24px 50px -20px rgba(0,0,0,0.8); }
.ps-result { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.ps-result:hover, .ps-result.is-active { background: rgba(255,255,255,0.06); }
.ps-result:hover .ps-result-name, .ps-result.is-active .ps-result-name { color: var(--gold-bright); }
.ps-result-name { color: var(--text-strong); font-weight: 600; line-height: 1.25; transition: color .12s ease; }
.ps-result-years { font-size: 12px; color: var(--text-soft); }
.ps-yr-label { text-transform: uppercase; letter-spacing: .5px; font-weight: 700; font-size: 10px; color: var(--text-soft); }

/* /players demo page */
.ps-page { padding: 48px 0 90px; }
.ps-page-head { margin-bottom: 22px; }
.ps-page-sub { margin-top: 6px; max-width: 60ch; }
.ps-demo { max-width: 560px; }
.ps-picked { margin: 14px 0 0; }
.ps-picked strong { color: var(--gold-bright); }
.ps-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin-top: 22px; }
.ps-count-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--navy-700); }
.ps-count-league { font-weight: 800; letter-spacing: 1px; color: var(--gold-bright); font-size: 13px; }
.ps-count-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; line-height: 1; color: var(--text-strong); }
.ps-code { background: var(--navy-900); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto;
    font-size: 12.5px; color: var(--text); white-space: pre; margin: 10px 0; }

/* Showcase player-finder in the sidebar */
.sc-playerfind .player-search { max-width: none; gap: 10px; }
.sc-playerfind .ps-switch { flex-wrap: wrap; align-self: stretch; justify-content: space-between; }
.sc-playerfind .ps-league { flex: 1; padding: 6px 8px; text-align: center; }
.sc-playerfind .ps-field { font-size: 14px; padding: 10px 12px 10px 36px; }
.sc-playerchip { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 7px 10px; border-radius: 8px;
    font-size: 13px; color: var(--text); background: rgba(184,151,46,0.12); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); }
.sc-playerchip strong { color: var(--gold-bright); }
.sc-playerchip a { margin-left: auto; color: var(--text-soft); font-weight: 700; line-height: 1; }
.sc-playerchip a:hover { color: var(--gold-bright); text-decoration: none; }

/* Owner name/avatar link out to their public locker */
a.sc-owner-name { color: var(--text-soft); text-decoration: none; transition: color .14s ease; }
a.sc-owner-name:hover { color: var(--gold-bright); text-decoration: none; }
a.sc-avatar { text-decoration: none; }
a.sc-avatar:hover { filter: brightness(1.1); }

/* Public collector locker page */
.col-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.col-avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold)); box-shadow: 0 8px 22px -8px rgba(184,151,46,0.6); }
.col-head-body { flex: 1; min-width: 200px; }
.col-stats { margin-top: 4px; }
.col-value { color: var(--gold-bright); }
.col-head-actions { display: flex; align-items: center; gap: 12px; }

/* ============ Trade builder (drag & drop) ============ */
/* minmax(0,1fr) stops a long chip title from widening its column */
.tb-table { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: stretch; margin-bottom: 22px; }
.tb-swap { align-self: center; font-size: 26px; color: var(--gold-bright); }
.tb-side { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; min-width: 0;
    border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); }
.tb-side-ask { border-color: color-mix(in srgb, var(--gold) 30%, var(--line)); }
.tb-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tb-side-head h3 { margin: 0; font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0;
    color: var(--text-strong); text-transform: none; }
.tb-sum { font-size: 13px; color: var(--text-soft); }
.tb-sum strong { color: var(--gold-bright); }

/* drop zone */
.tb-drop { position: relative; flex: 1; min-width: 0; min-height: 190px; display: flex; flex-direction: column; justify-content: center;
    padding: 14px; border-radius: 14px; border: 2px dashed var(--line); background: rgba(0,0,0,0.14);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.tb-drop.is-over { border-color: var(--gold-bright); background: rgba(184,151,46,0.10);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent); }
.tb-hint { margin: 0; text-align: center; color: var(--text-soft); font-weight: 600; font-size: 14px; pointer-events: none; }
.tb-hint span { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; color: var(--muted); }
.tb-chips { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tb-chips:empty { display: none; }
.tb-chip { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 11px; min-width: 0;
    border: 1px solid var(--line); background: var(--navy-700); animation: tbIn .18s ease; }
@keyframes tbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tb-chip img { width: 34px; height: 46px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.tb-chip-ph { width: 34px; height: 46px; display: grid; place-items: center; border-radius: 6px; background: var(--navy-900); color: var(--muted); flex: 0 0 auto; }
.tb-chip-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tb-chip-title { font-size: 13px; font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-chip-meta { font-size: 11px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-chip-val { font-size: 12px; font-weight: 800; color: var(--gold-bright); }
.tb-chip-x { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
    background: transparent; color: var(--text-soft); font-size: 15px; line-height: 1; cursor: pointer; }
.tb-chip-x:hover { border-color: #b3352e; color: #ff9a92; }

/* cash */
.tb-cash { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-cash label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.tb-cash-in { position: relative; display: flex; align-items: center; }
.tb-cash-in span { position: absolute; left: 11px; color: var(--text-soft); font-size: 14px; }
.tb-cash-in input { width: 120px; padding-left: 24px; }

/* trays */
.tb-trays { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.tb-tray-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
/* readable body font (panel h3 defaults to the condensed display face) */
.tb-tray-head h3 { margin: 0; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0;
    color: var(--text-strong); text-transform: none; }
.tb-tray-tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tb-tray-tools .tb-search { flex: 1; min-width: 140px; }
.tb-tray-tools .tb-filter, .tb-tray-tools .tb-sort { width: auto; flex: 0 0 auto; }
.tb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tb-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 11px; text-align: left;
    border: 1px solid var(--line); background: var(--navy-900); color: var(--text); cursor: grab;
    transition: border-color .14s ease, transform .12s ease, box-shadow .14s ease, opacity .14s ease; }
.tb-card:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); transform: translateY(-2px); }
.tb-card:active { cursor: grabbing; }
.tb-card.is-dragging { opacity: .45; }
.tb-card.is-picked { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright); opacity: .55; }
.tb-card-img { aspect-ratio: 3/4; border-radius: 7px; overflow: hidden; background: var(--navy-700); display: grid; place-items: center; }
.tb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.tb-card-title { font-size: 11px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.tb-card-val { font-size: 11px; font-weight: 800; color: var(--gold-bright); }
.tb-card-tick { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    font-size: 11px; color: var(--on-gold); background: var(--gold-bright); opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .15s ease; }
.tb-card.is-picked .tb-card-tick { opacity: 1; transform: scale(1); }
/* info badge — appears on hover, opens the card's detail modal */
.tb-card-info { position: absolute; top: 5px; right: 5px; z-index: 3; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; font-family: Georgia, 'Times New Roman', serif; font-style: italic;
    font-weight: 700; font-size: 12px; line-height: 1; color: #fff; background: rgba(0,0,0,0.62);
    border: 1px solid rgba(255,255,255,0.35); opacity: 0; transform: scale(.7);
    transition: opacity .14s ease, transform .14s ease, background .14s ease; }
.tb-card:hover .tb-card-info, .tb-card-info:focus-visible { opacity: 1; transform: scale(1); }
.tb-card-info:hover { background: var(--gold-bright); color: var(--on-gold); border-color: transparent; }
/* when a card is already picked, the ✓ owns the corner — nudge the info badge left */
.tb-card.is-picked .tb-card-info { right: 29px; }
.tb-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.tb-pager-info { font-size: 12px; color: var(--text-soft); }
.tb-pager button:disabled { opacity: .35; cursor: default; }

/* footer */
.tb-footer { display: flex; align-items: flex-end; gap: 16px; }
.tb-footer textarea { flex: 1; }
.tb-footer-right { display: flex; align-items: center; gap: 14px; }
.tb-balance { margin: 0; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tb-balance.is-even { color: #8ff0b6; }
.tb-balance.is-over { color: #ffb3b3; }
.tb-balance.is-under { color: var(--gold-bright); }

@media (max-width: 900px) {
    .tb-table { grid-template-columns: 1fr; }
    .tb-swap { transform: rotate(90deg); }
    .tb-trays { grid-template-columns: 1fr; }
    .tb-grid { grid-template-columns: repeat(3, 1fr); }
    .tb-footer { flex-direction: column; align-items: stretch; }
    .tb-footer-right { justify-content: space-between; }
}

/* ============ Retrievals: two-column layout with a live shipment sidebar ============ */
.retrievals-page { max-width: 1040px; }   /* widen for the sidebar (overrides .offers-page) */
.ship-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.ship-main { min-width: 0; }
.ship-main .offers-list { margin-top: 16px; }   /* space below the Select all bar */

/* Inline toolbar above the cards: Select all · summary · search · sort, all on one row */
.ship-bar { justify-content: flex-start; flex-wrap: wrap; }
.ship-bar-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ship-bar .ship-search { flex: 0 1 220px; }
.ship-bar .side-search input { padding-top: 9px; padding-bottom: 9px; }
.ship-bar select {
    width: auto; padding: 9px 34px 9px 12px; border-radius: 10px; border: 1px solid var(--line);
    background-color: var(--input-bg); color: var(--text); font: inherit; font-size: 14px; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239aa6bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.ship-bar select:focus { outline: none; border-color: var(--gold); }

/* sidebar */
.ship-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }

.ship-cart { padding: 18px; }
.ship-cart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ship-cart-head h3 { margin: 0; font-size: 16px; }
.ship-cart-badge { min-width: 24px; height: 24px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }

/* empty state */
.ship-cart-empty { text-align: center; padding: 26px 10px; border: 1px dashed var(--line); border-radius: 12px; background: rgba(255,255,255,0.02); }
.ship-cart-ic { font-size: 30px; opacity: .8; }
.ship-cart-empty p { margin: 8px 0 4px; font-weight: 600; color: var(--text); }

/* selected items */
.ship-cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.ship-cart-item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--navy-900); animation: tbIn .16s ease; }
.ship-cart-thumb { flex: 0 0 auto; width: 32px; height: 44px; border-radius: 6px; background: var(--navy-700) center/cover no-repeat;
    display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 13px; }
.ship-cart-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text-strong);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ship-cart-val { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--gold-bright); }
.ship-cart-x { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
    background: transparent; color: var(--text-soft); font-size: 14px; line-height: 1; cursor: pointer; }
.ship-cart-x:hover { border-color: #b3352e; color: #ff9a92; }

/* totals */
.ship-cart-foot { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ship-cart-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-soft); }
.ship-cart-row strong { color: var(--text-strong); }
.ship-cart-total { color: var(--gold-bright) !important; font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: .5px; }
.ship-cart-grand { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.ship-fine { margin: 10px 0 0; }

/* sidebar shipping-address box (above Request shipment) */
.ship-addr-box { margin: 14px 0; padding: 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.ship-addr-box.is-empty { border-style: dashed; text-align: center; }
.ship-addr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ship-addr-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--text-soft); }
.ship-addr-edit { font-size: 12px; font-weight: 600; color: var(--gold-bright); }
.ship-addr-lines { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); }
.ship-addr-lines strong { color: var(--text-strong); }
.ship-addr-empty { margin: 6px 0 10px; font-size: 13px; color: var(--text-soft); }

@media (max-width: 880px) {
    .ship-layout { grid-template-columns: 1fr; }
    .ship-side { position: static; }
    /* Tools drop to their own full-width row under Select all / summary; search fills it. */
    .ship-bar-tools { margin-left: 0; width: 100%; }
    .ship-bar .ship-search { flex: 1; }
}

/* ============ Edit profile ============ */
.profile-page { max-width: 720px; }
.profile-form { display: flex; flex-direction: column; gap: 22px; }
.profile-block h3 { margin: 0 0 14px; }
.profile-block .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.profile-block .field:last-child { margin-bottom: 0; }
.profile-block .field > span:first-child { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.profile-avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.profile-avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
    display: grid; place-items: center; background: linear-gradient(160deg, var(--gold-bright), var(--gold));
    box-shadow: 0 8px 22px -8px rgba(184,151,46,0.6); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-initial { font-family: 'Bebas Neue', sans-serif; font-size: 40px; color: var(--on-gold); }
.profile-avatar-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.profile-upload-btn { cursor: pointer; }
.profile-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft); cursor: pointer; }
.profile-remove input { accent-color: var(--gold-bright); }
/* the player-search widget sits inside a profile field */
.profile-block .player-search { max-width: none; margin: 2px 0 8px; }

/* ============ Card reactions ============ */
.cr { display: flex; align-items: center; gap: 8px; padding: 8px 15px 12px; position: relative; }
/* pin the reaction row to the bottom (just above the footer) so it lines up across cards */
.sc-collection .cr { margin-top: auto; }
.sc-collection .cr + .sc-owner { margin-top: 0; }
/* add-reaction trigger */
.cr-add { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--navy-900); color: var(--text); cursor: pointer; display: grid; place-items: center;
    font-size: 14px; line-height: 1; transition: border-color .14s ease, background .14s ease; }
.cr-add:hover { border-color: var(--gold-bright); background: rgba(184,151,46,0.1); }
.cr-add-ic { position: relative; }
.cr-plus { position: absolute; right: -4px; bottom: -3px; font-size: 9px; font-weight: 800; color: var(--gold-bright); }
/* emoji palette */
.cr-palette[hidden] { display: none; }   /* an explicit display would otherwise beat the hidden attribute */
.cr-palette { position: absolute; bottom: calc(100% - 2px); left: 12px; z-index: 20; display: flex; gap: 2px; padding: 5px;
    border-radius: 999px; background: #0b0f1c; border: 1px solid var(--line);
    box-shadow: 0 14px 30px -12px rgba(0,0,0,0.85);
    animation: crPop .14s ease; }
@keyframes crPop { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }
.cr-opt { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 50%; cursor: pointer;
    font-size: 18px; line-height: 1; transition: transform .1s ease, background .12s ease; }
.cr-opt:hover { transform: scale(1.25); background: rgba(255,255,255,0.06); }
.cr-opt.is-mine { background: rgba(184,151,46,0.22); box-shadow: inset 0 0 0 1px var(--gold-bright); }
/* summary chip (faces + total, hover for breakdown) */
.cr-summary { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
    padding: 3px 9px 3px 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03);
    cursor: default; }
.cr-summary.is-zero { opacity: .5; }
.cr-faces { display: inline-flex; }
.cr-face { font-size: 13px; margin-left: -3px; }
.cr-face:first-child { margin-left: 0; }
.cr-total { font-size: 12px; font-weight: 800; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.cr-summary.is-zero .cr-faces::before { content: '🙂'; font-size: 13px; opacity: .6; }
/* breakdown tooltip */
.cr-breakdown { position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 20; min-width: 84px; padding: 8px 10px;
    display: flex; flex-direction: column; gap: 4px; border-radius: 10px; background: rgba(11,15,28,0.98); border: 1px solid var(--line);
    box-shadow: 0 14px 30px -12px rgba(0,0,0,0.85); opacity: 0; visibility: hidden; transform: translateY(5px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
.cr-breakdown::after { content: ""; position: absolute; top: 100%; right: 14px; border: 5px solid transparent; border-top-color: rgba(11,15,28,0.98); }
.cr-summary:hover .cr-breakdown { opacity: 1; visibility: visible; transform: none; }
.cr-summary.is-zero .cr-breakdown { display: none; }
.cr-bd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.cr-bd-row strong { color: var(--gold-bright); font-variant-numeric: tabular-nums; }

/* ============ Start-a-trade search (collector + player) ============ */
.ts-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--text-soft); margin: 12px 0 8px; }
.ts-userfind .ps-input { position: relative; display: flex; align-items: center; }
.ts-userfind .ps-input input { width: 100%; padding-left: 38px; }
.ts-user-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px; list-style: none;
    max-height: 300px; overflow-y: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--navy-700);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.8); }
.ts-user-result { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ts-user-result:hover { background: rgba(255,255,255,0.06); }
.ts-avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
    color: var(--on-gold); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.ts-avatar.has-img { background: var(--navy-900) center / cover no-repeat; }
.ts-user-name { flex: 1; font-weight: 600; }
/* OR divider */
.ts-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--text-soft); }
.ts-or::before, .ts-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ts-or span { font-size: 12px; font-weight: 800; letter-spacing: 1px; }
/* player-card results */
.ts-cards { margin-top: 14px; }
.ts-cards-head { margin: 0 0 12px; font-size: 13px; color: var(--text-soft); }
.ts-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px; }
.ts-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--navy-900); color: var(--text); transition: border-color .14s ease, transform .1s ease, box-shadow .14s ease; }
.ts-card:hover { border-color: var(--gold-bright); transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 26px -14px rgba(0,0,0,0.75); }
.ts-card-img { flex: 0 0 auto; width: 42px; height: 58px; border-radius: 7px; overflow: hidden; background: var(--navy-700); display: grid; place-items: center; }
.ts-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ts-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ts-card-title { font-size: 12.5px; font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-card-meta { font-size: 11px; color: var(--text-soft); }
.ts-card-owner { font-size: 11px; color: var(--text-soft); }
.ts-card-owner strong { color: var(--gold-bright); }
.ts-card-add { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--gold-bright); white-space: nowrap; }

/* ============ Minimal rich-text editor ============ */
.rte { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--input-bg); }
.rte-toolbar { display: flex; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.rte-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
    border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text); font-size: 14px; cursor: pointer;
    transition: background .12s ease, border-color .12s ease; }
.rte-btn:hover { background: rgba(255,255,255,0.07); border-color: var(--line); }
.rte-btn b, .rte-btn i, .rte-btn u { font-style: normal; font-weight: 400; }
.rte-btn b { font-weight: 800; }
.rte-btn i { font-style: italic; }
.rte-btn u { text-decoration: underline; }
.rte-color { position: relative; overflow: hidden; }
.rte-color-swatch { font-weight: 800; color: var(--gold-bright); border-bottom: 3px solid currentColor; line-height: .9; }
.rte-color-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rte-area { min-height: 74px; padding: 10px 12px; color: var(--text-strong); font: inherit; font-size: 14px; line-height: 1.5; outline: none; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.rte-area:focus { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); }
