:root {
    --neon-pink: #ff2d95;
    --neon-cyan: #00f7ff;
    --neon-gold: #ffd700;
    --neon-green: #39ff14;
    --neon-purple: #bf00ff;
    --bg-dark: #0a0a12;
    --bg-card: #12121f;
    --bg-accent: #1a1a2e;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255,45,149,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0,247,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(191,0,255,0.1) 0%, transparent 70%);
    z-index: -1;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

header {
    background: linear-gradient(180deg, rgba(18,18,31,0.98) 0%, rgba(10,10,18,0.95) 100%);
    border-bottom: 2px solid var(--neon-pink);
    padding: 8px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 30px rgba(255,45,149,0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dice {
    font-size: 1.6rem;
    animation: rotateDice 3s ease-in-out infinite;
}

@keyframes rotateDice {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.wallet-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-display {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,45,149,0.2));
    border: 1px solid var(--neon-gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-gold);
    display: none;
}

.balance-display.show { display: block; }

.btn-wallet {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-wallet:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255,45,149,0.6);
}

.btn-disconnect {
    background: transparent;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 15px;
    color: #888;
    font-size: 0.7rem;
    cursor: pointer;
}

.btn-disconnect:hover { border-color: #f44; color: #f44; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 15px;
}

@media (max-width: 1000px) {
    .container { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ad-box {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-accent));
    border: 1px dashed #333;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ad-box::before {
    content: 'AD SPACE';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 1px;
}

.ad-promo {
    background: linear-gradient(135deg, rgba(57,255,20,0.1), rgba(0,247,255,0.1));
    border: 1px solid var(--neon-green);
}

.ad-promo h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--neon-green);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ad-promo p {
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.4;
}

.ad-promo .promo-code {
    background: var(--bg-dark);
    border: 1px dashed var(--neon-green);
    padding: 8px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--neon-green);
    font-size: 0.9rem;
}

.ad-nft {
    background: linear-gradient(135deg, rgba(191,0,255,0.1), rgba(255,45,149,0.1));
    border: 1px solid var(--neon-purple);
}

.ad-nft h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--neon-purple);
    font-size: 0.85rem;
}

.nft-preview {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
    border-radius: 10px;
    margin: 10px 0;
    animation: nftGlow 2s ease-in-out infinite;
}

@keyframes nftGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(191,0,255,0.5); }
    50% { box-shadow: 0 0 30px rgba(255,45,149,0.7); }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.membership-banner {
    background: linear-gradient(90deg, var(--bg-card), var(--bg-accent), var(--bg-card));
    border: 1px solid #333;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

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

.tier-card {
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    border: 1px solid #222;
    transition: all 0.3s;
    cursor: pointer;
}

.tier-card:hover { transform: translateY(-3px); }
.tier-card.free { border-color: #666; }
.tier-card.bronze { border-color: #cd7f32; background: linear-gradient(145deg, var(--bg-dark), rgba(205,127,50,0.1)); }
.tier-card.silver { border-color: #c0c0c0; background: linear-gradient(145deg, var(--bg-dark), rgba(192,192,192,0.1)); }
.tier-card.gold { border-color: var(--neon-gold); background: linear-gradient(145deg, var(--bg-dark), rgba(255,215,0,0.15)); box-shadow: 0 0 20px rgba(255,215,0,0.2); }

.tier-name {
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.tier-card.free .tier-name { color: #888; }
.tier-card.bronze .tier-name { color: #cd7f32; }
.tier-card.silver .tier-name { color: #c0c0c0; }
.tier-card.gold .tier-name { color: var(--neon-gold); }

.tier-price { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.tier-spins { font-size: 0.7rem; color: var(--neon-cyan); }
.tier-bonus { font-size: 0.6rem; color: var(--neon-green); margin-top: 4px; }

.game-board {
    background: linear-gradient(145deg, var(--bg-card), #16162a);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.game-board::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.5;
}

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

.game-title { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1.1rem; }
.stats-row { display: flex; gap: 15px; font-size: 0.8rem; }
.stat { display: flex; align-items: center; gap: 5px; }
.stat-value { color: var(--neon-cyan); font-weight: 700; }

.dice-area {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.die {
    width: 65px;
    height: 65px;
    background: linear-gradient(145deg, #fff, #e0e0e0);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a2e;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.8), inset 0 -2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.die.rolling { animation: diceRoll 0.15s infinite; }

@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(0.9); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(0.9); }
    100% { transform: rotate(360deg) scale(1); }
}

.score-display {
    text-align: center;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 1.8rem;
    color: var(--neon-gold);
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
    min-height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roll-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 15px auto 0;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    border-radius: 30px;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 5px 25px rgba(255,45,149,0.4);
}

.roll-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(255,45,149,0.6);
}

.roll-btn:disabled { background: #333; box-shadow: none; cursor: not-allowed; }

.prize-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.prize-tier {
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.prize-tier.gold { border-color: var(--neon-gold); background: linear-gradient(145deg, var(--bg-dark), rgba(255,215,0,0.1)); }
.prize-tier.silver { border-color: #c0c0c0; background: linear-gradient(145deg, var(--bg-dark), rgba(192,192,192,0.08)); }
.prize-tier.bronze { border-color: #cd7f32; background: linear-gradient(145deg, var(--bg-dark), rgba(205,127,50,0.08)); }

.prize-rank { font-size: 1.2rem; margin-bottom: 4px; }
.prize-label { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.prize-tier.gold .prize-label { color: var(--neon-gold); }
.prize-tier.silver .prize-label { color: #c0c0c0; }
.prize-tier.bronze .prize-label { color: #cd7f32; }
.prize-amount { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1rem; font-weight: 700; color: var(--neon-green); }
.prize-req { font-size: 0.65rem; color: #666; margin-top: 2px; }

.friday-banner {
    background: linear-gradient(90deg, rgba(255,215,0,0.1), rgba(255,45,149,0.1), rgba(255,215,0,0.1));
    border: 1px solid var(--neon-gold);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.friday-info { display: flex; align-items: center; gap: 10px; }
.friday-label { font-size: 0.7rem; color: #888; text-transform: uppercase; }
.friday-pool { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--neon-gold); text-shadow: 0 0 15px rgba(255,215,0,0.5); }
.friday-date { font-size: 0.75rem; color: var(--neon-cyan); }

.leaderboard-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #222;
}

.lb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.lb-title { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 0.8rem; color: var(--neon-cyan); }
.lb-live { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; color: var(--neon-green); }
.live-dot { width: 6px; height: 6px; background: var(--neon-green); border-radius: 50%; animation: pulse 1s infinite; }

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

.lb-list { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.lb-row { display: grid; grid-template-columns: 30px 1fr 50px 60px; align-items: center; padding: 6px 8px; background: rgba(255,255,255,0.02); border-radius: 6px; font-size: 0.75rem; }
.lb-row:hover { background: rgba(0,247,255,0.05); }
.lb-rank { text-align: center; }
.lb-player { color: #ccc; }
.lb-score { color: var(--neon-cyan); font-weight: 700; text-align: center; }
.lb-prize { color: var(--neon-green); font-weight: 700; text-align: right; font-size: 0.7rem; }

.activity-section { background: var(--bg-card); border-radius: 12px; padding: 12px; border: 1px solid #222; }
.activity-title { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 0.8rem; color: var(--neon-pink); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.activity-list { display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow-y: auto; }
.activity-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; background: rgba(255,255,255,0.02); border-radius: 6px; font-size: 0.7rem; animation: slideIn 0.3s ease; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.activity-user { color: var(--neon-cyan); }
.activity-result { color: #888; }
.activity-result.win { color: var(--neon-green); }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; z-index: 200; }
.modal.no-dismiss { pointer-events: auto; }

.modal-box {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-accent));
    border: 2px solid var(--neon-pink);
    border-radius: 20px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 60px rgba(255,45,149,0.3);
}

.modal-box h2 {
    font-family: 'Roboto', sans-serif; font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-box p { color: #aaa; font-size: 0.9rem; margin-bottom: 15px; }

.pin-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 2px solid #333;
    border-radius: 10px;
    color: var(--neon-cyan);
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.pin-input:focus { outline: none; border-color: var(--neon-pink); }
.pin-error { color: #f44; font-size: 0.8rem; min-height: 20px; margin-bottom: 10px; }

.modal-btn {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: #fff;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(255,45,149,0.5); }
.modal-btn.secondary { background: transparent; border: 1px solid #555; color: #888; margin-right: 10px; }
.modal-btn.secondary:hover { border-color: #f44; color: #f44; box-shadow: none; }

.win-amount {
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 2.5rem;
    color: var(--neon-gold);
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
    margin: 15px 0;
    animation: winPulse 0.5s ease;
}

@keyframes winPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.disclaimer-scroll {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    margin: 15px 0;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #888;
}

.disclaimer-scroll h4 { color: var(--neon-cyan); margin: 10px 0 5px; font-size: 0.8rem; }

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border-left: 3px solid var(--neon-pink);
    padding: 12px 20px;
    border-radius: 8px;
    transform: translateX(150%);
    transition: transform 0.3s;
    z-index: 300;
    max-width: 300px;
}

.toast.show { transform: translateX(0); }
.toast.success { border-color: var(--neon-green); }
.toast.error { border-color: #f44; }
.toast-title { font-weight: 700; font-size: 0.85rem; }
.toast-msg { font-size: 0.75rem; color: #888; }

/* Payout Section */
.payout-section {
    background: linear-gradient(135deg, rgba(57,255,20,0.1), rgba(255,215,0,0.1));
    border: 2px solid var(--neon-green);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

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

.payout-header span {
    font-size: 1.5rem;
}

.payout-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--neon-green);
}

.payout-subtitle {
    font-size: 0.7rem;
    color: #888;
}

.payout-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.payout-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payout-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.payout-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--neon-gold);
}

.payout-btn {
    background: linear-gradient(135deg, var(--neon-green), #00b812);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(57,255,20,0.4);
}

.payout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(57,255,20,0.6);
}

.payout-btn:disabled {
    background: #333;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
}

.payout-note {
    font-size: 0.7rem;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--neon-pink); border-radius: 2px; }

@media (max-width: 600px) {
    .membership-banner { grid-template-columns: repeat(2, 1fr); }
    .prize-section { grid-template-columns: 1fr; }
    .friday-banner { flex-direction: column; text-align: center; }
    .die { width: 55px; height: 55px; font-size: 1.6rem; }
}
