:root {
    --bg: #040914; 
    --bg-panel: rgba(12, 20, 36, 0.7);
    --ton: #0088CC; 
    --ton2: #006699; 
    --ton-glow: rgba(0, 136, 204, 0.4);
    --border: rgba(255, 255, 255, 0.08); 
    --text: #ffffff;
    --text2: rgba(255, 255, 255, 0.6);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { background:var(--bg); color:var(--text); font-family:'Manrope',system-ui; overscroll-behavior:none; }
body::before { content:''; position:fixed; inset:0; background:radial-gradient(circle at 50% 0%, #0c1a2e 0%, var(--bg) 70%); z-index:-2; }

/* Background Rain */
#rain { position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.coin { position:absolute; top:-80px; animation:fall linear infinite; opacity:0; }
.coin svg { width:22px; height:22px; opacity:0.6; filter:drop-shadow(0 2px 6px var(--ton-glow)); }
@keyframes fall { 0%{transform:translateY(-80px) rotate(0deg);opacity:0} 10%{opacity:0.7} 90%{opacity:0.7} 100%{transform:translateY(calc(100vh + 80px)) rotate(360deg);opacity:0} }

/* App & Global Layout */
.app { max-width:440px; margin:0 auto; padding:24px 16px 140px; position:relative; z-index:1; min-height:100vh; }
.header { display:flex; justify-content:space-between; align-items:center; padding:0 4px 32px; }
.logo { display:flex; align-items:center; gap:12px; font-weight:800; font-size:20px; letter-spacing: 0.5px; }
.logo svg { width:34px; height:34px; filter:drop-shadow(0 0 16px var(--ton-glow)); }
.user-profile { display:none; align-items:center; gap:8px; }
.user-profile span { font-size:13px; font-weight:700; color:var(--text); max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:rgba(255,255,255,0.06); padding:6px 14px; border-radius:24px; border:1px solid rgba(255,255,255,0.05); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Global Components */
.ticker-capsule { display:inline-flex; align-items:center; gap:8px; background:rgba(255, 255, 255, 0.04); border:1px solid rgba(255, 255, 255, 0.06); padding:6px 16px; border-radius:20px; font-size:13px; font-weight:700; margin:0 auto 20px; width:max-content; box-shadow:0 4px 16px rgba(0,0,0,0.15); backdrop-filter:blur(8px); }
.ticker-dot { width:6px; height:6px; background:#00E676; border-radius:50%; animation:tickerBlink 1.5s infinite; box-shadow:0 0 8px #00E676; }
.ticker-up { color:#00E676; margin-left:2px; font-weight:800; }
@keyframes tickerBlink { 0%, 100%{opacity:0.3} 50%{opacity:1} }

.page { display:none; opacity:0; transform:translateY(15px); transition:all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.page.active { display:block; animation:pageIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
@keyframes pageIn { to{opacity:1;transform:translateY(0)} }

.balance-capsule { background:var(--bg-panel); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border:1px solid var(--border); border-radius:24px; padding:28px 20px; text-align:center; margin-bottom:24px; box-shadow:0 16px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05); }
.balance-label { font-size:12px; font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:10px; }
.balance-value { font-size:40px; font-weight:800; background:linear-gradient(135deg,#ffffff 0%,#a0c6e8 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; display:flex; justify-content:center; align-items:baseline; gap:6px; font-family:monospace, system-ui; }
.balance-value span.currency { font-size:20px; font-weight:700; -webkit-text-fill-color:#a0c6e8; font-family:'Manrope', system-ui; }

.mining-speed { display:inline-flex; align-items:center; gap:6px; margin-top:14px; background:rgba(0, 209, 255, 0.08); border:1px solid rgba(0, 209, 255, 0.18); padding:5px 14px; border-radius:14px; font-size:12px; font-weight:700; color:#00D1FF; box-shadow:0 4px 12px rgba(0, 209, 255, 0.05); }
.mining-speed svg { animation:speedFlash 2s infinite linear; }
@keyframes speedFlash { 0%, 100%{opacity:0.7} 50%{opacity:1} }

.claim-btn { width:100%; height:60px; border:none; border-radius:18px; background:linear-gradient(135deg,var(--ton),var(--ton2)); color:#fff; font-size:16px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:12px; cursor:pointer; box-shadow:0 12px 32px var(--ton-glow); margin-bottom:30px; transition:all 0.2s ease; }
.claim-btn:active { transform:scale(0.97); box-shadow:0 6px 16px var(--ton-glow); }
.claim-btn:disabled { opacity:0.5; background:rgba(255,255,255,0.08); box-shadow:none; cursor:not-allowed; transform:none; }
.claim-btn svg { width:24px; height:24px; }
.claim-btn.secondary { background:rgba(255,255,255,0.05); border:1px solid var(--border); box-shadow:none; height:54px; margin-bottom:20px; }
.claim-btn.secondary:active { background:rgba(255,255,255,0.08); }

.btn { width:100%; height:52px; border:none; border-radius:14px; background:linear-gradient(135deg,var(--ton),var(--ton2)); color:#fff; font-size:15px; font-weight:700; cursor:pointer; margin-top:16px; transition:all 0.2s; }
.btn:active { transform:scale(0.98); }

.section-title { font-size:14px; font-weight:700; color:var(--text2); margin:0 0 16px 6px; text-transform:uppercase; letter-spacing:1px; }
.card { background:var(--bg-panel); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border:1px solid var(--border); border-radius:24px; padding:24px; margin-bottom:20px; box-shadow:0 8px 24px rgba(0,0,0,0.15); }
.input { width:100%; height:54px; background:rgba(0,0,0,0.4); border:1px solid rgba(255,255,255,0.1); border-radius:14px; color:#fff; padding:0 16px; font-size:15px; margin-top:10px; font-family:inherit; transition:border 0.2s; }
.input:focus { outline:none; border-color:var(--ton); }
.input::placeholder { color:rgba(255,255,255,0.3); }

/* Navigation */
.bottom-nav { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); width:calc(100% - 32px); max-width:400px; height:76px; background:rgba(12, 20, 36, 0.85); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); border:1px solid rgba(255,255,255,0.06); border-radius:28px; display:flex; justify-content:space-evenly; align-items:center; z-index:100; padding:0 8px; box-shadow:0 12px 40px rgba(0,0,0,0.4); }
.nav-item { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; color:var(--text2); font-size:10px; font-weight:600; background:none; border:none; cursor:pointer; padding:10px 0; transition:all 0.3s ease; }
.nav-item svg { width:24px; height:24px; transition:all 0.3s ease; opacity:0.8; }
.nav-item:active { transform:scale(0.9); }
.nav-item.active { color:var(--ton); }
.nav-item.active svg { opacity:1; filter:drop-shadow(0 0 10px var(--ton-glow)); transform:translateY(-2px); }
.nav-item[data-page="earn"] svg { width:34px; height:34px; }
.nav-item[data-page="earn"] span { font-size:11px; font-weight:800; }
.nav-item[data-page="earn"].active { color:var(--ton); filter:drop-shadow(0 4px 12px var(--ton-glow)); }

/* General utility layout classes extracted from inline HTML */
.margin-text-sub { color:var(--text2); font-size:14px; margin-top:12px; }
.reward-value-large { font-size:32px; font-weight:800; color:var(--ton); margin:12px 0; text-shadow:0 4px 12px var(--ton-glow); }
.flex-row-gap { display:flex; gap:10px; margin-top:24px; }
.small-font { margin:0; font-size:13px; }
.shrink-btn { width:auto; padding:0 20px; margin:0; flex-shrink:0; }
.info-text { font-size:12px; color:var(--text2); margin-top:16px; text-align:center; font-weight:500; }
.withdraw-avail { margin:8px 0 16px; font-weight:500; }
.withdraw-avail b { color:#fff; font-size:15px; }
