/* ==========================================================================
   NexaCoin Design System & Theme Stylesheet
   Theme: Obsidian Deep Cyberpunk (Neon Accents & Glassmorphism)
   ========================================================================== */

/* Variables & Setup */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette */
  --bg-obsidian: #050507;
  --bg-card: rgba(15, 15, 22, 0.65);
  --bg-card-hover: rgba(22, 22, 33, 0.85);
  --bg-inner-panel: rgba(8, 8, 12, 0.45);
  
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glass-active: rgba(6, 182, 212, 0.35);
  
  --neon-cyan: #06b6d4;
  --neon-cyan-glow: rgba(6, 182, 212, 0.25);
  
  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.25);
  
  --neon-green: #10b981;
  --neon-green-glow: rgba(16, 185, 129, 0.2);
  
  --neon-red: #ef4444;
  --neon-red-glow: rgba(239, 68, 68, 0.2);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Layout */
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Scrollbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--bg-obsidian);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Ambient Background Glows */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}
.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--neon-cyan-glow) 0%, transparent 70%);
  top: -10%;
  left: 10%;
}
.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--neon-purple-glow) 0%, transparent 70%);
  bottom: 10%;
  right: -10%;
}
.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--neon-green-glow) 0%, transparent 70%);
  top: 40%;
  left: 60%;
}

/* Shared Premium Layout Styles */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.glass-inner-panel {
  background: var(--bg-inner-panel);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-sm);
}

/* Navigation Header */
.app-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(5, 5, 7, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.logo-symbol {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-subtitle {
  font-size: 10px;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 2px;
}

/* Live Ticker Bar */
.live-ticker-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-label {
  color: var(--text-muted);
  font-weight: 500;
}
.ticker-value {
  font-family: monospace;
  font-weight: 600;
  color: var(--text-primary);
}
.ticker-change {
  font-weight: 700;
}
.ticker-change.positive, .positive {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}
.ticker-change.negative, .negative {
  color: var(--neon-red);
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* CA Badge */
.ca-badge-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ca-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}
.ca-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 4px 10px;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.ca-box:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
}
.ca-address {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-secondary);
}
.ca-copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}
.ca-box:hover .ca-copy-btn {
  color: var(--neon-cyan);
}
.icon-svg {
  width: 14px;
  height: 14px;
}

/* Nav Menu Tabs */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-tab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}
.nav-tab-btn.active {
  color: var(--neon-cyan);
  background: rgba(6, 182, 212, 0.06);
  border-color: var(--border-glass-active);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1) inset;
}
.tab-icon {
  width: 16px;
  height: 16px;
}

/* Connect Wallet Button */
.wallet-control {
  position: relative;
}
.wallet-btn {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  border: none;
  border-radius: var(--border-radius-sm);
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  transition: all var(--transition-fast);
}
.wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}
.wallet-btn:active {
  transform: translateY(0);
}
.wallet-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Modals & Popups */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  width: 100%;
  max-width: 440px;
  border-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.modal-close:hover {
  color: var(--text-primary);
}
.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wallet-option {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 16px;
}
.wallet-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
  transform: translateX(4px);
}
.wallet-option img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.wallet-option span {
  font-weight: 600;
  font-size: 15px;
  flex-grow: 1;
}
.wallet-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.wallet-badge.popular {
  background: rgba(168, 85, 247, 0.15);
  color: var(--neon-purple);
  border: 1px solid var(--neon-purple);
}
.wallet-badge.free {
  background: rgba(6, 182, 212, 0.15);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(8px);
  border-left: 4px solid var(--neon-cyan);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-in 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  max-width: 380px;
}
.toast.success {
  border-left-color: var(--neon-green);
}
.toast.error {
  border-left-color: var(--neon-red);
}
@keyframes slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Main Content Area */
.app-main-content {
  flex-grow: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 24px;
}

/* Tab Panels Switching */
.tab-panel {
  display: none;
  animation: fade-in 0.35s ease-out forwards;
}
.tab-panel.active-panel {
  display: block;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   1. Dashboard View
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.col-span-2 {
  grid-column: span 2;
}
.col-span-3 {
  grid-column: span 3;
}

/* Welcome Hero Card */
.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.08) 0%, var(--bg-card) 50%);
}
.hero-content {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}
.badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.neon-orchid-border {
  border: 1px solid var(--neon-purple);
  color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.05);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}
.hero-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* Button UI */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.btn-primary {
  background: var(--neon-cyan);
  border: none;
  color: #000;
}
.btn-primary:hover {
  background: #22d3ee;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.45);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-block {
  width: 100%;
}
.btn-icon {
  width: 16px;
  height: 16px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Orb Animation */
.hero-visual {
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.token-orb {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 54px;
  color: white;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}
.orb-inner {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spin-ring 10s linear infinite;
}
.orb-ring-1 {
  width: 160px;
  height: 160px;
  border-top-color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  opacity: 0.5;
}
.orb-ring-2 {
  width: 210px;
  height: 210px;
  border-left-color: var(--neon-purple);
  border-right-color: var(--neon-purple);
  animation-duration: 15s;
  animation-direction: reverse;
  opacity: 0.3;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Quick Stat Cards */
.stat-card {
  padding: 24px;
}
.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.stat-title {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.stat-icon {
  width: 20px;
  height: 20px;
}
.stat-icon.cyan { color: var(--neon-cyan); }
.stat-icon.purple { color: var(--neon-purple); }
.stat-icon.green { color: var(--neon-green); }
.stat-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.stat-footer {
  font-size: 12px;
  font-weight: 600;
}
.text-muted {
  color: var(--text-muted);
}

/* Content Tab Card */
.content-card {
  display: flex;
  flex-direction: column;
}
.card-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
}
.card-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 24px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}
.card-tab:hover {
  color: var(--text-primary);
}
.card-tab.active {
  color: var(--neon-cyan);
}
.card-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}
.card-tabs-body {
  padding: 24px;
  flex-grow: 1;
}
.card-content-panel {
  display: none;
  animation: fade-in 0.3s ease-out forwards;
}
.card-content-panel.active-panel {
  display: block;
}
.panel-heading {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.panel-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.bullet-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.hl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.bg-cyan { background-color: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.bg-purple { background-color: var(--neon-purple); box-shadow: 0 0 8px var(--neon-purple); }
.bg-green { background-color: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }

/* Tokenomics Grid */
.tokenomics-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  align-items: center;
}
.tokenomics-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.donut-chart {
  width: 130px;
  height: 130px;
  transform: rotate(-90deg);
}
.chart-segment-1, .chart-segment-2, .chart-segment-3 {
  transition: stroke-width var(--transition-fast);
  cursor: pointer;
}
.chart-segment-1:hover, .chart-segment-2:hover, .chart-segment-3:hover {
  stroke-width: 15;
}
.chart-center-text {
  fill: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  transform: rotate(90deg);
  transform-origin: center;
}
.tokenomics-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.details-heading {
  font-size: 15px;
  font-weight: 700;
}
.details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.details-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-top: 2px;
  flex-shrink: 0;
}
.tax-info-box {
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-glass);
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Roadmap timeline */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-step {
  display: flex;
  gap: 16px;
  position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12px;
  bottom: -24px;
  width: 2px;
  background-color: var(--border-glass);
}
.timeline-step:last-child::before {
  display: none;
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-inner-panel);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 2;
}
.timeline-step.completed .step-num {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--neon-green);
  color: var(--neon-green);
}
.timeline-step.active-step .step-num {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
.step-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step-title {
  font-size: 14px;
  font-weight: 700;
}
.step-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Live Activity Stream */
.feed-card {
  display: flex;
  flex-direction: column;
  max-height: 480px;
}
.feed-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.green-pulse {
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: glow-anim 1.5s infinite;
}
@keyframes glow-anim {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}
.feed-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
}
.feed-badge {
  font-size: 11px;
  font-weight: 600;
}
.feed-log {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: monospace;
  font-size: 12px;
}
.feed-item {
  padding: 10px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: feed-slide 0.3s ease-out forwards;
}
@keyframes feed-slide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
.feed-item-desc {
  color: var(--text-secondary);
}
.tx-buy { color: var(--neon-green); }
.tx-sell { color: var(--neon-red); }
.feed-placeholder {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
}

/* ==========================================================================
   2. Swap Portal
   ========================================================================== */
.swap-container {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 40px auto;
  align-items: start;
}
.swap-widget {
  padding: 24px;
}
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.widget-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}
.settings-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.settings-btn:hover {
  color: var(--text-primary);
}

/* Slippage dropdown */
.slippage-card {
  padding: 14px;
  background: var(--bg-inner-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
  animation: slide-down 0.25s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hidden-element {
  display: none !important;
}
.slippage-title {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.slippage-options {
  display: flex;
  gap: 8px;
}
.slip-btn {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.slip-btn:hover {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.slip-btn.active {
  background: var(--neon-cyan-glow);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
.custom-slip-input {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 0 8px;
  width: 80px;
}
.custom-slip-input input {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.custom-slip-input span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}
.slippage-warning {
  margin-top: 8px;
  font-size: 11px;
  color: var(--neon-red);
}

/* Swap Input Boxes */
.token-input-box {
  background: var(--bg-inner-panel);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  padding: 16px;
}
.input-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}
.input-header label {
  color: var(--text-secondary);
  font-weight: 500;
}
.wallet-balance {
  color: var(--text-muted);
}
.input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.swap-input {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: white;
  width: 100%;
  flex-grow: 1;
}
.token-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 6px 14px 6px 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.token-selector span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}
.shortcut-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pct-btn {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  color: var(--text-secondary);
  padding: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pct-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* Invert Swap Row */
.invert-row {
  display: flex;
  justify-content: center;
  margin: -10px 0;
  position: relative;
  z-index: 5;
}
.invert-btn {
  width: 32px;
  height: 32px;
  background: #181824;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.invert-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
  transform: rotate(180deg);
}

/* Trade details */
.trade-details-box {
  margin-top: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.detail-label {
  color: var(--text-muted);
}
.detail-value {
  color: var(--text-secondary);
  font-weight: 600;
}
.detail-value.text-green {
  color: var(--neon-green);
}
.routing-row {
  border-top: 1px dashed var(--border-glass);
  padding-top: 8px;
  margin-top: 4px;
}

.swap-action-btn {
  margin-top: 20px;
  padding: 14px;
  font-size: 16px;
}

/* Swap Sidebar */
.trading-tips-card {
  padding: 24px;
}
.trading-tips-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tips-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   3. Charts Tab & Trading Terminal
   ========================================================================== */
.charts-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.chart-container-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.chart-controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
  margin-bottom: 16px;
  gap: 10px;
}
.token-name-badge {
  display: flex;
  flex-direction: column;
}
.token-name-large {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}
.timeframe-label {
  font-size: 11px;
}
.candle-info-bar {
  display: flex;
  gap: 12px;
  font-family: monospace;
  font-size: 12px;
}
.c-info-item {
  display: flex;
  gap: 4px;
}
.c-lbl {
  color: var(--text-muted);
}
.c-val {
  font-weight: 600;
}
.c-val.text-green { color: var(--neon-green); }
.c-val.text-red { color: var(--neon-red); }

/* Timeframe Toggles */
.timeframe-toggles {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 2px;
}
.tf-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tf-btn:hover {
  color: var(--text-primary);
}
.tf-btn.active {
  background: var(--neon-cyan);
  color: #000;
}

/* Canvas wrapping */
.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
}
#trading-chart {
  display: block;
  width: 100%;
  height: 100%;
}
.chart-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(6, 182, 212, 0.1);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Controls Footer */
.chart-controls-footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.indicator-toggles {
  display: flex;
  gap: 20px;
}
.toggle-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-secondary);
}
.toggle-checkbox input {
  display: none;
}
.checkbox-custom {
  width: 12px;
  height: 12px;
  border: 1px solid var(--text-muted);
  border-radius: 3px;
  display: inline-block;
  position: relative;
  transition: all var(--transition-fast);
}
.toggle-checkbox input:checked + .checkbox-custom {
  border-color: transparent;
}
.toggle-checkbox input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
}
.checkbox-custom.bg-cyan { border-color: var(--neon-cyan); }
.checkbox-custom.bg-purple { border-color: var(--neon-purple); }
.checkbox-custom.bg-green { border-color: var(--neon-green); }

.toggle-checkbox input:checked + .checkbox-custom.bg-cyan::after { background: var(--neon-cyan); }
.toggle-checkbox input:checked + .checkbox-custom.bg-purple::after { background: var(--neon-purple); }
.toggle-checkbox input:checked + .checkbox-custom.bg-green::after { background: var(--neon-green); }

.chart-info-links {
  font-size: 13px;
}
.external-link {
  color: var(--neon-cyan);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.external-link:hover {
  color: #22d3ee;
}
.link-icon {
  width: 14px;
  height: 14px;
}

/* Charts sidebar quick trade */
.charts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quick-trade-panel {
  padding: 20px;
}
.quick-trade-panel h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.quick-input-group {
  display: flex;
  flex-direction: column;
  background: var(--bg-inner-panel);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  gap: 8px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.balance-text {
  color: var(--text-muted);
}
.input-row-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.input-row-minimal input {
  background: none;
  border: none;
  color: white;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  width: 100%;
}
.max-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--neon-cyan);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.max-btn:hover {
  background: var(--neon-cyan-glow);
}
.quick-exchange-preview {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 12px 0;
}
.quick-exchange-preview strong {
  color: var(--neon-cyan);
}

/* Health Metrics */
.health-metrics-card {
  padding: 20px;
}
.health-metrics-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.m-lbl {
  color: var(--text-muted);
}
.m-val {
  font-weight: 600;
}
.m-val.text-green { color: var(--neon-green); }
.m-val.text-cyan { color: var(--neon-cyan); }

/* ==========================================================================
   4. Portfolio Tab
   ========================================================================== */
.portfolio-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.portfolio-summary-row {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
}

/* Portfolio summary card */
.portfolio-hero-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.06) 0%, var(--bg-card) 60%);
}
.ph-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}
.ph-balance {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}
.ph-substats {
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
  display: flex;
  gap: 30px;
  font-size: 13px;
}
.substat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.substat-item .lbl {
  color: var(--text-muted);
  font-weight: 500;
}
.substat-item .val {
  font-weight: 600;
}

/* Allocation pie breakdown */
.portfolio-allocation-card {
  padding: 24px;
}
.portfolio-allocation-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.allocations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.allocation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-sm);
}
.lbl-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.alloc-symbol {
  font-weight: 700;
  font-size: 14px;
}
.val-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.alloc-amt {
  font-weight: 600;
  font-size: 14px;
}
.alloc-usd {
  font-size: 11px;
  color: var(--text-muted);
}

/* Transactions Table */
.portfolio-history-card {
  padding: 24px;
}
.ph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.ph-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.history-table th {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 12px 16px;
  font-weight: 600;
}
.history-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  color: var(--text-secondary);
}
.history-table tbody tr:last-child td {
  border-bottom: none;
}
.empty-table-text {
  text-align: center;
  color: var(--text-muted);
  padding: 40px !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-glass);
  padding: 20px 0;
  margin-top: auto;
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.footer-link-item:hover {
  color: var(--neon-cyan);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .col-span-3, .col-span-2 {
    grid-column: span 1;
  }
  .swap-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .charts-layout {
    grid-template-columns: 1fr;
  }
  .portfolio-summary-row {
    grid-template-columns: 1fr;
  }
  .live-ticker-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }
  .nav-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    padding: 10px 16px;
    justify-content: space-around;
    z-index: 100;
  }
  .app-main-content {
    padding-bottom: 80px;
  }
  .hero-card {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .badge {
    align-self: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .ca-badge-container {
    display: none;
  }
}

/* ==========================================================================
   GameZone (Play & Burn) Styles
   ========================================================================== */
.game-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-stats {
  display: flex;
  gap: 10px;
}

.game-overlay {
  z-index: 10;
  backdrop-filter: blur(5px);
}

.leaderboard-list li {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
