/* =============================================================
   PLEDGE MANAGER — SPLATTERED INK IDENTITY (dark)
   Matched to splatteredink.com: near-black textured ground
   (#121019 / #1a1725), navy sections (#122b3e), gold display
   headings (#ffbf00, uppercase Montserrat), light body text,
   thin gold-outlined rounded cards, WHITE input fields on dark,
   gold gradient pill buttons.
   Texture: generated noise placeholder — replace by dropping the
   real site texture at assets/img/bg-texture.jpg and swapping the
   body background line below.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #122b3e;
    --gold: #ffbf00;
    --gold-light: #ffd966;
    --dark: #121019;
    --dark-2: #1a1725;
    --brand: var(--gold);          /* per-campaign override hook */

    --bg: #121019;
    --bg-panel: #1a1725;
    --bg-navy: #122b3e;
    --bg-input: #f4f2f7;           /* inputs stay light, like the site's forms */
    --text-primary: #f2f0f7;
    --text-secondary: #b8b4c7;
    --text-faint: #837f93;
    --text-on-light: #121019;
    --border: rgba(255, 255, 255, 0.12);
    --gold-line: rgba(255, 191, 0, 0.45);
    --radius: 12px;
    --radius-sm: 6px;
    --error: #ff8a80;
    --success: #7bdcb5;

    --font-head: 'Montserrat', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-ui: 'Plus Jakarta Sans', -apple-system, sans-serif;   /* content-level labels, buttons, item names */
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.55;
    background-color: var(--dark);
    /* faint noise until the real splatter texture lands */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: var(--font-ui);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
h1, h2 { font-family: var(--font-head); }   /* page titles keep Montserrat */
h1 { font-size: 1.6rem; }
h3, h4 { font-size: 0.95rem; letter-spacing: 0.04em; }

.muted { color: var(--text-secondary); }
.placeholder { color: var(--text-faint); font-style: italic; }

a { color: var(--gold); }
a:hover { color: var(--gold-light); }

/* ---- buttons: gold gradient pills, the site's CTA ---- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(100deg, var(--gold-light), var(--gold) 60%);
    color: var(--text-on-light);
}
.btn-primary:hover { filter: brightness(1.08); color: var(--text-on-light); }
.btn-primary:disabled { background: #3a374a; color: var(--text-faint); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold-line); }

/* ---- inputs: white fields on dark, like the contact form ---- */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
select, textarea {
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-on-light);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 0;
}
input:disabled { background: #2a2735; color: var(--text-faint); font-family: monospace; }
::placeholder { color: #6d6a7c; }

/* ---- gold-outlined card, the site's container signature ---- */
.auth-card, .panel, .store-card, .pledge-card, .totals-card, .cart-panel, .product-row {
    background: var(--bg-panel);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
}

.auth-card {
    max-width: 400px;
    margin: 10vh auto;
    padding: 36px 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.auth-card h1 { font-size: 1.25rem; margin-top: 0; }
.auth-card input { width: 100%; margin-bottom: 12px; }
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.auth-links { margin-top: 16px; font-size: 0.9rem; }
.register-box { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.register-box > summary { cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; }
.register-box input { width: 100%; margin-bottom: 12px; }

.alert { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 0.95rem; }
.alert-error { background: rgba(207, 46, 46, 0.18); color: var(--error); border-left: 3px solid var(--error); }
.alert-ok { background: rgba(0, 208, 132, 0.12); color: var(--success); border-left: 3px solid var(--success); }

/* ---- backer shell ---- */
.backer-nav {
    display: flex;
    align-items: stretch;
    gap: 2px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid var(--gold-line);
}
.nav-home {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--gold) !important;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
}
.nav-home:hover { color: var(--gold-light) !important; }
.nav-pages {
    display: flex;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;              /* mobile: menu scrolls sideways */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-pages::-webkit-scrollbar { display: none; }
.nav-pages a { white-space: nowrap; flex-shrink: 0; }
.project-bar {
    padding: 10px 20px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(18, 43, 62, 0.55);
    border-bottom: 1px solid var(--border);
}
.nav-account { position: relative; display: flex; align-items: center; margin-left: auto; }
.nav-login {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 14px !important;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold) !important;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.nav-account > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}
.nav-account > summary:hover, .nav-account[open] > summary { border-color: var(--gold); }
.nav-account > summary::-webkit-details-marker { display: none; }
.nav-account > summary:hover, .nav-account[open] > summary { color: var(--gold); }
.nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 190px;
    background: var(--bg-panel);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-sm);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.6);
    z-index: 50;
    padding: 6px 0;
}
.nav-menu a {
    display: block;
    padding: 9px 18px !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--text-primary) !important;
    text-decoration: none;
    border-bottom: none !important;
}
.nav-menu a:hover { background: rgba(255, 191, 0, 0.1); color: var(--gold) !important; }
.nav-menu a:last-child { border-top: 1px solid var(--border) !important; color: var(--text-secondary) !important; }
.backer-nav a {
    padding: 15px 20px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
}
.backer-nav a:hover { color: var(--text-primary); }
.backer-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.backer-main { padding: 28px 16px; max-width: 960px; margin: 0 auto; }
.top-strip { margin: 10px 0 0; font-size: 0.9rem; }

.tag {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--text-on-light);
    margin-left: 6px;
    vertical-align: middle;
}

/* ---- order flow ---- */
.order-lines { width: 100%; border-collapse: collapse; margin: 16px 0; }
.order-lines td { padding: 11px 8px; border-bottom: 1px solid var(--border); }
.order-lines tr.order-line-sub td { padding: 0 8px 10px; font-size: 0.85rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.order-lines tr:has(+ .order-line-sub) td { border-bottom: 0; padding-bottom: 4px; }
.order-lines code, .product-row code, .panel code {
    background: rgba(255, 191, 0, 0.12);
    color: var(--gold-light);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.totals-card { max-width: 440px; margin: 16px 0; padding: 18px 22px; background: var(--bg-navy); }
.totals-card > div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals-due {
    font-family: var(--font-ui);
    font-weight: 700;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px !important;
    color: var(--gold);
}

.store-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 760px) { .store-layout { grid-template-columns: 1fr; } }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.store-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.store-card:hover { border-color: var(--gold); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45); }
.store-card h3 { margin: 0; font-size: 0.92rem; color: var(--text-primary); }
.store-card strong { font-family: var(--font-ui); color: var(--gold); font-size: 1.15rem; }
.store-card .tag { margin-left: 0; align-self: flex-start; }
.cart-panel { position: sticky; top: 16px; padding: 18px; background: var(--bg-navy); }
.cart-panel h3 { margin-top: 0; font-size: 0.85rem; }
.cart-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 7px 0; font-size: 0.88rem; }
.cart-controls { display: flex; gap: 4px; align-items: center; }
.qty-btn {
    width: 24px; height: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-btn.remove { color: var(--error); }
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding: 12px 0;
    font-family: var(--font-ui);
    color: var(--gold);
}
/* ---- cart tray (anonymous storefront) ---- */
.cart-tray {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 340px;
    max-width: 92vw;
    padding: 18px;
    background: var(--bg-navy);
    border-left: 1px solid var(--gold-line);
    box-shadow: -16px 0 44px rgba(0, 0, 0, 0.55);
    transform: translateX(105%);
    transition: transform 0.25s ease;
    z-index: 90;
    overflow-y: auto;
}
.cart-tray.open { transform: translateX(0); }
.cart-tray-head { display: flex; justify-content: space-between; align-items: center; }
.cart-tray-head h3 { margin: 0; font-size: 0.85rem; }
.cart-tray-head .qty-btn { font-size: 1.1rem; width: 30px; height: 30px; }
.cart-tab {
    position: fixed;
    right: 0;
    top: 40%;
    z-index: 89;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 12px 14px;
    background: linear-gradient(100deg, var(--gold-light), var(--gold) 60%);
    color: var(--text-on-light);
    border: none;
    border-radius: 999px 0 0 999px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: -6px 4px 20px rgba(0, 0, 0, 0.45);
}
.cart-tab.hidden { display: none !important; }

.ship-form {
    max-width: 640px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.btn-block { display: block; text-align: center; }

.backer-banner {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: rgba(255, 191, 0, 0.1);
    border: 1px solid var(--gold-line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}
.backer-banner a { font-weight: 700; }
.store-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.store-card.featured-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 10px 34px rgba(0, 0, 0, 0.4);
}
.store-card.featured-card .product-img {
    aspect-ratio: 16 / 10;
    height: 100%;
}
.store-card.featured-card h3 { font-size: 1.25rem; }
.store-card.featured-card strong { font-size: 1.5rem; }
@media (max-width: 640px) {
    .store-card.featured-card { grid-template-columns: 1fr; }
}
.store-card.tier-selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold), 0 8px 26px rgba(0, 0, 0, 0.45);
}
.store-card.tier-selected [data-pick-tier] {
    background: var(--bg-navy);
    color: var(--gold);
}
.product-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.3);
}
.campaign-hero {
    height: 280px;
    background-size: cover;
    background-position: center 30%;
    border-bottom: 2px solid var(--gold-line);
    mask-image: linear-gradient(to bottom, black 60%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
}
.campaign-hero + .auth-card { margin-top: -60px; position: relative; }

/* ---- downloads ---- */
.dl-item { padding: 18px 22px; margin-bottom: 14px; }
.dl-item h3 { margin-top: 0; }
.key-code {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold-line);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

/* ---- account / your pledges ---- */
.account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid var(--gold-line);
}
.account-header h1 { font-size: 1.15rem; margin: 0; flex: 1; }
.pledge-list { display: flex; flex-direction: column; gap: 12px; }
.pledge-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 22px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pledge-card:hover { border-color: var(--gold); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45); }
.pledge-card strong { font-family: var(--font-ui); font-size: 1rem; color: var(--gold-light); text-transform: uppercase; }

/* ---- homepage ---- */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid var(--gold-line);
    background: rgba(0, 0, 0, 0.35);
}
.home-brand {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}
.home-main { max-width: 1060px; margin: 0 auto; padding: 40px 20px 80px; }
.home-headline { text-align: center; margin-bottom: 44px; }
.home-headline h1 { font-size: 2.4rem; margin: 0; }
.home-headline h1::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    background: var(--gold);
    margin: 14px auto;
}
.home-sub {
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 10px;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.project-card:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
    transform: translateY(-3px);
}
.project-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.project-cover-blank { background: var(--bg-navy); aspect-ratio: 16 / 9; }
.project-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.project-card-body h2 { margin: 0; font-size: 1.05rem; color: var(--text-primary); text-transform: none; }
.chip {
    align-self: flex-start;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
}
.chip-live { background: #2e7d32; color: #fff; }
.chip-soon { background: var(--gold); color: var(--text-on-light); }
.chip-preorders { background: var(--gold); color: var(--text-on-light); }
.chip-closed { background: #3a374a; color: var(--text-secondary); }

/* ---- splash ---- */
.splash { max-width: 520px; margin: 18vh auto; text-align: center; padding: 0 16px; }
.splash h1 { font-size: 2rem; }
.splash h1::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background: var(--gold);
    margin: 14px auto 0;
}

/* ---- image manager ---- */
.image-manager { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 16px; }
.image-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.image-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}
.image-manager input[type="file"] { max-width: 230px; background: transparent; color: var(--text-secondary); border: 1px dashed var(--border); }

/* ---- sort mode ---- */
.sort-list { list-style: none; margin: 0 0 20px; padding: 0; }
.sort-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: grab;
}
.sort-list li.dragging { opacity: 0.4; border-color: var(--gold); }
.drag-handle { color: var(--text-faint); cursor: grab; }
.pos-input { width: 64px !important; padding: 6px 8px !important; text-align: center; }
.sort-name { flex: 1; }

/* ---- mobile ---- */
html, body { max-width: 100%; overflow-x: hidden; }
.panel { overflow-x: auto; }               /* wide admin tables scroll inside their card */
@media (max-width: 640px) {
    .backer-nav { padding: 0 6px; }
    .backer-nav a { padding: 13px 12px; font-size: 0.74rem; }
    .nav-home { padding: 0 8px; }
    .backer-main { padding: 20px 12px; }
    .admin-main .order-lines { display: block; overflow-x: auto; white-space: nowrap; }
    .order-lines td { padding: 10px 6px; font-size: 0.95rem; }
    .order-lines td:first-child { padding-left: 0; }
    .order-lines td:not(:first-child) { white-space: nowrap; }
    .order-lines td:last-child { padding-right: 0; }
    .nav-pages { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 24px; }
    .admin-main { padding: 14px 10px; }
    .home-main { padding: 24px 14px 60px; }
    .home-headline h1 { font-size: 1.8rem; }
    .auth-card { margin: 6vh 14px; }
    .campaign-hero { height: 180px; }
}

/* =============================================================
   ADMIN DESIGN SYSTEM (2026-07-09 overnight rebuild)
   Spacing scale: 4/8/12/16/24/32. One panel anatomy, one form
   rhythm, chips for status, stats for numbers, empty states for
   nothing. Admin inputs are the compact size (40px) — the roomy
   48px inputs belong to backer-facing forms.
   ============================================================= */

body.admin { background-color: var(--dark); }

.admin-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    height: 56px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--gold-line);
}
.admin-brand {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold) !important;
    text-decoration: none;
    white-space: nowrap;
}
.admin-crumb {
    color: var(--text-secondary);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-crumb::before { content: '\203A'; margin-right: 16px; color: var(--text-faint); }
.admin-logout { margin-left: auto; }

.admin-tabs {
    display: flex;
    gap: 4px;
    padding: 0 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a {
    padding: 12px 16px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.admin-tabs a:hover { color: var(--text-primary); }
.admin-tabs a.active { color: var(--gold); border-bottom-color: var(--gold); }
.admin-tabs-view { margin-left: auto; font-size: 0.72rem !important; }

.admin-main { padding: 24px; max-width: 1400px; margin: 0 auto; }

.btn-sm { padding: 8px 18px; font-size: 0.72rem; }
.btn-danger { background: transparent; color: var(--error); border: 1px solid rgba(255, 138, 128, 0.4); }
.btn-danger:hover { border-color: var(--error); color: var(--error); }

/* panels */
.panel { padding: 24px; margin-bottom: 24px; }
.panel h2 {
    margin: 0 0 16px;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.panel h3 { margin: 24px 0 8px; color: var(--text-primary); font-size: 0.8rem; letter-spacing: 0.06em; }
.panel-note { color: var(--text-secondary); font-size: 0.88rem; margin: 0 0 16px; }

/* admin inputs: compact */
.admin-main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.admin-main select, .admin-main textarea {
    padding: 9px 12px;
    font-size: 0.92rem;
}

/* form system */
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 16px; align-items: end; margin: 12px 0 8px; }
.grid-form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.75rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-faint); }
.grid-form .span-all { grid-column: 1 / -1; }
.grid-form button { justify-self: start; }
.checkbox-row {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center;
    text-transform: none !important;
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    padding: 9px 0;
}
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* field cluster: a labeled group of related fields */
.field-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px 16px; margin: 0 0 14px; }
.field-group > legend, .field-group-title {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0 6px;
}
.field-group .grid-form { margin: 4px 0 0; }

/* chips */
.ui-chip {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.ui-chip-ok { background: rgba(123, 220, 181, 0.15); color: var(--success); }
.ui-chip-warn { background: rgba(255, 191, 0, 0.15); color: var(--gold); }
.ui-chip-bad { background: rgba(255, 138, 128, 0.15); color: var(--error); }
.ui-chip-muted { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
.ui-chip-gold { background: var(--gold); color: var(--text-on-light); }

/* stat tiles */
.ui-stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.ui-stat {
    min-width: 110px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.ui-stat b { display: block; font-family: var(--font-ui); font-size: 1.15rem; color: var(--text-primary); }
.ui-stat span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.ui-stat-warn b { color: var(--gold); }
.ui-stat-bad b { color: var(--error); }

/* empty states */
.ui-empty { text-align: center; padding: 28px 16px; color: var(--text-secondary); }
.ui-empty p { margin: 0 0 6px; }

/* tables */
.panel table { width: 100%; border-collapse: collapse; }
.panel th {
    text-align: left;
    padding: 8px 10px;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    border-bottom: 2px solid var(--border);
}
.panel td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.panel th.num, .panel td.num { text-align: right; font-variant-numeric: tabular-nums; }
.panel tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* product cards (catalog) */
.product-row { padding: 0; margin-bottom: 10px; border-color: var(--border); overflow: hidden; }
.product-row[open] { border-color: var(--gold-line); }
.product-row > summary {
    cursor: pointer;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
    list-style: none;
}
.product-row > summary::-webkit-details-marker { display: none; }
.product-row > summary:hover { background: rgba(255, 255, 255, 0.02); }
.product-row .prod-body { padding: 4px 16px 16px; border-top: 1px solid var(--border); }
.prod-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.prod-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-size: 0.65rem; }
.prod-name { font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.prod-sku { font-family: monospace; font-size: 0.82rem; color: var(--text-faint); }
.prod-price { margin-left: auto; font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; color: var(--text-primary); white-space: nowrap; }
.prod-chips { display: flex; gap: 6px; flex-shrink: 0; }
.prod-caret { color: var(--text-faint); transition: transform 0.15s; }
.product-row[open] .prod-caret { transform: rotate(90deg); }
.identity-line { font-size: 0.78rem; color: var(--text-faint); margin: 10px 0 14px; }
.identity-line code { background: rgba(255, 191, 0, 0.1); color: var(--gold-light); padding: 1px 7px; border-radius: 4px; }

.variant-form { border-left: 3px solid var(--gold-line); padding-left: 14px; }
.danger-zone { margin-top: 16px; border-top: 1px dashed rgba(255, 138, 128, 0.3); padding-top: 10px; }
.danger-zone > summary { cursor: pointer; color: var(--error); font-size: 0.82rem; }
.diff-cell { font-family: monospace; font-size: 0.78rem; max-width: 420px; overflow-wrap: anywhere; }
.warn { color: var(--error); font-weight: 700; }
.refund-form { display: flex; gap: 6px; align-items: center; }
.refund-form input { padding: 4px 6px !important; font-size: 0.82rem !important; }
.file-row { display: block; padding: 6px 0; font-size: 0.9rem; }
.component-table td { font-size: 0.9rem; }
.inline-code { background: rgba(255, 191, 0, 0.12); color: var(--gold-light); padding: 1px 7px; border-radius: 4px; font-family: monospace; font-size: 0.85em; }

@media (max-width: 640px) {
    .admin-main { padding: 14px 10px; }
    .admin-header { padding: 0 12px; }
    .admin-tabs { padding: 0 8px; }
}

/* ---- storefront conversion ---- */
.store-pitch { font-size: 1.05rem; color: var(--text-primary); max-width: 640px; margin: 4px 0 10px; }
.proof-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 10px 14px;
    background: rgba(18, 43, 62, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 0 0 24px;
    max-width: fit-content;
}
.proof-strip b { color: var(--gold); }
.tier-contents { margin: 4px 0; padding-left: 18px; font-size: 0.85rem; color: var(--text-secondary); columns: 2; column-gap: 24px; }
.tier-contents li { margin-bottom: 3px; break-inside: avoid; }
.store-card:not(.featured-card) .tier-contents { columns: 1; }
.picks-line { font-size: 0.78rem; }
.recs-title { margin-top: 32px; }
.recs-grid { margin-bottom: 20px; }

/* ---- cart tray v2: editable lines + in-tray recs ---- */
.tray-line {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.tray-thumb {
    width: 52px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}
.tray-thumb-empty { display: inline-block; }
.tray-line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tray-line-name { font-size: 0.9rem; font-weight: 600; }
.tray-line-meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.tray-qty { min-width: 18px; text-align: center; color: var(--text-primary); }
.tray-line-price { margin-left: auto; font-family: var(--font-ui); font-weight: 700; color: var(--text-primary); }
.tray-line .qty-btn { width: 26px; height: 26px; font-size: 0.9rem; }
.tray-remove {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.tray-remove:hover { border-color: var(--error); color: var(--error); }

.tray-recs-title {
    margin: 18px 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--gold);
}
.tray-rec {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
}
.tray-rec-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tray-rec-name { font-size: 0.88rem; font-weight: 600; color: var(--gold-light); }
.tray-rec-price { font-size: 0.85rem; color: var(--text-secondary); }

/* ---- admin: dashboard / backer detail two-column layout ---- */
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
.admin-cols > table { width: 100%; }
@media (max-width: 900px) { .admin-cols { grid-template-columns: 1fr; } }
.admin-main table td.num, .admin-main table th.num { text-align: right; white-space: nowrap; }

/* ---- homepage cards v2: cover · name · description · raised/fans · button ---- */
.project-desc { margin: 0; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.45; }
.project-stats { margin: 2px 0 6px; font-size: 0.85rem; color: var(--text-secondary); }
.project-stats b { color: var(--gold); font-family: var(--font-ui); }
.project-card .btn-block { margin-top: auto; text-align: center; }
.home-header .nav-account { margin-left: 0; }

/* ---- public project landing ---- */
.campaign-landing { padding-bottom: 8px; }
.landing-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 14px 0 18px; }
.landing-stats div { display: flex; flex-direction: column; }
.landing-stats b { font-family: var(--font-ui); font-size: 1.25rem; color: var(--gold); }
.landing-stats span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.backer-banner-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; }
.backer-banner-link span { color: var(--gold); white-space: nowrap; }
.auth-card input[type="checkbox"], .checkbox-row input[type="checkbox"] { width: auto !important; flex: 0 0 auto; margin: 0; }

/* ---- landing v2: no hero fade, centered title, stacked stats, two-line banner ---- */
.landing-hero { mask-image: none; -webkit-mask-image: none; }
.campaign-landing h1 { text-align: center; }
.campaign-landing .store-pitch { text-align: center; }
.landing-stats { flex-direction: column; align-items: center; gap: 18px; margin: 20px 15% 22px; text-align: center; }
.landing-stats div { align-items: center; }
.landing-stats .stat-label { order: -1; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--text-secondary); }
.landing-stats b { font-size: 1.6rem; line-height: 1.15; }
.landing-stats .stat-sub { text-transform: none; letter-spacing: 0; font-size: 0.82rem; color: var(--text-faint); }
.backer-banner-link { flex-direction: column; gap: 4px; text-align: center; color: var(--text-primary); }
.backer-banner-link b { color: var(--gold); white-space: normal; }

/* ---- landing v3: only the title and the button are centered ---- */
.campaign-landing h1 { text-align: center; margin: 14px 0 6px; line-height: 1.1; }
.campaign-landing .store-pitch { text-align: left; margin: 0 0 12px; }
.landing-stats { align-items: flex-start; text-align: left; margin: 16px 15% 20px; gap: 14px; }
.landing-stats div { align-items: flex-start; }
.backer-banner-link {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 12px 18px; margin: 0 15%;
    background: transparent; border: 2px solid var(--gold); border-radius: var(--radius);
    color: var(--text-primary); font-size: 0.95rem; line-height: 1.3; text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.backer-banner-link:hover { background: rgba(255, 191, 0, 0.12); transform: translateY(-1px); }
.backer-banner-link b { color: var(--gold); font-family: var(--font-ui); letter-spacing: 0.03em; }
@media (max-width: 640px) { .landing-stats, .backer-banner-link { margin-left: 6%; margin-right: 6%; } }

/* ---- landing v4 spacing (Darryl) + tier card includes toggle ---- */
@media (max-width: 640px) {
    .landing-stats, .backer-banner-link { margin-left: 12%; margin-right: 12%; }
    .backer-main { padding: 0px 12px; }
}
.tier-includes { margin: 2px 0 6px; }
.tier-includes summary { cursor: pointer; font-size: 0.85rem; color: var(--gold); list-style: none; }
.tier-includes summary::-webkit-details-marker { display: none; }
.tier-includes summary::before { content: '▸ '; }
.tier-includes[open] summary::before { content: '▾ '; }
.tier-includes .tier-contents { columns: 1; list-style: disc; margin: 8px 0 2px; padding-left: 20px; }

/* ---- store card v3: 3:2 art uncropped, price row, tighter description; shipping estimate above the login button ---- */
.product-img { aspect-ratio: 3 / 2; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-row strong { font-size: 1.15rem; }
.price-row .picks-line { text-align: right; }
.store-card-body .tier-desc { margin: 0.75em 0; }
.landing-ship { margin: 0 15% 10px; font-size: 0.9rem; color: var(--text-secondary); }
.landing-ship b { color: var(--gold); }
@media (max-width: 640px) { .landing-ship { margin-left: 12%; margin-right: 12%; } }

/* ---- landing: total raised is the hero stat; subtler shipping line ---- */
.landing-stats div:nth-child(1) b { font-size: 1.6rem; }
.landing-stats div:nth-child(2) b { font-size: 1.35rem; }
.landing-stats div:nth-child(3) b { font-size: 1.15rem; }
.landing-ship { font-size: 0.8rem; color: var(--text-faint); }
.landing-ship b { color: var(--text-secondary); font-weight: 600; }

.backer-banner-link { background: #ffbf0025; }
.step-note { margin: -4px 0 12px; font-size: 0.9rem; }

/* ---- your order: pledge tier as a card ---- */
.pledge-tier-card { margin: 12px 0 20px; border-color: var(--gold); }
.pledge-tier-card .tag { align-self: flex-start; margin-left: 0; }
.order-section-title { margin: 22px 0 4px; }

/* ---- your order: one card for everything from Kickstarter ---- */
.ks-order-card { border: 1px solid var(--gold); border-radius: var(--radius); background: var(--bg-panel); margin: 12px 0 20px; overflow: hidden; }
.ks-tier-section { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; background: rgba(255, 191, 0, 0.07); border-bottom: 1px solid var(--gold-line); }
.ks-tier-section .tag { align-self: flex-start; margin-left: 0; }
.ks-tier-section h3 { margin: 4px 0 0; }
.ks-lines { padding: 12px 18px 6px; }
.ks-lines h4 { margin: 0 0 6px; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--gold); }
.ks-line { padding: 8px 0; border-bottom: 1px solid var(--border); }
.ks-line:last-child { border-bottom: 0; }
.ks-line-name { display: block; font-weight: 600; margin-bottom: 2px; }
.ks-line .price-row strong { font-size: 1rem; }

/* ---- your order: call-to-action card + finalize ---- */
.cta-card { padding: 14px 18px; margin: 12px 0 8px; background: rgba(255, 191, 0, 0.08); border: 1px solid var(--gold-line); border-radius: var(--radius); }
.cta-card h3 { margin: 0 0 6px; }
.cta-card p { margin: 0; }
.cta-list { margin: 6px 0 2px; padding-left: 20px; }
.cta-list li { margin: 4px 0; }
.cta-list a { font-weight: 600; }
.finalize-row { margin: 26px 0 8px; }
.finalize-row .muted { margin: 8px 0 0; font-size: 0.85rem; }
.finalize-row .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---- acknowledgements above Complete my order ---- */
.ack-list { margin: 0 0 14px; }
.ack-row { align-items: flex-start !important; gap: 10px !important; padding: 8px 0 !important; font-size: 0.9rem !important; }
.ack-row input[type="checkbox"] { margin-top: 3px; }
.ack-row span { line-height: 1.4; color: var(--text-primary); }

/* ---- CTA card: cool blue so it contrasts with the gold everywhere else ---- */
.cta-card { background: rgba(72, 150, 255, 0.10); border-color: rgba(72, 150, 255, 0.55); }
.cta-card h3 { color: #9cc7ff; }
.cta-list a { color: #bfdbff; }

/* ---- CTA card: same navy scheme as the totals card ---- */
.cta-card { background: var(--bg-navy); border-color: var(--border); }
.cta-card h3 { color: var(--text-primary); }
.cta-list a { color: var(--gold); }

/* ---- first-visit sequence: step label, upgrade offer, all tiers ---- */
.step-label { margin: 10px 0 -6px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.upgrade-card { margin: 16px 0; padding: 16px 18px; background: var(--bg-navy); border: 1px solid var(--border); border-radius: var(--radius); }
.upgrade-card h3 { margin: 0 0 8px; }
.upgrade-card p { margin: 0 0 8px; }
.upgrade-card b { color: var(--gold); }
.upgrade-adds { margin: 4px 0 10px; }
.upgrade-actions { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 6px; }
.all-tiers { margin: 14px 0 8px; }
.all-tiers summary { cursor: pointer; color: var(--gold); font-size: 0.9rem; }
.all-tier-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.all-tier-row b { display: block; }
.all-tier-row .muted { font-size: 0.85rem; }
.owned-note { font-size: 0.8rem; color: var(--gold); }

/* ---- More Loot (step 2): compact rows, back links, no cart tab ---- */
.step-label .step-back { float: right; text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: var(--gold); }
.no-cart-tab .cart-tab { display: none !important; }
.store-grid.compact { display: flex; flex-direction: column; gap: 10px; }
.store-grid.compact .store-card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px; }
.store-grid.compact .product-img { width: 96px; height: 72px; aspect-ratio: 4 / 3; flex-shrink: 0; }
.store-grid.compact .store-card > :not(.product-img) { min-width: 0; }
.store-grid.compact .store-card h3 { margin: 0; font-size: 0.9rem; line-height: 1.25; }
.store-grid.compact .store-card .price-row { margin: 3px 0; }
.store-grid.compact .store-card .price-row strong { font-size: 1rem; }
.store-grid.compact .store-card .tier-desc { margin: 2px 0 6px; font-size: 0.82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-grid.compact .store-card .btn { padding: 8px 14px; font-size: 0.78rem; align-self: flex-start; }
.store-grid.compact .store-card .variant-sel { margin: 0 0 6px; }
.store-grid.compact .card-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.variant-sel { padding: 6px 10px !important; }

/* ---- step menu (Tier Selection · Loot Selection · Review) ---- */
.step-menu { display: flex; gap: 6px; margin: 12px 0 4px; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; }
.step-menu > * { flex: 1; text-align: center; padding: 8px 4px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.step-menu b { display: inline-block; width: 1.4em; height: 1.4em; line-height: 1.4em; border-radius: 50%; background: var(--border); color: var(--text-primary); font-size: 0.7rem; margin-right: 4px; }
.step-menu a:hover { border-color: var(--gold); color: var(--gold); }
.step-menu .step-current { border-color: var(--gold); color: var(--gold); }
.step-menu .step-current b { background: var(--gold); color: #1a1a2e; }
.step-menu .step-locked { opacity: 0.45; }
@media (max-width: 380px) { .step-menu { font-size: 0.66rem; } }

/* ---- step 2 selection mode ---- */
.store-card.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: linear-gradient(rgba(255, 191, 0, 0.12), rgba(255, 191, 0, 0.12)), var(--bg-panel); }   /* added here: the whole card takes a gold tint so it reads at a glance */
.sel-controls { display: flex; align-items: center; gap: 8px; }
.sel-controls .qty-btn { width: 28px; height: 28px; }
.sel-controls .sel-qty { min-width: 18px; text-align: center; font-weight: 700; }
.sel-controls .sel-remove { background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: 0.8rem; text-decoration: underline; }
.owned-note { font-size: 0.78rem; color: var(--text-secondary); }
.edit-order-link { display: block; margin: 14px 0 0; font-size: 0.9rem; }
.sel-extra { font-size: 0.78rem; color: var(--text-faint); }
.owned-flag { margin: 4px 0 6px; font-size: 0.85rem; color: var(--gold); }
.owned-flag a { color: inherit; text-decoration: underline; }
.choices-block { border-top: 1px solid var(--border); }
.choices-block.choices-open { background: rgba(255, 191, 0, 0.08); }
.choices-note { margin: 0 0 6px; font-size: 0.85rem; }
.choices-block .choice-sel { display: block; width: 100%; max-width: 320px; margin-top: 4px; }

/* ---- your order: one inset everywhere (18px), full-width step buttons ---- */
.ks-tier-section { padding: 18px; }
.ks-lines { padding: 14px 18px 8px; }
.totals-card { padding: 18px; max-width: none; }
.cta-card, .upgrade-card { padding: 18px; }
.order-section-title { margin-left: 18px; }
.added-lines td:first-child { padding-left: 18px !important; }
.added-lines td:last-child { padding-right: 18px !important; }
.btn-block { display: block; width: 100%; text-align: center; }
.finalize-row .btn, .upgrade-actions .btn { width: 100%; }
.totals-note { margin: 0 0 10px !important; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.pick-tier h2 { margin: 18px 0 6px; font-size: 1.25rem; }
.pick-tier > p { margin: 0 0 8px; }
.pick-tier .all-tier-row b { font-size: 1rem; }

/* ---- tier accordion: each listed tier opens into its full card ---- */
.tier-acc { border-bottom: 1px solid var(--border); }
.tier-acc > summary { list-style: none; cursor: pointer; border-bottom: 0; }
.tier-acc > summary::-webkit-details-marker { display: none; }
.tier-acc-chevron { color: var(--gold); transition: transform 0.15s; }
.tier-acc[open] .tier-acc-chevron { transform: rotate(180deg); }
.tier-acc-body { margin: 0 0 12px; }
.tier-acc-body .btn-block { margin-top: 4px; }
.tier-acc-side { display: flex; align-items: center; gap: 10px; }
.tier-acc-chevron { padding: 4px 6px; }
.addr-onfile { padding: 16px 18px; margin: 0 0 16px; }
.addr-onfile p { margin: 0 0 12px; }

/* ---- descriptions: 3-line clamp with See more / Less ---- */
.tier-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tier-desc.expanded,
.store-grid.compact .store-card .tier-desc.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }   /* must outrank the compact list clamp below, or See more hides itself */
.store-grid.compact .store-card .tier-desc { -webkit-line-clamp: 3; }
.desc-toggle { display: block; text-align: right; font-size: 0.85rem; color: var(--gold); margin: -2px 0 6px; text-decoration: none; }
.desc-toggle:hover { text-decoration: underline; }
.backer-banner-link b { white-space: nowrap; }

/* ---- See more tucked into the last clamped line ---- */
.tier-desc { position: relative; }
.desc-toggle { position: absolute; right: 0; bottom: 0; margin: 0; padding-left: 28px; line-height: inherit; font-size: inherit;
    background: linear-gradient(to right, transparent, var(--desc-bg, var(--bg-panel)) 40%); }
.tier-desc.expanded .desc-toggle { position: static; display: inline; padding-left: 6px; background: none; }
.ks-tier-section { --desc-bg: #2a2322; }   /* panel + the 7% gold tint */
.store-card, .tier-acc-body { --desc-bg: var(--bg-panel); }

/* ---- landing on desktop: bounded hero, centered description, stats in one row ---- */
.landing-hero { max-width: 960px; margin: 0 auto; }
.campaign-landing .store-pitch { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 641px) {
    .landing-stats { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 20px 15% 22px; }
    .landing-stats > div { flex: 1 1 0; }
}

/* ---- pledge pages on desktop: tier card left, everything else right (mobile unchanged) ---- */
@media (min-width: 900px) {
    .order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
    .order-col-left .ks-order-card { margin-top: 12px; }
    .order-col-right > .order-section-title:first-child, .order-col-right > .upgrade-card:first-child { margin-top: 12px; }
    .store-grid.compact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---- desktop tweaks: bigger loot thumbnails; no wrapping in Added here ---- */
.added-lines td:not(:first-child) { white-space: nowrap; }
@media (min-width: 900px) {
    .store-grid.compact .product-img { width: 192px; height: auto; aspect-ratio: 3 / 2; }
}

/* ---- address form: conventional layout ---- */
.address-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 16px; margin: 12px 0 8px; max-width: 640px; }
.address-form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.75rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-faint); }
.address-form .f-full { grid-column: 1 / -1; }
.address-form .f-city { grid-column: span 3; }
.address-form .f-state { grid-column: span 1; }
.address-form .f-postal { grid-column: span 2; }
.address-form .f-country { grid-column: span 3; }
.address-form .f-phone { grid-column: span 3; }
.address-form select { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #f4f2ee; color: #1a1725; font-size: 1rem; }
.address-form button.f-full { margin-top: 6px; }
@media (max-width: 640px) {
    .address-form .f-city, .address-form .f-state, .address-form .f-postal { grid-column: 1 / -1; }
    .address-form .f-country, .address-form .f-phone { grid-column: 1 / -1; }
}
.ack-row { font-size: 1rem !important; }
.ack-row span { line-height: 1.45; }

/* ---- step 1 with no tier at all: one column (the tier card column would be empty) ---- */
@media (min-width: 900px) {
    .order-layout.single { grid-template-columns: minmax(0, 1fr); }
    .order-layout.single .order-col-left { display: none; }
    .order-layout.single .pick-tier { max-width: 640px; margin-left: auto; margin-right: auto; }
}

/* account settings hub: compact panels; block-level ghost buttons in the backer flow need to read as buttons */
.acct-panel { padding: 18px 20px; margin-bottom: 14px; }
.acct-panel h3 { margin: 0 0 6px; }
.acct-panel p { margin: 0 0 12px; line-height: 1.45; }
.btn-ghost.btn-block { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); }
.btn-ghost.btn-block:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 191, 0, 0.06); }
.btn[aria-disabled="true"] { pointer-events: none; opacity: 0.75; }

/* labels that used to be set in the heading face read as headings: keep them all caps */
.totals-due, .cart-subtotal, .cart-tab, .backer-banner-link b { text-transform: uppercase; letter-spacing: 0.03em; }
.totals-due { font-size: 0.95rem; }

/* type sizes: labels were sized down for Montserrat's width; Plus Jakarta is narrower, so restore them */
h3, h4 { font-size: 1rem; }
.panel h3 { font-size: 0.86rem; }
.store-card h3 { font-size: 0.98rem; }
.store-grid.compact .store-card h3 { font-size: 0.95rem; }
.btn { font-size: 0.92rem; }
.btn-sm { font-size: 0.78rem; }
.project-bar { font-size: 0.88rem; }
.nav-login { font-size: 0.86rem; }
.backer-nav a { font-size: 0.86rem; }
@media (max-width: 640px) { .backer-nav a { font-size: 0.8rem; } }
.tag, .chip { font-size: 0.72rem; }
.cart-tab, .home-sub { font-size: 0.9rem; }
.admin-tabs a { font-size: 0.84rem; }
.field-group > legend, .field-group-title { font-size: 0.78rem; }
.ui-chip { font-size: 0.76rem; }
.panel th { font-size: 0.74rem; }

/* type weight: Plus Jakarta at 700 reads lighter than Montserrat did; labels go to 800 */
.btn, .nav-login, .backer-nav a, .tag, .chip, .totals-due, .cart-subtotal, .cart-tab,
.store-card strong, .pledge-card strong, .ui-stat b, .panel th, .prod-price, .tray-line-price,
.project-stats b, .landing-stats b, .backer-banner-link b,
.admin-tabs a, .field-group > legend, .field-group-title, .ui-chip { font-weight: 800; }
.home-sub { font-weight: 700; }

/* admin "view as" banner on the backer pages */
.alert-admin { background: rgba(156, 199, 255, 0.12); color: #9cc7ff; border-left: 3px solid #9cc7ff; }
body[data-admin-view] .btn, body[data-admin-view] button, body[data-admin-view] .stepper { opacity: 0.6; pointer-events: none; }

/* payment chips are outlined; pledge-progress chips stay filled */
.ui-chip.pay { background: transparent; border: 1px solid currentColor; opacity: 0.9; text-transform: none; letter-spacing: 0.01em; }

.ui-chip-info { background: rgba(156, 199, 255, 0.16); color: #9cc7ff; }

/* ---- admin on a phone (≤640px): stack, widen, keep taps big ---- */
.admin-tabs { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); padding-right: 32px; }
@media (max-width: 640px) {
    .admin-header { gap: 10px; height: 52px; }
    .admin-crumb::before { margin-right: 8px; }
    .admin-logout .btn { white-space: nowrap; padding: 7px 12px; font-size: 0.7rem; }
    .admin-tabs a { padding: 12px 12px; font-size: 0.76rem; }
    .admin-main { padding: 12px 8px 40px; }
    .panel { padding: 16px 14px; margin-bottom: 14px; }
    .panel h2 { margin-bottom: 12px; }
    .panel h3 { margin-top: 18px; }

    /* stat tiles: two equal columns instead of a ragged wrap */
    .ui-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .ui-stat { padding: 12px 12px; min-width: 0; }
    .ui-stat b { font-size: 1.05rem; }
    .ui-stat span { font-size: 0.66rem; }

    /* forms: one column, full-width controls and buttons */
    .grid-form { grid-template-columns: 1fr; gap: 12px; }
    .grid-form label[style*="grid-column"] { grid-column: 1 / -1 !important; }
    .grid-form button, .grid-form .btn, .form-actions .btn, .form-actions button { justify-self: stretch; width: 100%; text-align: center; }
    .form-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .form-actions input { max-width: none !important; width: 100%; }
    .admin-main .inline { display: block; }
    .admin-main .inline .btn, .admin-main .inline button { width: 100%; }
    .btn-sm { padding: 11px 16px; font-size: 0.76rem; }
    .refund-form { flex-wrap: wrap; }

    /* tables: let wide ones scroll without squeezing every header onto two lines */
    .panel th { white-space: nowrap; padding: 8px 8px; }
    .panel td { padding: 9px 8px; font-size: 0.88rem; }

    /* dashboard attention list: chip + text, link on its own line */
    .attention-list, .attention-list tbody { display: block; }
    .attention-list tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
    .attention-list td { display: inline; padding: 0; border: 0; font-size: 0.92rem; }
    .attention-list td:first-child { margin-right: 6px; }
    .attention-list td:last-child { display: block; text-align: left !important; margin-top: 6px; }
    .attention-list td:last-child a { display: inline-block; padding: 6px 0; }
    .attention-list tr:hover td { background: none; }

    /* backers list: one card per backer instead of a seven-column table */
    .backer-list, .backer-list tbody { display: block; }
    .backer-list thead, .backer-list tr:first-child { display: none; }   /* the header row lives in tbody */
    .backer-list tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .backer-list td { display: block; padding: 2px 0; border: 0; text-align: left !important; }
    .backer-list td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 72px; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-right: 6px; }
    .backer-list td.chip { display: inline-block; padding: 6px 6px 2px 0; }
    .backer-list td.chip::before { display: none; }
    .backer-list td:last-child { padding-top: 6px; }
    .backer-list td:last-child a { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
    .backer-list tr:hover td { background: none; }

    /* catalog rows: chips drop under the name, price stays on the right */
    .product-row > summary { flex-wrap: wrap; gap: 10px 12px; padding: 12px 12px; }
    .prod-thumb { width: 56px; height: 42px; }
    .prod-name { font-size: 0.98rem; }
    .prod-chips { flex-basis: 100%; order: 5; flex-wrap: wrap; }
    .product-row > summary > span:nth-child(2) { flex: 1 1 120px; min-width: 0; }   /* name wraps, price stays on its line */
    .prod-price { font-size: 0.98rem; }
    .product-row .prod-body { padding: 4px 12px 14px; }

    /* two-column detail panels: single column, tighter label column */
    .admin-cols > table td:first-child { width: 34%; }
    .diff-cell { max-width: none; }
}

/* downloads: two plain lists, one row per item */
.dl-list { list-style: none; margin: 0 0 22px; padding: 0; }
.dl-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.dl-list .dl-name { flex: 1; min-width: 0; }
.dl-list .dl-action { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; text-align: right; font-size: 0.9rem; }
.dl-list .key-code { font-size: 0.9rem; padding: 4px 8px; }
@media (max-width: 640px) { .dl-list li { flex-direction: column; align-items: flex-start; gap: 4px; } .dl-list .dl-action { justify-content: flex-start; text-align: left; } }

/* invite-only holding page */
.holding-card { max-width: 640px; }
.holding-card p { margin: 0 0 10px; line-height: 1.55; }

/* ---- store hero: full bleed at the banner's own width (1920); only wider screens see it centered with faded edges ---- */
.landing-hero {
    max-width: 1920px;
    height: auto;
    aspect-ratio: 3921 / 961;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: none;
}
@media (max-width: 640px) {
    .landing-hero { aspect-ratio: auto; height: 190px; background-size: cover; background-position: center; }
}

/* hero: same faint noise as the page, so the banner's flat #121019 edges blend into the body */
.landing-hero { position: relative; }
.landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 1921px) {
    .landing-hero {
        mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
    }
}

/* phone hero: its own image, shown whole at its own ratio (set per campaign; falls back to the wide one) */
.landing-hero { background-image: var(--hero); }
@media (max-width: 640px) {
    .landing-hero { background-image: var(--hero-m, var(--hero)); }
    .landing-hero.has-mobile { height: auto; aspect-ratio: 2161 / 961; background-size: 100% auto; background-position: center; }
}

/* admin header: who is logged in and their role */
.admin-who { margin-left: auto; font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap; }
.admin-who + .admin-logout { margin-left: 12px; }
@media (max-width: 640px) { .admin-who { display: none; } }

/* backers list on desktop: fit the row, never clip the Open link */
@media (min-width: 641px) {
    .backer-list th, .backer-list td { padding-left: 8px; padding-right: 8px; }
    .backer-list td:last-child { white-space: nowrap; }
    .backer-list td.chip { white-space: nowrap; }
}

/* preorder checkout */
.pre-actions { margin: 6px 0 0; font-size: 0.9rem; }
.pre-notier { padding: 16px 18px; }
.pre-notier p { margin: 0 0 10px; }
.pre-rm-cell { width: 1%; text-align: right; }
.pre-rm { display: inline-block; padding: 0 6px; font-size: 1.1rem; line-height: 1; color: var(--text-secondary); text-decoration: none; }
.pre-rm:hover { color: var(--error); }

.pre-step { padding: 14px 18px; margin: 14px 0; }
.pre-step h3 { margin: 0 0 6px; }
.pre-step p { margin: 0 0 8px; line-height: 1.45; }

/* ---- admin dashboard: backer activity feed ---- */
.activity-feed { max-height: 460px; overflow-y: auto; border-top: 1px solid var(--border); }
.activity-list { width: 100%; }
.activity-list td { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.activity-when { width: 1%; white-space: nowrap; font-size: 0.85rem; }
.activity-bad { color: var(--danger, #ff6b6b); }

/* ---- admin: Edit this backer ---- */
.admin-edit details { border-top: 1px solid var(--border); padding: 10px 0; }
.admin-edit summary { cursor: pointer; font-weight: 700; }
.admin-edit details[open] > summary { margin-bottom: 10px; }
.admin-edit form + form { margin-top: 14px; }
.admin-who a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.admin-who a.admin-who-link { margin-left: 8px; color: var(--gold); border-bottom: 0; }

/* ---- upgrades: what the new tier already covers ---- */
.upgrade-note { margin: 8px 0 10px; font-size: 0.88rem; color: var(--gold); }
.page-notice { margin: 12px 0; }
.have-card { margin: 4px 0 18px; padding: 14px 18px; background: var(--bg-navy); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.92rem; line-height: 1.55; }
.have-card p { margin: 0; }
.have-card p + p { margin-top: 8px; }
.have-card b { color: var(--gold); }
.tier-credit { margin: 8px 0 0; font-size: 0.88rem; color: var(--gold); }

/* ---- cookie consent bar (pledge.js) ---- */
.consent-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 14px 16px; background: #121019; color: #f2f0f7; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); font-size: 0.88rem; line-height: 1.45; }
.consent-bar p { margin: 0; flex: 1 1 260px; }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
.consent-actions button { font-family: var(--font-ui); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.consent-no { background: transparent; color: #f2f0f7; border: 1px solid rgba(255, 255, 255, 0.35); }
.consent-yes { background: linear-gradient(180deg, #ffd966, #ffbf00); color: #121019; border: 0; }
