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

:root {
  /* Ultra-Modern Web3 & SaaS Color System */
  --bg-main: #060913;
  --bg-subtle: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-elevated: rgba(22, 33, 58, 0.85);
  --bg-card-hover: rgba(30, 45, 77, 0.9);
  --bg-input: rgba(10, 16, 30, 0.85);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --grad-purple: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --grad-emerald: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --grad-rose: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --grad-card-glow: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(99, 102, 241, 0.03));

  /* Neon Glowing Accents */
  --cyan: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --rose: #f43f5e;
  --sky: #38bdf8;

  /* Borders & Glass */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.5);
  --border-gold: rgba(251, 191, 36, 0.3);
  --glass-blur: blur(20px);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

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

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--sat);
  padding-bottom: var(--sab);
}

/* Typography Helpers */
.font-mono { font-family: var(--font-mono) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-gold { color: var(--gold) !important; }
.text-emerald { color: var(--emerald) !important; }
.text-purple { color: var(--purple) !important; }
.text-rose { color: var(--rose) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dim { color: var(--text-dim) !important; }
.hidden { display: none !important; }

/* ==========================================================================
   0. AUTH SCREEN (ĐĂNG NHẬP & ĐĂNG KÝ SIÊU ĐẸP & ĐẲNG CẤP WEB3 LUXURY)
   ========================================================================== */
.auth-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  background-color: #030712;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.auth-ambient-glow-1 {
  position: absolute;
  top: -150px; left: -150px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.auth-ambient-glow-2 {
  position: absolute;
  bottom: -150px; right: -150px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.1); }
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  border-radius: 28px;
  padding: 38px 32px;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.9),
    0 0 45px rgba(0, 242, 254, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 10;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00f2fe 0%, #fbbf24 50%, #a855f7 100%);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
}

.auth-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #4facfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #000000;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transition: transform 0.3s;
}

.auth-logo-icon:hover {
  transform: rotate(10deg) scale(1.08);
}

.auth-logo h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.auth-logo p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Nav Tabs Segmented Control */
.auth-nav {
  display: flex;
  gap: 8px;
  background: rgba(10, 16, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 5px;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.auth-tab-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.auth-tab-btn:hover {
  color: #ffffff;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(0, 242, 254, 0.08));
  color: #00f2fe;
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon .input-icon-left {
  position: absolute;
  left: 16px;
  color: #00f2fe;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
}

.input-with-icon .input-icon-toggle {
  position: absolute;
  right: 16px;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  z-index: 5;
  transition: color 0.2s;
  padding: 4px;
}

.input-with-icon .input-icon-toggle:hover {
  color: #00f2fe;
}

.form-control {
  width: 100%;
  padding: 14px 44px 14px 46px;
  background: rgba(10, 16, 32, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4), inset 0 1px 3px rgba(0,0,0,0.5);
  background: rgba(10, 16, 32, 1);
}

.form-control::placeholder {
  color: #64748b;
  font-size: 13px;
}

/* Feature Perks Pills */
.auth-perks-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-perk-chip {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Luxury Action Buttons */
.btn-auth-action {
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-auth-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #0088cc 100%);
  color: #000000;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.45);
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.65);
  filter: brightness(1.08);
}

.btn-auth-success {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  color: #000000;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
}

.btn-auth-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.65);
  filter: brightness(1.08);
}

.btn-auth-action:active {
  transform: scale(0.98);
}

/* Bottom Security Scanner Banner */
.auth-security-footer {
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(10, 16, 32, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

/* ==========================================================================
   1. TOPBAR & LUXURY HEADER
   ========================================================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
}

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

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

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.user-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

/* ==========================================================================
   2. MODERN NAVIGATION TABS (CHIPS STYLE)
   ========================================================================== */
.nav-tabs-wrapper {
  display: flex;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(8, 12, 24, 0.9);
  border-bottom: 1px solid var(--border-glass);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 65px;
  z-index: 90;
}

.nav-tabs-wrapper::-webkit-scrollbar { display: none; }

.nav-tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-tab-chip:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-chip.active {
  background: var(--grad-primary);
  color: #000;
  box-shadow: 0 4px 18px var(--cyan-glow);
  font-weight: 800;
}

.nav-tab-chip.gold-active.active {
  background: var(--grad-gold);
  box-shadow: 0 4px 18px var(--gold-glow);
}

/* ==========================================================================
   3. MODERN WEB3 DASHBOARD (MINING HUB)
   ========================================================================== */
.main-layout {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px;
  flex: 1;
}

/* Hero Balance Section */
.hero-balance-card {
  background: var(--grad-card-glow), var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.1);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-balance-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.18), transparent 70%);
  pointer-events: none;
}

.balance-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.balance-main-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-main-value {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  margin: 6px 0 10px 0;
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.balance-unit {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
}

.sub-balance-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.sub-balance-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.sub-balance-val {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Holographic Tap Orb */
.tap-orb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.interactive-tap-sphere {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe600, #ff9900 60%, #cc6600 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  box-shadow: 0 0 45px rgba(255, 170, 0, 0.5), inset 0 0 25px rgba(255, 255, 255, 0.6);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.interactive-tap-sphere:active {
  transform: scale(0.93);
  box-shadow: 0 0 60px rgba(255, 170, 0, 0.8), inset 0 0 35px rgba(255, 255, 255, 0.8);
}

.interactive-tap-sphere i {
  font-size: 42px;
  color: #000;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(255,255,255,0.4));
}

.tap-sphere-label {
  font-size: 15px;
  font-weight: 900;
  color: #000;
  letter-spacing: 1px;
}

.tap-sphere-sub {
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.75);
}

.tap-stats-row {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 13px;
}

/* Card Grid */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.modern-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.25s;
}

.modern-card:hover {
  border-color: rgba(0, 242, 254, 0.2);
  transform: translateY(-2px);
}

.card-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-heading {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Multi-Account Cards */
.account-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: all 0.2s;
}

.account-card-item:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.25);
}

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

.acc-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

/* ==========================================================================
   4. SETTINGS PANEL (PHẦN CÀI ĐẶT TOÀN DIỆN & HIỆN ĐẠI)
   ========================================================================== */
.settings-section-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.settings-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.settings-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label-group {
  max-width: 65%;
}

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

.settings-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* Switch Toggle Component */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

input:checked + .slider {
  background: var(--grad-primary);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background: #000;
}

/* Range Slider */
.range-slider-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 220px;
}

.range-input {
  flex: 1;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* Select & Inputs */
.select-modern {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.select-modern:focus {
  border-color: var(--cyan);
}

/* ==========================================================================
   5. MODAL SYSTEM (HỘP THOẠI GLASSMORPHISM CAO CẤP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: 100%;
  max-width: 490px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1.5px solid rgba(0, 242, 254, 0.45);
  border-radius: 26px;
  padding: 30px 28px;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(0, 242, 254, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  animation: modalPopUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopUp {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #00f2fe 0%, #38bdf8 50%, #0088cc 100%);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: rotate(90deg) scale(1.05);
}

/* ==========================================================================
   5.1. RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 768px) {
  .balance-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card-grid-2, .card-grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .topbar { padding: 10px 14px; }
  .nav-tabs-wrapper { padding: 8px 14px; top: 60px; }
  .hero-balance-card { padding: 20px 16px; border-radius: var(--radius-lg); }
  .balance-main-value { font-size: 30px; }
  .interactive-tap-sphere { width: 140px; height: 140px; }
  .settings-section-card { padding: 18px 14px; }
  .settings-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .settings-label-group { max-width: 100%; }
}

/* ==========================================================================
   6. VIP LICENSE ACTIVATION SECTION (THIẾT KẾ ĐẲNG CẤP VIP GOLD)
   ========================================================================== */
.license-view-container {
  max-width: 650px;
  margin: 0 auto;
  padding: 10px 0;
}

.vip-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.12) 0%, rgba(15, 23, 42, 0.9) 70%);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(251, 191, 36, 0.15);
  position: relative;
  overflow: hidden;
}

.vip-card-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-gold);
}

.vip-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.vip-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.vip-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.vip-input-field {
  width: 100%;
  background: rgba(6, 10, 20, 0.95);
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-lg);
  padding: 16px 20px 16px 52px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.vip-input-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), inset 0 2px 8px rgba(0,0,0,0.5);
  background: rgba(10, 15, 28, 0.98);
}

.vip-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 20px;
  pointer-events: none;
}

.btn-activate-vip {
  width: 100%;
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 30%, #f59e0b 70%, #d97706 100%);
  color: #000;
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  user-select: none;
  touch-action: manipulation;
}

.btn-activate-vip:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
}

.btn-activate-vip:active {
  transform: translateY(0) scale(0.98);
}

.vip-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.vip-status-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
}

.vip-status-item .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.vip-status-item .value {
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
}

.vip-perks-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.vip-perk-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: #cbd5e1;
}

.vip-perk-box i {
  color: var(--gold);
  font-size: 14px;
}

/* ==========================================================================
   7. TỰ ĐỘNG TỐI ƯU HÓA CHO ĐIỆN THOẠI & MÁY TÍNH (ADAPTIVE DEVICE SYSTEM)
   ========================================================================== */

/* 7.1. Chế Độ Điện Thoại (Mobile Optimized) */
body.device-mobile-optimized {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

body.device-mobile-optimized .main-layout {
  padding: 10px 12px calc(80px + var(--sab)) 12px;
}

body.device-mobile-optimized .hero-profile-banner {
  padding: 16px 14px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

body.device-mobile-optimized .env-pills-cluster {
  align-items: flex-start;
  width: 100%;
}

body.device-mobile-optimized .kpi-cards-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.device-mobile-optimized .atf-mining-stage-card {
  padding: 18px 12px;
}

body.device-mobile-optimized .atf-coin-container-3d {
  width: 170px;
  height: 170px;
}

body.device-mobile-optimized .coin-atf-text {
  font-size: 44px;
}

body.device-mobile-optimized .btn-real-claim-gold {
  padding: 15px 16px;
  font-size: 15px;
}

/* 7.2. Chế Độ Máy Tính (Desktop Optimized) */
body.device-desktop-optimized .hero-profile-banner:hover {
  border-color: rgba(0, 242, 254, 0.45);
}

body.device-desktop-optimized .atf-real-gold-coin:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 80px rgba(255, 187, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.9);
}

.desktop-hotkey-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #fbbf24;
  margin-left: 8px;
}


