/* Glassmorphism Framework Parameters */
.premium-glass {
    background: linear-gradient(145deg, rgba(20, 25, 40, 0.75) 0%, rgba(10, 14, 25, 0.85) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-btn {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 209, 255, 0.35) !important;
    background: transparent !important;
    z-index: 1;
}

.premium-btn .btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ton), var(--ton2));
    z-index: -1;
    transition: opacity 0.3s ease;
}

.premium-btn:active .btn-bg { opacity: 0.85; }

.premium-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    animation: shineEffect 3.5s infinite;
    z-index: -1;
}

@keyframes shineEffect {
    0% { left: -100%; }
    25% { left: 200%; }
    100% { left: 200%; }
}

/* Sub-Navigation Controls */
.sub-tabs-nav { display: flex; background: rgba(0, 0, 0, 0.4); border-radius: 20px; padding: 6px; margin-bottom: 24px; gap: 6px; }
.sub-tab-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0; background: none; border: none; color: var(--text2); font-size: 13px; font-weight: 700; cursor: pointer; border-radius: 14px; transition: all 0.25s ease; }
.sub-tab-item svg { width: 18px; height: 18px; }
.sub-tab-item.active { background: rgba(0, 136, 204, 0.2); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: 1px solid rgba(0, 209, 255, 0.25); }
.sub-tab-item.active svg { color: #00D1FF; filter: drop-shadow(0 0 6px #00D1FF); }

.sub-page { display: none; animation: subPageIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.sub-page.active { display: block; }
@keyframes subPageIn { from{opacity:0; transform:translateY(12px)} to{opacity:1; transform:translateY(0)} }

/* Balance Capsule Additions */
.balance-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 180px; height: 180px; background: radial-gradient(circle, rgba(0, 136, 204, 0.25) 0%, transparent 70%); pointer-events: none; }
.premium-badge { background: rgba(0, 209, 255, 0.08); border: 1px solid rgba(0, 209, 255, 0.25); }

/* Mining Center Mechanics Layout */
#tap-area { position: relative; display: flex; flex-direction: column; align-items: center; margin: 36px 0 30px; }
.circle-progress-container { position: relative; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center; }

.hud-ring { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }
.ring-1 { animation: rotateR 25s linear infinite; opacity: 0.5; }
.ring-2 { animation: rotateL 20s linear infinite; width: 184px; height: 184px; top: 13px; left: 13px; }
.ring-3 { animation: rotateR 15s linear infinite; width: 154px; height: 154px; top: 28px; left: 28px; opacity: 0.7; }

@keyframes rotateR { 100% { transform: rotate(360deg); } }
@keyframes rotateL { 100% { transform: rotate(-360deg); } }

.progress-ring { position: absolute; top: 15px; left: 15px; transform: rotate(-90deg); pointer-events: none; filter: drop-shadow(0 0 10px rgba(0, 209, 255, 0.45)); }
.progress-ring__circle { transition: stroke-dashoffset 0.35s ease-out; transform-origin: 50% 50%; stroke-linecap: round; }

#big-ton { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #00A3E0, #006699); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 12px 32px var(--ton-glow), inset 0 2px 6px rgba(255,255,255,0.4); transition: transform 0.08s cubic-bezier(0.4, 0, 0.2, 1); animation: pulse 2.5s infinite; position: relative; z-index: 2; }
.btn-glow { position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 209, 255, 0.5) 0%, transparent 60%); opacity: 0.6; z-index: -1; }
#big-ton:active { transform: scale(0.93); box-shadow: 0 4px 16px var(--ton-glow), inset 0 2px 6px rgba(255,255,255,0.2); }
#big-ton svg { width: 75px; height: 75px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35)); }
@keyframes pulse { 0%, 100%{box-shadow:0 0 40px var(--ton-glow)} 50%{box-shadow:0 0 60px rgba(0,136,204,0.75)} }

/* Tap Particles and Text Updates */
.tap-ripple { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--ton); animation: ripple 0.65s cubic-bezier(0.25, 0.8, 0.25, 1); pointer-events: none; z-index: 1; top: 50%; left: 50%; margin-top: -60px; margin-left: -60px; }
@keyframes ripple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.float-reward { position: absolute; color: #00D1FF; font-weight: 800; font-size: 24px; animation: floatUp 0.9s ease-out forwards; pointer-events: none; text-shadow: 0 4px 12px rgba(0,136,204,0.7); z-index: 3; }
@keyframes floatUp { 0%{opacity:0; transform:translateY(0) scale(0.7)} 20%{opacity:1; transform:translateY(-15px) scale(1.15)} 100%{transform:translateY(-90px) scale(1); opacity:0} }

.tap-hint { margin-top: 24px; font-size: 13px; font-weight: 800; color: #00D1FF; letter-spacing: 2px; }
.tap-counter { font-size: 12px; background: rgba(0,136,204,0.15); border: 1px solid rgba(0,136,204,0.3); padding: 5px 14px; border-radius: 20px; color: #fff; margin-top: 10px; font-weight: 700; }
#big-ton.disabled { animation: none; opacity: 0.5; pointer-events: none; box-shadow: 0 0 15px rgba(0,136,204,.1); }

/* Streak Parameters */
.streak-section { margin: 12px 0 28px; width: 100%; }
.streak-grid { display: flex; gap: 8px; padding: 4px 0 10px; justify-content: space-between; overflow-x: auto; flex-wrap: nowrap; }
.streak-grid::-webkit-scrollbar { display: none; }
.streak-card { flex: 0 0 68px; background: rgba(10, 15, 25, 0.6); border: 1px solid var(--border); border-radius: 16px; padding: 14px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.card-glass { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0)); z-index: 0; }
.streak-card > * { position: relative; z-index: 1; }
.streak-card.claimed { background: rgba(0, 230, 118, 0.1); border-color: rgba(0, 230, 118, 0.25); }
.streak-card.claimed .streak-day { color: var(--ton); }
.streak-card.claimed .streak-icn { color: #00E676; font-weight: 800; font-size: 13px; }
.streak-card.active { background: rgba(0, 209, 255, 0.15); border-color: #00D1FF; box-shadow: 0 0 14px rgba(0, 209, 255, 0.3); transform: translateY(-3px); }
.streak-card.active .streak-day { color: #00D1FF; font-weight: 700; }
.streak-card.locked { opacity: 0.45; filter: grayscale(1); }
.streak-day { font-size: 11px; font-weight: 600; color: var(--text2); }
.streak-icn { font-size: 18px; margin: 2px 0; }
.streak-rw { font-size: 11px; font-weight: 700; color: var(--text2); }
.streak-card.active .streak-rw { color: #fff; }

/* Reward Module Box */
.reward-box { border-radius: 20px; padding: 18px; text-align: center; margin-bottom: 24px; }
.reward-box-title { font-size: 12px; color: #00D1FF; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 700; }
.reward-box-value { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.reward-box .claim-btn.secondary { margin-bottom: 0; }

/* Active Miners Dashboard Components */
.dashboard-hud-mini { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.hud-mini-label { font-size: 10px; font-weight: 700; color: var(--text2); letter-spacing: 1px; }
.hud-mini-value { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }

.miner-cards-container { display: flex; flex-direction: column; gap: 14px; }
.miner-card { border-radius: 20px; padding: 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; transition: transform 0.2s ease; }
.miner-card:active { transform: scale(0.98); }
.card-glow { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; filter: blur(30px); opacity: 0.4; pointer-events: none; }
.miner-card.common .card-glow { background: rgba(100, 150, 255, 0.4); }
.miner-card.epic .card-glow { background: rgba(183, 0, 255, 0.5); }

/* Legendary Card specifics */
.miner-card.legendary { border-color: rgba(255, 170, 0, 0.4); box-shadow: 0 8px 30px rgba(255, 170, 0, 0.15); }
.miner-card.legendary .card-glow { background: rgba(255, 170, 0, 0.5); }

.miner-header { display: flex; justify-content: space-between; align-items: center; }
.miner-title { font-size: 15px; font-weight: 800; }
.miner-rarity { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 8px; text-transform: uppercase; }
.miner-card.common .miner-rarity { background: rgba(100, 150, 255, 0.1); color: #8bb0ff; border: 1px solid rgba(100, 150, 255, 0.2); }
.miner-card.epic .miner-rarity { background: rgba(183, 0, 255, 0.1); color: #d77bff; border: 1px solid rgba(183, 0, 255, 0.2); }
.miner-card.legendary .miner-rarity { background: rgba(255, 170, 0, 0.1); color: #ffd166; border: 1px solid rgba(255, 170, 0, 0.2); }

.miner-body { display: flex; gap: 14px; align-items: center; }
.miner-visual { width: 70px; height: 70px; background: rgba(0,0,0,0.4); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; box-shadow: inset 0 4px 12px rgba(0,0,0,0.5); }

.fan-spin { animation: spin 1.2s linear infinite; transform-origin: center; }
.core-pulse { animation: breathe 1.8s infinite alternate; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes breathe { 0% { opacity: 0.4; } 100% { opacity: 1; filter: drop-shadow(0 0 10px currentColor); } }

.miner-stats { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.stat-label { color: var(--text2); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.stat-val { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.status-dot { width: 6px; height: 6px; background: #00E676; border-radius: 50%; box-shadow: 0 0 6px #00E676; }

.btn-upgrade { width: 100%; height: 42px; border: none; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; }

/* Refer Dashboard Extensions */
.premium-input { background: rgba(0,0,0,0.4) !important; border: 1px solid rgba(255,255,255,0.08) !important; }
