/* ═══════════════════════════════════════════════════════════════
   BLOCK USDT — ICE WHITE FUTURISTIC LAB THEME
   Full redesign: colors, backgrounds, cards, buttons, glow, borders
   Layout / JS / class names / IDs unchanged
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700;800;900&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --bg:           #F4F7FB;
  --bg2:          #EEF3F8;
  --glass:        rgba(255,255,255,0.72);
  --glass-border: rgba(39,216,255,0.22);
  --border:       rgba(39,216,255,0.18);
  --accent:       #27D8FF;
  --accent2:      #7EEBFF;
  --green:        #00C896;
  --gold:         #F5A623;
  --red:          #FF4F6E;
  --purple:       #7B8CDE;
  --text:         #0F172A;
  --muted:        #64748B;
  --r:            18px;
  /* new ice vars */
  --ice-glow:     rgba(39,216,255,0.18);
  --ice-glow-md:  rgba(39,216,255,0.30);
  --ice-glow-lg:  rgba(39,216,255,0.50);
  --card-bg:      rgba(255,255,255,0.78);
  --card-border:  rgba(39,216,255,0.20);
  --shadow-sm:    0 2px 12px rgba(39,216,255,0.08), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md:    0 4px 24px rgba(39,216,255,0.12), 0 2px 8px rgba(15,23,42,0.08);
  --shadow-lg:    0 8px 40px rgba(39,216,255,0.18), 0 4px 16px rgba(15,23,42,0.10);
  --shadow-xl:    0 16px 60px rgba(39,216,255,0.22), 0 8px 24px rgba(15,23,42,0.12);
}

/* ── GLOBAL BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Exo 2', 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  letter-spacing: 0.015em;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* ICE WHITE: layered radial mesh background */
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(39,216,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 110%, rgba(126,235,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 50% 50%, rgba(255,255,255,0.60) 0%, transparent 80%),
    linear-gradient(160deg, #F4F7FB 0%, #EEF3F8 40%, #F0F8FF 70%, #F4F7FB 100%) !important;
}

/* ── FUTURISTIC GRID ATMOSPHERE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(39,216,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,216,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* ── ANIMATED BACKGROUND ── */
.bg1 {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* Override dark bg1 image — replace with ice white */
  background-image: none !important;
  background:
    radial-gradient(ellipse 800px 500px at 20% -5%, rgba(39,216,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 600px 400px at 85% 95%, rgba(126,235,255,0.08) 0%, transparent 55%),
    linear-gradient(160deg, #F4F7FB 0%, #EEF3F8 50%, #F0F8FF 100%) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.bg1::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Remove dark overlay — add subtle ice tint */
  background: linear-gradient(180deg,
    rgba(244,247,251,0.20) 0%,
    rgba(238,243,248,0.10) 40%,
    rgba(244,247,251,0.25) 100%) !important;
}

/* ── FLOATING BG ORBS ── */
.floating-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.floating-bg::before {
  content: '';
  position: absolute;
  width: 350px !important;
  height: 350px !important;
  border-radius: 50%;
  top: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(39,216,255,0.14) 0%, transparent 70%) !important;
  filter: blur(50px) !important;
  animation: floatDrift 12s ease-in-out infinite alternate;
}
.floating-bg::after {
  content: '';
  position: absolute;
  width: 300px !important;
  height: 300px !important;
  border-radius: 50%;
  bottom: -60px;
  right: -60px;
  background: radial-gradient(circle, rgba(126,235,255,0.10) 0%, transparent 70%) !important;
  filter: blur(50px) !important;
  animation: floatDrift 16s ease-in-out infinite alternate-reverse;
}
@keyframes floatDrift {
  0%   { transform: translate(0,0); }
  100% { transform: translate(30px,20px); }
}

/* ── APP LAYOUT ── */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100% !important;
  max-width: 100% !important;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
}
.content::-webkit-scrollbar { width: 3px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb {
  background: rgba(39,216,255,0.30);
  border-radius: 3px;
}

/* ═══════════════════════════════════════════
   HEADER / BANNER
═══════════════════════════════════════════ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 8px 10px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.banner-wrap {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: 110px;
  overflow: hidden;
  border-radius: 18px;
  /* ICE WHITE banner: remove dark photo, use crystal gradient */
  background-image: none !important;
  background:
    linear-gradient(135deg,
      rgba(39,216,255,0.18) 0%,
      rgba(126,235,255,0.10) 40%,
      rgba(255,255,255,0.85) 70%,
      rgba(39,216,255,0.08) 100%) !important;
  background-size: cover !important;
  background-position: left center !important;
  border: 1px solid rgba(39,216,255,0.25);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.8) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Holographic shimmer line on banner */
.banner-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(39,216,255,0.6) 30%,
    rgba(126,235,255,0.9) 50%,
    rgba(39,216,255,0.6) 70%,
    transparent 100%);
  animation: scanLine 3s linear infinite;
}
@keyframes scanLine {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  50.01% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(244,247,251,0) 20%,
    rgba(244,247,251,0.15) 55%,
    rgba(244,247,251,0.50) 100%
  ) !important;
  pointer-events: none;
}

/* Left decorative circuit pattern */
.banner-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background:
    linear-gradient(135deg, rgba(39,216,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.banner-content {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27D8FF, #7EEBFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  border: 2px solid rgba(255,255,255,0.90);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(39,216,255,0.30),
    0 3px 10px rgba(39,216,255,0.25);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.b-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 105px;
  min-width: 0;
}

.b-name {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  text-shadow: 0 1px 4px rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.25;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.b-handle {
  font-size: 10px;
  color: rgba(39,216,255,0.80);
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.25;
  cursor: pointer;
  font-weight: 600;
}

.b-tooltip {
  position: absolute;
  right: 14px;
  top: calc(100% + 4px);
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(39,216,255,0.30);
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  display: none;
  z-index: 99;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  animation: tipFade .18s ease;
}
.b-tooltip.show { display: block; }
@keyframes tipFade {
  from { opacity:0; transform:translateY(-4px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ═══════════════════════════════════════════
   BOTTOM NAVIGATION — Floating White Glass Dock
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  bottom: 0;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
  /* Floating white glass dock */
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-top: 1px solid rgba(39,216,255,0.22);
  border-radius: 0 !important;
  display: flex;
  z-index: 20;
  padding: 10px 4px max(18px, env(safe-area-inset-bottom));
  box-shadow:
    0 -1px 0 rgba(39,216,255,0.15),
    0 -12px 40px rgba(39,216,255,0.10),
    0 -4px 20px rgba(15,23,42,0.06);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: rgba(100,116,139,0.65);
  cursor: pointer;
  padding: 4px 2px 2px;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  border-radius: 14px;
  min-height: 44px;
}
.nav-btn:active { transform: scale(0.9); }

.nav-icon {
  width: 24px;
  height: 24px;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.nav-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.25s ease;
}

.nav-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,216,255,0.22) 0%, transparent 70%) !important;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.nav-btn.active {
  color: #27D8FF;
}
.nav-btn.active .nav-icon {
  transform: translateY(-3px) scale(1.1);
}
.nav-btn.active .nav-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,216,255,0.22) 0%, transparent 72%);
  animation: navGlowPulse 2.5s ease-in-out infinite;
}
@keyframes navGlowPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
.nav-btn.active .nav-icon svg {
  stroke: #27D8FF;
  filter: drop-shadow(0 0 5px rgba(39,216,255,0.70)) !important;
}
.nav-btn.active .nav-glow { opacity: 1; }
.nav-btn.active .nl {
  color: #27D8FF;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nl {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  line-height: 1;
  color: #64748B;
}
.nav-btn.active .nl { color: #27D8FF; }

/* ═══════════════════════════════════════════
   SCREENS
═══════════════════════════════════════════ */
.screen {
  display: none;
  padding: 16px;
  animation: screenIn 0.22s cubic-bezier(0.16,1,0.3,1) both !important;
}
.screen.active { display: block; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sec-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 18px 0 12px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0F172A;
  letter-spacing: -0.01em !important;
  opacity: 0.92;
}
.sec-title a {
  font-size: 12px;
  color: #27D8FF;
  font-weight: 600;
  margin-left: auto;
  cursor: pointer;
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   QUICK ACTIONS
═══════════════════════════════════════════ */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.qa-btn {
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
  border: none;
  min-height: 56px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,0.60) inset !important;
}

/* DEPOSIT — crystal cyan */
.qa-dep {
  background: linear-gradient(135deg, #27D8FF 0%, #7EEBFF 55%, #B4F4FF 100%);
  box-shadow:
    0 6px 28px rgba(39,216,255,0.38),
    0 1px 0 rgba(255,255,255,0.50) inset !important;
  border: 1px solid rgba(255,255,255,0.40);
}
/* WITHDRAW — crisp white-red */
.qa-with {
  background: linear-gradient(135deg, #FF4F6E 0%, #FF6B86 50%, #FFB3C0 100%);
  box-shadow:
    0 6px 28px rgba(255,79,110,0.32),
    0 1px 0 rgba(255,255,255,0.35) inset !important;
  border: 1px solid rgba(255,255,255,0.30);
}

/* Button shine sweep */
.qa-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.qa-btn:active::after { left: 160%; }
.qa-dep:active  { box-shadow: 0 2px 12px rgba(39,216,255,0.35) !important; }
.qa-with:active { box-shadow: 0 2px 12px rgba(255,79,110,0.30) !important; }
.qa-btn:active  { transform: scale(0.93) !important; transition: transform 0.1s; }

.qa-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.25);
}
.qa-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.12);
}
.qa-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  margin-top: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* ═══════════════════════════════════════════
   STATS GRID — Frosted White Glass Cards
═══════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

.stat-card {
  background: rgba(255,255,255,0.80) !important;
  border: 1px solid rgba(39,216,255,0.20) !important;
  border-radius: 20px !important;
  padding: 16px !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease !important;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 4px 20px rgba(39,216,255,0.10),
    0 2px 8px rgba(15,23,42,0.06) !important;
  animation: cardFadeUp 0.38s cubic-bezier(0.16,1,0.3,1) both;
}
.stat-card:nth-child(1) { animation-delay: 0.04s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.16s; }

/* Top hologram accent line */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(39,216,255,0.50) 50%,
    transparent 100%);
  border-radius: 1px;
}

.stat-card:active {
  transform: scale(0.96) !important;
  box-shadow: 0 2px 10px rgba(39,216,255,0.12) !important;
}

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

.stat-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
  background: rgba(39,216,255,0.10);
  border: 1px solid rgba(39,216,255,0.18);
}

.stat-val {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}
.stat-lbl {
  font-size: 11px;
  color: rgba(100,116,139,0.85) !important;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   INVESTMENT CARDS
═══════════════════════════════════════════ */
.inv-card {
  background: rgba(255,255,255,0.82) !important;
  border: 1px solid rgba(39,216,255,0.20) !important;
  border-left: 2px solid rgba(39,216,255,0.45) !important;
  border-radius: 22px !important;
  padding: 18px !important;
  margin-bottom: 12px;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 6px 24px rgba(39,216,255,0.12),
    0 2px 8px rgba(15,23,42,0.08) !important;
  animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both !important;
  transition: border-color 0.3s ease !important;
}
@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.inv-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.inv-name {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}
.inv-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0,200,150,0.10);
  color: #00C896;
  border: 1px solid rgba(0,200,150,0.25);
  box-shadow: 0 0 10px rgba(0,200,150,0.18) !important;
  letter-spacing: 0.06em;
}

.inv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.inv-cell {
  background: rgba(39,216,255,0.05);
  border: 1px solid rgba(39,216,255,0.14);
  border-radius: 12px;
  padding: 10px 12px;
}
.inv-cell-lbl {
  font-size: 10px;
  color: rgba(100,116,139,0.85) !important;
  margin-bottom: 3px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.inv-cell-val {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

.prog {
  height: 5px !important;
  background: rgba(39,216,255,0.10);
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: 14px;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #27D8FF, #7EEBFF) !important;
  border-radius: 10px !important;
  transition: width 0.6s ease !important;
  box-shadow: 0 0 8px rgba(39,216,255,0.45);
}

.collect-btn {
  width: 100%;
  background: linear-gradient(135deg, #00C896 0%, #00E6A8 50%, #7EFFD4 100%);
  border: none;
  color: #fff;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  letter-spacing: 0.04em;
  box-shadow:
    0 4px 20px rgba(0,200,150,0.38),
    0 1px 0 rgba(255,255,255,0.30) inset;
  transition: 0.18s cubic-bezier(0.34,1.56,0.64,1);
  min-height: 48px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.collect-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.collect-btn:active::after { left: 160%; }
.collect-btn:active {
  transform: scale(0.97) !important;
  box-shadow: 0 2px 10px rgba(0,200,150,0.30) !important;
}

.timer-box {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(39,216,255,0.22);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(39,216,255,0.10);
}
.timer-lbl {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.timer-val {
  font-size: 26px;
  font-weight: 800;
  color: #27D8FF;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(39,216,255,0.45);
  animation: timerGlow 2s ease-in-out infinite;
}
@keyframes timerGlow {
  0%,100% { text-shadow: 0 0 14px rgba(39,216,255,0.35); }
  50%      { text-shadow: 0 0 28px rgba(39,216,255,0.65); }
}
.timer-sub {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   PLAN CARDS — Crystal Hologram Style
═══════════════════════════════════════════ */
.plan-card {
  background: rgba(255,255,255,0.80) !important;
  border: 1px solid rgba(39,216,255,0.20) !important;
  border-radius: 22px !important;
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease !important;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 4px 20px rgba(39,216,255,0.10),
    0 2px 8px rgba(15,23,42,0.06) !important;
}

/* Gradient border glow */
.plan-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(39,216,255,0.25) 0%,
    transparent 50%,
    rgba(39,216,255,0.12) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plan-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,216,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.plan-card.featured {
  border-color: rgba(245,166,35,0.30) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 0 24px rgba(245,166,35,0.14),
    0 6px 28px rgba(15,23,42,0.08) !important;
}

.plan-card:hover, .plan-card:active {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 0 32px rgba(39,216,255,0.22),
    0 10px 36px rgba(15,23,42,0.10) !important;
}
.plan-card:active {
  transform: scale(0.98) !important;
  box-shadow:
    0 0 22px rgba(39,216,255,0.18),
    0 4px 16px rgba(15,23,42,0.08) !important;
}

.plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.plan-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0F172A;
  letter-spacing: -0.01em;
}
.plan-roi {
  font-size: 38px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
}
.plan-roi-sub {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 16px;
}

.plan-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.plan-detail {
  background: rgba(39,216,255,0.06);
  border: 1px solid rgba(39,216,255,0.14);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.plan-dv {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}
.plan-dk {
  font-size: 10px;
  color: rgba(100,116,139,0.85) !important;
  margin-top: 2px;
}

.plan-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.plan-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  transition: 0.2s cubic-bezier(0.34,1.56,0.64,1);
  min-height: 48px;
  /* Default: glossy cyan-white */
  background: linear-gradient(135deg, #27D8FF 0%, #7EEBFF 50%, #B4F4FF 100%);
  color: #0F172A;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow:
    0 4px 18px rgba(39,216,255,0.32),
    0 1px 0 rgba(255,255,255,0.60) inset !important;
  position: relative;
  overflow: hidden;
}
.plan-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.40), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.plan-btn:active::after { left: 160%; }
.plan-btn:active {
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(39,216,255,0.25) !important;
}
.plan-btn:hover {
  box-shadow:
    0 6px 26px rgba(39,216,255,0.45),
    0 1px 0 rgba(255,255,255,0.60) inset !important;
}

/* ═══════════════════════════════════════════
   PREMIUM PLAN CARDS (prem-plan-card)
═══════════════════════════════════════════ */
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.prem-plan-card {
  border-radius: 22px;
  border: 1px solid rgba(39,216,255,0.20);
  padding: 20px;
  margin-bottom: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(255,255,255,0.80);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
  animation: cardSlideUp 0.35s cubic-bezier(0.16,1,0.3,1) both;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 4px 20px rgba(39,216,255,0.10),
    0 2px 8px rgba(15,23,42,0.06);
}
.prem-plan-card:nth-child(2) { animation-delay: 0.05s; }
.prem-plan-card:nth-child(3) { animation-delay: 0.10s; }
.prem-plan-card:nth-child(4) { animation-delay: 0.15s; }
.prem-plan-card:nth-child(5) { animation-delay: 0.20s; }

/* Gradient border mask */
.prem-plan-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(39,216,255,0.30) 0%,
    transparent 50%,
    rgba(126,235,255,0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.prem-plan-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: rgba(39,216,255,0.35) !important;
  box-shadow:
    0 0 36px rgba(39,216,255,0.20),
    0 12px 40px rgba(15,23,42,0.10) !important;
}
.prem-plan-card:active {
  transform: scale(0.97) !important;
  box-shadow:
    0 0 22px rgba(39,216,255,0.18),
    0 4px 16px rgba(15,23,42,0.08) !important;
}

/* Plan lock */
.prem-plan-card.plan-locked {
  opacity: 0.62;
  filter: grayscale(0.35);
}
.prem-plan-card.plan-locked .ppc-btn {
  background: rgba(39,216,255,0.08) !important;
  color: #94A3B8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
.plan-lock-msg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #F5A623;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.22);
  border-radius: 10px;
  padding: 7px 12px;
  margin-bottom: 10px;
}

.ppc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ppc-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease !important;
  box-shadow: 0 0 20px rgba(39,216,255,0.15);
}
.ppc-icon svg { width: 52px; height: 52px; }
.prem-plan-card:hover .ppc-icon {
  transform: scale(1.1) rotate(4deg) !important;
  box-shadow: 0 0 30px rgba(39,216,255,0.25) !important;
}
.prem-plan-card:active .ppc-icon {
  transform: scale(1.1) rotate(6deg) !important;
}

.ppc-title-wrap { flex: 1; }
.ppc-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  color: #0F172A;
}
.ppc-tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ppc-main-stat {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, currentColor 0%, rgba(15,23,42,0.80) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.ppc-per-day {
  font-size: 15px;
  font-weight: 600;
  color: #64748B;
  margin-left: 2px;
}

.ppc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.ppc-stat {
  background: rgba(39,216,255,0.06);
  border: 1px solid rgba(39,216,255,0.14);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.80) inset,
    0 2px 8px rgba(15,23,42,0.04) !important;
}
.ppc-stat-lbl {
  font-size: 10px;
  color: rgba(100,116,139,0.85);
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.ppc-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.ppc-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  letter-spacing: 0.04em;
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
  min-height: 48px;
  background: linear-gradient(135deg, #27D8FF 0%, #7EEBFF 55%, #B4F4FF 100%);
  color: #0F172A;
  font-weight: 800;
  box-shadow:
    0 4px 18px rgba(39,216,255,0.32),
    0 1px 0 rgba(255,255,255,0.55) inset !important;
  position: relative;
  overflow: hidden;
}
.ppc-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.40), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.ppc-btn:active::after { left: 160%; }
.ppc-btn:active, .submit-btn:active, .plan-btn:active, .collect-btn:active {
  transform: scale(0.94) !important;
  box-shadow: 0 2px 8px rgba(39,216,255,0.22) !important;
}
.ppc-btn:hover, .submit-btn:hover, .plan-btn:hover {
  box-shadow:
    0 6px 26px rgba(39,216,255,0.45),
    0 1px 0 rgba(255,255,255,0.55) inset !important;
}

/* Plan desc & users */
.plan-desc {
  margin-top: 14px;
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
}
.plan-desc div { margin-bottom: 4px; }
.plan-users {
  margin-top: 10px;
  font-size: 13px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-users .dot {
  width: 8px; height: 8px;
  background: #00C896;
  border-radius: 50%;
  box-shadow: 0 0 8px #00C896;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   TASK ITEMS
═══════════════════════════════════════════ */
.task-item {
  background: rgba(255,255,255,0.80) !important;
  border: 1px solid rgba(39,216,255,0.16) !important;
  border-radius: 16px !important;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 2px 12px rgba(39,216,255,0.08),
    0 1px 4px rgba(15,23,42,0.05) !important;
  animation: cardFadeUp 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
.task-item:nth-child(1) { animation-delay: 0.04s; }
.task-item:nth-child(2) { animation-delay: 0.08s; }
.task-item:nth-child(3) { animation-delay: 0.12s; }
.task-item:nth-child(4) { animation-delay: 0.16s; }
.task-item:nth-child(5) { animation-delay: 0.20s; }

.task-item.done { opacity: 0.52; }
.task-item:not(.done):active { transform: scale(0.98) !important; }

.task-icon {
  width: 42px; height: 42px;
  background: rgba(39,216,255,0.10);
  border: 1px solid rgba(39,216,255,0.20);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(39,216,255,0.12);
}
.task-info { flex: 1; }
.task-name {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
}
.task-reward {
  font-size: 12px;
  color: #F5A623;
  margin-top: 2px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(245,166,35,0.25);
}

.task-btn {
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  white-space: nowrap;
  transition: 0.2s;
  min-height: 36px;
}
.task-btn.claim {
  background: linear-gradient(135deg, #00C896, #00E6A8);
  color: #fff;
  box-shadow: 0 0 12px rgba(0,200,150,0.28);
}
.task-btn.claimed {
  background: rgba(39,216,255,0.08);
  color: #94A3B8;
  cursor: default;
}
.task-btn.go {
  background: linear-gradient(135deg, #27D8FF, #7EEBFF);
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(39,216,255,0.30);
}
.task-btn.verify {
  background: linear-gradient(135deg, #27D8FF, #7EEBFF);
  color: #0F172A;
  animation: pulse-btn 1.5s infinite;
}
@keyframes pulse-btn {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.75; }
}

/* ═══════════════════════════════════════════
   REFERRAL SECTION
═══════════════════════════════════════════ */
.ref-hero {
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(39,216,255,0.22);
  border-radius: 26px;
  padding: 26px;
  text-align: center;
  margin-bottom: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 0 40px rgba(39,216,255,0.10),
    0 4px 20px rgba(15,23,42,0.06);
}
.ref-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.ref-levels {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.ref-lvl { text-align: center; }
.ref-lvl-pct {
  font-size: 22px;
  font-weight: 800;
  color: #27D8FF;
  text-shadow: 0 0 14px rgba(39,216,255,0.40);
}
.ref-lvl-label {
  font-size: 10px;
  color: #64748B;
  margin-top: 2px;
}

.ref-link-box {
  background: rgba(39,216,255,0.05);
  border: 1px solid rgba(39,216,255,0.20);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ref-link-txt {
  flex: 1;
  font-size: 11px;
  color: #27D8FF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.copy-btn {
  background: linear-gradient(135deg, #27D8FF, #7EEBFF);
  border: none;
  color: #0F172A;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Exo 2', sans-serif;
  box-shadow: 0 0 14px rgba(39,216,255,0.35);
  transition: 0.2s;
}
.copy-btn:active { transform: scale(0.96); }

.ref-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.ref-stat {
  background: rgba(255,255,255,0.70) !important;
  border-radius: 16px !important;
  padding: 14px 10px !important;
  text-align: center;
  border: 1px solid rgba(39,216,255,0.15) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.80) inset,
    0 4px 14px rgba(39,216,255,0.08) !important;
  transition: transform 0.2s ease !important;
}
.ref-stat:active { transform: scale(0.96) !important; }

.ref-stat-val {
  font-size: 20px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #27D8FF, #7EEBFF) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 14px rgba(39,216,255,0.25);
}
.ref-stat-lbl {
  font-size: 10px;
  color: rgba(100,116,139,0.85) !important;
  margin-top: 2px;
  letter-spacing: 0.03em;
}

.collect-comm-box {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 0 28px rgba(245,166,35,0.08),
    0 4px 16px rgba(15,23,42,0.06);
}
.comm-label {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.comm-pending {
  font-size: 32px;
  font-weight: 800;
  color: #F5A623;
  margin-bottom: 14px;
  text-shadow: 0 0 22px rgba(245,166,35,0.30);
}
.comm-btn {
  width: 100%;
  background: linear-gradient(135deg, #F5A623 0%, #FFD080 60%, #FFBD4A 100%);
  border: none;
  color: #0F172A;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  box-shadow: 0 4px 20px rgba(245,166,35,0.32);
  transition: 0.2s;
  min-height: 48px;
}
.comm-btn:active { transform: scale(0.97); }

.ref-item {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(39,216,255,0.14);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  backdrop-filter: blur(14px);
}
.ref-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27D8FF, #7EEBFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  box-shadow: 0 0 12px rgba(39,216,255,0.25);
}
.ref-user { flex: 1; }
.ref-uname { font-size: 13px; font-weight: 600; color: #0F172A; }
.ref-udate { font-size: 11px; color: #64748B; }
.ref-earned {
  font-size: 13px;
  font-weight: 700;
  color: #00C896;
  text-shadow: 0 0 10px rgba(0,200,150,0.25);
}

/* Referral table */
.ref-table-box {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(39,216,255,0.16);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.ref-table-title {
  font-size: 13px;
  font-weight: 700;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(39,216,255,0.12);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0F172A;
}
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table th {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  padding: 10px 14px;
  text-align: left;
  background: rgba(39,216,255,0.04);
  border-bottom: 1px solid rgba(39,216,255,0.10);
}
.ref-table th:not(:first-child) { text-align: center; }
.ref-table td {
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(39,216,255,0.06);
  color: #0F172A;
}
.ref-table td:not(:first-child) { text-align: center; }
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tr.total-row td {
  background: rgba(39,216,255,0.04);
  font-weight: 800;
}
.ref-tval { font-size: 16px; font-weight: 800; }
.ref-act { color: #00C896; }
.ref-lvl1-c { color: #27D8FF; }
.ref-lvl2-c { color: #F5A623; }
.ref-lvl3-c { color: #7B8CDE; }

/* ═══════════════════════════════════════════
   WALLET / BALANCE CARD
═══════════════════════════════════════════ */
.bal-card {
  background: rgba(255,255,255,0.82) !important;
  border: 1px solid rgba(39,216,255,0.22) !important;
  border-radius: 26px;
  padding: 26px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 0 40px rgba(39,216,255,0.14),
    0 8px 32px rgba(15,23,42,0.08) !important;
}
.bal-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,216,255,0.14), transparent 70%);
  pointer-events: none;
}
/* Holographic scanning line */
.bal-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(39,216,255,0.60) 30%,
    rgba(126,235,255,0.90) 50%,
    rgba(39,216,255,0.60) 70%,
    transparent 100%);
  pointer-events: none;
}

.bal-label {
  font-size: 11px !important;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em !important;
  opacity: 0.7 !important;
}

.bal-amount {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: #27D8FF !important;
  line-height: 1.1;
  letter-spacing: -0.03em !important;
  text-shadow: 0 0 6px rgba(39,216,255,0.30) !important;
  animation: balGlowPremium 4s ease-in-out infinite !important;
  transition: transform 0.25s ease, text-shadow 0.3s ease;
  will-change: transform, text-shadow;
  -webkit-text-fill-color: #27D8FF !important;
}
@keyframes balGlowPremium {
  0%,100% { text-shadow: 0 0 14px rgba(39,216,255,0.30), 0 0 40px rgba(39,216,255,0.10); }
  50%      { text-shadow: 0 0 28px rgba(39,216,255,0.55), 0 0 70px rgba(39,216,255,0.18); }
}

.bal-sub {
  font-size: 13px;
  color: #94A3B8;
  margin-top: 4px;
}

/* Wallet tabs */
.w-tabs {
  display: flex;
  gap: 4px;
  background: rgba(39,216,255,0.06);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid rgba(39,216,255,0.14);
}
.w-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: #64748B;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Exo 2', sans-serif;
  transition: 0.25s;
  min-height: 42px;
}
.w-tab.active {
  background: linear-gradient(135deg, #27D8FF, #7EEBFF) !important;
  color: #0F172A !important;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(39,216,255,0.35) !important;
}

.w-panel { display: none; }
.w-panel.active { display: block; }

/* Forms */
.form-lbl {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: left;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(39,216,255,0.18);
  border-radius: 14px !important;
  padding: 13px 16px;
  color: #0F172A;
  font-size: 16px !important; /* prevent zoom on iOS */
  font-family: 'Exo 2', sans-serif;
  outline: none;
  transition: 0.25s;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.80) inset;
}
.form-input:focus {
  border-color: rgba(39,216,255,0.55) !important;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 3px rgba(39,216,255,0.12), 0 2px 8px rgba(15,23,42,0.06) !important;
  outline: none !important;
}
.form-input::placeholder { color: #94A3B8; }

/* Network badges */
.net-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.net-badge {
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(39,216,255,0.16);
  background: rgba(255,255,255,0.70);
  cursor: pointer;
  transition: 0.25s;
  color: #475569;
}
.net-badge.active {
  border-color: rgba(39,216,255,0.50);
  color: #27D8FF;
  background: rgba(39,216,255,0.10);
  box-shadow: 0 0 14px rgba(39,216,255,0.18);
}

/* Address box */
.addr-box {
  background: rgba(255,255,255,0.75) !important;
  border: 1px solid rgba(39,216,255,0.16);
  border-radius: 18px !important;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.addr-lbl {
  font-size: 11px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-weight: 600;
}
.addr-val {
  font-size: 12px;
  color: #27D8FF;
  word-break: break-all;
  line-height: 1.6;
  font-weight: 600;
}

/* QR box */
.qr-box {
  width: 138px; height: 138px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  margin: 12px auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  box-shadow:
    0 0 0 4px rgba(39,216,255,0.15),
    0 4px 20px rgba(39,216,255,0.12);
  overflow: hidden;
}

/* Warning box */
.warn-box {
  background: rgba(245,166,35,0.07);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  color: #B45309;
  line-height: 1.6;
  margin-bottom: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.80) inset,
    0 2px 8px rgba(15,23,42,0.04) !important;
}

/* Submit button */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #27D8FF 0%, #7EEBFF 50%, #B4F4FF 100%);
  color: #0F172A;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
  transition: 0.2s;
  box-shadow:
    0 4px 22px rgba(39,216,255,0.38),
    0 1px 0 rgba(255,255,255,0.55) inset !important;
  min-height: 48px;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.submit-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.40), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.submit-btn:active::after { left: 160%; }

/* Withdraw button — accent red/coral */
#panel-withdraw .submit-btn {
  background: linear-gradient(135deg, #FF4F6E 0%, #FF6B86 50%, #FFB3C0 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
  box-shadow:
    0 4px 22px rgba(255,79,110,0.32),
    0 1px 0 rgba(255,255,255,0.30) inset !important;
}
#panel-withdraw .submit-btn:hover {
  box-shadow: 0 6px 30px rgba(255,79,110,0.45), 0 1px 0 rgba(255,255,255,0.30) inset !important;
}

/* Amount shortcut buttons */
.semi-amt-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(39,216,255,0.18);
  background: rgba(255,255,255,0.70);
  color: #0F172A;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  transition: 0.2s;
}
.semi-amt-btn.active {
  background: rgba(39,216,255,0.15);
  border-color: #27D8FF;
  color: #0F172A;
  box-shadow: 0 0 12px rgba(39,216,255,0.22);
}

/* Transaction items */
.tx-item {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(39,216,255,0.13);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.tx-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.tx-icon.dep { background: rgba(0,200,150,0.12); }
.tx-icon.with { background: rgba(255,79,110,0.12); }
.tx-info { flex: 1; }
.tx-type { font-size: 13px; font-weight: 600; color: #0F172A; }
.tx-date { font-size: 11px; color: #64748B; }
.tx-amount { font-size: 14px; font-weight: 700; }
.tx-amount.dep { color: #00C896; }
.tx-amount.with { color: #FF4F6E; }
.tx-status {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.tx-status.completed, .tx-status.approved {
  background: rgba(0,200,150,0.10);
  color: #00C896;
  border: 1px solid rgba(0,200,150,0.20);
}
.tx-status.pending {
  background: rgba(245,166,35,0.10);
  color: #F5A623;
  border: 1px solid rgba(245,166,35,0.22);
}
.tx-status.rejected {
  background: rgba(255,79,110,0.10);
  color: #FF4F6E;
  border: 1px solid rgba(255,79,110,0.20);
}

/* ═══════════════════════════════════════════
   STATUS BADGES
═══════════════════════════════════════════ */
.badge-pending, [class*="badge-pending"] {
  background: rgba(245,166,35,0.10) !important;
  color: #F5A623 !important;
  border: 1px solid rgba(245,166,35,0.25) !important;
  box-shadow: 0 0 8px rgba(245,166,35,0.18) !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
}
.badge-approved, .badge-active, .badge-completed,
[class*="badge-approved"], [class*="badge-completed"] {
  background: rgba(0,200,150,0.10) !important;
  color: #00C896 !important;
  border: 1px solid rgba(0,200,150,0.22) !important;
  box-shadow: 0 0 8px rgba(0,200,150,0.15) !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
}
.badge-rejected, [class*="badge-rejected"] {
  background: rgba(255,79,110,0.08) !important;
  color: #FF4F6E !important;
  border: 1px solid rgba(255,79,110,0.22) !important;
  box-shadow: 0 0 7px rgba(255,79,110,0.13) !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
}

/* ═══════════════════════════════════════════
   MODAL
═══════════════════════════════════════════ */
.modal-ov {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-ov.open { display: flex; }

.modal {
  background: rgba(255,255,255,0.94) !important;
  border: 1px solid rgba(39,216,255,0.22);
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 42px;
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: su 0.3s cubic-bezier(0.16,1,0.3,1);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  box-shadow:
    0 -4px 0 rgba(39,216,255,0.12),
    0 -20px 60px rgba(39,216,255,0.10),
    0 -4px 24px rgba(15,23,42,0.10);
}
@keyframes su {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-handle {
  width: 40px; height: 4px;
  background: rgba(39,216,255,0.25);
  border-radius: 4px;
  margin: 0 auto 20px;
}
.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0F172A;
  text-align: right;
}
.modal-desc {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 18px;
  line-height: 1.5;
}

.prev-box {
  background: rgba(39,216,255,0.05);
  border: 1px solid rgba(39,216,255,0.15);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.prev-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: #0F172A;
}
.prev-row:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
#toast,
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: linear-gradient(135deg, #27D8FF, #7EEBFF);
  color: #0F172A;
  padding: 11px 24px;
  border-radius: 14px !important;
  font-size: 13px;
  font-weight: 700;
  z-index: 100;
  transition: 0.3s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
  box-shadow:
    0 8px 32px rgba(39,216,255,0.40),
    0 1px 0 rgba(255,255,255,0.50) inset !important;
  border: 1px solid rgba(255,255,255,0.40) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  font-family: 'Exo 2', sans-serif;
  letter-spacing: 0.02em;
}
.toast.show,
#toast.show { transform: translateX(-50%) translateY(0); }
.toast.error,
#toast.error {
  background: linear-gradient(135deg, #FF4F6E, #FF6B86);
  color: #fff;
  box-shadow: 0 8px 32px rgba(255,79,110,0.40), 0 1px 0 rgba(255,255,255,0.25) inset !important;
}

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(80px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);   opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(-50%) translateY(0);   opacity: 1; }
  to   { transform: translateX(-50%) translateY(80px); opacity: 0; }
}

/* ═══════════════════════════════════════════
   HISTORY FILTER
═══════════════════════════════════════════ */
.hist-filter-btn {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(39,216,255,0.16);
  color: #64748B;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  transition: 0.25s;
}
.hist-filter-btn.active {
  background: linear-gradient(135deg, #27D8FF, #7EEBFF);
  border-color: transparent;
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(39,216,255,0.35);
}

/* Earn history */
.eh-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(39,216,255,0.08);
}
.eh-item:last-child { border-bottom: none; }
.eh-date { font-size: 12px; color: #64748B; }
.eh-amt {
  font-size: 14px;
  font-weight: 700;
  color: #00C896;
  text-shadow: 0 0 10px rgba(0,200,150,0.25);
}

/* ═══════════════════════════════════════════
   LOADING OVERLAY
═══════════════════════════════════════════ */
.loading-ov {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(244,247,251,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(39,216,255,0.15);
  border-top-color: #27D8FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 22px rgba(39,216,255,0.25);
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-txt {
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   TIER BOX
═══════════════════════════════════════════ */
.tier-box {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(39,216,255,0.15);
  border-radius: 20px;
  padding: 16px;
  margin-top: 8px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(39,216,255,0.07);
}
.tier-row:last-child { border-bottom: none; padding-bottom: 0; }
.tier-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ═══════════════════════════════════════════
   RANK BADGES
═══════════════════════════════════════════ */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.rank-Member { background: rgba(39,216,255,0.08); color: #64748B; }
.rank-VIP1   { background: rgba(0,200,150,0.10); color: #00C896; border: 1px solid rgba(0,200,150,0.22); }
.rank-VIP2   { background: rgba(39,216,255,0.10); color: #27D8FF; border: 1px solid rgba(39,216,255,0.22); }
.rank-VIP3   { background: rgba(245,166,35,0.10); color: #F5A623; border: 1px solid rgba(245,166,35,0.22); }
.rank-VIP4   { background: rgba(123,140,222,0.10); color: #7B8CDE; border: 1px solid rgba(123,140,222,0.22); }
.rank-VIP5   { background: linear-gradient(135deg, rgba(39,216,255,0.15), rgba(126,235,255,0.12)); color: #27D8FF; border: 1px solid rgba(39,216,255,0.28); }

.rank-progress-wrap { margin: 10px 0 0; text-align: center; }
.rank-progress-lbl  { font-size: 10px; color: #64748B; margin-bottom: 5px; }
.rank-progress { height: 4px; background: rgba(39,216,255,0.10); border-radius: 4px; overflow: hidden; }
.rank-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #27D8FF, #7EEBFF);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Leaderboard */
.leaderboard-wrap { margin-top: 14px; }
.leaderboard-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0F172A;
}
.leader-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(39,216,255,0.12);
  border-radius: 14px;
  margin-bottom: 7px;
  transition: 0.2s;
  box-shadow: var(--shadow-sm);
}
.leader-row:active { transform: scale(0.98); }
.leader-pos { font-size: 13px; font-weight: 800; color: #27D8FF; width: 22px; text-align: center; flex-shrink: 0; }
.leader-pos.gold   { color: #F5A623; }
.leader-pos.silver { color: #64748B; }
.leader-pos.bronze { color: #B45309; }
.leader-info { flex: 1; min-width: 0; }
.leader-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #0F172A; }
.leader-uid  { font-size: 10px; color: #64748B; margin-top: 1px; }
.leader-right { text-align: right; flex-shrink: 0; }
.leader-earn { font-size: 13px; font-weight: 700; color: #00C896; }
.leader-rank { font-size: 10px; margin-top: 2px; }

.ref-active-row { display: flex; justify-content: center; margin: 10px 0; gap: 18px; }
.ref-active-item { text-align: center; }
.ref-active-val { font-size: 20px; font-weight: 800; color: #27D8FF; }
.ref-active-lbl { font-size: 10px; color: #64748B; margin-top: 2px; }

/* ═══════════════════════════════════════════
   SKELETON LOADING
═══════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.skeleton {
  background: linear-gradient(90deg,
    rgba(39,216,255,0.06) 25%,
    rgba(39,216,255,0.14) 50%,
    rgba(39,216,255,0.06) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 10px;
}
.skel-stat { height: 80px; border-radius: 18px; }
.skel-plan { height: 220px; border-radius: 20px; margin-bottom: 14px; }
.skel-inv  { height: 140px; border-radius: 22px; margin-bottom: 12px; }

/* ═══════════════════════════════════════════
   LIVE ACTIVITY FEED
═══════════════════════════════════════════ */
#live-activity {
  position: fixed;
  bottom: 90px;
  left: 14px;
  z-index: 50;
  max-width: 220px;
  pointer-events: none;
}
.act-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(39,216,255,0.22);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow:
    0 4px 20px rgba(39,216,255,0.16),
    0 0 0 1px rgba(255,255,255,0.80) inset;
  animation: actIn 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
.act-card.hiding { animation: actOut 0.3s ease forwards; }
@keyframes actIn  { from { opacity:0; transform:translateX(-16px) scale(0.96); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes actOut { from { opacity:1; transform:translateX(0) scale(1); } to { opacity:0; transform:translateX(-16px) scale(0.96); } }

.act-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.act-text { font-size: 12px; font-weight: 600; color: #0F172A; line-height: 1.4; }
.act-sub  { font-size: 10px; color: #64748B; font-weight: 400; }

/* ═══════════════════════════════════════════
   TRUST BADGES
═══════════════════════════════════════════ */
.trust-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(39,216,255,0.12);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}
.trust-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   WHITEPAPER MODAL
═══════════════════════════════════════════ */
.whitepaper-btn {
  background: rgba(39,216,255,0.10);
  border: 1px solid rgba(39,216,255,0.28);
  padding: 5px 12px;
  border-radius: 20px;
  color: #27D8FF;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.whitepaper-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 9999;
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(12px);
}
.whitepaper-modal.open { display: flex; }
.whitepaper-content {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(39,216,255,0.20);
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px 18px 32px;
  border-radius: 22px 22px 0 0;
  color: #0F172A;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -4px 40px rgba(39,216,255,0.14);
}
.whitepaper-content h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  background: linear-gradient(90deg, #27D8FF, #7EEBFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.whitepaper-content h3 {
  font-size: 13px;
  font-weight: 700;
  color: #27D8FF;
  margin-top: 18px;
  margin-bottom: 6px;
}
.whitepaper-content p {
  font-size: 13px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}
.wp-handle {
  width: 36px; height: 4px;
  background: rgba(39,216,255,0.25);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.wp-close {
  float: right;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(39,216,255,0.10);
  border: 1px solid rgba(39,216,255,0.20);
  color: #64748B;
  font-size: 16px;
  cursor: pointer;
  line-height: 26px;
  text-align: center;
  margin-top: -4px;
}

/* FAQ Modal */
.faq-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 9999;
  backdrop-filter: blur(12px);
}
.faq-modal.open { display: flex; }
.faq-content {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(39,216,255,0.18);
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px 18px 32px;
  border-radius: 22px 22px 0 0;
  color: #0F172A;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -4px 40px rgba(39,216,255,0.12);
}
.faq-content-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #27D8FF, #7EEBFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.faq-item {
  border-bottom: 1px solid rgba(39,216,255,0.08);
  padding: 12px 0;
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  user-select: none;
  gap: 8px;
}
.faq-arrow {
  font-size: 18px;
  color: #27D8FF;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  display: inline-block;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-item p {
  font-size: 13px;
  color: #64748B;
  line-height: 1.65;
  margin: 8px 0 0;
  display: none;
}
.faq-item.open p { display: block; }

/* Earn steps */
.earn-step { border-bottom: 1px solid rgba(39,216,255,0.08); padding: 10px 0; }
.earn-step-label { font-size: 12px; font-weight: 700; margin-bottom: 4px; color: #0F172A; }
.earn-step-text { font-size: 13px; color: #64748B; line-height: 1.6; }

/* Progress bar (generic) */
.progress { height: 5px; background: rgba(39,216,255,0.10); border-radius: 10px; margin-top: 10px; overflow: hidden; }
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #27D8FF, #7EEBFF);
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* ═══════════════════════════════════════════
   GRADIENT TEXT UTILITY
═══════════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(90deg, #27D8FF, #7EEBFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   RTL SUPPORT — unchanged structure
═══════════════════════════════════════════ */
body.rtl { direction: rtl; text-align: right; }
body.rtl .nav-bar { direction: rtl; }
body.rtl .qa-btn { flex-direction: row-reverse; }
body.rtl .tx-item { flex-direction: row-reverse; }
body.rtl .tx-info { text-align: right; }
body.rtl .inv-grid { direction: rtl; }
body.rtl .inv-hdr { flex-direction: row-reverse; }
body.rtl .stat-card { direction: rtl; }
body.rtl .ref-item { flex-direction: row-reverse; }
body.rtl .ref-user { text-align: right; }
body.rtl .form-lbl { text-align: right; display: block; }
body.rtl .form-input { text-align: right; direction: rtl; }
body.rtl .form-input[type="number"] { text-align: left; direction: ltr; }
body.rtl .addr-val { direction: ltr; text-align: center; }
body.rtl .submit-btn { direction: rtl; }
body.rtl .modal-title { text-align: right; }
body.rtl .warn-box { text-align: right; }
body.rtl .act-card { flex-direction: row-reverse; text-align: right; }
body.rtl .prem-plan-card { direction: rtl; }
body.rtl .ppc-header { flex-direction: row-reverse; }
body.rtl .ppc-title-wrap { text-align: right; }
body.rtl .hist-filter-btn { direction: rtl; }
body.rtl .net-badges { justify-content: flex-end; }
body.rtl .eh-item { flex-direction: row-reverse; }
body.rtl .stat-val, body.rtl .inv-cell-val, body.rtl .tx-amount,
body.rtl .ref-earned, body.rtl #balAmount, body.rtl #withBal {
  direction: ltr;
  unicode-bidi: embed;
}

/* ═══════════════════════════════════════════
   MINING SCREEN SCROLL FIX
═══════════════════════════════════════════ */
#screen-mine {
  padding: 0 !important;
  overflow: visible !important;
}

/* ═══════════════════════════════════════════
   MOBILE OPTIMIZATIONS
═══════════════════════════════════════════ */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  padding-top: env(safe-area-inset-top);
}
.nav { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.content { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

/* Bigger touch targets */
.nav-btn { min-height: 44px; padding: 6px 0; }
.qa-btn  { min-height: 56px; }
.collect-btn, .submit-btn, .comm-btn, .plan-btn { min-height: 48px; }
.task-btn { min-height: 36px; padding: 8px 18px; }
.w-tab { min-height: 42px; }

button:active {
  transform: scale(0.94) !important;
  transition: transform 0.12s ease !important;
}

/* ── SMALL SCREENS ── */
@media (max-width: 500px) {
  .banner-wrap {
    height: 100px !important;
    background-position: 10% center !important;
  }
  .banner-content { padding: 0 12px !important; }
  .b-name   { font-size: 12px !important; }
  .b-handle { font-size: 10px !important; }
  .avatar   { width: 32px !important; height: 32px !important; }
  .stats-grid { gap: 8px !important; }
  .quick-actions { gap: 8px !important; }
  .screen { padding: 12px !important; }
}
@media (max-width: 400px) {
  .b-name   { font-size: 11px !important; }
  .b-handle { font-size: 9px !important; }
  .b-texts  { max-width: 90px !important; }
  .avatar   { width: 26px !important; height: 26px !important; font-size: 10px !important; }
  .banner-content { right: 10px !important; gap: 5px !important; }
}
@media (max-width: 380px) {
  .banner-wrap { height: 88px !important; }
  .plan-roi { font-size: 26px !important; }
  .ppc-main-stat { font-size: 34px !important; }
  .stat-val { font-size: 14px !important; }
}
@media (max-width: 360px) {
  .stats-grid { gap: 8px; }
  .stat-val   { font-size: 15px; }
  .quick-actions { gap: 8px; }
  .plan-roi   { font-size: 28px; }
  .ppc-main-stat { font-size: 32px; }
  .screen     { padding: 12px; }
}

/* Active states for touch */
.qa-btn:active, .stat-card:active,
.plan-card:active, .prem-plan-card:active,
.task-item:active {
  transform: scale(0.97);
  transition: transform 0.1s;
}

/* ═══════════════════════════════════════════
   TELEGRAM WEBVIEW FIXES
═══════════════════════════════════════════ */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.app { width: 100% !important; max-width: 100% !important; }
.banner-wrap { width: 100% !important; max-width: 100% !important; }
.nav {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY — ICE FINTECH
═══════════════════════════════════════════ */
h1, h2, h3,
.sec-title, .plan-name, .stat-val,
.inv-name, .ref-stat-val { letter-spacing: -0.01em; }
.bal-amount { letter-spacing: -0.03em !important; }
.plan-roi, .ppc-main-stat { letter-spacing: -0.02em !important; }
.nl, .form-lbl, .stat-lbl { letter-spacing: 0.04em; }
body { letter-spacing: 0.015em; }

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(39,216,255,0.28); border-radius: 3px; }
