/* ═══════════════════════════════════════════════════════════
   DINO EGG BOT — style.css  (GAME UI EDITION)
   Theme: Animated Jungle | Glassmorphism | Premium Mobile Game
═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg-deep:    #0a1f0f;
  --bg-dark:    #0d2b1a;
  --bg-mid:     #122b1c;
  --card-bg:    rgba(13, 43, 26, 0.82);
  --card-border:rgba(46, 204, 113, 0.18);
  --glow:       rgba(46, 204, 113, 0.35);
  --glow-soft:  rgba(46, 204, 113, 0.12);
  --accent-g:   #2ecc71;
  --accent-g2:  #27ae60;
  --accent-y:   #f39c12;
  --accent-o:   #e67e22;
  --accent-r:   #e74c3c;
  --text:       #ffffff;
  --text-sec:   #a8d5b5;
  --text-dim:   #5d9476;
  --radius:     20px;
  --radius-sm:  13px;
  --nav-h:      70px;
  --header-h:   66px;
  --font-head:  'Fredoka One', cursive;
  --font-body:  'Nunito', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; overflow: hidden;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: var(--bg-deep);
}

button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }
input  { font-family: var(--font-body); outline: none; }
.hidden { display: none !important; }

/* ── Animated Jungle Background ───────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(145deg, #0a1f0f 0%, #0d2b1a 40%, #1a4a2e 70%, #0d2b1a 100%);
  background-size: 400% 400%;
  animation: jungleShift 12s ease infinite;
}

/* Subtle texture overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(46,204,113,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(243,156,18,0.05) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes jungleShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Firefly canvas */
#firefly-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ── Loading Screen ───────────────────────────────────────── */
#loading-screen {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  background: radial-gradient(ellipse at center, #0d2b1a 0%, #050f08 100%);
}

.loader-glow-ring {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: radial-gradient(circle, rgba(46,204,113,0.18) 0%, transparent 70%) border-box;
  box-shadow: 0 0 60px 20px rgba(46,204,113,0.15), inset 0 0 40px rgba(46,204,113,0.08);
  animation: ringPulse 2.4s ease-in-out infinite;
}

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

.loader-egg {
  font-size: 78px;
  animation: eggFloat 1.4s ease-in-out infinite alternate, eggGlow 2s ease infinite;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 18px rgba(246,213,123,0.6));
}

@keyframes eggFloat {
  from { transform: translateY(0)   rotate(-6deg); }
  to   { transform: translateY(-18px) rotate(6deg); }
}
@keyframes eggGlow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(246,213,123,0.5)); }
  50%       { filter: drop-shadow(0 0 30px rgba(246,213,123,0.9)); }
}

.loader-text {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text-sec);
  letter-spacing: 0.5px;
  animation: typeFade 0.5s ease;
}

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

.loader-dino {
  font-size: 38px;
  animation: dinoWaddle 1.1s ease-in-out infinite alternate;
}
@keyframes dinoWaddle {
  from { transform: rotate(-12deg) translateX(-8px); }
  to   { transform: rotate(12deg)  translateX(8px); }
}

/* Sound wave visual */
.sound-waves {
  display: flex; align-items: center; gap: 4px;
  height: 30px; margin-top: 6px;
}
.sound-waves span {
  display: block; width: 4px; border-radius: 2px;
  background: var(--accent-g);
  animation: wave 1.1s ease-in-out infinite;
}
.sound-waves span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.sound-waves span:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.sound-waves span:nth-child(3) { height: 26px; animation-delay: 0.3s; }
.sound-waves span:nth-child(4) { height: 18px; animation-delay: 0.45s; }
.sound-waves span:nth-child(5) { height: 8px;  animation-delay: 0.6s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

/* ── App Wrapper ──────────────────────────────────────────── */
#app {
  display: flex; flex-direction: column;
  height: 100dvh;
  max-width: 480px; margin: 0 auto;
  position: relative; z-index: 1;
  overflow: hidden;
}

/* ── Top Header ───────────────────────────────────────────── */
#top-header {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: rgba(10, 31, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(46,204,113,0.14);
  flex-shrink: 0; z-index: 10;
}

.header-left { display: flex; align-items: center; gap: 11px; }

/* Avatar with glowing ring */
.avatar-wrap {
  position: relative; flex-shrink: 0;
  width: 44px; height: 44px;
}
.avatar-wrap.large {
  width: 80px; height: 80px;
  margin: 0 auto 12px;
}

#user-avatar, .acc-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-mid);
  object-fit: cover;
  position: relative; z-index: 1;
  border: 2px solid var(--accent-g);
}

.avatar-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(46,204,113,0.5);
  box-shadow: 0 0 14px var(--glow), inset 0 0 8px rgba(46,204,113,0.1);
  animation: avatarPulse 2.5s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 10px var(--glow); }
  50%       { box-shadow: 0 0 22px rgba(46,204,113,0.6); }
}

.header-info { display: flex; flex-direction: column; gap: 1px; }

#header-username {
  font-family: var(--font-head);
  font-size: 16px; color: var(--text);
  letter-spacing: 0.3px;
}

#header-rank {
  font-size: 11px; font-weight: 700;
  color: var(--accent-y);
  background: rgba(243,156,18,0.12);
  border: 1px solid rgba(243,156,18,0.25);
  border-radius: 999px;
  padding: 1px 8px;
  display: inline-block;
}

.balance-pill {
  display: flex; align-items: center; gap: 6px;
  background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.35);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--font-head);
  font-size: 16px; color: var(--accent-g);
  box-shadow: 0 0 12px rgba(46,204,113,0.15);
  transition: box-shadow 0.3s;
}
.balance-pill:hover { box-shadow: 0 0 20px rgba(46,204,113,0.3); }

.balance-egg-icon { font-size: 18px; }

/* ── Tab Content ──────────────────────────────────────────── */
#tab-content { flex: 1; overflow: hidden; position: relative; }

.tab-panel {
  position: absolute; inset: 0;
  overflow-y: auto; padding: 16px 16px 28px;
  display: none; opacity: 0; transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34,1.2,0.64,1);
  scrollbar-width: none;
}
.tab-panel::-webkit-scrollbar { display: none; }
.tab-panel.active { display: block; opacity: 1; transform: translateY(0); }

/* ── Glass Card ───────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.card:hover { border-color: rgba(46,204,113,0.3); box-shadow: 0 6px 32px rgba(0,0,0,0.4), 0 0 20px var(--glow-soft); }

/* ── Section Title ────────────────────────────────────────── */
.section-title {
  font-family: var(--font-head);
  font-size: 18px; color: var(--accent-y);
  margin-bottom: 14px; letter-spacing: 0.4px;
  text-shadow: 0 0 12px rgba(243,156,18,0.3);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 17px;
  color: #0a1f0f;
  background: linear-gradient(135deg, var(--accent-g) 0%, #7bed9f 50%, var(--accent-y) 100%);
  background-size: 200% 200%; background-position: left;
  box-shadow: 0 4px 20px rgba(46,204,113,0.35), 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s, box-shadow 0.2s, background-position 0.4s;
}
/* Shine sweep */
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: btnShine 3.5s ease infinite;
}
@keyframes btnShine {
  0%   { left: -75%; }
  30%  { left: 125%; }
  100% { left: 125%; }
}
.btn-primary:hover { background-position: right; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(46,204,113,0.5); }
.btn-primary:active { transform: scale(0.96) translateY(1px); box-shadow: 0 2px 10px rgba(46,204,113,0.3); }
.btn-primary:disabled {
  background: linear-gradient(135deg, #1a4a2e, #2a3a2a);
  color: var(--text-dim); box-shadow: none; cursor: not-allowed;
}
.btn-primary:disabled::after { display: none; }

.btn-ghost {
  width: 100%; padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  color: var(--text-sec);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 10px;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.btn-ghost:active { background: rgba(255,255,255,0.08); }

/* ── HOME — Hero Card ─────────────────────────────────────── */
.hero-card {
  background: linear-gradient(145deg, rgba(18,50,30,0.9) 0%, rgba(20,60,35,0.85) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(46,204,113,0.25);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  margin-bottom: 14px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(46,204,113,0.08);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute; top: -40%; left: -30%;
  width: 80%; height: 140%;
  background: radial-gradient(ellipse, rgba(46,204,113,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Dino mascot */
.dino-mascot {
  position: absolute; bottom: 10px; right: 10px;
  width: 72px; height: 72px;
  opacity: 0.9;
  animation: dinoIdle 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
@keyframes dinoIdle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-5px) rotate(1deg); }
}
.dino-tail  { animation: tailWag 0.9s ease-in-out infinite alternate; transform-origin: 18px 55px; }
@keyframes tailWag {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}
.dino-blink { animation: eyeBlink 4s ease-in-out infinite; }
@keyframes eyeBlink {
  0%, 90%, 100% { height: 0; y: 16px; }
  92%, 98%      { height: 8px; y: 16px; }
}

.hero-label {
  font-size: 11px; font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.hero-balance {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-family: var(--font-head);
  font-size: 52px; color: var(--accent-y);
  line-height: 1; margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(243,156,18,0.5);
  animation: balancePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes balancePop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.hero-egg-icon { font-size: 46px; animation: eggFloat 2s ease-in-out infinite alternate; }

.hero-usdt { font-size: 13px; color: var(--text-sec); margin-bottom: 18px; }

.quick-stats {
  display: flex; justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid rgba(46,204,113,0.15);
}

.stat-box { text-align: center; }
.stat-val { display: block; font-family: var(--font-head); font-size: 24px; color: var(--text); }
.stat-lbl { display: block; font-size: 11px; color: var(--text-sec); font-weight: 600; margin-top: 2px; }

/* Ad card */
.ad-card {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-left: 3px solid var(--accent-o);
}
.ad-card-title { font-family: var(--font-head); font-size: 15px; color: var(--text); margin-bottom: 4px; }
.ad-card-sub   { font-size: 12px; color: var(--text-sec); }

.hunt-btn {
  width: auto; white-space: nowrap; padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent-o), #f39c12);
  box-shadow: 0 4px 18px rgba(230,126,34,0.4);
}
.hunt-btn::after { background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent); }

/* Cooldown */
.cooldown-wrap {
  background: rgba(13,43,26,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230,126,34,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 14px;
}
.cooldown-label { font-size: 12px; color: var(--accent-o); margin-bottom: 8px; font-weight: 700; }
.progress-bar-bg { height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-o), var(--accent-y));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(243,156,18,0.5);
  transition: width 1s linear;
}

/* ── EARN TAB ─────────────────────────────────────────────── */
.filter-pills { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pill {
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-sec);
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.pill.active {
  background: var(--accent-g);
  border-color: var(--accent-g);
  color: #0a1f0f;
  box-shadow: 0 0 14px rgba(46,204,113,0.4);
}

.task-list { display: flex; flex-direction: column; gap: 10px; }

.task-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent-g);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.task-item:active { transform: scale(0.985); }
.task-item.completed { opacity: 0.5; border-left-color: var(--text-dim); }
.task-item[data-category="tg"]     { border-left-color: #3498db; }
.task-item[data-category="others"] { border-left-color: var(--accent-y); }
.task-item[data-category="ads"]    { border-left-color: var(--accent-o); }

.task-left { display: flex; align-items: center; gap: 12px; }
.task-icon { font-size: 28px; }
.task-name   { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.task-reward { font-size: 12px; color: var(--accent-y); font-weight: 700; }

.task-btn {
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 800; color: #0a1f0f;
  background: linear-gradient(135deg, var(--accent-g), #7bed9f);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(46,204,113,0.3);
  transition: transform 0.12s, box-shadow 0.15s;
}
.task-btn:active { transform: scale(0.93); }
.task-done-badge {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── PLAY TAB ─────────────────────────────────────────────── */
.game-card { padding: 20px; }
.game-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.game-icon { font-size: 40px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.game-name { font-family: var(--font-head); font-size: 20px; color: var(--text); margin-bottom: 4px; }
.game-desc { font-size: 13px; color: var(--text-sec); }
.game-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.cost-badge {
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: rgba(230,126,34,0.12);
  border: 1px solid rgba(230,126,34,0.35);
  color: var(--accent-o);
}
.reward-badge {
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.3);
  color: var(--accent-g);
}

.game-btn { margin-top: 8px; }

/* Result Overlay */
.game-res-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.res-card {
  width: 100%; max-width: 320px;
  background: var(--card-bg); backdrop-filter: blur(20px);
  border: 2px solid var(--accent-g); border-radius: var(--radius);
  padding: 30px 20px; text-align: center;
  box-shadow: 0 0 50px rgba(46,204,113,0.25);
}
.res-title { font-family: var(--font-head); font-size: 26px; color: var(--accent-y); margin-bottom: 8px; }
.res-body  { font-size: 16px; color: var(--text-sec); margin-bottom: 20px; }
.res-eggs  { font-family: var(--font-head); font-size: 42px; color: var(--accent-g); margin-bottom: 26px; text-shadow: 0 0 20px rgba(46,204,113,0.4); }

/* Egg Catch Arena */
.egg-catch-arena {
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(circle at center, #1a4a2e 0%, #0a1f0f 100%);
  overflow: hidden;
}
#egg-catch-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.game-ui-overlay {
  position: absolute; inset: 0; pointer-events: none;
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
}
.ui-top  { display: flex; justify-content: space-between; pointer-events: none; }
.ui-score { font-family: var(--font-head); font-size: 22px; color: var(--text); }
.ui-lives { font-size: 20px; }
.btn-mute-game {
  position: absolute; top: 15px; right: 65px; pointer-events: auto;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.btn-mute-game:active { background: rgba(255,255,255,0.25); }
.btn-quit-game {
  position: absolute; top: 15px; right: 15px; pointer-events: auto;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff; font-size: 18px;
}

.coming-soon-card {
  opacity: 0.7; border-style: dashed; border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
}


/* ── REFER TAB ────────────────────────────────────────────── */
.refer-card { text-align: center; }
.refer-label { font-size: 11px; font-weight: 700; color: var(--text-sec); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.refer-link-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 13px;
}
.refer-link { flex: 1; font-size: 12px; color: var(--text-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.btn-copy {
  background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.3);
  color: var(--accent-g); border-radius: 10px; padding: 7px 12px;
  font-size: 17px; cursor: pointer; flex-shrink: 0; transition: background 0.15s, transform 0.1s;
}
.btn-copy:active { background: rgba(46,204,113,0.2); transform: scale(0.92); }
.refer-share-btn { margin-top: 4px; }

.refer-stats-row { display: flex; gap: 12px; margin-bottom: 6px; }
.refer-stat {
  flex: 1; background: var(--card-bg); backdrop-filter: blur(14px);
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 18px; text-align: center;
}
.refer-stat-val { display: block; font-family: var(--font-head); font-size: 26px; color: var(--accent-y); margin-bottom: 4px; }
.refer-stat-lbl { font-size: 11px; color: var(--text-sec); font-weight: 600; }

.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.lb-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: var(--card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.lb-item:hover { border-color: rgba(46,204,113,0.25); }
.lb-rank { font-family: var(--font-head); font-size: 20px; color: var(--text-dim); width: 30px; text-align: center; }
.lb-rank.top1 { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.lb-rank.top2 { color: #c0c0c0; }
.lb-rank.top3 { color: #cd7f32; }
.lb-name  { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { font-size: 13px; font-weight: 800; color: var(--accent-g); }

/* ── ACCOUNT TAB ──────────────────────────────────────────── */
.profile-card { text-align: center; padding: 28px 20px 20px; }
.acc-avatar   { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.acc-name { font-family: var(--font-head); font-size: 22px; color: var(--text); margin-bottom: 3px; }
.acc-id   { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }
.acc-balance-row {
  display: flex; justify-content: center; gap: 22px;
  font-size: 14px; font-weight: 700; color: var(--text-sec);
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.07);
}
.acc-balance-row strong { color: var(--accent-y); }

.acc-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.acc-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px;  border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 16px; color: var(--text);
  background: var(--card-bg); backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  transition: border-color 0.2s, background 0.2s, transform 0.12s, box-shadow 0.2s;
}
.acc-action-btn:hover  { border-color: rgba(46,204,113,0.3); box-shadow: 0 0 16px rgba(46,204,113,0.1); }
.acc-action-btn:active { transform: scale(0.97); background: rgba(46,204,113,0.07); }
.acc-action-btn span   { font-size: 22px; }

.withdraw-history { display: flex; flex-direction: column; gap: 8px; }
.wd-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; background: var(--card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
}
.wd-status { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.wd-status.pending  { background: rgba(243,156,18,0.12); color: var(--accent-y); border: 1px solid rgba(243,156,18,0.3); }
.wd-status.approved { background: rgba(46,204,113,0.12); color: var(--accent-g); border: 1px solid rgba(46,204,113,0.3); }
.wd-status.rejected { background: rgba(231,76,60,0.12);  color: var(--accent-r); border: 1px solid rgba(231,76,60,0.3); }

.empty-state { text-align: center; padding: 28px; color: var(--text-dim); font-size: 14px; font-weight: 600; }

/* ── BOTTOM NAV ───────────────────────────────────────────── */
#bottom-nav {
  display: flex; height: var(--nav-h);
  background: rgba(10,31,15,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(46,204,113,0.14);
  flex-shrink: 0; z-index: 10;
}

.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: transparent; color: var(--text-dim);
  transition: color 0.22s, transform 0.22s;
  padding: 0; position: relative;
}
.nav-btn:active { transform: scale(0.88); }

.nav-icon  { font-size: 24px; line-height: 1; transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.nav-label { font-size: 10px; font-weight: 700; letter-spacing: 0.4px; transition: color 0.22s; }

.nav-btn.active { color: var(--accent-g); }
.nav-btn.active .nav-icon {
  transform: scale(1.18) translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(46,204,113,0.7));
}

/* Glowing top indicator */
.nav-btn.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px;
  background: var(--accent-g);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 10px var(--glow);
  animation: navGlow 1.8s ease-in-out infinite;
}
@keyframes navGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(46,204,113,0.5); }
  50%       { box-shadow: 0 0 16px rgba(46,204,113,0.9); }
}

/* ── WITHDRAW MODAL ───────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end;
  animation: fadeIn 0.22s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  width: 100%; max-width: 480px; margin: 0 auto;
  background: linear-gradient(160deg, rgba(13,43,26,0.98), rgba(10,31,15,0.98));
  backdrop-filter: blur(24px);
  border-radius: var(--radius) var(--radius) 0 0;
  border-top: 1px solid rgba(46,204,113,0.25);
  border-left: 1px solid rgba(46,204,113,0.1);
  border-right: 1px solid rgba(46,204,113,0.1);
  padding: 22px 18px 36px;
  max-height: 90dvh; overflow-y: auto;
  box-shadow: 0 -10px 60px rgba(0,0,0,0.6), 0 0 40px rgba(46,204,113,0.08);
  animation: slideUp 0.32s cubic-bezier(0.34,1.2,0.64,1);
}
@keyframes slideUp {
  from { transform: translateY(70px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title  { font-family: var(--font-head); font-size: 20px; color: var(--text); }
.modal-close  {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-sec); width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close:active { background: rgba(255,255,255,0.12); }

/* Gate */
.gate-status { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.gate-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.gate-item.met {
  border-color: rgba(46,204,113,0.4);
  background: rgba(46,204,113,0.07);
  box-shadow: 0 0 14px rgba(46,204,113,0.12);
}
.gate-icon  { font-size: 20px; }
.gate-label { flex: 1; font-size: 13px; font-weight: 700; color: var(--text-sec); }
.gate-val   { font-size: 13px; font-weight: 800; color: var(--text-dim); }
.gate-item.met .gate-val { color: var(--accent-g); }

/* Form */
.withdraw-form { display: flex; flex-direction: column; gap: 13px; }
.form-label {
  font-size: 11px; font-weight: 800; color: var(--text-sec);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: -7px;
}
.form-input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-weight: 600;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: rgba(46,204,113,0.5); box-shadow: 0 0 12px rgba(46,204,113,0.12); }
.form-input::placeholder { color: rgba(168,213,181,0.3); }

.wdl-summary {
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 9px;
}
.wdl-row     { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--text); }
.wdl-row.gas { color: var(--accent-r); font-size: 13px; }

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 14px);
  left: 50%; transform: translateX(-50%);
  background: rgba(13,43,26,0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(46,204,113,0.4);
  color: var(--text); font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: 999px; z-index: 200;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 20px rgba(46,204,113,0.15);
  animation: toastIn 0.3s cubic-bezier(0.34,1.3,0.64,1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.9); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 480px) {
  #app { border-left: 1px solid rgba(46,204,113,0.1); border-right: 1px solid rgba(46,204,113,0.1); }
}
/* ── Hunt Statistics Row ── */
.hunt-stats-row {
  display: flex; gap: 10px; margin-top: 20px;
}
.h-stat {
  flex: 1; background: rgba(0,0,0,0.25); border-radius: var(--radius-sm);
  padding: 12px 8px; text-align: center; border: 1px solid rgba(255,255,255,0.06);
}
.h-val { display: block; font-family: var(--font-head); color: var(--accent-y); font-size: 1.2rem; }
.h-lbl { display: block; font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; margin-top: 3px; }

/* ── Login Streak Card ── */
.streak-card {
  margin: 18px 0; background: linear-gradient(135deg, rgba(243, 156, 18, 0.15) 0%, rgba(230, 126, 34, 0.1) 100%);
  border: 1px solid rgba(243, 156, 18, 0.3); border-radius: var(--radius);
  padding: 16px; position: relative; overflow: hidden;
}
.streak-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.streak-title { font-family: var(--font-head); font-size: 1.15rem; color: var(--accent-y); text-shadow: 0 0 10px rgba(243,156,18,0.3); }
.streak-next { font-size: 0.8rem; color: #f1c40f; background: rgba(241,196,15,0.1); padding: 3px 8px; border-radius: 20px; }
.streak-bar-bg { height: 8px; background: rgba(0,0,0,0.35); border-radius: 4px; position: relative; margin-bottom: 8px; }
.streak-bar-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, #f39c12, #e67e22);
  border-radius: 4px; box-shadow: 0 0 10px rgba(230,126,34,0.5);
  transition: width 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
.streak-labels { display: flex; justify-content: space-between; }
.streak-labels span { font-size: 0.7rem; color: var(--text-dim); }

/* ── Section Divider ── */
.section-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 30px 10px 15px; }

/* ── Partner Tasks & Promo ── */
.loading-spinner { padding: 40px; text-align: center; color: var(--text-dim); font-style: italic; animation: pulse 1.5s infinite; }
.partner-promo-card { margin-top: 25px; border: 1px dashed var(--accent-g2); background: rgba(46,204,113,0.06); padding: 20px; text-align: center; }
.promo-title { font-family: var(--font-head); color: var(--accent-g); margin-bottom: 10px; }
.promo-text { font-size: 0.85rem; color: var(--text-sec); margin-bottom: 15px; line-height: 1.4; }
.promo-btn { width: 100%; padding: 12px; display: flex; justify-content: center; align-items: center; text-decoration: none; border-radius: var(--radius-sm); font-weight: 800; cursor: pointer; }

/* 🚀 Animations */
@keyframes pulse {
  0%, 100% { opacity: 0.5; } 50% { opacity: 1; }
}

.streak-earned-pop {
  animation: streakPop 0.6s ease-out;
}
@keyframes streakPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); filter: brightness(1.5); }
  100% { transform: scale(1); }
}

/* 💸 Withdrawal Method Selection */
.modal-subtitle {
  font-size: 0.85rem;
  color: #889988;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.wd-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.wd-method-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wd-method-card:hover {
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.3);
  transform: translateY(-2px);
}

.wd-method-card.selected {
  background: rgba(46, 204, 113, 0.15);
  border-color: #2ecc71;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

.wd-method-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.wd-method-info {
  flex: 1;
}

.wd-method-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.wd-method-desc {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

.wd-method-min {
  font-size: 0.75rem;
  color: #2ecc71;
  font-weight: 600;
  margin-top: 4px;
}

.help-text {
  font-size: 0.75rem;
  color: #888;
  margin-top: -8px;
  margin-bottom: 15px;
  font-style: italic;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.wdl-row.gas {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 4px;
}
