:root {
    --casino-bg: #07080d;
    --casino-panel: rgba(18, 21, 34, 0.82);
    --casino-panel-strong: #111522;
    --casino-gold: #f8c85a;
    --casino-red: #d92135;
    --casino-green: #1fb878;
    --casino-muted: #a8adbd;
    --casino-border: rgba(248, 200, 90, 0.18);
}

* { letter-spacing: 0; }

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(217, 33, 53, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(248, 200, 90, 0.12), transparent 28%),
        linear-gradient(135deg, #050609 0%, #0c1020 45%, #09090d 100%);
    color: #f6f2e8;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

body::before {
    content: "♠  ♥  ♦  ♣";
    position: fixed;
    right: 26px;
    bottom: 16px;
    color: rgba(248, 200, 90, .07);
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 900;
    pointer-events: none;
    z-index: -1;
}

.casino-preloader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(217, 33, 53, .18), transparent 34%),
        linear-gradient(135deg, #040507, #090d18 45%, #050505);
    z-index: 9999;
    transition: opacity .16s ease, visibility .16s ease;
}

.casino-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-table {
    display: grid;
    justify-items: center;
    gap: 10px;
    color: var(--casino-gold);
    text-align: center;
}

.preloader-table small {
    color: #f7e5aa;
}

.roulette-loader {
    position: relative;
    width: 148px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        conic-gradient(from 0deg, #d92135 0 15deg, #070a12 15deg 30deg, #f8c85a 30deg 45deg, #111624 45deg 60deg);
    border: 10px solid rgba(248, 200, 90, .25);
    box-shadow: inset 0 0 0 12px rgba(0,0,0,.42), 0 22px 70px rgba(0,0,0,.5);
    animation: rouletteSpin 1.1s linear infinite;
}

.roulette-loader::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff7dc;
    box-shadow: 0 0 18px rgba(255,255,255,.85);
    transform: translateX(-50%);
}

.roulette-center {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #080a10;
    border: 1px solid rgba(248, 200, 90, .6);
    color: var(--casino-gold);
    font-weight: 950;
    animation: rouletteCounter 1.1s linear infinite;
}

@keyframes rouletteSpin {
    to { transform: rotate(360deg); }
}

@keyframes rouletteCounter {
    to { transform: rotate(-360deg); }
}

a { color: var(--casino-gold); text-decoration: none; }
a:hover { color: #ffe19b; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.landing-shell {
    align-items: start;
    padding: 22px 18px;
}

.landing-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 96%, rgba(248,200,90,.05) 96% 100%),
        linear-gradient(0deg, transparent 0 96%, rgba(248,200,90,.035) 96% 100%);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 78%);
}

.landing-wrap {
    width: min(1220px, 100%);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.landing-hero {
    min-height: calc(100vh - 132px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: center;
    gap: clamp(22px, 4vw, 54px);
}

.landing-copy-panel,
.landing-visual-panel {
    min-width: 0;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(248, 200, 90, .34);
    border-radius: 999px;
    color: var(--casino-gold);
    background: rgba(248, 200, 90, .1);
    padding: 7px 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.landing-title {
    font-size: clamp(3rem, 5.7vw, 5.65rem);
    line-height: .9;
    font-weight: 950;
    text-shadow: 0 12px 46px rgba(248, 200, 90, .18);
    max-width: 650px;
}

.landing-tagline {
    color: #fff4cf;
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    font-weight: 750;
    margin: 18px 0 8px;
}

.landing-copy {
    max-width: 620px;
    font-size: 1.02rem;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
    max-width: 620px;
}

.landing-stats div,
.feature-tile {
    border: 1px solid rgba(248, 200, 90, .16);
    background: rgba(255, 255, 255, .055);
    border-radius: 8px;
    padding: 15px;
}

.landing-stats strong {
    display: block;
    color: var(--casino-gold);
    font-size: 1.5rem;
}

.landing-stats span {
    color: var(--casino-muted);
    font-size: .86rem;
}

.casino-showcase {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 2.3vw, 30px);
    max-width: 560px;
    margin-left: auto;
}

.casino-showcase::before {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    right: -84px;
    top: -90px;
    background: radial-gradient(circle, rgba(217, 33, 53, .34), rgba(248, 200, 90, .08) 45%, transparent 70%);
}

.showcase-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--casino-muted);
}

.showcase-top strong {
    color: var(--casino-gold);
}

.showcase-wheel {
    width: min(250px, 50vw);
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border: 16px solid rgba(248, 200, 90, .26);
    background:
        conic-gradient(from 0deg, #d92135 0 15deg, #0f1422 15deg 30deg, #f8c85a 30deg 45deg, #151a2a 45deg 60deg);
    box-shadow: inset 0 0 0 18px rgba(0,0,0,.36), 0 25px 70px rgba(0,0,0,.4);
    animation: rouletteSpin 18s linear infinite;
}

.showcase-wheel span {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #080a10;
    border: 1px solid rgba(248, 200, 90, .5);
    color: var(--casino-gold);
    font-size: 1.8rem;
    font-weight: 950;
    animation: rouletteCounter 18s linear infinite;
}

.feature-tile {
    font-weight: 800;
    color: #fff7dc;
}

@media (min-width: 992px) {
    .landing-copy-panel {
        padding-bottom: 18px;
    }
    .casino-showcase {
        transform: translateY(8px);
    }
    .casino-showcase .row {
        --bs-gutter-x: .75rem;
        --bs-gutter-y: .75rem;
    }
    .feature-tile {
        min-height: 56px;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 992px) and (max-height: 760px) {
    .landing-title {
        font-size: clamp(2.75rem, 5vw, 4.65rem);
    }
    .landing-tagline {
        margin-top: 12px;
    }
    .landing-stats {
        margin-top: 18px;
    }
    .showcase-wheel {
        width: 210px;
        border-width: 13px;
        margin-bottom: 16px;
    }
    .showcase-wheel span {
        width: 74px;
        height: 74px;
        font-size: 1.55rem;
    }
    .feature-tile {
        padding: 12px;
        font-size: .93rem;
    }
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--casino-border);
    border-radius: 14px;
    background: linear-gradient(145deg, #231617, #141827);
    color: var(--casino-gold);
    font-weight: 900;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 10px;
    border: 1px solid rgba(248, 200, 90, .18);
}

.gold-text { color: var(--casino-gold); }
.muted-text { color: var(--casino-muted); }

.live-tick {
    color: var(--casino-gold) !important;
    text-shadow: 0 0 18px rgba(248, 200, 90, .55);
    transition: color .2s ease, text-shadow .2s ease;
}

.glass-card {
    background: var(--casino-panel);
    border: 1px solid var(--casino-border);
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.stat-card {
    min-height: 116px;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, border-color .2s ease;
}
.stat-card::before {
    content: "♦";
    position: absolute;
    right: 16px;
    top: 10px;
    color: rgba(217, 33, 53, .28);
    font-size: 2rem;
    line-height: 1;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(248, 200, 90, 0.45);
}
.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -35px auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(248, 200, 90, 0.09);
}

.btn-casino {
    --bs-btn-bg: var(--casino-red);
    --bs-btn-border-color: var(--casino-red);
    --bs-btn-hover-bg: #f03548;
    --bs-btn-hover-border-color: #f03548;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 800;
}

.btn-gold {
    --bs-btn-bg: var(--casino-gold);
    --bs-btn-border-color: var(--casino-gold);
    --bs-btn-hover-bg: #ffda7a;
    --bs-btn-hover-border-color: #ffda7a;
    --bs-btn-color: #17120a;
    --bs-btn-hover-color: #17120a;
    font-weight: 800;
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: var(--casino-gold);
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(248, 200, 90, .12);
}
.form-control::placeholder { color: #858b9c; }
.form-select option { color: #111; }

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 282px;
    background: rgba(6, 8, 14, 0.96);
    border-right: 1px solid var(--casino-border);
    padding: 18px;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    z-index: 1030;
}

.sidebar::after {
    content: "♣ ♦ ♥ ♠";
    display: block;
    margin-top: 18px;
    padding: 14px;
    color: rgba(248, 200, 90, .28);
    border: 1px dashed rgba(248, 200, 90, .16);
    border-radius: 8px;
    text-align: center;
    font-size: 1.4rem;
}

.content {
    margin-left: 282px;
    width: calc(100% - 282px);
    min-height: 100vh;
}

.topbar {
    min-height: 68px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 12, 21, 0.78);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: conic-gradient(#d92135 0 25%, #080a10 25% 50%, #f8c85a 50% 75%, #121722 75%);
    border: 2px solid rgba(248, 200, 90, .45);
    animation: rouletteSpin 2.8s linear infinite;
}

.nav-link-casino {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d6d8df;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 4px;
    font-weight: 700;
}
.nav-link-casino:hover, .nav-link-casino.active {
    color: #121010;
    background: linear-gradient(135deg, var(--casino-gold), #fff0b8);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #f5f5f7;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}
.table thead th {
    color: var(--casino-gold);
    font-size: .78rem;
    text-transform: uppercase;
}

.badge-soft {
    background: rgba(248, 200, 90, 0.13);
    color: var(--casino-gold);
    border: 1px solid rgba(248, 200, 90, 0.2);
}

.glass-alert {
    border: 1px solid rgba(255,255,255,.12);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(248, 200, 90, .4);
}

.payment-box {
    background:
        radial-gradient(circle at top right, rgba(248, 200, 90, .13), transparent 28%),
        radial-gradient(circle at bottom left, rgba(217, 33, 53, .14), transparent 32%),
        var(--casino-panel);
}

.payment-detail-block {
    border-left: 3px solid var(--casino-gold);
    padding-left: 14px;
}

.payment-text {
    color: #fff7df;
    white-space: normal;
}

.payment-qr,
.payment-qr-preview {
    width: min(230px, 100%);
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    border: 2px solid rgba(248, 200, 90, .45);
}

.payment-qr-preview {
    width: 150px;
}

.payment-qr-empty {
    width: min(230px, 100%);
    aspect-ratio: 1;
    display: inline-grid;
    place-items: center;
    color: rgba(248, 200, 90, .45);
    border: 2px dashed rgba(248, 200, 90, .28);
    border-radius: 8px;
    font-size: 3rem;
    font-weight: 900;
}

.dashboard-roi-summary {
    padding: 14px !important;
}

.dashboard-roi-summary .badge {
    font-size: .68rem;
    padding: .24rem .45rem;
}

.dashboard-roi-summary h4 {
    font-size: 1.05rem;
}

.dashboard-roi-summary p,
.dashboard-roi-summary small,
.dashboard-roi-summary span {
    font-size: .82rem;
}

.dashboard-roi-summary strong {
    font-size: .95rem;
}

.dashboard-package-table {
    padding: 10px !important;
}

.dashboard-package-table h5 {
    font-size: 1rem;
    margin-bottom: .45rem;
}

.dashboard-package-table table {
    font-size: .82rem;
}

.dashboard-package-table th,
.dashboard-package-table td {
    padding: .42rem .5rem;
}

@media (max-width: 575.98px) {
    .dashboard-roi-summary h4 {
        font-size: .95rem;
    }
    .dashboard-roi-summary strong,
    .dashboard-roi-summary span,
    .dashboard-roi-summary p,
    .dashboard-package-table table {
        font-size: .74rem;
    }
    .dashboard-package-table th,
    .dashboard-package-table td {
        padding: .45rem;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .landing-hero {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
    }
    .casino-showcase {
        margin-left: 0;
        max-width: none;
    }
    .showcase-wheel {
        width: min(240px, 62vw);
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .sidebar.open { transform: translateX(0); }
    .content {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .auth-shell {
        padding: 14px;
        place-items: start center;
    }
    .landing-nav {
        position: sticky;
        top: 10px;
        z-index: 20;
        margin-bottom: 18px;
    }
    .landing-nav .brand-mark {
        width: 44px;
        height: 44px;
    }
    .landing-hero {
        min-height: 0;
        padding-bottom: 24px;
    }
    .casino-showcase {
        padding: 18px;
    }
    .content .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .topbar {
        gap: 10px;
    }
    .table-responsive {
        border-radius: 8px;
    }
}

@media (max-width: 575.98px) {
    .landing-nav {
        align-items: flex-start;
    }
    .landing-nav .d-flex:last-child {
        flex-direction: column;
    }
    .landing-actions .btn {
        width: 100%;
    }
    .landing-stats {
        grid-template-columns: 1fr;
    }
    .landing-title {
        font-size: clamp(2.45rem, 13vw, 3.5rem);
    }
}
