/* ==========================================================================
   Casino Royale - Gamble & Games Stylesheet (Neon Glassmorphic Casino)
   ========================================================================== */

.casino-hub-container {
    padding: 3.5rem 1.5rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Hero & Jackpot Header --- */
.casino-hero-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.casino-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.casino-hero-header h1 {
    font-size: 2.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.casino-hero-header .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Global Progressive Jackpot Banner */
.jackpot-marquee-card {
    background: linear-gradient(135deg, rgba(30, 27, 20, 0.9) 0%, rgba(18, 24, 38, 0.85) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 20px;
    padding: 1.75rem 2.5rem;
    margin: 0 auto 3.5rem;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15), inset 0 0 25px rgba(245, 158, 11, 0.05);
    flex-wrap: wrap;
    gap: 1.25rem;
}

.jackpot-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.jackpot-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fbbf24;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.6); }
}

.jackpot-text .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fbbf24;
    font-weight: 700;
    display: block;
}

.jackpot-text .amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.jackpot-text .unit {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 500;
}

.jackpot-cta-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.jackpot-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
    color: #000;
}

/* --- Games Grid --- */
.games-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.casino-game-card {
    background: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.casino-game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.casino-game-card.featured-card {
    border-color: rgba(245, 158, 11, 0.35);
}

.casino-game-card.featured-card:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.2);
}

.game-card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.game-card-badge.popular {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.game-card-badge.table-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.game-card-badge.soon {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.game-visual-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.game-visual-icon.slots-icon { color: #f59e0b; }
.game-visual-icon.bj-icon { color: #10b981; }
.game-visual-icon.teaser-icon { color: #64748b; }

.casino-game-card h2 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.casino-game-card .game-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex: 1;
}

.game-feature-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.feature-tag {
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #cbd5e1;
}

.game-action-btn {
    margin-top: auto;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
}

/* --- Recent Activity / Wins Ticker --- */
.recent-activity-section {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
}

.recent-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.recent-activity-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

.activity-item-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.act-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.act-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.act-user-meta strong {
    font-size: 0.9rem;
    color: #fff;
    display: block;
}

.act-user-meta small {
    color: #94a3b8;
    font-size: 0.78rem;
}

.act-win-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
}

/* ==========================================================================
   SLOT MACHINE GAME UI (slots.php)
   ========================================================================== */
.slots-arena-container {
    max-width: 900px;
    margin: 0 auto;
}

.slot-cabinet {
    background: linear-gradient(180deg, #1c202d 0%, #0e121a 100%);
    border: 3px solid rgba(245, 158, 11, 0.4);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 35px rgba(245, 158, 11, 0.08);
    position: relative;
    margin-bottom: 2rem;
}

.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cabinet-title h2 {
    font-size: 1.75rem;
    color: #fff;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.jackpot-display-pill {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.95rem;
}

/* 3-Reel Window */
.reels-viewport {
    background: #090c12;
    border: 4px solid #1a2233;
    border-radius: 18px;
    padding: 1.5rem;
    position: relative;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
    margin-bottom: 2rem;
    overflow: hidden;
}

.center-payline-laser {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(245, 158, 11, 0.85);
    box-shadow: 0 0 12px #f59e0b, 0 0 25px #f59e0b;
    pointer-events: none;
    z-index: 10;
    transform: translateY(-50%);
}

.reels-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 5;
}

.reel-column {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
    text-align: center;
}

.symbol-cell {
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    transition: transform 0.2s ease;
    user-select: none;
}

.symbol-cell.center-cell {
    background: rgba(245, 158, 11, 0.08);
    border-radius: 10px;
    font-size: 3.2rem;
    box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.15);
}

.symbol-cell.win-pulse {
    animation: winBounce 0.6s infinite alternate;
}

@keyframes winBounce {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* Fixed Digital LED Slot Display Screen (Zero layout shift) */
.slot-display-screen {
    background: #06090e;
    border: 2px solid #1e293b;
    border-radius: 14px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.4);
    min-height: 64px;
    box-sizing: border-box;
}

.screen-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.screen-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.screen-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
    font-family: 'Courier New', Courier, monospace, sans-serif;
}

.screen-val.highlight {
    color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.screen-message {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.screen-message.win {
    color: #34d399;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

.screen-message.jackpot {
    color: #fbbf24;
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.7);
}

/* Jackpot Celebration Modal */
.jackpot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.jackpot-modal-content {
    background: linear-gradient(135deg, #1e1b14 0%, #111827 100%);
    border: 3px solid #f59e0b;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.4), inset 0 0 30px rgba(245, 158, 11, 0.1);
    animation: scaleModal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleModal {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.jackpot-modal-trophy {
    font-size: 3.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    animation: trophySpin 3s infinite linear;
}

.jackpot-modal-content h2 {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.jackpot-modal-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}

.jackpot-modal-payout {
    font-size: 2.2rem;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.jackpot-modal-payout small {
    font-size: 1rem;
    color: #cbd5e1;
}

/* Slots Controls */
.slots-controls-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.bet-config-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chips-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.casino-chip {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.7);
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.casino-chip:hover {
    border-color: #f59e0b;
    color: #fff;
    transform: translateY(-2px);
}

.casino-chip.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    border-style: solid;
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.spin-action-box {
    display: flex;
    align-items: center;
}

.spin-btn {
    width: 140px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border: 2px solid #f87171;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    transition: all 0.2s ease;
    font-family: inherit;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.6);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Paytable Collapsible */
.paytable-card {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.75rem;
}

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.paytable-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}

.paytable-item .em { font-size: 1.8rem; display: block; margin-bottom: 0.25rem; }
.paytable-item .mult { font-weight: 800; color: #fbbf24; font-size: 1.05rem; }
.paytable-item .name { font-size: 0.75rem; color: #94a3b8; display: block; }

/* ==========================================================================
   BLACKJACK TABLE GAME UI (blackjack.php)
   ========================================================================== */
.bj-table-container {
    max-width: 1000px;
    margin: 0 auto;
}

.bj-felt-table {
    background: radial-gradient(ellipse at center, #0f3d24 0%, #062113 70%, #03120a 100%);
    border: 10px solid #2d1a0c;
    border-radius: 200px 200px 40px 40px;
    padding: 3rem 2rem 2.5rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(0, 0, 0, 0.6);
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.table-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    pointer-events: none;
    font-size: 1.4rem;
}

.table-watermark small {
    font-size: 0.85rem;
    display: block;
    margin-top: 0.35rem;
}

/* Cards Areas */
.dealer-area, .player-area {
    text-align: center;
    position: relative;
    z-index: 5;
}

.hand-label-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.hand-score-badge {
    background: #f59e0b;
    color: #000;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.8rem;
}

.cards-hand-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    min-height: 120px;
}

/* Playing Card */
.casino-card-item {
    width: 80px;
    height: 116px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    position: relative;
    user-select: none;
    animation: dealCard 0.25s ease-out;
}

@keyframes dealCard {
    from { opacity: 0; transform: translateY(-25px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.casino-card-item.red { color: #dc2626; }
.casino-card-item.black { color: #0f172a; }

.casino-card-item .card-top {
    font-size: 1rem;
    line-height: 1;
}

.casino-card-item .card-center {
    font-size: 1.75rem;
    text-align: center;
    line-height: 1;
}

.casino-card-item .card-bottom {
    font-size: 1rem;
    line-height: 1;
    transform: rotate(180deg);
}

.casino-card-item.hidden-card {
    background: repeating-linear-gradient(45deg, #1e3a8a, #1e3a8a 8px, #172554 8px, #172554 16px);
    border: 2px solid #93c5fd;
    color: transparent;
}

/* Blackjack Controls */
.bj-actions-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-bj {
    min-width: 120px;
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: all 0.2s ease;
}

.btn-bj-hit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.btn-bj-hit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6); }

.btn-bj-stand {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.btn-bj-stand:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6); }

.btn-bj-double {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-bj-double:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6); }

.btn-bj:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Outcome Overlay */
.bj-outcome-banner {
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1.25rem 2rem;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    animation: outcomePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 320px;
}

@keyframes outcomePop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.bj-outcome-banner.win { border-color: #10b981; }
.bj-outcome-banner.loss { border-color: #ef4444; }
.bj-outcome-banner.tie { border-color: #f59e0b; }

.bj-outcome-banner h3 {
    font-size: 1.6rem;
    margin: 0 0 0.5rem 0;
}

.bj-outcome-banner.win h3 { color: #34d399; }
.bj-outcome-banner.loss h3 { color: #f87171; }
.bj-outcome-banner.tie h3 { color: #fbbf24; }

.bj-outcome-banner p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0 0 1.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .jackpot-marquee-card {
        flex-direction: column;
        text-align: center;
    }
    .jackpot-info {
        flex-direction: column;
    }
    .slots-controls-bar {
        grid-template-columns: 1fr;
    }
    .spin-action-box {
        justify-content: center;
    }
    .spin-btn {
        width: 100%;
    }
    .bj-felt-table {
        border-radius: 40px;
        padding: 2rem 1rem;
    }
    .casino-card-item {
        width: 65px;
        height: 95px;
    }
    .crash-controls-panel {
        grid-template-columns: 1fr;
    }
    .btn-crash-action {
        width: 100%;
        height: 60px;
    }
}

/* ==========================================================================
   MULTIPLIER CRASH GAME UI (crash.php)
   ========================================================================== */
.crash-arena-container {
    max-width: 1050px;
    margin: 0 auto;
}

.crash-cabinet {
    background: linear-gradient(180deg, #131926 0%, #0b0f17 100%);
    border: 2px solid rgba(88, 101, 242, 0.35);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 0 35px rgba(88, 101, 242, 0.05);
    position: relative;
    margin-bottom: 2rem;
}

/* History Bar of Past Multipliers */
.crash-history-bar {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
}

.crash-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace, sans-serif;
    letter-spacing: 0.04em;
    white-space: nowrap;
    user-select: none;
    transition: transform 0.2s ease;
}

.crash-pill:hover {
    transform: translateY(-2px);
}

.crash-pill.low {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.crash-pill.mid {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.crash-pill.high {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Crash Viewport Canvas Stage */
.crash-stage-viewport {
    background: #06090e;
    border: 2px solid #1a2233;
    border-radius: 18px;
    position: relative;
    height: 420px;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.95);
    margin-bottom: 1.75rem;
}

#crashCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Central Multiplier HUD */
.crash-hud-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.crash-multiplier-display {
    font-size: 4.8rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.crash-multiplier-display.crashed {
    color: #ef4444;
    text-shadow: 0 0 35px rgba(239, 68, 68, 0.8);
    animation: shakeText 0.4s ease;
}

.crash-multiplier-display.cashed {
    color: #10b981;
    text-shadow: 0 0 35px rgba(16, 185, 129, 0.8);
}

@keyframes shakeText {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.1) rotate(-2deg); }
    40% { transform: scale(1.1) rotate(2deg); }
    60% { transform: scale(1.05) rotate(-1deg); }
    80% { transform: scale(1.05) rotate(1deg); }
}

.crash-status-sub {
    font-size: 1.15rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crash-status-sub.crashed {
    color: #f87171;
}

.crash-status-sub.cashed {
    color: #34d399;
}

/* Crash Controls Bar */
.crash-controls-panel {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.crash-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.crash-input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.crash-input-field {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    padding: 0.7rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    width: 100%;
    box-sizing: border-box;
}

.crash-input-field:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

.btn-crash-action {
    min-width: 220px;
    height: 72px;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-crash-action.state-launch {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}

.btn-crash-action.state-launch:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(234, 88, 12, 0.6);
}

.btn-crash-action.state-cashout {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    animation: cashoutPulse 0.9s infinite alternate;
}

@keyframes cashoutPulse {
    from { transform: scale(1); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
    to { transform: scale(1.03); box-shadow: 0 12px 35px rgba(16, 185, 129, 0.7); }
}

.btn-crash-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
    transform: none;
}

/* =============================================================
   EUROPEAN ROULETTE STYLING
   ============================================================= */
.roulette-arena-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* History Bar */
.roulette-history-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.roulette-history-wrapper .history-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.roulette-history-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    overflow-x: auto;
}

.roulette-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.roulette-pill.red {
    background: #dc2626;
    color: #fff;
    border: 1.5px solid #ef4444;
}

.roulette-pill.black {
    background: #0f172a;
    color: #cbd5e1;
    border: 1.5px solid #334155;
}

.roulette-pill.green {
    background: #059669;
    color: #fff;
    border: 1.5px solid #10b981;
}

/* Upper Arena (Wheel + HUD) */
.roulette-stage-row {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.75rem;
}

@media (max-width: 900px) {
    .roulette-stage-row {
        grid-template-columns: 1fr;
    }
}

.roulette-wheel-card {
    background: #06090e;
    border: 2px solid #1a2233;
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.95);
}

.wheel-pointer-indicator {
    position: absolute;
    top: 14px;
    font-size: 1.6rem;
    color: #f59e0b;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
    animation: pointerGlow 1.5s infinite alternate;
}

@keyframes pointerGlow {
    from { color: #f59e0b; transform: translateY(0); }
    to { color: #fbbf24; transform: translateY(2px); }
}

.roulette-canvas-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 380px;
    height: 380px;
    max-width: 100%;
}

#rouletteCanvas {
    width: 380px;
    height: 380px;
    max-width: 100%;
    border-radius: 50%;
}

.roulette-hud-card {
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hud-inner-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.roulette-result-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.roulette-result-badge.red {
    background: radial-gradient(circle at 35% 35%, #ef4444, #991b1b);
    border: 3px solid #f87171;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
}

.roulette-result-badge.black {
    background: radial-gradient(circle at 35% 35%, #334155, #090d16);
    border: 3px solid #64748b;
    box-shadow: 0 0 30px rgba(100, 116, 139, 0.6);
}

.roulette-result-badge.green {
    background: radial-gradient(circle at 35% 35%, #10b981, #064e3b);
    border: 3px solid #34d399;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.roulette-result-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.roulette-result-sub {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 320px;
}

.roulette-payout-box {
    margin-top: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roulette-payout-box .payout-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6ee7b7;
    font-weight: 700;
}

.roulette-payout-box .payout-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #10b981;
}

/* Betting Felt */
.roulette-felt-container {
    background: radial-gradient(ellipse at 50% 40%, #0d3d27 0%, #062215 100%);
    border: 3px solid #b48325;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 1.75rem;
    user-select: none;
    overflow-x: auto;
}

.felt-watermark {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(212, 175, 55, 0.4);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.roulette-board-table {
    display: grid;
    grid-template-columns: 55px 1fr 50px;
    gap: 4px;
    min-width: 650px;
}

/* Zero */
.bet-spot.bet-zero {
    grid-row: span 3;
    background: #059669;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, transform 0.1s ease;
}

.bet-spot.bet-zero:hover {
    background: #10b981;
}

/* Number Grid */
.roulette-numbers-grid {
    display: grid;
    grid-template-rows: repeat(3, 48px);
    gap: 4px;
}

.numbers-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
}

.bet-spot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    transition: all 0.15s ease;
}

.bet-spot:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.bet-spot:active {
    transform: scale(0.97);
}

.bet-spot.bet-num.red {
    background: #b91c1c;
}

.bet-spot.bet-num.black {
    background: #111827;
}

/* Highlight winning cell */
.bet-spot.winner-cell {
    animation: winCellPulse 0.5s infinite alternate !important;
    z-index: 5;
}

@keyframes winCellPulse {
    from {
        border-color: #fbbf24;
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.8), inset 0 0 10px rgba(251, 191, 36, 0.6);
        transform: scale(1.04);
    }
    to {
        border-color: #ffffff;
        box-shadow: 0 0 25px rgba(255, 255, 255, 1.0), inset 0 0 15px rgba(255, 255, 255, 0.8);
        transform: scale(1.08);
    }
}

/* Columns */
.roulette-cols-wrapper {
    display: grid;
    grid-template-rows: repeat(3, 48px);
    gap: 4px;
}

.bet-spot.bet-col {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fbbf24;
}

/* Dozens */
.roulette-dozens-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-left: 59px;
    margin-right: 54px;
    margin-top: 6px;
    min-width: 545px;
}

.bet-spot.bet-dozen {
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.95rem;
    color: #f1f5f9;
}

.bet-spot.bet-dozen small {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Outside (Even-Money) */
.roulette-outside-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-left: 59px;
    margin-right: 54px;
    margin-top: 6px;
    min-width: 545px;
}

.bet-spot.bet-outside {
    height: 48px;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    color: #f1f5f9;
}

.bet-spot.bet-color-red {
    background: #b91c1c;
    color: #fff;
}

.bet-spot.bet-color-black {
    background: #111827;
    color: #cbd5e1;
}

/* Placed Chip Badge */
.spot-chip-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.placed-chip-badge {
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    border-radius: 14px;
    background: radial-gradient(circle at 35% 35%, #fbbf24 0%, #b45309 100%);
    border: 2px dashed #fff;
    color: #000;
    font-size: 0.72rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    animation: chipDrop 0.15s ease-out;
    white-space: nowrap;
}

@keyframes chipDrop {
    0% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Controls Bar */
.roulette-controls-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.chips-selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chips-selector-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.roulette-actions-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.total-bet-display {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.total-bet-display .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.total-bet-display .amount {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fbbf24;
}

.total-bet-display .amount small {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

.btn-group-felt {
    display: flex;
    gap: 0.5rem;
}

.btn-group-felt .btn {
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-roulette-spin {
    height: 56px;
    padding: 0 2.2rem;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.btn-roulette-spin:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.65);
}

.btn-roulette-spin:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   VIP Lounge, Fortune Wheel & Level Milestones Styles
   ========================================================================== */

/* --- Hub VIP Banner Card --- */
.vip-hub-banner-card {
    background: linear-gradient(135deg, rgba(24, 21, 35, 0.95) 0%, rgba(35, 27, 48, 0.9) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    margin: 0 auto 3.5rem;
    max-width: 1050px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15), inset 0 0 25px rgba(168, 85, 247, 0.05);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.vip-banner-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.vip-crown-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: #fbbf24;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}

.vip-banner-content h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin: 0.4rem 0 0.4rem;
}

.vip-banner-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.vip-tag-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.vip-chip-pill {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.65rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    border-radius: 6px;
}

.vip-scaling-badge {
    font-size: 0.78rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vip-open-btn {
    padding: 0.85rem 1.8rem;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vip-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.65);
    color: #fff;
}

/* Badges for Plinko and Hi-Lo */
.game-card-badge.next-badge {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.game-card-badge.dev-badge {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

/* --- Levels Page Hub Layout --- */
.levels-hub-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 6rem;
}

.levels-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.wallet-pill-live {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.levels-hero-banner {
    background: linear-gradient(135deg, rgba(19, 24, 39, 0.9) 0%, rgba(30, 27, 46, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.levels-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.vip-tier-pill {
    padding: 0.35rem 0.85rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.vip-perk-cap-badge {
    padding: 0.35rem 0.85rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.levels-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #fbbf24 60%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-level-card-inline {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.level-avatar-badge {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.level-avatar-badge .level-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.level-avatar-badge .level-text {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(15, 23, 42, 0.8);
}

.level-details {
    flex: 1;
    min-width: 280px;
}

.level-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.level-tier-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fbbf24;
}

.level-xp-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.level-progress-bar-wrap {
    width: 100%;
    height: 12px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.level-scaling-subinfo {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* --- Tabs Nav --- */
.levels-tabs-nav {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    overflow-x: auto;
}

.levels-tab-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.levels-tab-btn:hover {
    color: #fff;
    background: rgba(30, 41, 59, 0.8);
}

.levels-tab-btn.active {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.tab-indicator-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.tab-indicator-badge.spin-badge-dot {
    background: #10b981;
    color: #042f2e;
    font-weight: 900;
    animation: pulseGlow 2s infinite;
}

.tab-indicator-badge.counter {
    background: #f59e0b;
    color: #0f172a;
    font-weight: 900;
}

/* Tab Panes */
.levels-tab-pane {
    display: none;
}

.levels-tab-pane.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Tab 1: Wheel Stage --- */
.wheel-section-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .wheel-section-layout {
        grid-template-columns: 1fr;
    }
}

.wheel-stage-card {
    background: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.wheel-stage-header {
    text-align: center;
    max-width: 600px;
    margin-bottom: 2rem;
}

.wheel-stage-header h2 {
    font-size: 2rem;
    color: #fff;
    margin: 0.5rem 0;
}

.wheel-stage-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.wheel-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    border-radius: 999px;
}

.wheel-canvas-container {
    position: relative;
    width: 500px;
    height: 500px;
    max-width: 100%;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.wheel-pointer-arrow {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.2rem;
    color: #f59e0b;
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
    animation: pointerHover 1.5s infinite alternate ease-in-out;
}

@keyframes pointerHover {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(3px); }
}

.wheel-center-hub {
    position: absolute;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
    border: 4px solid #f59e0b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
    cursor: pointer;
    z-index: 8;
    transition: transform 0.2s ease;
}

.wheel-center-hub:hover {
    transform: scale(1.06);
}

.hub-spin-text {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #fff;
    margin-top: 2px;
}

.wheel-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.btn-mega-spin {
    width: 100%;
    height: 60px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.25s ease;
}

.btn-mega-spin:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.65);
    color: #000;
}

.btn-mega-spin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #334155;
    color: #94a3b8;
}

.wheel-timer-text {
    font-size: 0.92rem;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wheel-result-banner {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wheel-result-banner.normal-win {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.wheel-result-banner.jackpot-win {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(245, 158, 11, 0.25) 100%);
    border: 2px solid #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.wheel-result-icon {
    font-size: 2rem;
    color: #fbbf24;
}

.wheel-result-info h4 {
    margin: 0 0 0.25rem;
    color: #fff;
    font-size: 1.15rem;
}

.wheel-result-info p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Wheel Info Card (Right Side) */
.wheel-info-card {
    background: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.card-glass-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-glass-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.wheel-perk-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.wheel-slices-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.slice-info-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slice-info-item.jackpot-slice-item {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.12);
}

.slice-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.slice-info-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.slice-name {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
}

.slice-payout {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 800;
}

.wheel-level-progress-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem;
}

.progress-box-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.6rem;
}

/* --- Tab 2: VIP Bank Offers --- */
.bank-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.bank-section-header h2 {
    font-size: 2rem;
    color: #fff;
    margin: 0.5rem 0 0.5rem;
}

.bank-section-header p {
    color: var(--text-muted);
    max-width: 700px;
    font-size: 0.95rem;
    margin: 0;
}

.vip-level-bank-summary {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: right;
}

.vip-level-bank-summary .sublabel {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
}

.vip-level-bank-summary .val {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fbbf24;
}

.vip-bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.vip-vault-card {
    background: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.vip-vault-card:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 101, 242, 0.5);
}

.vip-vault-card.featured-vault {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, rgba(22, 28, 45, 0.85) 0%, rgba(35, 29, 22, 0.8) 100%);
}

.vip-vault-card.featured-vault:hover {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.15);
}

.vault-card-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.vault-card-badge.gold {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.vault-icon {
    font-size: 2.2rem;
    color: #38bdf8;
    margin-bottom: 1rem;
}

.vip-vault-card h3 {
    font-size: 1.35rem;
    color: #fff;
    margin: 0 0 1rem;
}

.vault-rate-display {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vault-rate-display.gold-glow {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: inset 0 0 15px rgba(245, 158, 11, 0.08);
}

.vault-rate-display .rate-num {
    font-size: 2.1rem;
    font-weight: 900;
    color: #10b981;
    display: block;
    line-height: 1.1;
}

.vault-rate-display .rate-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

.vault-perks-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 1.75rem;
    flex: 1;
}

.vault-perks-list div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vault-deposit-trigger {
    width: 100%;
    border-radius: 12px;
    padding: 0.75rem;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* --- Partner Specific Vault & Perks Styles --- */
.partner-active-pill {
    padding: 0.35rem 0.95rem;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #c084fc;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.partner-apply-pill {
    padding: 0.35rem 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.partner-apply-pill:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.vip-vault-card.partner-vault-card {
    border-color: rgba(168, 85, 247, 0.45);
    background: linear-gradient(135deg, rgba(22, 19, 36, 0.9) 0%, rgba(32, 23, 48, 0.85) 100%);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.vip-vault-card.partner-vault-card:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.25);
}

.vip-vault-card.vault-locked-access {
    opacity: 0.75;
}

.vault-card-badge.partner-badge {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.5);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.vault-rate-display.partner-glow {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.12);
}

.partner-btn-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4) !important;
}

.partner-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.65) !important;
}

.vault-locked-partner-btn {
    width: 100%;
    border-radius: 12px;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.partner-mini-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.3rem;
}

.text-purple {
    color: #c084fc !important;
}

/* Active Deposits Section */
.active-deposits-section {
    background: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.empty-deposits-notice {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-deposits-notice i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #475569;
}

.badge-claimable {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #34d399;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.badge-locked {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Tab 3: Level Milestones --- */
.milestones-hero-bar {
    background: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.milestone-summary-left h2 {
    font-size: 1.85rem;
    color: #fff;
    margin: 0.5rem 0 0.5rem;
}

.milestone-summary-left p {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 650px;
    margin: 0;
}

.claim-all-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.claimable-amount-display {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fbbf24;
}

.btn-claim-all {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-claim-all:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-claim-all:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-claim-all.glow {
    animation: pulseGlowGreen 2s infinite;
}

@keyframes pulseGlowGreen {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.7); }
}

/* Milestone Filter Bar */
.milestone-filter-bar {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ms-filter-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ms-filter-btn:hover {
    color: #fff;
    background: rgba(30, 41, 59, 0.8);
}

.ms-filter-btn.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

/* Milestones Grid */
.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.milestone-card {
    background: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.milestone-card:hover {
    transform: translateY(-4px);
}

.milestone-card.ms-claimable {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(20, 32, 42, 0.85) 0%, rgba(16, 45, 35, 0.7) 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.milestone-card.ms-claimed {
    opacity: 0.75;
    border-color: rgba(255, 255, 255, 0.05);
}

.milestone-card.ms-locked {
    opacity: 0.55;
}

.ms-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ms-level-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ms-badge-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}

.ms-card-body {
    flex: 1;
    margin-bottom: 1.25rem;
}

.ms-title {
    font-size: 1.05rem;
    color: #fff;
    margin: 0 0 0.6rem;
}

.ms-reward-box {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.ms-coins-amt {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
}

.ms-coins-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ms-card-action {
    margin-top: auto;
}

.btn-claim-single {
    width: 100%;
    padding: 0.6rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.ms-claimed-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

.ms-locked-tag {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
}

.empty-milestones-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.empty-milestones-notice i {
    font-size: 3rem;
    color: #475569;
    margin-bottom: 1rem;
}

/* --- VIP Modal Overlay --- */
.casino-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.casino-modal-card {
    background: linear-gradient(135deg, #131927 0%, #1a2236 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-header-icon {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.casino-modal-card h3 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 0.5rem;
}

.casino-modal-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.modal-rate-pill {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1.75rem;
}

.modal-rate-pill strong {
    color: #fbbf24;
}

.form-group-casino {
    margin-bottom: 1.5rem;
}

.form-group-casino label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.input-with-max {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-max input {
    width: 100%;
    height: 50px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0 80px 0 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
}

.input-with-max input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.btn-input-max {
    position: absolute;
    right: 8px;
    height: 34px;
    padding: 0 0.9rem;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-input-max:hover {
    background: #f59e0b;
    color: #0f172a;
}

.quick-chip-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-chip {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.4rem 0.2rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-chip:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.payout-calculation-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #94a3b8;
}

.calc-row strong {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.calc-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.6rem;
    margin-top: 0.3rem;
    font-size: 1rem;
    color: #cbd5e1;
}

.calc-row.total strong {
    font-size: 1.15rem;
}

.modal-error-text {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions .btn {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.slice-loading-skeleton {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}




/* ==========================================================================
   PLINKO GALAXY ARENA & CABINET
   ========================================================================== */
.plinko-arena-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.plinko-cabinet {
    background: linear-gradient(180deg, #101726 0%, #090d15 100%);
    border: 2px solid rgba(56, 189, 248, 0.35);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), inset 0 0 35px rgba(56, 189, 248, 0.05);
    position: relative;
    margin-bottom: 2.5rem;
}

.plinko-cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plinko-title-group h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.plinko-title-group small {
    color: #94a3b8;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.plinko-stats-strip {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.plinko-stats-strip .stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.plinko-stats-strip .stat-item .label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.plinko-stats-strip .stat-item .val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.plinko-stats-strip .stat-item .val.highlight {
    color: #38bdf8;
}

/* History Bar */
.plinko-history-bar {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
}

.plinko-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace, sans-serif;
    letter-spacing: 0.04em;
    white-space: nowrap;
    user-select: none;
    transition: transform 0.2s ease;
}

.plinko-pill:hover {
    transform: translateY(-2px);
}

.plinko-pill.low {
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.plinko-pill.mid {
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.plinko-pill.high {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.plinko-pill.ultra {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #f87171;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    animation: pulse 1s infinite alternate;
}

.plinko-pill.new-pop {
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Plinko Stage Viewport */
.plinko-stage-viewport {
    background: radial-gradient(circle at 50% 10%, #0d1527 0%, #060911 100%);
    border: 2px solid #1a253d;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.95);
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
}

#plinkoCanvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Float Win Notification */
.plinko-float-notification {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) scale(0.6);
    background: rgba(15, 23, 42, 0.92);
    border: 2px solid #38bdf8;
    color: #38bdf8;
    padding: 0.45rem 1.4rem;
    border-radius: 999px;
    font-size: 1.25rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 15;
}

.plinko-float-notification.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.plinko-float-notification.gold {
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.5);
}

.plinko-float-notification.green {
    border-color: #34d399;
    color: #34d399;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.4);
}

.plinko-float-notification.muted {
    border-color: #64748b;
    color: #94a3b8;
}

/* Controls Panel */
.plinko-controls-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

.plinko-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plinko-input-field {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    padding: 0.65rem 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    width: 100%;
}

.plinko-input-field:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Risk Selector Group */
.risk-selector-group {
    display: flex;
    gap: 0.4rem;
}

.risk-btn {
    flex: 1;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 10px;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.risk-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #fff;
}

.risk-btn[data-risk="low"].active {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.risk-btn[data-risk="medium"].active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.risk-btn[data-risk="high"].active {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #f87171;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* Rows Selector Group */
.rows-selector-group {
    display: flex;
    gap: 0.35rem;
}

.rows-btn {
    flex: 1;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 8px;
    padding: 0.6rem 0.25rem;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rows-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #fff;
}

.rows-btn.active {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* Drop Ball Action Button */
.plinko-action-group {
    display: flex;
    align-items: flex-end;
}

.btn-plinko-drop {
    height: 52px;
    padding: 0 2rem;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.45);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.btn-plinko-drop:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.6);
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.btn-plinko-drop:active, .btn-plinko-drop.dropping {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.btn-secondary.muted {
    opacity: 0.65;
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

@media (max-width: 900px) {
    .plinko-controls-panel {
        grid-template-columns: 1fr 1fr;
    }
    .plinko-action-group {
        grid-column: span 2;
    }
    .btn-plinko-drop {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .plinko-controls-panel {
        grid-template-columns: 1fr;
    }
    .plinko-action-group {
        grid-column: span 1;
    }
}
