:root {
    color-scheme: dark;
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-2: #22c55e;
    --danger: #ef4444;
}

html {
    scroll-padding-top: 1rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* App shell: left sidebar + content */
.app-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.site-sidebar {
    width: 16.5rem;
    flex: 0 0 16.5rem;
    background: var(--card);
    border-right: 1px solid #334155;
    padding: 1.25rem 0.85rem 2rem;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
    z-index: 1100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 0.65rem 1rem;
    border-bottom: 1px solid #334155;
    margin-bottom: 0.75rem;
}

.sidebar-brand a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    line-height: 1.3;
}

.nav-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.4rem;
}

.site-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.site-nav > a,
.nav-group-toggle {
    display: block;
    width: 100%;
    text-align: left;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.45rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.35;
    min-height: 2.75rem;
}

.site-nav > a:hover,
.nav-group-toggle:hover {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
}

.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-group-toggle::after {
    content: '+';
    font-size: 1.1rem;
    color: var(--muted);
}

.nav-group-toggle[aria-expanded="true"]::after {
    content: '\2212';
}

.nav-group-links {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.15rem 0 0.35rem 0.5rem;
}

.nav-group-links[hidden] {
    display: none;
}

.nav-group-links a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.4rem;
    min-height: 2.5rem;
}

.nav-group-links a:hover {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
}

.app-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mobile-topbar {
    display: none;
}

.nav-backdrop {
    display: none;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

body.layout-wide main {
    max-width: min(1600px, 98vw);
}

footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid #334155;
    color: var(--muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--muted);
}

footer a:hover {
    color: var(--accent);
}

@media (max-width: 899px) {
    .app-shell {
        display: block;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--card);
        border-bottom: 1px solid #334155;
        padding: 0.75rem 1rem;
    }

    .mobile-topbar .mobile-brand {
        color: var(--text);
        text-decoration: none;
        font-size: 1rem;
    }

    .nav-open {
        background: #334155;
        color: var(--text);
        border: 1px solid #475569;
        border-radius: 0.4rem;
        padding: 0.55rem 0.9rem;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        font-family: inherit;
        min-height: 2.75rem;
    }

    .site-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(18rem, 86vw);
        flex: none;
        height: 100%;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    }

    body.nav-open .site-sidebar {
        transform: translateX(0);
    }

    .nav-close {
        display: inline-block;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.55);
        z-index: 1090;
    }

    .nav-backdrop[hidden] {
        display: none;
    }

    body.nav-open {
        overflow: hidden;
    }

    main {
        margin: 1.25rem auto;
        padding: 0 1rem;
    }
}

.card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.referral-qr {
    display: inline-block;
    background: #fff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.referral-qr svg {
    display: block;
    width: 200px;
    height: 200px;
}

.totp-qr {
    display: inline-block;
    background: #fff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.totp-qr svg {
    display: block;
    width: 200px;
    height: 200px;
}

h1, h2, h3 {
    margin-top: 0;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.flash.success {
    background: #064e3b;
    border-color: #10b981;
    color: #d1fae5;
}

.flash.error {
    background: #450a0a;
    border-color: #f87171;
    color: #fee2e2;
}

.flash.info {
    background: #1e3a8a;
    border-color: #60a5fa;
    color: #dbeafe;
}

form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #475569;
    border-radius: 0.4rem;
    background: #0b1220;
    color: var(--text);
}

button,
.button {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 0.4rem;
    background: var(--accent);
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

button.secondary,
.button.secondary {
    background: var(--muted);
    color: var(--bg);
}

button.danger,
.button.danger {
    background: var(--danger);
    color: white;
}

button.small,
.button.small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.data-table td {
    vertical-align: middle;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.tier-card {
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.tier-card h3 {
    margin: 0 0 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-2);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #334155;
}

.payment-primary {
    margin-top: 1rem;
}

.payment-button {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
}

.payment-card {
    background: var(--accent-2);
    color: #052e16;
}

.payment-note,
.payment-option-label {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
    text-align: center;
}

.payment-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.payment-divider::before,
.payment-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #334155;
}

.payment-secondary {
    max-width: 240px;
    margin: 0 auto;
}

.paypal-compact {
    min-height: 40px;
    margin-top: 0.5rem;
}

#paypal-error {
    text-align: center;
}

.pick-list {
    list-style: none;
    padding: 0;
}

.pick-list li {
    background: #0b1220;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.pick-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--accent);
    color: var(--bg);
    margin-left: 0.5rem;
}

.banner {
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    color: var(--bg);
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.85rem;
}

.countdown-num {
    display: block;
    font-size: 1.8rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1.1;
}

.countdown-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.nba-grid input,
.nba-grid select {
    margin-bottom: 0.75rem;
}

.form-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.form-row input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.result {
    border: 1px solid var(--accent);
}

.result .score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-2);
    margin: 0.5rem 0 1rem;
}

.gate-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.gate-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gate-list li:last-child {
    border-bottom: none;
}

.audit {
    background: #450a0a;
    border: 1px solid #f87171;
    color: #fee2e2;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #334155;
    vertical-align: top;
}

.data-table th {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.data-table tbody tr:hover {
    background: #0b1220;
}

.table-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.table-scroll .data-table {
    min-width: 100%;
    width: max-content;
}

.table-scroll .data-table td {
    overflow-wrap: anywhere;
    max-width: 220px;
}

.admin-order-table .order-date {
    white-space: nowrap;
    max-width: none;
    overflow-wrap: normal;
}

.admin-order-table .order-provider-id {
    max-width: 16rem;
    font-size: 0.8rem;
    word-break: break-all;
}

.admin-order-table .order-provider-id code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: inherit;
    color: inherit;
    background: transparent;
    padding: 0;
}

.pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--muted);
    color: var(--bg);
}

.pill.final {
    background: var(--accent-2);
}

.pill.scheduled {
    background: var(--accent);
}

.inline-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
    width: auto;
    min-width: 180px;
    margin-bottom: 0;
}

.inline-form button {
    height: fit-content;
}

.slate-picker {
    align-items: center;
}
.slate-hint {
    flex: 1 1 14rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.35;
    max-width: 28rem;
}

.pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.pick-card {
    position: relative;
    background: #0b1220;
    border: 1px solid #334155;
    border-left: 4px solid var(--accent);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-callout: none;
    -webkit-user-drag: none;
    user-drag: none;
}

@media print {
    .pick-card {
        display: none !important;
    }
}

.pick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.pick-card h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.pick-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0.12;
    z-index: -2;
}

.help-text {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal h2 { margin-top: 0; }
.modal p { line-height: 1.5; margin-bottom: 20px; }
.checkbox-label { display: block; margin-bottom: 15px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}
.btn-primary { background: #007bff; color: #fff; border: none; cursor: pointer; }
.btn-secondary { background: #6c757d; color: #fff; }
.modal h2,
.modal p,
.modal .checkbox-label {
    color: #000;
}

.modal h2,
.modal p,
.modal .checkbox-label {
    color: #000;
}

form input[type="checkbox"] {
    width: auto;
    display: inline;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Pick card layout cleanup */
.pick-card h3 {
    margin: 0.5rem 0 0.25rem;
    color: var(--text);
}
.pick-card .pick-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}
.pick-card-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.pick-card-title h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.pick-card .pick-date {
    float: none;
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    margin-top: 0;
}
.pick-card p {
    color: var(--muted);
    font-size: 0.95rem;
}
.pick-card form {
    margin: 0.5rem 0;
}
.data-table td:last-child {
    text-align: right;
}
.data-table form {
    margin: 0;
}
.card > h1,
.card > h2,
.card > h3 {
    margin-top: 0;
}
.card .inline-form {
    margin-bottom: 0;
}

/* Admin guide: topic jump list and in-page sections */
.admin-guide h2,
.admin-guide h3 {
    scroll-margin-top: 5rem;
}
.guide-toc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem 1.5rem;
}
.guide-toc h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}
.guide-toc ul {
    margin: 0;
    padding-left: 1.1rem;
}
.guide-toc a {
    color: var(--accent);
}
.admin-guide h2 {
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #334155;
    font-size: 1.35rem;
    color: var(--accent);
}
.admin-guide h3 {
    margin: 1.25rem 0 0.4rem;
    font-size: 1.05rem;
}
.admin-guide .guide-toc h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--text);
}
.admin-guide .back-to-topics {
    margin-top: 1.25rem;
}
.admin-guide .data-table td:last-child {
    text-align: left;
}
.admin-guide-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 5.25rem;
    height: 3rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: #0ea5e9;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}
.admin-guide-fab:hover {
    color: #fff;
}

/* Floating help button and modal */
.help-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}
.help-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 101;
}
.help-modal.open {
    display: flex;
}
.help-modal-content {
    background: var(--card);
    color: var(--text);
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.help-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Season / conversion promo modals */
.promo-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
}
.promo-modal.open {
    display: flex;
}
.promo-modal-content {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 55%, #172554 100%);
    color: var(--text);
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 2rem 1.75rem 1.75rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    text-align: center;
}
.promo-modal-content.promo-flashy {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 28px 56px rgba(0, 0, 0, 0.5);
}

@keyframes pick-updated-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.04); }
}
.pick-updated-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 3;
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
    background: #fbbf24;
    border: 1px solid #f59e0b;
    border-radius: 0.35rem;
    animation: pick-updated-pulse 1.2s ease-in-out infinite;
    pointer-events: none;
}

.pick-results {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #334155;
}
.pick-results-heading {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.pick-results-final {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    color: var(--text);
}
.pick-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.pick-result {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.4rem;
    border: 1px solid #334155;
    background: #0f172a;
    font-size: 0.88rem;
}
.pick-result-mark {
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    flex-shrink: 0;
}
.pick-result-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.pick-result-market {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pick-result-help {
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #38bdf8;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}
.pick-result-help-text {
    margin: 0.15rem 0 0;
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.pick-result-detail {
    color: var(--text);
    line-height: 1.35;
    word-break: break-word;
}
.pick-result-won {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(22, 163, 74, 0.12);
}
.pick-result-won .pick-result-mark {
    color: #4ade80;
}
.pick-result-lost {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(220, 38, 38, 0.12);
}
.pick-result-lost .pick-result-mark {
    color: #f87171;
}
.pick-result-push,
.pick-result-ungraded {
    border-color: #475569;
}
.pick-result-push .pick-result-mark,
.pick-result-ungraded .pick-result-mark {
    color: var(--muted);
}
.promo-modal-close {
    position: absolute;
    top: 0.45rem;
    right: 0.65rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
.promo-modal-close:hover {
    color: var(--text);
}
.promo-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}
.promo-modal-content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.65rem;
    line-height: 1.2;
}
.promo-body {
    margin: 0 0 1.25rem;
    color: #cbd5e1;
    font-size: 1.05rem;
}
.promo-cta {
    display: inline-block;
    min-width: 11rem;
}

/* Home page sample screenshots */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
.sample-shot img {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    display: block;
}

/* Date input visibility on dark theme */
input[type='date'] {
    color-scheme: dark;
}
input[type='date']::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
}
input[type='date']::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Pick-card watermarking and anti-capture deterrents */
.pick-card.wm-protected {
    position: relative;
    overflow: hidden;
}

.pick-wm-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.08;
    z-index: 2;
    background-repeat: repeat;
    background-size: 300px 120px;
}

.pick-wm-tag {
    position: relative;
    z-index: 3;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--muted);
    opacity: 0.7;
}

body.wm-blur .pick-card > *:not(.pick-wm-layer):not(.pick-wm-tag) {
    filter: blur(6px);
}

.pick-license {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.pick-wm-stamp {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
    white-space: pre;
    line-height: 1.5;
    opacity: 0.08;
    transform: rotate(-25deg);
}

body.wm-blur .pick-wm-stamp,
body.wm-blur .pick-wm-tag {
    opacity: 0.02;
}

.field-group {
    border: 1px solid #334155;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: #0b1220;
}

.field-group summary {
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--accent);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.85rem 1rem;
    padding: 0 1rem 1rem;
}

.field-grid input {
    margin-bottom: 0;
}

.field-grid .form-row {
    align-items: flex-start;
    padding-top: 1.35rem;
    margin-bottom: 0;
}

/* FAQ: section groups (h2) vs questions (h3) */
.faq-page h2 {
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #334155;
    font-size: 1.35rem;
    color: var(--accent);
}
.faq-page h2:first-of-type {
    border-top: none;
    margin-top: 1rem;
    padding-top: 0;
}
.faq-page h3 {
    margin: 1.25rem 0 0.4rem;
    font-size: 1.05rem;
    color: var(--text);
}
.faq-page p,
.faq-page ul {
    margin-top: 0;
    color: var(--muted);
}
.faq-page li {
    margin-bottom: 0.35rem;
}
.faq-page a {
    color: var(--accent);
}


/* Local-time cookie notice */
.cookie-notice {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
    max-width: 42rem;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    background: #122033;
    border: 1px solid rgba(120, 170, 220, 0.35);
    border-radius: 8px;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.cookie-notice p { margin: 0 0 0.65rem; font-size: 0.9rem; color: var(--muted); }
.cookie-notice .cookie-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.cookie-notice .button { margin: 0; }