/* ═══════════════════════════════════════════════════════════════
   BTC CATCH MINER — Style Sheet (MySQL Edition)
   Dark Crypto Neon Theme | Orbitron + Rajdhani
═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --bg:          #080813;
  --bg2:         #0d0d1e;
  --bg3:         #111128;
  --glass:       rgba(255,255,255,0.05);
  --glass-hover: rgba(255,255,255,0.09);
  --border:      rgba(255,255,255,0.08);
  --neon:        #f7c843;
  --neon2:       #ff9500;
  --neon-glow:   rgba(247,200,67,0.35);
  --cyan:        #00e5ff;
  --green:       #00ff88;
  --red:         #ff4466;
  --purple:      #b060ff;
  --text:        #e8e8f4;
  --text-muted:  #7878a8;
  --font-display:'Orbitron', monospace;
  --font-body:   'Rajdhani', sans-serif;
  --nav-h:       64px;
  --header-h:    52px;
  --radius:      14px;
  --radius-sm:   8px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── UTILITIES ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.neon-text { color: var(--neon); font-weight: 700; }

/* ── LOADING SCREEN ────────────────────────────────────────── */
.loading-screen {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.loading-inner { text-align: center; }
.btc-logo { position: relative; width: 100px; height: 100px; margin: 0 auto 1.5rem; }
.btc-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; }
.ring1 { border-top-color: var(--neon); animation: spin 1.2s linear infinite; }
.ring2 { inset: 12px; border-right-color: var(--cyan); animation: spin 0.8s linear infinite reverse; }
.btc-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: var(--neon);
  font-family: var(--font-display);
  text-shadow: 0 0 20px var(--neon-glow);
  animation: pulse 2s ease-in-out infinite;
}
.loading-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 4px; color: var(--neon);
  text-shadow: 0 0 16px var(--neon-glow);
  margin-bottom: 1.5rem;
}
.loading-bar-wrap {
  width: 200px; height: 4px; background: var(--glass);
  border-radius: 99px; margin: 0 auto 1rem; overflow: hidden;
}
.loading-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  border-radius: 99px; transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--neon-glow);
}
.loading-text { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 2px; }

/* ── TOAST ─────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%; transform: translateX(-50%);
  z-index: 900;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  width: 90%; max-width: 360px;
}
.toast {
  background: var(--bg3); border: 1px solid var(--border);
  border-left: 3px solid var(--neon);
  border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 0.85rem; color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  animation: slideDown 0.3s ease, fadeOut 0.4s ease 2.6s forwards;
  pointer-events: all;
}
.toast.error   { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }

/* ── APP LAYOUT ────────────────────────────────────────────── */
.app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 30% 0%, rgba(0,100,255,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 100%, rgba(247,200,67,0.05) 0%, transparent 60%),
              var(--bg);
}

/* HEADER */
.app-header {
  height: var(--header-h);
  background: rgba(8,8,20,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
  flex-shrink: 0; z-index: 100;
}
.header-logo {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon-glow);
  letter-spacing: 2px; flex: 1;
}
.header-balance {
  display: flex; align-items: center; gap: 6px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 99px; padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600; color: var(--neon);
}
.header-level {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; color: var(--cyan);
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 99px; padding: 4px 10px;
}

/* ── HEADER BTC LIVE PRICE ─────────────────────────────────── */
.header-btc-live {
  display: flex; align-items: center; gap: 5px;
  flex: 1; justify-content: center;
}
.header-btc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.header-btc-val {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon-glow);
  letter-spacing: 0.5px;
  transition: color 0.4s ease;
}
.header-btc-val.price-up   { color: var(--green); text-shadow: 0 0 10px rgba(0,255,136,0.5); }
.header-btc-val.price-down { color: var(--red);   text-shadow: 0 0 10px rgba(255,68,102,0.5); }

/* NAV */
.bottom-nav {
  height: var(--nav-h);
  background: rgba(8,8,20,0.98);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  flex-shrink: 0; order: 10; z-index: 100;
}
.nav-btn {
  flex: 1; height: 100%;
  background: none; border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.65rem; letter-spacing: 0.5px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.nav-btn.active { color: var(--neon); }
.nav-btn.active::after {
  content: '';
  position: absolute; top: 0; left: 25%; right: 25%; height: 2px;
  background: var(--neon);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 0 8px var(--neon-glow);
}
.nav-icon { font-size: 1.2rem; }
.nav-label { font-size: 0.6rem; letter-spacing: 0.5px; }

/* PAGES */
.pages {
  flex: 1; overflow: hidden;
  position: relative;
}
.page {
  position: absolute; inset: 0;
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.page.active { display: flex; }

.page-content {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* GLASS CARD */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(8px);
}

/* BUTTONS */
.neon-btn {
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  color: #000; font-weight: 700;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem; letter-spacing: 1px;
  padding: 10px 18px; cursor: pointer;
  box-shadow: 0 0 20px rgba(247,200,67,0.4), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.1s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.neon-btn::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,0.15),transparent); }
.neon-btn:active { transform: scale(0.96); }
.neon-btn:hover  { box-shadow: 0 0 32px rgba(247,200,67,0.6), 0 4px 20px rgba(0,0,0,0.4); }
.neon-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.glass-btn {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  padding: 10px 18px; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.glass-btn:active { transform: scale(0.96); }
.glass-btn:hover  { background: var(--glass-hover); }

/* ── ACCOUNT PAGE ──────────────────────────────────────────── */
.profile-card { display: flex; align-items: center; gap: 14px; }
.profile-avatar { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.avatar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--neon);
  animation: spin 6s linear infinite;
  box-shadow: 0 0 14px var(--neon-glow);
}
.avatar-char {
  position: absolute; inset: 6px;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 900; color: #000;
}
.avatar-photo {
  position: absolute; inset: 6px;
  border-radius: 50%;
  object-fit: cover; width: calc(100% - 12px); height: calc(100% - 12px);
}
.profile-info { flex: 1; }
.profile-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; }
.profile-id   { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.profile-level-badge {
  background: rgba(0,229,255,0.12);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 99px; padding: 4px 12px;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--cyan);
}

/* Daily */
.daily-card { display: flex; align-items: center; gap: 14px; border-color: rgba(0,255,136,0.2); }
.daily-icon { font-size: 2rem; }
.daily-info { flex: 1; }
.daily-title { font-weight: 700; font-size: 0.95rem; }
.daily-sub   { font-size: 0.8rem; color: var(--green); }
.daily-btn   { padding: 8px 18px; font-size: 0.75rem; }
.daily-btn:disabled { background: var(--glass); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.daily-countdown {
  font-size: 0.72rem; color: var(--neon); margin-top: 3px;
  font-family: var(--font-display); letter-spacing: 0.04em;
}

/* Withdraw gate notices */
.wd-free-notice {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 0.82rem;
  border-color: rgba(0,229,255,0.3); color: var(--cyan);
}
.wd-free-icon { font-size: 1.2rem; }
.wd-tasks-gate {
  padding: 14px 16px; text-align: center;
  border-color: rgba(255,68,102,0.4);
}
.wd-gate-title { font-weight: 700; font-size: 0.95rem; color: var(--red); margin-bottom: 6px; }
.wd-gate-desc  { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.wd-tasks-gate .glass-btn {
  padding: 7px 16px; font-size: 0.8rem;
  border-color: rgba(255,68,102,0.4); color: var(--red);
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stat-card  { text-align: center; padding: 14px 10px; }
.stat-icon  { font-size: 1.3rem; margin-bottom: 6px; }
.stat-value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--neon); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

/* XP */
.xp-card   { display: flex; flex-direction: column; gap: 8px; }
.xp-header { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); }
.xp-bar-track { height: 6px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.xp-bar-fill  {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  border-radius: 99px; box-shadow: 0 0 10px var(--neon-glow);
  transition: width 0.6s ease;
}
.xp-level-row {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; font-family: var(--font-display); color: var(--text-muted);
}

/* Info card */
.info-card  { display: flex; flex-direction: column; gap: 10px; }
.info-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.info-row   { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; }
.info-eq    { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   LIVE WITHDRAW FEED
═══════════════════════════════════════════════════════════════ */
.live-feed-section {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.live-feed-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
}

.live-feed-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700; color: var(--text);
  letter-spacing: 1px;
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: livePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.live-feed-badge {
  font-size: 0.7rem; color: var(--text-muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px;
}

.live-feed-wrap {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.live-feed-list { display: flex; flex-direction: column; }

.live-feed-empty {
  padding: 24px; text-align: center;
  color: var(--text-muted); font-size: 0.82rem;
}

.feed-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  animation: slideDown 0.4s ease;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: var(--glass-hover); }

.feed-item-new {
  background: rgba(0,255,136,0.06);
  border-left: 2px solid var(--green);
  animation: feedFlash 2s ease-out;
}

.feed-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(247,200,67,0.3);
  position: relative;
}

.feed-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.feed-avatar-char {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 900; color: #000;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

.feed-info { flex: 1; min-width: 0; }
.feed-name {
  font-weight: 600; font-size: 0.88rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.feed-amount {
  display: flex; flex-direction: column; align-items: flex-end;
  flex-shrink: 0;
}
.feed-sat {
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 8px rgba(0,255,136,0.4);
}
.feed-btc { font-size: 0.7rem; color: var(--neon); }

/* ── GAME ───────────────────────────────────────────────────── */
.game-wrapper { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pre-game {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 24px; text-align: center; width: 100%;
}
.pre-game-logo  { font-size: 4rem; animation: float 3s ease-in-out infinite; }
.pre-game-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 900;
  color: var(--neon); text-shadow: 0 0 30px var(--neon-glow); letter-spacing: 4px;
}
.pre-game-subtitle { color: var(--text-muted); font-size: 0.9rem; }
.game-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 280px; }
.legend-item {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px;
  display: flex; gap: 10px; align-items: center; font-size: 0.85rem;
}
.start-btn { font-size: 0.9rem; padding: 14px 40px; width: 100%; max-width: 260px; }
.start-btn-inner { position: relative; z-index: 1; }
.cooldown-msg { font-family: var(--font-display); font-size: 0.8rem; color: var(--text-muted); }

.game-arena {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #050514 0%, #0a0a1a 100%);
}
.game-hud {
  height: 52px; flex-shrink: 0;
  background: rgba(0,0,0,0.7); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around; padding: 0 16px;
}
.hud-item { text-align: center; }
.hud-label { font-family: var(--font-display); font-size: 0.55rem; color: var(--text-muted); letter-spacing: 2px; }
.hud-val   { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--neon); }
.hud-time .hud-val { color: var(--cyan); }
.boost-banner {
  position: absolute; top: 60px; left: 0; right: 0;
  text-align: center; font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700; color: var(--neon2);
  text-shadow: 0 0 20px rgba(255,149,0,0.6);
  animation: boostPulse 0.5s ease-in-out infinite alternate;
  z-index: 10; pointer-events: none;
}
#game-canvas { flex: 1; width: 100%; display: block; touch-action: none; }
#score-popups { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.score-pop {
  position: absolute; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; pointer-events: none;
  animation: scoreFly 1s ease-out forwards; white-space: nowrap;
}

.game-over {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(5,5,20,0.96); gap: 20px; padding: 24px; text-align: center;
}
.gameover-title {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 900;
  color: var(--neon); text-shadow: 0 0 40px var(--neon-glow);
  animation: glitch 2s infinite; letter-spacing: 6px;
}
.gameover-score-wrap, .gameover-coins-wrap { display: flex; flex-direction: column; gap: 4px; }
.gameover-score-label, .gameover-coins-label {
  font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; font-family: var(--font-display);
}
.gameover-score  { font-family: var(--font-display); font-size: 3.5rem; font-weight: 900; color: var(--cyan); text-shadow: 0 0 30px rgba(0,229,255,0.5); }
.gameover-coins  { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--neon); text-shadow: 0 0 20px var(--neon-glow); }
.go-particles    { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* ── LEADERBOARD ───────────────────────────────────────────── */
.section-header  { display: flex; align-items: center; justify-content: space-between; }
.section-title   { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.refresh-btn {
  background: var(--glass); border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 50%; width: 32px; height: 32px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform 0.3s, color 0.2s;
}
.refresh-btn:active { transform: rotate(180deg); }
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.lb-loading { text-align: center; color: var(--text-muted); padding: 40px; }

.lb-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  animation: slideUp 0.3s ease both;
}
.lb-item.top3 { border-color: rgba(247,200,67,0.3); }
.lb-rank { font-family: var(--font-display); font-size: 1rem; font-weight: 900; min-width: 32px; text-align: center; color: var(--text-muted); }
.lb-rank.gold   { color: #ffd700; }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7f32; }
.lb-avatar-wrap { width: 34px; height: 34px; flex-shrink: 0; }
.lb-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--border); }
.lb-avatar-char {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 900; color: #000;
}
.lb-info { flex: 1; }
.lb-name  { font-weight: 600; font-size: 0.9rem; }
.lb-level { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.lb-coins { font-family: var(--font-display); font-size: 0.85rem; color: var(--neon); }

/* ── REFERRAL ──────────────────────────────────────────────── */
.referral-hero { text-align: center; padding: 24px; border-color: rgba(247,200,67,0.2); }
.ref-icon  { font-size: 3rem; margin-bottom: 8px; animation: float 3s ease-in-out infinite; }
.ref-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.ref-sub   { font-size: 0.9rem; color: var(--text-muted); }
.ref-stats-row { display: flex; gap: 12px; }
.ref-stat  { flex: 1; text-align: center; padding: 20px; }
.ref-stat-val   { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: var(--neon); }
.ref-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.ref-link-card  { display: flex; flex-direction: column; gap: 12px; }
.ref-link-label { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-display); letter-spacing: 1px; }
.ref-link-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 0.75rem; color: var(--cyan); word-break: break-all; font-family: monospace;
}
.ref-actions    { display: flex; gap: 8px; flex-wrap: wrap; }
.ref-action-btn { flex: 1; min-width: 80px; font-size: 0.8rem; padding: 10px; }
.ref-step { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.step-n {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  color: #000; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   WITHDRAW PAGE — ADVANCED
═══════════════════════════════════════════════════════════════ */
.withdraw-hero { text-align: center; padding: 24px; }
.wd-icon {
  font-size: 3rem; color: var(--neon);
  font-family: var(--font-display);
  text-shadow: 0 0 30px var(--neon-glow); margin-bottom: 8px;
}
.wd-balance-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.wd-balance {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 900;
  color: var(--neon); text-shadow: 0 0 20px var(--neon-glow);
}
.wd-coins-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Withdraw form */
.wd-form { display: flex; flex-direction: column; gap: 12px; }
.form-label {
  font-family: var(--font-display); font-size: 0.72rem;
  letter-spacing: 1.5px; color: var(--text-muted);
}
.form-input {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  color: var(--text); font-family: var(--font-body);
  font-size: 0.95rem; width: 100%; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--neon); }
.form-note { font-size: 0.75rem; color: var(--text-muted); }

.wd-amount-row { display: flex; gap: 8px; align-items: center; }
.wd-max-btn { padding: 12px 16px; font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }

/* Withdraw summary box */
.wd-summary {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  margin-top: 4px;
}
.wd-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}
.wd-summary-row:last-child { border-bottom: none; }
.wd-summary-label { color: var(--text-muted); }
.wd-summary-val   { font-family: monospace; font-size: 0.82rem; font-weight: 600; }
.wd-summary-total { background: rgba(247,200,67,0.06); }
.wd-summary-total .wd-summary-label { font-weight: 700; color: var(--text); }
.wd-summary-total .wd-summary-val   { font-size: 0.9rem; }

/* Processing steps */
.wd-steps {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  animation: slideDown 0.3s ease;
}
.wd-step { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.step-icon { font-size: 1rem; flex-shrink: 0; transition: all 0.3s; }
.step-text { color: var(--text-muted); }
.step-active { animation: pulse 0.6s ease-in-out infinite; }
.step-done   .step-text { color: var(--green); }
.step-error  .step-text { color: var(--red); }
.wd-step:has(.step-done)  .step-text { color: var(--green); }
.wd-step:has(.step-error) .step-text { color: var(--red); }

.wd-submit { width: 100%; font-size: 0.85rem; margin-top: 4px; }

.wd-min-note {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 4px;
}

/* Withdrawal list */
.withdrawal-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.wd-empty { text-align: center; color: var(--text-muted); padding: 24px; font-size: 0.85rem; }
.wd-item {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.wd-item-success { border-left: 2px solid var(--green); }
.wd-item-failed  { border-left: 2px solid var(--red); }
.wd-item-pending { border-left: 2px solid var(--neon); }
.wd-item-left .wd-item-id    { font-family: monospace; font-size: 0.72rem; color: var(--text-muted); }
.wd-item-left .wd-item-date  { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.wd-item-left .wd-item-txid  { font-family: monospace; font-size: 0.68rem; color: var(--cyan); margin-top: 2px; }
.wd-item-right .wd-item-amount {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  color: var(--green); text-align: right;
}
.wd-item-right .wd-item-status { font-size: 0.7rem; text-align: right; margin-top: 2px; }

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(6px);
}
.modal-box {
  width: 100%; max-width: 360px;
  position: relative; overflow: hidden; text-align: center;
  animation: modalIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
#confetti-canvas-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.modal-icon  { font-size: 3rem; margin-bottom: 8px; }
.modal-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--neon); text-shadow: 0 0 20px var(--neon-glow); margin-bottom: 16px;
}
.receipt-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px;
}
.receipt-row {
  display: flex; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-val  { font-weight: 600; font-size: 0.8rem; }
.receipt-mono { font-family: monospace; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .neon-btn, .modal-actions .glass-btn { flex: 1; font-size: 0.78rem; padding: 10px; }

/* ── KEYFRAMES ─────────────────────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%,100%{opacity:1} 50%{opacity:0.7} }
@keyframes float   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes slideDown {
  from { opacity:0; transform:translateY(-16px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes slideUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeOut { to { opacity:0; transform:translateY(-8px); } }
@keyframes scoreFly {
  0%   { opacity:1; transform:translateY(0) scale(1); }
  100% { opacity:0; transform:translateY(-70px) scale(0.7); }
}
@keyframes glitch {
  0%,100%{ text-shadow:0 0 40px var(--neon-glow); }
  10%    { text-shadow:-2px 0 #ff4466, 2px 0 var(--cyan); }
  20%    { text-shadow:2px 0 #ff4466, -2px 0 var(--cyan); }
  30%    { text-shadow:0 0 40px var(--neon-glow); }
}
@keyframes boostPulse { from{opacity:0.7} to{opacity:1} }
@keyframes modalIn {
  from { opacity:0; transform:scale(0.8) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
@keyframes shake {
  0%,100%{ transform:translateX(0); }
  20%    { transform:translateX(-8px); }
  40%    { transform:translateX(8px); }
  60%    { transform:translateX(-5px); }
  80%    { transform:translateX(5px); }
}
@keyframes confettiDrop { to { transform:translateY(110vh) rotate(720deg); opacity:0; } }
@keyframes particleBurst { to { transform:translate(var(--tx),var(--ty)) scale(0); opacity:0; } }
@keyframes livePulse {
  0%,100% { transform:scale(1);   box-shadow:0 0 8px var(--green); }
  50%     { transform:scale(1.3); box-shadow:0 0 16px var(--green), 0 0 32px rgba(0,255,136,0.3); }
}
@keyframes feedFlash {
  0%   { background:rgba(0,255,136,0.15); }
  100% { background:transparent; }
}

.shake-me { animation: shake 0.4s ease; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.live-feed-wrap::-webkit-scrollbar { width: 3px; }

/* ═══════════════════════════════════════════════════════════════
   BTC LIVE PRICE DASHBOARD
═══════════════════════════════════════════════════════════════ */

.btc-dashboard {
  background: linear-gradient(135deg, rgba(247,200,67,0.08) 0%, rgba(0,229,255,0.05) 100%);
  border: 1px solid rgba(247,200,67,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.btc-dashboard::before {
  content: '₿';
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 7rem;
  color: rgba(247,200,67,0.04);
  font-family: var(--font-display);
  pointer-events: none;
}

.btc-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.btc-dash-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.btc-dash-icon {
  color: var(--neon);
  font-size: 1rem;
  text-shadow: 0 0 10px var(--neon-glow);
}

.btc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}

.btc-dash-refresh {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.btc-dash-refresh:hover { color: var(--neon); border-color: var(--neon); }

.btc-dash-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 0.8rem;
}

.btc-dash-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
  transition: color 0.5s ease, text-shadow 0.5s ease;
  letter-spacing: -1px;
}

.btc-dash-price.price-up {
  color: var(--green);
  text-shadow: 0 0 20px rgba(0,255,136,0.4);
  animation: priceFlash 0.5s ease;
}

.btc-dash-price.price-down {
  color: var(--red);
  text-shadow: 0 0 20px rgba(255,68,102,0.4);
  animation: priceFlash 0.5s ease;
}

@keyframes priceFlash {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.btc-dash-change {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.change-positive {
  color: var(--green);
  background: rgba(0,255,136,0.12);
  border: 1px solid rgba(0,255,136,0.25);
}

.change-negative {
  color: var(--red);
  background: rgba(255,68,102,0.12);
  border: 1px solid rgba(255,68,102,0.25);
}

.btc-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 0.8rem;
}

.btc-stat-item {
  text-align: center;
  padding: 6px 4px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.btc-stat-label {
  font-size: 0.55rem;
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.btc-stat-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.btc-high { color: var(--green); }
.btc-low  { color: var(--red); }

.btc-price-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
}

.btc-price-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--neon), var(--green));
  border-radius: 99px;
  transition: width 0.6s ease;
  position: relative;
}

.btc-price-bar-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
}

.btc-price-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

/* ═══════════════════════════════════════════════════════════════
   TASKS PAGE
═══════════════════════════════════════════════════════════════ */

.tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.tasks-total-earned {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.task-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  background: var(--glass);
  border-radius: var(--radius);
  padding: 4px;
}

.task-tab {
  flex: 1;
  padding: 8px 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.task-tab.active {
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  color: #000;
  box-shadow: 0 2px 12px var(--neon-glow);
}

.task-reset-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 10px;
  background: rgba(255,149,0,0.08);
  border: 1px solid rgba(255,149,0,0.15);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 0.5rem;
}

.task-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.3s ease;
  animation: slideInUp 0.3s ease both;
}

.task-item.task-done {
  border-color: rgba(0,255,136,0.25);
  background: rgba(0,255,136,0.05);
}

.task-item.task-claimed {
  opacity: 0.55;
  border-color: rgba(255,255,255,0.05);
}

.task-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.task-icon {
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  flex-shrink: 0;
}

.task-info { flex: 1; min-width: 0; }

.task-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.task-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.task-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--neon));
  border-radius: 99px;
  transition: width 0.5s ease;
}

.task-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.task-reward-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon);
  white-space: nowrap;
}

.task-progress-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.task-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.task-btn-claim {
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  color: #000;
  box-shadow: 0 2px 10px var(--neon-glow);
  animation: taskPulse 2s ease-in-out infinite;
}

@keyframes taskPulse {
  0%, 100% { box-shadow: 0 2px 10px var(--neon-glow); }
  50% { box-shadow: 0 2px 20px var(--neon-glow), 0 0 0 4px rgba(247,200,67,0.15); }
}

.task-btn-claim:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px var(--neon-glow);
}

.task-btn-action {
  background: rgba(0,229,255,0.12);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.25);
}

.task-btn-action:hover {
  background: rgba(0,229,255,0.2);
  transform: scale(1.03);
}

.task-btn-claimed {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  cursor: default;
}

.streak-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(255,149,0,0.1), rgba(247,200,67,0.08));
  border-color: rgba(255,149,0,0.25);
}

.streak-fire {
  font-size: 2rem;
  animation: streakPulse 1s ease-in-out infinite;
}

@keyframes streakPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.streak-info { flex: 1; }

.streak-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon2);
  letter-spacing: 1px;
}

.streak-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.streak-reward {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon-glow);
}

/* Nav badge */
.nav-btn { position: relative; }

.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--red);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  font-family: var(--font-display);
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 0 6px rgba(255,68,102,0.6);
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO AD OVERLAY
═══════════════════════════════════════════════════════════════ */

.ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes adFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes adFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.ad-container {
  width: 100%;
  height: 100%;
  max-width: 480px;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
}

.ad-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 10;
  flex-shrink: 0;
}

.ad-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(247,200,67,0.2);
  border: 1px solid rgba(247,200,67,0.4);
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
}

.ad-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 4px var(--neon);
  animation: pulse 1s ease-in-out infinite;
}

.ad-reward-hint {
  font-size: 0.72rem;
  color: var(--green);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.ad-skip-area {
  display: flex;
  align-items: center;
}

.ad-skip-countdown {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ad-skip-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.5px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ad-skip-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.02);
}

.ad-video-wrap {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
  position: absolute;
  inset: 0;
}

.ad-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #080813 0%, #0d0d1e 50%, #111128 100%);
}

.ad-placeholder-icon {
  font-size: 5rem;
  color: var(--neon);
  font-family: var(--font-display);
  font-weight: 900;
  text-shadow: 0 0 40px var(--neon-glow), 0 0 80px rgba(247,200,67,0.2);
  animation: adIconPulse 2s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes adIconPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 40px var(--neon-glow); }
  50% { transform: scale(1.06); text-shadow: 0 0 60px var(--neon-glow), 0 0 100px rgba(247,200,67,0.3); }
}

.ad-placeholder-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--neon);
  letter-spacing: 3px;
  margin-bottom: 0.4rem;
}

.ad-placeholder-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.ad-progress-wrap {
  height: 3px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.ad-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  width: 0%;
  box-shadow: 0 0 6px var(--neon-glow);
}

.ad-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(10,10,18,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.ad-info-left { flex: 1; min-width: 0; }

.ad-advertiser {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-cta {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-visit-btn {
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  border: none;
  color: #000;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 12px;
  letter-spacing: 0.5px;
  transition: transform 0.2s;
  box-shadow: 0 2px 10px var(--neon-glow);
}

.ad-visit-btn:hover { transform: scale(1.05); }

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   GAME POINTS PANEL
   ═══════════════════════════════════════════════════════════════ */

.game-points-panel {
  background: linear-gradient(135deg, rgba(0,229,255,0.08) 0%, rgba(0,255,136,0.06) 100%);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.game-points-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #00e5ff, #00ff88, #00e5ff);
  background-size: 200% 100%;
  animation: shimmerBar 2s linear infinite;
}

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

.gp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.gp-icon { font-size: 20px; }

.gp-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
}

.gp-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #00ff88;
  text-shadow: 0 0 12px rgba(0,255,136,0.6);
}

.gp-max {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.gp-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.gp-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #00ff88, #00e5ff);
  transition: width 0.5s ease, background 0.4s ease;
  box-shadow: 0 0 8px rgba(0,255,136,0.5);
}

.gp-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
}

/* No points message */
.no-points-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255,68,102,0.12);
  border: 1px solid rgba(255,68,102,0.3);
  border-radius: 12px;
  margin-top: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: #ff4466;
  text-align: center;
}

.no-points-msg span:last-child {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

/* ─── Referral neon orange ── */
.neon-text-orange {
  color: #ff9500;
  text-shadow: 0 0 10px rgba(255,149,0,0.6);
}

.ref-bonus-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255,149,0,0.1);
  border: 1px solid rgba(255,149,0,0.25);
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255,200,100,0.85);
  font-family: 'Rajdhani', sans-serif;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   AD LANDING CARD (shown after video finishes or skip)
   ═══════════════════════════════════════════════════════════════ */

.ad-landing-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0a0a1a 0%, #0d0d2a 40%, #0a1520 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
}

.ad-landing-card.hidden { display: none; }

@keyframes adLandingIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Rotating glow ring behind brand icon */
.alc-glow-ring {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.18) 0%, rgba(247,200,67,0.1) 50%, transparent 70%);
  animation: alcGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes alcGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

.alc-content {
  position: relative;
  width: 100%;
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.alc-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.alc-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7c843, #ff9500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #0a0a1a;
  box-shadow: 0 0 20px rgba(247,200,67,0.5);
  flex-shrink: 0;
}

.alc-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.alc-badge-live {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #0a0a1a;
  background: #00ff88;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 1px;
  animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0,255,136,0.4); }
  50%       { box-shadow: 0 0 16px rgba(0,255,136,0.8); }
}

.alc-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 20px rgba(0,229,255,0.5);
  line-height: 1.2;
}

.alc-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.5;
  max-width: 280px;
}

.alc-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 280px;
}

.alc-feature-item {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.alc-feature-item:hover {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.2);
}

.alc-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 280px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 8px;
}

.alc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.alc-stat-n {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f7c843;
  text-shadow: 0 0 8px rgba(247,200,67,0.4);
}

.alc-stat-l {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alc-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Main CTA button — eye-catching */
.alc-cta-btn {
  width: 100%;
  max-width: 280px;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7c843 0%, #ff9500 50%, #ff6b00 100%);
  color: #0a0a1a;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.3s;
  box-shadow: 0 6px 24px rgba(247,200,67,0.4), 0 0 40px rgba(255,149,0,0.2);
}

.alc-cta-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.alc-cta-btn:hover::before,
.alc-cta-btn.alc-cta-pulse::before {
  animation: ctaSheen 1.8s ease-in-out infinite;
}

@keyframes ctaSheen {
  0%   { left: -60%; }
  50%  { left: 110%; }
  100% { left: 110%; }
}

.alc-cta-pulse {
  animation: ctaPulseAnim 0.9s ease-in-out infinite;
}

@keyframes ctaPulseAnim {
  0%, 100% { box-shadow: 0 6px 24px rgba(247,200,67,0.4), 0 0 40px rgba(255,149,0,0.2); transform: scale(1); }
  50%       { box-shadow: 0 8px 32px rgba(247,200,67,0.7), 0 0 60px rgba(255,149,0,0.5); transform: scale(1.02); }
}

.alc-cta-btn:active { transform: scale(0.97); }

.alc-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.alc-close-btn:hover {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}

.alc-auto-close {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.3px;
}

.alc-auto-close #alc-countdown {
  color: #f59e0b;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   AD LANDING CARD — Auto-close progress bar
   ═══════════════════════════════════════════════════════════ */

.alc-autoclose-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.alc-autoclose-bar-bg {
  width: 80%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.alc-autoclose-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  border-radius: 99px;
  transform-origin: left;
}

/* ═══════════════════════════════════════════════════════════
   LEADERBOARD — Live score update styles
   ═══════════════════════════════════════════════════════════ */

.lb-live-dot {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: #22c55e;
  letter-spacing: 0.5px;
  font-weight: 700;
  animation: livePulse 1.4s ease-in-out infinite;
  margin-left: 6px;
  vertical-align: middle;
}

.lb-score-up {
  animation: lbScoreFlashUp 1.8s ease-out forwards;
}

.lb-score-down {
  animation: lbScoreFlashDown 1.2s ease-out forwards;
}

.lb-score-diff {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #22c55e;
  margin-left: 5px;
  padding: 1px 5px;
  background: rgba(34,197,94,0.12);
  border-radius: 6px;
  animation: lbDiffPop 1.8s ease-out forwards;
}

@keyframes lbScoreFlashUp {
  0%   { color: #22c55e; text-shadow: 0 0 8px rgba(34,197,94,0.7); }
  60%  { color: #4ade80; }
  100% { color: inherit; text-shadow: none; }
}

@keyframes lbScoreFlashDown {
  0%   { color: #ef4444; text-shadow: 0 0 8px rgba(239,68,68,0.5); }
  100% { color: inherit; text-shadow: none; }
}

@keyframes lbDiffPop {
  0%   { opacity: 0; transform: translateY(-6px) scale(0.8); }
  15%  { opacity: 1; transform: translateY(0) scale(1.1); }
  40%  { transform: scale(1); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* ═══════════════════════════════════════════════════════════
   LIVE FEED — Instant append animation
   ═══════════════════════════════════════════════════════════ */

@keyframes feedSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.feed-item-new {
  animation: feedSlideIn 0.35s ease-out, feedFlash 2s ease-out !important;
}

/* ═══════════════════════════════════════════════════════════
   POST-AD REWARD BANNER
   ═══════════════════════════════════════════════════════════ */

.ad-reward-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 280px;
  max-width: 340px;
  width: calc(100% - 32px);
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2027 0%, #1a3a2e 60%, #0f2a1a 100%);
  border: 1.5px solid rgba(34,197,94,0.45);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(34,197,94,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  pointer-events: auto;
}

.ad-reward-banner.hidden { display: none; }

.ad-reward-banner.arb-enter {
  animation: arbSlideUp 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.ad-reward-banner.arb-leave {
  animation: arbSlideDown 0.35s ease-in forwards;
}

@keyframes arbSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(24px) scale(0.93); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1);   }
}
@keyframes arbSlideDown {
  from { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1);   }
  to   { opacity: 0; transform: translateX(-50%) translateY(18px)  scale(0.93); }
}

.arb-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
}

.arb-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(34,197,94,0.6));
  animation: arbIconBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}
@keyframes arbIconBounce {
  from { transform: scale(0.5) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

.arb-text { flex: 1; min-width: 0; }

.arb-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #4ade80;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(74,222,128,0.5);
}

.arb-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}

/* Circular countdown ring */
.arb-countdown-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.arb-ring {
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
}
.arb-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 3;
}
.arb-ring-fill {
  fill: none;
  stroke: #22c55e;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.arb-secs {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4ade80;
}

/* Bottom drain bar */
.arb-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  width: 100%;
  transform-origin: left;
  border-radius: 0 0 18px 18px;
}
