/* CoinBlast v1.0.3 — Professional UI */
:root {
    --bg-primary: #030309;
    --bg-card: #09091a;
    --bg-card2: #0e0e24;
    --bg-card3: #141433;
    --accent: #f7c948;
    --accent2: #ff5e3a;
    --accent3: #00e5b0;
    --purple: #8b5cf6;
    --blue: #3b9eff;
    --text: #e8e8f8;
    --text-muted: #555575;
    --text-sub: #8888aa;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --glow-gold: 0 0 20px rgba(247,201,72,0.3);
    --glow-green: 0 0 20px rgba(0,229,176,0.25);
    --glow-purple: 0 0 20px rgba(139,92,246,0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 7px;
    --nav-height: 68px;
    --header-height: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    padding-bottom: calc(var(--nav-height) + 16px);
    -webkit-font-smoothing: antialiased;
}

/* Background gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(139,92,246,0.1) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(247,201,72,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(59,158,255,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ===== HEADER ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3,3,9,0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}

.logo {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 15px;
    color: var(--accent);
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
}
.logo-icon {
    width: 28px; height: 28px;
    background: rgba(247,201,72,0.08);
    border: 1px solid rgba(247,201,72,0.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.logo span { color: var(--accent2); }

.header-coins {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(247,201,72,0.07);
    border: 1px solid rgba(247,201,72,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.notif-btn {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}
.notif-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.08); }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    font-size: 8px; min-width: 14px; height: 14px;
    padding: 0 3px;
}

/* Wallet Connect Button */
.wallet-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(59,158,255,0.08);
    border: 1px solid rgba(59,158,255,0.2);
    border-radius: 20px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.wallet-btn.connected {
    background: rgba(0,229,176,0.08);
    border-color: rgba(0,229,176,0.25);
    color: var(--accent3);
}
.wallet-btn:active { transform: scale(0.95); }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 430px;
    background: rgba(3,3,9,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(10px, env(safe-area-inset-bottom));
    z-index: 200;
    height: var(--nav-height);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 10px;
    transition: all 0.2s;
    min-width: 44px;
}
.nav-item svg { width: 19px; height: 19px; transition: all 0.2s; }
.nav-item.active { color: var(--accent); }
.nav-item.active svg {
    filter: drop-shadow(0 0 5px rgba(247,201,72,0.5));
    transform: translateY(-1px);
}

/* ===== PAGE ===== */
.page { position: relative; z-index: 1; padding: 14px; }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.card-premium {
    background: linear-gradient(135deg, #11113a 0%, #090920 100%);
    border: 1px solid rgba(139,92,246,0.2);
    position: relative;
    overflow: hidden;
}
.card-premium::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
    pointer-events: none;
}

.card-gold {
    background: linear-gradient(135deg, #1a1500 0%, #100e00 100%);
    border: 1px solid rgba(247,201,72,0.2);
}

.card-green {
    background: linear-gradient(135deg, #00150f 0%, #000e0a 100%);
    border: 1px solid rgba(0,229,176,0.2);
}

/* ===== BADGES & TAGS ===== */
.badge {
    display: inline-flex; align-items: center;
    background: var(--accent); color: #000;
    font-size: 9px; font-weight: 800;
    padding: 3px 8px; border-radius: 20px;
    letter-spacing: 0.5px;
}

.ceo-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, rgba(247,201,72,0.15), rgba(247,201,72,0.05));
    border: 1px solid rgba(247,201,72,0.3);
    padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700; color: var(--accent);
    letter-spacing: 0.5px; text-transform: uppercase;
}
.level-badge {
    display: inline-flex; align-items: center;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.25);
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; color: var(--purple);
}

/* Verified tick */
.verified-tick {
    position: absolute; bottom: -2px; right: -2px;
    width: 20px; height: 20px;
    background: var(--blue); border-radius: 50%;
    border: 2px solid var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
}
.vtick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px;
    background: var(--blue); border-radius: 50%;
    flex-shrink: 0; vertical-align: middle;
}

/* ===== AVATAR ===== */
.profile-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #3b9eff);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 26px; font-weight: 700; color: #fff;
    margin: 0 auto 12px;
    position: relative;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.25), 0 4px 20px rgba(0,0,0,0.4);
}

/* ===== BUTTONS ===== */
.btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 600;
    border: none; cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, #f7c948, #e6b820);
    color: #000; box-shadow: 0 4px 16px rgba(247,201,72,0.25);
}
.btn-primary:active { box-shadow: none; }
.btn-success {
    background: linear-gradient(135deg, #00e5b0, #00c496);
    color: #000; box-shadow: 0 4px 16px rgba(0,229,176,0.2);
}
.btn-danger  { background: linear-gradient(135deg, #ff5e3a, #e04020); color: #fff; }
.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border2);
    color: var(--text-sub);
}
.btn-telegram {
    background: #2481cc; color: #fff;
    box-shadow: 0 4px 12px rgba(36,129,204,0.3);
}
.btn-ton {
    background: linear-gradient(135deg, #0099ff, #0066cc);
    color: #fff; box-shadow: 0 4px 12px rgba(0,153,255,0.3);
}
.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 15px 24px; font-size: 15px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; padding: 0 2px;
}
.section-title {
    font-size: 13px; font-weight: 700; color: var(--text);
    letter-spacing: 0.3px; text-transform: uppercase;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    height: 5px; background: rgba(255,255,255,0.06);
    border-radius: 10px; overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--accent));
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ===== STATS ===== */
.stat-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 12px;
}
.stat-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
}
.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 18px; font-weight: 700;
    color: var(--accent); margin-bottom: 3px;
}
.stat-label {
    font-size: 10px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* ===== TASKS ===== */
.task-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.18s;
    position: relative;
    overflow: hidden;
}
.task-item:active { transform: scale(0.99); background: var(--bg-card2); }
.task-item.completed { opacity: 0.55; cursor: default; }
.task-item.cooldown { cursor: not-allowed; }

.task-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.task-icon.youtube  { background: rgba(255,0,0,0.12); color: #ff4444; border: 1px solid rgba(255,0,0,0.15); }
.task-icon.facebook { background: rgba(24,119,242,0.12); color: #1877f2; border: 1px solid rgba(24,119,242,0.15); }
.task-icon.telegram { background: rgba(36,160,237,0.12); color: #24a0ed; border: 1px solid rgba(36,160,237,0.15); }
.task-icon.twitter  { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.task-icon.instagram{ background: rgba(228,64,95,0.12); color: #e4405f; border: 1px solid rgba(228,64,95,0.15); }
.task-icon.tiktok   { background: rgba(0,0,0,0.3); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.task-icon.play     { background: rgba(247,201,72,0.1); color: var(--accent); border: 1px solid rgba(247,201,72,0.15); }
.task-icon.star     { background: rgba(139,92,246,0.1); color: var(--purple); border: 1px solid rgba(139,92,246,0.15); }
.task-icon.users    { background: rgba(59,158,255,0.1); color: var(--blue); border: 1px solid rgba(59,158,255,0.15); }
.task-icon.gift     { background: rgba(0,229,176,0.1); color: var(--accent3); border: 1px solid rgba(0,229,176,0.15); }
.task-icon.trophy   { background: rgba(247,201,72,0.12); color: var(--accent); border: 1px solid rgba(247,201,72,0.2); }
.task-icon.default  { background: rgba(139,92,246,0.1); color: var(--purple); border: 1px solid rgba(139,92,246,0.15); }

.task-info { flex: 1; min-width: 0; }
.task-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-desc  { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.task-reward {
    display: flex; align-items: center; gap: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 12px; font-weight: 700; color: var(--accent);
    flex-shrink: 0; white-space: nowrap;
}
.cooldown-label {
    font-size: 10px; color: var(--accent2); margin-top: 2px;
    text-align: right;
}

/* ===== QUICK GRID ===== */
.quick-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 14px;
}
.quick-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.18s;
    cursor: pointer;
    display: block;
}
.quick-card:active { transform: scale(0.97); background: var(--bg-card2); }
.quick-card-icon { font-size: 24px; margin-bottom: 6px; display: flex; justify-content: center; }
.quick-card-icon svg { width: 26px; height: 26px; }
.quick-card-label { font-size: 12px; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.quick-card-sub { font-size: 10px; color: var(--text-muted); }

/* ===== MINING CARD ===== */
.mining-card {
    background: linear-gradient(135deg, #0a1a0a, #050d05);
    border: 1px solid rgba(0,229,176,0.2);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 12px;
}
.mining-rate {
    font-size: 12px; color: var(--accent3);
    font-weight: 600; letter-spacing: 0.5px;
    text-transform: uppercase; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ===== STREAK ===== */
.streak-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 6px; margin-bottom: 14px;
}
.streak-day {
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 3px;
    font-size: 9px; color: var(--text-muted);
    font-weight: 600;
}
.streak-day.done {
    background: rgba(0,229,176,0.1);
    border-color: rgba(0,229,176,0.3);
    color: var(--accent3);
}
.streak-day.today {
    background: rgba(247,201,72,0.1);
    border-color: rgba(247,201,72,0.4);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(247,201,72,0.15);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: flex; align-items: flex-end; justify-content: center;
}
.modal {
    background: var(--bg-card2);
    border: 1px solid var(--border2);
    border-radius: 24px 24px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    width: 100%; max-width: 430px;
    max-height: 90vh; overflow-y: auto;
    position: relative;
}
.modal-handle {
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    margin: 0 auto 20px;
    cursor: pointer;
}
.modal-title {
    font-size: 18px; font-weight: 700;
    text-align: center; margin-bottom: 8px;
}

/* ===== FORM ===== */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; display: block; letter-spacing: 0.3px; }
.form-input {
    width: 100%; background: rgba(255,255,255,0.04);
    border: 1px solid var(--border2);
    border-radius: var(--radius-xs);
    padding: 12px 14px; color: var(--text);
    font-size: 14px; font-family: 'Inter', sans-serif;
    outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--purple); }
.form-input::placeholder { color: var(--text-muted); }

/* ===== COIN DISPLAY ===== */
.coin-icon-sm {
    width: 14px; height: 14px;
    background: radial-gradient(circle at 35% 35%, #ffe566, #f5c842, #c9960a);
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 7px; color: #7a5500; font-weight: 900;
    flex-shrink: 0;
}

/* ===== TOAST ===== */
.toast {
    position: fixed; top: calc(var(--header-height) + 10px); left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 13px; font-weight: 600;
    white-space: nowrap;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}
.toast-success { background: rgba(0,229,176,0.95); color: #000; }
.toast-error   { background: rgba(239,68,68,0.95);  color: #fff; }
.toast-info    { background: rgba(59,130,246,0.95); color: #fff; }

@keyframes toastIn  { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; } }

/* ===== COIN FLOAT ===== */
.coin-float {
    position: fixed; z-index: 999;
    font-family: 'Space Mono', monospace;
    font-size: 16px; font-weight: 700;
    color: var(--accent);
    pointer-events: none;
    text-shadow: 0 0 10px rgba(247,201,72,0.5);
    animation: floatUp 1s ease forwards;
}
@keyframes floatUp {
    from { opacity:1; transform: translateY(0); }
    to   { opacity:0; transform: translateY(-60px); }
}

/* ===== VIDEO ===== */
.video-wrapper {
    background: #000; border-radius: 12px; overflow: hidden;
    position: relative; padding-top: 56.25%;
}
.video-wrapper iframe {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: none;
}
.video-timer {
    font-family: 'Space Mono', monospace;
    font-size: 36px; font-weight: 700;
    color: var(--accent); text-align: center;
}
.video-timer-label {
    font-size: 11px; color: var(--text-muted);
    text-align: center; text-transform: uppercase;
    letter-spacing: 1px; margin-top: 2px;
}

/* ===== LEADERBOARD ===== */
.rank-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px;
    margin-bottom: 8px;
}
.rank-pos {
    font-family: 'Space Mono', monospace;
    font-size: 14px; font-weight: 700;
    width: 28px; text-align: center; flex-shrink: 0;
}
.rank-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #fff;
    flex-shrink: 0;
}

/* ===== SCRATCH CARD ===== */
.scratch-container {
    position: relative; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.scratch-result {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #12123a, #0a0a20);
}

/* ===== AD BANNER ===== */
.ad-banner {
    margin-bottom: 12px; border-radius: var(--radius-sm);
    overflow: hidden; background: var(--bg-card2);
    border: 1px solid var(--border);
}

/* ===== CHALLENGE ===== */
.challenge-banner {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a0a2e, #0a0a1e);
    border: 1px solid rgba(139,92,246,0.3);
    margin-bottom: 14px;
}
.challenge-banner-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 30%, rgba(139,92,246,0.2), transparent),
        radial-gradient(ellipse 60% 80% at 70% 70%, rgba(247,201,72,0.1), transparent);
    pointer-events: none;
}
.challenge-prize-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin: 12px 0;
}
.challenge-prize-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    position: relative;
}
.challenge-prize-card.rank1 { border-color: rgba(247,201,72,0.4); background: rgba(247,201,72,0.06); }
.challenge-prize-card.rank2 { border-color: rgba(200,200,200,0.3); background: rgba(200,200,200,0.04); }
.challenge-prize-card.rank3 { border-color: rgba(180,100,50,0.3); background: rgba(180,100,50,0.04); }

.prize-rank-icon {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px;
    border-radius: 50%;
}
.prize-rank-icon.gold   { background: rgba(247,201,72,0.15); color: var(--accent); }
.prize-rank-icon.silver { background: rgba(200,200,200,0.1); color: #ccc; }
.prize-rank-icon.bronze { background: rgba(180,100,50,0.12); color: #cd7f32; }

.prize-pct {
    font-family: 'Space Mono', monospace;
    font-size: 18px; font-weight: 700;
}
.prize-label { font-size: 9px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; }

.challenge-leaderboard-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

/* ===== WALLET PAGE ===== */
.wallet-card {
    background: linear-gradient(135deg, #001233, #000819);
    border: 1px solid rgba(0,153,255,0.25);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.wallet-card::before {
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(0,153,255,0.15), transparent 70%);
    pointer-events: none;
}

/* ===== CALC ROWS ===== */
.calc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.calc-row:last-child { border-bottom: none; }
.calc-label { color: var(--text-muted); }
.calc-value { font-weight: 600; }
.calc-value.highlight { color: var(--accent); font-family: 'Space Mono', monospace; }

/* ===== BADGES GRID ===== */
.badges-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.badge-item {
    text-align: center; padding: 10px 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.badge-item.unlocked {
    border-color: rgba(247,201,72,0.3);
    background: rgba(247,201,72,0.05);
}
.badge-item.locked { opacity: 0.4; filter: grayscale(1); }
.badge-icon { font-size: 22px; margin-bottom: 4px; display: flex; justify-content: center; }
.badge-icon svg { width: 22px; height: 22px; }
.badge-name { font-size: 9px; font-weight: 600; color: var(--text-muted); }

/* ===== ERROR LOG PAGE ===== */
.error-log-entry {
    font-family: 'Space Mono', monospace;
    font-size: 11px; padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}
.error-log-entry.ERROR { border-left: 3px solid #ef4444; }
.error-log-entry.WARN  { border-left: 3px solid var(--accent); }
.error-log-entry.INFO  { border-left: 3px solid var(--blue); }
.error-log-entry.NOTICE{ border-left: 3px solid var(--accent3); }

/* ===== TAP PAGE ===== */
.tap-btn {
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(247,201,72,0.3), rgba(247,201,72,0.05) 60%);
    border: 2px solid rgba(247,201,72,0.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(247,201,72,0.1), 0 0 80px rgba(247,201,72,0.05);
    position: relative;
    user-select: none;
}
.tap-btn:active { transform: scale(0.94); box-shadow: 0 0 20px rgba(247,201,72,0.05); }
.tap-btn-inner {
    width: 160px; height: 160px; border-radius: 50%;
    background: linear-gradient(135deg, #1a1500, #0f0e00);
    border: 1px solid rgba(247,201,72,0.2);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
}

/* ===== ENERGY BAR ===== */
.energy-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
}
.energy-bar-bg {
    height: 8px; background: rgba(255,255,255,0.05);
    border-radius: 10px; overflow: hidden; margin-top: 6px;
}
.energy-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent3), #00b38a);
    border-radius: 10px;
    transition: width 0.3s;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ===== UTILITIES ===== */
.text-accent  { color: var(--accent); }
.text-accent2 { color: var(--accent2); }
.text-accent3 { color: var(--accent3); }
.text-muted   { color: var(--text-muted); }
.text-purple  { color: var(--purple); }
.text-blue    { color: var(--blue); }
.mono         { font-family: 'Space Mono', monospace; }
.fw-700       { font-weight: 700; }
.mb-0         { margin-bottom: 0 !important; }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin  { animation: spin 1s linear infinite; }
