/**
 * Lightning Casino Lobby - Premium Las Vegas Design
 * World-class casino aesthetic with rich animations
 */

/* ===== CUSTOM PROPERTIES FOR LOBBY ===== */
:root {
    /* Casino Gold Palette */
    --casino-gold: #ffd700;
    --casino-gold-dark: #daa520;
    --casino-gold-light: #ffed4a;
    --casino-amber: #f7931a;
    --casino-red: #dc2626;
    --casino-green: #22c55e;

    /* Premium Backgrounds */
    --casino-velvet: linear-gradient(135deg, #1a0a0a 0%, #0d1117 50%, #0a0f18 100%);
    --casino-card-bg: linear-gradient(145deg, #1c2130 0%, #161b22 100%);
    --casino-card-border: rgba(255, 215, 0, 0.15);
    --casino-glow: rgba(255, 215, 0, 0.3);

    /* Spacing & Sizing */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ===== LOBBY LAYOUT ===== */
#casino-lobby {
    background: var(--casino-velvet);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Light Effect */
#casino-lobby::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(247, 147, 26, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.lobby-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== CASINO HEADER ===== */
.casino-header {
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, rgba(22, 27, 34, 0.95) 100%);
    border-bottom: 1px solid var(--casino-card-border);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.casino-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.casino-logo span {
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Balance Display - VIP Style - Centered */
.balance-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(247, 147, 26, 0.05) 100%);
    border: 1px solid var(--casino-card-border);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.balance-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.balance-amount {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.balance-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
}

.header-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.header-right a:hover {
    color: var(--casino-gold);
}

/* ===== QUICK ACTIONS CARD ===== */
/* Matches the slots page design for consistency */
.lobby-actions-card {
    background: var(--casino-card-bg);
    border: 1px solid var(--casino-card-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.lobby-actions-card .action-buttons {
    display: flex;
    gap: 0.75rem;
}

.lobby-actions-card .btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lobby-actions-card .btn-deposit {
    background: linear-gradient(135deg, var(--casino-green), #16a34a);
    color: #fff;
}

.lobby-actions-card .btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.lobby-actions-card .btn-withdraw {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lobby-actions-card .btn-withdraw:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.lobby-actions-card .btn-arrow {
    transition: transform 0.2s;
}

.lobby-actions-card .btn-deposit:hover .btn-arrow {
    transform: translateY(2px);
}

.lobby-actions-card .btn-withdraw:hover .btn-arrow {
    transform: translateY(-2px);
}

.lobby-actions-card .action-history {
    text-align: center;
    margin-top: 0.625rem;
}

.lobby-actions-card .action-history .history-link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.2s;
}

.lobby-actions-card .action-history .history-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== RECOVERY CODE SECTION (Below Games) ===== */
.recovery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
}

.recovery-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.625rem;
}

.recovery-section-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.recovery-section .recovery-code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.recovery-section .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.recovery-section .btn-icon:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--casino-gold);
}

.recovery-section-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ===== GAME CARD - PREMIUM DESIGN ===== */
.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 2rem;
    background: var(--casino-card-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Card Glow Border Effect */
.game-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.4s;
}

/* Spotlight Effect */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.game-card:hover::after {
    opacity: 1;
}

/* LIVE Game Card */
.game-card.game-live {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(145deg, #1f2937 0%, #161b22 100%);
}

.game-card.game-live::before {
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-amber) 50%, var(--casino-gold) 100%);
    opacity: 0.6;
}

.game-card.game-live:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.25),
                0 0 0 1px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-card.game-live:hover::before {
    opacity: 1;
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Coming Soon Card */
.game-card.game-coming-soon {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.08);
}

.game-card.game-coming-soon:hover {
    opacity: 1;
    transform: translateY(-4px);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* ===== GAME STATUS BADGES ===== */
.game-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-status.live {
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-amber) 100%);
    color: #000;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 20px rgba(255, 215, 0, 0.8);
        transform: scale(1.02);
    }
}

.game-status.coming-soon {
    background: rgba(255, 193, 7, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* ===== GAME ICONS - ANIMATED ===== */
.game-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    height: 90px;
    position: relative;
    z-index: 2;
}

/* Slots Icon - Floating Reels */
.slots-icon {
    perspective: 500px;
    gap: 0.5rem;
}

.slots-icon .reel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 2.5rem;
    line-height: 1;
    background: linear-gradient(145deg, rgba(30, 35, 45, 0.9), rgba(20, 25, 32, 0.95));
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slot-float 3s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slots-icon .reel:nth-child(1) { animation-delay: 0s; }
.slots-icon .reel:nth-child(2) { animation-delay: 0.3s; }
.slots-icon .reel:nth-child(3) { animation-delay: 0.6s; }

.game-card.game-live:hover .slots-icon .reel {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 215, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes slot-float {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    25% {
        transform: translateY(-8px) rotateY(5deg);
    }
    75% {
        transform: translateY(-8px) rotateY(-5deg);
    }
}

.game-card.game-live:hover .slots-icon .reel {
    animation: slot-spin 0.3s ease-in-out;
}

@keyframes slot-spin {
    0% { transform: translateY(0); }
    25% { transform: translateY(-30px); }
    50% { transform: translateY(15px); }
    75% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Blackjack Icon - Spread Cards */
.blackjack-icon .card {
    font-size: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.blackjack-icon .card:first-child {
    transform: rotate(-8deg) translateX(8px);
}

.blackjack-icon .card:last-child {
    transform: rotate(8deg) translateX(-8px);
}

.game-card:hover .blackjack-icon .card:first-child {
    transform: rotate(-15deg) translateX(15px) translateY(-5px);
}

.game-card:hover .blackjack-icon .card:last-child {
    transform: rotate(15deg) translateX(-15px) translateY(-5px);
}

/* Roulette Icon - Spinning Wheel */
.roulette-icon .wheel {
    display: inline-block;
    animation: wheel-idle 8s linear infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes wheel-idle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.game-card:hover .roulette-icon .wheel {
    animation: wheel-spin 0.5s ease-out;
}

@keyframes wheel-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(720deg); }
}

/* Dice Icon - Rolling Dice */
.dice-icon .die {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.dice-icon .die:first-child {
    transform: rotate(-5deg);
}

.dice-icon .die:last-child {
    transform: rotate(5deg);
}

.game-card:hover .dice-icon .die:first-child {
    animation: dice-roll-left 0.5s ease-out;
}

.game-card:hover .dice-icon .die:last-child {
    animation: dice-roll-right 0.5s ease-out;
}

@keyframes dice-roll-left {
    0% { transform: rotate(-5deg); }
    25% { transform: rotate(-180deg) translateX(-10px); }
    50% { transform: rotate(-360deg) translateY(-15px); }
    75% { transform: rotate(-540deg) translateX(5px); }
    100% { transform: rotate(-725deg); }
}

@keyframes dice-roll-right {
    0% { transform: rotate(5deg); }
    25% { transform: rotate(180deg) translateX(10px); }
    50% { transform: rotate(360deg) translateY(-15px); }
    75% { transform: rotate(540deg) translateX(-5px); }
    100% { transform: rotate(725deg); }
}

/* ===== GAME TEXT CONTENT ===== */
.game-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.game-live .game-title {
    background: linear-gradient(135deg, #fff 0%, var(--casino-gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.game-coming-soon .game-title {
    color: var(--text-primary);
}

.game-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.game-stats {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.game-stats strong {
    color: var(--casino-gold);
    font-weight: 700;
}

/* ===== GAME CTA BUTTONS ===== */
.game-cta {
    padding: 0.875rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.game-live .game-cta {
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-amber) 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.game-live:hover .game-cta {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
}

.game-coming-soon .game-cta {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.game-coming-soon:hover .game-cta {
    background: rgba(255, 193, 7, 0.1);
    color: #fbbf24;
    border-color: rgba(255, 193, 7, 0.3);
}

/* ===== LOBBY FOOTER ===== */
.lobby-footer {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--casino-gold);
    transform: translateY(-2px);
}

/* ===== COMING SOON MODAL ===== */
/* Note: All styles scoped to .modal-overlay to avoid conflicting with site-wide auth-modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay .modal {
    background: var(--casino-card-bg);
    border: 1px solid var(--casino-card-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-overlay .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-overlay .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.coming-soon-modal {
    text-align: center;
}

.coming-soon-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.coming-soon-modal h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--casino-gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.coming-soon-subtitle {
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.notify-form {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.notify-form p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
}

.form-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--casino-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-amber) 100%);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.notify-success {
    color: var(--casino-green);
    font-weight: 700;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.game-features {
    text-align: left;
}

.game-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-features li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-features li:last-child {
    border-bottom: none;
}

.game-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--casino-gold);
    font-weight: 700;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    background: var(--casino-card-bg);
    border: 1px solid var(--casino-card-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    border-color: var(--casino-green);
    color: var(--casino-green);
}

.toast-notification.error {
    border-color: var(--casino-red);
    color: var(--casino-red);
}

/* ===== WELCOME MODAL ===== */
.welcome-modal {
    text-align: center;
    max-width: 480px;
}

.welcome-header {
    margin-bottom: 1.5rem;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 0.75rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-modal h2 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.recovery-code-display {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.recovery-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.recovery-code-box {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--casino-gold);
    letter-spacing: 0.1em;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    word-break: break-all;
    margin-bottom: 1rem;
}

.btn-copy {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: left;
}

.warning-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.warning-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.warning-text strong {
    color: #f87171;
}

.save-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.save-tip {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .lobby-main {
        padding: 1rem;
    }

    /* Header - Stack on mobile */
    .header-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem;
    }

    .casino-logo {
        font-size: 1rem;
    }

    .balance-display {
        grid-column: 1 / -1;
        grid-row: 1;
        order: -1;
        justify-self: center;
        padding: 0.375rem 1rem;
    }

    .balance-amount {
        font-size: 1.25rem;
    }

    .header-right {
        justify-content: flex-end;
    }

    /* Actions Card */
    .lobby-actions-card {
        margin-bottom: 1rem;
    }

    .lobby-actions-card .btn {
        padding: 0.875rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Recovery Section */
    .recovery-section {
        padding: 1.25rem 0.75rem;
    }

    .recovery-section .recovery-code {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    .recovery-section .btn-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    /* Games Grid */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .game-icon {
        height: 70px;
    }

    .slots-icon .reel {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }

    .game-title {
        font-size: 1.25rem;
    }

    .game-description {
        font-size: 0.85rem;
    }

    .game-stats {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }

    .game-cta {
        padding: 0.75rem 2rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .lobby-footer {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    /* Modals - scoped to avoid affecting auth-modal */
    .modal-overlay .modal {
        padding: 1.5rem;
        margin: 0.75rem;
    }

    .coming-soon-icon {
        font-size: 3.5rem;
    }

    .coming-soon-modal h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .casino-header {
        padding: 0.5rem 0.75rem;
    }

    .header-inner {
        gap: 0.5rem;
    }

    .casino-logo {
        font-size: 0.9rem;
    }

    .balance-display {
        padding: 0.25rem 0.75rem;
    }

    .balance-amount {
        font-size: 1.1rem;
    }

    .balance-label {
        font-size: 0.7rem;
    }

    .header-right {
        gap: 0.75rem;
    }

    .header-right a {
        font-size: 0.75rem;
    }

    .lobby-actions-card .btn {
        padding: 0.75rem 0.375rem;
        font-size: 0.8rem;
        gap: 0.375rem;
    }

    .lobby-actions-card .btn-arrow {
        width: 14px;
        height: 14px;
    }

    .slots-icon .reel {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }

    .game-card {
        padding: 1.5rem 1rem 1.25rem;
    }

    .game-title {
        font-size: 1.15rem;
    }
}

/* ===== LOGIN SCREEN STYLES ===== */
#login-screen {
    display: none !important;
}

#login-screen.ready {
    display: flex !important;
}

.login-container {
    min-height: 100vh;
    background: var(--casino-velvet);
    display: flex;
    flex-direction: column;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

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

.login-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-nav a:hover {
    color: var(--casino-gold);
}

.login-card {
    background: var(--casino-card-bg);
    border: 1px solid var(--casino-card-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.login-card.animate-in {
    animation: slideUp 0.5s ease-out;
}

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

.login-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    }
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* How It Works Steps */
.how-it-works {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.how-it-works .step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    text-align: left;
}

.how-it-works .step:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-amber) 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.step-text strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.step-text span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Login Options */
.login-options {
    margin-bottom: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    width: 100%;
}

.login-btn-primary {
    background: linear-gradient(135deg, var(--casino-gold) 0%, var(--casino-amber) 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.login-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.login-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
}

.login-btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.25rem;
}

.login-btn-text:hover {
    color: var(--casino-gold);
    background: rgba(255, 215, 0, 0.05);
}

/* Dividers */
.divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
}

/* LNURL Help */
.lnurl-help {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.5;
}

.lnurl-help strong {
    color: var(--text-primary);
}

/* LNURL-Auth Section */
#lnurl-auth-section {
    animation: fadeIn 0.3s ease-out;
}

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

.qr-login-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-login-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.qr-container {
    display: inline-flex;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.qr-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
}

.qr-container img {
    width: 200px;
    height: 200px;
    display: block;
}

.qr-tap-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline;
    }
    .desktop-only {
        display: none;
    }
}

.qr-login-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.qr-login-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--casino-green);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.pending {
    background: #fbbf24;
}

.status-dot.success {
    background: var(--casino-green);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Info Box */
.info-box {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-icon {
    flex-shrink: 0;
}

.info-text strong {
    color: var(--text-primary);
}

/* Responsive Login */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-logo {
        font-size: 3rem;
    }

    .qr-container img {
        width: 180px;
        height: 180px;
    }
}

/* ===== UTILITY OVERRIDES ===== */
/* Use consistent colors from main casino.css */
#casino-lobby {
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --border: #30363d;
    --success: #3fb950;
    --danger: #f85149;
}

/* Demo Mode Styles */
.demo-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 15px;
}

.demo-banner-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.demo-banner-cta {
    background: white;
    color: #6366f1;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.demo-banner-cta:hover {
    background: #f0f0ff;
    transform: scale(1.02);
}

.demo-balance {
    color: #a78bfa !important;
    font-style: italic;
    font-size: 1.5rem !important;
}

@media (max-width: 520px) {
    .demo-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .demo-banner-cta {
        width: 100%;
    }
}
