:root {
  --bg-deep: #090514;
  --bg-surface: rgba(24, 14, 44, 0.84);
  --bg-elevated: rgba(38, 22, 68, 0.76);
  --bg-subtle: rgba(255, 255, 255, 0.04);

  --border-subtle: rgba(217, 70, 239, 0.16);
  --border-highlight: rgba(168, 85, 247, 0.42);
  --border-emerald: rgba(245, 158, 11, 0.45);

  --emerald: #f59e0b;
  --emerald-bright: #fbbf24;
  --emerald-glow: rgba(245, 158, 11, 0.38);

  --ton-blue: #9333ea;
  --ton-cyan: #e879f9;
  --ton-glow: rgba(168, 85, 247, 0.42);

  --gold: #fde047;
  --gold-soft: rgba(250, 204, 21, 0.16);

  --text-main: #fdf4ff;
  --text-secondary: #e9d5ff;
  --text-muted: #c084fc;
  --text-dim: #7e22ce;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Utility Text Classes */
.text-emerald { color: var(--emerald-bright) !important; font-weight: 700; }
.text-cyan { color: var(--ton-cyan) !important; font-weight: 700; }
.text-gold { color: var(--gold) !important; font-weight: 700; }
.text-muted { color: var(--text-muted) !important; }

/* Ambient Glass Lighting */
.ambient-orb {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.55;
}

.ambient-orb.orb-top {
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 280px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.42) 0%, rgba(245, 158, 11, 0.22) 60%, transparent 80%);
}

.ambient-orb.orb-bottom {
  bottom: -100px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28) 0%, transparent 70%);
}

/* Floating Toast Notification */
.fomo-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -28px) scale(0.95);
  z-index: 1000;
  background: rgba(11, 17, 29, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-main);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 92vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fomo-toast.active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
  flex-shrink: 0;
}

/* Main App Container */
.app-container {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  padding: 12px 14px 96px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 2px 10px 2px;
  direction: ltr; /* Keep brand left & controls right on all languages so header never flips/jumbles */
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #9333ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.live-dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 6px;
  border-radius: 999px;
}

.brand-badge {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.lang-switch-btn {
  background: linear-gradient(135deg, rgba(14, 25, 45, 0.95), rgba(20, 35, 62, 0.92));
  border: 1.5px solid rgba(56, 189, 248, 0.48);
  box-shadow: 0 4px 12px rgba(0, 152, 234, 0.2);
  color: #ffffff;
  border-radius: 11px;
  height: 34px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.manual-wallet-btn {
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-bright);
  border-radius: 11px;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch-btn:active,
.manual-wallet-btn:active {
  transform: scale(0.96);
}

/* Keep TonConnect mount hidden in DOM so SDK modal works without breaking mobile header layout */
#ton-connect-btn {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Tab Panes */
.app-tab-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: fadeTab 0.22s ease-out;
}

.app-tab-pane.active {
  display: flex;
}

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

/* Compact Wallet Bar */
.wallet-cta-banner {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-cta-banner.connected {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.06);
}

.wcta-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wcta-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 152, 234, 0.14);
  border: 1px solid rgba(0, 152, 234, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.wcta-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.wcta-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wcta-btn {
  background: linear-gradient(135deg, var(--ton-blue), #0284c7);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 152, 234, 0.25);
}

/* ======================================================== */
/* ⚡ HERO VAULT & LIVE MINER CARD */
/* ======================================================== */
.live-cash-engine {
  background: linear-gradient(165deg, rgba(35, 18, 66, 0.92) 0%, rgba(15, 8, 30, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(168, 85, 247, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.engine-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.24);
  padding: 4px 10px;
  border-radius: 999px;
}

.blinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
  animation: blinkPulse 1.4s infinite ease-in-out;
}

@keyframes blinkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.speed-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ton-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 64%;
}

/* Vault Hero Center: Orbital Ring + Balance */
.vault-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 0 2px 0;
  gap: 12px;
}

.orbital-core-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbital-ring.ring-outer {
  inset: 0;
  border: 1.5px dashed rgba(56, 189, 248, 0.35);
  animation: spinSlow 14s linear infinite;
}

.orbital-ring.ring-inner {
  inset: 7px;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 24px rgba(0, 152, 234, 0.25);
}

.orbital-gem {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d946ef 55%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  z-index: 2;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.odometer-box {
  width: 100%;
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}

.odometer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.odometer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.min-ready-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
}

.odometer-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.odometer-val .micro-digits {
  font-size: 20px;
  color: var(--emerald-bright);
  font-weight: 700;
}

.odometer-val .crypto-unit {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ton-cyan);
  margin-left: 5px;
}

.odometer-usd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Vault Action Buttons */
.engine-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claim-btn,
.main-mint-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  color: #140702;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.claim-btn:active,
.main-mint-btn:active {
  transform: scale(0.985);
}

.claim-btn-divider {
  opacity: 0.55;
}

#claim-btn-val {
  font-family: var(--font-mono);
  font-weight: 800;
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmerSweep 3.5s infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { left: -100%; }
  45%, 100% { left: 160%; }
}

.vault-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.secondary-action-btn,
.reinvest-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-action-btn.highlight-btn {
  background: rgba(0, 152, 234, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--ton-cyan);
}

.withdraw-lock-notice {
  font-size: 11.5px;
  color: var(--text-secondary);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.withdraw-lock-notice b {
  color: var(--ton-cyan);
}

/* ======================================================== */
/* 🎁 GLASS SECTION CARDS (EARN, BOOSTERS, PAYOUTS) */
/* ======================================================== */
.glass-section-card,
.path-card {
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sch-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sch-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.sch-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.sch-sub b {
  color: var(--text-main);
  font-family: var(--font-mono);
}

.sch-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.clean-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.clean-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--ton-blue), var(--emerald-bright));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.watch-ad-primary-btn {
  width: 100%;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #ffffff;
  border-radius: 13px;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.watch-ad-primary-btn:active {
  transform: scale(0.985);
}

.play-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-bright);
  color: #04130b;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 3-Tile Quick Boost Grid */
.quick-boost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.qb-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.qb-tile.gold-tile {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fde68a;
}

.qb-emoji {
  font-size: 15px;
}

.qb-label {
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Partner Task Row */
.partner-task-row {
  padding-top: 4px;
}

.partner-task-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
}

.pti-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pti-icon {
  font-size: 16px;
}

.pti-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.pti-sub {
  font-size: 10.5px;
  color: var(--emerald-bright);
  font-weight: 600;
}

.pti-btn {
  background: rgba(56, 189, 248, 0.16);
  color: var(--ton-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
}

/* Verified Payouts & Clean Lists */
.explorer-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ton-cyan);
  text-decoration: none;
}

.live-payout-strip {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.payout-tag {
  background: var(--emerald-bright);
  color: #04130b;
  font-weight: 800;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.4px;
}

.payout-msg {
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payout-msg b {
  color: #ffffff;
}

.clean-list-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clean-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 11.5px;
}

.clean-list-row code {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-size: 11px;
}

.clr-right {
  font-family: var(--font-mono);
  color: var(--emerald-bright);
  font-weight: 700;
  font-size: 11px;
}

/* ======================================================== */
/* 🚀 TAB 2: MINING PLANS & POWER STORE */
/* ======================================================== */
.tab-main-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.tab-main-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.first-deposit-booster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 4px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.fdb-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
}

.fdb-timer {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

.vip-multi-mint-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vip-tier-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.vip-tier-card.active {
  background: rgba(0, 152, 234, 0.12);
  border-color: var(--ton-cyan);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3), 0 8px 20px rgba(0, 152, 234, 0.18);
}

.trial-wide-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(0, 152, 234, 0.08));
  border-color: rgba(16, 185, 129, 0.3);
}

.twc-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.tier-nodes {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.twc-bonus-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
}

.twc-perk-line {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.twc-right {
  text-align: right;
  flex-shrink: 0;
}

.tier-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.tag-trial,
.tag-popular {
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-bright);
}

.tag-pro {
  background: rgba(56, 189, 248, 0.16);
  color: var(--ton-cyan);
}

.tag-whale {
  background: rgba(251, 191, 36, 0.16);
  color: var(--gold);
}

.vip-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tier-cost-big {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 5px;
}

.twc-usd {
  font-size: 10.5px;
  color: var(--gold);
  font-weight: 600;
}

.tier-yield {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.tier-yield b {
  color: var(--emerald-bright);
  font-family: var(--font-mono);
}

.tier-total-return {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tier-total-return b {
  color: #ffffff;
}

/* 3-Column ROI Summary Box */
.vip-price-box {
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.receipt-col {
  text-align: center;
  flex: 1;
}

.vip-price-label,
.roi-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.vip-price-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.vip-daily-gain-badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ton-cyan);
}

.roi-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--emerald-bright);
}

.receipt-arrow {
  color: var(--text-dim);
  font-size: 13px;
}

.pay-alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.direct-ton-btn,
.stars-mint-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 12px;
  padding: 11px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.stars-mint-btn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fde68a;
}

/* ======================================================== */
/* 👑 TAB 3: 7-TIER AMBASSADOR NETWORK */
/* ======================================================== */
.affiliate-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.aff-stat-item {
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aff-stat-item span {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.aff-stat-item b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.invite-buttons-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.invite-share-btn {
  background: linear-gradient(135deg, var(--ton-blue) 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 13px;
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 152, 234, 0.28);
}

.invite-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 13px;
  padding: 0 15px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.story-wide-btn {
  width: 100%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--ton-cyan);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.invite-requirement-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invite-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ib-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald-bright);
}

.ib-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #ffffff;
}

.ib-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ib-desc b {
  color: #ffffff;
}

.unlock-tiers-banner {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.utb-text {
  font-size: 11.5px;
  color: #fde68a;
  line-height: 1.4;
}

.utb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.utb-btn {
  border-radius: 10px;
  padding: 9px 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.utb-btn.ton {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: var(--emerald-bright);
}

.utb-btn.stars {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--gold);
}

.matrix-card {
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
}

.matrix-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.matrix-math-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.matrix-math-note b {
  color: var(--text-secondary);
}

/* ======================================================== */
/* 📱 FLOATING BOTTOM GLASS NAVIGATION DOCK */
/* ======================================================== */
.bottom-tab-bar {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 432px;
  background: rgba(11, 17, 29, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  z-index: 900;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  direction: ltr; /* Keep tab order consistent across all languages */
}

.b-tab-btn {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 10px 4px 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.b-tab-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #ffffff;
}

.b-tab-icon {
  font-size: 16px;
  line-height: 1;
}

.b-tab-label {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.b-tab-badge {
  position: absolute;
  top: 3px;
  right: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  background: var(--emerald-bright);
  color: #04130b;
  padding: 1px 4px;
  border-radius: 999px;
  line-height: 1.2;
}

.b-tab-badge.cyan {
  background: var(--ton-cyan);
  color: #031525;
}

/* ======================================================== */
/* 🪟 MODALS (CLEAN GLASS SHEET) */
/* ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.unlock-modal-box,
.lang-modal-box,
.celebration-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 14px 16px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  max-height: 84vh;
  overflow-y: auto;
}

.unlock-modal-top,
.lang-modal-header {
  position: sticky;
  top: -14px;
  z-index: 30;
  background: rgba(13, 20, 36, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.unlock-modal-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 4px 9px;
  border-radius: 999px;
}

.lang-close-btn {
  min-width: 68px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.22);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  color: #fecaca;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.lang-close-btn:active {
  transform: scale(0.95);
  background: rgba(239, 68, 68, 0.38);
}

.modal-bottom-close-btn {
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.14);
  border: 1.5px solid rgba(239, 68, 68, 0.42);
  color: #fca5a5;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plan-cat-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(6, 10, 18, 0.75);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.plan-cat-btn {
  padding: 8px 4px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}

.plan-cat-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(56, 189, 248, 0.18));
  border-color: rgba(16, 185, 129, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.plan-cat-pane {
  display: none;
}

.plan-cat-pane.active {
  display: block;
}


.unlock-modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.unlock-modal-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.unlock-vault-preview {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 11px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uvp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.um-tier-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.um-tier-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.um-tier-pill.active {
  background: rgba(0, 152, 234, 0.14);
  border-color: var(--ton-cyan);
}

.um-p-tag {
  font-size: 9px;
  font-weight: 800;
  color: var(--ton-cyan);
}

.um-p-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.um-p-sub {
  font-size: 10px;
  color: var(--emerald-bright);
}

.um-free-invite-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 11px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

/* Direct Pay Modal */
.dp-amount-banner {
  background: rgba(0, 152, 234, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dp-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.dp-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.dp-bonus-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.14);
  padding: 4px 8px;
  border-radius: 8px;
}

.dp-copy-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
}

.dp-addr-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-main);
  word-break: break-all;
  margin: 5px 0 8px 0;
}

.dp-copy-btn,
.dp-verify-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  border-radius: 9px;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.dp-verify-btn {
  margin-top: 12px;
  padding: 11px;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.38);
  color: var(--emerald-bright);
}

.dp-status-msg {
  font-size: 11.5px;
  text-align: center;
  margin-top: 8px;
  color: var(--text-secondary);
}

/* Language Grid */
.lang-modal-header span {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.lang-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  direction: ltr;
}

.lang-option-btn {
  background: rgba(255, 255, 255, 0.045);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-option-btn .l-flag {
  font-size: 16px;
  flex-shrink: 0;
}

.lang-option-btn .l-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-option-btn .l-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--ton-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.lang-option-btn.active {
  border-color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.lang-option-btn.active .l-code {
  background: var(--emerald-bright);
  color: #04130b;
}

/* Celebration Box */
.celebration-box {
  text-align: center;
}

.c-emoji {
  font-size: 40px;
  margin-bottom: 8px;
}

.c-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.c-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.c-serials {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ton-cyan);
  background: rgba(0, 152, 234, 0.12);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.c-perk-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ======================================================== */
/* 🌍 RTL (PERSIAN / ARABIC / URDU) & MOBILE POLISH */
/* ======================================================== */
body.rtl-lang .wcta-info,
body.rtl-lang .sch-left,
body.rtl-lang .ib-desc,
body.rtl-lang .utb-text,
body.rtl-lang .matrix-math-note,
body.rtl-lang [data-i18n="home_mlm_desc"],
body.rtl-lang [data-i18n="mlm_how_body"] {
  direction: rtl;
  text-align: right;
}

body.rtl-lang code,
body.rtl-lang .odometer-display,
body.rtl-lang .clean-list-row,
body.rtl-lang .affiliate-stats-strip b,
body.rtl-lang .vip-price-box {
  direction: ltr;
}

@media (max-width: 375px) {
  .app-container {
    padding: 10px 10px 92px 10px;
  }
  .brand-text h1 {
    font-size: 15px;
  }
  .live-dot-badge {
    display: none;
  }
  .odometer-display {
    font-size: 27px;
  }
  .clean-list-row {
    font-size: 11px;
    padding: 8px 9px;
  }
}
