/* ==========================================
   ĐỔITHE USDT - Main Stylesheet
   Dark Crypto Theme + Glassmorphism
   ========================================== */

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

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0a0118;
  --bg-secondary: #110228;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-border: rgba(255, 255, 255, 0.1);

  --accent-blue: #00d4ff;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-gold: #fbbf24;
  --accent-red: #ef4444;
  --accent-pink: #ec4899;

  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #00d4ff 0%, #0080ff 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-hero: linear-gradient(135deg, #1a0533 0%, #0f172a 50%, #0a0118 100%);
  --gradient-card: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.1) 100%);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 212, 255, 0.4);

  --shadow-glow-blue: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.5);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Background Effects ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orbFloat 8s ease-in-out infinite;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00d4ff, transparent);
  top: 40%;
  right: -5%;
  animation-delay: -3s;
}

.bg-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #10b981, transparent);
  bottom: -5%;
  left: 30%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 1, 24, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo-text span {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.network-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

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

@media (min-width: 769px) {
  .nav-links {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 100px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
  }
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #00d4ff !important;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%) !important;
  border: 1px solid rgba(0, 212, 255, 0.3) !important;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
  font-weight: 700;
}

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

.nav-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 212, 255, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.nav-balance .balance-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-balance .balance-amount {
  color: #10b981;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
}

@media (min-width: 769px) {
  .nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 100px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
  }

  .nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
  }

  .logout-btn-desktop {
    padding: 8px 16px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    border-radius: 100px !important;
    color: #ef4444 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
  }

  .logout-btn-desktop:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #ff6b6b !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
  }
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition-fast);
}

.btn:hover::before {
  background: rgba(255,255,255,0.06);
}

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

.btn-primary {
  background: var(--gradient-blue);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-success {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.5);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Cards / Glass Panels ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-card);
}

.card-glow {
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.15);
}

.card-glow:hover {
  box-shadow: var(--shadow-glow-blue);
}

.glass-panel {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
}

/* ---------- Form Elements ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control option {
  background: #1a0533;
  color: var(--text-primary);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-control-icon {
  position: relative;
}

.form-control-icon .form-control {
  padding-left: 44px;
}

.form-control-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

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

.form-error {
  font-size: 0.78rem;
  color: var(--accent-red);
  margin-top: 6px;
  display: none;
}

.form-error.show {
  display: block;
}

/* ---------- Badges & Tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-info {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.tab-btn.active {
  background: var(--gradient-blue);
  color: #000;
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* ---------- Container ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-md {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Section ---------- */
.section {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Stat Cards ---------- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card-blue::before { background: var(--gradient-blue); }
.stat-card-green::before { background: var(--gradient-green); }
.stat-card-gold::before { background: var(--gradient-gold); }
.stat-card-purple::before { background: var(--gradient-primary); }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,255,255,0.12);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.stat-icon-blue { background: rgba(0, 212, 255, 0.12); color: var(--accent-blue); }
.stat-icon-green { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.stat-icon-gold { background: rgba(251, 191, 36, 0.12); color: var(--accent-gold); }
.stat-icon-purple { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); }

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-change {
  font-size: 0.8rem;
  margin-top: 8px;
  color: var(--text-muted);
}

/* ---------- Rate Ticker ---------- */
.rate-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

.rate-ticker-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.rate-ticker-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.rate-ticker-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.rate-ticker-update {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ---------- Exchange Preview ---------- */
.exchange-preview {
  padding: 16px 20px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.exchange-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
}

.exchange-preview-row + .exchange-preview-row {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.exchange-preview-label {
  color: var(--text-secondary);
}

.exchange-preview-value {
  font-weight: 600;
  color: var(--text-primary);
}

.exchange-preview-total .exchange-preview-value {
  color: var(--accent-green);
  font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
}

/* ---------- Network Selector ---------- */
.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.network-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.network-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
  background: var(--bg-card-hover);
}

.network-item.selected {
  border-color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.network-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  overflow: hidden;
  padding: 4px;
}

.network-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform var(--transition-fast);
}

.network-item:hover .network-logo-img {
  transform: scale(1.1);
}

.network-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.network-rate {
  font-size: 0.7rem;
  color: var(--accent-green);
  font-weight: 500;
}

/* ---------- Table ---------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

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

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Alert / Toast ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.alert-info {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: #67e8f9;
}

/* Toast notification */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(20, 5, 40, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  pointer-events: all;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  min-width: 280px;
  max-width: 380px;
}

.toast-success { border-color: rgba(16, 185, 129, 0.3); }
.toast-error { border-color: rgba(239, 68, 68, 0.3); }
.toast-info { border-color: rgba(0, 212, 255, 0.3); }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; color: var(--text-primary); }

/* ---------- Loading ---------- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 1, 24, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.loading-overlay.show {
  display: flex;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-hover);
  animation: slideInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 4px;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 32px;
  border-radius: 6px;
}

.footer-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Auth Pages ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.auth-logo img {
  height: 40px;
  border-radius: 8px;
}

.auth-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

/* ---------- Withdraw Page ---------- */
.withdraw-fee-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.fee-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
}

.fee-card-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.fee-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.withdraw-summary {
  padding: 20px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  margin-top: 20px;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 40px 0 20px;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-breadcrumb a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* ---------- Fee Table (tỷ lệ chiết khấu) ---------- */
.fee-table-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.fee-table-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.fee-table-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.fee-network-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.fee-network-tab {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.fee-network-tab.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; pointer-events: none; }
}

@keyframes countUp {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* ---------- Password Strength ---------- */
.password-strength {
  margin-top: 8px;
}

.password-strength-bar {
  height: 3px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.password-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0;
}

.password-strength-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; z-index: 10000; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #090314 !important;
    padding: 80px 24px 24px !important;
    gap: 12px;
    z-index: 9999 !important;
    overflow-y: auto;
  }
  .nav-links.open a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
  }
  .nav-links.open a.active {
    background: var(--gradient-blue);
    color: #000;
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 50px 0 40px; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
  .withdraw-fee-info { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .network-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2rem; }
  .stat-value { font-size: 1.5rem; }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }
.text-blue { color: var(--accent-blue); }
.text-gold { color: var(--accent-gold); }
.text-red { color: var(--accent-red); }
.text-purple { color: var(--accent-purple); }
.font-mono { font-family: 'Space Grotesk', monospace; }
.font-bold { font-weight: 700; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }

/* ==========================================
   Fee Status Widget (Dynamic Fee System)
   ========================================== */

.fee-status-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(0,212,255,0.06) 100%);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.fee-status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.fee-status-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.fee-status-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.fee-status-vol {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fee-status-right {
  text-align: right;
}

.fee-tier-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(100,116,139,0.2);
  border: 1px solid rgba(100,116,139,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.fee-tier-badge.vip {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(0,212,255,0.15));
  border-color: rgba(16,185,129,0.4);
  color: #10b981;
  box-shadow: 0 0 12px rgba(16,185,129,0.2);
}

.fee-reset-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Progress Bar */
.fee-progress-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}

.fee-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  min-width: 4px;
}

/* Tier Milestones */
.fee-tier-milestones {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.fee-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.fee-milestone.reached {
  opacity: 0.8;
}

.fee-milestone.current {
  opacity: 1;
}

.fee-milestone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.fee-milestone.reached .fee-milestone-dot {
  background: #10b981;
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 8px rgba(16,185,129,0.4);
}

.fee-milestone.current .fee-milestone-dot {
  background: #00d4ff;
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 12px rgba(0,212,255,0.5);
  transform: scale(1.3);
}

.fee-milestone-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.fee-milestone.reached .fee-milestone-label { color: #10b981; }
.fee-milestone.current .fee-milestone-label { color: #00d4ff; }

.fee-next-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Fee widget login prompt */
.fee-widget-login {
  padding: 16px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
}

/* Withdraw summary box */
.withdraw-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

/* ==========================================
   Mobile UX & App-Like Touch Optimization
   ========================================== */

/* Sticky Bottom Mobile Action Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 1, 24, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:active {
  color: var(--accent-blue);
}

.mobile-bottom-nav-icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* Space for bottom nav */
  }

  .mobile-bottom-nav {
    display: flex;
  }

  /* Compact Hero section on mobile */
  .hero {
    padding: 24px 0 16px;
  }
  .hero-badge {
    padding: 6px 14px;
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
  }
  .hero-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 0.875rem;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
  }
  .hero-stat {
    padding: 6px 4px;
  }
  .hero-stat-value {
    font-size: 1.2rem;
  }
  .hero-stat-label {
    font-size: 0.7rem;
  }

  /* Network Grid on Mobile */
  .network-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .network-item {
    padding: 10px 4px;
    border-radius: 12px;
    gap: 4px;
  }
  .network-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    padding: 3px;
  }
  .network-name {
    font-size: 0.7rem;
    font-weight: 700;
  }

  /* Amount Grid on Mobile */
  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .amount-item {
    padding: 10px 4px;
    border-radius: 10px;
  }
  .amount-value {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }
  .amount-received {
    font-size: 0.7rem;
  }

  /* Inputs & Touch Targets */
  .form-control {
    font-size: 16px !important; /* Prevents auto zoom on iOS Safari */
    height: 48px;
  }
  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .card {
    padding: 16px;
    border-radius: 16px;
  }
  .card-glow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .notice-box {
    padding: 12px 14px;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .rate-ticker {
    padding: 10px 14px;
    gap: 8px;
    margin-bottom: 16px;
  }
  .rate-ticker-label {
    font-size: 0.75rem;
  }
  .rate-ticker-value {
    font-size: 0.95rem;
  }
  .rate-ticker-update {
    font-size: 0.7rem;
  }

  /* Section padding */
  .section {
    padding: 24px 0;
  }

  /* Step cards */
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step {
    padding: 20px 16px;
  }
}

@media (max-width: 380px) {
  .network-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   Compact 3-Step Form & Inline Paste Button
   ========================================== */

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step-num-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: #000;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.input-with-paste .form-control {
  padding-right: 68px !important;
}

.input-paste-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-fast);
}

/* Logged-In Mobile User Profile Styling */
@media (min-width: 769px) {
  .mobile-user-card-item {
    display: none !important;
  }
}

.mobile-drawer-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(0, 212, 255, 0.06) 100%);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  padding: 20px;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.mobile-drawer-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.mobile-drawer-link .arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .nav-links.open > li:not(.mobile-drawer-container) {
    display: none !important; /* Hide redundant page links from drawer since bottom nav exists */
  }
}

@media (max-width: 768px) {
  .nav-actions {
    gap: 6px !important;
    margin-right: 4px;
  }
  .nav-balance {
    display: none !important; /* Hide balance box from top header on mobile to prevent clipping */
  }
  .logout-btn-desktop {
    display: none !important;
  }
  .nav-user-btn {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
  }
  .nav-user-btn span {
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabs {
    max-width: 100% !important;
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
  }
  .tab-btn {
    flex: 1;
    padding: 10px 4px;
    font-size: 0.8rem;
    text-align: center;
  }
  .stat-card {
    padding: 14px 10px;
  }
  .stat-value {
    font-size: 1.15rem !important;
    word-break: break-word;
  }
}

