/**
 * MagicX Token Generator - Quantum Cyber-Luxury Design System
 * Live-Only Web3 & Transaction Fee Engine
 */

:root {
  --bg-obsidian: #080b11;
  --bg-card: rgba(17, 22, 37, 0.75);
  --bg-card-hover: rgba(23, 30, 50, 0.85);
  --bg-glass-input: rgba(10, 14, 24, 0.7);
  --border-glass: rgba(0, 242, 254, 0.15);
  --border-glass-focus: rgba(0, 242, 254, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --neon-cyan: #00f2fe;
  --laser-purple: #9d4edd;
  --deep-violet: #111625;
  --electric-emerald: #00ff9d;
  --warning-amber: #ffb703;
  --danger-crimson: #ff3366;

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

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
  --glow-purple: 0 0 25px rgba(157, 78, 221, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-obsidian);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(157, 78, 221, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #080b11 0%, #0c0f18 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080b11;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Typography Utilities */
.font-mono {
  font-family: var(--font-mono);
}
.text-cyan {
  color: var(--neon-cyan);
}
.text-purple {
  color: var(--laser-purple);
}
.text-emerald {
  color: var(--electric-emerald);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}

/* Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  width: 100%;
}

/* Header & Navigation */
.magicx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--laser-purple) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #080b11;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 30%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 255, 157, 0.12);
  color: var(--electric-emerald);
  border: 1px solid rgba(0, 255, 157, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--electric-emerald);
  box-shadow: 0 0 8px var(--electric-emerald);
  animation: pulseLive 2s infinite;
}

/* Nav Tabs */
.nav-pills {
  display: flex;
  align-items: center;
  background: rgba(17, 22, 37, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(157, 78, 221, 0.25) 100%);
  color: #ffffff;
  border: 1px solid var(--border-glass-focus);
  box-shadow: var(--glow-cyan);
}

/* Header Right Area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 22, 37, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.network-selector-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(23, 30, 50, 0.95);
}

.net-badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
}

.wallet-btn {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--laser-purple) 100%);
  color: #080b11;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: var(--glow-cyan);
}

.wallet-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.wallet-connected-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 22, 37, 0.9);
  border: 1px solid var(--border-glass-focus);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

.wallet-connected-pill,
.wallet-connected-pill * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

.wallet-connected-pill .wallet-addr {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-cyan);
  pointer-events: none;
}
