/* NEAITECH — Area Borsa · Command Center */
:root,
[data-theme="dark"] {
  --void: #0a0e14;
  --surface: #121a24;
  --surface2: #1a2432;
  --surface3: #0f151e;
  --text: #c8d4e0;
  --heading: #e8eef4;
  --muted: #6b7d8f;
  --ink-subtle: #8a9aad;
  --emerald: #00c853;
  --emerald-soft: rgba(0, 200, 83, 0.12);
  --emerald-glow: rgba(0, 200, 83, 0.22);
  --gold: #ffb300;
  --gold-soft: rgba(255, 179, 0, 0.12);
  --red: #ff5252;
  --red-soft: rgba(255, 82, 82, 0.14);
  --blue: #4fc3f7;
  --border: rgba(80, 110, 140, 0.22);
  --border-strong: rgba(100, 130, 160, 0.35);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-deep: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.5);
  --shine: rgba(255, 255, 255, 0.04);
  --on-accent: #0a0e14;
  --on-primary: #0a0e14;
  --glass-blur: 10px;
  --glass-saturate: 1.1;
  --glass-bg: rgba(18, 26, 36, 0.88);
  --glass-bg-strong: rgba(14, 20, 30, 0.94);
  --glass-bg-soft: rgba(22, 32, 44, 0.72);
  --glass-border: rgba(70, 95, 125, 0.28);
  --glass-edge: rgba(120, 150, 180, 0.12);
  --glass-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--glass-edge);
  --glass-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  --body-bg:
    linear-gradient(180deg, rgba(0, 200, 83, 0.03) 0%, transparent 12%),
    linear-gradient(0deg, rgba(255, 82, 82, 0.02) 0%, transparent 10%),
    linear-gradient(165deg, #0a0e14 0%, #0d1219 45%, #121a24 100%);
  --card-bg: var(--glass-bg);
  --header-bg: rgba(10, 14, 20, 0.92);
  --theme-strip-bg: rgba(8, 12, 18, 0.95);
  --ticker-bg: linear-gradient(90deg, rgba(0, 200, 83, 0.06) 0%, transparent 28%, transparent 72%, rgba(255, 82, 82, 0.05) 100%), #0d1219;
  --ticker-chip-bg: rgba(14, 20, 30, 0.85);
  --ticker-chip-border: rgba(70, 95, 125, 0.35);
  --ticker-shimmer: rgba(0, 200, 83, 0.04);
  --tooltip-bg: rgba(18, 26, 36, 0.95);
  --btn-primary-bg: linear-gradient(180deg, #00e676, #00c853);
  --btn-primary-shadow: 0 2px 10px rgba(0, 200, 83, 0.25);
  --btn-secondary-bg: var(--glass-bg-soft);
  --input-bg: rgba(10, 14, 20, 0.75);
  --surface-inset: rgba(8, 12, 18, 0.65);
  --vignette-a: rgba(79, 195, 247, 0.06);
  --vignette-b: rgba(0, 200, 83, 0.05);
  --accent-burst: #ffb300;
  --accent-drop: #4fc3f7;
  --accent-up-neon: #00e676;
  --accent-dn-neon: #ff5252;
  --font: "Inter", system-ui, sans-serif;
  --display: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --text-base: 18px;
  --text-sm: 17px;
  --text-lg: 19px;
  --ticker-h: 44px;
  --theme-h: 0px;
  --header-h: 68px;
  --chrome-h: calc(var(--theme-h) + var(--header-h) + var(--ticker-h) + var(--journey-h, 0px));
  --nav-offset: var(--chrome-h);
  --radius: 14px;
  --max: 1280px;
}

[data-theme="light"] {
  --void: #f0ece6;
  --surface: #fdfcfa;
  --surface2: #f7f4ef;
  --surface3: #ebe6de;
  --text: #1c242e;
  --heading: #121820;
  --muted: #5c6672;
  --ink-subtle: #7a8490;
  --emerald: #1d6b56;
  --emerald-soft: rgba(29, 107, 86, 0.09);
  --emerald-glow: rgba(29, 107, 86, 0.16);
  --gold: #b56a28;
  --gold-soft: rgba(181, 106, 40, 0.09);
  --red: #c43c3c;
  --red-soft: rgba(196, 60, 60, 0.08);
  --blue: #3d5a80;
  --border: rgba(28, 36, 46, 0.1);
  --border-strong: rgba(28, 36, 46, 0.18);
  --shadow: 0 1px 2px rgba(28, 36, 46, 0.04), 0 6px 20px rgba(28, 36, 46, 0.06);
  --shadow-deep: 0 2px 4px rgba(28, 36, 46, 0.05), 0 14px 36px rgba(28, 36, 46, 0.08);
  --shine: rgba(255, 255, 255, 0.95);
  --on-accent: #ffffff;
  --on-primary: #ffffff;
  --glass-blur: 0px;
  --glass-saturate: 1;
  --glass-bg: #fdfcfa;
  --glass-bg-strong: #ffffff;
  --glass-bg-soft: #f7f4ef;
  --glass-border: rgba(28, 36, 46, 0.09);
  --glass-edge: rgba(255, 255, 255, 1);
  --glass-shadow: 0 1px 0 #fff, 0 2px 4px rgba(28, 36, 46, 0.04), 0 8px 24px rgba(28, 36, 46, 0.06);
  --glass-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 38%);
  --body-bg: #f0ece6;
  --card-bg: var(--glass-bg);
  --header-bg: #fdfcfa;
  --theme-strip-bg: #fdfcfa;
  --ticker-bg: #ebe6de;
  --ticker-chip-bg: #f7f4ef;
  --ticker-chip-border: rgba(28, 36, 46, 0.12);
  --ticker-shimmer: rgba(29, 107, 86, 0.04);
  --tooltip-bg: #ffffff;
  --btn-primary-bg: linear-gradient(180deg, #227a62, #1d6b56);
  --btn-primary-shadow: 0 2px 10px rgba(29, 107, 86, 0.22);
  --btn-secondary-bg: var(--glass-bg-soft);
  --input-bg: #ffffff;
  --surface-inset: #f3efe8;
  --vignette-a: rgba(61, 90, 128, 0.03);
  --vignette-b: rgba(29, 107, 86, 0.03);
  --accent-burst: #b56a28;
  --accent-drop: #3d5a80;
  --accent-up-neon: #1d6b56;
  --accent-dn-neon: #c43c3c;
  --lumen-rule: linear-gradient(90deg, #b56a28, #1d6b56 55%, #3d5a80);
  --lumen-grid: rgba(28, 36, 46, 0.035);
}

[data-theme="rest"] {
  --void: transparent;
  --surface: rgba(28, 34, 62, 0.52);
  --surface2: rgba(32, 38, 68, 0.48);
  --surface3: rgba(22, 28, 52, 0.58);
  --text: #dce2f0;
  --heading: #f0f3fa;
  --muted: #9aa4be;
  --ink-subtle: #7d88a8;
  --emerald: #7ec8b8;
  --emerald-soft: rgba(126, 200, 184, 0.14);
  --emerald-glow: rgba(126, 200, 184, 0.24);
  --gold: #c9b896;
  --gold-soft: rgba(201, 184, 150, 0.12);
  --red: #e08a8a;
  --red-soft: rgba(224, 138, 138, 0.12);
  --blue: #8ab4f0;
  --border: rgba(140, 160, 210, 0.18);
  --border-strong: rgba(160, 180, 220, 0.28);
  --shadow: 0 12px 40px rgba(4, 8, 24, 0.45);
  --shadow-deep: 0 4px 16px rgba(4, 8, 24, 0.35), 0 20px 48px rgba(4, 8, 24, 0.5);
  --shine: rgba(200, 210, 240, 0.08);
  --on-accent: #0c1020;
  --on-primary: #0c1020;
  --glass-blur: 24px;
  --glass-saturate: 1.2;
  --glass-bg: rgba(28, 34, 62, 0.48);
  --glass-bg-strong: rgba(32, 40, 72, 0.62);
  --glass-bg-soft: rgba(24, 30, 56, 0.38);
  --glass-border: rgba(140, 160, 220, 0.2);
  --glass-edge: rgba(180, 195, 240, 0.14);
  --glass-shadow:
    0 12px 40px rgba(4, 8, 24, 0.4),
    inset 0 1px 0 var(--glass-edge);
  --glass-highlight: linear-gradient(145deg, rgba(180, 195, 240, 0.1) 0%, transparent 55%);
  --body-bg: transparent;
  --card-bg: var(--glass-bg);
  --header-bg: rgba(18, 22, 42, 0.55);
  --theme-strip-bg: rgba(14, 18, 36, 0.62);
  --ticker-bg: linear-gradient(90deg, rgba(126, 200, 184, 0.06) 0%, transparent 30%, transparent 70%, rgba(196, 160, 240, 0.05) 100%), rgba(20, 26, 48, 0.5);
  --ticker-chip-bg: rgba(28, 34, 62, 0.55);
  --ticker-chip-border: rgba(140, 160, 220, 0.22);
  --ticker-shimmer: rgba(180, 195, 240, 0.06);
  --tooltip-bg: rgba(32, 40, 72, 0.82);
  --btn-primary-bg: linear-gradient(145deg, #9ab8f0, #7a9ad8);
  --btn-primary-shadow: 0 4px 18px rgba(120, 150, 220, 0.28);
  --btn-secondary-bg: var(--glass-bg-soft);
  --input-bg: rgba(24, 30, 56, 0.55);
  --surface-inset: rgba(20, 26, 48, 0.45);
  --vignette-a: rgba(140, 120, 220, 0.08);
  --vignette-b: rgba(80, 160, 220, 0.06);
  --accent-burst: #c4a0f0;
  --accent-drop: #6ecfff;
  --accent-up-neon: #7ec8b8;
  --accent-dn-neon: #e08a8a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.35s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

#market-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.market-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 85% 8%, var(--vignette-a), transparent),
    radial-gradient(ellipse 50% 40% at 12% 92%, var(--vignette-b), transparent);
}

/* ── Vetro (glass) — card & pannelli ── */
.card-3d,
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.card-3d::before,
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-highlight);
  pointer-events: none;
}

.ticker-bar {
  position: fixed;
  top: calc(var(--theme-h) + var(--header-h));
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--ticker-h);
  background: var(--ticker-bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-shadow);
}
.ticker-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, var(--ticker-shimmer) 50%, transparent 60%);
  animation: ticker-shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

.ticker-bar.paused .ticker-track { animation-play-state: paused; }
.ticker-bar.paused .ticker-chip-mood { animation-play-state: paused; }

.ticker-track {
  display: flex;
  gap: 1rem;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 48s linear infinite;
  font-family: var(--mono);
  font-size: 0.72rem;
  width: max-content;
  padding: 0 0.5rem;
}

.ticker-loading { color: var(--muted); }

/* Chip ticker — icona + mood animato per mercato */
.ticker-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--ticker-chip-border);
  background: var(--ticker-chip-bg);
  color: var(--muted);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 2px 8px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  cursor: default;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.ticker-chip:hover {
  transform: translateY(-1px) scale(1.03);
  z-index: 2;
}
.ticker-chip-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.ticker-chip.is-up .ticker-chip-glow {
  opacity: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(93, 191, 160, 0.22), transparent 65%);
  animation: ticker-pulse-up 2.4s ease-in-out infinite;
}
.ticker-chip.is-dn .ticker-chip-glow {
  opacity: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(212, 137, 137, 0.18), transparent 65%);
  animation: ticker-pulse-dn 2.8s ease-in-out infinite;
}
.ticker-chip-icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.ticker-chip--crypto .ticker-chip-icon { animation: ticker-crypto-spin 6s linear infinite; }
.ticker-chip--gold .ticker-chip-icon { animation: ticker-gold-sparkle 2.5s ease-in-out infinite; }
.ticker-chip--forex .ticker-chip-icon { animation: ticker-forex-swap 3s ease-in-out infinite; }
.ticker-chip--tech .ticker-chip-icon { animation: ticker-tech-blink 4s steps(2) infinite; }
.ticker-chip--italy .ticker-chip-icon { animation: ticker-italy-wave 2.8s ease-in-out infinite; }

.ticker-chip-body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
}
.ticker-chip-name {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ticker-chip-quote {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
}
.ticker-chip-price {
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 500;
}
.ticker-chip-chg {
  font-size: 0.65rem;
  font-weight: 600;
}
.ticker-chip-chg.up { color: var(--emerald); }
.ticker-chip-chg.dn { color: var(--red); }

.ticker-chip-mood {
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  animation: ticker-mood-bob 2.2s ease-in-out infinite;
}
.ticker-chip.mood-rocket .ticker-chip-mood { animation: ticker-mood-rocket 1.1s ease-in-out infinite; }
.ticker-chip.mood-melt .ticker-chip-mood { animation: ticker-mood-melt 2.5s ease-in-out infinite; }
.ticker-chip.mood-nervous .ticker-chip-mood { animation: ticker-mood-nervous 0.45s ease-in-out infinite; }

.ticker-chip--crypto {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--ticker-chip-border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 10%, var(--ticker-chip-bg)), var(--ticker-chip-bg));
}
.ticker-chip--gold {
  border-color: color-mix(in srgb, var(--gold) 40%, var(--ticker-chip-border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, var(--ticker-chip-bg)), var(--ticker-chip-bg));
}
.ticker-chip--forex {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--ticker-chip-border));
}
.ticker-chip--tech {
  border-color: color-mix(in srgb, var(--emerald) 30%, var(--ticker-chip-border));
}
.ticker-chip--italy {
  border-color: color-mix(in srgb, var(--emerald) 26%, var(--ticker-chip-border));
}
.ticker-chip.is-live { box-shadow: 0 0 0 1px var(--emerald-glow); }

/* legacy alias */
.ticker-item { display: inline-flex; gap: 0.5rem; align-items: center; }
.ticker-item .sym { color: var(--gold); font-weight: 600; }
.ticker-item .up { color: var(--emerald); }
.ticker-item .dn { color: var(--red); }

.ticker-tooltip {
  position: fixed;
  z-index: 500;
  width: 300px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--tooltip-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-shadow), 0 16px 40px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}
.ticker-tooltip[hidden] { display: none !important; }
.tt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}
.tt-head strong {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tt-icon { font-size: 1.1rem; line-height: 1; }
.tt-label { font-weight: 600; }
.tt-mood { font-size: 1rem; animation: ticker-mood-bob 2s ease-in-out infinite; }
.tt-vibe {
  font-size: 0.68rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}
.tt-chg { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; }
.tt-chg.up { color: var(--emerald); }
.tt-chg.dn { color: var(--red); }
.tt-chart-svg {
  width: 100%;
  height: 72px;
  display: block;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface2), var(--surface3));
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--shine) inset;
  overflow: hidden;
}
.tt-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tt-area { stroke: none; }
.tt-dot { stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.5; }
.tt-chart-svg.is-up .tt-line { stroke: var(--emerald); }
.tt-chart-svg.is-up .tt-area { fill: rgba(93, 191, 160, 0.22); }
.tt-chart-svg.is-up .tt-dot { fill: var(--emerald); }
.tt-chart-svg.is-dn .tt-line { stroke: var(--red); }
.tt-chart-svg.is-dn .tt-area { fill: rgba(212, 137, 137, 0.2); }
.tt-chart-svg.is-dn .tt-dot { fill: var(--red); }
.tt-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: var(--muted);
}
.tt-stats b { color: var(--text); font-weight: 600; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes ticker-shimmer {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  45%, 55% { opacity: 1; }
  100% { transform: translateX(120%); }
}
@keyframes ticker-pulse-up {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes ticker-pulse-dn {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}
@keyframes ticker-mood-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes ticker-mood-rocket {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-8deg); }
}
@keyframes ticker-mood-melt {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(2px) scaleY(0.88); }
}
@keyframes ticker-mood-nervous {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px) rotate(-4deg); }
  75% { transform: translateX(1px) rotate(4deg); }
}
@keyframes ticker-crypto-spin {
  0%, 88%, 100% { transform: rotate(0deg) scale(1); }
  92% { transform: rotate(12deg) scale(1.08); }
  96% { transform: rotate(-8deg) scale(1.05); }
}
@keyframes ticker-gold-sparkle {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.12); filter: brightness(1.35); }
}
@keyframes ticker-forex-swap {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}
@keyframes ticker-tech-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
@keyframes ticker-italy-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.on { opacity: 1; transform: none; }

/* ── Tema in cima ── */
.theme-strip {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 230;
  height: var(--theme-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-strip-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-shadow);
}
.theme-strip-inner {
  width: min(var(--max), calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.theme-strip-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.theme-switch {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-bg-soft);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.theme-switch-btn {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
}
.theme-switch-btn:hover { color: var(--heading); }
.theme-switch-btn.is-on {
  color: var(--on-primary);
  background: var(--btn-primary-bg);
  box-shadow: var(--btn-primary-shadow), 0 0 0 1px var(--border-strong);
  transform: translateY(-0.5px);
}
[data-theme="dark"] .theme-switch-btn.is-on { color: var(--heading); background: var(--emerald-soft); box-shadow: 0 0 0 1px var(--emerald-glow); }

/* Header — barra fissa */
.header {
  position: fixed;
  inset: var(--theme-h) 0 auto 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--emerald);
  white-space: nowrap;
}

.logo b { color: var(--gold); font-weight: 600; }

.nav {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: nowrap;
  align-items: center;
}

.nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.nav a:hover { color: var(--heading); background: var(--emerald-soft); }

.nav-main a.is-active {
  color: var(--heading);
  background: var(--emerald-soft);
  box-shadow: 0 0 0 1px rgba(93, 191, 160, 0.35);
}

.status-pill {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 191, 160, 0.35);
  color: var(--emerald);
  background: var(--emerald-soft);
  box-shadow: 0 1px 0 var(--shine) inset;
  animation: pulse-live 3s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 1px 0 var(--shine) inset, 0 0 0 0 rgba(93, 191, 160, 0.2); }
  50% { box-shadow: 0 1px 0 var(--shine) inset, 0 0 10px 2px rgba(93, 191, 160, 0.18); }
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: 1.35rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.menu-btn:hover {
  background: var(--emerald-soft);
  border-color: rgba(93, 191, 160, 0.35);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(10, 18, 30, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  padding: 9rem 0 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  scroll-margin-top: var(--nav-offset);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--heading);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chips span {
  font-size: 0.72rem;
  font-family: var(--mono);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  color: var(--muted);
  box-shadow: 0 1px 0 var(--shine) inset;
}

/* Logo 3D + riflesso */
.logo-stage {
  width: 320px;
  max-width: 100%;
  flex-shrink: 0;
  margin-inline: auto;
  perspective: 1000px;
}

.logo-3d {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
}

.exchange-logo {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  transform: perspective(900px) rotateX(6deg) rotateY(-4deg);
  box-shadow:
    0 1px 0 var(--shine) inset,
    0 8px 24px rgba(10, 18, 30, 0.35),
    0 24px 56px rgba(10, 18, 30, 0.3);
  filter: drop-shadow(0 12px 20px rgba(93, 191, 160, 0.15));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.logo-stage:hover .exchange-logo {
  transform: perspective(900px) rotateX(4deg) rotateY(-2deg) translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 14px 36px rgba(10, 18, 30, 0.4),
    0 32px 64px rgba(10, 18, 30, 0.32);
}

.exchange-reflect {
  width: 72%;
  max-width: 240px;
  height: auto;
  margin-top: -6px;
  opacity: 0.22;
  transform: scaleY(-1) perspective(900px) rotateX(6deg);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 75%);
  filter: blur(0.4px);
  pointer-events: none;
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: 7rem 0;
}

.section-head {
  margin-bottom: 2.75rem;
}

.section-head.center { text-align: center; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.1em;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.8vw, 2.4rem);
  font-weight: 700;
  margin: 0.65rem 0 1rem;
  color: var(--heading);
}

.section-head p {
  color: #b8c5d4;
  font-size: var(--text-lg);
  max-width: 600px;
  line-height: 1.7;
}

.section-head.center p { margin-inline: auto; }

/* Dashboard preview */
.dashboard-preview {
  border-radius: var(--radius);
  overflow: hidden;
  transform: perspective(1200px) rotateX(1deg);
  box-shadow: var(--shadow-deep);
}
.dashboard-preview.card-3d::before { border-radius: var(--radius); }

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  position: relative;
  z-index: 1;
}

.dash-header .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-live 2s ease-in-out infinite;
  display: inline-block;
  margin-right: 0.4rem;
  box-shadow: 0 0 6px rgba(93, 191, 160, 0.45);
}

.dash-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.dash-panel {
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  padding: 1.25rem;
  position: relative;
}

.dash-panel h4 {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-value {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
}

.dash-value.up { color: var(--emerald); }
.dash-value.dn { color: var(--red); }

.dash-chart {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  padding: 1rem 1.25rem 1.5rem;
}

.chart-3d {
  position: relative;
  border-radius: 12px;
  padding: 0.75rem;
  background: linear-gradient(180deg, var(--surface3), var(--surface2));
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 var(--shine) inset,
    0 6px 20px rgba(10, 18, 30, 0.28);
  overflow: hidden;
}
.chart-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}
.chart-3d.is-up { border-color: rgba(93, 191, 160, 0.28); }
.chart-3d.is-dn { border-color: rgba(212, 137, 137, 0.28); }

#mini-chart {
  width: 100%;
  height: 120px;
  max-height: 120px;
  display: block;
  position: relative;
  z-index: 1;
}

/* Moduli */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.module-card {
  border-radius: var(--radius);
  padding: 1.5rem;
}
.module-card.card-3d::before { border-radius: var(--radius); }

.module-card:hover {
  transform: translateY(-6px) perspective(800px) rotateX(2deg);
  box-shadow:
    0 1px 0 var(--shine) inset,
    0 8px 24px rgba(10, 18, 30, 0.3),
    0 24px 56px rgba(10, 18, 30, 0.35);
}

.module-card.coming {
  border-style: dashed;
  opacity: 0.88;
}

.module-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(10, 18, 30, 0.25));
}

.module-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.module-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.module-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(212, 174, 114, 0.28);
}

/* Command hub */
.hub-section {
  background: linear-gradient(180deg, transparent, rgba(93, 191, 160, 0.05));
}

.news-section {
  background: linear-gradient(180deg, rgba(50, 63, 80, 0.35), transparent);
}
.news-to-illogico {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.news-to-illogico a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-updated {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}
.news-card {
  border-radius: var(--radius);
  padding: 1.25rem;
}
.news-card.card-3d::before { border-radius: var(--radius); }

.news-card:hover {
  transform: translateY(-5px) perspective(800px) rotateX(1.5deg);
  box-shadow:
    0 1px 0 var(--shine) inset,
    0 10px 32px rgba(10, 18, 30, 0.32),
    0 22px 50px rgba(10, 18, 30, 0.28);
}
.news-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #3d4d60, #384858);
  border-color: rgba(93, 191, 160, 0.22);
}
.news-source {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--emerald);
  text-transform: uppercase;
}
.news-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.5rem 0 0.6rem;
}
.news-card h3 a {
  color: var(--text);
  transition: color 0.2s;
}
.news-card h3 a:hover { color: var(--emerald); }
.news-time {
  font-size: 0.72rem;
  color: var(--muted);
}

.news-intel {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.news-intel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.news-intel-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.news-intel-badge.ni-up { background: var(--emerald-soft); color: var(--emerald); }
.news-intel-badge.ni-dn { background: var(--red-soft); color: var(--red); }
.news-intel-badge.ni-mx { background: rgba(212, 174, 114, 0.15); color: var(--gold); }
.news-intel-pct {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--blue);
}
.news-intel-detail {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.news-intel-horizon {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
}
.news-intel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.news-ticker-chip {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s;
}
.news-ticker-chip.ni-up { color: var(--emerald); border-color: rgba(93, 191, 160, 0.35); }
.news-ticker-chip.ni-dn { color: var(--red); border-color: rgba(212, 137, 137, 0.35); }
.news-ticker-chip:hover { border-color: var(--emerald); }

.news-intel-panel {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
}
.news-intel-panel.card-3d::before { border-radius: var(--radius); }
.news-intel-title {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--heading);
  margin-bottom: 0.75rem;
}
.news-intel-table { display: flex; flex-direction: column; gap: 0.4rem; }
.news-intel-row {
  display: grid;
  grid-template-columns: 72px 100px 80px 1fr;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: var(--surface3);
}
.news-intel-sym { color: var(--gold); font-weight: 700; }
.news-intel-dir.ni-up { color: var(--emerald); }
.news-intel-dir.ni-dn { color: var(--red); }
.news-intel-conf { color: var(--blue); }
.news-intel-src { color: var(--muted); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.news-intel-note, .news-intel-empty {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hub-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hub-item.card-3d::before { border-radius: var(--radius); }

.hub-item:hover {
  transform: translateY(-4px) perspective(700px) rotateX(3deg);
  box-shadow:
    0 1px 0 var(--shine) inset,
    0 10px 28px rgba(10, 18, 30, 0.3);
}

.hub-item .icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 6px rgba(10, 18, 30, 0.25));
}

.hub-item strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.hub-item span {
  font-size: 0.72rem;
  color: var(--muted);
}

/* CTA */
.cta-band {
  background: linear-gradient(135deg, rgba(93, 191, 160, 0.08), rgba(107, 159, 212, 0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  padding: 3rem 0;
}

.cta-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  color: var(--heading);
}

.cta-inner p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--on-primary);
  border: none;
  cursor: pointer;
  box-shadow:
    0 1px 0 var(--shine) inset,
    var(--btn-primary-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow:
    0 1px 0 var(--shine) inset,
    var(--btn-primary-shadow),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.footer-inner > span:first-child {
  min-width: 0;
}
.footer-inner .footer-nav {
  justify-self: end;
}
.footer-inner .footer-gdpr-note {
  grid-column: 1 / -1;
}

.footer-nav { display: flex; gap: 1rem; }
.footer-nav a:hover { color: var(--emerald); }

/* Entry warp — animazione ingresso area personale */
.entry-warp {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(93, 191, 160, 0.14), transparent 60%),
    linear-gradient(160deg, #2e3d4d, #1e2834);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.entry-warp.active { opacity: 1; pointer-events: all; }
.entry-warp.is-done .entry-warp-panel { transform: scale(1.02); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease; }
.entry-warp[hidden] { display: none !important; }

.entry-warp-panel {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 360px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.entry-warp-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
}

.entry-warp-check { display: block; }
.entry-check-circle {
  stroke: rgba(93, 191, 160, 0.35);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  transition: stroke-dashoffset 0.6s ease 0.1s;
}
.entry-warp.is-success .entry-check-circle { stroke-dashoffset: 0; stroke: var(--emerald); }
.entry-check-path {
  stroke: var(--emerald);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  transition: stroke-dashoffset 0.45s ease 0.55s;
}
.entry-warp.is-success .entry-check-path { stroke-dashoffset: 0; }

.entry-warp-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa3b8;
  margin-bottom: 0.35rem;
}
.entry-warp-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.35rem;
}
.entry-warp-user {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--emerald);
  margin: 0 0 1.1rem;
  min-height: 1.2em;
}
.entry-warp-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}
.entry-step {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #6d8094;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(12, 18, 28, 0.45);
  border: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.entry-step.is-active {
  color: var(--emerald);
  border-color: rgba(93, 191, 160, 0.35);
  background: rgba(93, 191, 160, 0.1);
}
.entry-step.is-done { color: #9eb0c4; }
.entry-step.is-done::before { content: "✓ "; color: var(--emerald); }

.entry-warp-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(70, 95, 125, 0.4);
  overflow: hidden;
}
.entry-warp-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald), #d4ae72);
  border-radius: inherit;
  transition: width 0.5s ease;
}

@keyframes borsa-area-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.borsa-unlocked #borsa-protected {
  animation: borsa-area-in 0.45s ease both;
}
html.borsa-has-session,
body.borsa-unlocked {
  --nav-offset: var(--chrome-h);
  scroll-padding-top: var(--chrome-h);
  padding-top: 0;
}
#borsa-access[hidden] { display: none !important; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-offset);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 1.5rem 1.25rem 2rem;
    background: rgba(32, 42, 54, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 195;
    gap: 0.5rem;
    overflow-y: auto;
  }
  .nav.open a {
    font-size: 1.125rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid transparent;
  }
  .nav.open a.is-active {
    border-color: rgba(93, 191, 160, 0.35);
  }
  .menu-btn { display: flex; margin-left: auto; }
  .status-pill { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-chips { justify-content: center; }
  .logo-stage { order: -1; }
  .modules-grid, .hub-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-column: span 2; }
  .dash-body { grid-template-columns: 1fr; }
  .dashboard-preview { transform: none; }
  .exchange-logo { transform: none; }
  .exchange-reflect { display: none; }
}

@media (max-width: 640px) {
  .modules-grid, .hub-grid, .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-column: span 1; }
  :root {
    --header-h: 56px;
    --chrome-h: calc(var(--theme-h) + var(--header-h) + var(--ticker-h) + var(--journey-h, 0px));
    --nav-offset: var(--chrome-h);
  }
}