/* WeeOne Protocol Shared Web3 Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #040914;
  --bg-card: rgba(9, 18, 34, 0.75);
  --bg-card-hover: rgba(14, 27, 48, 0.88);
  --bg-card-glass: rgba(11, 22, 42, 0.65);
  --border-card: rgba(56, 189, 248, 0.16);
  --border-card-hover: rgba(56, 189, 248, 0.42);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --cyan-primary: #06b6d4;
  --cyan-light: #38bdf8;
  --emerald-primary: #10b981;
  --emerald-light: #34d399;
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --rose-primary: #f43f5e;
  --rose-light: #fb7185;
  --purple-primary: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.7) 0%, transparent 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

/* Typography Helpers */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.55);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(6, 182, 212, 0.08);
}

/* Text Gradients */
.gradient-text-cyan-emerald {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid transparent;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #10b981);
  color: #040812;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.25);
}

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

.btn-cyan {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #040812;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.25);
}

.btn-cyan:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #040812;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
}

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

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e2e8f0;
}

.btn-outline:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

.btn-connect-wallet {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.15);
}

.btn-connect-wallet:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-primary);
  color: #fff;
}

.btn-connect-wallet.connected {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

/* Web3 Wallet Navbar Toolbar & Balances */
.wallet-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-balance-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 20, 38, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.wallet-balance-pill:hover {
  border-color: var(--cyan-primary);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.bnb-badge {
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.usdt-badge {
  color: var(--emerald-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-disconnect {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-disconnect:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.35);
}

/* 1-Click Faucet Button & Sandbox Banner */
.btn-faucet {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fde68a;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 15px;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(245, 158, 11, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-faucet:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.38), rgba(16, 185, 129, 0.42));
  border-color: #fbbf24;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-faucet .faucet-badge {
  background: #f59e0b;
  color: #040812;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.testnet-faucet-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(6, 182, 212, 0.1));
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .testnet-faucet-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 9, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px;
  object-fit: contain;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

/* Floating Capsule Nav Links - Strictly Single-Line */
.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(8, 16, 32, 0.75);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex-wrap: nowrap !important;
  flex-shrink: 0;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #020617;
  font-weight: 800;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.35);
}

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

/* Compact Faucet Chip */
.btn-faucet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-faucet:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(16, 185, 129, 0.2));
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
  color: #fff;
}

.faucet-badge {
  background: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.badge-rose {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

/* Forms & Inputs */
.input-dark {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.input-dark:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.input-dark::placeholder {
  color: var(--text-dim);
}

/* Filter Tabs & Pill Switchers */
.filter-tabs-group {
  display: inline-flex;
  background: rgba(11, 20, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.filter-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

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

.filter-pill-btn.active {
  background: rgba(6, 182, 212, 0.22);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
  font-weight: 800;
}

/* Glassmorphic Search Input */
.account-search-box {
  background: rgba(11, 20, 38, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 10px;
  color: #fff;
  font-size: 11.5px;
  padding: 7px 12px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.account-search-box::placeholder {
  color: #64748b;
}

.account-search-box:focus {
  border-color: var(--cyan-primary);
  background: rgba(15, 28, 52, 0.95);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.28);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: linear-gradient(180deg, #0d1b30 0%, #060e1a 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(6, 182, 212, 0.15);
  padding: 28px;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes scaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Toast System */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #091526;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 420px;
}

.toast.success { border-color: rgba(16, 185, 129, 0.6); color: #a7f3d0; }
.toast.error { border-color: rgba(244, 63, 94, 0.6); color: #fca5a5; }
.toast.info { border-color: rgba(6, 182, 212, 0.6); color: #bae6fd; }

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

/* Tables */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.custom-table th, .custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-table th {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Responsiveness */
@media (max-width: 900px) {
  .nav-container {
    flex-wrap: wrap;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

/* Custom Web3 Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(4, 9, 20, 0.85);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.6);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) rgba(4, 9, 20, 0.85);
}

/* =========================================================================
   Unified Web3 Connected Capsule (Pill, Address & Sign Out)
   ========================================================================= */
.wallet-group {
  display: inline-flex;
  align-items: center;
  background: rgba(8, 16, 32, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 9999px;
  padding: 3px 5px;
  gap: 5px;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.wallet-group:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.wallet-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wallet-balance-pill:hover {
  background: rgba(255, 255, 255, 0.06);
}

.bnb-badge, .usdt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.bnb-badge {
  color: #fbbf24;
}

.usdt-badge {
  color: #34d399;
}

.token-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.bnb-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.usdt-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.balance-sep {
  color: rgba(255, 255, 255, 0.18);
  font-weight: 400;
}

.btn-wallet-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 26, 48, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 9999px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-wallet-address:hover {
  border-color: var(--cyan-primary);
  color: #fff;
  background: rgba(20, 38, 70, 0.98);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.online-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseAnim 2s infinite;
}

.btn-disconnect {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
  border-radius: 9999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-disconnect:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.wallet-modal-card {
  background: rgba(11, 20, 38, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .wallet-group {
    max-width: 100%;
    justify-content: center;
    gap: 4px;
    padding: 2px 4px;
  }
  .wallet-balance-pill {
    padding: 4px 8px;
    font-size: 10px;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .btn-wallet-address {
    padding: 3px 7px;
    font-size: 10px;
  }
  .btn-disconnect {
    padding: 3px 6px;
  }
  .btn-disconnect span {
    display: none;
  }
}

/* =========================================================================
   MASTER APP LAYOUT (NON-OVERLAPPING DESKTOP & MOBILE ARCHITECTURE)
   Navbar Top, Sidebar Left, Main Content Right
   ========================================================================= */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--bg-dark);
  color: #f1f5f9;
  position: relative;
}

/* Left Sidebar (Desktop) */
.app-sidebar {
  width: 250px;
  min-width: 250px;
  flex-shrink: 0;
  background: #040914;
  border-right: 1px solid rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1000;
  box-sizing: border-box;
  transition: width 0.2s ease;
}
.sidebar-header {
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}
.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-nav-title {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px 4px 12px;
  margin-top: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.16s ease;
  cursor: pointer;
}
.sidebar-link:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(2px);
}
.sidebar-link.active {
  color: var(--cyan-primary);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.18);
  color: var(--cyan-light);
}
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 6, 16, 0.7);
}
.sidebar-wallet-card {
  background: rgba(11, 20, 38, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.sidebar-wallet-card .net-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.sidebar-wallet-addr {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.sidebar-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sidebar-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.sidebar-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* App Main Wrapper & Topbar */
.app-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevents overflow issues */
}
.app-topbar {
  height: 64px;
  background: rgba(4, 9, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 900;
  box-sizing: border-box;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-title {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
}
.topbar-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sandbox-pill-compact {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fde68a;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.sandbox-pill-compact:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
}
.app-main-content {
  padding: 24px 28px 60px 28px;
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  flex: 1;
}

/* Mobile Topbar Hamburger Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: rgba(11, 20, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  color: #cbd5e1;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1002;
  transition: all 0.2s ease;
  user-select: none;
}
.mobile-menu-btn:hover, .mobile-menu-btn:active {
  background: rgba(16, 29, 54, 0.95);
  border-color: rgba(6, 182, 212, 0.6);
  color: #fff;
}
.mobile-menu-btn svg {
  pointer-events: none;
}

/* Mobile Drawer Links */
.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #fff;
}

/* Mobile Bottom Sheet */
.mobile-bottom-sheet {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(2, 6, 23, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 99999 !important;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto !important;
}
.mobile-bottom-sheet.active {
  display: flex !important;
}
.sheet-container {
  background: #081020;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 16px 16px 36px 16px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  animation: sheetSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 14px auto;
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sheet-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}
.sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.sheet-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

/* Mobile Fixed Bottom Navigation */
.mobile-bottom-nav {
  display: none;
}

/* Tablet Breakpoint (769px - 1024px) */
@media (max-width: 1024px) {
  .app-sidebar {
    width: 72px;
    min-width: 72px;
  }
  .sidebar-brand-text, .sidebar-link span.sidebar-label, .sidebar-badge, .sidebar-nav-title, .sidebar-wallet-card {
    display: none !important;
  }
  .sidebar-link {
    justify-content: center;
    padding: 12px;
  }
}

/* Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
  }
  .app-layout {
    min-height: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
  }
  .app-sidebar {
    display: none !important;
  }
  .app-main-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  .app-topbar {
    padding: 8px 14px !important;
    height: 56px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 1001 !important;
  }
  .topbar-title-group, .topbar-sub, .topbar-open-btn {
    display: none !important;
  }
  #mobileNavLogo {
    display: flex !important;
  }
  .topbar-right {
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
  }
  .topbar-right .sandbox-pill-compact,
  .topbar-right .topbar-open-btn,
  .topbar-right .nav-actions,
  .topbar-right .wallet-group {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  .app-main-content {
    padding: 10px 12px 110px 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(6, 11, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1050;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 4px calc(env(safe-area-inset-bottom, 0px) + 6px) 4px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.65);
  }
  .nav-tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 56px;
    color: #94a3b8;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    transition: all 0.2s ease;
  }
  .nav-tab-item .tab-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  .nav-tab-item .tab-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 3px;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
  }
  .nav-tab-item:hover .tab-label,
  .nav-tab-item:hover svg {
    color: #e2e8f0;
    stroke: #e2e8f0;
  }
  .nav-tab-item.active {
    color: #fff;
  }
  .nav-tab-item.active .tab-card-active {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 5px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .nav-tab-item.active .active-glow-bar {
    position: absolute;
    top: -6px;
    width: 30px;
    height: 3.5px;
    background: #00f2fe;
    border-radius: 9999px;
    box-shadow: 0 0 10px #00f2fe, 0 0 20px rgba(0, 242, 254, 0.7);
  }
  .nav-tab-item.active .tab-icon-wrap svg {
    color: #00f2fe;
    stroke: #00f2fe;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
  }
  .nav-tab-item.active .tab-label {
    color: #ffffff;
    font-weight: 800;
  }
  .nav-tab-connect {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 64px;
    margin-top: -16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    z-index: 1060;
  }
  .connect-squircle-btn {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background: linear-gradient(135deg, #00f2fe 0%, #10e796 100%);
    box-shadow: 0 0 20px rgba(16, 231, 150, 0.65), 0 0 35px rgba(0, 242, 254, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  }
  .nav-tab-connect:hover .connect-squircle-btn,
  .nav-tab-connect:active .connect-squircle-btn {
    transform: scale(1.06);
  }
  .connect-squircle-btn svg {
    color: #040914;
    stroke: #040914;
  }
  .connect-tab-label {
    font-size: 11px;
    font-weight: 800;
    color: #10e796;
    margin-top: 3px;
    letter-spacing: -0.01em;
  }
  .connect-connected-pulse {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #10e796;
    border-radius: 50%;
    box-shadow: 0 0 6px #10e796;
    display: none;
  }
  .nav-tab-connect.is-connected .connect-squircle-btn {
    background: #081022;
    border: 1.5px solid #10e796;
    box-shadow: 0 0 16px rgba(16, 231, 150, 0.35);
  }
  .nav-tab-connect.is-connected .connect-squircle-btn svg {
    color: #10e796;
    stroke: #10e796;
  }
  .nav-tab-connect.is-connected .connect-connected-pulse {
    display: block;
  }
}



