/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.splash-image {
    width: 90%;
    max-width: 400px;
    height: auto;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.header h1 {
    font-size: 24px;
    color: #667eea;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(241, 196, 15, 0.3);
}

.points-label {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.points-value {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Wallet Section */
.wallet-section {
    margin-bottom: 30px;
}

.wallet-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wallet-card.connected {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.wallet-address {
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    margin: 10px 0;
}

/* Games Section */
.games-section {
    margin-bottom: 30px;
}

.games-section h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.game-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.game-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Conversion Section */
.conversion-section {
    margin-bottom: 30px;
}

.conversion-section h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.conversion-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.conversion-info {
    margin-bottom: 20px;
    text-align: center;
}

.conversion-info p {
    margin: 5px 0;
    color: #333;
}

.small-text {
    font-size: 12px;
    color: #666;
}

.conversion-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.conversion-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.conversion-result {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

.conversion-result.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.conversion-result.error {
    background: #ffebee;
    color: #c62828;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 95%;
    max-width: 900px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 1001;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close:hover,
.close:focus {
    color: #000;
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

/* Spin Wheel Styles */
.spin-wheel-container {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    max-width: 100%;
}

.spin-wheel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.spin-wheel-header h2 {
    margin: 0;
    color: white;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.chull-logo-spin {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 50px solid #ff5722;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.spin-button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.spin-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

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

.wheel-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    display: none;
}

.wheel-result.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.wheel-result.error {
    background: #ffebee;
    color: #c62828;
}

/* Slot Machine Styles */
.slot-machine {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    max-width: 100%;
}

.slot-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.slot-header h2 {
    margin: 0;
    color: white;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.chull-logo-slot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.slot-info {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.slot-display {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.slot-reel {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1b1b1b 0%, #2d2d2d 100%);
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.slot-reel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.1) 0%, 
        transparent 20%, 
        transparent 80%, 
        rgba(0,0,0,0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.slot-symbol {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slot-symbol.stopped {
    animation: slotStop 0.3s ease-out;
}

.slot-symbol.winning {
    animation: slotWin 0.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    border: 3px solid #FFD700;
}

@keyframes slotStop {
    0% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes slotWin {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(255, 215, 0, 1);
    }
}

.symbol-emoji {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.slot-symbol img.slot-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(243, 156, 18, 0.5));
}

.slot-spin-button {
    margin-top: 20px;
    padding: 15px 50px;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slot-spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

.slot-spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.slot-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    display: none;
}

.slot-result.info {
    background: #e3f2fd;
    color: #1565c0;
}

.slot-result.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.slot-result.error {
    background: #ffebee;
    color: #c62828;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 480px) {
    .wheel-wrapper {
        width: 300px;
        height: 300px;
        max-width: 90vw;
    }
    
    #wheelCanvas {
        width: 300px !important;
        height: 300px !important;
        max-width: 100% !important;
    }
    
    .spin-wheel-header h2 {
        font-size: 22px;
    }
    
    .chull-logo-spin {
        width: 40px;
        height: 40px;
    }
    
    .spin-wheel-container {
        padding: 15px;
    }
    
    .game-card {
        padding: 15px;
    }
    
    .game-icon {
        font-size: 36px;
    }
    
    .splash-image {
        width: 95%;
    }
    
    .slot-display {
        gap: 10px;
        padding: 15px;
    }
    
    .slot-reel {
        width: 90px;
        height: 90px;
    }
    
    .slot-symbol {
        font-size: 36px;
    }
    
    .symbol-emoji {
        font-size: 36px;
    }
    
    .slot-symbol img.slot-logo {
        width: 50px;
        height: 50px;
    }
    
    .slot-header h2 {
        font-size: 22px;
    }
    
    .chull-logo-slot {
        width: 40px;
        height: 40px;
    }
    
    .slot-spin-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Gates of Olympus & Sweet Bonanza Styles */
.olympus-game {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    max-width: 100%;
}

.bonanza-game, .sweet-bonanza-game {
    padding: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    max-width: 100%;
}

.olympus-header, .bonanza-header {
    margin-bottom: 15px;
}

.olympus-header h2, .bonanza-header h2 {
    color: white;
    font-size: 24px;
    margin: 0 0 15px 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.olympus-stats, .bonanza-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 100px;
}

.stat-item.cp-stat {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.3) 0%, rgba(243, 156, 18, 0.3) 100%);
    border: 2px solid rgba(241, 196, 15, 0.5);
}

.stat-item.win-stat {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.3) 0%, rgba(34, 153, 84, 0.3) 100%);
    border: 2px solid rgba(39, 174, 96, 0.5);
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.olympus-bet-section, .bonanza-bet-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.olympus-bet-section label, .bonanza-bet-section label {
    color: white;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.bet-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.bet-input-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.bet-input {
    padding: 8px 12px;
    border: 2px solid rgba(102, 126, 234, 0.8);
    background: rgba(0, 0, 0, 0.7);
    color: #fff !important;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    width: 100px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bet-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bet-input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bet-input:-moz-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bet-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bet-input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bet-input:focus {
    outline: none;
    border-color: #f1c40f;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.6);
    color: #fff !important;
}

.bet-input::-webkit-inner-spin-button,
.bet-input::-webkit-outer-spin-button {
    opacity: 1;
    cursor: pointer;
}

.bet-quick-btn {
    padding: 8px 14px;
    border: 2px solid rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    color: #fff !important;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s;
    min-width: 50px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bet-quick-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
    border-color: rgba(102, 126, 234, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.5);
}

.bet-quick-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #f1c40f;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.6);
    color: #fff !important;
}

.bet-multiplier {
    display: block;
    font-size: 11px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bet-quick-btn.active .bet-multiplier {
    color: #f1c40f;
    font-weight: bold;
}

.bet-btn {
    padding: 8px 16px;
    border: 2px solid rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    color: #fff !important;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 70px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bet-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
    border-color: rgba(102, 126, 234, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.5);
}

.bet-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #f1c40f;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.6);
    color: #fff !important;
}

.bet-display {
    color: white;
    font-size: 14px;
    margin-top: 5px;
}

.bet-display strong {
    color: #f1c40f;
    font-size: 16px;
}

.olympus-grid-wrapper, .bonanza-grid-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.olympus-grid, .bonanza-grid {
    display: grid;
    gap: 5px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 10px;
}

.olympus-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
}

.bonanza-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
}

.olympus-cell, .bonanza-cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.olympus-cell:hover, .bonanza-cell:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.symbol-emoji {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.olympus-controls, .bonanza-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.olympus-btn, .bonanza-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.olympus-btn.spin-btn, .bonanza-btn.spin-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.olympus-btn.auto-btn, .bonanza-btn.auto-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.olympus-btn.stop-btn, .bonanza-btn.stop-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.olympus-btn.buy-btn, .bonanza-btn.buy-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.olympus-btn:hover:not(:disabled), .bonanza-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.olympus-btn:disabled, .bonanza-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.olympus-result, .bonanza-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.olympus-result.success, .bonanza-result.success {
    background: rgba(39, 174, 96, 0.3);
    color: white;
    border: 2px solid #27ae60;
}

.olympus-result.error, .bonanza-result.error {
    background: rgba(231, 76, 60, 0.3);
    color: white;
    border: 2px solid #e74c3c;
}

.olympus-packages, .bonanza-packages {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.olympus-packages h3, .bonanza-packages h3 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.package-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    position: relative;
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.package-name {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.package-price {
    color: #f1c40f;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.package-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.5);
}

.package-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.package-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.close-packages-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.close-packages-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Reaction Time Game Styles */
.reaction-time-game {
    padding: 15px;
    max-width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    min-height: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.reaction-header {
    margin-bottom: 15px;
    text-align: center;
}

.reaction-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.chull-logo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reaction-header h2 {
    color: white;
    font-size: 24px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.reaction-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.reaction-main-area {
    width: 100%;
    min-height: 50vh;
    max-height: 60vh;
    background: #e74c3c;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 15px;
    position: relative;
}

.reaction-main-area.ready {
    background: #27ae60;
}

.reaction-main-area.error {
    background: #e74c3c;
    animation: shake 0.5s;
}

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

.reaction-instruction {
    text-align: center;
    color: white;
    padding: 20px;
}

.instruction-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.chull-logo-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.instruction-content h3 {
    font-size: 24px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.instruction-content p {
    font-size: 16px;
    margin: 5px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.instruction-hint {
    font-size: 14px;
    opacity: 0.8;
}

.reaction-time-display {
    text-align: center;
    color: white;
    padding: 20px;
}

.time-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.time-label {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.time-value {
    font-size: 48px;
    font-weight: bold;
    color: #f1c40f;
    text-shadow: 0 2px 8px rgba(241, 196, 15, 0.8);
}

.time-unit {
    font-size: 24px;
    margin-left: 5px;
}

.time-message {
    font-size: 16px;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.reaction-error {
    display: none;
    text-align: center;
    color: white;
    padding: 20px;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.error-content h3 {
    font-size: 28px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.error-content p {
    font-size: 18px;
    margin: 5px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.error-hint {
    font-size: 14px;
    opacity: 0.8;
}

.reaction-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.reaction-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.reaction-btn.start-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.reaction-btn.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

.reaction-btn.retry-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.reaction-btn.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.reaction-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.reaction-result.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.reaction-result.error {
    background: #ffebee;
    color: #c62828;
}

/* Tower Game Styles */
.tower-game-container {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    max-width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tower-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tower-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.chull-logo-tower {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tower-score {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.score-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: bold;
}

.score-value {
    color: #f1c40f;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#towerCanvas {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: rgba(0, 0, 0, 0.2);
    touch-action: none;
}

.tower-game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 3px solid #f1c40f;
}

.tower-game-over h3 {
    color: #f1c40f;
    font-size: 28px;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tower-game-over p {
    color: white;
    font-size: 18px;
    margin: 10px 0;
}

.tower-game-over span {
    color: #f1c40f;
    font-weight: bold;
}

.tower-restart-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    transition: all 0.3s;
}

.tower-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

.tower-instructions {
    margin-top: 15px;
    text-align: center;
}

.tower-instructions p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 480px) {
    .tower-game-container {
        padding: 10px;
        min-height: 85vh;
    }
    
    .tower-header h2 {
        font-size: 20px;
    }
    
    .chull-logo-tower {
        width: 35px;
        height: 35px;
    }
    
    .tower-score {
        gap: 15px;
        padding: 8px 15px;
    }
    
    .score-value {
        font-size: 18px;
    }
    
    .tower-game-over {
        padding: 20px;
        width: 90%;
        max-width: 300px;
    }
    
    .tower-game-over h3 {
        font-size: 24px;
    }
    
    .tower-game-over p {
        font-size: 16px;
    }
    
    .olympus-grid-wrapper, .bonanza-grid-wrapper {
        max-width: 100%;
    }
    
    .olympus-grid, .bonanza-grid {
        gap: 3px;
        padding: 5px;
    }
    
    .olympus-cell, .bonanza-cell {
        font-size: 24px;
    }
    
    .symbol-emoji {
        font-size: 24px;
    }
    
    .olympus-controls, .bonanza-controls {
        gap: 8px;
    }
    
    .olympus-btn, .bonanza-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .olympus-stats, .bonanza-stats {
        gap: 8px;
    }
    
    .stat-item {
        padding: 8px 12px;
        min-width: 80px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .bet-input-wrapper {
        gap: 4px;
    }
    
    .bet-input {
        width: 80px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .bet-quick-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 45px;
    }
    
    .bet-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 55px;
    }
    
    .bonanza-bet-section, .olympus-bet-section {
        padding: 10px;
    }
}

    .reaction-main-area {
        min-height: 40vh;
        max-height: 50vh;
    }
    
    .reaction-time-game {
        max-height: 95vh;
        padding: 10px;
    }
    
    .reaction-header h2 {
        font-size: 20px;
    }
    
    .chull-logo-small {
        width: 30px;
        height: 30px;
    }
    
    .chull-logo-large {
        width: 50px;
        height: 50px;
    }
    
    .time-value {
        font-size: 36px;
    }
    
    .reaction-btn {
        padding: 12px 24px;
        font-size: 16px;
        min-width: 120px;
    }
}

/* Chull Memory Game Styles */
.memory-game-container {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    max-width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.memory-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #fff;
}

.memory-header h2 {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.chull-logo-memory {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.memory-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.memory-stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.memory-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.memory-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 500px;
    width: 100%;
    margin-bottom: 20px;
}

.memory-card {
    aspect-ratio: 1;
    cursor: pointer;
    perspective: 1000px;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.memory-card-front {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    transform: rotateY(0deg);
}

.memory-card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: rotateY(180deg);
}

.memory-card-matched .memory-card-back {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    opacity: 0.8;
}

.memory-card-back-icon {
    font-size: 36px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.memory-card-icon {
    font-size: 48px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.memory-game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.memory-game-over-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 400px;
}

.memory-game-over-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.memory-final-time,
.memory-final-moves,
.memory-final-reward {
    font-size: 18px;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

.memory-final-reward {
    font-size: 20px;
    font-weight: bold;
    color: #f1c40f;
    margin-top: 20px;
}

.memory-restart-btn {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #333;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.memory-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.memory-restart-btn:active {
    transform: translateY(0);
}

/* Memory Game Responsive */
@media (max-width: 768px) {
    .memory-game-container {
        padding: 10px;
        min-height: 85vh;
    }
    
    .memory-header h2 {
        font-size: 20px;
    }
    
    .chull-logo-memory {
        width: 30px;
        height: 30px;
    }
    
    .memory-stats {
        gap: 10px;
    }
    
    .memory-stat-item {
        padding: 8px 15px;
        min-width: 70px;
    }
    
    .memory-stat-label {
        font-size: 11px;
    }
    
    .memory-stat-value {
        font-size: 18px;
    }
    
    .memory-grid {
        gap: 8px;
        max-width: 100%;
    }
    
    .memory-card-icon {
        font-size: 36px;
    }
    
    .memory-card-back-icon {
        font-size: 28px;
    }
    
    .memory-game-over-content {
        padding: 20px;
        width: 90%;
    }
    
    .memory-game-over-content h3 {
        font-size: 24px;
    }
    
    .memory-final-time,
    .memory-final-moves,
    .memory-final-reward {
        font-size: 16px;
    }
    
    .memory-restart-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* ===========================================
   Daily Reward Section
   =========================================== */

.daily-reward-section {
    margin-bottom: 40px;
}

.daily-reward-section h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.daily-reward-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.daily-reward-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.daily-reward-day {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.daily-reward-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.daily-reward-day.claimed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.daily-reward-day.current {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-color: #ffc107;
    animation: pulse-current 2s ease-in-out infinite;
}

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

.day-number {
    font-size: 16px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 5px;
}

.day-reward {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

.daily-reward-day.claimed .day-reward {
    color: #28a745;
}

.day-check {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 20px;
    color: #28a745;
}

.daily-reward-status {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #495057;
}

.coupon-card {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coupon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.coupon-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.coupon-streak {
    font-weight: 700;
    color: #ef4444;
    background: #fff5f5;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #fecaca;
}

.coupon-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coupon-input-row input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
}

.coupon-input-row input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.coupon-status {
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.coupon-status.success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.coupon-status.warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.coupon-status.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecdd3;
}

.coupon-status.info {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.btn-community {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-community:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

/* ===========================================
   Referral Section
   =========================================== */

.referral-section {
    margin-bottom: 40px;
}

.referral-section h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.referral-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.referral-code-display {
    text-align: center;
    margin-bottom: 20px;
}

.referral-code-display p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.referral-code {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 30px;
    border-radius: 12px;
    border: 2px dashed #667eea;
    display: inline-block;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.referral-stats .stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.referral-stats .stat-item span:first-child {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 600;
}

.referral-stats .stat-item span:last-child {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

/* ===========================================
   Leaderboard Section
   =========================================== */

.leaderboard-section {
    margin-bottom: 40px;
}

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.leaderboard-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.leaderboard-entry.current-user {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-color: #ffc107;
    border-width: 2px;
}

.leaderboard-entry .rank {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    min-width: 50px;
}

.leaderboard-entry .username {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 0 15px;
}

.leaderboard-entry .points {
    font-size: 16px;
    font-weight: 700;
    color: #f39c12;
}

/* Top 3 special styling */
.leaderboard-entry:nth-child(1) .rank {
    color: #ffd700;
    font-size: 24px;
}

.leaderboard-entry:nth-child(2) .rank {
    color: #c0c0c0;
    font-size: 22px;
}

.leaderboard-entry:nth-child(3) .rank {
    color: #cd7f32;
    font-size: 22px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .daily-reward-calendar {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-entry {
        padding: 12px 15px;
    }
    
    .leaderboard-entry .rank {
        min-width: 40px;
        font-size: 18px;
    }
    
    .leaderboard-entry .username {
        font-size: 14px;
    }
    
    .leaderboard-entry .points {
        font-size: 14px;
    }
}
