:root {
    --bg-dark: #0a0a0a;
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #f3e0aa 0%, #d4af37 50%, #aa7c11 100%);
    --red-vip: #8b0000;
    --red-gradient: linear-gradient(135deg, #ff2a2a 0%, #b30000 50%, #7a0000 100%);
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; -webkit-tap-highlight-color: transparent; user-select: none; }
body { background-color: var(--bg-dark); color: var(--text-light); overflow: hidden; height: 100vh; display: flex; justify-content: center; align-items: center; }
.particle-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, #1f1402 0%, #0a0a0a 100%); z-index: 1; }
.app-container { position: relative; z-index: 2; width: 100%; max-width: 430px; height: 100vh; display: flex; flex-direction: column; padding: 20px; justify-content: space-between; }
.app-header { text-align: center; padding: 20px 0; }
.gold-text-logo { font-family: 'Cinzel', serif; font-size: 28px; font-weight: 700; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 2px; }
.vip-badge { display: block; font-size: 10px; letter-spacing: 4px; color: #fff; text-transform: uppercase; margin-top: -2px; opacity: 0.8; }
.view-active { display: flex; flex-direction: column; justify-content: center; align-items: center; flex-grow: 1; animation: fadeIn 0.4s ease-in-out forwards; }
.view-hidden { display: none !important; }
.hero-section { text-align: center; margin-bottom: 40px; }
.casino-crown { font-size: 48px; margin-bottom: 10px; }
.hero-section h1 { font-size: 32px; font-weight: 700; line-height: 1.2; }
.gold-glow { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 20px rgba(212,175,55,0.6); }
.sub-hero { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.btn-primary-gold { background: var(--gold-gradient); color: #000; border: none; padding: 16px; font-weight: 700; border-radius: 30px; font-size: 15px; width: 100%; cursor: pointer; box-shadow: 0 8px 25px rgba(212,175,55,0.4); }
.btn-primary-red { background: var(--red-gradient); color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 16px; font-weight: 700; border-radius: 30px; font-size: 15px; width: 100%; margin-top: 15px; cursor: pointer; box-shadow: 0 8px 25px rgba(187, 0, 0, 0.5); }
.btn-text { background: none; border: none; color: var(--text-muted); font-size: 13px; margin-top: 20px; text-decoration: underline; cursor: pointer; }
.card-premium { background: rgba(20, 20, 20, 0.85); border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 24px; padding: 30px 20px; width: 100%; backdrop-filter: blur(20px); text-align: center; }
.card-premium h3 { font-size: 18px; margin-bottom: 25px; color: var(--gold-primary); }
.input-group input { width: 100%; padding: 16px; background: #000; border: 1px solid #333; border-radius: 12px; color: #fff; font-size: 16px; text-align: center; letter-spacing: 2px; font-weight: 600; outline: none; }
.input-group input:focus { border-color: var(--gold-primary); }
.error-premium-box { color: #ff4d4d; font-size: 12px; font-weight: 600; min-height: 20px; margin-top: 5px; }
.wheel-outer-wrapper { position: relative; width: 340px; height: 340px; margin: 0 auto; }
.wheel-pointer { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 30px solid #ff2a2a; z-index: 10; }
.wheel-glow-ring { position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 50%; border: 6px solid var(--gold-primary); box-shadow: 0 0 30px rgba(212,175,55,0.7); pointer-events: none; z-index: 5; }
#wheel-canvas { width: 100%; height: 100%; border-radius: 50%; background: #111; transform: rotate(0deg); }
#btn-spin-trigger { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; background: var(--gold-gradient); border: 4px solid #111; color: #000; font-weight: 700; font-size: 14px; z-index: 6; cursor: pointer; }
.vip-footer-tip { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 30px; }
.modal-backdrop { position: fixed; top:0; left:0; width:100vw; height:100vh; background: rgba(0,0,0,0.9); z-index: 100; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal-content { background: linear-gradient(180deg, #1f1402 0%, #141414 100%); border: 2px solid var(--gold-primary); width: 85%; max-width: 370px; border-radius: 28px; padding: 30px 20px; text-align: center; }
.modal-crown { font-size: 24px; font-weight: 700; color: var(--gold-primary); margin-bottom: 10px; }
.modal-sub { color: #fff; font-size: 13px; letter-spacing: 2px; }
.modal-prize-amount { font-size: 36px; font-weight: 700; color: #ff2a2a; margin: 15px 0; text-shadow: 0 0 15px rgba(255,42,42,0.5); }
.modal-receipt { background: rgba(0,0,0,0.4); border-radius: 12px; padding: 15px; margin-bottom: 20px; text-align: left; }
.receipt-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.receipt-row span { color: var(--text-muted); }
.badge-used { background: var(--red-vip); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.instruction-text { font-size: 11px; color: var(--text-muted); margin-bottom: 20px; }
.btn-claim-tg { display: block; background: #26a5e4; color: #fff; padding: 14px; text-decoration: none; font-weight: 700; border-radius: 12px; font-size: 14px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
