/* ═══════════════════════════════════════
   QUANTUM DESIGN SYSTEM
   Glass morphism + Holographic effects
   ═══════════════════════════════════════ */

/* Base quantum variables */
:root {
    --quantum-blur: 20px;
    --quantum-border: rgba(255,255,255,0.1);
    --quantum-glow-cyan: rgba(0,255,255,0.3);
    --quantum-glow-magenta: rgba(255,0,255,0.3);
    --quantum-glass: rgba(255,255,255,0.03);
    --quantum-glass-hover: rgba(255,255,255,0.06);
}

/* Quantum glass effect for all cards */
.card,
.stat-card,
.claim-section,
.prediction-game,
.sponsor-info,
.sponsor-banner,
#wallet-section,
#calculator-card,
#apex-reactor,
.referral-section,
.milestone-box,
.leaderboard-section {
    background: var(--quantum-glass) !important;
    backdrop-filter: blur(var(--quantum-blur)) !important;
    -webkit-backdrop-filter: blur(var(--quantum-blur)) !important;
    border: 1px solid var(--quantum-border) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Holographic shimmer on all cards */
.card::before,
.stat-card::before,
.claim-section::before,
.prediction-game::before,
.sponsor-info::before,
.sponsor-banner::before,
#wallet-section::before,
#calculator-card::before,
.referral-section::before,
.milestone-box::before,
.leaderboard-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.05) 45%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: holo-shine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes holo-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Quantum border glow */
.card::after,
.stat-card::after,
.claim-section::after,
.prediction-game::after,
.sponsor-info::after,
#wallet-section::after,
#calculator-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(0,255,255,0.1) 25%,
        transparent 50%,
        rgba(255,0,255,0.1) 75%,
        transparent 100%
    );
    animation: quantum-rotate 10s linear infinite;
    z-index: -1;
    border-radius: inherit;
    opacity: 0.5;
}

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

/* Hover states with glow */
.card:hover,
.stat-card:hover,
.claim-section:hover,
.prediction-game:hover,
.sponsor-info:hover,
#wallet-section:hover {
    background: var(--quantum-glass-hover) !important;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        0 0 30px rgba(0,255,255,0.1),
        inset 0 0 30px rgba(0,255,255,0.05) !important;
    transform: translateY(-2px);
}

/* Quantum buttons - apply to all buttons */
button:not(.quantum-btn):not(.color-orb):not(#close-healing-btn) {
    position: relative;
    background: var(--quantum-glass) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--quantum-border) !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

button:not(.quantum-btn):not(.color-orb):not(#close-healing-btn)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.1) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: holo-shine 3s ease-in-out infinite;
    pointer-events: none;
}

button:not(.quantum-btn):not(.color-orb):not(#close-healing-btn):hover {
    box-shadow: 0 0 25px rgba(0,255,255,0.3) !important;
    transform: translateY(-2px);
}

/* Claim button special treatment */
.claim-btn {
    background: linear-gradient(135deg, rgba(255,0,100,0.3), rgba(100,0,255,0.3)) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    box-shadow: 
        0 0 30px rgba(255,0,100,0.2),
        inset 0 0 20px rgba(255,255,255,0.05) !important;
}

.claim-btn:hover {
    background: linear-gradient(135deg, rgba(255,0,100,0.5), rgba(100,0,255,0.5)) !important;
    box-shadow: 
        0 0 50px rgba(255,0,100,0.4),
        0 0 80px rgba(100,0,255,0.3),
        inset 0 0 30px rgba(255,255,255,0.1) !important;
}

/* Download button quantum style */
#wallet-section a {
    background: linear-gradient(135deg, rgba(255,50,50,0.4), rgba(255,100,50,0.4)) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#wallet-section a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: holo-shine 2s ease-in-out infinite;
}

#wallet-section a:hover {
    box-shadow: 0 0 40px rgba(255,50,50,0.5) !important;
    transform: translateY(-3px) scale(1.02);
}

/* Stat cards special glow */
.stat-card {
    border: 1px solid rgba(0,255,255,0.2) !important;
}

.stat-card:hover {
    border-color: rgba(0,255,255,0.5) !important;
    box-shadow: 0 0 40px rgba(0,255,255,0.2) !important;
}

.stat-value {
    text-shadow: 0 0 20px currentColor !important;
}

/* Color orbs quantum glow */
.color-orb {
    box-shadow: 
        0 0 20px currentColor,
        inset 0 0 15px rgba(255,255,255,0.2) !important;
    transition: all 0.3s ease;
}

.color-orb:hover {
    transform: scale(1.15);
    box-shadow: 
        0 0 40px currentColor,
        0 0 60px currentColor,
        inset 0 0 20px rgba(255,255,255,0.3) !important;
}

/* Input fields quantum style */
input[type="text"],
input[type="number"],
.wallet-input {
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(0,255,255,0.3) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
.wallet-input:focus {
    border-color: rgba(0,255,255,0.8) !important;
    box-shadow: 
        0 0 20px rgba(0,255,255,0.3),
        inset 0 0 10px rgba(0,255,255,0.1) !important;
    outline: none;
}

/* Sliders quantum style */
input[type="range"] {
    -webkit-appearance: none;
    background: rgba(0,255,255,0.2);
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #0ff, #f0f);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0,255,255,0.8);
}

/* Floating particles background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0,255,255,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,0,255,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0,100,255,0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Scanlines for extra tech feel */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.03) 0px,
        rgba(0,0,0,0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9998;
}

/* Logo quantum glow */
.logo {
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px rgba(255,0,100,0.5) !important;
}

/* Sponsor text shimmer */
.sponsor-text {
    background: linear-gradient(90deg, #fff, #0ff, #f0f, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 3s linear infinite;
}

@keyframes text-shimmer {
    to { background-position: 200% center; }
}

/* Footer quantum style */
.footer {
    background: var(--quantum-glass);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--quantum-border);
}

/* ═══════════════════════════════════════
   COIN CAPTCHA GAME - Quantum Style
   ═══════════════════════════════════════ */
#coin-captcha-container,
.captcha-game-area {
    background: var(--quantum-glass) !important;
    backdrop-filter: blur(var(--quantum-blur)) !important;
    -webkit-backdrop-filter: blur(var(--quantum-blur)) !important;
    border: 1px solid var(--quantum-border) !important;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

#coin-captcha-container::before,
.captcha-game-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.05) 45%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: holo-shine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

#coin-game-field {
    background: linear-gradient(180deg, rgba(0,20,40,0.8), rgba(0,10,20,0.9)) !important;
    border: 1px solid rgba(0,255,255,0.2) !important;
    box-shadow: inset 0 0 50px rgba(0,255,255,0.1) !important;
}

#start-game-btn {
    background: linear-gradient(135deg, rgba(0,255,255,0.3), rgba(255,0,255,0.3)) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #fff !important;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0,255,255,0.3) !important;
}

#start-game-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: holo-shine 2s ease-in-out infinite;
}

#start-game-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 50px rgba(0,255,255,0.5),
        0 0 80px rgba(255,0,255,0.3) !important;
}

.coin-progress {
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(0,255,255,0.3) !important;
    border-radius: 10px;
    overflow: hidden;
}

#coin-progress-bar {
    background: linear-gradient(90deg, #0ff, #f0f, #0ff) !important;
    background-size: 200% 100%;
    animation: progress-shimmer 2s linear infinite;
    box-shadow: 0 0 20px rgba(0,255,255,0.5);
}

@keyframes progress-shimmer {
    to { background-position: 200% 0; }
}

.falling-coin {
    filter: drop-shadow(0 0 10px gold) drop-shadow(0 0 20px rgba(255,200,0,0.5)) !important;
}

.captcha-header h3 {
    text-shadow: 0 0 20px currentColor !important;
}

/* ═══════════════════════════════════════
   DREAM CALCULATOR - Quantum Override
   ═══════════════════════════════════════ */
#calculator-card {
    background: var(--quantum-glass) !important;
    backdrop-filter: blur(var(--quantum-blur)) !important;
    -webkit-backdrop-filter: blur(var(--quantum-blur)) !important;
    border: 1px solid rgba(255,215,0,0.3) !important;
    box-shadow: 
        0 0 30px rgba(255,215,0,0.2),
        inset 0 0 50px rgba(255,215,0,0.05) !important;
}

#calculator-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,215,0,0.1) 45%,
        rgba(255,215,0,0.15) 50%,
        rgba(255,215,0,0.1) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: holo-shine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

#calculator-card:hover {
    box-shadow: 
        0 0 50px rgba(255,215,0,0.3),
        0 0 80px rgba(255,215,0,0.2),
        inset 0 0 60px rgba(255,215,0,0.1) !important;
    transform: translateY(-2px);
}

#calculator-card h3 {
    background: linear-gradient(90deg, #FFD700, #fff, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 3s linear infinite;
}

/* Calculator result boxes */
#calculator-card > div > div {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,215,0,0.2) !important;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════
   STAKING SECTION - Quantum Style  
   ═══════════════════════════════════════ */
#staking-section,
.staking-card {
    background: var(--quantum-glass) !important;
    backdrop-filter: blur(var(--quantum-blur)) !important;
    -webkit-backdrop-filter: blur(var(--quantum-blur)) !important;
    border: 1px solid var(--quantum-border) !important;
    position: relative;
    overflow: hidden;
}

#staking-section::before,
.staking-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.05) 45%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: holo-shine 4s ease-in-out infinite;
    pointer-events: none;
}

#connect-wallet-btn,
#stake-btn {
    background: linear-gradient(135deg, rgba(0,255,255,0.3), rgba(0,128,255,0.3)) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    position: relative;
    overflow: hidden;
}

#connect-wallet-btn::before,
#stake-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: holo-shine 2s ease-in-out infinite;
}

#connect-wallet-btn:hover,
#stake-btn:hover {
    box-shadow: 0 0 40px rgba(0,255,255,0.4) !important;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   REFERRAL SECTION - Quantum Style
   ═══════════════════════════════════════ */
.referral-section,
#referral-container,
.ref-card {
    background: var(--quantum-glass) !important;
    backdrop-filter: blur(var(--quantum-blur)) !important;
    border: 1px solid rgba(255,0,255,0.2) !important;
}

.referral-section::before,
#referral-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,0,255,0.05) 45%,
        rgba(255,0,255,0.1) 50%,
        rgba(255,0,255,0.05) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: holo-shine 4s ease-in-out infinite;
    pointer-events: none;
}

/* Marquee quantum glow */
.marquee-container {
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,0,255,0.3) !important;
    box-shadow: inset 0 0 30px rgba(255,0,255,0.1);
}

.marquee-text {
    text-shadow: 0 0 10px currentColor;
}

/* Leaderboard quantum */
.leaderboard-section {
    border: 1px solid rgba(255,215,0,0.2) !important;
}

.leaderboard-section::before {
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,215,0,0.05) 45%,
        rgba(255,215,0,0.1) 50%,
        rgba(255,215,0,0.05) 55%,
        transparent 60%
    ) !important;
}

/* ═══════════════════════════════════════
   FORCE QUANTUM ON REACTOR
   ═══════════════════════════════════════ */
.reactor-container {
    background: rgba(255,255,255,0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0,255,255,0.2) !important;
    position: relative;
    overflow: hidden;
}

.reactor-container::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(0,255,255,0.05) 45%,
        rgba(0,255,255,0.1) 50%,
        rgba(0,255,255,0.05) 55%,
        transparent 60%
    ) !important;
    background-size: 200% 100% !important;
    animation: holo-shine 4s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.reactor-container:hover {
    box-shadow: 
        0 0 40px rgba(0,255,255,0.2),
        inset 0 0 30px rgba(0,255,255,0.05) !important;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   FORCE QUANTUM ON COIN CAPTCHA
   ═══════════════════════════════════════ */
#coin-captcha-container {
    background: rgba(255,255,255,0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0,255,255,0.2) !important;
    border-radius: 15px !important;
    position: relative !important;
    overflow: hidden !important;
}

#coin-captcha-container::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.05) 45%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 55%,
        transparent 60%
    ) !important;
    background-size: 200% 100% !important;
    animation: holo-shine 4s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.captcha-game-area {
    background: transparent !important;
}

#coin-game-field {
    background: rgba(0,20,40,0.5) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0,255,255,0.3) !important;
    box-shadow: inset 0 0 50px rgba(0,255,255,0.1) !important;
}

/* ═══════════════════════════════════════
   FORCE QUANTUM ON DREAM CALCULATOR
   ═══════════════════════════════════════ */
#calculator-card {
    background: rgba(255,255,255,0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,215,0,0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

#calculator-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,215,0,0.08) 45%,
        rgba(255,215,0,0.12) 50%,
        rgba(255,215,0,0.08) 55%,
        transparent 60%
    ) !important;
    background-size: 200% 100% !important;
    animation: holo-shine 4s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

#calculator-card:hover {
    box-shadow: 
        0 0 40px rgba(255,215,0,0.2),
        inset 0 0 30px rgba(255,215,0,0.05) !important;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   FORCE QUANTUM ON WALLET DOWNLOAD
   ═══════════════════════════════════════ */
#wallet-section {
    background: rgba(255,255,255,0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,100,100,0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

#wallet-section::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,100,100,0.05) 45%,
        rgba(255,100,100,0.1) 50%,
        rgba(255,100,100,0.05) 55%,
        transparent 60%
    ) !important;
    background-size: 200% 100% !important;
    animation: holo-shine 4s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* REACTOR - Force quantum transparency */
.reactor-container,
#reactor-wrapper,
[class*="reactor-container"] {
    background: rgba(10, 10, 30, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 255, 255, 0.3) !important;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 0 50px rgba(0, 255, 255, 0.05) !important;
}

.reactor-container::before,
#reactor-wrapper::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(0, 255, 255, 0.08) 45%,
        rgba(0, 255, 255, 0.12) 50%,
        rgba(0, 255, 255, 0.08) 55%,
        transparent 60%
    ) !important;
    background-size: 200% 100% !important;
    animation: holo-shine 4s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
    border-radius: 20px !important;
}

/* Dream Calculator - quantum glass */
#calculator-card {
    background: rgba(10, 10, 30, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 20px !important;
    margin: 30px 15px !important;
    padding: 25px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.15),
        inset 0 0 50px rgba(255, 215, 0, 0.05) !important;
}

#calculator-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 215, 0, 0.08) 45%,
        rgba(255, 215, 0, 0.12) 50%,
        rgba(255, 215, 0, 0.08) 55%,
        transparent 60%
    ) !important;
    background-size: 200% 100% !important;
    animation: holo-shine 4s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
    border-radius: 20px !important;
}
