@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;700&display=swap');

:root {
    --sidebar-width: 250px;
}

body.sidebar-collapsed {
    --sidebar-width: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0824 100%);
    color: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #d4af37;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Removed padding-left, border-left, margin-left */
}

@keyframes glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 20px rgba(124, 58, 237, 0.5)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 40px rgba(212, 175, 55, 0.8)); }
}

.disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.login-card {
    background: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #2d2d3d;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid #2d2d3d;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 16px;
    margin: 10px 0;
}

input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.btn {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
}

.game-container {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    margin-top: 30px;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);  /* Glass morphism */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);  /* Gold accent */
    z-index: 10000; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
/* Header right section */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}
.logo-mini {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #d4af37, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 15px;
    background: rgba(10, 10, 15, 0.5);
    border-radius: 25px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.player-name {
    color: #94a3b8;
    font-size: 0.9rem;
}

.player-name span {
    color: #f1f5f9;
    font-weight: bold;
    font-size: 1rem;
}

.header-right {
    display: flex;
    gap: 15px;
}

.currency-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.currency-badge:hover {
    transform: scale(1.05);
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.currency-icon {
    font-size: 1.2rem;
}

.currency-amount {
    font-weight: bold;
    font-size: 1.1rem;
    color: #d4af37;
}



#gameScreen .game-container {
    margin-top: 80px;
}

.panel {
    background: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #2d2d3d;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stats-display {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.stats-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.currency {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.currency-item {
    background: rgba(10, 10, 15, 0.8);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid #2d2d3d;
    transition: all 0.3s;
}

.currency-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.currency-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d4af37;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.box-card {
    background: linear-gradient(135deg, #13131a, #1a1330);
    border: 2px solid #2d2d3d;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.box-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
}

.box-card:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.box-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #7c3aed;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

.box-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.odds-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.75rem;
    opacity: 0.7;
}

.odds-display span {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 5px;
    border-radius: 3px;
}

.game-mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card {
    padding: 0 !important;
    max-width: 228px !important;
    background: transparent !important;
    border: 2px solid rgba(124, 58, 237, 0.5);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 300px;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
    border-color: #7c3aed;
}

.game-card.coming-soon {
    opacity: 0.6;
    border-color: #6b7280;
    cursor: not-allowed;
}

.game-card .game-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.game-card h3 {
    font-size: 0.9rem;
    margin: 6px 0 2px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.game-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
    display: none; /* Hide descriptions to make room for image */
}

/* Make images take 75% of card */
.game-card .game-icon-image {
    width: 100% !important;
    height: 75% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
}

.game-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    background: #6b7280;
}

.game-status.active {
    background: #10b981;
}

.menu-btn {
    width: 100%;
    padding: 15px;
    margin: 8px 0;
    background: rgba(19, 19, 26, 0.8);
    border: 1px solid #2d2d3d;
    border-radius: 10px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s;
}

.menu-btn:hover {
    background: rgba(35, 35, 52, 0.9);
    border-color: #7c3aed;
    color: #f1f5f9;
    padding-left: 25px;
}

.menu-btn.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.1));
    border-color: #7c3aed;
    color: #7c3aed;
}

.session-stats {
    background: rgba(19, 19, 26, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.session-stats div {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.profit { color: #10b981; }
.loss { color: #ef4444; }

.animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: none;
}

.animation-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#canvas-container {
    width: 800px;
    height: 600px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    z-index: 50000;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
}

#canvas-container canvas:not(#plinkoCanvas) {
    width: 100% !important;
    height: 100% !important;
    display: block;
    background: transparent !important;
    opacity: 0.85;
}

.reward-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 999999;
    pointer-events: none;
    display: none;
}

.reward-ui.show {
    display: block !important;
    pointer-events: all !important;
}

.reward-title {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 0 30px currentColor;
}

.reward-amount {
    font-size: 5rem;
    font-weight: bold;
    color: #fbbf24;
    animation: pulse-grow 1s ease-in-out infinite;
}

.reward-profit {
    font-size: 2rem;
    margin-top: 10px;
}

@keyframes pulse-grow {
    0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }
    50% { transform: scale(1.1); text-shadow: 0 0 40px rgba(251, 191, 36, 0.8); }
}

.continue-3d-btn {
    margin-top: 40px;
    background: linear-gradient(135deg, #d4af37, #7c3aed);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.continue-3d-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.rarity-common { color: #94a3b8; }
.rarity-rare { color: #3b82f6; }
.rarity-legendary { color: #a855f7; }
.rarity-mythic { 
    color: #fbbf24;
    animation: mythic-glow 1s ease-in-out infinite;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 10003;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.hide { display: none !important; }

.battle-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battle-container {
    background: rgba(26, 26, 36, 0.98);
    border: 2px solid #7c3aed;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

@keyframes explode {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #7c3aed;
    z-index: 10002;
    display: none;
}

.loading.show {
    display: block;
}

.mini-game-modal {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0f;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    padding-left: calc(var(--sidebar-width) + 20px);
}
/* Desktop: normal page flow like Rainbet */
.game-in-content {
    width: 100%;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-bottom: 100px;
}

/* Mobile: keep fixed overlay (don't change) */
@media (max-width: 768px) {
    .game-in-content {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 60px;
        width: auto;
        min-height: unset;
        padding: 10px;
        padding-bottom: 20px;
        overflow-y: auto;
        z-index: 100;
    }
}

@media (max-width: 768px) {
    .mini-game-modal {
        top: 60px;
        bottom: 60px;
        padding: 15px 10px;
        padding-left: 10px;
    }
}

.mini-game-container {
    background: rgba(26, 26, 36, 0.3);
    border: 2px solid rgba(124, 58, 237, 0.5);
    border-radius: 20px;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .mini-game-container {
        padding: 15px;
    }
    
    .mini-game-container h2 {
        font-size: 1.5rem;
    }
}

.coin {
    width: 150px;
    height: 150px;
    margin: 30px auto;
    position: relative;
    transform-style: preserve-3d;
}

.coin-heads, .coin-tails {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    backface-visibility: hidden;
    border: 3px solid #fbbf24;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.coin-heads {
    background: linear-gradient(135deg, #d4af37, #f59e0b);
    color: #1a1a24;
}

.coin-tails {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #ffffff;
    transform: rotateY(180deg);
}

@keyframes flip {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(1800deg); }
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.memory-card {
    width: 100px;
    height: 140px;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.memory-card:not(.flipped):hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.memory-card .card-back,
.memory-card .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
}

.memory-card .card-back {
    transform: rotateY(0deg);
    color: #94a3b8;
    font-weight: bold;
}

.memory-card .card-front {
    transform: rotateY(180deg);
}

.memory-card.flipped .card-back {
    transform: rotateY(180deg);
}

.memory-card.flipped .card-front {
    transform: rotateY(0deg);
}

@keyframes sparkle {
    0% { transform: scale(0.5) rotate(0deg); opacity: 1; }
    100% { transform: scale(2) rotate(360deg); opacity: 0; }
}

.match-sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    pointer-events: none;
    animation: sparkle 0.8s ease-out;
}

.match-sparkle::before {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

@media (max-width: 480px) {
    .memory-grid {
        grid-template-columns: repeat(3, 60px);
        gap: 6px;
    }
}

.memory-card.matched {
    opacity: 0.5;
    cursor: default;
}

.playing-card {
    width: 60px;
    height: 90px;
    background: white;
    border: 2px solid #000;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.playing-card.card-back {
    background: linear-gradient(135deg, #1a1a24, #7c3aed);
    color: #fbbf24;
    font-size: 2rem;
}

.card-value {
    font-size: 1.5rem;
}

.card-suit {
    font-size: 1.2rem;
}

.dice {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 3px solid #495057;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dice.rolling {
    animation: diceRollSpin 0.5s ease-out;
}

@keyframes diceRollSpin {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(90deg) rotateY(90deg) scale(1.1); }
    50% { transform: rotateX(180deg) rotateY(180deg) scale(1.2); }
    75% { transform: rotateX(270deg) rotateY(270deg) scale(1.1); }
    100% { transform: rotateX(360deg) rotateY(360deg) scale(1); }
}

.dice:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.dice.held {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #ffc107;
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(40, 167, 69, 0.4);
}

.dice.matching {
    border-color: #007bff;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.dice-value {
    font-size: 3rem;
    font-weight: 900;
    color: #1a1a24;
    text-shadow: none;
}

.hold-indicator {
    position: absolute;
    bottom: -35px;
    font-size: 0.9rem;
    color: #ffc107;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.dice.held .hold-indicator {
    opacity: 1;
}

@keyframes diceRoll {
    0% { transform: rotateX(0) rotateY(0); }
    50% { transform: rotateX(720deg) rotateY(720deg) scale(1.2); }
    100% { transform: rotateX(0) rotateY(0) scale(1); }
}

.hand-none { color: #6b7280; }
.hand-common { color: #94a3b8; }
.hand-rare { color: #3b82f6; }
.hand-legendary { color: #a855f7; }
.hand-mythic { 
    color: #fbbf24; 
    animation: pulse-glow 1s infinite;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 10px currentColor; }
    50% { text-shadow: 0 0 30px currentColor; }
}

.pressure-grid {
    display: grid;
    grid-template-columns: repeat(4, 50px);
    gap: 5px;
    margin: 10px auto;
    justify-content: center;
}

.pressure-card {
    width: 50px;
    height: 50px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.pressure-card.flipped {
    transform: rotateY(180deg);
}

.pressure-card.matched {
    opacity: 0.3;
    cursor: default;
}

.pressure-card .card-back,
.pressure-card .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 1.5rem;
}

.pressure-card .card-back {
    background: linear-gradient(135deg, #2d2d3d, #1a1a24);
    border: 1px solid #7c3aed;
}

.pressure-card .card-front {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    transform: rotateY(180deg);
}

.pressure-progress {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: right bottom;
    transform: rotate(calc(45deg * var(--i)));
    background: var(--color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.wheel-segment span {
    position: absolute;
    top: 20%;
    left: 60%;
    transform: rotate(22.5deg) translate(-50%, -50%);
    font-size: 0.75rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    font-weight: bold;
}

@media (max-width: 480px) {
    .wheel-segment span {
        font-size: 0.65rem;
        top: 25%;
        left: 55%;
    }
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #d4af37;
}

.win { color: #10b981; }
.lose { color: #ef4444; }

@media (max-width: 1200px) {
    .game-container { 
        grid-template-columns: 1fr;
    }
}


.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(26, 26, 36, 0.98);
    border-top: 2px solid #7c3aed;
    z-index: 9998;
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.7rem;
    padding: 5px;
    cursor: pointer;
}

.nav-tab.active {
    color: #7c3aed;
}

.nav-tab span:first-child {
    font-size: 1.2rem;
    margin-bottom: 2px;
}


@media (max-width: 480px) {
    .btn {
        width: 100% !important;
        margin: 10px 0 !important;
        min-height: 48px;
        font-size: 1rem !important;
    }
    
    .boxes-grid {
        grid-template-columns: 1fr !important;
    }
    
    .mini-game-container .btn {
        width: 100% !important;
        margin: 10px 0 !important;
    }
    
    #pvp button {
        width: 100% !important;
        margin: 10px 0 !important;
    }
}

.battle-players {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .battle-players {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .battle-players > div:nth-child(2) {
        text-align: center;
        padding: 10px 0;
    }
}


@media (hover: none) {
    .btn:hover,
    .box-card:hover,
    .game-card:hover {
        transform: none !important;
    }
    
    .btn:active,
    .box-card:active,
    .game-card:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s !important;
    }
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

button:disabled {
    cursor: not-allowed !important;
    transition: opacity 0.3s !important;
}

.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

.glass-card {
    background: rgba(26, 26, 36, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.box-card {
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.1) 0%, 
        rgba(6, 182, 212, 0.05) 50%,
        rgba(212, 175, 55, 0.1) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.box-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4, #d4af37);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.box-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(124, 58, 237, 0.3),
        0 0 60px rgba(124, 58, 237, 0.1);
}

.stats-display {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.2) 0%,
        rgba(124, 58, 237, 0.2) 50%,
        rgba(6, 182, 212, 0.2) 100%);
    position: relative;
    overflow: hidden;
}

.stats-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent,
        rgba(124, 58, 237, 0.1),
        transparent
    );
    animation: rotate 8s linear infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@media (max-width: 768px) {
    #gameHub {
        padding: 10px !important;
    }
    
    .game-mode-card {
        padding: 20px !important;
    }
    
    .glass-card {
        margin-bottom: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #gameHub > div:nth-child(2) {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    
    #gameHub > div:nth-child(2) .game-mode-card:last-child {
        grid-column: 1 / -1 !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
}

.animation-overlay.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


#dicePokerPvPGame {
    min-height: 400px !important;
    width: 100% !important;
    padding: 20px !important;
    display: block !important;
    visibility: visible !important;
}

.mini-game-container {
    display: flex !important;
    flex-direction: column !important;
    min-height: 500px !important;
    width: 100% !important;
    max-width: 700px !important;
}

#dicePokerPvPModal .mini-game-container > div {
    flex-shrink: 0;
}

.coin-3d {
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4));
    animation: coin-float 2s ease-in-out infinite;
}

@keyframes coin-float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(180deg); }
}

.coin-heads, .coin-tails {
    position: relative;
    overflow: hidden;
}

.coin-heads::before, .coin-tails::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

#coinResult > div > div {
    animation: fadeInUp 0.5s ease-out;
}

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

.mini-game-modal {
    backdrop-filter: blur(5px);
}

#blackjackModal .playing-card {
    width: 70px;
    height: 100px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    color: #000;
    margin: 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,.35);
}

#blackjackModal .playing-card.card-back {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fbbf24;
    font-size: 2rem;
    border-color: #d4af37;
}

#blackjackModal #dealerHand,
#blackjackModal #playerHand {
    min-height: 120px;
    padding: 10px;
    background: radial-gradient(ellipse, #0d4f0d 0%, #052805 100%);
    border-radius: 10px;
    border: 2px solid #d4af37;
    box-shadow: inset 0 0 10px rgba(0,0,0,.6);
}

#blackjackModal #dealerScore,
#blackjackModal #playerScore {
    font-size: 1.3rem;
    margin-top: 8px;
}

#blackjackModal #bjButtons button {
    min-width: 90px;
    margin: 0 8px;
}

#blackjackModal #dealerArea {
    margin-bottom: 25px;
}

#blackjackModal #playerArea {
    margin-top: auto;
    margin-bottom: 35px;
}

#blackjackModal #bjButtons {
    justify-content: center;
    margin: 15px 0;
}

#blackjackModal .hole-card {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fbbf24;
    font-size: 2rem;
    border-color: #d4af37;
}

.slot-reel {
    width: 90px;
    height: 90px;
    background: #000;
    border: 3px solid #fbbf24;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.slot-reel.spin {
    animation: slot-blur .5s ease-in-out;
}

@keyframes slot-blur {
    0% { filter: blur(0); }
    50% { filter: blur(4px); transform: scale(1.05); }
    100% { filter: blur(0); }
}

.slot-reel.win {
    animation: win-flash .4s;
}

@keyframes win-flash {
    0%, 100% { border-color: #fbbf24; box-shadow: none; }
    50% { border-color: #fff; box-shadow: 0 0 20px #fff; }
}

#slot turbo, #slot max {
    padding: 8px 16px;
    margin: 0 6px;
    background: #6b7280;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.game-card {
    padding: 0.75rem !important;
    max-width: 380px !important;
}

.game-icon-image {
    width: 100% !important;
    height: auto !important;
    max-width: 350px !important;
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
}

.game-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.game-subtitle {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}

.game-description {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
}

.game-features {
    margin-bottom: 0.75rem !important;
    gap: 0.25rem !important;
}

.feature-tag {
    padding: 0.2rem 0.6rem !important;
    font-size: 0.7rem !important;
}

.games-section {
    margin-top: 150px !important;
    padding-top: 20px !important;
}

.games-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 2rem !important;
    padding: 0 2rem !important;
}
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        padding: 0 1rem !important;
    }
}
/* ===================================
   HERO SECTION - SPLIT LAYOUT
   =================================== */

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 30px auto 40px auto;
    padding: 0 40px;
    min-height: auto;
    align-items: center;
}

/* Left Side - Promo Carousel */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.promo-carousel {
    width: 100%;
    height: 268px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(212, 175, 55, 0.3);
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 268px;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s ease, opacity 0.8s ease;
    pointer-events: none;
    cursor: pointer;
}
.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.carousel-slide.slide-out-left {
    opacity: 0;
    transform: translateX(-100%);
}
.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-slide .light-badge {
    display: none;
}
.carousel-slide .dark-badge {
    display: block;
}
.light-mode .carousel-slide .dark-badge {
    display: none;
}
.light-mode .carousel-slide .light-badge {
    display: block;
}
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}
.carousel-dot.active {
    background: #d4a574;
    transform: scale(1.2);
}

.hero-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: linear-gradient(
        90deg,
        #d4a574 0%,
        #f4d88a 25%,
        #d4a574 50%,
        #f4d88a 75%,
        #d4a574 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 40px rgba(212, 165, 116, 0.3));
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-register-btn {
    padding: 14px 36px;
    background: linear-gradient(145deg, #c9963a, #b8964f);
    border: 3px solid #d4a574;
    border-radius: 12px;
    color: #0a0a0a;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2);
}

.hero-register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 20px rgba(201, 150, 58, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.hero-register-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.6),
        inset 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Right Side - Stacked Banners */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-banner {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    background: transparent;
}

.hero-banner img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.hero-banner:hover {
    transform: translateY(-3px) scale(1.01);
    filter: brightness(1.1);
}

.hero-banner:hover img {
    filter: brightness(1.1);
}

/* Light/Dark badge swap for banners */
.hero-banner .light-badge {
    display: none !important;
}

.hero-banner .dark-badge {
    display: block !important;
}

.light-mode .hero-banner .dark-badge {
    display: none !important;
}

.light-mode .hero-banner .light-badge {
    display: block !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        min-height: auto;
    }
    
    .hero-left {
        order: 1;
    }
    
    .hero-right {
        order: 2;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        display: none;
    }
}
/* Lootbox Modal Responsive */
@media (max-width: 768px) {
    #lootboxModal h2 {
        font-size: 1.8rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 25px !important;
    }
    
    #boxesGrid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 350px !important;
    }
    
   #boxesGrid img {
    max-width: 200px !important;
    height: 200px !important;
}
    
    #boxesGrid h3 {
        font-size: 1.4rem !important;
    }
    
    #boxesGrid p {
        font-size: 1.1rem !important;
    }
    
    #boxesGrid button {
        font-size: 1rem !important;
        padding: 12px !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    #boxesGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    #boxesGrid > div:last-child {
        grid-column: 1 / -1;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ========================================
   PLINKO MOBILE OPTIMIZATION
   Only applies to screens < 768px
   Desktop layout remains unchanged
======================================== */

@media (max-width: 768px) {
  /* Force vertical stacking - MOST IMPORTANT */
  #plinko-main-container {
    flex-direction: column !important;
    padding: 80px 10px 10px 10px !important;
    gap: 15px !important;
    overflow-y: auto !important;
    height: auto !important;
  }

  /* Sidebar takes full width */
  #plinko-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    flex-shrink: 0 !important;
    order: 1 !important;
  }

  /* Canvas wrapper - force it to show AFTER sidebar */
  #plinko-canvas-wrapper {
    width: 100% !important;
    min-height: 500px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    order: 2 !important;
    background: rgba(255, 0, 0, 0.1) !important;
  }

  /* Stack layout - controls above canvas */
  .mini-game-container {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    max-height: none !important;
  }

  /* Make canvas full width and visible */
  #canvas-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 500px !important;
    max-height: 70vh !important;
    display: block !important;
    visibility: visible !important;
  }

  #plinkoCanvas {
    width: 100% !important;
    height: 500px !important;
    max-height: 70vh !important;
    display: block !important;
  }

  /* Larger touch targets for buttons */
  .mini-game-container button,
  #plinko-sidebar button {
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
  }

  /* Bigger input fields */
  .mini-game-container input[type="number"],
  #plinko-sidebar input[type="number"] {
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 10px !important;
  }

  /* Risk level buttons - larger */
  .mini-game-container .risk-buttons button,
  .mini-game-container [class*="risk"] button {
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 10px 15px !important;
  }

  /* Row slider - easier to touch */
  .mini-game-container input[type="range"],
  #plinko-sidebar input[type="range"] {
    height: 40px !important;
    cursor: pointer;
  }

  /* Title smaller */
  .mini-game-container h2,
  #plinko-sidebar h2 {
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
  }

  /* Adjust buttons (1/2, 2x) - easier to tap */
  .mini-game-container .adjust-btn {
    min-width: 50px !important;
    min-height: 44px !important;
    font-size: 16px !important;
  }
}

/* Extra small phones (< 480px) */
@media (max-width: 480px) {
  #canvas-container {
    height: 400px !important;
    max-height: 60vh !important;
  }
  
  #plinko-sidebar,
  .mini-game-container {
    padding: 10px !important;
  }

  #plinko-sidebar h2,
  .mini-game-container h2 {
    font-size: 1.3rem !important;
  }

  #plinko-canvas-wrapper {
    min-height: 400px !important;
  }
}
/* ============ AUTHENTICATION MODAL ============ */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.auth-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 100%);
  margin: 5% auto;
  padding: 24px 28px;
  border: 2px solid #d4af37;
  width: 90%;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
  animation: authSlideIn 0.3s ease-out;
}

@keyframes authSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-close {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #d4af37;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.auth-close:hover {
  color: #ffffff;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 2px solid #d4af37;
  color: #d4af37;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
}

.auth-tab.active {
  background: #d4af37;
  color: #1a1a1a;
}

.auth-tab:hover {
  background: rgba(212, 175, 55, 0.2);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  color: #d4af37;
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.auth-form input {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #d4af37;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.auth-form input::placeholder {
  color: rgba(212, 175, 55, 0.5);
}

.auth-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  border: none;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

.auth-submit-btn:active {
  transform: translateY(0);
}


/* ============ LOGOUT BUTTON ============ */
.logout-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  border: 2px solid #d4af37;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 15px;
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
}

.logout-btn:active {
  transform: translateY(0);
}
/* Unified Navigation Buttons */
.nav-back-btn {
    position: fixed;
    top: 90px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(107, 114, 128, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
}

.nav-back-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #1a1a24;
    transform: translateX(-5px);
}

/* Unified Close Buttons for Modals */
.modal-close-btn {
    padding: 10px 20px;
    background: #6b7280;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: #ef4444;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-back-btn {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        z-index: 1000;
    }
}
/* Universal close button for all modals and games */
.universal-close-btn {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.9);
    border: 2px solid #ef4444;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    z-index: 999999;
    transition: all 0.3s;
}

.universal-close-btn:hover {
    background: #ef4444;
    transform: scale(1.05);
}

/* Mobile positioning */
@media (max-width: 768px) {
    .universal-close-btn {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        padding: 12px 24px;
        font-size: 1rem;
    }
}
/* ========== RAINBET-STYLE NAVIGATION ========== */

/* Reset and Base */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);  /* Match sidebar transparency */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 10000;
}

/* Desktop Header */
.desktop-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    gap: 20px;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-header {
    display: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0;  /* No gap - everything tight */
    flex: 0 0 auto;
}

/* Animated Hamburger Icon */
.sidebar-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    margin-right: 5px;  /* ADD THIS - space before tabs */
}

.sidebar-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #d4af37;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animated X when sidebar collapsed */
.sidebar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #d4af37;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-left: 20px;  /* Space from tabs */
    border-left: 1px solid rgba(212, 175, 55, 0.2);  /* Visual separator */
    margin-left: 15px;  /* Gap from tabs */
}
.logo:hover {
    color: #f4d88a;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.balance-display {
    display: flex;
    gap: 20px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    font-weight: bold;
}

.user-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu {
    position: relative;
}

.user-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(26, 26, 36, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.user-dropdown a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

.dropdown-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin: 5px 0;
}


/* Collapsed sidebar - better icon spacing */
.desktop-sidebar.collapsed {
    width: 70px;  /* Slightly wider for better icon spacing */
}

.desktop-sidebar.collapsed .nav-text {
    display: none !important;
}

.desktop-sidebar.collapsed .expand-arrow {
    display: none !important;
}

.desktop-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px 0;  /* Remove horizontal padding */
}
/* Fix bottom nav items (Game History, Statement, Provably Fair) */
.desktop-sidebar.collapsed > .sidebar-nav > .nav-item {
    display: flex !important;
    justify-content: center !important;
    padding: 16px 0 !important;
}

.desktop-sidebar.collapsed > .sidebar-nav > .nav-item .nav-icon {
    margin: 0 !important;
}

.desktop-sidebar.collapsed .nav-icon {
    margin: 0;  /* Center icon perfectly */
}

.desktop-sidebar.collapsed .nav-submenu {
    display: none !important;  /* Hide all submenus when collapsed */
}

.desktop-sidebar.collapsed .submenu-item {
    display: none !important;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.nav-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.nav-item.active {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border-left: 3px solid #d4af37;
}

.nav-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}
.nav-icon,
.submenu-icon {
    color: #d4af37;
}
/* Gold coin icons in balance displays */
.balance-item.coins .fa-coins {
    color: #d4af37;
}

/* Mobile balance coin icon */
.mobile-balance .fa-coins {
    color: #d4af37;
}

/* Mobile menu coin icon */
.mobile-user-info .fa-coins {
    color: #d4af37;
}
.nav-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.1);
    margin: 15px 20px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding-top: 60px;
    transition: margin-left 0.3s;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-content.expanded {
    margin-left: 60px;
}

/* Mobile Styles */
.mobile-bottom-nav {
    display: none;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000 !important;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ========== END RAINBET-STYLE NAVIGATION ========== */

/* Enhanced Coin Display - No Gems */
.balance-item.coins {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(244, 208, 63, 0.1));
    border: 1px solid #d4af37;
    padding: 10px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.balance-item.coins::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    animation: coinShine 3s infinite;
}

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

/* Premium Header Redesign */
.balance-display {
    perspective: 1000px;
}

.balance-item.coins {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 24px;
    border-radius: 12px;
    position: relative;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(212, 175, 55, 0.1);
}

.balance-item.coins span:first-child {
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

#coinsHeader {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Better Daily Button */
.daily-btn {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    padding: 10px 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.daily-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s;
}

.daily-btn:hover::before {
    left: 100%;
}

.daily-btn:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

/* Better User Button */
.user-btn {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.user-btn:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
}

#playerNameHeader {
    color: #d4af37;
    font-weight: 600;
}

.arrow {
    color: rgba(212, 175, 55, 0.6);
    transition: transform 0.3s;
}

.user-btn:hover .arrow {
    transform: rotate(180deg);
}

/* Subtle animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.daily-btn span:first-child {
    animation: pulse 2s infinite;
}
/* Unified header buttons - clean and consistent */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

/* Remove any weird borders from balance wrapper */
.balance-display {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Make all three buttons identical style */
.balance-item.coins,
.daily-btn,
.user-btn {
    height: 40px !important;
    padding: 0 20px !important;
    background: rgba(26, 26, 36, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    transition: all 0.3s;
}

.balance-item.coins:hover,
.daily-btn:hover,
.user-btn:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
    background: rgba(26, 26, 36, 1) !important;
    transform: translateY(-1px);
}
/* Expandable Sidebar Categories */
.nav-category {
    margin-bottom: 5px;
}

.category-header {
    font-weight: 600;
    position: relative;
    padding-right: 35px !important;
}

.expand-arrow {
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.nav-submenu {
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 40px !important;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.submenu-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding-left: 44px !important;
}

.submenu-item.active {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border-left: 3px solid #d4af37;
}

.submenu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.submenu-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}
/* Consistent Back Button Styling */
.back-to-hub-btn {
    position: fixed;
    top: 80px;
    left: 270px; /* Positioned next to sidebar */
    padding: 10px 20px;
    background: rgba(26, 26, 36, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-hub-btn:hover {
    background: rgba(26, 26, 36, 1);
    border-color: #d4af37;
    color: #d4af37;
    transform: translateX(5px);
}

/* Adjust for collapsed sidebar */
.desktop-sidebar.collapsed ~ .main-content .back-to-hub-btn {
    left: 80px;
}

/* Mobile positioning */
@media (max-width: 768px) {
    .back-to-hub-btn {
        top: 70px;
        left: 20px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
.desktop-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling */
.desktop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.desktop-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.desktop-sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

.desktop-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* Ensure nav content has proper spacing at bottom */
.sidebar-nav {
    padding: 20px 0;
    padding-bottom: 40px; /* Extra space at bottom for comfortable scrolling */
}

/* Smooth scroll behavior */
.desktop-sidebar {
    scroll-behavior: smooth;
}
/* ===================================
   STAKE/RAINBET STYLE - CLEAN CARDS
   =================================== */

.games-grid-stake-style {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));  /* 280px → 168px (40% reduction) */
    gap: 16px;  /* Slightly tighter gap for narrower cards */
    padding: 0 20px 40px 20px;
}

.game-card-stake {
    background: rgba(26, 26, 36, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 3/4;  /* Portrait ratio like Rainbet */
}

.game-card-stake:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-image-container {
    position: absolute;  /* Changed from relative */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;  /* Fill entire card */
    overflow: hidden;
}

.game-image-stake {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card-stake:hover .game-image-stake {
    transform: scale(1.05);
}

.game-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card-stake:hover .game-hover-overlay {
    opacity: 1;
}

.game-play-btn-stake {
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4a574, #c9963a);
    border: 2px solid #d4a574;
    border-radius: 8px;
    color: #0a0a0a;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.game-play-btn-stake:hover {
    background: linear-gradient(135deg, #e5c158, #d4a574);
    transform: scale(1.05);
}

.game-info-stake {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 60%,
        transparent 100%
    );
    z-index: 10;
}

.game-title-stake {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;  /* Smaller for narrow cards */
    font-weight: 700;  /* Extra bold */
    color: #ffffff;  /* White text on dark overlay */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;  /* Centered */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);  /* Strong shadow for readability */
}

.game-tag-stake {
    display: none;  /* Hide tag to save space */
}

.game-status-badge-stake {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 217, 255, 0.9);
    color: #0a0a0a;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .games-grid-stake-style {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));  /* Narrower on mobile */
        gap: 12px;
        padding: 0 15px 30px 15px;
    }
    
    .game-title-stake {
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .game-play-btn-stake {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 46px;  /* Even smaller on mobile */
    }
}

@media (max-width: 480px) {
    .games-grid-stake-style {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-image-container {
        height: 180px;
    }
}
/* ===================================
   SINGLE PLAYER PAGE - HEADER & SIDEBAR
   =================================== */

/* Center and style the category header */
.category-header-premium {
    text-align: center;
    margin: 0 auto 40px auto;
    padding: 0 20px 30px 20px;
    position: relative;
    max-width: 1200px;
}


.category-title-premium {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: bold;
    color: #d4a574;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    margin: 0 0 15px 0;
}

.category-subtitle-premium {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    color: #b8964f;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-style: italic;
}

/* Sidebar back to hub button */
.sidebar-back-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #d4a574;
    text-decoration: none;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.sidebar-back-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4a574;
    padding-left: 25px;
}

/* Back to lobby button - transparent with bold text */
.back-to-lobby-btn {
    position: fixed;
    top: 70px;
    left: 240px;
    padding: 0;
    background: transparent;
    border: none;
    color: #d4af37;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.back-to-lobby-btn:hover {
    color: #e5c158;
    transform: translateX(-5px);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.back-to-lobby-btn:active {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .back-to-lobby-btn {
        top: 70px;
        left: 15px;
        font-size: 16px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .category-title-premium {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .category-subtitle-premium {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .category-header-premium {
        margin-top: 20px;
    }
}
/* ═══════════════════════════════════════════════════════════
   AUTH MODAL STYLES - STAKE/RAINBET STYLE
   ═══════════════════════════════════════════════════════════ */

/* AUTH OVERLAY */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.auth-overlay.active {
  display: flex;
}

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

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

/* AUTH MODAL CONTAINER - TRANSPARENT WRAPPER */
.auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: slideUp 0.4s ease;
  overflow: visible;
}

.auth-modal-content {
  background: rgba(26, 26, 36, 0.98);
  border: 2px solid rgba(212, 165, 116, 0.5);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(212, 165, 116, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

/* Custom scrollbar for modal */
.auth-modal::-webkit-scrollbar {
  width: 8px;
}

.auth-modal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.auth-modal::-webkit-scrollbar-thumb {
  background: rgba(212, 165, 116, 0.5);
  border-radius: 4px;
}

.auth-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 165, 116, 0.7);
}
/* Close Button */
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid #ef4444;
  color: #ef4444;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-weight: bold;
  line-height: 1;
}

.auth-close:hover {
  background: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

/* Header - Ultra compact (no emoji) */
.auth-header {
  text-align: center;
  margin-bottom: 20px; /* ← Reduced from 24px */
}

.auth-title {
  color: #d4a574;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem; /* ← Reduced from 1.5rem */
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px; /* ← Reduced from 6px */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.auth-subtitle {
  color: #94a3b8;
  font-size: 0.8rem; /* ← Reduced from 0.85rem */
  letter-spacing: 1px;
}

/* Form - Ultra compact */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px; /* ← Reduced from 16px */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px; /* ← Reduced from 6px */
}

.form-label {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-input {
  background: rgba(240, 240, 240, 0.95);
  border: 2px solid rgba(212, 165, 116, 0.3);
  border-radius: 12px;
  padding: 14px 20px;
  color: #1a1a1a;
  font-size: 0.95rem; /* ← Reduced from 1rem */
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #c9963a;
  box-shadow: 0 0 0 4px rgba(201, 150, 58, 0.1);
  background: rgba(0, 0, 0, 0.8);
}

.form-input::placeholder {
  color: #94a3b8;
  opacity: 0.6;
}

/* Embossed Gold Button - Compact */
.auth-button {
  position: relative;
  padding: 14px;
  background: linear-gradient(145deg, #c9963a, #b8964f);
  border: 2px solid #d4a574;
  border-radius: 12px;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.95rem; /* ← Reduced from 1rem */
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: Georgia, serif;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2);
  margin-top: 4px; /* ← Reduced from 6px */
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(201, 150, 58, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-button:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.6),
    inset 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Toggle Link - Ultra compact */
.auth-toggle {
  text-align: center;
  margin-top: 14px; /* ← Reduced from 16px */
  color: #94a3b8;
  font-size: 0.85rem;
}

.auth-toggle-link {
  color: #d4a574;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  margin-left: 4px;
}

.auth-toggle-link:hover {
  color: #f4d88a;
  text-decoration: underline;
}

/* Terms - Ultra compact */
.auth-terms {
  margin-top: 14px; /* ← Reduced from 16px */
  text-align: center;
  font-size: 0.65rem; /* ← Reduced from 0.7rem */
  color: #94a3b8;
  line-height: 1.3;
}

.auth-terms a {
  color: #d4a574;
  text-decoration: none;
}

.auth-terms a:hover {
  text-decoration: underline;
}

/* Success/Error Messages - Fixed position, no layout shift */
.auth-success, .auth-error {
  position: absolute;
  top: 60px;
  left: 28px;
  right: 28px;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.auth-success {
  background: rgba(74, 222, 128, 0.95);
  border: 2px solid #4ade80;
  color: #1a1a1a;
}

.auth-error {
  background: rgba(239, 68, 68, 0.95);
  border: 2px solid #ef4444;
  color: #fff;
}

.auth-success.show, .auth-error.show {
  opacity: 1;
  visibility: visible;
}
/* Loading State */
.auth-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Success State */
.auth-button.success {
  background: linear-gradient(145deg, #10b981, #059669);
  border-color: #10b981;
  color: #fff;
  pointer-events: none;
}

.auth-button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #0a0a0a;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .auth-button.loading::after {
    right: 12px;
    width: 14px;
    height: 14px;
  }
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Mobile Responsive - Complete */
@media (max-width: 768px) {
  .auth-modal {
    padding: 24px 18px;
    max-width: 95%;
    max-height: 80vh;
  }
  
  .auth-title {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }
  
  .auth-button {
    padding: 11px;
    font-size: 0.9rem;
    width: 100%;
    display: block;
  }
  
  .form-input {
    padding: 11px 13px;
    font-size: 0.9rem;
  }
  
  .auth-form {
    gap: 12px;
  }
  
  .auth-header {
    margin-bottom: 16px;
  }
  
  .auth-close {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
    top: 10px;
    right: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════
   HEADER AUTH BUTTONS - MATCH LOBBY STYLE
   ═══════════════════════════════════════════════════════════ */

.header-auth-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #f4e8c1 0%, #d4c5a0 50%, #f4e8c1 100%);
  border: none;
  border-radius: 12px;
  color: #3a2a1a;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  font-family: Georgia, serif;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.header-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

.header-auth-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

.header-signup-btn {
  background: linear-gradient(145deg, #c9963a, #b8964f);
  color: #0a0a0a;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

.header-signup-btn:hover {
  background: linear-gradient(145deg, #d4a574, #c9963a);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(201, 150, 58, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.header-signup-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.6),
    inset 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .header-auth-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }
}
/* Mobile Responsive - Complete */
@media (max-width: 768px) {
  .auth-modal {
    padding: 28px 20px; /* ← Reduced padding on mobile */
    max-width: 95%; /* ← Use more screen width */
    max-height: 85vh; /* ← Leave room for mobile browser UI */
  }
  
  .auth-title {
    font-size: 1.3rem;
    letter-spacing: 1.5px;
  }
  
  .auth-logo {
    font-size: 2rem;
  }
  
  .auth-button {
    padding: 12px;
    font-size: 0.95rem;
    width: 100%;
    display: block;
    left: 0;
  }
  
  .form-input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  
  .auth-form {
    gap: 14px;
  }
  
  .auth-header {
    margin-bottom: 20px;
  }
  
  .auth-close {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
    top: 12px;
    right: 12px;
  }
}

/* Extra small phones */
@media (max-width: 375px) {
  .auth-modal {
    padding: 24px 16px;
    max-height: 80vh;
  }
  
  .auth-title {
    font-size: 1.2rem;
  }
  
  .auth-logo {
    font-size: 1.8rem;
  }
}
/* Header Tabs - Rainbet Style with Dark Casino Branding */
.header-tabs {
    display: flex;
    gap: 0;
    margin-left: 0;
    margin-right: 15px;  /* Space after tabs */
}

/* Casino/Sports Tabs - Match Login/Register Style */
.header-tab {
    padding: 10px 20px;  /* Reduced: 24px → 20px */
    background: rgba(26, 26, 36, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-tab:hover:not(.active) {
    background: rgba(26, 26, 36, 1);
    border-color: rgba(212, 175, 55, 0.4);
    color: #d4a574;
}

.header-tab.active {
    background: rgba(26, 26, 36, 1);
    border-color: rgba(212, 175, 55, 0.5);
    color: #d4af37;
    font-weight: 700;
}

.tab-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: #0a0a0a;
    color: #d4a574;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .header-tabs {
        display: none;
    }
}
/* ===================================
   HORIZONTAL GAME ROWS 
   =================================== */

.game-rows-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px 10px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
}

/* Desktop with sidebar - constrain width so arrows stay visible */
@media (min-width: 1025px) {
    .game-rows-container {
        max-width: calc(100vw - 290px);
    }
}

.game-row {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.game-row.active {
    opacity: 1;
}

/* Row Header */
.row-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.row-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    color: #d4a574;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Scroll Controls */
.scroll-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.scroll-btn {
    width: 30px;
    height: 30px;
    background: rgba(26, 26, 36, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: #d4a574;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: rgba(26, 26, 36, 1);
    border-color: #d4a574;
    transform: scale(1.1);
}

.scroll-btn:active {
    transform: scale(0.95);
}

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

/* Horizontal Scroller */
.horizontal-scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0 20px 0;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.horizontal-scroller::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroller::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.horizontal-scroller::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 3px;
}

.horizontal-scroller::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* Game Cards in Horizontal Layout */
.horizontal-scroller .game-card-stake {
    flex-shrink: 0;
    width: 168px;
    min-width: 168px;
}

/* Placeholder Cards */
.game-card-placeholder {
    flex-shrink: 0;
    width: 168px;
    min-width: 168px;
    aspect-ratio: 3/4;
    background: rgba(26, 26, 36, 0.5);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 175, 55, 0.6);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.game-card-placeholder:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(26, 26, 36, 0.7);
}

/* ===================================
   MOBILE HEADER - DAILY BUTTON CENTER
   =================================== */

@media (max-width: 768px) {
    .mobile-header {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }
    
    .mobile-logo {
        /* Stays left */
    }
    
    .mobile-header-center {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }
    
    .mobile-header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        margin-left: auto;
    }
    
    .mobile-daily-btn {
        padding: 8px 16px !important;
        font-size: 1.2rem !important;
        min-width: 48px;
        min-height: 44px;
    }
    
    .mobile-daily-btn .daily-text {
        display: none;
    }
    
    .mobile-balance {
        font-size: 0.9rem;
        padding: 8px 12px;
        background: rgba(201, 150, 58, 0.1);
        border: 1px solid #c9963a;
        border-radius: 6px;
        white-space: nowrap;
    }
    
    .mobile-auth-btns {
        display: flex;
        gap: 6px;
    }
    
    .mobile-auth-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
        font-weight: 600;
    }
}
/* ========================================
   SPORTS SUB-SELECTOR (SPORTSBOOK/EXCHANGE)
   ======================================== */

.sports-sub-selector {
    display: flex;
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.sportsbook-box,
.exchange-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #d4af37;
    border-radius: 16px;
    padding: 100px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    filter: brightness(1.3);
    min-height: 300px;
}

.sportsbook-box {
    background-image: url('../images/sportsbook-mode.webp');
}

.exchange-box {
    background-image: url('../images/exchange-mode.webp');
}

.sportsbook-box:hover,
.exchange-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
    border-color: #fbbf24;
}

.coming-soon {
    color: rgba(212, 175, 55, 0.8);
    font-size: 1rem;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
/* ===== AUTH MODAL IMPROVEMENTS - Nov 2024 ===== */

/* Password Wrapper with Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8a8a8a;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #d4a574;
}

/* Forgot Password Link */
.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #d4a574;
    text-decoration: none;
    margin: -8px 0 16px 0;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #f4d88a;
    text-decoration: underline;
}

/* Updated Auth Header */
.auth-title {
    font-family: Georgia, serif !important;
    font-size: 1.8rem !important;
    color: #d4a574 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

.auth-subtitle {
    font-size: 0.9rem !important;
    color: #b0b0b0 !important;
    font-style: italic !important;
    margin: 0 !important;
}

/* Close Button */
.auth-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(212, 165, 116, 0.3);
    background: rgba(30, 30, 30, 0.6);
    color: #d4a574;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.auth-close:hover {
    background: rgba(201, 150, 58, 0.2);
    border-color: #c9963a;
    transform: rotate(90deg);
}

/* Dark Input Fields */
.form-input {
    background: rgba(30, 30, 30, 0.8) !important;
    border: 2px solid rgba(212, 165, 116, 0.3) !important;
    border-radius: 12px !important;
    color: #f4f4f4 !important;
    transition: all 0.3s ease !important;
}

.form-input::placeholder {
    color: rgba(176, 176, 176, 0.5) !important;
}

.form-input:focus {
    outline: none !important;
    border-color: #c9963a !important;
    background: rgba(30, 30, 30, 0.95) !important;
    box-shadow: 0 0 12px rgba(201, 150, 58, 0.3) !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .auth-modal {
        max-width: 90vw;
        margin: 20px auto;
    }
    
    .auth-modal-content {
        margin-top: 20px;
    }
    
    .auth-title {
        font-size: 1.5rem !important;
        letter-spacing: 2px !important;
    }
    
    .auth-subtitle {
        font-size: 0.85rem !important;
    }
    
    .form-input {
        height: 50px !important;
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    .password-toggle {
        font-size: 1rem;
    }
    
    .forgot-password {
        font-size: 0.8rem;
        margin: -6px 0 14px 0;
    }
    
    .auth-close {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .auth-modal-content {
        padding: 20px 16px;
    }
    
    .auth-title {
        font-size: 1.3rem !important;
    }
}
/* Daily Button - Claimable State */
.daily-btn.daily-claimable {
    background: linear-gradient(145deg, #c9963a, #b8964f) !important;
    border-color: #d4a574 !important;
    color: #0a0a0a !important;
    animation: dailyPulse 2s ease-in-out infinite !important;
}

.daily-btn.daily-claimable i {
    color: #0a0a0a !important;
}

.daily-btn.daily-claimable .daily-text {
    color: #0a0a0a !important;
}

@keyframes dailyPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(201, 150, 58, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(201, 150, 58, 0.8), 0 0 40px rgba(212, 165, 116, 0.5);
    }
}
/* Daily Button Claimable State */
.daily-btn.daily-claimable {
    background: linear-gradient(145deg, #c9963a, #b8964f) !important;
    color: #0a0a0a !important;
    border-color: #d4a574 !important;
    animation: dailyPulse 2s ease-in-out infinite !important;
}

@keyframes dailyPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(201, 150, 58, 0.4); }
    50% { box-shadow: 0 0 25px rgba(201, 150, 58, 0.8); }
}
/* ═══════════════════════════════════════════════════════════
   FOOTER STYLES
   ═══════════════════════════════════════════════════════════ */

.site-footer {
    background: #0d0d0d;
    border-top: 1px solid rgba(201, 150, 58, 0.2);
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Footer */
.footer-main {
    padding: 50px 0 40px;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

/* Brand Column */
.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-logo-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #d4a574;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-description {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid rgba(201, 150, 58, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: #c9963a;
    color: #0a0a0a;
    border-color: #c9963a;
}

/* Footer Columns */
.footer-column {
    min-width: 0;
}

.footer-heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #d4a574;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #d4a574;
}

/* Badges Section */
.footer-badges {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(201, 150, 58, 0.2);
    border-radius: 8px;
    padding: 16px 30px;
    min-width: 200px;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Copyright */
.footer-bottom {
    padding: 20px 0;
}

.copyright {
    color: #555;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .footer-main .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-main .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column {
        padding: 0;
    }
    
    .badge-row {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE & LIGHT MODE
   ═══════════════════════════════════════════════════════════ */

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(201, 150, 58, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.theme-toggle:hover {
    background: rgba(201, 150, 58, 0.1);
    border-color: #c9963a;
}

.yin-yang {
    font-size: 1.4rem;
    transition: transform 0.5s ease;
    color: #d4a574;
}

.light-mode .yin-yang {
    transform: rotate(180deg);
    color: #5a4510;
}

.light-mode .background-particles,
.light-mode #particles-js,
.light-mode .particles-js,
.light-mode canvas {
    display: none !important;
}
.sakura-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.light-mode .sakura-container {
    display: block;
}

.sakura-petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse at center, #ffb7c5 0%, #ff69b4 50%, transparent 70%);
    border-radius: 50% 0 50% 50%;
    opacity: 0.7;
    animation: sakuraFall linear infinite;
}

.sakura-petal:nth-child(odd) {
    background: radial-gradient(ellipse at center, #fff0f5 0%, #ffb7c5 50%, transparent 70%);
}

@keyframes sakuraFall {
    0% {
        transform: translateY(-5vh) rotate(0deg) rotateX(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    85% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(105vh) rotate(720deg) rotateX(360deg);
        opacity: 0;
    }
}

@keyframes sakuraSway {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(30px);
    }
    50% {
        transform: translateX(-20px);
    }
    75% {
        transform: translateX(40px);
    }
}

/* ===== BODY & BACKGROUND ===== */
.light-mode body,
.light-mode.roninbet-enhanced {
    background: linear-gradient(180deg, #e8f4f8 0%, #ddeef5 50%, #f5f0e8 100%);
}

/* ===== HEADER ===== */
.light-mode .main-header,
.light-mode .desktop-header {
    background: rgba(232, 244, 248, 0.95);
    border-bottom: 1px solid rgba(201, 150, 58, 0.2);
}

.light-mode .logo {
    color: #5a4510;
    text-shadow: none;
}

.light-mode .header-tabs .header-tab {
    color: #5a4510;
    background: rgba(255, 255, 255, 0.5);
}

.light-mode .header-tabs .header-tab.active {
    color: #8b6914;
    background: rgba(255, 255, 255, 0.8);
}

.light-mode .sidebar-toggle .hamburger-line {
    background: #5a4510;
}

.light-mode .daily-btn {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #5a4510;
    border: 1px solid rgba(201, 150, 58, 0.4) !important;
}

.light-mode .daily-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #c9963a;
}

.light-mode .header-auth-btn {
    color: #5a4510;
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(201, 150, 58, 0.4);
}

.light-mode .header-auth-btn.header-signup-btn {
    background: linear-gradient(145deg, #c9963a, #b8964f);
    color: #0a0a0a;
}

.light-mode .balance-display {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 150, 58, 0.4);
}

.light-mode .balance-display .balance-amount,
.light-mode .balance-display .balance-item,
.light-mode .balance-display i {
    color: #5a4510;
}

.light-mode .balance-item.coins {
    background: rgba(255, 255, 255, 0.9) !important;
}

.light-mode .user-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #5a4510;
    border: 1px solid rgba(201, 150, 58, 0.4);
}
.light-mode .user-btn {
    color: #5a4510;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 150, 58, 0.4);
}

.light-mode .user-btn:hover {
    background: #fff;
    border-color: #c9963a;
}

.light-mode .user-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(201, 150, 58, 0.3);
}

.light-mode .user-dropdown a {
    color: #3a3a3a;
}

.light-mode .user-dropdown a:hover {
    background: rgba(201, 150, 58, 0.1);
    color: #8b6914;
}

/* ===== SIDEBAR ===== */
.light-mode .desktop-sidebar {
    background: transparent !important;
    border-right: 1px solid rgba(201, 150, 58, 0.15);
    backdrop-filter: none !important;
}

.light-mode .nav-item,
.light-mode .nav-item.category-header {
    color: #3a3a3a;
}

.light-mode .nav-item:hover,
.light-mode .nav-item.active {
    background: rgba(201, 150, 58, 0.15);
    color: #8b6914;
}

.light-mode .nav-icon {
    color: #8b6914;
}

.light-mode .expand-arrow {
    color: #8b6914;
}

.light-mode .submenu-item {
    color: #555;
}

.light-mode .nav-submenu {
    background: transparent !important;
    backdrop-filter: none !important;
}

.light-mode .submenu-item:hover {
    color: #8b6914;
    background: rgba(201, 150, 58, 0.1);
}

.light-mode .submenu-icon {
    color: #8b6914;
}

.light-mode .nav-divider {
    background: rgba(201, 150, 58, 0.3);
}

/* ===== MOBILE HEADER ===== */
.light-mode .mobile-header {
    background: rgba(232, 244, 248, 0.95);
    border-bottom: 1px solid rgba(201, 150, 58, 0.2);
}

.light-mode .mobile-logo {
    color: #5a4510;
}

.light-mode .mobile-balance {
    background: rgba(255, 255, 255, 0.7);
    color: #5a4510;
}

.light-mode .mobile-auth-btn {
    color: #5a4510;
    background: rgba(255, 255, 255, 0.7);
}

.light-mode .mobile-auth-btn.signup {
    background: linear-gradient(145deg, #c9963a, #b8964f);
    color: #0a0a0a;
}


/* ===== MOBILE BOTTOM NAV ===== */
.light-mode .mobile-bottom-nav {
    background: rgba(232, 244, 248, 0.95);
    border-top: 1px solid rgba(201, 150, 58, 0.2);
}

.light-mode .mobile-bottom-nav .nav-btn {
    color: #5a4510;
}

.light-mode .mobile-bottom-nav .nav-btn.active {
    color: #8b6914;
}
.light-mode .nav-item,
.light-mode .nav-text,
.light-mode .submenu-item,
.light-mode .category-header {
    text-shadow: none;
}

/* ===== GAME ROWS ===== */
.light-mode .row-title {
    color: #5a4510;
    text-shadow: none !important;
}

.light-mode .scroll-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(201, 150, 58, 0.3);
    color: #5a4510;
}

.light-mode .scroll-btn:hover {
    background: #fff;
    border-color: #c9963a;
}

.light-mode .game-card-stake {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(201, 150, 58, 0.2);
}

.light-mode .game-info-stake {
    background: none;
}

.light-mode .game-title-stake {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.light-mode .game-title-stake {
    color: #3a3a3a;
}

.light-mode .game-card-placeholder {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(201, 150, 58, 0.2);
    color: #888;
}

/* ===== HERO SECTION ===== */
.light-mode .hero-title {
    color: #5a4510;
}

.light-mode .hero-register-btn {
    background: linear-gradient(145deg, #c9963a, #b8964f);
    color: #0a0a0a;
}

/* ===== THEME TOGGLE (LIGHT MODE) ===== */
.light-mode .theme-toggle {
    border-color: rgba(90, 69, 16, 0.3);
    background: rgba(255, 255, 255, 0.7);
}

.light-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ===== FOOTER ===== */
.light-mode .site-footer {
    background: linear-gradient(180deg, #e8e0d4 0%, #ddd5c8 100%);
    border-top: 1px solid rgba(201, 150, 58, 0.3);
}

.light-mode .footer-logo-text {
    color: #5a4510;
}

.light-mode .footer-description,
.light-mode .footer-links a,
.light-mode .badge-text {
    color: #555;
}

.light-mode .footer-heading {
    color: #8b6914;
}

.light-mode .footer-badge {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(201, 150, 58, 0.3);
}

.light-mode .social-icon {
    color: #5a4510;
    background: rgba(255, 255, 255, 0.7);
}

.light-mode .copyright {
    color: #777;
}

/* ===== LIGHT/DARK BADGE SWAP ===== */
.hero-card .light-badge,
.game-card-stake .light-badge {
    display: none !important;
}

.hero-card .dark-badge,
.game-card-stake .dark-badge {
    display: block !important;
}

.light-mode .hero-card .dark-badge,
.light-mode .game-card-stake .dark-badge {
    display: none !important;
}

.light-mode .hero-card .light-badge,
.light-mode .game-card-stake .light-badge {
    display: block !important;
}
/* Logo text swap */
.logo .light-badge {
    display: none;
}

.light-mode .logo .dark-badge {
    display: none;
}

.light-mode .logo .light-badge {
    display: inline;
}
/* ═══════════════════════════════════════════════════════════
   IN-CONTENT GAME RENDERING (Rainbet-style)
   Games render inside main content, sidebar/nav stay visible
   ═══════════════════════════════════════════════════════════ */


/* Mobile: account for bottom nav */
@media (max-width: 768px) {
    .game-in-content {
        left: 0;
        top: 60px;
        bottom: 60px;             /* Above bottom nav */
        padding: 20px 15px;
    }
}

/* Game container inside the content area */
.game-in-content .game-container-inner {
    width: 100%;
    max-width: 800px;
    background: rgba(26, 26, 36, 0.95);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 30px;
}

@media (max-width: 768px) {
    .game-in-content .game-container-inner {
        padding: 20px 15px;
        border-radius: 15px;
    }
}
/* ═══════════════════════════════════════════════════════════
   SAMURAI'S PATH MOBILE FIX
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    #samuraiPathModal {
        display: block !important;
        overflow-y: auto !important;
    }
    
    #samuraiPathModal .sp-main {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    #samuraiPathModal .sp-game-area {
        order: 1 !important;
        min-height: 250px !important;
    }
    
    #samuraiPathModal .sp-controls {
        order: 2 !important;
    }
    
    #samuraiPathModal .footer-spacer {
        display: none !important;
    }
    
    #samuraiPathModal .game-info-footer {
        order: 3 !important;
    }
}
/* Styled scrollbar for page */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.6);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 165, 116, 0.4) #0a0a0f;
}

