/* ================================================================
   NIXORA — App Component Styles
   All screens, tabs, cards, games
   ================================================================ */

/* ── Screen Management ──────────────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.screen.active { display: flex; }

/* ── SPLASH SCREEN ──────────────────────────────────────────────── */
#screen-splash {
  background: var(--bg);
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.splash-orb-1, .splash-orb-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.splash-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 70%);
  top: -100px; left: -100px;
}
.splash-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(157,78,221,0.12), transparent 70%);
  bottom: -80px; right: -80px;
}
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease;
}
.splash-logo-wrap {
  width: 120px; height: 120px;
  animation: float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(0,212,255,0.5));
}
.splash-logo-wrap svg { width: 100%; height: 100%; }
.splash-app-name {
  font-family: var(--font-h);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 6px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.splash-tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}
.splash-loading {
  width: 220px;
  margin-top: 12px;
}
.splash-loading-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  overflow: hidden;
}
.splash-loading-fill {
  height: 100%;
  width: 0;
  background: var(--grad-primary);
  border-radius: var(--r-full);
  animation: loadingFill 2.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
.splash-dots {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}
.splash-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: glowPulse 1.2s ease-in-out infinite;
}
.splash-dot:nth-child(2) { animation-delay: 0.2s; background: var(--purple); animation-name: glowPulsePurple; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }

/* ── AUTH SCREENS ────────────────────────────────────────────────── */
#screen-login, #screen-register {
  background: var(--bg);
  overflow-y: auto;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}
.auth-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0 40px;
  min-height: 100%;
  justify-content: center;
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-title {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
  margin-top: -10px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cyan-border);
}
.auth-switch {
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
}
.auth-switch a { color: var(--cyan); font-weight: 600; }
.auth-switch a:hover { text-shadow: 0 0 8px rgba(0,212,255,0.5); }
.auth-error {
  padding: 12px 16px;
  background: rgba(255,68,102,0.1);
  border: 1px solid rgba(255,68,102,0.3);
  border-radius: var(--r-sm);
  color: var(--danger);
  font-size: 13px;
  text-align: center;
  display: none;
}

/* ── APP LAYOUT ──────────────────────────────────────────────────── */
#screen-app {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* ── APP HEADER ──────────────────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--cyan-border);
  flex-shrink: 0;
  z-index: 100;
  background: rgba(10,10,42,0.9);
  backdrop-filter: blur(20px);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo svg { width: 36px; height: 36px; }
.header-logo-name {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.referral-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 12px;
}
.ref-label { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.ref-code  { color: var(--cyan); font-family: var(--font-h); font-size: 12px; font-weight: 700; }

/* ── TAB WRAPPER ─────────────────────────────────────────────────── */
.tab-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.tab-pane {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 20px;
}
.tab-pane.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* ── BOTTOM NAVIGATION ───────────────────────────────────────────── */
.bottom-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(10,10,42,0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--cyan-border);
  flex-shrink: 0;
  z-index: 100;
  padding: 0 8px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.25s;
  border-radius: var(--r-md);
  position: relative;
  min-width: 60px;
}
.nav-item svg { width: 22px; height: 22px; transition: all 0.25s; }
.nav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; transition: all 0.25s; }
.nav-item:hover { color: var(--cyan-dim); }
.nav-item.active {
  color: var(--cyan);
}
.nav-item.active svg { filter: drop-shadow(0 0 6px rgba(0,212,255,0.7)); }
.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px;
  background: var(--grad-primary);
  border-radius: 0 0 var(--r-full) var(--r-full);
  box-shadow: 0 0 8px rgba(0,212,255,0.5);
}

/* ── HOME TAB ────────────────────────────────────────────────────── */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  height: 100%;
}
@media (max-width: 700px) {
  .home-split { grid-template-columns: 1fr; }
}
.home-hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  min-height: 180px;
  background: linear-gradient(160deg, #0a1a2e, #0d2040, #0a2a1a);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,212,255,0.05) 0%, rgba(10,10,42,0.7) 100%);
}
.home-hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--cyan);
  animation: float var(--dur,3s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
}
.home-hero-text {
  position: relative;
  z-index: 1;
}
.hero-tagline {
  font-family: var(--font-h);
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  line-height: 1.3;
  margin-bottom: 10px;
}
.hero-sub-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid rgba(0,212,255,0.5);
  border-radius: var(--r-full);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  background: rgba(0,212,255,0.08);
  cursor: pointer;
  transition: all 0.2s;
}
.hero-sub-btn:hover { background: rgba(0,212,255,0.15); }

.balance-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(0,212,255,0.1), transparent 70%);
  pointer-events: none;
}
.vip-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vip-star { font-size: 14px; }
.bal-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }
.bal-amount {
  font-family: var(--font-h);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,212,255,0.4);
}
.today-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.today-label { font-size: 11px; color: var(--text-3); }
.today-amount { font-size: 14px; font-weight: 700; color: var(--success); }

.watch-ad-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-color: var(--purple-border);
}
.watch-ad-header { display: flex; align-items: center; gap: 10px; }
.watch-ad-icon {
  width: 44px; height: 44px;
  background: var(--purple-glow);
  border: 1px solid var(--purple-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.ad-count-badge {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ad-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.ad-dot.done { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 6px rgba(0,212,255,0.6); }

.stats-mini {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stats-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stats-bar-label { font-size: 11px; color: var(--text-3); min-width: 50px; }
.stats-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  overflow: hidden;
}
.stats-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--r-full);
}
.stats-bar-val { font-size: 11px; color: var(--text-2); min-width: 60px; text-align: right; }

.withdraw-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.withdraw-title { font-family: var(--font-h); font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; }
.withdraw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.withdraw-amount-btn {
  padding: 10px 6px;
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: var(--font-h);
}
.withdraw-amount-btn:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: var(--shadow-cyan);
}

.vip-overview { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.vip-tier-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.vip-tier-row:hover { background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.3); }
.vip-tier-row.current { border-color: var(--gold); background: rgba(255,215,0,0.12); }
.vip-tier-num { font-family: var(--font-h); font-size: 12px; font-weight: 900; color: var(--gold); min-width: 45px; }
.vip-tier-info { flex: 1; }
.vip-tier-name { font-size: 12px; font-weight: 600; color: var(--text); }
.vip-tier-daily { font-size: 11px; color: var(--success); }
.vip-tier-recharge { font-size: 11px; color: var(--cyan); text-align: right; }

/* Investments horizontal scroll */
.inv-scroller-wrap { display: flex; flex-direction: column; gap: 10px; }
.inv-scroller-title { font-family: var(--font-h); font-size: 12px; color: var(--text-2); letter-spacing: 1px; text-transform: uppercase; }
.inv-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.inv-scroll-card {
  min-width: 160px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}
.inv-scroll-card:hover { border-color: var(--purple); transform: translateY(-3px); box-shadow: var(--shadow-purple); }
.inv-card-name { font-size: 11px; font-weight: 700; color: var(--text); }
.inv-card-amount { font-family: var(--font-h); font-size: 13px; color: var(--cyan); font-weight: 700; }
.inv-card-roi { font-size: 12px; color: var(--success); font-weight: 600; }
.inv-card-days { font-size: 10px; color: var(--text-3); }

/* ── TASKS TAB ───────────────────────────────────────────────────── */
.tasks-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
}
@media (max-width: 700px) { .tasks-split { grid-template-columns: 1fr; } }

.tasks-hero {
  border-radius: var(--r-lg);
  min-height: 200px;
  background: linear-gradient(160deg, #041a12, #0a2a1a, #0d1a30);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.tasks-hero-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(0,212,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(157,78,221,0.08) 0%, transparent 60%);
}

.tasks-panel { display: flex; flex-direction: column; gap: 12px; }
.tasks-panel-title {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.task-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s;
}
.task-card:hover { transform: translateY(-2px); border-color: var(--cyan); }
.task-card-header { display: flex; align-items: center; gap: 12px; }
.task-card-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.task-card-info { flex: 1; }
.task-card-name { font-family: var(--font-h); font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.task-card-reward { font-size: 13px; color: var(--success); font-weight: 700; }
.task-card-pct { font-size: 11px; color: var(--cyan); text-align: right; }

.task-data-row {
  display: flex;
  gap: 12px;
  font-size: 11px;
}
.task-data-item { display: flex; flex-direction: column; gap: 2px; }
.task-data-label { color: var(--text-3); text-transform: uppercase; font-size: 9px; letter-spacing: 0.5px; }
.task-data-val { color: var(--text); font-weight: 600; }

.weekend-lock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  border-color: var(--danger);
}
.lock-emoji { font-size: 48px; animation: float 3s ease-in-out infinite; }
.lock-title { font-family: var(--font-h); font-size: 16px; color: var(--danger); }
.lock-msg { color: var(--text-2); font-size: 13px; }

.invest-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--grad-reverse);
  border: none;
  border-radius: var(--r-xl);
  color: #fff;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: var(--shadow-purple);
  transition: all 0.25s;
  animation: glowPulsePurple 3s ease-in-out infinite;
}
.invest-float-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(157,78,221,0.6);
}

/* ── PROMOTIONS TAB ──────────────────────────────────────────────── */
.promo-header { text-align: center; margin-bottom: 8px; }
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.game-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s;
}
.game-card:hover { transform: translateY(-3px); }

.game-card-header { display: flex; align-items: center; gap: 10px; }
.game-icon {
  font-size: 28px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
}
.game-name { font-family: var(--font-h); font-size: 14px; font-weight: 800; }
.game-desc { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.game-unlock { font-size: 11px; color: var(--warning); background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.2); border-radius: var(--r-sm); padding: 6px 10px; }
.game-spins { font-size: 13px; color: var(--cyan); font-weight: 600; }

/* Lucky Wheel Canvas */
.wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.wheel-outer {
  position: relative;
  display: inline-block;
}
.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.8));
  z-index: 10;
  line-height: 1;
}
#lucky-wheel {
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0,212,255,0.3), 0 0 60px rgba(0,212,255,0.1);
}

/* Playing Cards */
.card-deal-area {
  display: flex;
  gap: 16px;
  justify-content: center;
  perspective: 600px;
}
.play-card {
  width: 70px; height: 100px;
  background: var(--bg-card);
  border: 2px solid var(--cyan-border);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 900;
  color: var(--cyan);
  cursor: default;
  transition: all 0.4s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.play-card.back {
  background: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(157,78,221,0.1) 100%);
  color: var(--text-3);
  font-size: 24px;
}
.play-card.red { color: var(--danger); }
.play-card.match {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
  animation: glowPulse 1s ease-in-out infinite;
}
.card-suit { font-size: 10px; color: var(--text-3); margin-top: 2px; }

/* Baccarat */
.baccarat-table {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.baccarat-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.baccarat-side-label { font-family: var(--font-h); font-size: 11px; color: var(--text-2); letter-spacing: 1px; }
.baccarat-cards { display: flex; gap: 6px; }
.baccarat-score {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 900;
  color: var(--cyan);
}
.vs-divider {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 900;
  color: var(--purple);
  text-align: center;
}
.baccarat-bet-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.baccarat-bet-row input {
  width: 100px;
}

/* Minesweeper 3×3 */
.mine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 200px;
  margin: 0 auto;
}
.mine-cell {
  aspect-ratio: 1;
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-h);
  font-weight: 900;
}
.mine-cell:hover:not(.revealed) { background: rgba(0,212,255,0.15); transform: scale(0.95); }
.mine-cell.revealed { cursor: default; }
.mine-cell.safe { background: rgba(0,255,136,0.1); border-color: var(--success); color: var(--success); }
.mine-cell.mine { background: rgba(255,68,102,0.1); border-color: var(--danger); color: var(--danger); animation: none; }
.mine-info-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }

/* ── DEPOSIT TAB ─────────────────────────────────────────────────── */
.deposit-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
}
@media (max-width: 800px) { .deposit-split { grid-template-columns: 1fr; } }

.deposit-left { display: flex; flex-direction: column; gap: 14px; }
.deposit-right { display: flex; flex-direction: column; gap: 14px; }

.avail-balance-card {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg,rgba(0,212,255,0.08),rgba(157,78,221,0.08));
  border-color: var(--cyan-border);
}
.avail-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.avail-amount {
  font-family: var(--font-h);
  font-size: clamp(24px,4vw,36px);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.mini-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-stat-card { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mini-stat-title { font-family: var(--font-h); font-size: 11px; color: var(--text-2); letter-spacing: 1px; text-transform: uppercase; }

.tx-list { display: flex; flex-direction: column; gap: 6px; }
.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tx-amount { color: var(--success); font-weight: 700; }
.tx-time { color: var(--text-3); font-size: 10px; }

.pending-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pending-icon { font-size: 36px; animation: spin 4s linear infinite; }

.simple-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; padding: 0 4px; }
.bar {
  flex: 1;
  background: var(--grad-primary);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  transition: all 0.3s;
}
.bar:hover { opacity: 1; }

.payment-methods-list { display: flex; flex-direction: column; gap: 8px; }
.pm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.pm-row:hover, .pm-row.active { border-color: var(--cyan); background: var(--cyan-glow); }
.pm-icon { font-size: 20px; width: 30px; text-align: center; }
.pm-name { flex: 1; font-size: 13px; font-weight: 600; }
.pm-arrow { color: var(--text-3); font-size: 12px; }

.payment-detail-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pd-header { display: flex; align-items: center; gap: 12px; }
.pd-bank-icon { font-size: 32px; }
.pd-bank-name { font-family: var(--font-h); font-size: 13px; font-weight: 800; }
.account-num-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
}
.account-num { font-family: monospace; font-size: 16px; color: var(--cyan); font-weight: 700; flex: 1; letter-spacing: 2px; }

.qr-box {
  width: 120px; height: 120px;
  background: #fff;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.qr-box canvas { image-rendering: pixelated; }

.tx-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--success); }

.pm-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pm-mini-card {
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.pm-mini-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.pm-mini-icon { font-size: 24px; margin-bottom: 6px; }
.pm-mini-name { font-size: 10px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.pm-mini-bal { font-size: 11px; color: var(--cyan); font-weight: 600; }

.security-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px;
  font-size: 28px;
}
.security-icons-row span {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.4));
}
.security-icons-row span:nth-child(2) { animation-delay: 0.5s; }
.security-icons-row span:nth-child(3) { animation-delay: 1s; }

.payment-verify-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verify-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.verify-title { font-family: var(--font-h); font-size: 11px; color: var(--cyan); letter-spacing: 1px; }
.verify-text { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px dashed var(--cyan-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.upload-area:hover { border-color: var(--cyan); background: var(--cyan-glow); }
.upload-icon { font-size: 28px; }
.upload-text { font-size: 11px; color: var(--text-3); }

.support-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.support-title { font-family: var(--font-h); font-size: 11px; color: var(--text-2); letter-spacing: 2px; }
.support-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── ACCOUNT TAB ─────────────────────────────────────────────────── */
.account-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
}
@media (max-width: 700px) { .account-split { grid-template-columns: 1fr; } }

.account-left { display: flex; flex-direction: column; gap: 14px; }
.account-right { display: flex; flex-direction: column; gap: 14px; }

.profile-card {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.avatar-wrap {
  position: relative;
  display: inline-block;
}
.avatar-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(157,78,221,0.2));
  border: 3px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}
.level-badge-circle {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 32px; height: 32px;
  background: var(--grad-primary);
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,212,255,0.4);
}
.acc-username { font-family: var(--font-h); font-size: 16px; font-weight: 900; letter-spacing: 2px; }
.acc-vip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--r-full);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.earnings-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.earnings-title { font-family: var(--font-h); font-size: 12px; color: var(--text-2); letter-spacing: 1px; text-transform: uppercase; }
.earnings-row { display: flex; justify-content: space-between; gap: 12px; }
.earnings-col { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.earn-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; }
.earn-val { font-family: var(--font-h); font-size: 15px; font-weight: 900; color: var(--cyan); }

.redeem-card-inner {
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(157,78,221,0.1));
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.redeem-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; }
.redeem-val { font-family: var(--font-h); font-size: 14px; color: var(--success); font-weight: 900; }

.wallet-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg,rgba(0,212,255,0.08),rgba(10,10,42,0.5));
}
.wallet-title { font-family: var(--font-h); font-size: 12px; color: var(--text-2); letter-spacing: 2px; text-transform: uppercase; }
.wallet-bal-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.wallet-bal-amount {
  font-family: var(--font-h);
  font-size: 26px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.task-stats-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.task-stats-title { font-family: var(--font-h); font-size: 13px; color: var(--text-2); letter-spacing: 1.5px; }
.task-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
  text-align: center;
}
.stat-box-icon { font-size: 20px; }
.stat-box-label { font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; }
.stat-box-val { font-family: var(--font-h); font-size: 16px; font-weight: 900; color: var(--cyan); }

/* Circular progress */
.circle-prog-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.circle-prog-svg { transform: rotate(-90deg); }
.circle-prog-track { fill: none; stroke: rgba(255,255,255,0.1); }
.circle-prog-fill {
  fill: none;
  stroke: url(#circleGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4,0,0.2,1);
}
.circle-prog-text {
  position: absolute;
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 900;
  color: var(--cyan);
}

.security-settings-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.security-row { display: flex; align-items: center; gap: 10px; }
.security-icons-sm { display: flex; gap: 6px; font-size: 18px; }
.security-label { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }

.notif-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.notif-header { display: flex; align-items: center; gap: 8px; }
.notif-badge-pill {
  background: var(--danger);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
}
.notif-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.notif-icon { font-size: 18px; flex-shrink: 0; }
.notif-text { font-size: 12px; color: var(--text-2); line-height: 1.5; }

.membership-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.membership-inner { display: flex; align-items: center; gap: 14px; }
.membership-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.prosperity-text { font-family: var(--font-h); font-size: 12px; color: var(--cyan); letter-spacing: 1px; }
.rank-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 4px; }
.rank-coin {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #silver, #aaa);
  background: linear-gradient(135deg, #9AA5B4, #CBD2D9);
  border: 2px solid rgba(155,170,180,0.5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 14px rgba(155,170,180,0.3);
  flex-shrink: 0;
}

/* ── VIP Modal Table ─────────────────────────────────────────────── */
.vip-modal-box { max-width: 600px; }
.vip-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.vip-table th {
  padding: 10px 12px;
  text-align: left;
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  font-family: var(--font-h);
  font-size: 11px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--cyan-border);
}
.vip-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-2);
}
.vip-table tr:hover td { background: rgba(0,212,255,0.04); }
.vip-table td:first-child { color: var(--gold); font-family: var(--font-h); font-weight: 700; }
.vip-table td:nth-child(2) { color: var(--danger); }
.vip-table td:nth-child(3) { color: var(--success); }
.vip-table td:nth-child(4) { color: var(--cyan); }
.vip-table tr.current-vip td { background: rgba(255,215,0,0.06); }

/* ── Investment Modal ────────────────────────────────────────────── */
.inv-modal-box { max-width: 600px; }
.inv-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.inv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--r-md);
  transition: all 0.25s;
}
.inv-item:hover { border-color: var(--purple); transform: translateY(-2px); }
.inv-icon { font-size: 24px; width: 40px; text-align: center; flex-shrink: 0; }
.inv-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.inv-name { font-family: var(--font-h); font-size: 12px; font-weight: 700; }
.inv-details { font-size: 11px; color: var(--text-3); }
.inv-roi { font-size: 13px; color: var(--success); font-weight: 700; }
.inv-cost { font-size: 12px; color: var(--cyan); font-weight: 600; min-width: 80px; text-align: right; }

/* ── Telegram Modal ──────────────────────────────────────────────── */
.tg-modal-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.tg-icon { font-size: 60px; animation: float 3s ease-in-out infinite; }
.tg-title { font-family: var(--font-h); font-size: 18px; font-weight: 800; }
.tg-msg { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.tg-bot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #0088cc, #005577);
  color: #fff;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(0,136,204,0.3);
}
.tg-bot-link:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,136,204,0.5); }
.tg-note { font-size: 12px; color: var(--text-3); }

/* ── Survey Modal ────────────────────────────────────────────────── */
.survey-q { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.survey-q-item { display: flex; flex-direction: column; gap: 8px; }
.survey-q-text { font-size: 14px; font-weight: 600; }
.survey-opts { display: flex; flex-direction: column; gap: 6px; }
.survey-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}
.survey-opt:hover { border-color: var(--cyan); background: rgba(0,212,255,0.12); }
.survey-opt.selected { border-color: var(--cyan); background: rgba(0,212,255,0.15); }
.survey-opt input[type=radio] { accent-color: var(--cyan); }

/* ── Ad Modal ────────────────────────────────────────────────────── */
.ad-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.ad-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ad-ring-svg { transform: rotate(-90deg); }
.ad-ring-track { fill: none; stroke: rgba(255,255,255,0.1); }
.ad-ring-fill {
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.6));
}
.ad-countdown {
  position: absolute;
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 900;
  color: var(--cyan);
}
.ad-label { font-family: var(--font-h); font-size: 14px; color: var(--text-2); letter-spacing: 1px; }
.ad-reward-preview { font-size: 18px; font-weight: 700; color: var(--success); }

/* ── Withdraw Modal ──────────────────────────────────────────────── */
.withdraw-modal-amount {
  text-align: center;
  padding: 16px;
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
}
.withdraw-modal-amount span { font-family: var(--font-h); font-size: 22px; font-weight: 900; color: var(--cyan); }
.withdraw-info-list { display: flex; flex-direction: column; gap: 6px; }
.withdraw-info-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.withdraw-info-icon { font-size: 14px; }

/* Responsive tweaks */
@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
  .home-split, .tasks-split, .deposit-split, .account-split { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .mini-stats-grid { grid-template-columns: 1fr; }
  .pm-cards-grid { grid-template-columns: 1fr; }
  .payment-verify-row { grid-template-columns: 1fr; }
  .task-stats-row { grid-template-columns: 1fr 1fr; }
  .withdraw-grid { grid-template-columns: repeat(2,1fr); }
}
