/**
 * ASDF Ecosystem Shell
 * Unified navigation, theme system, and View Transitions
 * Shared across: Burns, Forecast, HolDex, Staking, Ignition
 */

/* ============================================
   FONTS — Console Terminal
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

/* ============================================
   LOADING STATES - Shared skeletons & spinners
   ============================================ */
@import url('./loading-states.css');

/* ============================================
   VIEW TRANSITIONS (Cross-document MPA)
   ============================================ */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: eco-slide-out 300ms var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1)) both;
}

::view-transition-new(root) {
  animation: eco-slide-in 300ms var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1)) both;
}

/* Direction-aware slides — set by JS via class on html */
html[data-eco-dir='left'] ::view-transition-old(root) {
  animation-name: eco-slide-out-left;
}
html[data-eco-dir='left'] ::view-transition-new(root) {
  animation-name: eco-slide-in-left;
}
html[data-eco-dir='right'] ::view-transition-old(root) {
  animation-name: eco-slide-out-right;
}
html[data-eco-dir='right'] ::view-transition-new(root) {
  animation-name: eco-slide-in-right;
}

@keyframes eco-slide-out-left {
  to {
    opacity: 0;
    transform: translateX(-8%);
  }
}
@keyframes eco-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(8%);
  }
}
@keyframes eco-slide-out-right {
  to {
    opacity: 0;
    transform: translateX(8%);
  }
}
@keyframes eco-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(-8%);
  }
}

/* Fallback entrance for browsers without View Transitions */
@keyframes eco-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   THEME VARIABLES
   ============================================ */
:root {
  /* Default ecosystem shell colors (overridden by themes) */
  --eco-accent: #ea580c;
  --eco-accent-glow: rgba(234, 88, 12, 0.35);
  --eco-accent-soft: rgba(234, 88, 12, 0.12);
  --eco-bg: #020812;
  --eco-nav-bg: rgba(2, 8, 18, 0.82);
  --eco-nav-border: rgba(255, 255, 255, 0.06);
  --eco-nav-height: 56px;
}

/* --- Ember (Burns) --- */
[data-theme='ember'] {
  --eco-accent: #c9a227;
  --eco-accent-glow: rgba(201, 162, 39, 0.35);
  --eco-accent-soft: rgba(201, 162, 39, 0.1);
  --eco-bg: #000000;
  --eco-nav-bg: rgba(0, 0, 0, 0.82);
  --eco-nav-border: rgba(201, 162, 39, 0.12);
}

/* --- Matrix (Forecast) --- */
[data-theme='matrix'] {
  --eco-accent: #00ff41;
  --eco-accent-glow: rgba(0, 255, 65, 0.3);
  --eco-accent-soft: rgba(0, 255, 65, 0.08);
  --eco-bg: #000000;
  --eco-nav-bg: rgba(0, 0, 0, 0.85);
  --eco-nav-border: rgba(0, 255, 65, 0.1);
}

/* --- HolDex --- */
[data-theme='holdex'] {
  --eco-accent: #4ade80;
  --eco-accent-glow: rgba(74, 222, 128, 0.3);
  --eco-accent-soft: rgba(74, 222, 128, 0.08);
  --eco-bg: #0a0a0f;
  --eco-nav-bg: rgba(10, 10, 15, 0.85);
  --eco-nav-border: rgba(74, 222, 128, 0.1);
}

/* --- Delegate (Staking) --- */
[data-theme='delegate'] {
  --eco-accent: #7b93ff;
  --eco-accent-glow: rgba(123, 147, 255, 0.3);
  --eco-accent-soft: rgba(123, 147, 255, 0.08);
  --eco-bg: #06080f;
  --eco-nav-bg: rgba(6, 8, 15, 0.85);
  --eco-nav-border: rgba(123, 147, 255, 0.1);
}

/* --- Arcade (Ignition/Games) --- */
[data-theme='arcade'] {
  --eco-accent: #ea580c;
  --eco-accent-glow: rgba(234, 88, 12, 0.35);
  --eco-accent-soft: rgba(234, 88, 12, 0.1);
  --eco-bg: #020812;
  --eco-nav-bg: rgba(2, 8, 18, 0.82);
  --eco-nav-border: rgba(234, 88, 12, 0.1);
}

/* --- Console (Terminal/CRT Retro) --- */
[data-theme='console'] {
  --eco-accent: #00ff00;
  --eco-accent-glow: rgba(0, 255, 0, 0.4);
  --eco-accent-soft: rgba(0, 255, 0, 0.08);
  --eco-bg: #1d2617;
  --eco-nav-bg: rgba(29, 38, 23, 0.9);
  --eco-nav-border: rgba(0, 255, 0, 0.15);

  /* Console-specific */
  --console-text: #00ff00;
  --console-text-dim: rgba(0, 255, 0, 0.6);
  --console-prompt: #ea4e33;
  --console-bg-dark: #151a13;
}

/* Console typography */
[data-theme='console'] body,
[data-theme='console'] .eco-nav,
[data-theme='console'] .eco-drawer {
  font-family: 'VT323', 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* Console CRT scanlines overlay */
[data-theme='console']::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
  z-index: 9998;
  opacity: 0.3;
}

/* Console screen glow/vignette */
[data-theme='console']::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 9997;
}

/* Console text glow */
[data-theme='console'] * {
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Disable glow on icons/special elements */
[data-theme='console'] .eco-nav-logo-mark,
[data-theme='console'] .eco-style-icon {
  text-shadow: none;
}

/* Console nav styling */
[data-theme='console'] .eco-nav {
  border-bottom-color: rgba(0, 255, 0, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}

[data-theme='console'] .eco-nav-link {
  color: var(--console-text-dim);
}

[data-theme='console'] .eco-nav-link:hover,
[data-theme='console'] .eco-nav-link.active {
  color: var(--console-text);
}

[data-theme='console'] .eco-nav-pill {
  background: rgba(0, 255, 0, 0.12);
  border-color: rgba(0, 255, 0, 0.2);
}

/* ============================================
   UNIFIED NAVIGATION
   ============================================ */
.eco-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--eco-nav-height);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--eco-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--eco-nav-border);
  transition:
    background 300ms ease,
    border-color 300ms ease;
}

.eco-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.eco-nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--eco-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  transition: background 300ms ease;
}

/* Center links container */
.eco-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.eco-nav-link {
  position: relative;
  padding: 8px 16px;
  font-family:
    'Inter',
    -apple-system,
    sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 200ms ease,
    background 200ms ease;
  white-space: nowrap;
  z-index: 1;
}

.eco-nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.eco-nav-link.active {
  color: #fff;
}

/* Sliding pill indicator */
.eco-nav-pill {
  position: absolute;
  height: calc(100% - 8px);
  top: 4px;
  border-radius: 8px;
  background: var(--eco-accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    left 300ms cubic-bezier(0.4, 0, 0.2, 1),
    width 300ms cubic-bezier(0.4, 0, 0.2, 1),
    background 300ms ease;
  pointer-events: none;
  z-index: 0;
}

/* Right side */
.eco-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.eco-nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 16px;
  transition:
    color 200ms ease,
    background 200ms ease;
}

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

/* ============================================
   STYLE DRAWER BUTTON
   ============================================ */
.eco-style-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0 10px 10px 0;
  background: var(--eco-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--eco-nav-border);
  border-left: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 200ms ease,
    background 200ms ease,
    transform 200ms ease;
}

.eco-style-btn:hover {
  color: var(--eco-accent);
  background: rgba(255, 255, 255, 0.05);
}

.eco-style-btn .eco-style-icon {
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eco-style-btn:hover .eco-style-icon {
  transform: rotate(30deg);
}

/* Hide button when drawer is open */
.eco-drawer-open .eco-style-btn {
  transform: translateY(-50%) translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   THEME DRAWER
   ============================================ */
.eco-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.eco-drawer-open .eco-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.eco-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  z-index: 860;
  background: var(--eco-nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--eco-nav-border);
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.eco-drawer-open .eco-drawer {
  transform: translateX(0);
}

.eco-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--eco-nav-border);
}

.eco-drawer-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.eco-drawer-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.eco-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.eco-drawer-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================
   TOOL DRAWER — Global Theme Toggle
   ============================================ */
.eco-theme-toggle {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 16px;
}

.eco-theme-toggle-btn {
  flex: 1;
  padding: 6px 0;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.eco-theme-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.eco-theme-toggle-btn.active {
  background: var(--eco-accent-soft);
  color: #fff;
}

/* ============================================
   FLOATING PAGE PREVIEW PANEL
   Appears right of the drawer (left: 280px) on tool card hover
   ============================================ */

.eco-page-preview {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  bottom: 0;
  z-index: 859; /* Just below drawer (860) */
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
  background: var(--eco-nav-bg, rgba(5, 5, 8, 0.95));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.eco-page-preview.visible {
  opacity: 1;
  transform: translateX(0);
}

.eco-page-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============================================
   TOOL DRAWER — Section titles
   ============================================ */
.eco-drawer-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0 10px;
}

/* ============================================
   TOOL DRAWER — Tool cards (accordion)
   ============================================ */
.eco-tools-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eco-tool-card {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.eco-tool-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.eco-tool-card.current {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
}

.eco-tool-card.expanded {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

/* — Header row (always visible) */
.eco-tool-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.eco-tool-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.eco-tool-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.eco-tool-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex: 1;
  min-width: 0;
}

.eco-tool-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.eco-tool-chevron {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.eco-tool-card.expanded .eco-tool-chevron {
  transform: rotate(180deg);
}

/* — Expandable content (hidden by default) */
.eco-tool-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 12px;
}

.eco-tool-card.expanded .eco-tool-expand {
  max-height: 260px;
  padding: 0 12px 12px;
}

.eco-expand-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 8px 0 6px;
}

.eco-expand-label:first-child {
  margin-top: 0;
}

/* — Density picker (3 pills) */
.eco-density-picker {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 3px;
}

.eco-density-option {
  flex: 1;
  padding: 5px 0;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.eco-density-option:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.eco-density-option.active {
  background: var(--eco-accent-soft);
  color: #fff;
}

/* — Color picker (3 swatches) */
.eco-color-picker {
  display: flex;
  gap: 8px;
}

.eco-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
  padding: 0;
}

.eco-color-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.eco-color-swatch:hover {
  transform: scale(1.1);
}

.eco-color-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* — Actions (go / stay) */
.eco-tool-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.eco-tool-go {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 0;
  border-radius: 8px;
  background: var(--eco-accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}

.eco-tool-go:hover {
  background: var(--eco-accent-glow);
  border-color: var(--eco-accent);
}

.eco-tool-stay {
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.eco-tool-stay:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ============================================
   TOOL DRAWER — Universe section
   ============================================ */
.eco-universe-title {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--eco-nav-border);
}

.eco-universe-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eco-universe-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: background 150ms ease;
}

.eco-universe-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.eco-universe-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.eco-universe-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.eco-universe-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.eco-universe-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.eco-universe-arrow {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: color 150ms ease;
}

.eco-universe-link:hover .eco-universe-arrow {
  color: var(--eco-accent);
}

/* ============================================
   VARIANT SWATCH COLORS (used in drawer color picker)
   ============================================ */
/* Burns */
.eco-variant-swatch--gold {
  background: linear-gradient(135deg, #000 30%, #c9a227);
}
.eco-variant-swatch--inferno {
  background: linear-gradient(135deg, #0a0000 30%, #dc2626);
}
.eco-variant-swatch--ash {
  background: linear-gradient(135deg, #0f172a 30%, #94a3b8);
}

/* Forecast */
.eco-variant-swatch--matrix {
  background: linear-gradient(135deg, #000 30%, #00ff41);
}
.eco-variant-swatch--bloomberg {
  background: linear-gradient(135deg, #000 30%, #3b82f6);
}
.eco-variant-swatch--synthwave {
  background: linear-gradient(135deg, #0a000f 30%, #f472b6);
}

/* HolDex */
.eco-variant-swatch--emerald {
  background: linear-gradient(135deg, #0a0a0f 30%, #4ade80);
}
.eco-variant-swatch--crystal {
  background: linear-gradient(135deg, #0a0a0f 30%, #38bdf8);
}
.eco-variant-swatch--vintage {
  background: linear-gradient(135deg, #0a0a0f 30%, #f59e0b);
}

/* Staking */
.eco-variant-swatch--cosmos {
  background: linear-gradient(135deg, #06080f 30%, #7b93ff);
}
.eco-variant-swatch--vault {
  background: linear-gradient(135deg, #06080f 30%, #eab308);
}
.eco-variant-swatch--aurora {
  background: linear-gradient(135deg, #06080f 30%, #2dd4bf);
}

/* Ignition */
.eco-variant-swatch--ember-ig {
  background: linear-gradient(135deg, #020812 30%, #ea580c);
}
.eco-variant-swatch--neon {
  background: linear-gradient(135deg, #020812 30%, #e879f9);
}
.eco-variant-swatch--pixel {
  background: linear-gradient(135deg, #020812 30%, #22c55e);
}

/* ============================================
   PAGE BODY OFFSET (for fixed nav)
   ============================================ */
.eco-page {
  padding-top: var(--eco-nav-height);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .eco-nav {
    padding: 0 12px;
  }

  .eco-nav-logo span {
    display: none;
  }

  .eco-nav-links {
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 65vw;
    padding: 3px;
  }

  .eco-nav-links::-webkit-scrollbar {
    display: none;
  }

  .eco-nav-link {
    padding: 7px 12px;
    font-size: 12px;
  }

  .eco-drawer {
    width: 260px;
  }

  .eco-style-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .eco-tool-header {
    padding: 12px;
  }

  .eco-color-swatch {
    width: 32px;
    height: 32px;
  }

  .eco-universe-link {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .eco-nav-link {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ============================================
   PAGE-ADAPTED NAVIGATION
   ============================================ */

/* --- Burns nav --- */
.eco-nav--burns {
  border-bottom-color: rgba(201, 162, 39, 0.15);
}
.eco-nav--burns .eco-nav-logo-mark {
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.25);
}

/* Burns variant 2: Inferno */
[data-variant='2'] .eco-nav--burns {
  border-bottom-color: rgba(220, 38, 38, 0.18);
}
[data-variant='2'] .eco-nav--burns .eco-nav-logo-mark {
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.3);
}

/* Burns variant 3: Ash */
[data-variant='3'] .eco-nav--burns {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}
[data-variant='3'] .eco-nav--burns .eco-nav-logo-mark {
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.2);
}

/* --- Forecast nav --- */
.eco-nav--forecast {
  border-bottom-color: rgba(0, 255, 65, 0.12);
}
.eco-nav--forecast .eco-nav-logo-mark {
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

/* Forecast variant 2: Bloomberg */
[data-variant='2'] .eco-nav--forecast {
  border-bottom-color: rgba(59, 130, 246, 0.15);
}
[data-variant='2'] .eco-nav--forecast .eco-nav-logo-mark {
  text-shadow: none;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Forecast variant 3: Synthwave */
[data-variant='3'] .eco-nav--forecast {
  border-bottom-color: rgba(244, 114, 182, 0.15);
}
[data-variant='3'] .eco-nav--forecast .eco-nav-logo-mark {
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.3);
}

/* --- HolDex nav --- */
.eco-nav--holdex {
  border-bottom: 2px solid rgba(74, 222, 128, 0.15);
}
.eco-nav--holdex .eco-nav-logo-mark {
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

/* HolDex variant 2: Crystal */
[data-variant='2'] .eco-nav--holdex {
  border-bottom-color: rgba(56, 189, 248, 0.15);
}
[data-variant='2'] .eco-nav--holdex .eco-nav-logo-mark {
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* HolDex variant 3: Vintage */
[data-variant='3'] .eco-nav--holdex {
  border-bottom-color: rgba(245, 158, 11, 0.15);
}
[data-variant='3'] .eco-nav--holdex .eco-nav-logo-mark {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* --- Staking nav --- */
.eco-nav--staking {
  border-bottom-color: rgba(123, 147, 255, 0.12);
}
.eco-nav--staking .eco-nav-logo-mark {
  box-shadow: 0 0 12px rgba(123, 147, 255, 0.2);
}

/* Staking variant 2: Vault */
[data-variant='2'] .eco-nav--staking {
  border-bottom-color: rgba(100, 116, 139, 0.15);
}
[data-variant='2'] .eco-nav--staking .eco-nav-logo-mark {
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}

/* Staking variant 3: Aurora */
[data-variant='3'] .eco-nav--staking {
  border-bottom-color: rgba(45, 212, 191, 0.12);
}
[data-variant='3'] .eco-nav--staking .eco-nav-logo-mark {
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.25);
}

/* --- Ignition nav --- */
.eco-nav--ignition {
  border-bottom-color: rgba(234, 88, 12, 0.12);
}
.eco-nav--ignition .eco-nav-logo-mark {
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.25);
}

/* Ignition variant 2: Neon */
[data-variant='2'] .eco-nav--ignition {
  border-bottom-color: rgba(232, 121, 249, 0.15);
}
[data-variant='2'] .eco-nav--ignition .eco-nav-logo-mark {
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.3);
}

/* Ignition variant 3: Pixel */
[data-variant='3'] .eco-nav--ignition {
  border-bottom-color: rgba(34, 197, 94, 0.12);
}
[data-variant='3'] .eco-nav--ignition .eco-nav-logo-mark {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .eco-nav-pill {
    transition: none;
  }
  .eco-drawer {
    transition: none;
  }
  .eco-drawer-backdrop {
    transition: none;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
