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

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg-deep: #050f08;
  --bg-dark: #0a1f0f;
  --bg-mid: #122b1c;
  --card-bg: rgba(15, 25, 20, 0.3);
  /* Ultra-translucent for Apple feel */
  --glass-border: rgba(255, 255, 255, 0.15);
  --inner-border: rgba(255, 255, 255, 0.08);
  --glow: rgba(13, 226, 127, 0.4);
  --accent-g: #2ecc71;
  --accent-jade: #0de27f;
  --accent-dark-g: #004d26;
  /* Dark Green requested for Eggs */
  --accent-y: #fbc531;
  --accent-o: #e67e22;
  --accent-r: #e84118;
  --text: #ffffff;
  --text-sec: #b0ccb8;
  --text-dim: #a0a0a0;
  --radius: 24px;
  --nav-h: 80px;
  --header-h: 72px;
  --apple-glass: blur(32px) saturate(190%);
  --font-head: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Nunito', sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ── V2 ANIMATION KEYFRAMES ───────────────────────────── */
@keyframes v2DinoFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@keyframes eggRadioactive {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.5;
    box-shadow: 0 0 60px 20px rgba(13, 226, 127, 0.2);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.9;
    box-shadow: 0 0 90px 35px rgba(13, 226, 127, 0.4);
  }
}

@keyframes tabSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes tabSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-30px) scale(0.98);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}

/* ── 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: transparent;
}

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 (V2) ───────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-deep) url('assets/v2_bg.png') no-repeat center/cover;
}

/* Glass Noise texture overlay remvoved for V2 background restoration */

/* Subtle glow circles for depth */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-glow::before,
.bg-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.bg-glow::before {
  width: 400px;
  height: 400px;
  background: rgba(46, 204, 113, 0.06);
  top: -10%;
  left: -20%;
}

.bg-glow::after {
  width: 350px;
  height: 350px;
  background: rgba(251, 197, 49, 0.05);
  bottom: 0%;
  right: -10%;
}

@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 (Simplified V2) ───────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #050f08;
}

.loader-text {
  font-family: 'Outfit';
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(13, 226, 127, 0.4);
}

.loader-progress-wrap {
  width: 260px;
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loader-progress-inner {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #0de27f, #fff);
  box-shadow: 0 0 15px #0de27f;
  border-radius: 20px;
  animation: loaderRun 3s infinite alternate ease-in-out;
}

@keyframes loaderRun {
  from {
    width: 10%;
    transform: translateX(-20px);
  }

  to {
    width: 80%;
    transform: translateX(20px);
  }
}

.loader-sub {
  margin-top: 15px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-jade);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

#tab-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 5;
}

/* ── Top Header (Restored Original Background) ────────────────── */
#top-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: transparent;
  flex-shrink: 0;
  z-index: 200;
}

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

.v2-header-title {
  font-family: 'Outfit';
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.v2-header-title .accent-egg-text {
  color: var(--accent-jade);
  text-shadow: 0 0 10px rgba(13, 226, 127, 0.3);
}

/* Glowing Avatar */
.avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #0de27f;
  background: #050f08;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.avatar-glow-v2 {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #0de27f;
  opacity: 0.3;
  filter: blur(8px);
  animation: avatarPulseV2 2s infinite alternate;
}

@keyframes avatarPulseV2 {
  from {
    opacity: 0.2;
    transform: scale(1);
  }

  to {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Premium Balance Pill */
.header-right {
  display: flex;
  align-items: center;
}

.balance-pill-v2 {
  background: linear-gradient(135deg, rgba(251, 197, 49, 0.1), rgba(251, 197, 49, 0.05));
  border: 1px solid rgba(251, 197, 49, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fbc531;
  font-weight: 900;
  font-size: 14px;
}

.pill-egg {
  width: 18px;
  filter: drop-shadow(0 0 5px #fbc531);
  font-style: normal;
}

.pill-plus {
  color: rgba(251, 197, 49, 0.6);
  font-size: 18px;
  padding-left: 4px;
  cursor: pointer;
}

/* Title Section (V2 Screenshot style) */
.home-titles {
  text-align: center;
  margin: 0 0 10px;
}

.home-titles h1 {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.home-titles p {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.8px;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

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

/* ── Premium Tab Content Transitions ────────────────────────── */
#tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* Removed background to restore original jungle view */
}

.tab-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 60px 18px 60px;
  display: none;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: none;
  transform: translateX(40px) scale(0.96);
  /* Starting position for entrance */
}

/* Fixed Home Tab Layout */
#tab-home.active {
  overflow: hidden !important;
  touch-action: none;
  display: flex !important;
  flex-direction: column;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 10;
  animation: tabSlideIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Exit state handled via JS naming or View Transitions */
.tab-panel.exiting {
  display: block;
  opacity: 0;
  transform: translateX(-40px) scale(0.96);
  pointer-events: none;
  animation: tabSlideOut 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ── Premium Glass Card ────────────────────────────────────── */
.card {
  background: var(--card-bg);
  backdrop-filter: var(--apple-glass);
  -webkit-backdrop-filter: var(--apple-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  /* Apple Glass edge highlight */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pill-egg,
.hero-egg-suffix,
.res-eggs,
.lb-count,
.refer-stat-val,
.cg-stat-item,
.accent-egg-text {
  color: var(--accent-jade) !important;
  /* Brighter lime/emerald for visibility on glass */
  font-weight: 900;
  filter: drop-shadow(0 0 4px rgba(13, 226, 127, 0.4));
}

.accent-egg-text-dark {
  color: var(--accent-dark-g) !important;
  font-weight: 900;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(13, 226, 127, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 30px var(--glow-soft);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

/* ── 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: 8px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: #050f08;
  background: linear-gradient(135deg, var(--accent-jade) 0%, #a29bfe 100%);
  background-size: 200% 200%;
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(46, 204, 113, 0.5);
}

.btn-primary:hover::after {
  transform: translateX(100%) skewX(-15deg);
}

.btn-primary:active {
  transform: scale(0.96) translateY(0);
}

.btn-primary:disabled {
  background: #2f3640;
  color: #718093;
  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 (Updated V2 Mockup Style) ───────────────── */
.hero-card {
  padding: 10px 20px 20px;
}

.dino-mascot-v2 {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 30px auto 0px;
  /* Nudged Dino 5% lower; kept tabs in place */
  z-index: 5;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.6));
  animation: v2DinoFloat 4s ease-in-out infinite;
  cursor: pointer;
  /* Indicated interactivity */
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v2-mascot-img-v2 {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* Bright Radioactive Egg Glow */
.egg-glow-ring {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(13, 226, 127, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(28px);
  z-index: 1;
  animation: eggRadioactive 3.5s ease-in-out infinite;
}

@keyframes eggRadioactive {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.6;
    box-shadow: 0 0 60px 20px rgba(13, 226, 127, 0.2);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    box-shadow: 0 0 100px 40px rgba(13, 226, 127, 0.4);
  }
}

.hero-balance-v2 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 58px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
  text-shadow: 0 0 40px rgba(251, 197, 49, 0.3);
}

.hero-egg-suffix {
  font-size: 32px;
  filter: drop-shadow(0 0 15px var(--accent-y));
}

.hero-usdt-v2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-jade);
  margin-bottom: 24px;
  opacity: 0.95;
  text-shadow: 0 0 12px rgba(13, 226, 127, 0.3);
}

.hero-label-v2 {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  opacity: 0.75;
}

/* V2 Home Grid Layout */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

/* Lower opacity for home grid cards as requested */
.home-grid .card {
  margin-bottom: 0;
  padding: 18px 14px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(13, 43, 26, 0.25) !important;
}

.home-refer-card {
  margin-top: 16px;
  background: rgba(13, 43, 26, 0.25) !important;
}

.refer-link-box-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 12px;
}

.refer-link-text {
  font-size: 13px;
  color: var(--accent-jade);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-weight: 700;
}

.btn-copy-v2 {
  background: var(--accent-jade);
  color: #050f08;
  border: none;
  padding: 6px 14px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(13, 226, 127, 0.3);
}

.btn-copy-v2:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.btn-copy-v2:active {
  transform: scale(0.95);
}

/* Consolidated Share Button (V2) */
.btn-share-v2 {
  background: rgba(255, 255, 255, 0.12);
  border: 0.5px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-share-v2:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-share-v2:active {
  transform: scale(0.94);
}



.share-icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #fff;
  transition: all 0.2s;
  cursor: pointer;
}

.share-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.share-icon-btn.tg {
  color: #0088cc;
}

.share-icon-btn.wa {
  color: #25d366;
}


.p-bar-v2 {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0 6px;
}

.p-fill-v2 {
  height: 100%;
  background: #0de27f;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(13, 226, 127, 0.5);
}

.p-label-v2 {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-align: right;
}

.claim-btn-v2 {
  background: #0de27f !important;
  color: #050f08 !important;
  font-size: 14px !important;
  padding: 10px !important;
  box-shadow: 0 4px 15px rgba(13, 226, 127, 0.3) !important;
}

.view-btn-v2 {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-size: 13px !important;
  padding: 10px !important;
}

/* Ad card (V2) */
.ad-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(251, 197, 49, 0.25);
  background: linear-gradient(145deg, rgba(251, 197, 49, 0.05), rgba(13, 43, 26, 0.5));
}

.ad-card-info {
  flex: 1;
}

.ad-card-title {
  font-family: 'Outfit';
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-y);
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ad-card-sub {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.p-label-v2 {
  font-size: 11px;
  font-weight: 900;
  color: var(--accent-jade);
  text-align: right;
  margin-top: 2px;
}

.hunt-btn {
  width: auto;
  height: 50px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--accent-y), #e67e22);
  color: #050f08;
  box-shadow: 0 8px 20px rgba(251, 197, 49, 0.3);
}

.hunt-btn:hover {
  box-shadow: 0 12px 28px rgba(251, 197, 49, 0.5);
}

/* Streak Card (V2) */
.streak-card {
  border-top: 3px solid var(--accent-jade);
  background: linear-gradient(145deg, rgba(13, 226, 127, 0.05), rgba(13, 43, 26, 0.6));
}

.streak-title {
  font-family: 'Outfit';
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.streak-next {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-jade);
}

.streak-bar-bg {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  margin: 12px 0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.streak-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-jade), #fff);
  box-shadow: 0 0 12px var(--accent-jade);
  border-radius: 20px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.streak-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
}

/* 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: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sec);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
}

.pill.active {
  background: var(--accent-jade);
  border-color: var(--accent-jade);
  color: #050f08;
  box-shadow: 0 8px 20px rgba(13, 226, 127, 0.4);
  transform: translateY(-2px);
}

/* Partner Section */
#partner-task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


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

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-left: 5px solid var(--accent-jade);
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.task-item:hover {
  border-color: rgba(13, 226, 127, 0.4);
  transform: translateX(6px) scale(1.01);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-soft);
}

.task-item:active {
  transform: scale(0.97);
}

.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: 16px;
  padding: 16px 20px;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.lb-item:hover {
  transform: scale(1.02);
  border-color: var(--accent-jade);
}

.lb-rank {
  font-family: 'Outfit';
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dim);
  width: 34px;
  text-align: center;
}

.lb-rank.top1 {
  color: #fbc531;
  text-shadow: 0 0 15px rgba(251, 197, 49, 0.5);
  font-size: 28px;
}

.lb-rank.top2 {
  color: #dcdde1;
  text-shadow: 0 0 10px rgba(220, 221, 225, 0.4);
}

.lb-rank.top3 {
  color: #e67e22;
}

.lb-name {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.lb-count {
  font-size: 14px;
  font-weight: 900;
  color: var(--accent-jade);
  text-shadow: 0 0 8px rgba(13, 226, 127, 0.3);
}

/* ── REFERRAL MILESTONES ──────────────────────────────────── */
.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.milestone-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid #7c3aed;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.milestone-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateX(4px);
}

.milestone-card.claimed {
  opacity: 0.5;
  border-left-color: var(--text-dim);
}

.milestone-card.unlocked {
  border-left-color: var(--accent-jade);
}

.milestone-card.unlocked:not(.claimed) {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), var(--card-bg));
  border-color: rgba(46, 204, 113, 0.2);
}

.milestone-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.milestone-card.unlocked .milestone-icon {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.05));
  border-color: rgba(46, 204, 113, 0.3);
}

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

.milestone-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.milestone-rewards {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-y);
  margin-bottom: 6px;
}

.milestone-rewards span {
  color: var(--accent-jade);
}

.milestone-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.milestone-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, var(--accent-jade));
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.milestone-progress-text {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
  text-align: right;
  margin-top: 3px;
}

.milestone-action {
  flex-shrink: 0;
}

.milestone-claim-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  color: #050f08;
  background: linear-gradient(135deg, var(--accent-jade), #a29bfe);
  box-shadow: 0 4px 15px rgba(13, 226, 127, 0.3);
  transition: transform 0.12s, box-shadow 0.15s;
  white-space: nowrap;
}

.milestone-claim-btn:active {
  transform: scale(0.93);
}

.milestone-claim-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
}

.milestone-locked-icon {
  font-size: 16px;
  color: var(--text-dim);
}

/* Skeleton Shimmer FX */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05) !important;
  border: none !important;
  color: transparent !important;
  pointer-events: none;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ── 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 (Restored Original Style) ───────────────────── */
#bottom-nav {
  display: flex;
  height: 80px;
  background: linear-gradient(to top, rgba(5, 15, 8, 0.95), rgba(5, 15, 8, 0.85));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 10px 15px;
  flex-shrink: 0;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-dim);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.nav-btn.active {
  color: var(--accent-jade);
  transform: translateY(-8px) scale(1.1);
}

.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent-jade);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-jade);
}

.nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.nav-label {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.5;
}

.nav-btn.active {
  color: var(--accent-jade);
}

.nav-btn.active .nav-icon {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(13, 226, 127, 0.3));
}

.nav-btn.active .nav-label {
  opacity: 1;
}

/* ── 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;
}

/* ── V2 TASK PILLS FIX ──────────────────────────────────────── */
.filter-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 4px 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 25px;
  font-family: 'Outfit';
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  opacity: 0.7;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pill.active {
  background: #0de27f;
  border-color: #0de27f;
  color: #050f08;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(13, 226, 127, 0.4);
}

/* 🦖 RESPONSIVE FIX (For shorter mobile screens like iPhone SE) ─ */
@media (max-height: 720px) {
  .home-titles h1 {
    font-size: 30px !important;
  }

  .home-titles p {
    font-size: 13px !important;
  }

  .home-titles {
    margin: 10px 0 10px !important;
  }

  .hero-card {
    padding: 4px 16px 16px !important;
  }

  .dino-mascot-v2 {
    width: 200px !important;
    height: 200px !important;
    margin: -35px auto 0 !important;
  }

  .hero-balance-v2 {
    font-size: 32px !important;
    margin-top: -5px !important;
  }

  .home-grid {
    gap: 10px !important;
    margin-top: 10px !important;
  }

  .card {
    padding: 14px !important;
  }
}

/* ── REFER DASHBOARD FIX ────────────────────────────────────── */
.refer-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.refer-stat {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.refer-stat-val {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--accent-y);
  display: block;
}

.refer-stat-lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
}

/* Modal History Styling */
.modal-header-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-header-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.1);
}

.withdraw-history-modal {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 5px;
}

.withdraw-history-modal::-webkit-scrollbar {
  width: 4px;
}

.withdraw-history-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.history-item-modal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item-modal .h-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-item-modal .h-amount {
  font-family: 'Outfit';
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.history-item-modal .h-date {
  font-size: 11px;
  color: var(--text-dim);
}

.history-item-modal .h-status {
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 900;
}

.history-item-modal .h-status.pending {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
}

.history-item-modal .h-status.approved {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.history-item-modal .h-status.rejected {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.lang-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.lang-btn {
  background: rgba(43, 22, 5, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 50px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:active {
  transform: scale(0.9);
}

.lang-btn.active {
  background: #f39c12;
  border-color: #ff9f43;
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
}

.leaderboard-modal-list {
  max-height: 350px;
  overflow-y: auto;
  margin-top: 15px;
  padding-right: 5px;
}

.leaderboard-modal-list::-webkit-scrollbar {
  width: 4px;
}

.leaderboard-modal-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.lb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.lb-item.lb-me {
  background: rgba(13, 226, 127, 0.1);
  border-color: rgba(13, 226, 127, 0.3);
}

.lb-rank {
  width: 30px;
  font-weight: 900;
  color: var(--accent-jade);
  text-align: center;
}

.lb-user {
  flex: 1;
  font-weight: 700;
  color: #fff;
}

.lb-count {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-y);
}

/* ── GAME 2: CHEST HUNTER ────────────────────────────────── */
#chest-game-arena {
  padding-top: 20px;
}

.cg-stats-row {
  display: flex;
  gap: 15px;
  margin: 10px 20px 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cg-stat-item {
  font-family: 'Outfit';
  font-weight: 900;
  font-size: 16px;
  color: #0de27f;
}

.cg-stat-item span {
  color: white;
  font-size: 13px;
  opacity: 0.7;
  margin-right: 5px;
  font-weight: 600;
}

.cg-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 350px;
  padding: 20px;
  margin: 0 auto;
}

.chest {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chest:active {
  transform: scale(0.9);
}

.chest.opened {
  cursor: default;
}

.chest.opened.treasure {
  background: rgba(13, 226, 127, 0.1);
  border-color: #0de27f;
}

.chest.opened.bomb {
  background: rgba(255, 71, 87, 0.1);
  border-color: #ff4757;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

.chest.opened.empty {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.6;
}

.chest.opened::after {
  content: attr(data-loot);
  font-family: 'Outfit';
  font-size: 18px;
  position: absolute;
  bottom: 8px;
  font-weight: 900;
}

.cg-game-status {
  font-family: 'Outfit';
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  margin-top: 15px;
  padding: 0 20px;
}

.cg-ad-button-wrap {
  margin-top: 30px;
  text-align: center;
}

.cg-btn-gold {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #000;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-family: 'Outfit';
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.cg-btn-gold:disabled {
  background: #555;
  color: #aaa;
  box-shadow: none;
  cursor: not-allowed;
}

.cg-start-wrap {
  margin-top: 20px;
  text-align: center;
  padding-bottom: 30px;
}

/* ═══════════════════════════════════════════════════════════
   STEAL FEATURE — Appended styles
   ═══════════════════════════════════════════════════════════ */

/* ── Home Steal Button ─────────────────────────────────────── */
.steal-home-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 16px;
  padding: 10px 10px 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  backdrop-filter: blur(10px);
}
.steal-home-btn:active {
  transform: translateY(-50%) scale(0.92);
  background: rgba(231,76,60,0.28);
}
.steal-btn-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.steal-btn-label {
  font-family: 'Outfit';
  font-size: 11px;
  font-weight: 800;
  color: #ff6b6b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Steal Modal Interior ──────────────────────────────────── */
.steal-raids-left {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  padding: 6px 12px;
  border-radius: 99px;
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* ── Social Raid Info Card ───────────────────────────────── */
.steal-info-card {
  background: linear-gradient(135deg, rgba(13, 226, 127, 0.08), rgba(46, 204, 113, 0.04));
  border: 1px solid rgba(13, 226, 127, 0.2);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.steal-info-item {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}
.steal-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.steal-prey-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.steal-prey-list::-webkit-scrollbar { width: 4px; }
.steal-prey-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

/* ── Single Prey Card ─────────────────────────────────────── */
.prey-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: all 0.2s;
}
.prey-card:hover { border-color: rgba(231,76,60,0.3); }
.prey-left { display: flex; flex-direction: column; gap: 3px; }
.prey-name { font-weight: 800; font-size: 14px; color: #fff; }
.prey-balance { font-size: 12px; color: var(--accent-jade); }
.prey-balance { font-size: 12px; color: var(--accent-jade); }
.btn-loot {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-family: 'Outfit';
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(231,76,60,0.3);
}
.btn-loot:active { transform: scale(0.92); }
.btn-loot:disabled {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3);
  box-shadow: none;
  cursor: not-allowed;
}

/* ── Raid Animation Overlay ───────────────────────────────── */
.raid-anim-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 15, 8, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.raid-thief-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  animation: thiefBounce 0.6s ease-in-out infinite alternate;
}
@keyframes thiefBounce {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-12px) rotate(3deg); }
}
.raid-anim-text {
  font-family: 'Outfit';
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
}

/* ── Balance Gain Chip (+N 🥚 float up) ─────────────────────── */
.balance-gain-chip {
  position: fixed;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0de27f, #2ecc71);
  color: #050f08;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(13, 226, 127, 0.5);
  animation: chipFloat 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes chipFloat {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0) scale(0.7); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(-6px) scale(1.08); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-28px) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-50px) scale(0.92); }
}

/* ── Loot Alert Overlay ───────────────────────────────────── */
.loot-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(5, 15, 8, 0.88);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.loot-alert-card {
  background: linear-gradient(145deg, rgba(80,0,0,0.9), rgba(20,5,5,0.95));
  border: 1px solid rgba(231,76,60,0.5);
  border-radius: 24px;
  padding: 28px 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 0 40px rgba(231,76,60,0.25);
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
@keyframes scaleIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.loot-alert-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: shakePop 0.5s ease 0.2s both;
}
@keyframes shakePop {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-10deg) scale(1.1); }
  40% { transform: rotate(10deg) scale(1.15); }
  60% { transform: rotate(-6deg) scale(1.1); }
  80% { transform: rotate(4deg) scale(1.05); }
}

#loot-alert-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ff6b6b;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loot-alert-body {
  margin-bottom: 24px;
  text-align: left;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}
.loot-alert-body::-webkit-scrollbar { width: 4px; }
.loot-alert-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.btn-loot-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #888;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}
.btn-loot-close:active { transform: scale(0.9); background: rgba(231, 76, 60, 0.2); color: #fff; }

.loot-event-row {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(231,76,60,0.2);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
}
.loot-event-thief { font-size: 14px; color: #fff; margin-bottom: 4px; }
.loot-event-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ff6b6b;
}
.loot-event-time { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px; }
.loot-divider { height: 1px; background: rgba(255,255,255,0.05); }

.btn-loot-dismiss {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(231,76,60,0.4);
  transition: all 0.2s;
}
.btn-loot-dismiss:active { transform: scale(0.96); }

/* ── Balance History Modal ────────────────────────────────── */
.history-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 4px;
  margin-top: 10px;
}
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.hist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.hist-row:hover { background: rgba(255,255,255,0.06); }
.hist-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.hist-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.hist-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 900;
}
.hist-time {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}

/* ── Trap Buy Confirmation Modal ─────────────────────────── */
.trap-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(5, 15, 8, 0.85);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.trap-confirm-card {
  background: linear-gradient(145deg, rgba(20, 50, 25, 0.97), rgba(5, 20, 8, 0.98));
  border: 1px solid rgba(243, 156, 18, 0.4);
  border-radius: 24px;
  padding: 28px 22px 22px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 0 40px rgba(243, 156, 18, 0.15);
  animation: scaleIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trap-confirm-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.trap-confirm-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #f39c12;
  margin-bottom: 14px;
  text-shadow: 0 0 16px rgba(243, 156, 18, 0.3);
}

.trap-confirm-desc {
  text-align: left;
  margin-bottom: 18px;
}

.trap-confirm-desc p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  line-height: 1.5;
}

.trap-confirm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trap-confirm-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 12px;
  line-height: 1.4;
}

.trap-confirm-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 4px;
}

.trap-price-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #f39c12;
}

.trap-price-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.trap-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-trap-no {
  flex: 1;
  padding: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-trap-no:active { background: rgba(255, 255, 255, 0.12); }

.btn-trap-yes {
  flex: 1.6;
  padding: 13px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border: none;
  border-radius: 14px;
  color: #050f08;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(243, 156, 18, 0.35);
  transition: all 0.2s;
}
.btn-trap-yes:active { transform: scale(0.96); }

/* ── TASKS PAGE REDESIGN ──────────────────────────────────── */

.tp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.tp-left h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 2px;
}
.tp-left p {
  color: var(--text-dim);
  font-size: 14px;
}
.tp-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 226, 127, 0.08);
  border: 1px solid rgba(13, 226, 127, 0.2);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.tp-egg-val {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
}
/* Progress Bar */
.tp-progress-wrap {
  margin-bottom: 16px;
}
.tp-prog-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.tp-prog-label { color: var(--text-dim); }
.tp-prog-val { color: var(--accent-jade); font-weight: 700; }
.tp-prog-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.tp-prog-fill {
  height: 100%;
  background: var(--accent-jade);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Promo Row */
.tp-promo-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.tp-promo-banner {
  flex: 1;
  background: linear-gradient(135deg, rgba(142,68,173,0.15), rgba(142,68,173,0.05));
  border: 1px solid rgba(142,68,173,0.3);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.tp-promo-icon { font-size: 24px; }
.tp-promo-info { flex: 1; }
.tp-promo-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.tp-promo-badge {
  display: inline-block;
  background: rgba(231,76,60,0.2);
  color: #e74c3c;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
}
.tp-promo-arrow { font-size: 20px; color: var(--text-dim); }
.tp-add-task-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 0 16px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
.tp-add-icon { font-size: 24px; color: var(--accent-jade); line-height: 1; margin-bottom: 4px; }
.tp-add-text { font-size: 11px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }

/* Filters */
.tp-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.tp-filter-btn {
  background: rgba(5, 15, 10, 0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  margin-top: 10px;
  padding: 12px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.2s;
  color: rgba(255,255,255,0.85); /* Brighter base text */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tp-filter-btn.active {
  background: rgba(13,226,127,0.15);
  border-color: rgba(13,226,127,0.4);
  color: #fff;
}
.tp-f-count {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 10px;
  background: linear-gradient(135deg, #a29bfe, #8e44ad);
  color: #fff;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.tp-f-icon { font-size: 18px; margin-bottom: 6px; }
.tp-f-label { font-size: 11px; font-weight: 700; }

/* Task List Items */
.tp-task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(5, 15, 10, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  transition: transform 0.2s;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.tp-task-item:active { transform: scale(0.98); }
.tp-task-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.tp-task-content { flex: 1; }
.tp-task-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.tp-tag-category {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.tp-tag-reward {
  background: rgba(13,226,127,0.15);
  color: var(--accent-jade);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.tp-task-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
  color: #fff;
}
.tp-task-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}
.tp-task-action {
  flex-shrink: 0;
}
.tp-task-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-head);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.2s;
}
.tp-task-btn.start:hover {
  background: rgba(255,255,255,0.1);
}
.tp-task-btn.done {
  background: rgba(13,226,127,0.15);
  border-color: transparent;
  color: var(--accent-jade);
}

/* Specific Category Borders matching screenshot */
.tp-task-item[data-category="tg"] { border-left-color: #3498db; }
.tp-task-item[data-category="ads"] { border-left-color: #f39c12; }
.tp-task-item[data-category="others"] { border-left-color: #e74c3c; }
