/* ==========================================================================
   MISSISSIPPI QUEEN CASINO DESIGN SYSTEM (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Theme Setup (Mississippi Riverboat - Mahogany & Gold)
   -------------------------------------------------------------------------- */
:root {
    --font-display: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;

    /* Theme colors */
    --color-bg: #0f0505;         /* Dark mahogany velvet backdrop */
    --color-wood: #3b1414;       /* Deep warm polished mahogany */
    --color-gold: #eab308;       /* Polished brass gold */
    --color-gold-glow: rgba(234, 179, 8, 0.35);
    
    --color-crimson: #b91c1c;    /* Velvet crimson red */
    --color-crimson-glow: rgba(185, 28, 28, 0.4);

    --color-copper: #c2410c;     /* Warm antique copper */
    --color-copper-glow: rgba(194, 65, 12, 0.4);

    --color-magenta: #991b1b;    /* Ruby red accent */
    --color-magenta-glow: rgba(153, 27, 27, 0.4);

    --color-purple: #5b21b6;     /* Royal velvet purple */
    --color-purple-glow: rgba(91, 33, 182, 0.4);

    --color-cyan: #fef08a;       /* Warm ivory cream */
    --color-cyan-glow: rgba(254, 240, 138, 0.35);

    --color-emerald: #047857;    /* Classic casino felt green */
    --color-emerald-glow: rgba(4, 120, 87, 0.45);

    --color-card-dark: #1f0b0b;  /* Mahogany tinted card face */
}

/* --------------------------------------------------------------------------
   Resets & Base Styles
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: #f3f4f6;
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Grids & Ambient Lights */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(251, 191, 36, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -3;
    pointer-events: none;
}

.glow-radial-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.glow-radial-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

/* Celebration Canvas */
#celebration-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   App Container & Header
   -------------------------------------------------------------------------- */
.app-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.global-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(44, 14, 14, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    margin-bottom: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Brand header riverboat logo styles */
.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    object-fit: cover;
    animation: boat-float 4s ease-in-out infinite;
}

.hero-logo-img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    object-fit: cover;
    animation: boat-float 5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes boat-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(-1.5deg);
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-neon {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-gold);
    text-shadow: 0 0 8px var(--color-gold-glow);
    letter-spacing: 2px;
}

.brand-accent {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-crimson);
    text-shadow: 0 0 6px var(--color-crimson-glow);
    letter-spacing: 4px;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wallet-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.wallet-display .label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
}

.wallet-display .value {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-weight: 800;
    text-shadow: 0 0 8px var(--color-gold-glow);
}

/* --------------------------------------------------------------------------
   UI Elements & Buttons
   -------------------------------------------------------------------------- */
.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.glass-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

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

.icon-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   Lobby Layout & Views
   -------------------------------------------------------------------------- */
.view-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-panel.active {
    display: block;
    opacity: 1;
}

#lobby-view {
    background: linear-gradient(rgba(17, 8, 8, 0.88), rgba(28, 12, 12, 0.94)), url('assets/riverboat_lobby_bg.jpg') no-repeat center center / cover;
    border-radius: 24px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    margin-bottom: 30px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 20px 0 40px 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffe066 0%, #f59e0b 50%, #b45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-weight: 300;
}

.lobby-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(45, 18, 12, 0.75);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 15px 30px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 10px 25px rgba(0,0,0,0.4);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lobby-section-wrapper {
    margin-bottom: 50px;
}

.lobby-section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-gold);
    text-shadow: 0 0 10px var(--color-gold-glow);
    margin-bottom: 25px;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.2);
    padding-bottom: 10px;
    display: inline-block;
}

/* Game Selection Grid */
.game-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.game-card {
    position: relative;
    background: rgba(40, 16, 12, 0.65);
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.5);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 15px 30px rgba(251, 191, 36, 0.15);
}

/* Background glows for cards */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.01) 0%, transparent 60%);
    pointer-events: none;
    transition: all 0.5s ease;
}

.game-card:hover .card-glow {
    top: -40%;
    left: -40%;
}

.copper-glow { background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 60%); }
.orange-glow { background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 60%); }
.magenta-glow { background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 60%); }
.purple-glow { background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 60%); }
.crimson-glow { background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 60%); }
.emerald-glow { background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 60%); }

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-icon {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

#select-slots .game-icon { color: var(--color-copper); filter: drop-shadow(0 0 10px var(--color-copper-glow)); }
#select-west-slots .game-icon { color: #f97316; filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.4)); }
#select-blackjack .game-icon { color: var(--color-magenta); filter: drop-shadow(0 0 10px var(--color-magenta-glow)); }
#select-poker .game-icon { color: var(--color-purple); filter: drop-shadow(0 0 10px var(--color-purple-glow)); }
#select-ms-stud .game-icon { color: var(--color-crimson); filter: drop-shadow(0 0 10px var(--color-crimson-glow)); }
#select-let-it-ride .game-icon { color: var(--color-emerald); filter: drop-shadow(0 0 10px var(--color-emerald-glow)); }
#select-paigow .game-icon { color: var(--color-purple); filter: drop-shadow(0 0 10px var(--color-purple-glow)); }
#select-pharaoh .game-icon { color: var(--color-copper); filter: drop-shadow(0 0 10px var(--color-copper-glow)); }
#select-craps .game-icon { color: var(--color-emerald); filter: drop-shadow(0 0 10px var(--color-emerald-glow)); }
#select-roulette .game-icon { color: var(--color-crimson); filter: drop-shadow(0 0 10px var(--color-crimson-glow)); }
#select-cajun-slots .game-icon { color: var(--color-emerald); filter: drop-shadow(0 0 10px var(--color-emerald-glow)); }
#select-riverboat-slots .game-icon { color: var(--color-gold); filter: drop-shadow(0 0 10px var(--color-gold-glow)); }
#select-gambler-slots .game-icon { color: var(--color-purple); filter: drop-shadow(0 0 10px var(--color-purple-glow)); }
#select-voodoo-slots .game-icon { color: var(--color-purple); filter: drop-shadow(0 0 10px var(--color-purple-glow)); }
#select-moonshine-slots .game-icon { color: var(--color-copper); filter: drop-shadow(0 0 10px var(--color-copper-glow)); }
#select-cabaret-slots .game-icon { color: var(--color-magenta); filter: drop-shadow(0 0 10px var(--color-magenta-glow)); }
#select-stud-poker .game-icon { color: var(--color-gold); filter: drop-shadow(0 0 10px var(--color-gold-glow)); }

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(2deg);
}

.game-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

#select-slots .game-title { color: var(--color-copper); }
#select-west-slots .game-title { color: #f97316; }
#select-blackjack .game-title { color: var(--color-magenta); }
#select-poker .game-title { color: var(--color-purple); }
#select-ms-stud .game-title { color: var(--color-crimson); }
#select-let-it-ride .game-title { color: var(--color-emerald); }
#select-paigow .game-title { color: var(--color-purple); }
#select-pharaoh .game-title { color: var(--color-copper); }
#select-craps .game-title { color: var(--color-emerald); }
#select-roulette .game-title { color: var(--color-crimson); }
#select-cajun-slots .game-title { color: var(--color-emerald); }
#select-riverboat-slots .game-title { color: var(--color-gold); }
#select-gambler-slots .game-title { color: var(--color-purple); }
#select-voodoo-slots .game-title { color: var(--color-purple); }
#select-moonshine-slots .game-title { color: var(--color-copper); }
#select-cabaret-slots .game-title { color: var(--color-magenta); }
#select-stud-poker .game-title { color: var(--color-gold); }

.game-desc {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.play-btn {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    border: 1px solid;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.25s ease;
    background: transparent;
}

#select-slots .play-btn { border-color: rgba(245,158,11,0.3); color: var(--color-copper); }
#select-west-slots .play-btn { border-color: rgba(249,115,22,0.3); color: #f97316; }
#select-blackjack .play-btn { border-color: rgba(236,72,153,0.3); color: var(--color-magenta); }
#select-poker .play-btn { border-color: rgba(168,85,247,0.3); color: var(--color-purple); }
#select-ms-stud .play-btn { border-color: rgba(220,38,38,0.3); color: var(--color-crimson); }
#select-let-it-ride .play-btn { border-color: rgba(16,185,129,0.3); color: var(--color-emerald); }
#select-paigow .play-btn { border-color: rgba(168,85,247,0.3); color: var(--color-purple); }
#select-pharaoh .play-btn { border-color: rgba(245,158,11,0.3); color: var(--color-copper); }
#select-craps .play-btn { border-color: rgba(16,185,129,0.3); color: var(--color-emerald); }
#select-roulette .play-btn { border-color: rgba(220,38,38,0.3); color: var(--color-crimson); }
#select-cajun-slots .play-btn { border-color: rgba(16,185,129,0.3); color: var(--color-emerald); }
#select-riverboat-slots .play-btn { border-color: rgba(251,191,36,0.3); color: var(--color-gold); }
#select-gambler-slots .play-btn { border-color: rgba(168,85,247,0.3); color: var(--color-purple); }
#select-voodoo-slots .play-btn { border-color: rgba(91,33,182,0.3); color: var(--color-purple); }
#select-moonshine-slots .play-btn { border-color: rgba(194,65,12,0.3); color: var(--color-copper); }
#select-cabaret-slots .play-btn { border-color: rgba(153,27,27,0.3); color: var(--color-magenta); }
#select-stud-poker .play-btn { border-color: rgba(251,191,36,0.3); color: var(--color-gold); }

#select-slots:hover .play-btn { background: var(--color-copper); color: #000; box-shadow: 0 0 15px var(--color-copper-glow); }
#select-west-slots:hover .play-btn { background: #f97316; color: #000; box-shadow: 0 0 15px rgba(249, 115, 22, 0.4); }
#select-blackjack:hover .play-btn { background: var(--color-magenta); color: #000; box-shadow: 0 0 15px var(--color-magenta-glow); }
#select-poker:hover .play-btn { background: var(--color-purple); color: #000; box-shadow: 0 0 15px var(--color-purple-glow); }
#select-ms-stud:hover .play-btn { background: var(--color-crimson); color: #fff; box-shadow: 0 0 15px var(--color-crimson-glow); }
#select-let-it-ride:hover .play-btn { background: var(--color-emerald); color: #000; box-shadow: 0 0 15px var(--color-emerald-glow); }
#select-paigow:hover .play-btn { background: var(--color-purple); color: #000; box-shadow: 0 0 15px var(--color-purple-glow); }
#select-pharaoh:hover .play-btn { background: var(--color-copper); color: #000; box-shadow: 0 0 15px var(--color-copper-glow); }
#select-craps:hover .play-btn { background: var(--color-emerald); color: #000; box-shadow: 0 0 15px var(--color-emerald-glow); }
#select-roulette:hover .play-btn { background: var(--color-crimson); color: #fff; box-shadow: 0 0 15px var(--color-crimson-glow); }
#select-cajun-slots:hover .play-btn { background: var(--color-emerald); color: #000; box-shadow: 0 0 15px var(--color-emerald-glow); }
#select-riverboat-slots:hover .play-btn { background: var(--color-gold); color: #000; box-shadow: 0 0 15px var(--color-gold-glow); }
#select-gambler-slots:hover .play-btn { background: var(--color-purple); color: #000; box-shadow: 0 0 15px var(--color-purple-glow); }
#select-voodoo-slots:hover .play-btn { background: var(--color-purple); color: #fff; box-shadow: 0 0 15px var(--color-purple-glow); }
#select-moonshine-slots:hover .play-btn { background: var(--color-copper); color: #fff; box-shadow: 0 0 15px var(--color-copper-glow); }
#select-cabaret-slots:hover .play-btn { background: var(--color-magenta); color: #fff; box-shadow: 0 0 15px var(--color-magenta-glow); }
#select-stud-poker:hover .play-btn { background: var(--color-gold); color: #000; box-shadow: 0 0 15px var(--color-gold-glow); }

.lobby-footer {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pulse-glow {
    animation: button-pulse 2.5s infinite;
}

@keyframes button-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(251, 191, 36, 0.2);
        border-color: rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
        border-color: var(--color-gold);
    }
}

/* --------------------------------------------------------------------------
   Slots Cabinets & Reels
   -------------------------------------------------------------------------- */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.view-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.copper-text-glow {
    color: var(--color-copper);
    text-shadow: 0 0 10px var(--color-copper-glow);
}

.orange-text-glow {
    color: #f97316;
    text-shadow: 0 0 10px rgba(249,115,22,0.4);
}

.slots-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.slots-cabinet {
    flex: 1 1 540px;
    background: #180505;
    border: 3px solid;
    border-radius: 28px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.slots-cabinet.pirate-theme {
    border-color: var(--color-copper);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.slots-cabinet.west-theme {
    border-color: #f97316;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.15);
}

.cabinet-top-glow {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 4px;
    border-radius: 2px;
}

.copper-glow-bar {
    background: var(--color-copper);
    box-shadow: 0 0 15px var(--color-copper);
}

.orange-glow-bar {
    background: #f97316;
    box-shadow: 0 0 15px #f97316;
}

/* Reels Screen */
.reels-container {
    background: #000;
    border-radius: 18px;
    padding: 20px 25px;
    display: flex;
    gap: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 25px rgba(0,0,0,0.9);
    margin-bottom: 25px;
    overflow: hidden;
}

.payline-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    pointer-events: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.payline-line.line-top { top: calc(20px + 90px / 2); }
.payline-line.line-middle { top: calc(20px + 90px + 90px / 2); }
.payline-line.line-bottom { top: calc(20px + 2 * 90px + 90px / 2); }

.payline-line.active-copper {
    background: var(--color-copper);
    box-shadow: 0 0 8px var(--color-copper), 0 0 15px var(--color-copper-glow);
}

.payline-line.active-orange {
    background: #f97316;
    box-shadow: 0 0 8px #f97316, 0 0 15px rgba(249, 115, 22, 0.6);
}

.payline-indicator {
    position: absolute;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.25);
    z-index: 6;
    pointer-events: none;
    top: calc(20px + 90px + 90px / 2 - 8px);
}
.left-indicator { left: 6px; }
.right-indicator { right: 6px; }

.reel-window {
    flex: 1;
    height: 270px;
    background: #090202;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reel-strip {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.slot-item {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.slot-item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
    transition: transform 0.15s ease;
}

.slot-item img:hover { transform: scale(1.12); }
.slot-item.blur img { filter: blur(2px) opacity(0.8); }

.cabinet-screen {
    background: #000;
    border-radius: 14px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.9);
}

.screen-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.screen-label {
    font-size: 0.65rem;
    color: #4b5563;
    font-weight: 700;
    letter-spacing: 1px;
}

.screen-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
}

.screen-message {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #9ca3af;
    text-align: center;
    max-width: 55%;
    letter-spacing: 1px;
}

.screen-message.winner {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    animation: winner-pulse 1s infinite alternate;
}

@keyframes winner-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.slots-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bet-adjuster {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.adjust-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
}

.adjust-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }

.bet-chips-container {
    display: flex;
    gap: 10px;
}

.bet-chip {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.bet-chip:hover:not(:disabled) {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

#slots-view .bet-chip.active {
    background: var(--color-copper);
    color: #000;
    border-color: var(--color-copper);
    box-shadow: 0 0 10px var(--color-copper-glow);
}

#west-slots-view .bet-chip.active {
    background: #f97316;
    color: #000;
    border-color: #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

.lines-adjuster {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.lines-btn-container {
    display: flex;
    gap: 8px;
}

.line-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
    padding: 6px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.line-btn:hover:not(:disabled) {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

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

/* Theme active states for line-btn */
#slots-view .line-btn.active {
    background: var(--color-copper);
    color: #000;
    border-color: var(--color-copper);
    box-shadow: 0 0 10px var(--color-copper-glow);
}
#west-slots-view .line-btn.active {
    background: #f97316;
    color: #000;
    border-color: #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}
#cajun-slots-view .line-btn.active {
    background: var(--color-emerald);
    color: #000;
    border-color: var(--color-emerald);
    box-shadow: 0 0 10px var(--color-emerald-glow);
}
#riverboat-slots-view .line-btn.active {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold-glow);
}
#gambler-slots-view .line-btn.active {
    background: var(--color-purple);
    color: #000;
    border-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple-glow);
}
#voodoo-slots-view .line-btn.active {
    background: var(--color-purple);
    color: #fff;
    border-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple-glow);
}
#moonshine-slots-view .line-btn.active {
    background: var(--color-copper);
    color: #fff;
    border-color: var(--color-copper);
    box-shadow: 0 0 10px var(--color-copper-glow);
}
#cabaret-slots-view .line-btn.active {
    background: var(--color-magenta);
    color: #fff;
    border-color: var(--color-magenta);
    box-shadow: 0 0 10px var(--color-magenta-glow);
}

.slots-repeat-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.slots-repeat-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.slots-repeat-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.spin-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.slots-spin-btn {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: #000;
    border: 2px solid;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

#slots-view .slots-spin-btn {
    color: var(--color-copper);
    border-color: var(--color-copper);
}

#west-slots-view .slots-spin-btn {
    color: #f97316;
    border-color: #f97316;
}

#slots-view .slots-spin-btn:hover:not(:disabled) {
    background: var(--color-copper);
    color: #000;
    box-shadow: 0 0 20px var(--color-copper);
}

#west-slots-view .slots-spin-btn:hover:not(:disabled) {
    background: #f97316;
    color: #000;
    box-shadow: 0 0 20px #f97316;
}

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

/* Cajun Queen slots overrides */
#cajun-slots-view .bet-chip.active {
    background: var(--color-emerald);
    color: #000;
    border-color: var(--color-emerald);
    box-shadow: 0 0 10px var(--color-emerald-glow);
}
#cajun-slots-view .slots-spin-btn {
    color: var(--color-emerald);
    border-color: var(--color-emerald);
}
#cajun-slots-view .slots-spin-btn:hover:not(:disabled) {
    background: var(--color-emerald);
    color: #000;
    box-shadow: 0 0 20px var(--color-emerald);
}
.slots-cabinet.cajun-theme {
    border-color: var(--color-emerald);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}
.cajun-glow-bar {
    background: var(--color-emerald);
    box-shadow: 0 0 15px var(--color-emerald);
}
.payline-line.active-emerald {
    background: var(--color-emerald);
    box-shadow: 0 0 8px var(--color-emerald), 0 0 15px var(--color-emerald-glow);
}
.cajun-text-glow {
    color: var(--color-emerald);
    text-shadow: 0 0 10px var(--color-emerald-glow);
}

/* Mississippi Queen slots overrides */
#riverboat-slots-view .bet-chip.active {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold-glow);
}
#riverboat-slots-view .slots-spin-btn {
    color: var(--color-gold);
    border-color: var(--color-gold);
}
#riverboat-slots-view .slots-spin-btn:hover:not(:disabled) {
    background: var(--color-gold);
    color: #000;
    box-shadow: 0 0 20px var(--color-gold);
}
.slots-cabinet.riverboat-theme {
    border-color: var(--color-gold);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
}
.riverboat-glow-bar {
    background: var(--color-gold);
    box-shadow: 0 0 15px var(--color-gold);
}
.payline-line.active-gold {
    background: var(--color-gold);
    box-shadow: 0 0 8px var(--color-gold), 0 0 15px var(--color-gold-glow);
}
.riverboat-text-glow {
    color: var(--color-gold);
    text-shadow: 0 0 10px var(--color-gold-glow);
}

/* Riverboat Gambler slots overrides */
#gambler-slots-view .bet-chip.active {
    background: var(--color-purple);
    color: #000;
    border-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple-glow);
}
#gambler-slots-view .slots-spin-btn {
    color: var(--color-purple);
    border-color: var(--color-purple);
}
#gambler-slots-view .slots-spin-btn:hover:not(:disabled) {
    background: var(--color-purple);
    color: #000;
    box-shadow: 0 0 20px var(--color-purple);
}
.slots-cabinet.gambler-theme {
    border-color: var(--color-purple);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}
.gambler-glow-bar {
    background: var(--color-purple);
    box-shadow: 0 0 15px var(--color-purple);
}
.payline-line.active-purple {
    background: var(--color-purple);
    box-shadow: 0 0 8px var(--color-purple), 0 0 15px var(--color-purple-glow);
}
.gambler-text-glow {
    color: var(--color-purple);
    text-shadow: 0 0 10px var(--color-purple-glow);
}
/* Voodoo Magic slots overrides */
#voodoo-slots-view .bet-chip.active {
    background: var(--color-purple);
    color: #fff;
    border-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple-glow);
}
#voodoo-slots-view .slots-spin-btn {
    color: var(--color-purple);
    border-color: var(--color-purple);
}
#voodoo-slots-view .slots-spin-btn:hover:not(:disabled) {
    background: var(--color-purple);
    color: #fff;
    box-shadow: 0 0 20px var(--color-purple);
}
.slots-cabinet.voodoo-theme {
    border-color: var(--color-purple);
    box-shadow: 0 0 30px rgba(91, 33, 182, 0.2);
}
.voodoo-title { color: var(--color-purple); }

/* Bayou Moonshine slots overrides */
#moonshine-slots-view .bet-chip.active {
    background: var(--color-copper);
    color: #fff;
    border-color: var(--color-copper);
    box-shadow: 0 0 10px var(--color-copper-glow);
}
#moonshine-slots-view .slots-spin-btn {
    color: var(--color-copper);
    border-color: var(--color-copper);
}
#moonshine-slots-view .slots-spin-btn:hover:not(:disabled) {
    background: var(--color-copper);
    color: #fff;
    box-shadow: 0 0 20px var(--color-copper);
}
.slots-cabinet.moonshine-theme {
    border-color: var(--color-copper);
    box-shadow: 0 0 30px rgba(194, 65, 12, 0.2);
}
.moonshine-title { color: var(--color-copper); }

/* Showboat Serenade slots overrides */
#cabaret-slots-view .bet-chip.active {
    background: var(--color-magenta);
    color: #fff;
    border-color: var(--color-magenta);
    box-shadow: 0 0 10px var(--color-magenta-glow);
}
#cabaret-slots-view .slots-spin-btn {
    color: var(--color-magenta);
    border-color: var(--color-magenta);
}
#cabaret-slots-view .slots-spin-btn:hover:not(:disabled) {
    background: var(--color-magenta);
    color: #fff;
    box-shadow: 0 0 20px var(--color-magenta);
}
.slots-cabinet.cabaret-theme {
    border-color: var(--color-magenta);
    box-shadow: 0 0 30px rgba(153, 27, 27, 0.2);
}
.cabaret-title { color: var(--color-magenta); }

.auto-spin-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.auto-spin-label input { accent-color: var(--color-gold); }

.paytable-panel {
    flex: 1 1 310px;
    background: rgba(26, 8, 8, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 520px;
    overflow-y: auto;
}

.paytable-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.pirate-title { color: var(--color-copper); }
.orange-title { color: #f97316; }

.paytable-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
}

.pay-symbols { display: inline-flex; align-items: center; }

.pay-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 3px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.pay-multiplier {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   Blackjack Felt Layout & Cards
   -------------------------------------------------------------------------- */
.bj-table-felt {
    background: radial-gradient(circle, #180505 0%, #0a0101 100%);
    border: 6px solid #2c0e0e;
    border-radius: 40px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.table-outline {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 30px;
    pointer-events: none;
}

.table-text-rules {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(251, 191, 36, 0.35);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bj-hand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    position: relative;
}

.hand-header { display: flex; align-items: center; gap: 10px; }

.hand-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
}

.score-badge {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--color-gold);
}

.cards-layout {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-height: 100px;
    width: 100%;
}

.bj-card {
    width: 72px;
    height: 102px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    position: relative;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: card-deal-in 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.15) forwards;
}

@keyframes card-deal-in {
    0% { transform: translateY(-50px) rotate(-15deg); opacity: 0; }
    100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}

.bj-card.suit-black { color: #111827; }
.bj-card.suit-red { color: #dc2626; }

.bj-card.facedown {
    background: radial-gradient(circle, #2c0e0e 0%, #150505 100%) !important;
    border: 2px solid var(--color-gold) !important;
    box-shadow: 0 0 10px var(--color-gold-glow) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.card-back-boat {
    width: 75%;
    height: 75%;
    color: var(--color-gold);
    opacity: 0.38;
    filter: drop-shadow(0 0 5px var(--color-gold-glow));
}

.card-top-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.card-top-left .rank { font-weight: 800; font-size: 1rem; }
.card-top-left .suit { font-size: 0.75rem; }

.card-center {
    font-size: 1.8rem;
    text-align: center;
    align-self: center;
}

.card-bottom-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    transform: rotate(180deg);
}
.card-bottom-right .rank { font-weight: 800; font-size: 1rem; }
.card-bottom-right .suit { font-size: 0.75rem; }

.bj-result-announcer {
    text-align: center;
    margin: 10px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bj-result-announcer span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.player-hands-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.bj-hand-section.active-hand {
    border-radius: 12px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.05);
}

.bj-hand-section.inactive-hand { opacity: 0.5; }

.bj-betting-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.current-bet-container { display: flex; align-items: center; gap: 10px; }

.current-bet-container .label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
    letter-spacing: 1px;
}

.current-bet-container .value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
}

.magenta-text-glow {
    color: var(--color-magenta);
    text-shadow: 0 0 10px var(--color-magenta-glow);
}

.chip-selector-bar { display: flex; gap: 12px; }

.bj-chip-btn, .pk-chip-btn, .ms-chip-btn, .lr-chip-btn, .pg-chip-btn, .ph-chip-btn, .cr-chip-btn, .ro-chip-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.bj-chip-btn:hover:not(:disabled), 
.pk-chip-btn:hover:not(:disabled),
.ms-chip-btn:hover:not(:disabled),
.lr-chip-btn:hover:not(:disabled),
.pg-chip-btn:hover:not(:disabled),
.ph-chip-btn:hover:not(:disabled),
.cr-chip-btn:hover:not(:disabled),
.ro-chip-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.08);
}

.bj-chip-btn:disabled, 
.pk-chip-btn:disabled,
.ms-chip-btn:disabled,
.lr-chip-btn:disabled,
.pg-chip-btn:disabled,
.ph-chip-btn:disabled,
.cr-chip-btn:disabled,
.ro-chip-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chip-inner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px dashed #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.8rem;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.color-10 { background: #3b82f6; border-color: #60a5fa; }
.color-25 { background: #10b981; border-color: #34d399; }
.color-50 { background: #f59e0b; border-color: #fbbf24; }
.color-100 { background: #ef4444; border-color: #f87171; }
.color-500 { background: #8b5cf6; border-color: #a78bfa; }

.bj-controls-bar {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    min-height: 48px;
}

.control-group { display: flex; gap: 15px; }

.action-btn {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    background: #000;
    border: 2px solid;
    padding: 10px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.magenta-btn-glow { border-color: var(--color-magenta); color: var(--color-magenta); }
.magenta-btn-glow:hover:not(:disabled) {
    background: var(--color-magenta);
    color: #000;
    box-shadow: 0 0 15px var(--color-magenta);
}

.bj-controls-bar .hit-btn { border-color: var(--color-emerald); color: var(--color-emerald); }
.bj-controls-bar .hit-btn:hover { background: var(--color-emerald); color: #000; }

.bj-controls-bar .stand-btn { border-color: var(--color-crimson); color: var(--color-crimson); }
.bj-controls-bar .stand-btn:hover { background: var(--color-crimson); color: #fff; }

.bj-controls-bar .double-btn { border-color: var(--color-gold); color: var(--color-gold); }
.bj-controls-bar .double-btn:hover { background: var(--color-gold); color: #000; }

.bj-controls-bar .split-btn { border-color: var(--color-cyan); color: var(--color-cyan); }
.bj-controls-bar .split-btn:hover { background: var(--color-cyan); color: #000; }

.action-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Three Card Poker felt layout
   -------------------------------------------------------------------------- */
.poker-table-felt {
    background: radial-gradient(circle, #10021a 0%, #05000a 100%);
    border: 6px solid #230836;
    border-radius: 40px;
    padding: 30px 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.poker-table-outline {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 30px;
    pointer-events: none;
}

.poker-betting-layout {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.poker-bet-spot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.spot-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #a855f7;
    letter-spacing: 1px;
}

.poker-bet-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px dashed rgba(168, 85, 247, 0.3);
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.poker-bet-circle.active-spot {
    border-color: var(--color-gold);
    box-shadow: 0 0 12px var(--color-gold-glow);
    background: rgba(251, 191, 36, 0.05);
}

.poker-bet-circle.has-bet {
    border-style: solid;
    border-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple-glow);
    background: rgba(168, 85, 247, 0.1);
}

.poker-bet-circle.disabled { opacity: 0.2; cursor: not-allowed; }

.poker-bet-circle .spot-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.85rem;
    color: #fff;
}

.poker-bet-selector-modes {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.poker-bet-selector-modes .label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 700;
}

.mode-toggles { display: flex; gap: 8px; }

.mode-toggles .mode-btn { padding: 6px 12px; font-size: 0.75rem; }

.mode-toggles .mode-btn.active {
    border-color: var(--color-purple);
    color: var(--color-purple);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 10px var(--color-purple-glow);
}

.purple-text-glow {
    color: var(--color-purple);
    text-shadow: 0 0 10px var(--color-purple-glow);
}

.purple-btn-glow { border-color: var(--color-purple); color: var(--color-purple); }
.purple-btn-glow:hover:not(:disabled) {
    background: var(--color-purple);
    color: #000;
    box-shadow: 0 0 15px var(--color-purple);
}

/* --------------------------------------------------------------------------
   Mississippi Stud felt table layout
   -------------------------------------------------------------------------- */
.ms-table-felt {
    background: radial-gradient(circle, #1e0303 0%, #0d0101 100%);
    border: 6px solid #3d0c0c;
    border-radius: 40px;
    padding: 25px 35px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    min-height: 610px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ms-table-outline {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-radius: 30px;
    pointer-events: none;
}

.ms-spots-grid { gap: 30px; }
.ms-spots-grid .spot-label { color: var(--color-crimson); }

.ms-spots-grid .poker-bet-circle.has-bet {
    border-color: var(--color-crimson);
    box-shadow: 0 0 10px var(--color-crimson-glow);
    background: rgba(220, 38, 38, 0.1);
}

.crimson-text-glow {
    color: var(--color-crimson);
    text-shadow: 0 0 10px var(--color-crimson-glow);
}

.crimson-btn-glow { border-color: var(--color-crimson); color: var(--color-crimson); }
.crimson-btn-glow:hover:not(:disabled) {
    background: var(--color-crimson);
    color: #fff;
    box-shadow: 0 0 15px var(--color-crimson);
}

/* --------------------------------------------------------------------------
   Let It Ride felt table layout
   -------------------------------------------------------------------------- */
.lr-table-felt {
    background: radial-gradient(circle, #022c22 0%, #01110e 100%);
    border: 6px solid #064e3b;
    border-radius: 40px;
    padding: 25px 35px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    min-height: 610px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lr-table-outline {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 30px;
    pointer-events: none;
}

.lr-spots-grid { gap: 30px; }
.lr-spots-grid .spot-label { color: var(--color-emerald); }

.lr-spots-grid .poker-bet-circle.has-bet {
    border-color: var(--color-emerald);
    box-shadow: 0 0 10px var(--color-emerald-glow);
    background: rgba(16, 185, 129, 0.1);
}

.emerald-text-glow {
    color: var(--color-emerald);
    text-shadow: 0 0 10px var(--color-emerald-glow);
}

.emerald-btn-glow { border-color: var(--color-emerald); color: var(--color-emerald); }
.emerald-btn-glow:hover:not(:disabled) {
    background: var(--color-emerald);
    color: #000;
    box-shadow: 0 0 15px var(--color-emerald);
}

/* --------------------------------------------------------------------------
   Pai Gow Poker felt table styling
   -------------------------------------------------------------------------- */
.pg-table-felt {
    background: radial-gradient(circle, #150220 0%, #06000b 100%);
    border: 6px solid #280a3c;
    border-radius: 40px;
    padding: 30px 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pg-table-outline {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 30px;
    pointer-events: none;
}

.pg-dealer-area, .pg-player-area {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 10px 0;
}
.pg-player-area { flex-direction: column; align-items: center; }

.pg-subhand {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 220px;
}

.pg-split-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    width: 100%;
}

.subhand-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-purple);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--color-purple-glow);
}

.cards-layout.small-cards { min-height: 85px; }

.cards-layout.small-cards .bj-card {
    width: 58px;
    height: 82px;
    padding: 6px;
}
.cards-layout.small-cards .bj-card .card-center { font-size: 1.4rem; }

.pg-card-pool-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.pg-card-pool-section .bj-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg-card-pool-section .bj-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 16px rgba(168, 85, 247, 0.3);
}

.pg-card-pool-section .bj-card.selected-low {
    border: 2px solid var(--color-cyan);
    box-shadow: 0 0 12px var(--color-cyan-glow);
    transform: translateY(-12px);
}

/* --------------------------------------------------------------------------
   Pharaoh Faro felt table styling
   -------------------------------------------------------------------------- */
.ph-table-felt {
    background: radial-gradient(circle, #200d02 0%, #0c0400 100%);
    border: 6px solid #4a1f05;
    border-radius: 40px;
    padding: 30px 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ph-table-outline {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 30px;
    pointer-events: none;
}

.ph-draw-zone {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 15px 0;
}

.ph-pile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.pile-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-copper);
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--color-copper-glow);
}

.ph-board-layout {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.1);
    margin: 15px 0;
}

.ph-rank-box {
    background: #110502;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.ph-rank-box:hover {
    border-color: var(--color-copper);
    background: #1d0903;
    transform: translateY(-2px);
}

.ph-rank-box.has-bet {
    border-color: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold-glow);
}

.rank-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #f3f4f6;
}

.bet-chip-placed {
    background: var(--color-gold);
    color: #000;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 6px;
    display: none;
    position: absolute;
    bottom: -6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
}

.ph-rank-box.has-bet .bet-chip-placed { display: block; }

/* --------------------------------------------------------------------------
   Riverboat Craps felt & dice styling
   -------------------------------------------------------------------------- */
.cr-table-felt {
    background: radial-gradient(circle, #022013 0%, #000d07 100%);
    border: 6px solid #063c24;
    border-radius: 40px;
    padding: 35px 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cr-table-outline {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 30px;
    pointer-events: none;
}

.cr-dice-zone {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.dice-wrapper { display: flex; gap: 25px; }

.die {
    width: 60px;
    height: 60px;
    perspective: 1000px;
}

.die-face {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.die.rolling {
    animation: roll-spin 0.6s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

@keyframes roll-spin {
    0% { transform: rotate(0deg) scale(0.85); }
    100% { transform: rotate(360deg) scale(1.15); }
}

/* Detailed Board Layout grids */
.cr-board-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0;
}

.cr-place-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.cr-place-box {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 2px dashed rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cr-place-box:hover {
    border-color: var(--color-emerald);
    background: rgba(16,185,129,0.05);
}
.cr-place-box.active-spot { border-color: var(--color-gold); }
.cr-place-box.has-bet { border-style: solid; border-color: var(--color-emerald); }

.cr-place-box .spot-odds {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}
.cr-place-box .bet-chip-placed { display: none; margin-top: 4px; }
.cr-place-box.has-bet .bet-chip-placed { display: inline-block; }

.cr-main-felt-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 15px;
}

.cr-left-felt {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cr-left-felt .cr-bet-box {
    flex: 1;
    max-width: none;
    padding: 12px;
}

.cr-right-felt {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
}

.cr-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-emerald);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    padding-bottom: 2px;
}

.cr-hardways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.cr-hard-box, .cr-prop-box {
    background: rgba(0,0,0,0.3);
    border: 1.5px dashed rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.cr-hard-box:hover, .cr-prop-box:hover {
    border-color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.05);
}
.cr-hard-box.active-spot, .cr-prop-box.active-spot { border-color: var(--color-gold); }
.cr-hard-box.has-bet, .cr-prop-box.has-bet { border-style: solid; border-color: var(--color-emerald); }

.cr-hard-box .spot-odds, .cr-prop-box .spot-odds {
    display: block;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.cr-hard-box .bet-chip-placed, .cr-prop-box .bet-chip-placed { display: none; margin-top: 3px; }
.cr-hard-box.has-bet .bet-chip-placed, .cr-prop-box.has-bet .bet-chip-placed { display: inline-block; }

.cr-props-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.cr-bottom-felt {
    display: flex;
    gap: 12px;
}
.cr-bottom-felt .cr-bet-box {
    flex: 1;
    max-width: none;
    padding: 12px;
}

.cr-bet-box {
    background: rgba(0, 0, 0, 0.35);
    border: 2px dashed rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.cr-bet-box:hover {
    border-color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.05);
}

.cr-bet-box.active-spot {
    border-color: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold-glow);
    background: rgba(251, 191, 36, 0.03);
}

.cr-bet-box.has-bet {
    border-style: solid;
    border-color: var(--color-emerald);
    box-shadow: 0 0 12px var(--color-emerald-glow);
    background: rgba(16, 185, 129, 0.06);
}

.spot-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.spot-subtitle {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
    margin-bottom: 6px;
}

.cr-bet-box .bet-chip-placed {
    position: absolute;
    bottom: 4px;
}

.cr-bet-selector-modes {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}
.cr-bet-selector-modes .label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Queen's Roulette felt table & wheel styling
   -------------------------------------------------------------------------- */
.ro-layout {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ro-wheel-container {
    position: relative;
    background: #1e0606;
    border: 6px solid #b45309;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    color: #fbbf24;
    z-index: 10;
    filter: drop-shadow(0 0 5px var(--color-gold-glow));
}

#ro-wheel-ring {
    transform-origin: 150px 150px;
}

.ro-ball {
    position: absolute;
    top: calc(50% - 7px);
    left: calc(50% - 7px);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,255,255,0.8), inset -2px -2px 4px rgba(0,0,0,0.4);
    z-index: 8;
    transition: all 7s cubic-bezier(0.08, 0.75, 0.1, 1);
}

.ro-felt-container {
    flex: 1 1 560px;
}

.ro-table-felt {
    background: radial-gradient(circle, #1a0404 0%, #080101 100%);
    border: 6px solid #450a0a;
    border-radius: 30px;
    padding: 25px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ro-table-outline {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-radius: 22px;
    pointer-events: none;
}

.ro-grid-wrapper {
    display: flex;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.4);
}

.ro-zero-box {
    width: 60px;
    background: #10b981;
    border-right: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.ro-zero-box:hover { background: #059669; }

.ro-numbers-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 140px;
}

.ro-number-box {
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    color: #fff;
}

.ro-number-box:hover {
    opacity: 0.85;
    transform: scale(1.05);
    z-index: 5;
}

.ro-number-box.red-num { background: #dc2626; border-color: rgba(220,38,38,0.2); }
.ro-number-box.black-num { background: #111827; border-color: rgba(255,255,255,0.03); }

.ro-outside-row {
    display: flex;
    gap: 10px;
}

.ro-outside-box {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.ro-outside-box:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

.ro-outside-box.active-spot {
    border-color: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold-glow);
}

.ro-outside-box.has-bet .bet-chip-placed, 
.ro-zero-box.has-bet .bet-chip-placed, 
.ro-number-box.has-bet .bet-chip-placed {
    display: block;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.ro-bet-selector-modes {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}
.ro-bet-selector-modes .label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 700;
}

/* Card Image Backgrounds */
.card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 0;
}

.game-card:hover .card-image-bg {
    opacity: 0.45;
    transform: scale(1.05);
}

.game-card .card-content {
    position: relative;
    z-index: 1;
}

/* Global How to Play Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1f0b0b;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 30px var(--color-gold-glow), inset 0 0 20px rgba(0,0,0,0.8);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    font-family: var(--font-body);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--color-gold);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--color-gold-glow);
}

.modal-body {
    line-height: 1.6;
    color: #e5e7eb;
}

.modal-body h3 {
    font-family: var(--font-display);
    color: var(--color-gold);
    margin: 20px 0 10px 0;
    font-size: 1.15rem;
}

.modal-body p, .modal-body ul {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.modal-body li {
    margin-left: 20px;
    margin-bottom: 8px;
}

/* ==========================================================================
   Five Card Stud Poker Styling
   ========================================================================== */
#stud-poker-view {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

/* Avatar Selection overlay */
.avatar-select-overlay {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    width: 100%;
    max-width: 900px;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 35px var(--color-gold-glow);
    backdrop-filter: blur(10px);
}

.avatar-select-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.select-box-title {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 0 10px var(--color-gold-glow);
}

.select-box-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: center;
    margin-top: -10px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    margin: 15px 0;
}

.avatar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.avatar-card:hover {
    transform: translateY(-5px);
    background: rgba(251, 191, 36, 0.06);
    border-color: var(--color-gold);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.15);
}

.avatar-card.selected {
    border: 2px solid var(--color-gold);
    background: rgba(251, 191, 36, 0.12);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.avatar-card .avatar-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.avatar-card:hover .avatar-emoji {
    transform: scale(1.15);
}

.avatar-card .avatar-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.25s ease;
}

.avatar-card .avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-card:hover .avatar-image {
    transform: scale(1.15);
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.avatar-card .avatar-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}

.avatar-card .avatar-bio {
    font-size: 0.7rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.2;
}

.avatar-select-controls {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    justify-content: center;
    margin-top: 10px;
}

.stud-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.stud-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold-glow);
}

/* Felt table */
.stud-table-felt {
    background: radial-gradient(circle, #075a31 0%, #03361c 100%);
    border: 12px solid #3c2415;
    border-radius: 60px;
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9), inset 0 0 40px rgba(0,0,0,0.7);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px 0;
}

.stud-pot-display {
    position: absolute;
    top: 25px;
    right: 35px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    padding: 8px 16px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-gold);
    box-shadow: 0 0 12px var(--color-gold-glow);
    z-index: 10;
}

.stud-dealer-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: -10px;
    z-index: 5;
}

.stud-dealer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dealer-avatar {
    background: linear-gradient(135deg, #1f2937, #111827) !important;
    border-color: #374151 !important;
}

.stud-announcer {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-gold);
    text-shadow: 0 0 8px var(--color-gold-glow);
    text-transform: uppercase;
    text-align: center;
    background: rgba(0,0,0,0.4);
    padding: 6px 20px;
    border-radius: 20px;
    min-width: 280px;
}

/* Seating grid */
.stud-players-layout {
    position: relative;
    height: 380px;
    width: 100%;
}

.stud-seat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 170px;
    transition: all 0.3s ease;
}

/* Seat locations */
#stud-seat-0 { top: 42%; left: 4%; }
#stud-seat-1 { top: 12%; left: 20%; }
#stud-seat-2 { bottom: 2%; left: 50%; transform: translateX(-50%); }
#stud-seat-3 { top: 12%; right: 20%; }
#stud-seat-4 { top: 42%; right: 4%; }

.stud-player-badge {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 6px 12px 6px 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    position: relative;
}

.user-seat .stud-player-badge {
    border-color: var(--color-gold);
    box-shadow: 0 0 12px var(--color-gold-glow);
}

.stud-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border: 2px solid #fff;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2);
    overflow: hidden;
}

.stud-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.stud-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.stud-name {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.stud-chips {
    font-size: 0.7rem;
    color: var(--color-gold);
    font-weight: bold;
}

.stud-bet-badge {
    position: absolute;
    top: -12px;
    right: 10px;
    background: #d97706;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
}

.stud-hand {
    display: flex;
    gap: 4px;
    justify-content: center;
    min-height: 80px;
    width: 100%;
}

.stud-hand .bj-card {
    width: 54px;
    height: 76px;
    padding: 5px;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.3);
    transition: all 0.25s ease;
}

.stud-hand .bj-card.facedown {
    transform: scale(0.98);
}

.stud-hand .bj-card .card-center {
    font-size: 1.3rem;
}

.stud-score-badge {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Faded/Folded Player Look */
.stud-seat.folded {
    opacity: 0.35;
}
.stud-seat.folded .stud-hand {
    filter: grayscale(1);
}

/* Controls */
.stud-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.6);
    border-radius: 16px;
    padding: 12px 25px;
    border: 1px solid rgba(251, 191, 36, 0.15);
    z-index: 5;
}

.stud-bet-adjuster {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stud-bet-adjuster .adjust-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stud-bet-adjuster .adjust-btn:hover {
    background: var(--color-gold);
    color: #000;
    box-shadow: 0 0 8px var(--color-gold-glow);
}

.stud-bet-value {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stud-bet-value .label {
    font-size: 0.6rem;
    color: #9ca3af;
    font-weight: bold;
}

.stud-bet-value .value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold);
    font-weight: 800;
}

.stud-action-buttons {
    display: flex;
    gap: 12px;
}

/* Gold glow button style */
.gold-glow-btn {
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.gold-glow-btn:hover:not(:disabled) {
    background: var(--color-gold);
    color: #000;
    box-shadow: 0 0 15px var(--color-gold);
}

/* ==========================================================================
   Header Auth & Store Plus buttons
   ========================================================================== */
.header-auth-btn {
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 242, 254, 0.05);
    cursor: pointer;
}
.header-auth-btn:hover {
    background: #00f2fe;
    color: #000;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
    border-color: #00f2fe;
}
.header-auth-btn.logged-in {
    border-color: rgba(251, 191, 36, 0.4);
    color: var(--color-gold);
    background: rgba(251, 191, 36, 0.05);
}
.header-auth-btn.logged-in:hover {
    background: var(--color-gold);
    color: #000;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
    border-color: var(--color-gold);
}

.store-plus-btn {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border: none;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 0 6px var(--color-gold-glow);
}
.store-plus-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--color-gold);
}

/* ==========================================================================
   Lobby Tabs Selector
   ========================================================================== */
.lobby-tabs-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}
.lobby-tab {
    background: none;
    border: none;
    color: #9ca3af;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.25s ease;
    position: relative;
}
.lobby-tab:hover {
    color: #fff;
}
.lobby-tab.active {
    color: var(--color-gold);
    text-shadow: 0 0 10px var(--color-gold-glow);
}
.lobby-tab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-gold);
    box-shadow: 0 0 8px var(--color-gold);
}

/* ==========================================================================
   Account Dashboard & Career Stats
   ========================================================================== */
.account-dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 10px;
    animation: fadeIn 0.4s ease;
}
.dashboard-profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}
.profile-avatar-large {
    font-size: 3rem;
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 2px solid rgba(255, 255, 255, 0.15);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-details {
    flex: 1;
    text-align: left;
}
.profile-details h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #fff;
}
.profile-details p {
    font-size: 0.8rem;
    color: #9ca3af;
}
.status-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.status-badge.guest {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.25);
}
.status-badge.registered {
    background: rgba(251, 191, 36, 0.1);
    color: var(--color-gold);
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.15);
}
.logout-btn {
    background: none;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}
.logout-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* ==========================================================================
   Ledger Table
   ========================================================================== */
.ledger-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}
.ledger-wrapper h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    text-align: left;
}
.ledger-table-container {
    overflow-x: auto;
}
.ledger-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.8rem;
}
.ledger-table th {
    font-family: var(--font-display);
    color: #9ca3af;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    font-weight: bold;
}
.ledger-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
}
.ledger-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}
.ledger-table .empty-cell {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    font-style: italic;
}
.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: bold;
}
.status-pill.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Auth Modal Elements
   ========================================================================== */
.auth-modal-content {
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.25);
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    backdrop-filter: blur(10px);
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}
.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: #9ca3af;
    padding: 10px 0;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.auth-tab:hover {
    color: #fff;
}
.auth-tab.active {
    color: #00f2fe;
    border-bottom: 2px solid #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.input-group label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #9ca3af;
}
.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.input-group input:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}
.auth-submit-btn {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    border: none;
    color: #000;
    font-family: var(--font-display);
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 10px;
}
.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}
.auth-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
}

/* ==========================================================================
   Store Modal Casing & Layout
   ========================================================================== */
.store-modal-content {
    background: rgba(10, 12, 22, 0.97);
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 45px rgba(251, 191, 36, 0.25);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 900px;
    width: 95%;
    position: relative;
    backdrop-filter: blur(10px);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}
.store-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-gold);
    text-shadow: 0 0 15px var(--color-gold-glow);
    margin-bottom: 5px;
}
.store-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 30px;
}
.store-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}
.store-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.store-card:hover {
    transform: translateY(-8px);
    background: rgba(251, 191, 36, 0.05);
    border-color: var(--color-gold);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.15);
}
.store-card.popular {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.04);
}
.store-card.popular:hover {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}
.store-card.value {
    border-color: rgba(236, 72, 153, 0.4);
    background: rgba(236, 72, 153, 0.03);
}
.store-card.value:hover {
    border-color: #ec4899;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}
.store-card-badge {
    position: absolute;
    top: -10px;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
}
.store-card-badge.neon-cyan {
    background: #00f2fe;
    color: #000;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}
.store-card-badge.neon-gold {
    background: var(--color-gold);
    color: #000;
    box-shadow: 0 0 8px var(--color-gold-glow);
}
.store-card-badge.neon-magenta {
    background: #ec4899;
    color: #fff;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}
.store-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}
.store-card h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
    height: 28px;
    display: flex;
    align-items: center;
}
.store-card-credits {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-gold);
    font-weight: bold;
    margin-bottom: 15px;
}
.store-buy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}
.store-card:hover .store-buy-btn {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}
.store-card.value:hover .store-buy-btn {
    background: #ec4899;
    color: #fff;
    border-color: #ec4899;
}

/* ==========================================================================
   Checkout Layout
   ========================================================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    text-align: left;
    margin-top: 15px;
}
.back-link {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: bold;
    padding: 5px 0;
    margin-bottom: 15px;
    display: block;
    transition: color 0.2s ease;
}
.back-link:hover {
    color: var(--color-gold);
}
.order-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.order-summary h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #9ca3af;
}
.summary-row.total {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.1rem;
}
.summary-row.total span:last-child {
    color: var(--color-gold);
}
.secure-seals {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.65rem;
    color: #6b7280;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.checkout-form h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.1rem;
}
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.pay-btn {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border: none;
    color: #000;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 10px var(--color-gold-glow);
    margin-top: 10px;
}
.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--color-gold);
}
.checkout-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
}

/* ==========================================================================
   Processing & success states
   ========================================================================== */
.processing-container {
    padding: 50px 20px;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(251, 191, 36, 0.1);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 25px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.processing-container h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.processing-container p {
    color: #9ca3af;
    font-size: 0.85rem;
}

.success-container {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.success-container h2 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 6px;
}
.success-msg {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 25px;
}
.receipt-ticket {
    background: #fff;
    color: #000;
    border-radius: 12px;
    padding: 20px;
    width: 350px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-bottom: 25px;
    border: 1px solid #ddd;
    position: relative;
}
.receipt-ticket::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(-45deg, transparent 4px, #fff 0), linear-gradient(45deg, transparent 4px, #fff 0);
    background-size: 8px 8px;
}
.receipt-header {
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px dashed #000;
    padding-bottom: 10px;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.receipt-row.total {
    border-top: 1px dashed #000;
    padding-top: 8px;
    margin-top: 10px;
    font-weight: bold;
}
.receipt-footer {
    border-top: 2px dashed #000;
    margin-top: 15px;
    padding-top: 10px;
    text-align: center;
    font-weight: bold;
}
.receipt-done-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--font-display);
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.receipt-done-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Mobile Portrait Screen Lock
   ========================================================================== */
#portrait-lock-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0404;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.lock-content {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.lock-icon {
    font-size: 5rem;
    animation: phone-tilt 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--color-cyan));
}

#portrait-lock-overlay h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    margin: 0;
}

#portrait-lock-overlay p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@keyframes phone-tilt {
    0% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(0deg);
    }
    70% {
        transform: rotate(-90deg);
    }
    100% {
        transform: rotate(-90deg);
    }
}

/* Enable lock overlay in portrait mobile viewports */
@media (max-width: 1024px) and (orientation: portrait) {
    #portrait-lock-overlay {
        display: flex;
    }
    .app-container {
        display: none !important;
    }
}
