:root {
    --color-obsidian: #0A0A0F;
    --color-obsidian-elevated: #10111a;
    --color-slate: #111827;
    --color-slate-soft: #1f2937;
    --color-gold: #D4AF37;
    --color-gold-soft: rgba(212, 175, 55, 0.16);
    --color-gold-strong: rgba(212, 175, 55, 0.32);
    --color-purple: #7C3AED;
    --color-purple-soft: rgba(124, 58, 237, 0.18);
    --color-text: #F3EFE6;
    --color-text-muted: rgba(243, 239, 230, 0.72);
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-strong: rgba(212, 175, 55, 0.32);
    --shadow-lux: 0 18px 60px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 0 1px rgba(212, 175, 55, 0.18), 0 18px 60px rgba(0, 0, 0, 0.45);
    --radius-card: 1.25rem;
    --radius-pill: 999px;
    --font-headline: "Playfair Display", Georgia, serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.luxe-betting-shell {
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 32%),
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 28%),
        linear-gradient(180deg, #08080d 0%, var(--color-obsidian) 100%);
    color: var(--color-text);
    font-family: var(--font-body);
}

body.luxe-betting-shell a {
    color: inherit;
}

body.luxe-betting-shell .app-header,
body.luxe-betting-shell .app-main {
    position: relative;
    z-index: 1;
}

body.luxe-betting-shell .app-header,
body.luxe-betting-shell .app-main {
    max-width: 1440px;
    margin: 0 auto;
}

body.luxe-betting-shell .app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 15, 0.72);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: var(--shadow-lux);
}

.luxe-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 0.125rem;
    text-decoration: none;
    min-width: 0;
}

.luxe-brand-kicker {
    color: var(--color-gold);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.luxe-brand-title {
    color: var(--color-text);
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.luxe-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.nav-link-luxe {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-link-luxe:hover,
.nav-link-luxe.is-active,
.nav-link-luxe:focus-visible {
    color: var(--color-text);
    border-color: var(--color-border-strong);
    background: rgba(212, 175, 55, 0.11);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08) inset;
    transform: translateY(-1px);
}

.nav-link-luxe--badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.nav-link-luxe--badge .nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.nav-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    padding: 0 0.5rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-gold), #f3d97c);
    color: #0b0b10;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.6rem;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.22);
}

.luxe-main {
    width: min(1440px, calc(100% - 2rem));
    padding: 1.5rem 0 3rem;
}

.glass-card,
.card,
.match-card,
.alert-card,
.auth-page,
.sportsbook-body,
.sportsbook-container,
.betting-container,
.feed-header {
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow: var(--shadow-glow);
}

.glass-card {
    border-radius: var(--radius-card);
    padding: 1.25rem;
}

.btn-gold,
button.btn-gold,
.btn-gold:hover {
    background: linear-gradient(135deg, #f6db83 0%, var(--color-gold) 50%, #b68b16 100%);
    color: #12111a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 36px rgba(212, 175, 55, 0.28);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-gold-strong);
    box-shadow: none;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-gold);
}

.badge-gold,
.badge-purple {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-gold {
    background: var(--color-gold-soft);
    border: 1px solid var(--color-gold-strong);
    color: #f3d97c;
}

.badge-purple {
    background: var(--color-purple-soft);
    border: 1px solid rgba(124, 58, 237, 0.34);
    color: #d7c8ff;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.9);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.luxe-page-title {
    margin: 0;
    font-family: var(--font-headline);
    font-size: clamp(2rem, 3vw, 3.5rem);
    letter-spacing: 0.01em;
}

.luxe-page-copy {
    margin: 0.5rem 0 0;
    color: var(--color-text-muted);
    max-width: 52rem;
}

.betting-page {
    display: grid;
    gap: 1rem;
}

.betting-hero,
.betting-receipt,
.active-tickets-section,
.statement-preview-panel,
.betslip-sidebar {
    border-radius: var(--radius-card);
}

.betting-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 1rem;
    align-items: stretch;
}

.betting-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.hero-metric,
.statement-preview-panel,
.active-ticket-card,
.receipt-grid > div {
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
}

.hero-metric {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.hero-metric-label,
.receipt-label,
.statement-preview-code,
.statement-preview-reference,
.statement-preview-empty,
.hero-metric-caption {
    color: var(--color-text-muted);
}

.hero-metric-value {
    font-size: 1.5rem;
    color: var(--color-text);
}

.betting-receipt {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.betting-receipt--error {
    border-color: rgba(124, 58, 237, 0.4);
}

.receipt-heading,
.betslip-header,
.active-ticket-header,
.betslip-card-header,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.receipt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.receipt-grid > div {
    padding: 0.85rem 1rem;
}

.statement-preview-panel,
.betslip-sidebar,
.active-tickets-section {
    padding: 1rem;
}

.statement-preview-title,
.active-tickets-section h2,
.luxe-page-title {
    margin: 0;
}

.statement-preview-list,
.alert-validation-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.statement-preview-item {
    display: grid;
    gap: 0.2rem;
}

.statement-preview-amount,
.active-ticket-card h3,
.receipt-heading strong {
    color: var(--color-text);
}

.active-tickets-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.active-ticket-card {
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
}

.active-ticket-card p,
.empty-state-text {
    margin: 0;
    color: var(--color-text-muted);
}

.active-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.btn-submit-bet {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.25rem;
    border-radius: var(--radius-pill);
}

.statement-preview-empty {
    margin: 0.75rem 0 0;
}

.statement-preview-code {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.statement-preview-reference {
    font-size: 0.92rem;
}

.betslip-active-state {
    display: grid;
    gap: 0.75rem;
}

.betslip-card,
.betslip-stake-box,
.betslip-empty {
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
}

.betslip-empty {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    text-align: center;
    min-height: 10rem;
}

.betslip-header {
    margin-bottom: 1rem;
}

.betslip-card-header {
    align-items: flex-start;
}

.betslip-match,
.betslip-market,
.betslip-odd-val {
    color: var(--color-text);
}

.betslip-stake-box {
    display: grid;
    gap: 0.75rem;
}

.betslip-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.betslip-input {
    width: 100%;
    min-width: 0;
}

.betslip-payout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.betslip-remove {
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.wallet-page {
    display: grid;
    gap: 1rem;
}

.wallet-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallet-summary-card {
    min-height: 100%;
}

.wallet-summary-card--gold {
    border-color: var(--color-gold-strong);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.04));
}

.wallet-summary-value {
    font-size: 1.8rem;
    color: var(--color-text);
}

.wallet-statement-panel {
    display: grid;
    gap: 1rem;
}

.wallet-table-wrap {
    overflow-x: auto;
}

.wallet-statement-table {
    width: 100%;
    border-collapse: collapse;
}

.wallet-statement-table th,
.wallet-statement-table td {
    padding: 0.9rem 0.85rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.wallet-statement-table thead th {
    color: var(--color-text-muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wallet-statement-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.wallet-statement-table tbody tr:last-child td {
    border-bottom: 0;
}

.wallet-number-cell {
    text-align: right;
    white-space: nowrap;
}

.wallet-reference {
    margin-top: 0.2rem;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.wallet-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wallet-row--credit .wallet-amount {
    color: #f3d97c;
}

.wallet-row--debit .wallet-amount {
    color: #ffb3b3;
}

.wallet-row--summary .wallet-amount {
    color: var(--color-text);
}

@media (max-width: 1200px) {
    .betting-hero,
    .receipt-grid,
    .betting-hero-metrics,
    .active-tickets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    body.luxe-betting-shell .app-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .luxe-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-link-luxe--badge {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body.luxe-betting-shell .app-header,
    .luxe-main {
        width: min(100%, calc(100% - 1rem));
        padding-inline: 0.5rem;
    }

    .nav-link-luxe {
        width: 100%;
        justify-content: center;
    }

    .luxe-nav {
        width: 100%;
    }
}
