/* ==========================================================================
   ASTRAL Platform — Premium Cyber-Fintech Design System
   8-Level Investment Ecosystem (USDT BEP20)
   Mobile-First & Desktop High-Definition Edition
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Cyber & Deep Fintech */
  --bg-space: #030712;
  --bg-deep: #060b18;
  --bg-surface: #0a1124;
  --bg-card: rgba(13, 22, 44, 0.75);
  --bg-card-hover: rgba(18, 30, 60, 0.88);
  --bg-glass: rgba(15, 23, 42, 0.7);

  /* Primary & Accent Tones */
  --primary-cyan: #00f2fe;
  --primary-blue: #0ea5e9;
  --primary-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.28);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.28);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.28);
  --accent-rose: #f43f5e;
  --telegram-blue: #229ed9;

  /* Borders & Glass Strokes */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(0, 242, 254, 0.38);
  --border-emerald: rgba(16, 185, 129, 0.38);
  --border-gold: rgba(245, 158, 11, 0.45);

  /* Text & Typography */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-glow-cyan: 0 0 25px rgba(0, 242, 254, 0.18);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.22);
  --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Header Heights */
  --header-height: 64px;
  --ticker-height: 36px;

  /* Mobile Safe Area Inset */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ==========================================================================
   Base Reset & Body Background
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height, 64px) + 24px);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-space);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  touch-action: manipulation;
  
  /* Cyber Grid Background Pattern */
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(14, 165, 233, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(16, 185, 129, 0.09), transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 70%, rgba(139, 92, 246, 0.09), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  background-attachment: scroll, scroll, scroll, fixed, fixed;
}

/* Ambient Background Glow Spheres */
.bg-glow-1 {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.14) 0%, rgba(99, 102, 241, 0.07) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.bg-glow-2 {
  position: fixed;
  bottom: 5%;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(139, 92, 246, 0.06) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Guaranteed Main Flow starting after Navigation */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.section {
  padding: 76px 0;
  position: relative;
  z-index: 1;
  scroll-margin-top: calc(var(--header-height, 64px) + 24px);
}

/* Anchor Target Elements Scroll Margins (Prevents overlap under sticky header) */
.hero,
#stats-trust,
#plans,
#calculator,
#claim-info,
#advantages,
.claim-info-panel,
.dashboard-container,
#dashboard-claim-panel {
  position: relative;
  z-index: 1;
  scroll-margin-top: calc(var(--header-height, 64px) + 24px);
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-title p {
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* Gradient Text Effect */
.text-gradient {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #00c6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Panel Base */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Ticker Bar & Header Navigation (Solid Dark Background & Aligned Flex Row)
   ========================================================================== */

.ticker-bar {
  background: #040813;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.8rem;
  overflow: hidden;
  position: relative;
  z-index: 990;
  padding: 8px 0;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  gap: 36px;
  animation: tickerSlide 35s linear infinite;
  width: max-content;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.ticker-item strong {
  color: var(--text-main);
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 1. Header Fix: Opaque Dark Background & Priority Z-Index */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: #060b18; /* Non-transparent solid dark fintech background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 50%, var(--accent-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030712;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
  flex-shrink: 0;
}

.logo-network-pill {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

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

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 28px;
}

.nav-links li a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
}

.nav-links li a:hover {
  color: var(--primary-cyan);
}

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

.nav-guest-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-balance-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-balance-pill:hover {
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.08);
}

.user-balance-pill .balance-label {
  color: var(--text-dim);
}

.user-balance-pill .balance-val {
  color: var(--accent-emerald);
  font-family: var(--font-heading);
}

/* Compact Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 7px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0.2);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ==========================================================================
   Luxury Mobile Navigation Drawer
   ========================================================================== */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  max-width: 88vw;
  height: 100%;
  background: linear-gradient(180deg, #070d1e 0%, #030712 100%);
  border-left: 1px solid var(--border-glass);
  z-index: 1101;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
  gap: 10px;
}

.drawer-status-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.drawer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

.drawer-close-btn {
  font-size: 1.6rem;
  color: var(--text-muted);
  line-height: 1;
}

/* Drawer User Profile Card */
.drawer-user-card {
  background: linear-gradient(135deg, rgba(14, 25, 52, 0.9) 0%, rgba(9, 15, 33, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.drawer-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.drawer-user-meta {
  flex: 1;
  overflow: hidden;
}

.drawer-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-user-balance-box {
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.drawer-balance-caption {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawer-balance-amount {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-top: 2px;
}

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

/* Drawer Guest Welcome Card */
.drawer-guest-card {
  background: linear-gradient(135deg, rgba(16, 26, 52, 0.85) 0%, rgba(9, 14, 30, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.drawer-guest-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary-cyan);
  margin-bottom: 6px;
}

.drawer-guest-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.drawer-guest-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.drawer-guest-btn-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-guest-btn-grid .btn {
  width: 100%;
}

/* Drawer Navigation List */
.drawer-nav-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  padding: 0 4px;
}

.drawer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.drawer-nav-item:hover,
.drawer-nav-item:active {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateX(4px);
}

.drawer-nav-item.highlight {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
}

.drawer-nav-item.danger {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.3);
}

.drawer-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.drawer-nav-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-nav-text strong {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
}

.drawer-nav-text span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.drawer-nav-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.drawer-nav-pill.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

/* Telegram Drawer Card */
.drawer-telegram-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.15) 0%, rgba(30, 136, 229, 0.22) 100%);
  border: 1px solid rgba(34, 158, 217, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  transition: all 0.2s ease;
}

.drawer-telegram-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.25) 0%, rgba(30, 136, 229, 0.32) 100%);
}

.drawer-tg-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--telegram-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-tg-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-tg-meta strong {
  font-size: 0.86rem;
}

.drawer-tg-meta span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
}

.drawer-tg-arrow {
  font-size: 1.1rem;
  color: var(--primary-cyan);
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.drawer-security-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   Mobile Bottom Navigation Dock (Fixed Thumb-Friendly App Bar)
   ========================================================================== */

.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(6, 11, 24, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 85;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.dock-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  gap: 3px;
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s ease;
  position: relative;
}

.dock-tab:active {
  transform: scale(0.92);
}

.dock-tab.active {
  color: var(--primary-cyan);
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dock-tab.active .dock-icon {
  transform: translateY(-2px);
  color: var(--primary-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6));
}

.dock-claim-icon {
  color: var(--accent-emerald);
}

.dock-tab.active .dock-claim-icon {
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.7));
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #0ea5e9 100%);
  color: #030712;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
  filter: brightness(1.08);
}

/* High Contrast & High Visibility "Войти в Кабинет" Button */
.btn-hero-login {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  border: 1.5px solid #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-hero-login:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
  filter: brightness(1.08);
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.25);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}

.btn-telegram {
  background: linear-gradient(135deg, #229ed9 0%, #1e88e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.3);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(34, 158, 217, 0.45);
}

/* Floating Telegram Help Button */
.floating-telegram {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #229ed9 0%, #1e88e5 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(34, 158, 217, 0.45);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-telegram:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 35px rgba(34, 158, 217, 0.6);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.rejected {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   Hero Section & Trust Statistics
   ========================================================================== */

.hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.25);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: clamp(0.98rem, 2.2vw, 1.15rem);
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.stat-card {
  padding: 20px 16px;
  text-align: center;
  background: rgba(13, 22, 44, 0.65);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: var(--shadow-glow-cyan);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.15;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

/* Trust Banner */
.trust-banner {
  background: linear-gradient(135deg, rgba(13, 22, 44, 0.95) 0%, rgba(6, 11, 24, 0.98) 100%);
  border: 1px solid var(--border-glass);
}

.trust-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.25);
}

/* ==========================================================================
   GRADIENT TARIFF LEVEL CARDS (8 Levels Grid) & FILTER TABS
   ========================================================================== */

.plans-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.plan-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(0, 242, 254, 0.3);
}

.plan-filter-btn.active {
  background: linear-gradient(135deg, #00f2fe 0%, #0ea5e9 100%);
  color: #030712;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.3);
  font-weight: 700;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  background: linear-gradient(180deg, rgba(17, 27, 54, 0.78) 0%, rgba(9, 15, 33, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

/* Top Subtle Glow Line on Level Cards */
.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.4), transparent);
  transition: all 0.35s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.12);
}

.plan-card:hover::before {
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.1), rgba(0, 242, 254, 0.9), rgba(16, 185, 129, 0.8), transparent);
}

/* Popular Card (Levels 2 & 4) */
.plan-card.popular {
  border-color: rgba(0, 242, 254, 0.3);
  background: linear-gradient(180deg, rgba(14, 38, 70, 0.85) 0%, rgba(9, 18, 38, 0.95) 100%);
  box-shadow: 0 16px 40px rgba(0, 242, 254, 0.12);
}

.plan-card.popular::before {
  background: linear-gradient(90deg, #00f2fe, #0ea5e9, #6366f1);
  height: 3px;
}

/* VIP Card (Levels 7 & 8) */
.plan-card.vip {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(38, 28, 14, 0.85) 0%, rgba(18, 14, 9, 0.95) 100%);
}

.plan-card.vip::before {
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #ef4444);
  height: 3px;
}

.plan-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.plan-card.popular .plan-badge {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--primary-cyan);
}

.plan-badge.vip {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.plan-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
  line-height: 1.25;
}

.plan-percent {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.plan-percent-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.plan-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-emerald);
}

/* ==========================================================================
   PREMIUM ADVANTAGE BLOCKS
   ========================================================================== */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
  z-index: 1;
}

.advantage-card {
  background: linear-gradient(180deg, rgba(16, 26, 52, 0.8) 0%, rgba(9, 14, 30, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.35s ease;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.7);
}

.advantage-card.security:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 242, 254, 0.12);
}
.advantage-card.security::before {
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.6), transparent);
}

.advantage-card.stable-income:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(16, 185, 129, 0.12);
}
.advantage-card.stable-income::before {
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.6), transparent);
}

.advantage-card.instant-payout:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.12);
}
.advantage-card.instant-payout::before {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.6), transparent);
}

.advantage-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  font-size: 1.6rem;
}

.advantage-card.security .advantage-icon-wrapper {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary-cyan);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.2);
}

.advantage-card.stable-income .advantage-icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2);
}

.advantage-card.instant-payout .advantage-icon-wrapper {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.2);
}

.advantage-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.advantage-card.security .advantage-tag { color: var(--primary-cyan); }
.advantage-card.stable-income .advantage-tag { color: var(--accent-emerald); }
.advantage-card.instant-payout .advantage-tag { color: var(--accent-amber); }

.advantage-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.advantage-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.advantage-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
}

.advantage-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.advantage-features-list li span.bullet-check {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ==========================================================================
   Calculator Section & Quick Level Pills
   ========================================================================== */

.calc-card {
  background: linear-gradient(135deg, rgba(16, 26, 52, 0.9) 0%, rgba(9, 14, 30, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.calc-quick-pills-wrap {
  margin-bottom: 16px;
}

.calc-sublabel {
  display: block;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.calc-quick-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.calc-quick-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-quick-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(0, 242, 254, 0.3);
}

.calc-quick-pill.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  font-weight: 700;
}

.calc-result-box {
  background: rgba(6, 11, 24, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-metric-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.calc-metric-val {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  margin: 4px 0 2px;
}

/* ==========================================================================
   Dashboard, Wallet Hero & Controls
   ========================================================================== */

/* Mobile-First Luxury Wallet Header Card */
.dash-wallet-hero {
  padding: 28px;
  margin-top: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(14, 25, 52, 0.95) 0%, rgba(9, 15, 33, 0.98) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.08);
}

.dash-wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dash-wallet-title {
  font-size: 1.45rem;
  margin-top: 4px;
}

.dash-wallet-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.dash-wallet-caption {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-wallet-val {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-emerald);
  line-height: 1.1;
  margin-top: 4px;
  letter-spacing: -0.03em;
}

.dash-wallet-chip {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-wallet-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding-bottom: 40px;
}

.sidebar {
  padding: 24px 16px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  border-left: 3px solid var(--primary-cyan);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card {
  padding: 20px;
}

.metric-header {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}

.dashboard-main-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Claim Panel Box */
.claim-panel-box {
  padding: 24px;
  border-color: rgba(0, 242, 254, 0.3);
}

.claim-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.claim-panel-title {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.claim-panel-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
  margin-bottom: 0;
}

/* Claim Panel Timer */
.claim-timer-badge {
  text-align: right;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.claim-timer-lbl {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: block;
}

.claim-timer-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-cyan);
  font-family: var(--font-heading);
}

.claim-item-card {
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  transition: all 0.25s ease;
}

.claim-item-card.ready-claim {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.claim-item-title {
  font-size: 1.1rem;
  color: var(--text-main);
  display: block;
}

.claim-item-income {
  color: var(--accent-emerald);
  font-weight: 700;
  margin-top: 2px;
}

.claim-time-tag {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: normal;
}

.btn-claim-action {
  min-height: 42px;
  font-weight: 700;
}

.claim-status-badge {
  font-size: 0.88rem;
  padding: 8px 16px;
}

.claims-empty-box,
.level-empty-panel {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
}

/* User Levels Section */
.dash-levels-section {
  margin-bottom: 0;
}

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-section-title {
  font-size: 1.15rem;
  margin: 0;
}

.level-item-card {
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.level-item-title {
  font-size: 1.15rem;
  margin-top: 6px;
  margin-bottom: 2px;
}

.level-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Chart & Analytics Card */
.dash-chart-card {
  padding: 24px;
}

.dash-chart-card .dash-section-title {
  margin-bottom: 16px;
}

.dash-chart-container {
  height: 220px;
  position: relative;
}

/* Referral Section Card */
.dash-ref-card {
  padding: 24px;
}

.dash-ref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-ref-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
  margin-bottom: 0;
}

/* Referral Link Group */
.ref-link-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ref-link-group input {
  flex: 1;
  min-width: 200px;
}

/* History Operations Card */
.dash-history-card {
  padding: 24px;
}

.dash-history-card .dash-section-title {
  margin-bottom: 16px;
}

/* Inputs & Form Controls */
.glass-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all 0.2s ease;
  outline: none;
}

.glass-input:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.glass-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 580px;
}

.data-table th {
  padding: 14px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Modals & Toast Notifications (Mobile Bottom-Sheet Mode)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-window {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, rgba(16, 26, 52, 0.98) 0%, rgba(9, 14, 30, 0.99) 100%);
  padding: 32px;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-pull-handle {
  display: none;
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 0 auto 16px;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast-item {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
}

.toast-item.success { border-left: 4px solid var(--accent-emerald); }
.toast-item.error { border-left: 4px solid var(--accent-rose); }
.toast-item.warning { border-left: 4px solid var(--accent-amber); }
.toast-item.info { border-left: 4px solid var(--primary-cyan); }

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(3, 7, 18, 0.9);
  position: relative;
  z-index: 1;
}

/* Trust Banner & Social Proof Grid */
.trust-banner {
  padding: 40px;
  background: linear-gradient(135deg, rgba(13, 19, 31, 0.95) 0%, rgba(0, 242, 254, 0.06) 50%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.trust-banner-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 36px;
}

.trust-banner-header h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  margin-bottom: 12px;
}

.trust-banner-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.trust-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.trust-card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.trust-card-num {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.15;
}

.trust-card-num.text-cyan { color: var(--primary-cyan); }
.trust-card-num.text-emerald { color: var(--accent-emerald); }
.trust-card-num.text-amber { color: var(--accent-amber); }
.trust-card-num.text-blue { color: var(--primary-blue); }

.trust-card-title {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-top: 4px;
  font-weight: 600;
}

.trust-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.trust-features-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  flex-wrap: wrap;
}

.trust-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trust-feature-check {
  color: var(--accent-emerald);
  font-weight: 800;
}

/* Claim Info Section */
.claim-info-panel {
  padding: 40px;
  background: linear-gradient(135deg, rgba(13, 19, 31, 0.9) 0%, rgba(0, 242, 254, 0.05) 100%);
  border: 1px solid var(--border-glass);
}

.claim-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.claim-info-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  margin-bottom: 16px;
}

.claim-info-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.claim-countdown-card {
  padding: 28px 24px;
  text-align: center;
  background: rgba(6, 11, 24, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.claim-countdown-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.claim-countdown-timer {
  font-size: clamp(1.8rem, 4.8vw, 2.6rem);
  font-weight: 800;
  color: var(--primary-cyan);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.claim-countdown-alert {
  color: var(--accent-amber);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ==========================================================================
   Admin Notification Center & Live Alerts Feed
   ========================================================================== */

.notif-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 18px;
  height: 18px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  animation: notifBadgePulse 2s infinite;
}

@keyframes notifBadgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: liveBlink 1.5s infinite;
}

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

.notif-filter-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.notif-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.notif-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.notif-filter-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary-cyan);
  border-color: rgba(0, 242, 254, 0.4);
}

.notif-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  position: relative;
  align-items: flex-start;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.notif-item.notif-unread {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.notif-item.notif-type-WITHDRAWAL { border-left: 4px solid #ef4444; }
.notif-item.notif-type-DEPOSIT { border-left: 4px solid #0ea5e9; }
.notif-item.notif-type-AUTO_DEPOSIT { border-left: 4px solid #10b981; }
.notif-item.notif-type-LEVEL_BUY { border-left: 4px solid #f59e0b; }
.notif-item.notif-type-USER_REGISTER { border-left: 4px solid #6366f1; }
.notif-item.notif-type-UNASSIGNED_TX { border-left: 4px solid #f97316; }

.notif-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.notif-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: #ffffff;
}

.notif-time {
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.notif-body {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-line;
  margin-bottom: 8px;
}

.notif-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

@media (max-width: 1080px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .trust-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 52px;
    --ticker-height: 32px;
  }

  html {
    scroll-padding-top: calc(var(--header-height, 52px) + 16px);
  }

  /* 1. Base Container & Spacing */
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 44px 0;
    position: relative;
    z-index: 1;
    scroll-margin-top: calc(var(--header-height, 52px) + 16px);
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .section-title p {
    font-size: 0.92rem;
  }

  /* 2. Header & Navigation Fixes for Mobile */
  .ticker-bar {
    position: relative;
    z-index: 990;
    padding: 6px 0;
  }

  .navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 8px 0;
    background: #060b18;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  }

  .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .logo {
    font-size: 1.15rem;
    gap: 6px;
    display: inline-flex;
    align-items: center;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .logo-network-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .nav-links {
    display: none;
  }
  
  .desktop-only {
    display: none !important;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-guest-group {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-guest-group .btn {
    padding: 6px 11px;
    font-size: 0.78rem;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    gap: 4px;
    min-height: 36px;
  }

  .nav-guest-group .btn svg {
    width: 13px;
    height: 13px;
  }

  .mobile-menu-btn {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  .user-balance-pill {
    padding: 4px 8px;
    font-size: 0.78rem;
  }

  /* Safe Area Spacing on Mobile for Fixed Bottom Dock & Floating Actions */
  main {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: calc(115px + var(--safe-bottom));
  }

  .footer {
    padding: 30px 16px calc(115px + var(--safe-bottom));
  }

  /* Show Bottom Navigation Dock */
  .mobile-bottom-dock {
    display: flex;
    z-index: 90;
  }

  /* Floating Telegram Button on Mobile - Positioned neatly above dock on the right */
  .floating-telegram {
    bottom: calc(68px + var(--safe-bottom));
    right: 14px;
    left: auto;
    padding: 7px 13px;
    font-size: 0.78rem;
    height: 36px;
    gap: 6px;
    box-shadow: 0 4px 18px rgba(34, 158, 217, 0.45);
    z-index: 85;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .floating-telegram svg {
    width: 18px;
    height: 18px;
  }

  /* 3. Hero Section Mobile */
  .hero {
    text-align: left;
    margin-top: 0;
    padding: 24px 0 20px;
    position: relative;
    z-index: 1;
    scroll-margin-top: calc(var(--header-height, 52px) + 16px);
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-pill {
    font-size: 0.74rem;
    padding: 5px 12px;
    margin-bottom: 14px;
    margin-left: 0;
    margin-right: 0;
    align-self: flex-start;
    text-align: left;
  }

  .hero h1 {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(1.65rem, 5.8vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
  }

  .hero p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 22px;
    color: var(--text-muted);
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.94rem;
    border-radius: var(--radius-sm);
    min-height: 46px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
  }

  .stat-card {
    padding: 12px 10px;
  }

  .stat-value {
    font-size: 1.35rem;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .stat-label {
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--text-muted);
  }

  /* 4. Trust & Proof Section */
  .stats-trust-section {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .trust-banner {
    padding: 22px 16px;
  }

  .trust-banner-header {
    margin-bottom: 22px;
  }

  .trust-banner-header h2 {
    font-size: 1.45rem;
  }

  .trust-banner-header p {
    font-size: 0.88rem;
  }

  .trust-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .trust-card {
    padding: 14px 10px;
  }

  .trust-card-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
  }

  .trust-card-num {
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .trust-card-title {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .trust-card-sub {
    font-size: 0.7rem;
    margin-top: 3px;
  }

  .trust-features-bar {
    gap: 12px 18px;
    margin-top: 20px;
    padding-top: 18px;
  }

  .trust-feature-item {
    font-size: 0.78rem;
  }

  /* 5. Plans Section */
  .plans-filter-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 4px 12px;
    gap: 6px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .plans-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .plan-filter-btn {
    padding: 6px 13px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .plan-card {
    padding: 20px 16px;
  }

  .plan-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .plan-percent {
    font-size: 1.95rem;
  }

  .plan-percent-sub {
    font-size: 0.74rem;
    margin-bottom: 12px;
  }

  .plan-features {
    padding-top: 12px;
    gap: 8px;
    margin-bottom: 16px;
  }

  .plan-features li {
    font-size: 0.8rem;
  }

  .plan-card .btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.92rem;
  }

  /* 6. Calculator Section */
  .calc-card {
    padding: 20px 16px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calc-controls h2 {
    font-size: 1.45rem;
  }

  .calc-controls p {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }

  .calc-quick-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .calc-quick-pill {
    padding: 7px 4px;
    font-size: 0.72rem;
    text-align: center;
  }

  .calc-result-box {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }

  .calc-metric-item {
    padding: 12px 10px;
  }

  .calc-metric-val {
    font-size: 1.25rem;
  }

  /* 7. Claim Info Section */
  .claim-info-panel {
    padding: 22px 16px;
  }

  .claim-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .claim-info-content h2 {
    font-size: 1.45rem;
    margin-bottom: 12px;
  }

  .claim-info-content p {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }

  .claim-info-btn-group .btn {
    width: 100%;
    min-height: 44px;
  }

  .claim-countdown-card {
    padding: 20px 14px;
  }

  .claim-countdown-timer {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  }

  /* 8. Advantages Section */
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .advantage-card {
    padding: 20px 16px;
  }

  .advantage-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .advantage-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }

  .advantage-title {
    font-size: 1.2rem;
  }

  .advantage-desc {
    font-size: 0.84rem;
    margin-bottom: 12px;
  }

  .advantage-features-list li {
    font-size: 0.8rem;
  }

  /* 9. User Dashboard View Mobile Optimization */
  #view-user-dashboard {
    min-height: calc(100vh - var(--header-height, 52px));
    width: 100%;
    position: relative;
    padding-bottom: calc(130px + var(--safe-bottom));
  }

  .dashboard-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 0;
  }

  .dashboard-main-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .sidebar {
    display: none;
  }

  .dash-wallet-hero {
    padding: 14px 14px 12px;
    margin-top: 8px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
  }

  .dash-wallet-top {
    margin-bottom: 6px;
  }

  .dash-wallet-title {
    font-size: 1.15rem;
    margin-top: 2px;
  }

  .dash-wallet-balance-row {
    margin-bottom: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }

  .dash-wallet-caption {
    font-size: 0.72rem;
  }

  .dash-wallet-val {
    font-size: 1.8rem;
    margin-top: 2px;
  }

  .dash-wallet-chip {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  /* Compact 3-Column Action Buttons Row */
  .dash-wallet-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .dash-wallet-actions-grid .btn {
    padding: 8px 4px;
    font-size: 0.74rem;
    font-weight: 600;
    min-height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
  }

  .dash-wallet-actions-grid .btn svg {
    width: 15px;
    height: 15px;
    margin-bottom: 1px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 0;
  }

  .metric-card {
    padding: 10px 10px;
    border-radius: var(--radius-sm);
  }

  .metric-header {
    font-size: 0.72rem;
    margin-bottom: 2px;
  }

  .metric-value {
    font-size: 1.15rem;
  }

  /* Claim Panel & Countdown Mobile */
  .claim-panel-box {
    padding: 14px 12px;
    margin-bottom: 0;
    border-radius: var(--radius-md);
  }

  .claim-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
  }

  .claim-panel-title {
    font-size: 1.05rem;
    gap: 6px;
  }

  .claim-panel-desc {
    font-size: 0.76rem;
    margin-top: 2px;
    line-height: 1.35;
    color: var(--text-muted);
  }

  .claim-timer-badge {
    padding: 4px 8px;
    text-align: center;
    flex-shrink: 0;
    border-radius: 6px;
  }

  .claim-timer-lbl {
    font-size: 0.66rem;
  }

  .claim-timer-val {
    font-size: 0.98rem;
  }

  .claim-item-card {
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: var(--radius-sm);
  }

  .claim-item-title {
    font-size: 0.95rem;
  }

  .claim-item-income {
    font-size: 0.85rem;
  }

  .btn-claim-action {
    width: 100%;
    min-height: 42px;
    font-size: 0.88rem;
    font-weight: 700;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    animation: claimPulse 2.5s infinite;
  }

  @keyframes claimPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
    50% { box-shadow: 0 4px 22px rgba(16, 185, 129, 0.65); transform: translateY(-1px); }
  }

  .claim-status-badge {
    width: 100%;
    min-height: 38px;
    justify-content: center;
    font-size: 0.82rem;
    padding: 6px 12px;
    text-align: center;
  }

  /* User Tariff Levels Mobile */
  .dash-levels-section {
    margin-bottom: 0;
  }

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

  .dash-section-header h3,
  .dash-section-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }

  .level-item-card {
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: var(--radius-sm);
  }

  .level-item-title {
    font-size: 0.95rem;
    margin-top: 2px;
  }

  .level-item-meta {
    font-size: 0.78rem;
    margin-top: 2px;
  }

  .level-item-btn {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    font-size: 0.85rem;
  }

  /* Chart & Analytics Card Mobile */
  .dash-chart-card {
    padding: 14px 12px;
    margin-bottom: 0;
    border-radius: var(--radius-md);
  }

  .dash-chart-card .dash-section-title {
    margin-bottom: 10px;
  }

  .dash-chart-container {
    height: 160px;
    position: relative;
  }

  /* Referral Card Mobile */
  .dash-ref-card {
    padding: 14px 12px;
    margin-bottom: 0;
    border-radius: var(--radius-md);
  }

  .dash-ref-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
  }

  .dash-ref-desc {
    font-size: 0.76rem;
    margin-top: 2px;
    color: var(--text-muted);
  }

  .ref-link-group {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  .ref-link-group input {
    width: 100%;
    min-width: 0;
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .ref-link-group .btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.85rem;
  }

  /* Transactions History Card Mobile */
  .dash-history-card {
    padding: 14px 12px;
    margin-bottom: 0;
    border-radius: var(--radius-md);
  }

  .dash-history-card .dash-section-title {
    margin-bottom: 10px;
  }

  /* 10. Mobile Bottom Sheet Modals */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-window {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 18px calc(24px + var(--safe-bottom));
    animation: modalSheetUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .modal-pull-handle {
    display: block;
  }

  .glass-input, select.glass-input {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 12px 14px;
  }

  @keyframes modalSheetUp {
    from { transform: translateY(100%); opacity: 0.5; }
    to { transform: translateY(0); opacity: 1; }
  }

  .toast-container {
    bottom: calc(115px + var(--safe-bottom));
    right: 16px;
    left: 16px;
    max-width: 100%;
    z-index: 999;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .nav-guest-group .btn {
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .calc-quick-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .calc-quick-pill {
    text-align: center;
    padding: 6px 2px;
    font-size: 0.68rem;
  }

  .trust-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .trust-card {
    padding: 12px 6px;
  }

  .trust-card-num {
    font-size: 1.3rem;
  }

  /* Compact Floating Telegram Circle */
  .floating-telegram {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    bottom: calc(66px + var(--safe-bottom));
    right: 10px;
    box-shadow: 0 4px 16px rgba(34, 158, 217, 0.5);
  }

  .floating-telegram span {
    display: none;
  }

  .floating-telegram svg {
    width: 20px;
    height: 20px;
  }

  .dash-wallet-val {
    font-size: 1.55rem;
  }

  .dash-wallet-actions-grid .btn {
    font-size: 0.7rem;
    padding: 6px 2px;
    min-height: 40px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .trust-metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calc-quick-pills {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .dash-wallet-hero {
    padding: 12px 10px 10px;
  }

  .dash-wallet-val {
    font-size: 1.4rem;
  }

  .dash-wallet-actions-grid {
    gap: 4px;
  }

  .dash-wallet-actions-grid .btn {
    font-size: 0.67rem;
    padding: 6px 1px;
    min-height: 38px;
  }

  .metric-value {
    font-size: 1.05rem;
  }
}