/* =============================================================================
   StealthProtocol — Premium Theme (camada sobre style.css)
   Ciano refinado · superfícies de vidro · movimento fluido
   Remover este <link> do index.html restaura o visual anterior.
   ============================================================================= */

:root {
  /* Tinta (texto e superfícies escuras) */
  --ink-950: #06121C;
  --ink-900: #0B1C2C;
  --ink-700: #23364A;
  --ink-500: #4F6275;
  --ink-400: #6B7A8C;
  --ink-300: #98A5B3;

  /* Ciano refinado */
  --cy-50:  #EEFBFD;
  --cy-100: #D3F4F9;
  --cy-200: #A7E8F2;
  --cy-300: #6FD8EA;
  --cy-400: #34CFE4;
  --cy-500: #0A9FBC;
  --cy-600: #0A86A1;
  --cy-700: #0A6B86;
  --cy-800: #0A5A73;
  --aqua:   #5EEAD4;

  --grad-brand: linear-gradient(135deg, #34CFE4 0%, #0A9FBC 48%, #0A6B86 100%);
  --grad-brand-wide: linear-gradient(120deg, #34CFE4 0%, #0A9FBC 30%, #0A6B86 60%, #0A9FBC 80%, #34CFE4 100%);

  /* Tokens do style.css redefinidos */
  --bg-page: #F4F8FA;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-subtle: #EEF3F6;
  --bg-input: #F6F9FB;
  --border-light: rgba(11, 28, 44, 0.08);
  --border-focus: var(--cy-500);
  --cyan-primary: var(--cy-500);
  --cyan-dark: var(--cy-700);
  --cyan-deep: var(--cy-800);
  --cyan-subtle: rgba(10, 159, 188, 0.07);
  --cyan-border: rgba(10, 159, 188, 0.22);
  --text-main: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-subtle: var(--ink-400);
  --accent-green: #0E9F6E;
  --accent-red: #E0485A;
  --accent-gold: #D9922B;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 2px rgba(11, 28, 44, 0.04), 0 8px 24px -8px rgba(11, 28, 44, 0.08);
  --shadow-hover: 0 2px 4px rgba(11, 28, 44, 0.04), 0 18px 40px -12px rgba(10, 107, 134, 0.22);
  --shadow-sm: 0 1px 2px rgba(11, 28, 44, 0.05);
  --ring: 0 0 0 4px rgba(10, 159, 188, 0.14);

  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------------------------------------------------------------- base --- */
html { scroll-behavior: smooth; }
* { font-family: var(--font-ui); }
body {
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
}
::selection { background: var(--cy-200); color: var(--ink-950); }

h1, h2, h3, h4,
.brand-title, .docs-section-title, .modal-header h2, .modal-header h3,
.creator-card-header h3, .m-val, .p-val, .bc-stat-val, .debug-card-val, .c-stat strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
code, pre, kbd, .font-mono, .terminal-line, .terminal-time {
  font-family: var(--font-mono) !important;
  font-feature-settings: normal;
}
.m-val, .p-val, .bc-stat-val, .debug-card-val, [class*="price"], [id*="Price"], [id*="Balance"] {
  font-variant-numeric: tabular-nums;
}

/* Aurora de fundo — luz fluida, sem custo de layout */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
body::before {
  width: 62vw; height: 62vw;
  top: -26vw; left: -14vw;
  background: radial-gradient(circle at 40% 40%, rgba(52, 207, 228, 0.32), rgba(52, 207, 228, 0) 65%);
  animation: sp-drift-a 38s var(--ease-fluid) infinite alternate;
}
body::after {
  width: 54vw; height: 54vw;
  bottom: -24vw; right: -12vw;
  background: radial-gradient(circle at 60% 60%, rgba(10, 107, 134, 0.20), rgba(94, 234, 212, 0) 65%);
  animation: sp-drift-b 46s var(--ease-fluid) infinite alternate;
}
@keyframes sp-drift-a { to { transform: translate3d(8vw, 6vw, 0) scale(1.08); } }
@keyframes sp-drift-b { to { transform: translate3d(-7vw, -5vw, 0) scale(1.12); } }

/* Barra de rolagem discreta */
* { scrollbar-width: thin; scrollbar-color: rgba(11, 28, 44, 0.18) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(11, 28, 44, 0.16); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: rgba(10, 107, 134, 0.35); }

/* ------------------------------------------------------------- navbar --- */
.navbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(11, 28, 44, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 24px -18px rgba(11, 28, 44, 0.35);
}
.brand-logo { gap: 12px; }
.brand-logo-img {
  width: 36px; height: 36px;
  border-radius: 11px;
  box-shadow: 0 6px 16px -6px rgba(10, 107, 134, 0.55);
  transition: transform 0.5s var(--ease-spring);
}
.brand-logo:hover .brand-logo-img { transform: rotate(-8deg) scale(1.05); }
.brand-title {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink-900);
}
.brand-highlight {
  margin-left: 1px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-tagline { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-400); font-weight: 700; }

/* Seletor de modo com indicador deslizante (ver theme-premium.js) */
.mode-switcher-container {
  position: relative;
  background: rgba(11, 28, 44, 0.04);
  border: 1px solid rgba(11, 28, 44, 0.05);
  padding: 4px;
}
.mode-tab-btn {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-500);
  transition: color 0.35s var(--ease-fluid), background-color 0.35s var(--ease-fluid);
}
.mode-tab-btn:hover { color: var(--ink-900); }
.mode-tab-btn.active { color: var(--cy-700); background: #FFFFFF; box-shadow: 0 1px 2px rgba(11, 28, 44, 0.06), 0 6px 16px -8px rgba(10, 107, 134, 0.35); }
.mode-switcher-container.sp-has-indicator .mode-tab-btn.active { background: transparent; box-shadow: none; }
.sp-tab-indicator {
  position: absolute;
  z-index: 0;
  top: 4px; bottom: 4px; left: 0;
  border-radius: 9999px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(11, 28, 44, 0.06), 0 8px 18px -8px rgba(10, 107, 134, 0.4);
  transition: transform 0.55s var(--ease-fluid), width 0.55s var(--ease-fluid);
  pointer-events: none;
}

/* Navbar compacta: nada quebra linha, nada sai da tela */
@media (min-width: 1025px) {
  .navbar { padding: 0.7rem 1.5rem; gap: 1rem; }
  .nav-left { gap: 1.25rem; }
  .nav-right { gap: 0.5rem; flex-shrink: 0; }
  .mode-tab-btn { white-space: nowrap; padding: 8px 13px; font-size: 0.83rem; gap: 7px; }
  .network-badge, .token-pill, .nav-guide-btn, .btn-connect, .brand-title { white-space: nowrap; }
  .network-badge { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
  .navbar { justify-content: space-between; }
}
@media (min-width: 1025px) and (max-width: 1679px) {
  .mode-tab-btn .icon-svg { display: none; }
}
@media (min-width: 1025px) and (max-width: 1499px) {
  .brand-tagline { display: none; }
  .nav-guide-btn span, .token-pill .pill-fee { display: none; }
  .nav-guide-btn { padding-left: 10px; padding-right: 10px; }
  .network-badge { max-width: 132px; }
  .mode-switcher-container { gap: 2px; }
  .brand-title { font-size: 1.08rem; }
  .brand-logo { gap: 10px; }
  .brand-logo-img { width: 32px; height: 32px; border-radius: 10px; }
  .mode-tab-btn { padding: 7px 11px; font-size: 0.8rem; }
  .token-pill { padding-left: 10px !important; padding-right: 10px !important; gap: 6px !important; }
  .btn-connect { padding-left: 14px !important; padding-right: 14px !important; }
}

/* Desktop: navbar em duas linhas — marca e controles em cima, modos centralizados embaixo.
   Uma linha só não cabe com os rótulos em português (~2000px necessários). */
@media (min-width: 1025px) {
  .navbar { flex-wrap: wrap; row-gap: 10px; padding-bottom: 0.6rem; }
  .nav-left { display: contents; }
  .brand-logo { order: 0; }
  .nav-right { order: 1; margin-left: auto; }
  .navbar::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .mode-switcher-container { order: 3; margin: 0 auto; }
  .mode-tab-btn { padding: 7px 16px; font-size: 0.84rem; }
  .mode-tab-btn .icon-svg { display: inline-block; }
}

.nav-story-link { text-decoration: none; white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1499px) { .nav-story-link span { display: none; } }

.token-pill, .lang-selector, .network-switch-btn, .wallet-badge {
  border-color: rgba(11, 28, 44, 0.08) !important;
  transition: transform 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid), border-color 0.3s;
}
.token-pill:hover, .network-switch-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); border-color: var(--cyan-border) !important; }
.pill-dot { background: var(--cy-500) !important; box-shadow: 0 0 0 0 rgba(10, 159, 188, 0.5); animation: sp-pulse 2.4s ease-out infinite; }
@keyframes sp-pulse { 70% { box-shadow: 0 0 0 7px rgba(10, 159, 188, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 159, 188, 0); } }

.live-market-ticker {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 28, 44, 0.05);
  color: var(--ink-500);
}

/* ---------------------------------------------------- painéis e cards --- */
.view-panel.active { animation: sp-panel-in 0.6s var(--ease-fluid) both; }
@keyframes sp-panel-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.card, .swap-card, .chart-card, .tape-card, .creator-card, .creator-panel, .metric-card,
.market-info-card, .debug-metric-card, .docs-section-card, .docs-hero, .security-scanner-card,
.sweep-action-card, .pool-stat-card, .flow-card, .faq-card, .trader-overview-bar,
.bonding-curve-box, .market-governance-box, .debugger-actions-panel, .debugger-banner,
.swap-details-box, .callout-box, .live-log-container, .scanner-results {
  background: rgba(255, 255, 255, 0.92); /* opaco o bastante: sem backdrop-filter (custo alto na rolagem) */
  border: 1px solid rgba(11, 28, 44, 0.07);
  box-shadow: var(--shadow-card);
}
.swap-card, .chart-card { border-radius: 24px; }

/* Transição suave de borda/sombra nos cards compactos */
.metric-card, .market-info-card, .debug-metric-card, .docs-section-card, .pool-stat-card,
.flow-card, .faq-card, .creator-card, .sec-check-item, .welcome-pillar-item, .pillar-box, .bc-stat-box {
  transition: transform 0.45s var(--ease-fluid), box-shadow 0.45s var(--ease-fluid), border-color 0.45s;
}
/* Elevação só em itens clicáveis (stealth-brand: sem hover decorativo em card estático) */
.faq-card:hover, .welcome-pillar-item:hover, .creator-card[role="button"]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cyan-border);
}

/* Área de swap: foco vivo */
.swap-box { transition: border-color 0.3s, box-shadow 0.3s var(--ease-fluid), background-color 0.3s; }
.swap-box:focus-within { border-color: var(--cyan-border) !important; box-shadow: var(--ring) !important; background: #FFFFFF !important; }

/* Creator Studio: elementos que não tinham estilo no style.css */
.metric-sub-detail { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.metric-sub-detail > label { font-size: 0.82rem; font-weight: 600; color: var(--ink-500); }
.sub-hint, .text-sub { display: block; font-size: 0.8rem; line-height: 1.5; color: var(--ink-500); }
.metric-header { gap: 10px; }
.nft-badge {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 4px 10px; border-radius: 9999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--cy-700); background: var(--cy-50); border: 1px solid var(--cyan-border);
}
.nft-preview-box {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(10, 159, 188, 0.06), rgba(10, 107, 134, 0.03));
  border: 1px solid rgba(10, 159, 188, 0.12);
}
.nft-icon-symbol {
  flex: 0 0 44px; height: 44px; display: grid; place-items: center;
  border-radius: 13px; background: var(--grad-brand); color: #FFFFFF;
  box-shadow: 0 8px 18px -8px rgba(10, 107, 134, 0.6);
}
.nft-icon-symbol .icon-svg { color: #FFFFFF !important; width: 20px; height: 20px; }
.nft-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nft-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink-900); letter-spacing: -0.01em; }
.nft-owner { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------- botões --- */
.btn, .btn-swap-action, .mode-tab-btn, .tf-btn, .slip-btn, .c-tab, .t-subnav-btn, .fee-preset-pill {
  -webkit-tap-highlight-color: transparent;
}
.btn, .btn-swap-action {
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: -0.005em;
  transition: transform 0.25s var(--ease-fluid), box-shadow 0.35s var(--ease-fluid), background-position 0.8s var(--ease-fluid), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active, .btn-swap-action:active, .mode-tab-btn:active { transform: scale(0.975); }
.btn:focus-visible, .btn-swap-action:focus-visible, .mode-tab-btn:focus-visible,
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--cy-500);
}

.btn-primary-gradient, .btn-swap-action {
  background-image: var(--grad-brand-wide);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -10px rgba(10, 107, 134, 0.65);
}
.btn-primary-gradient:hover, .btn-swap-action:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 32px -12px rgba(10, 107, 134, 0.7);
}
.btn-swap-action { border-radius: 18px; padding: 17px; font-size: 1.04rem; }
.btn-swap-action:disabled, .btn-primary-gradient:disabled {
  background-image: none; background-color: #E6EDF1; color: var(--ink-400); box-shadow: none; transform: none; cursor: not-allowed;
}

.btn-connect {
  background: var(--ink-900);
  color: #FFFFFF;
  border: 1px solid var(--ink-900);
  box-shadow: 0 8px 20px -10px rgba(6, 18, 28, 0.6);
}
.btn-connect:hover { background: var(--ink-700); border-color: var(--ink-700); color: #FFFFFF; transform: translateY(-1px); }

.btn-secondary-clean {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 28, 44, 0.09);
  color: var(--ink-700);
}
.btn-secondary-clean:hover { background: #FFFFFF; border-color: var(--cyan-border); color: var(--cy-700); box-shadow: var(--shadow-sm); }

.tf-btn, .slip-btn, .c-tab, .t-subnav-btn, .fee-preset-pill {
  transition: background-color 0.3s var(--ease-fluid), color 0.3s, box-shadow 0.3s var(--ease-fluid), border-color 0.3s;
}
.tf-btn.active, .slip-btn.active, .c-tab.active, .t-subnav-btn.active, .fee-preset-pill.active {
  background: var(--cy-50) !important;
  color: var(--cy-700) !important;
  border-color: var(--cyan-border) !important;
  box-shadow: 0 0 0 1px var(--cyan-border) inset;
}

/* ------------------------------------------------------------- campos --- */
input, select, textarea {
  font-family: var(--font-ui);
  transition: border-color 0.25s, box-shadow 0.3s var(--ease-fluid), background-color 0.25s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cy-500) !important;
  box-shadow: var(--ring) !important;
}
input::placeholder, textarea::placeholder { color: var(--ink-300); }

/* -------------------------------------------------------------- badges --- */
.badge-clean, .badge-cyan, .badge-green, .badge-status-green, .status-pill, .audit-tag, .tag-pass {
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-cyan { background: var(--cy-50); color: var(--cy-700); border-color: var(--cyan-border); }
.text-cyan { color: var(--cy-600) !important; }
.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }

/* Selo de demonstração (rede local / dados simulados) */
.sp-demo-ribbon {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 998;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(11, 28, 44, 0.86);
  color: #E6F7FA;
  font: 600 12px/1.2 var(--font-ui);
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(6, 18, 28, 0.6);
}
.sp-demo-ribbon::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #F2B544; box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.25);
}

/* -------------------------------------------------------------- modais --- */
.modal-overlay { background: rgba(6, 18, 28, 0.38); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.modal-overlay.active { animation: sp-fade 0.3s ease both; }
.modal-overlay.active .modal-card, .modal-overlay.active .modal-welcome-card {
  animation: sp-modal-in 0.5s var(--ease-fluid) both;
}
.modal-card, .modal-welcome-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(6, 18, 28, 0.45), 0 0 0 1px rgba(11, 28, 44, 0.05);
}
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-modal-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

.wallet-option-item { transition: transform 0.35s var(--ease-fluid), border-color 0.3s, box-shadow 0.35s var(--ease-fluid), background-color 0.3s; }
.wallet-option-item:hover { transform: translateX(3px); border-color: var(--cyan-border) !important; box-shadow: var(--shadow-hover); }

.toast {
  background: rgba(11, 28, 44, 0.92) !important;
  color: #EAF8FB !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(6, 18, 28, 0.6) !important;
}

/* Terminal / logs */
.live-log-container, .terminal, [class*="terminal-box"] { border-radius: 16px; }

/* Tabelas */
.docs-table th, table th { font-family: var(--font-ui); font-weight: 600; color: var(--ink-500); letter-spacing: 0.02em; }
table tbody tr { transition: background-color 0.25s; }
table tbody tr:hover { background: rgba(10, 159, 188, 0.04); }

/* --------------------------------------------- revelação ao rolar (JS) --- */
.sp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-fluid), transform 0.8s var(--ease-fluid); }
.sp-reveal.sp-in { opacity: 1; transform: none; }

/* -------------------------------------------------------- responsivo --- */
html, body { overflow-x: clip; }
.mode-switcher-container, .desk-jump-links, .live-market-ticker { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mode-switcher-container::-webkit-scrollbar, .desk-jump-links::-webkit-scrollbar, .live-market-ticker::-webkit-scrollbar { display: none; }
.desk-jump-links { max-width: 100%; min-width: 0; }

@media (max-width: 760px) {
  body::before, body::after { filter: blur(50px); opacity: 0.45; }
  .navbar { position: relative; }
  .mode-switcher-container { max-width: 100%; overflow-x: auto; scroll-snap-type: x proximity; }
  .mode-tab-btn { scroll-snap-align: center; white-space: nowrap; }
  .trader-overview-bar > * { min-width: 0; max-width: 100%; }
  .sp-demo-ribbon { left: 12px; bottom: 12px; font-size: 11px; }
}

/* ------------------------------------------------- movimento reduzido --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  body::before, body::after { animation: none !important; }
  .sp-reveal { opacity: 1; transform: none; }
}


/* =============================================================================
   Coerência com a story.html: faixa superior em tinta + desempenho
   ============================================================================= */

/* Luz de fundo estática no app (a animação fica só na história) */
body:not(.story)::before, body:not(.story)::after { animation: none; will-change: auto; }

/* Navbar em tinta */
body:not(.story) .navbar {
  background: rgba(6, 18, 28, 0.92);
  border-bottom: 1px solid rgba(111, 216, 234, 0.1);
  box-shadow: 0 10px 30px -20px rgba(6, 18, 28, 0.9);
  color: #E6F4F7;
}
body:not(.story) .brand-title { color: #F4FBFC; }
body:not(.story) .brand-highlight { background: linear-gradient(120deg, #6FE6F4, #34CFE4); -webkit-background-clip: text; background-clip: text; }
body:not(.story) .brand-tagline { color: #7F99A3; }
body:not(.story) .mode-switcher-container { background: rgba(255, 255, 255, 0.05); border-color: rgba(111, 216, 234, 0.1); }
body:not(.story) .mode-tab-btn { color: #A9C2CB; }
body:not(.story) .mode-tab-btn:hover { color: #FFFFFF; }
body:not(.story) .mode-tab-btn.active { color: #FFFFFF; background: rgba(111, 216, 234, 0.14); box-shadow: none; }
body:not(.story) .mode-switcher-container.sp-has-indicator .mode-tab-btn.active { background: transparent; }
body:not(.story) .sp-tab-indicator { background: rgba(111, 216, 234, 0.16); box-shadow: inset 0 0 0 1px rgba(111, 216, 234, 0.28); }
body:not(.story) .token-pill, body:not(.story) .nav-guide-btn, body:not(.story) .network-badge, body:not(.story) .lang-selector {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(111, 216, 234, 0.14) !important;
  color: #CFE3E8 !important;
}
body:not(.story) .token-pill *, body:not(.story) .nav-guide-btn *, body:not(.story) .network-badge * { color: inherit; }
body:not(.story) .pill-fee { color: #6FD8EA !important; background: rgba(111, 216, 234, 0.1) !important; }
body:not(.story) .lang-btn { color: #A9C2CB; background: transparent; }
body:not(.story) .lang-btn.active { color: #FFFFFF; background: rgba(111, 216, 234, 0.16); }
body:not(.story) .lang-sep { color: rgba(169, 194, 203, 0.4); }
body:not(.story) .token-pill:hover, body:not(.story) .nav-guide-btn:hover { border-color: rgba(111, 216, 234, 0.4) !important; color: #FFFFFF !important; box-shadow: none; }
body:not(.story) .btn-connect { background: #E6F7FA; color: #06121C; border-color: #E6F7FA; box-shadow: 0 8px 22px -12px rgba(52, 207, 228, 0.7); }
body:not(.story) .btn-connect:hover { background: #FFFFFF; border-color: #FFFFFF; color: #06121C; }

/* Ticker em tinta, logo abaixo do navbar */
body:not(.story) .live-market-ticker {
  background: #0A1A27;
  border-bottom: 1px solid rgba(111, 216, 234, 0.08);
  color: #A9C2CB;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body:not(.story) .live-market-ticker strong, body:not(.story) .live-market-ticker .t-price { color: #F4FBFC; }
body:not(.story) .live-market-ticker .t-muted { color: #7F99A3; }
body:not(.story) .live-market-ticker .text-cyan { color: #6FD8EA !important; }

/* Selos de dado simulado (injetados por theme-premium.js) */
.sp-sim-tag {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  margin-left: 8px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  font: 600 0.68rem/1.4 var(--font-ui); letter-spacing: 0.01em;
  color: #8A5A12; background: #FDF3E1; border: 1px solid #F2D7A6;
}
.sp-sim-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E2A33C; }
.live-market-ticker .sp-sim-tag { color: #F2C77C; background: rgba(242, 181, 68, 0.1); border-color: rgba(242, 181, 68, 0.3); }

/* Conteúdo fora da tela não é pintado até ser necessário */
.docs-section-card, .faq-card { content-visibility: auto; contain-intrinsic-size: auto 320px; }

/* Textos do ticker que tinham cor escura fixa no style.css */
body:not(.story) .live-market-ticker .ticker-item { color: #A9C2CB; }
body:not(.story) .live-market-ticker .t-token { color: #F4FBFC; font-weight: 700; }
body:not(.story) .live-market-ticker .ticker-sep { color: rgba(169, 194, 203, 0.35); }
body:not(.story) .live-market-ticker .text-green { color: #3DDC97 !important; }

/* =============================================================================
   Tela de trading: proposta + swap na primeira dobra; mercado abaixo
   ============================================================================= */
.trader-desk-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "hero swap" "market market";
  gap: 1.5rem;
}
.trader-hero { grid-area: hero; align-self: stretch; }
.trader-desk-right { grid-area: swap; position: relative; top: auto; }
.trader-desk-left {
  grid-area: market;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.5rem;
}
.trader-market-title {
  grid-column: 1 / -1;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink-900); margin: 0.5rem 0 -0.25rem;
}
.trader-desk-left > #desk-tape, .trader-desk-left > #desk-security { margin-top: 0 !important; }
.trader-desk-left > #desk-security { grid-column: 1 / -1; }

/* Painel em tinta com a rede de partículas */
.trader-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 24px;
  background: radial-gradient(ellipse at 20% 0%, #10314A 0%, #0A1A27 55%, #06121C 100%);
  border: 1px solid rgba(111, 216, 234, 0.12);
  box-shadow: 0 30px 60px -36px rgba(6, 18, 28, 0.9);
  min-height: 460px;
  display: flex;
}
.trader-hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.trader-hero-copy {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.1rem;
  padding: clamp(24px, 3.2vw, 44px); width: 100%;
  background: linear-gradient(180deg, rgba(6, 18, 28, 0) 25%, rgba(6, 18, 28, 0.78) 70%);
}
.trader-hero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.08; color: #F4FBFC; max-width: 16ch;
}
.trader-hero-lede { color: #BFD3D8; font-size: 1rem; line-height: 1.6; max-width: 42ch; }
.trader-hero-points { list-style: none; display: grid; gap: 10px; margin: 0.2rem 0 0; padding: 0; }
.trader-hero-points li {
  display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px;
  background: rgba(10, 26, 39, 0.65); border: 1px solid rgba(111, 216, 234, 0.12);
}
.trader-hero-points strong { color: #EAF8FB; font-size: 0.92rem; font-weight: 650; }
.trader-hero-points span { color: #A9C2CB; font-size: 0.84rem; line-height: 1.5; }
.trader-hero-link {
  align-self: flex-start; margin-top: 0.2rem; padding: 9px 16px; border-radius: 999px;
  color: #CFF4F9; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  border: 1px solid rgba(111, 216, 234, 0.28); transition: border-color 0.3s, background-color 0.3s;
}
.trader-hero-link:hover { border-color: rgba(111, 216, 234, 0.6); background: rgba(111, 216, 234, 0.08); }

@media (max-width: 1100px) {
  .trader-desk-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "swap" "hero" "market"; }
  .trader-desk-left { grid-template-columns: minmax(0, 1fr); }
  .trader-hero { min-height: 380px; }
}
.trader-desk-left > #desk-security { max-width: none; width: 100%; margin-left: 0; margin-right: 0; }

/* =============================================================================
   Painel de mercado (market-live.js) — dados reais; demo em aba complementar
   ============================================================================= */
.trader-desk-left > .market-panel { grid-column: 1 / -1; }
.market-panel {
  background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(11, 28, 44, 0.07);
  border-radius: 24px; box-shadow: var(--shadow-card); padding: 20px 22px 22px;
}
.market-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.market-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--ink-700); }
.market-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cy-500); box-shadow: 0 0 0 3px rgba(10, 159, 188, 0.18); }
.market-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #EEF3F6; }
.market-tabs [role="tab"] {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: 7px 14px; min-height: 34px; font: 600 0.84rem var(--font-ui); color: var(--ink-500);
  transition: background-color 0.3s var(--ease-fluid), color 0.3s, box-shadow 0.3s;
}
.market-tabs [role="tab"]:hover { color: var(--ink-900); }
.market-tabs [role="tab"][aria-selected="true"] { background: #FFFFFF; color: var(--cy-700); box-shadow: 0 1px 2px rgba(11, 28, 44, 0.08), 0 6px 14px -8px rgba(10, 107, 134, 0.4); }
.market-tabpanel { animation: sp-fade 0.35s ease both; }

.mk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mk-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: #F6F9FB; border: 1px solid rgba(11, 28, 44, 0.05); min-width: 0; }
.mk-kpi-wide { grid-column: span 1; }
.mk-kpi-label { font-size: 0.8rem; color: var(--ink-500); font-weight: 500; }
.mk-kpi-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); font-variant-numeric: tabular-nums; line-height: 1.15; }
.mk-kpi-sub { font-size: 0.78rem; color: var(--ink-400); }
.mk-meter { height: 6px; border-radius: 999px; background: #DCE7EC; overflow: hidden; margin: 4px 0 2px; }
.mk-meter span { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.8s var(--ease-fluid); }
.mk-source { margin: 14px 0 0; font-size: 0.8rem; color: var(--ink-400); }
.mk-source a { color: var(--cy-700); font-weight: 600; text-decoration: none; }
.mk-source a:hover { text-decoration: underline; }
.mk-source.is-error span { color: #8A5A12; }

.mk-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mk-chart-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink-900); margin: 0; }
.mk-link-btn { border: 0; background: none; cursor: pointer; color: var(--cy-700); font: 600 0.84rem var(--font-ui); padding: 6px 4px; }
.mk-chart { position: relative; }
.mk-chart svg { display: block; overflow: visible; }
.mk-grid { stroke: rgba(11, 28, 44, 0.07); stroke-width: 1; }
.mk-axis { fill: var(--ink-400); font: 500 11px var(--font-ui); font-variant-numeric: tabular-nums; }
.mk-line { fill: none; stroke: #0A86A1; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mk-area { fill: rgba(10, 159, 188, 0.08); stroke: none; }
.mk-dot { fill: #0A86A1; stroke: #FFFFFF; stroke-width: 2; }
.mk-hair { stroke: rgba(11, 28, 44, 0.35); stroke-width: 1; stroke-dasharray: 3 3; }
.mk-chart rect:focus { outline: none; }
.mk-chart rect:focus-visible { outline: 2px solid var(--cy-500); outline-offset: 2px; }
.mk-tip {
  position: absolute; top: 0; left: 0; pointer-events: none; min-width: 150px;
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px;
  background: rgba(11, 28, 44, 0.94); color: #EAF8FB; font-size: 0.78rem; box-shadow: 0 12px 30px -14px rgba(6, 18, 28, 0.7);
}
.mk-tip strong { font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.mk-tip span { color: #A9C2CB; }
.mk-note { margin: 10px 0 0; font-size: 0.82rem; color: var(--ink-500); }
.mk-demo .mk-note { margin: 0 0 14px; }
.mk-demo > .chart-card, .mk-demo > .tape-card { margin-top: 0 !important; box-shadow: none; }
.mk-demo > .tape-card { margin-top: 16px !important; }

.mk-table-wrap { overflow-x: auto; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.mk-table th { text-align: left; font-weight: 600; color: var(--ink-500); padding: 10px 12px; border-bottom: 1px solid rgba(11, 28, 44, 0.08); white-space: nowrap; }
.mk-table td { padding: 10px 12px; border-bottom: 1px solid rgba(11, 28, 44, 0.05); color: var(--ink-700); white-space: nowrap; }
.mk-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mk-table .mono { font-family: var(--font-mono); font-size: 0.8rem; }
.mk-table a { color: var(--cy-700); font-weight: 600; text-decoration: none; }
.mk-side { font-weight: 600; }
.mk-side-buy { color: #0E7F5A; }
.mk-side-sell { color: #B4364A; }
.mk-empty { color: var(--ink-500); font-size: 0.9rem; padding: 24px 0; text-align: center; }

@media (max-width: 900px) {
  .mk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-tabs { width: 100%; overflow-x: auto; }
}

/* Rótulos de métricas em caixa de frase (stealth-brand: sem CAIXA ALTA espaçada) */
.metric-label, .m-label, .p-label, .bc-stat-label, .debug-card-header {
  text-transform: none !important; letter-spacing: 0 !important;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-500);
}

/* Protocol Stack: subabas e card de garantias */
.creator-subnav .p-tab {
  border: 1px solid rgba(11, 28, 44, 0.09); background: rgba(255, 255, 255, 0.7); color: var(--ink-700);
  border-radius: 999px; padding: 9px 16px; min-height: 38px; cursor: pointer;
  font: 600 0.86rem var(--font-ui); display: inline-flex; align-items: center; gap: 8px;
  transition: background-color 0.3s var(--ease-fluid), color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.creator-subnav .p-tab:hover { border-color: var(--cyan-border); color: var(--cy-700); }
.creator-subnav .p-tab.active { background: var(--cy-50); color: var(--cy-700); border-color: var(--cyan-border); box-shadow: 0 0 0 1px var(--cyan-border) inset; }
.proto-info h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); margin: 0 0 6px; }
.proto-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.proto-fact { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px; background: #F6F9FB; border: 1px solid rgba(11, 28, 44, 0.05); }
.proto-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--cy-700); line-height: 1.05; font-variant-numeric: tabular-nums; }
.proto-fact span { font-weight: 600; color: var(--ink-900); }
.proto-fact small { color: var(--ink-400); font-size: 0.78rem; }
.proto-claims { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.proto-claims li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(11, 28, 44, 0.07); background: #FFFFFF; }
.proto-claims li > div { display: grid; gap: 2px; min-width: 0; }
.proto-claims strong { color: var(--ink-900); font-size: 0.95rem; }
.proto-claims span { color: var(--ink-500); font-size: 0.88rem; line-height: 1.5; }
.proto-claims code, .proto-run code { font-family: var(--font-mono); font-size: 0.76rem; color: var(--cy-700); background: var(--cy-50); border: 1px solid var(--cyan-border); padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.proto-run { margin-top: 16px; color: var(--ink-500); font-size: 0.88rem; }
@media (max-width: 760px) {
  .proto-facts { grid-template-columns: 1fr; }
  .proto-claims li { flex-direction: column; align-items: flex-start; }
}

/* Redes de partículas nas áreas funcionais (particles-lite.js, variante clara) */
.sp-net-host { position: relative; isolation: isolate; }
.sp-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* Swap: rede no topo do card, dissolvendo antes dos campos de valor */
.sp-net-swap {
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.85) 22%, transparent 58%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.85) 22%, transparent 58%);
}
/* Creator Studio: rede ao fundo, visível entre os cards, mais fraca nas bordas */
.sp-net-studio {
  border-radius: 24px; opacity: 0.9;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 35%, transparent 85%);
          mask-image: radial-gradient(ellipse at 50% 20%, #000 35%, transparent 85%);
}
#view-creator .creator-shell > .creator-card,
#view-creator .creator-shell > .creator-panel { position: relative; }
.sp-net-card {
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 30%, transparent 70%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 30%, transparent 70%);
}

/* Seletor de idioma (lista) — app e história */
.sp-has-select { padding: 0 !important; gap: 0 !important; }
.sp-lang-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 600 0.8rem var(--font-ui); letter-spacing: 0.01em;
  padding: 7px 28px 7px 12px; min-height: 34px; border-radius: 999px; border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A9C2CB' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: #E6F4F7;
}
.sp-lang-select option { color: #0B1C2C; background: #FFFFFF; }
.sp-lang-select:focus-visible { outline: 2px solid #6FD8EA; outline-offset: 2px; box-shadow: none; }

/* Produção (fora de localhost): ferramentas e conexões simuladas ficam ocultas */
.sp-prod .debugger-actions-panel,
.sp-prod #btnSimulateWcPairing,
.sp-prod #btnSimulateFallbackWallet { display: none !important; }

/* ===== Rodapé legal + modais de Termos e revisão de tx (2026-10-19) ===== */
.sp-legal-footer {
  max-width: 1200px; margin: 48px auto 0; padding: 24px 16px 40px;
  border-top: 1px solid rgba(11, 28, 44, 0.08);
  font-family: var(--font-ui); font-size: 0.8rem; line-height: 1.55; color: var(--ink-500);
}
.sp-legal-disclaimer { margin: 0 0 10px; max-width: 72ch; }
.sp-legal-facts { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 4px; }
.sp-legal-facts a, .sp-legal-link { color: var(--cy-700); text-decoration: underline; text-underline-offset: 2px; }
.sp-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.sp-legal-link {
  background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer;
}
.sp-legal-link:focus-visible, .sp-legal-tab:focus-visible { outline: 2px solid var(--cy-500); outline-offset: 3px; border-radius: 4px; }
.sp-legal-version { color: var(--ink-400); font-variant-numeric: tabular-nums; }

.sp-legal-card { max-width: 680px; width: calc(100vw - 32px); max-height: min(86vh, 900px); display: flex; flex-direction: column; border-radius: 24px; }
.sp-legal-meta { margin: 0 0 12px; font-size: 0.78rem; color: var(--ink-400); }
.sp-legal-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.sp-legal-tab {
  min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(11, 28, 44, 0.12);
  background: transparent; color: var(--ink-700); font: 600 0.85rem var(--font-ui); cursor: pointer;
  transition: background-color .25s var(--ease-fluid), color .25s var(--ease-fluid);
}
.sp-legal-tab.active { background: var(--cy-50); border-color: var(--cy-300); color: var(--cy-800); }
.sp-legal-body { overflow-y: auto; padding-right: 6px; color: var(--ink-700); font-size: 0.88rem; line-height: 1.6; }
.sp-legal-body h4 { margin: 16px 0 4px; font: 700 0.92rem var(--font-display); color: var(--ink-900); }
.sp-legal-body h4:first-child { margin-top: 0; }
.sp-legal-body p { margin: 0; }

.sp-txreview-card { max-width: 480px; width: calc(100vw - 32px); border-radius: 24px; }
.sp-txreview-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 4px 0 14px; font-size: 0.88rem; }
.sp-txreview-list dt { color: var(--ink-500); }
.sp-txreview-list dd { margin: 0; color: var(--ink-900); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-txreview-list dd small { display: block; font-weight: 400; color: var(--ink-500); margin-top: 2px; }
.sp-txreview-list a { color: var(--cy-700); }
.sp-txreview-note { margin: 0 0 10px; font-size: 0.8rem; color: var(--ink-500); }
@media (max-width: 480px) {
  .sp-txreview-list { grid-template-columns: 1fr; gap: 2px; }
  .sp-txreview-list dd { margin-bottom: 8px; }
}

/* =============================================================================
   SITE FINAL (2026-10-23) — temas escuro (padrão) e claro, acabamento premium,
   home (conceito C + prévia B), ticker (A), mapa de graduação ao vivo e v2.
   Fonte: marketing/design/acabamentos.html e assets/ds.css (paletas validadas no
   README de design com o validador da skill dataviz).
   Regras: vidro (backdrop-filter) só no que sobrepõe (navbar, tooltip, modal, toast,
   selos); movimento só em transform/opacity; tudo para com prefers-reduced-motion.
   ============================================================================= */

/* ------------------------------------------------------------- tokens --- */
:root {
  color-scheme: dark;
  /* Papéis (escuro, padrão) */
  --bg: #06121C;
  --surface: #0B1C2C;          /* cards: sólido, sem blur */
  --surface-2: #0F2334;        /* campo, hover */
  --surface-3: #14293C;        /* trilho, skeleton */
  --line: rgba(152, 165, 179, 0.14);
  --line-2: rgba(152, 165, 179, 0.24);
  --line-cy: rgba(52, 207, 228, 0.30);
  --fg: #F4FBFC;               /* 16,9:1 no card */
  --fg-2: #C3CDD6;             /* 10,7:1 */
  --fg-3: #98A5B3;             /* 6,9:1 (rótulo, nota) */
  --link: #6FD8EA;
  --up: #3CC796; --down: #F0707F; --warn: #EBB35E;
  --up-bg: rgba(60, 199, 150, 0.12); --down-bg: rgba(240, 112, 127, 0.12); --warn-bg: rgba(235, 179, 94, 0.12);
  --glass: rgba(11, 28, 44, 0.72);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --btn-fg: #04121B;           /* texto no gradiente da marca: 6,1–10,1:1 */
  /* Rampa ordinal do progresso até 4 ETH (validada, escuro sobre #0B1C2C) */
  --p1: #0A5A73; --p2: #0A86A1; --p3: #34CFE4; --p4: #A7E8F2; --pg: #5EEAD4;
  --chart-line: #34CFE4;

  /* Tokens antigos (style.css e camadas anteriores) apontando para os papéis */
  --bg-page: var(--bg);
  --bg-card: var(--surface);
  --bg-subtle: var(--surface-2);
  --bg-input: var(--surface-2);
  --border-light: var(--line);
  --cyan-subtle: rgba(52, 207, 228, 0.08);
  --cyan-border: var(--line-cy);
  --text-main: var(--fg);
  --text-muted: var(--fg-3);
  --text-subtle: var(--fg-3);
  --shadow-card: var(--shadow-1);
  --shadow-hover: var(--shadow-2);
  --shadow-sm: var(--shadow-1);
  --ring: 0 0 0 3px rgba(52, 207, 228, 0.28);

  /* Tipografia, espaço (base 4) e raio (10 / 14 / 20 / 24) */
  --fs-hero: clamp(40px, 5.2vw, 72px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 24px;
  --t-fast: 0.25s;
  --maxw: 1280px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F8FA; --surface: #FFFFFF; --surface-2: #F6F9FB; --surface-3: #E8EFF3;
  --line: rgba(11, 28, 44, 0.08); --line-2: rgba(11, 28, 44, 0.16); --line-cy: rgba(10, 159, 188, 0.30);
  --fg: #0B1C2C; --fg-2: #23364A; --fg-3: #4F6275; --link: #0A6B86;
  --up: #08694A; --down: #C2334A; --warn: #93600F; /* AA também sobre os fundos tingidos */
  --up-bg: rgba(14, 159, 110, 0.10); --down-bg: rgba(224, 72, 90, 0.10); --warn-bg: rgba(217, 146, 43, 0.12);
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-1: 0 1px 2px rgba(11, 28, 44, 0.05);
  --shadow-2: 0 1px 2px rgba(11, 28, 44, 0.04), 0 12px 32px -12px rgba(11, 28, 44, 0.14);
  /* Rampa clara validada: pede os tons #0A7A96 e #083F52 */
  --p1: #0A9FBC; --p2: #0A7A96; --p3: #0A5A73; --p4: #083F52; --pg: #0E9F6E;
  --chart-line: #0A86A1;
  --cyan-subtle: rgba(10, 159, 188, 0.07);
  --ring: 0 0 0 3px rgba(10, 159, 188, 0.22);
}

/* --------------------------------------------------------------- base --- */
html { background: var(--bg); }
body:not(.story) { background: var(--bg); color: var(--fg-2); font: 400 15px/1.55 var(--font-ui); }
body:not(.story)::before { background: radial-gradient(circle at 40% 40%, rgba(10, 107, 134, 0.30), rgba(10, 107, 134, 0) 65%); opacity: 0.6; }
body:not(.story)::after { background: radial-gradient(circle at 60% 60%, rgba(10, 90, 115, 0.18), rgba(10, 90, 115, 0) 65%); opacity: 0.6; }
:root[data-theme="light"] body:not(.story)::before { background: radial-gradient(circle at 40% 40%, rgba(52, 207, 228, 0.22), rgba(52, 207, 228, 0) 65%); opacity: 0.55; }
:root[data-theme="light"] body:not(.story)::after { background: radial-gradient(circle at 60% 60%, rgba(10, 107, 134, 0.12), rgba(10, 107, 134, 0) 65%); }
body:not(.story) h1, body:not(.story) h2, body:not(.story) h3, body:not(.story) h4 { color: var(--fg); text-wrap: balance; }
::selection { background: rgba(52, 207, 228, 0.35); color: var(--fg); }
* { scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
:focus-visible { outline: 2px solid var(--cy-400); outline-offset: 2px; }
:root[data-theme="light"] :focus-visible { outline-color: var(--cy-600); }
.btn:focus-visible, .mode-tab-btn:focus-visible, button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--cy-400); outline-offset: 2px; box-shadow: none;
}
:root[data-theme="light"] :is(.btn, button, a, [tabindex]):focus-visible { outline-color: var(--cy-600); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.main-container { max-width: var(--maxw); padding: 0 var(--s5); margin: var(--s6) auto var(--s7); }
.view-panel.active { animation: sp-panel-in 0.55s var(--ease-fluid) both; }
@keyframes sp-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.num, .v2-num, .v2-kpis dd, .v2-kv dd, .v2-amount { font-variant-numeric: tabular-nums; }
.ic { width: 20px; height: 20px; flex: none; } .ic-s { width: 16px; height: 16px; flex: none; } .ic-xs { width: 12px; height: 12px; flex: none; }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* ------------------------------------------------------ navbar (tinta) --- */
body:not(.story) .navbar { background: rgba(6, 18, 28, 0.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(152, 165, 179, 0.14); }
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-sig { display: block; height: 30px; width: auto; }
.sp-theme-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(111, 216, 234, 0.18); color: #CFE3E8; font: 600 0.8rem var(--font-ui); white-space: nowrap;
  transition: border-color var(--t-fast) var(--ease-fluid), background-color var(--t-fast) var(--ease-fluid);
}
.sp-theme-btn:hover { border-color: rgba(111, 216, 234, 0.45); color: #FFFFFF; }
.sp-theme-btn .sp-ic-moon { display: none; }
:root[data-theme="light"] .sp-theme-btn .sp-ic-sun { display: none; }
:root[data-theme="light"] .sp-theme-btn .sp-ic-moon { display: inline; }
body:not(.story) .network-badge { color: #CFE3E8 !important; }
.network-indicator.local { background-color: var(--warn); box-shadow: 0 0 0 3px rgba(235, 179, 94, 0.18); }
:root[data-theme="light"] .network-indicator.local { background-color: #EBB35E; }
.v2-beta-badge { font: 600 0.72rem/1 var(--font-ui); color: #F4FBFC; letter-spacing: 0.01em; border: 1px solid rgba(111, 216, 234, 0.35); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.network-indicator.live { background-color: #3CC796; }
@media (min-width: 1025px) and (max-width: 1360px) { .sp-theme-btn .sp-theme-txt { display: none; } .sp-theme-btn { padding: 0 10px; } }
@media (max-width: 1024px) {
  body:not(.story) .navbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .nav-left { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-right { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .sp-theme-btn .sp-theme-txt { display: none; }
  .sp-theme-btn { padding: 0 11px; min-height: 40px; }
}
@media (max-width: 560px) { .brand-sig { height: 26px; } .network-badge { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* ------------------------------------------------------ ticker (tinta) --- */
.sp-ticker { position: relative; display: flex; align-items: stretch; height: 40px; overflow: hidden; background: #081723; border-bottom: 1px solid rgba(152, 165, 179, 0.12); color: #A9C2CB; }
:root[data-theme="light"] .sp-ticker { background: #0A1A27; }
.sp-ticker-status { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 16px; text-decoration: none; color: #F4FBFC; font: 600 12px/1 var(--font-ui); white-space: nowrap; background: #081723; box-shadow: 14px 0 14px -6px #081723; }
:root[data-theme="light"] .sp-ticker-status { background: #0A1A27; box-shadow: 14px 0 14px -6px #0A1A27; }
.sp-ticker-status.is-retry .live i { background: #EBB35E; }
.sp-ticker-status.is-retry .live i::after { border-color: #EBB35E; }
.sp-ticker-viewport { flex: 1; min-width: 0; overflow: hidden; }
.sp-ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: sp-tick var(--dur, 60s) linear infinite; }
.sp-ticker:hover .sp-ticker-track, .sp-ticker:focus-within .sp-ticker-track { animation-play-state: paused; }
.sp-ticker.is-static .sp-ticker-track, .sp-ticker.is-loading .sp-ticker-track { animation: none; }
.tk-run { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
@keyframes sp-tick { to { transform: translateX(-50%); } }
.sp-ticker .tk { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-ui); color: #A9C2CB; white-space: nowrap; text-decoration: none; padding: 4px 6px; border-radius: 8px; }
.sp-ticker .tk:hover { color: #F4FBFC; background: rgba(255, 255, 255, 0.04); }
.sp-ticker .tk b { color: #F4FBFC; font-weight: 650; }
.sp-ticker .chg { font-variant-numeric: tabular-nums; font-weight: 600; border-radius: 4px; padding: 1px 3px; }
.sp-ticker .chg.up { color: #3CC796; } .sp-ticker .chg.down { color: #F0707F; }
.sp-ticker .tk-goal { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; padding: 1px 3px; font-variant-numeric: tabular-nums; }
.sp-ticker .tk-empty { color: #A9C2CB; }
.tk-seal { width: 16px; height: 16px; flex: none; }
.tk-skel { gap: 10px; }
.sp-ticker .sk { background: linear-gradient(90deg, #14293C 0%, rgba(152, 165, 179, 0.18) 50%, #14293C 100%); background-size: 200% 100%; }
@media (max-width: 560px) { .sp-ticker-status { padding: 0 10px 0 12px; } .sp-ticker-status-txt { display: none; } }

/* "ao vivo" (um momento de movimento por tela) */
.live { display: inline-flex; align-items: center; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #3CC796; position: relative; display: block; }
.live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3CC796; opacity: 0; animation: sp-ping 2.4s var(--ease-fluid) infinite; }
@keyframes sp-ping { 0% { transform: scale(0.5); opacity: 0.7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.live-line { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 12px/1.3 var(--font-ui); color: var(--fg-2); }
.live-line.is-retry { color: var(--warn); }
.live-line.is-retry .live i { background: var(--warn); }
.live-line.is-retry .live i::after { border-color: var(--warn); }

/* flash de número (micro-feedback quando o valor muda; cor + sinal no texto) */
.flash-up { animation: sp-fu 1.2s var(--ease-fluid); }
.flash-down { animation: sp-fd 1.2s var(--ease-fluid); }
@keyframes sp-fu { 0% { background: rgba(60, 199, 150, 0.30); } 100% { background: transparent; } }
@keyframes sp-fd { 0% { background: rgba(240, 112, 127, 0.30); } 100% { background: transparent; } }

/* ------------------------------------------------------------- botões --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); font: 650 14px/1.1 var(--font-ui); letter-spacing: -0.005em; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-primary-gradient, .btn-swap-action {
  background-image: var(--grad-brand); background-size: 100% 100%; color: var(--btn-fg); border: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 22px -10px rgba(52, 207, 228, 0.7);
  transition: transform var(--t-fast) var(--ease-fluid), box-shadow var(--t-fast) var(--ease-fluid);
}
.btn-primary-gradient:hover, .btn-swap-action:hover { transform: translateY(-1px); background-position: 0 0; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 30px -12px rgba(52, 207, 228, 0.85); color: var(--btn-fg); }
.btn-primary-gradient:active { transform: translateY(0) scale(0.98); }
.btn-primary-gradient:disabled, .btn-swap-action:disabled { background-image: none; background-color: var(--surface-3); color: var(--fg-3); box-shadow: none; transform: none; cursor: not-allowed; }
.btn-secondary-clean { background: rgba(111, 216, 234, 0.08); border: 1px solid var(--line-cy); color: var(--fg); transition: background-color var(--t-fast) var(--ease-fluid); }
.btn-secondary-clean:hover { background: rgba(111, 216, 234, 0.15); border-color: var(--line-cy); color: var(--fg); box-shadow: none; }
:root[data-theme="light"] .btn-secondary-clean { background: rgba(10, 159, 188, 0.06); color: var(--cy-800); }
:root[data-theme="light"] .btn-secondary-clean:hover { background: rgba(10, 159, 188, 0.12); color: var(--cy-800); }
.btn-ghost { background: transparent; color: var(--fg-2); border: 1px solid var(--line-2); transition: border-color var(--t-fast), color var(--t-fast); }
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-3); }
.btn:disabled, .btn[disabled] { cursor: not-allowed; }
.btn-secondary-clean:disabled { opacity: 0.55; }

/* ----------------------------------------------------------- cartões --- */
.v2-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-1); min-width: 0; color: var(--fg-2); }
.v2-card h2 { font: 750 20px/1.25 var(--font-display); letter-spacing: -0.02em; margin: 0 0 0.6rem; color: var(--fg); }
.v2-card h3 { font: 700 16px/1.3 var(--font-display); letter-spacing: -0.01em; margin: 0 0 0.6rem; color: var(--fg); }
.v2-card h4 { font: 650 14px/1.3 var(--font-ui); margin: 0.4rem 0; color: var(--fg-2); }
.v2-card + .v2-card, .v2-doc > .v2-card { margin-top: var(--s5); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.card-head h2, .card-head h3 { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.v2-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.v2-note { color: var(--fg-3); font-size: 13px; line-height: 1.55; margin: 0.5rem 0; }
.v2-muted { color: var(--fg-3); }
.v2-break { word-break: break-all; }
.v2-list { padding-left: 1.1rem; margin: 0.5rem 0; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.v2-back { color: var(--link); text-decoration: none; font-size: 0.86rem; }
.v2-back:hover, .v2-links a:hover, .v2-timeline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.v2-links { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.v2-links a, .v2-card a:not(.btn):not(.mini):not(.rk):not(.trk-row):not(.bb) { color: var(--link); }
.v2-kv { display: grid; grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.4fr); gap: 8px 14px; margin: 0.6rem 0; font-size: 14px; }
.v2-kv dt { color: var(--fg-3); }
.v2-kv dd { margin: 0; color: var(--fg); min-width: 0; overflow-wrap: anywhere; }
.v2-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); margin: 0.25rem 0 0.75rem; }
.v2-kpis div { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; }
.v2-kpis dt { color: var(--fg-3); font: 600 12px/1.3 var(--font-ui); }
.v2-kpis dd { margin: 6px 0 0; font: 750 22px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--fg); }

/* segmentado e chips */
.v2-seg { display: inline-flex; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
:root[data-theme="light"] .v2-seg { background: var(--surface-2); }
.v2-seg-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 9px; padding: 0 12px; min-height: 34px; font: 600 13px/1 var(--font-ui); color: var(--fg-3); cursor: pointer; white-space: nowrap; transition: background-color var(--t-fast) var(--ease-fluid), color var(--t-fast); }
.v2-seg-btn:hover { color: var(--fg); }
.v2-seg-btn.active { background: var(--surface-3); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
:root[data-theme="light"] .v2-seg-btn.active { background: #FFFFFF; box-shadow: 0 1px 2px rgba(11, 28, 44, 0.08), inset 0 0 0 1px var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font: 550 13px/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { border-color: var(--line-cy); color: var(--fg); background: rgba(111, 216, 234, 0.10); }
:root[data-theme="light"] .chip[aria-pressed="true"] { background: rgba(10, 159, 188, 0.08); color: var(--cy-800); }
.chip .n { color: var(--fg-3); font-variant-numeric: tabular-nums; }

/* campos */
.v2-input, input.v2-input, select.v2-input { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); padding: 10px 12px; font: 500 15px var(--font-ui); color: var(--fg); }
.v2-input::placeholder { color: var(--fg-3); opacity: 0.8; }
.v2-input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cy-500) !important; box-shadow: var(--ring) !important; }
select.v2-input option { background: var(--surface); color: var(--fg); }
.v2-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-bottom: 0.75rem; }
.v2-row .v2-input { flex: 1 1 260px; width: auto; }
.v2-check { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.v2-check input[type=checkbox] { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--cy-500); flex: none; }
.v2-field { display: grid; gap: 6px; font-size: 14px; color: var(--fg-2); }
.v2-form { display: grid; gap: 0.9rem; }
.v2-form label { display: grid; gap: 6px; font-size: 14px; color: var(--fg-2); }
.v2-form label.v2-check { display: inline-flex; }
.v2-count { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.v2-errors { color: var(--down); font-size: 14px; margin: 0; padding-left: 1.1rem; }
.v2-errors:empty { display: none; }

/* tabelas */
.v2-table-wrap { overflow-x: auto; }
.v2-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.v2-table th { text-align: left; font: 600 12px/1.2 var(--font-ui); color: var(--fg-3); padding: 0 10px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.v2-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--fg-2); }
.v2-table tbody tr:hover td { background: rgba(111, 216, 234, 0.03); }
.v2-table td a { color: inherit; text-decoration: none; }
.prog-cell { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.prog-cell .bar { width: 72px; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; position: relative; display: block; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #0A6B86, #34CFE4); }

/* token, selos, etiquetas */
.v2-tok { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.v2-tok-img { border-radius: 9px; flex: none; background: var(--surface-3); object-fit: cover; }
.v2-tok-txt { min-width: 0; overflow-wrap: anywhere; }
.v2-tok-txt strong { color: var(--fg); }
.v2-badge { font: 600 12px/1 var(--font-ui); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.v2-badge-ok { background: var(--up-bg); color: var(--up); }
.v2-badge-warn { background: var(--warn-bg); color: var(--warn); }
.v2-badge-bad { background: var(--down-bg); color: var(--down); }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: 999px; font: 600 12px/1 var(--font-ui); white-space: nowrap; border: 1px solid var(--line-2); color: var(--fg-2); }
.tag-grad { color: var(--pg); background: rgba(94, 234, 212, 0.10); border-color: rgba(94, 234, 212, 0.3); }
:root[data-theme="light"] .tag-grad { color: #08694A; background: rgba(14, 159, 110, 0.10); border-color: rgba(14, 159, 110, 0.3); }
.tag-warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.tag-down { color: var(--down); background: var(--down-bg); border-color: transparent; }
.tag .tk-seal { width: 14px; height: 14px; }

/* alertas */
.v2-alert { border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; line-height: 1.5; background: rgba(111, 216, 234, 0.07); color: var(--fg-2); border: 1px solid var(--line-cy); margin: 0.5rem 0; }
.v2-alert-warn { background: var(--warn-bg); border-color: rgba(235, 179, 94, 0.35); color: var(--warn); }
.v2-alert-ok { background: var(--up-bg); border-color: rgba(60, 199, 150, 0.3); color: var(--up); }
.v2-alert-bad { background: var(--down-bg); border-color: rgba(240, 112, 127, 0.4); color: var(--down); }
/* Token oficial descontinuado (ex.: $STEALTH → $STLTH): faixa no topo da página do token */
.v2-deprecated { border-width: 2px; padding: 12px 14px; }
.v2-deprecated strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--down); }
.v2-deprecated span { color: var(--fg-2); }
.v2-deprecated a { color: var(--down); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.v2-warn-text { color: var(--warn); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.45; margin: 0 0 8px; }
.alert .ic { width: 16px; height: 16px; margin-top: 1px; }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-down { background: var(--down-bg); color: var(--down); }
.alert b { color: var(--fg); font-weight: 650; }
.text-green, body:not(.story) .main-container .text-green { color: var(--up) !important; }
.text-red, body:not(.story) .main-container .text-red { color: var(--down) !important; }

/* skeleton (forma final; brilho de 1,6 s; parado com movimento reduzido) */
.sk { display: block; background: linear-gradient(90deg, var(--surface-3) 0%, rgba(152, 165, 179, 0.16) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: sp-shimmer 1.6s var(--ease-fluid) infinite; border-radius: 8px; }
@keyframes sp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------- home: dobra C --- */
.home-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s7); align-items: start; padding: var(--s8) 0 var(--s7); }
.home-mark { width: 112px; height: 112px; margin-top: 10px; filter: drop-shadow(0 30px 50px rgba(10, 159, 188, 0.35)); }
.home-hero h1 { font: 800 var(--fs-hero)/1.0 var(--font-display); letter-spacing: -0.035em; max-width: 17ch; margin: 0; color: var(--fg); }
.home-lede { font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 56ch; margin: var(--s5) 0 0; }
.home-ctas { display: flex; gap: 12px; margin-top: var(--s6); flex-wrap: wrap; align-items: center; }
.home-ctas .v2-note { margin: 0 0 0 8px; }
.home-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-proof > div { padding: var(--s6) var(--s5) var(--s6) 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home-proof > div + div { padding-left: var(--s5); border-left: 1px solid var(--line); }
.home-proof-ic { color: var(--cy-300); }
:root[data-theme="light"] .home-proof-ic { color: var(--cy-600); }
.home-fig { margin: 0; font: 800 64px/0.95 var(--font-display); color: var(--fg); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.home-fig small { font-size: 22px; color: var(--cy-300); letter-spacing: -0.01em; margin-left: 6px; }
:root[data-theme="light"] .home-fig small { color: var(--cy-700); }
.home-proof h3 { font: 700 17px/1.3 var(--font-display); margin: 0; color: var(--fg); }
.home-proof p:not(.home-fig) { margin: 0; font-size: 14px; color: var(--fg-3); max-width: 34ch; }
.home-proof a { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--link); text-decoration: none; font-weight: 600; min-height: 32px; }
.home-proof a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* home: prévia viva (B) */
.home-now { margin-top: var(--s8); }
.home-now-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.home-now-head h2 { font: 800 28px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 6px 0 0; }
.home-now-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s4); align-items: start; }
.home-side { display: flex; flex-direction: column; gap: var(--s4); }
.home-side .v2-card + .v2-card { margin-top: 0; }
.mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); text-decoration: none; min-height: 44px; }
.mini:first-child { border-top: 0; }
.mini b { color: var(--fg); }
.mini .num { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--fg-2); }
a.mini:hover b { color: var(--link); }
.home-story { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5); align-items: center; margin: var(--s7) 0 var(--s5); padding: var(--s5); border-radius: var(--r-lg); border: 1px solid var(--line-cy); background: radial-gradient(420px 220px at 0% 0%, rgba(52, 207, 228, 0.12), transparent 70%), var(--surface); }
.home-story h2 { font: 750 20px/1.25 var(--font-display); margin: 0 0 4px; }
.home-story p { margin: 0; color: var(--fg-3); font-size: 14px; }
.v2-telemetry { margin-top: var(--s5); }

/* -------------------------------------------------- mapa: moldura --- */
.mp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; padding: var(--s2) 0 var(--s4); }
.mp-head h1 { font: 800 clamp(30px, 3.4vw, 40px)/1.08 var(--font-display); letter-spacing: -0.02em; margin: 6px 0 0; }
.mp-lede { max-width: 80ch; font-size: 14.5px; }
.mp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-md); margin-bottom: var(--s3); }
.mp-bar[hidden] { display: none; }
.mp-div { width: 1px; height: 24px; background: var(--line-2); }
.mp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-sort { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-ui); color: var(--fg-3); }
.mp-alerts { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-ui); color: var(--fg-2); margin-left: auto; cursor: pointer; min-height: 36px; position: relative; }
.sw-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 34px; height: 20px; border-radius: 99px; background: var(--surface-3); position: relative; box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.sw i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg-3); transition: transform var(--t-fast) var(--ease-fluid); }
.sw-input:checked + .sw { background: rgba(52, 207, 228, 0.3); }
.sw-input:checked + .sw i { transform: translateX(14px); background: var(--cy-300); }
:root[data-theme="light"] .sw-input:checked + .sw i { background: var(--cy-600); }
.sw-input:focus-visible + .sw { outline: 2px solid var(--cy-400); outline-offset: 2px; }
.mp-search { margin: 0 0 var(--s3); }
.mp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s4); align-items: start; }
.mp-grid[hidden] { display: none; }
.mp-viz { position: relative; padding: var(--s4); border-radius: var(--r-xl); background: radial-gradient(60% 60% at 50% 45%, rgba(10, 107, 134, 0.14), transparent 70%), var(--surface); }
:root[data-theme="light"] .mp-viz { background: radial-gradient(60% 60% at 50% 45%, rgba(52, 207, 228, 0.08), transparent 70%), var(--surface); }
.mp-viz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mp-viz-head .v2-note { margin: 0; }
.mp-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.mp-legend .v2-note { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12px; color: var(--fg-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-p1 { background: var(--p1); } .lg-p2 { background: var(--p2); } .lg-p3 { background: var(--p3); } .lg-p4 { background: var(--p4); }
.mp-side { display: flex; flex-direction: column; gap: var(--s4); }
.mp-side .v2-card + .v2-card { margin-top: 0; }
.mp-side .card-head h2 { font-size: 16px; }
.mp-side .card-head h2 .ic-s { color: var(--cy-300); }
:root[data-theme="light"] .mp-side .card-head h2 .ic-s { color: var(--cy-600); }
.mp-side .v2-note { margin-top: 0; }
#mapAlerts.is-off { opacity: 0.55; }
.rk { display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg-2); min-height: 44px; }
.rk:hover .tok-name b { color: var(--link); }
.rk-i { font: 700 12px/1 var(--font-ui); color: var(--fg-3); text-align: center; font-variant-numeric: tabular-nums; }
.rk-v { color: var(--fg); font-size: 14px; }
.rk-flag { display: inline-flex; margin-left: 6px; vertical-align: -1px; }
.rk-flag.warn { color: var(--warn); } .rk-flag.down { color: var(--down); }
.tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tok-name { display: flex; flex-direction: column; min-width: 0; }
.tok-name b { color: var(--fg); font: 700 14px/1.25 var(--font-ui); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tok-name span { color: var(--fg-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-name .tag { min-height: 18px; font-size: 11px; padding: 0 6px; }
.mp-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: var(--s6) var(--s4); }
.mp-empty .row { justify-content: center; margin-top: 6px; }
.mp-empty h3 { margin: 0; font: 700 17px/1.3 var(--font-display); color: var(--fg); }
.mp-empty-art { position: relative; width: 92px; height: 64px; margin-bottom: 4px; }
.mp-empty-art span { position: absolute; border-radius: 50%; border: 1.5px dashed var(--line-2); }
.mp-empty-art span:nth-child(1) { width: 48px; height: 48px; left: 6px; top: 10px; }
.mp-empty-art span:nth-child(2) { width: 30px; height: 30px; left: 54px; top: 4px; border-color: var(--line-cy); }
.mp-empty-art span:nth-child(3) { width: 22px; height: 22px; left: 56px; top: 38px; }

/* ------------------------------------------------------------- bolhas --- */
.bb-map { position: relative; }
.bb-stage { position: relative; }
.bb { position: absolute; left: 0; top: 0; display: block; text-decoration: none; border-radius: 50%; transition: transform 0.6s var(--ease-fluid), width 0.6s var(--ease-fluid), height 0.6s var(--ease-fluid); --c: var(--p1); }
.bb.p1 { --c: var(--p1); } .bb.p2 { --c: var(--p2); } .bb.p3 { --c: var(--p3); } .bb.p4 { --c: var(--p4); } .bb.pg { --c: var(--pg); }
.bb-in {
  position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 42%, color-mix(in oklab, var(--c) 26%, var(--surface)) 0%, color-mix(in oklab, var(--c) 14%, var(--surface)) 62%, color-mix(in oklab, var(--c) 52%, var(--surface)) 100%);
  box-shadow: inset 0 0 0 2px var(--c), 0 0 24px -6px color-mix(in oklab, var(--c) 70%, transparent);
  color: var(--fg); font: 800 var(--fs, 14px)/1.05 var(--font-display); letter-spacing: -0.02em;
  animation: sp-float 7s ease-in-out var(--dly, 0s) infinite alternate;
  transition: box-shadow var(--t-fast) var(--ease-fluid);
}
:root[data-theme="light"] .bb-in {
  background: radial-gradient(circle at 50% 42%, color-mix(in oklab, var(--c) 10%, #fff) 0%, color-mix(in oklab, var(--c) 6%, #fff) 62%, color-mix(in oklab, var(--c) 22%, #fff) 100%);
  box-shadow: inset 0 0 0 2px var(--c), 0 6px 18px -10px color-mix(in oklab, var(--c) 60%, transparent);
}
.bb:hover .bb-in, .bb:focus-visible .bb-in { box-shadow: inset 0 0 0 3px var(--c), 0 0 0 4px color-mix(in oklab, var(--c) 30%, transparent), 0 0 40px -4px var(--c); }
.bb:hover, .bb:focus-visible { z-index: 3; outline: none; }
.bb:focus-visible .bb-in { outline: 2px solid var(--cy-400); outline-offset: 3px; }
.bb-sym { max-width: 88%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-sub { font: 600 calc(var(--fs, 14px) * 0.62)/1.2 var(--font-ui); color: var(--fg-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.bb-sub:empty { display: none; }
.bb-seal { position: absolute; top: -6px; right: -6px; width: 30%; max-width: 34px; min-width: 20px; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); }
.bb-alert { position: absolute; bottom: 4%; right: 8%; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #EBB35E; color: #1B1203; box-shadow: 0 0 0 2px var(--surface); }
.bb-alert.imp { background: #F0707F; color: #1F0509; }
.bb.is-new .bb-in { animation: sp-pop 0.6s var(--ease-fluid) both, sp-float 7s ease-in-out var(--dly, 0s) infinite alternate; }
@keyframes sp-float { from { transform: translate(0, 0); } to { transform: translate(calc(var(--amp, 3px) * 0.6), calc(var(--amp, 3px) * -1)); } }
@keyframes sp-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.bb-skel { position: relative; }
.bb-skel .sk { position: absolute; border-radius: 50%; }

/* tooltip do token (camada sobreposta: vidro permitido) */
.tip { position: absolute; z-index: 20; width: 290px; padding: 14px; border-radius: var(--r-md); background: rgba(8, 22, 34, 0.9); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--fg-2); font-size: 13px; animation: sp-tip-in 0.25s var(--ease-fluid) both; }
:root[data-theme="light"] .tip { background: rgba(255, 255, 255, 0.95); box-shadow: 0 20px 50px -20px rgba(11, 28, 44, 0.35); }
@keyframes sp-tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tip[hidden] { display: none; }
.tip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tip dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0; font-variant-numeric: tabular-nums; }
.tip dt { color: var(--fg-3); }
.tip dd { margin: 0; color: var(--fg); text-align: right; font-weight: 600; }
.tip dd.warn { color: var(--warn); }
.tip-actions { display: flex; gap: 8px; margin-top: 4px; }
.tip-actions .btn-primary-gradient { flex: 1; }
.tip-x { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); cursor: pointer; flex: none; }
.tip.sheet { position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; z-index: 990; border-radius: var(--r-lg) var(--r-lg) var(--r-md) var(--r-md); max-height: 70vh; overflow-y: auto; }
.tip.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: -4px auto 10px; }

/* ------------------------------------------------------- pista (ferramenta) --- */
.trk { display: block; }
.trk-scale, .trk-row { display: grid; grid-template-columns: 220px 1fr 84px; align-items: center; gap: 16px; }
.trk-scale { font: 600 11px/1 var(--font-ui); color: var(--fg-3); padding-bottom: 10px; }
.trk-scale div { position: relative; height: 18px; }
.trk-scale div span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.trk-scale div span:first-child { transform: none; }
.trk-scale div .fin { transform: translateX(-100%); display: inline-flex; align-items: center; gap: 6px; color: var(--pg); top: 0; }
:root[data-theme="light"] .trk-scale div .fin { color: #0B7F58; }
.trk-scale .r { text-align: right; }
.trk-row { padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg-2); }
.trk-row:hover .tok-name b { color: var(--link); }
.trk-tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trk-lane { position: relative; height: 28px; border-radius: 99px; display: block;
  background: linear-gradient(90deg, transparent calc(25% - 1px), var(--line) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), var(--line) calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), var(--line) calc(75% - 1px) 75%, transparent 75%), var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); }
.trk-lane::after { content: ""; position: absolute; right: 0; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: repeating-linear-gradient(180deg, var(--pg) 0 4px, transparent 4px 8px); }
.trk-tail { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--cy-400) 70%, transparent)); }
.trk-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--surface), 0 0 14px var(--c); --c: var(--p1); }
.trk-dot.p1 { --c: var(--p1); } .trk-dot.p2 { --c: var(--p2); } .trk-dot.p3 { --c: var(--p3); } .trk-dot.p4 { --c: var(--p4); }
.trk-vel { text-align: right; display: flex; flex-direction: column; }
.trk-vel b { color: var(--fg); font: 700 15px/1.1 var(--font-ui); }
.trk-vel span { font-size: 11px; color: var(--fg-3); }
.trk-more { margin-top: 12px; }

/* -------------------------------------------------- página do token --- */
.v2-token-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: var(--s5); align-items: start; }
.v2-token-side { display: grid; gap: var(--s4); position: sticky; top: 1rem; }
.v2-token-side > .v2-card + .v2-card { margin-top: 0; }
.v2-token-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-title-seal { width: 32px; height: 32px; }
.v2-grad-card { position: relative; overflow: hidden; }
.v2-grad-card.is-grad { border-color: rgba(94, 234, 212, 0.28); background: radial-gradient(420px 220px at 100% 0%, rgba(94, 234, 212, 0.10), transparent 70%), var(--surface); }
.v2-grad-seal { float: right; width: 72px; height: 72px; margin: 0 0 8px 16px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); }
.v2-progress { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; border: 1px solid var(--line); }
.v2-progress span { display: block; height: 100%; background: linear-gradient(90deg, #0A6B86, #34CFE4); transform-origin: 0 50%; }
.v2-swap { border-radius: var(--r-xl); padding: var(--s5); display: grid; gap: 0.75rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.v2-amount { font: 750 1.35rem var(--font-display); }
.v2-honest { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; }
.v2-wide { width: 100%; min-height: 48px; }
.v2-sm { padding: 0 12px; font-size: 13px; min-height: 40px; margin-top: 6px; }
.v2-stealth-box summary, .v2-transfer summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--fg-2); min-height: 32px; }
.v2-stealth-box .v2-list { font-size: 12.5px; word-break: break-all; }
.v2-token-extras > .v2-card { margin-top: var(--s5); }
.v2-token-main > .v2-card + .v2-card, .v2-token-main > .v2-token-extras { margin-top: var(--s5); }

/* gráfico de preço (só na página do token) */
.v2-chart { margin: 0; }
.v2-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--fg); }
.v2-chart-plot { position: relative; }
.v2-chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.v2-ch-grid { stroke: var(--line); stroke-width: 1; }
.v2-ch-axis { fill: var(--fg-3); font: 500 11px var(--font-ui); font-variant-numeric: tabular-nums; }
.v2-ch-line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; }
.v2-ch-dot { fill: var(--chart-line); stroke: var(--surface); stroke-width: 2; }
.v2-ch-dot.sell { fill: var(--surface); stroke: var(--chart-line); }
.v2-ch-hair { stroke: var(--fg-3); stroke-dasharray: 3 4; }
.v2-ch-tip { position: absolute; top: 0; transform: translateX(-50%); pointer-events: none; white-space: nowrap; padding: 6px 10px; border-radius: 10px; font-size: 12px; background: rgba(8, 22, 34, 0.9); color: #EAF8FB; border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
:root[data-theme="light"] .v2-ch-tip { background: rgba(255, 255, 255, 0.95); color: var(--fg); }

/* ---------------------------------------------------- lançar / criador --- */
.v2-two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.v2-two-col > .v2-card + .v2-card { margin-top: 0; }
.v2-nft { margin-top: var(--s4); }
.v2-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-transfer { margin-top: 0.75rem; display: grid; gap: 8px; }
.v2-addr { word-break: break-all; }
#lfDevBuyBlockWarn { margin-top: -0.4rem; }

/* transparência */
.v2-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0.5rem 0 1rem; }
.v2-flow-box { border: 1px solid var(--line-cy); background: rgba(111, 216, 234, 0.06); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 4px; flex: 1 1 180px; font-size: 13.5px; color: var(--fg-2); }
.v2-flow-box strong { font: 750 16px var(--font-display); color: var(--fg); }
.v2-flow-split { display: grid; gap: 8px; flex: 1 1 220px; }
.v2-flow-arrow { color: var(--link); font-weight: 700; }
.v2-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.v2-timeline li { padding: 6px 0; border-top: 1px solid var(--line); }
.v2-timeline a { color: var(--link); text-decoration: none; display: inline-block; min-width: 24px; }

/* --------------------------------------------- modais, toast, faixas --- */
.modal-overlay { background: rgba(2, 8, 14, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
:root[data-theme="light"] .modal-overlay { background: rgba(6, 18, 28, 0.38); }
.modal-card, .modal-welcome-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); color: var(--fg-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
:root[data-theme="light"] .modal-card { box-shadow: 0 30px 80px -20px rgba(6, 18, 28, 0.35); }
.modal-header h3 { color: var(--fg); }
.btn-close { color: var(--fg-3); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.btn-close:hover { color: var(--fg); background: var(--surface-2); }
.wallet-option-item { background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); min-height: 52px; }
.wallet-option-item:hover { background: var(--surface-3); border-color: var(--line-cy) !important; box-shadow: none; }
.wallet-name { color: var(--fg); }
.sp-txreview-list dt { color: var(--fg-3); }
.sp-txreview-list dd { color: var(--fg); }
.sp-txreview-list a, .sp-risk-box a { color: var(--link); }
.sp-txreview-note { color: var(--fg-3); }
.sp-risk-box { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid rgba(235, 179, 94, 0.4); border-radius: var(--r-sm); background: var(--warn-bg); color: var(--fg); }
.sp-risk-box h4 { margin: 0 0 6px; font: 700 15px var(--font-display); color: var(--fg); }
.sp-risk-box .v2-list { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }
.sp-risk-box .sp-risk-ctx { font-weight: 500; }
.sp-risk-accept { align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
#txReviewConfirm:disabled { opacity: 0.55; cursor: not-allowed; }
#modalTxReview .modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.toast { background: rgba(8, 22, 34, 0.92) !important; color: #EAF8FB !important; border: 1px solid rgba(152, 165, 179, 0.2) !important; border-radius: var(--r-md) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6) !important; }
.toast.show { display: block; max-width: min(460px, calc(100vw - 32px)); animation: sp-toast-in 0.45s var(--ease-fluid) both; }
@keyframes sp-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.error { border-color: rgba(240, 112, 127, 0.6) !important; }
.toast a { color: #6FD8EA; margin-left: 6px; }
.v2-banner { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid rgba(235, 179, 94, 0.3); padding: 10px 16px; font-size: 14px; text-align: center; }
.sp-demo-ribbon { background: rgba(8, 22, 34, 0.88); color: #E6F7FA; border: 1px solid rgba(152, 165, 179, 0.2); }

/* rodapé e páginas legais */
.sp-legal-footer { max-width: var(--maxw); margin: var(--s8) auto 0; padding: var(--s6) var(--s5) var(--s7); border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--fg-3); }
.sp-legal-facts a, .sp-legal-link { color: var(--link); }
.sp-legal-version, .sp-legal-meta { color: var(--fg-3); }
.sp-legal-nav a { padding: 6px 2px; min-height: 44px; display: inline-flex; align-items: center; color: var(--link); }
.sp-legal-nav a.active { color: var(--fg); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--cy-500); }
.sp-legal-body { color: var(--fg-2); font-size: 14.5px; line-height: 1.65; }
.sp-legal-body h4 { margin: 18px 0 6px; font: 700 15px var(--font-display); color: var(--fg); }
.sp-legal-body h5 { margin: 12px 0 4px; font: 700 14px var(--font-display); color: var(--fg); }
.sp-legal-body p { margin: 0 0 8px; }
.sp-legal-body .v2-list { margin: 0 0 8px; }
.sp-legal-body .sp-li-sub { margin-left: 1.25rem; list-style: circle; }
.sp-legal-body code { font-family: var(--font-mono); font-size: 0.82em; background: var(--surface-2); padding: 0 4px; border-radius: 4px; }
.sp-pending { background: var(--warn-bg); color: var(--warn); border-radius: 4px; padding: 0 3px; }
.sp-legal-table th, .sp-legal-table td { vertical-align: top; font-size: 13px; white-space: normal; }

/* --------------------------------------------------------- responsivo --- */
@media (max-width: 1100px) {
  .v2-token-grid, .v2-two-col, .home-now-grid, .mp-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-token-side { position: static; order: -1; }
  .mp-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .home-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .v2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mp-alerts { margin-left: 0; }
}
@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s6) 0 var(--s6); }
  .home-mark { width: 72px; height: 72px; margin: 0; }
  .home-proof { grid-template-columns: 1fr; }
  .home-proof > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .home-proof > div { padding: var(--s5) 0; }
  .home-story { grid-template-columns: auto minmax(0, 1fr); }
  .home-story .btn { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .main-container { padding: 0 var(--s4); margin-top: var(--s5); }
  .v2-card { padding: var(--s4); }
  .v2-kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .v2-kv dd { margin-bottom: 8px; }
  .v2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-table th:nth-child(2), .v2-table td:nth-child(2), .v2-table th:nth-child(5), .v2-table td:nth-child(5) { display: none; }
  .v2-flow-arrow { transform: rotate(90deg); width: 100%; text-align: center; }
  .v2-beta-badge { display: none; }
  .mp-bar { padding: 10px; gap: 10px; }
  .mp-div { display: none; }
  .mp-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .mp-sort { width: 100%; }
  .mp-sort > span { display: none; }
  .mp-viz { padding: 10px; border-radius: var(--r-lg); }
  .mp-side, .home-side { display: flex; }
  .trk-scale, .trk-row { grid-template-columns: 1fr 64px; gap: 8px 12px; }
  .trk-row .trk-tok { grid-column: 1 / -1; }
  .trk-scale > :first-child { display: none; }
  .trk-scale div span:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .home-hero h1 { font-size: 42px; }
  .home-lede { font-size: 16px; }
  .home-fig { font-size: 52px; }
  .home-ctas .btn { flex: 1 1 auto; }
  .home-ctas .v2-note { margin: 0; flex-basis: 100%; }
  .home-now-head h2 { font-size: 24px; }
  .mp-head h1 { font-size: 28px; }
  .tip-actions .btn { min-height: 44px; }
  .mp-head > .v2-seg { width: 100%; }
  .mp-head > .v2-seg .v2-seg-btn, .mp-viz-head .v2-seg .v2-seg-btn { flex: 1; justify-content: center; }
  .mp-viz-head .v2-seg { width: 100%; }
}

/* -------------------------------------------------- movimento reduzido --- */
@media (prefers-reduced-motion: reduce) {
  .sp-ticker-track { animation: none !important; }
  .sp-ticker-viewport { overflow-x: auto; scrollbar-width: none; }
  .sp-ticker .tk-run[aria-hidden="true"] { display: none; }
  .bb, .bb-in, .bb.is-new .bb-in { transition: none !important; animation: none !important; }
  .live i::after { display: none; }
  .sk { animation: none; }
  .flash-up, .flash-down, .tip, .toast.show, .view-panel.active { animation: none !important; }
}

/* Cabeçalho no celular: marca + "Conectar" na 1ª linha, seções na 2ª, controles numa 3ª linha curta */
@media (max-width: 1024px) {
  body:not(.story) .navbar { position: relative; }
  .brand-logo { align-self: flex-start; min-height: 40px; }
  .nav-right { flex-wrap: nowrap; align-items: center; }
  .nav-right .btn-connect { position: absolute; top: 10px; right: 16px; min-height: 40px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .nav-story-link span { display: none; }
  .nav-story-link { padding-left: 11px !important; padding-right: 11px !important; min-height: 40px; }
  .network-badge { min-height: 40px; }
}
@media (max-width: 400px) { .network-badge { max-width: 118px; } }

/* =============================================================================
   HOME D · PARTÍCULAS VIVAS (2026-10-23) — campo em canvas na primeira dobra (v2/field.mjs),
   faixa de confiança, "Eventos on-chain" (alternativa em texto) e "Como ler o mapa".
   O canvas lê as cores dos tokens (--p1…--pg, --up, --down, --fg, --link) e relê ao trocar de tema.
   ============================================================================= */
.home-d { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: center; padding: var(--s7) 0 var(--s6); }
.home-d h1 { font: 800 clamp(38px, 4.2vw, 60px)/1.02 var(--font-display); letter-spacing: -0.035em; max-width: 14ch; margin: 14px 0 0; color: var(--fg); }
.home-d .home-lede { font-size: 17px; max-width: 44ch; margin-top: var(--s4); }
.home-d .home-ctas { margin-top: var(--s5); }
.home-d-copy > .v2-note { margin: 12px 0 0; }
.pf-key { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 22px; font-size: 13px; color: var(--fg-2); }
.pf-key li { display: inline-flex; align-items: center; gap: 8px; }
.pf-key svg, .pf-key img { width: 18px; height: 18px; flex: none; }
.k-up { fill: var(--up); } .k-up-o { fill: none; stroke: var(--up); stroke-opacity: 0.45; }
.k-down { fill: var(--down); } .k-down-o { fill: none; stroke: var(--down); stroke-opacity: 0.45; }
.k-core { fill: var(--p3); } .k-ring { fill: none; stroke: var(--fg); stroke-opacity: 0.55; stroke-dasharray: 2 3; }
.k-top { fill: var(--fg); } .k-low { fill: var(--link); }
.home-d-field { position: relative; height: 560px; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(70% 60% at 55% 50%, rgba(10, 107, 134, 0.2), transparent 72%); }
:root[data-theme="light"] .home-d-field { background: radial-gradient(70% 60% at 55% 50%, rgba(52, 207, 228, 0.12), transparent 72%); }
.pf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pf-hits { position: absolute; inset: 0; }
.pf-hit { position: absolute; display: block; border-radius: 50%; }
.pf-hit:focus-visible { outline: 2px solid var(--cy-300); outline-offset: 4px; }
:root[data-theme="light"] .pf-hit:focus-visible { outline-color: var(--cy-600); }
.pf-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: var(--s5); text-align: center; }
.pf-msg[hidden] { display: none; }
.pf-msg h3 { margin: 0; font: 750 20px/1.25 var(--font-display); color: var(--fg); }
.pf-msg .v2-note { max-width: 40ch; margin: 0; }

.home-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-trust > div { display: flex; gap: 12px; align-items: flex-start; padding: 18px var(--s4) 18px 0; min-width: 0; }
.home-trust > div + div { padding-left: var(--s4); border-left: 1px solid var(--line); }
.home-trust .ic { width: 36px; height: 36px; padding: 8px; flex: none; border-radius: 10px; color: var(--cy-300); background: rgba(111, 216, 234, 0.08); box-shadow: inset 0 0 0 1px var(--line-cy); }
:root[data-theme="light"] .home-trust .ic { color: var(--cy-700); background: rgba(10, 159, 188, 0.07); }
.home-trust .w .ic { color: var(--warn); background: var(--warn-bg); box-shadow: inset 0 0 0 1px rgba(235, 179, 94, 0.3); }
.home-trust p { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--fg-3); min-width: 0; }
.home-trust b { color: var(--fg); font-size: 14px; font-weight: 650; }
.home-trust a { color: var(--link); font-weight: 600; text-decoration: none; }
.home-trust a:hover { text-decoration: underline; text-underline-offset: 3px; }

.home-lower { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s4); margin: var(--s6) 0 var(--s7); align-items: start; }
.home-lower > .v2-card { margin-top: 0; }
.home-lower .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.home-lower .card-head .v2-note { margin: 0; }
.ev-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ev { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ev-k { width: 10px; height: 10px; border-radius: 50%; justify-self: center; display: block; }
.ev-buy .ev-k { background: var(--up); }
.ev-sell .ev-k { background: var(--down); }
.ev-launch .ev-k { background: var(--p3); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--fg-3); }
.ev-grad .ev-k { width: 16px; height: 16px; }
.ev-grad .ev-k img { display: block; }
.ev-stealth .ev-k { background: linear-gradient(var(--fg) 0 45%, transparent 45% 55%, var(--link) 55%); }
.ev-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-3); }
.ev-what b { color: var(--fg); font-weight: 650; }
.ev-what a { color: var(--link); font-weight: 600; text-decoration: none; }
.ev-amt { color: var(--fg); }
.ev-blk { font: 500 12px/1.3 var(--font-mono); color: var(--fg-3); text-decoration: none; white-space: nowrap; }
.ev-blk:hover, .ev-what a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ev-ago { font-family: var(--font-ui); }
.ev.is-new { animation: sp-ev-in 0.6s var(--ease-fluid); }
@keyframes sp-ev-in { from { opacity: 0; transform: translateY(-4px); } }
.read-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 8px 0 0; }
.read-grid dt { color: var(--fg); font: 650 14px/1.3 var(--font-ui); }
.read-grid dd { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.read-ramp { margin-top: 6px; gap: 10px; }

@media (max-width: 1100px) {
  .home-d { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-top: var(--s6); }
  .home-d-field { height: 460px; }
  .home-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-trust > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .home-trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .home-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .home-d h1 { font-size: 36px; }
  .home-d .home-lede { font-size: 15.5px; }
  .home-d-field { height: 380px; }
  .pf-key { grid-template-columns: minmax(0, 1fr); }
  .home-trust { grid-template-columns: minmax(0, 1fr); }
  .home-trust > div, .home-trust > div + div { padding-left: 0; border-left: 0; }
  .home-trust > div + div { border-top: 1px solid var(--line); }
  .read-grid { grid-template-columns: minmax(0, 1fr); }
  .ev { grid-template-columns: 18px minmax(0, 1fr) auto; row-gap: 2px; }
  .ev-blk { grid-column: 2 / -1; min-height: 24px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ev.is-new { animation: none; }
}

/* =============================================================================
   CABEÇALHO COMPACTO (2026-10-23) — uma linha só no desktop (≥ 1100 px): logo + selo "Beta" à esquerda,
   seções no centro, ações à direita (ícones com aria-label e tooltip). Abaixo de 1100 px: logo + carteira +
   menu hambúrguer, que abre as seções e os controles. Fixo no topo, fundo em tinta translúcida.
   O aviso de rede/contratos virou um ponto de status (texto no title e na faixa abaixo do cabeçalho).
   ============================================================================= */
body:not(.story) .navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-start;
  gap: 10px; row-gap: 0; min-height: 60px; padding: 8px 20px;
  background: rgba(6, 18, 28, 0.82);
}
body:not(.story) .navbar::after { content: none; display: none; }
body:not(.story) .nav-left, body:not(.story) .nav-right { display: contents; }
body:not(.story) .brand-logo { order: 0; flex: none; align-self: center; min-height: 0; }
.brand-mark-sm { display: none; width: 32px; height: 32px; }
body:not(.story) .v2-beta-badge { order: 1; flex: none; display: inline-flex; align-items: center; font: 650 0.68rem/1 var(--font-ui); padding: 4px 8px; color: #F4FBFC; border-color: rgba(235, 179, 94, 0.55); background: rgba(235, 179, 94, 0.1); cursor: help; }
body:not(.story) .mode-switcher-container { order: 2; margin: 0 auto; flex: 0 1 auto; min-width: 0; }
body:not(.story) .mode-tab-btn { white-space: nowrap; padding: 7px 14px; font-size: 0.84rem; gap: 7px; }
body:not(.story) .nav-story-link { order: 3; }
body:not(.story) .network-badge { order: 4; }
body:not(.story) .sp-theme-btn { order: 5; }
body:not(.story) .lang-selector { order: 6; }
body:not(.story) .btn-connect { order: 7; flex: none; white-space: nowrap; }
.sp-menu-btn { order: 8; display: none; }
/* Ícones redondos de 36 px (44 px no celular) */
body:not(.story) .nav-story-link, body:not(.story) .network-badge, body:not(.story) .sp-theme-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 36px; height: 36px; min-height: 36px; max-width: none; padding: 0 !important; border-radius: 999px; overflow: visible;
}
body:not(.story) .nav-story-link span, body:not(.story) .sp-theme-btn .sp-theme-txt { display: none; }
#networkNameLabel { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body:not(.story) .network-badge { position: relative; cursor: help; }
body:not(.story) .network-badge .network-indicator { margin: 0; }
.network-indicator.off { background-color: #EBB35E; box-shadow: 0 0 0 3px rgba(235, 179, 94, 0.2); }
.network-indicator.demo { background-color: #EBB35E; box-shadow: 0 0 0 3px rgba(235, 179, 94, 0.35); }
body:not(.story) .lang-selector { flex: none; padding: 0 !important; border-radius: 999px; }
body:not(.story) .lang-selector .sp-lang-select { min-height: 36px; padding: 0 26px 0 12px; background-position: right 10px center; }
body:not(.story) .btn-connect { min-height: 38px; padding: 0 16px !important; font-size: 0.86rem; }
body:not(.story) .btn-connect:disabled { opacity: 0.55; cursor: not-allowed; }
/* Telas médias: primeiro saem os ícones das seções, depois o espaço entre elas */
@media (min-width: 1100px) and (max-width: 1439px) {
  body:not(.story) .mode-tab-btn .icon-svg { display: none; }
  body:not(.story) .mode-tab-btn { padding: 7px 11px; font-size: 0.82rem; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
  body:not(.story) .navbar { gap: 8px; padding: 8px 14px; }
  body:not(.story) .mode-switcher-container { gap: 0; }
  body:not(.story) .mode-tab-btn { padding: 7px 9px; font-size: 0.8rem; }
  body:not(.story) .btn-connect { padding: 0 12px !important; font-size: 0.82rem; }
  body:not(.story) .btn-connect .icon-svg-sm { display: none; }
}
/* < 1100 px: logo + carteira + menu; o menu abre por baixo, no fluxo (empurra o conteúdo) */
@media (max-width: 1099px) {
  body:not(.story) .navbar { flex-wrap: wrap; gap: 8px; padding: 8px 16px; min-height: 56px; position: sticky; }
  body:not(.story) .navbar:not(.is-open) :is(.mode-switcher-container, .nav-story-link, .network-badge, .sp-theme-btn, .lang-selector) { display: none; }
  body:not(.story) .btn-connect { position: static; margin-left: auto; min-height: 44px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .sp-menu-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(111, 216, 234, 0.18); color: #E6F4F7;
  }
  .sp-menu-btn path { transition: transform 0.25s var(--ease-fluid), opacity 0.25s; transform-origin: 12px 12px; }
  .navbar.is-open .sp-menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
  .navbar.is-open .sp-menu-btn .l2 { opacity: 0; }
  .navbar.is-open .sp-menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }
  body:not(.story) .navbar.is-open .mode-switcher-container {
    order: 20; flex: 0 0 100%; display: flex; flex-direction: column; align-items: stretch; margin: 6px 0 0; padding: 6px; border-radius: 14px; width: 100%;
  }
  body:not(.story) .navbar.is-open .mode-tab-btn { justify-content: flex-start; min-height: 46px; padding: 10px 14px; font-size: 1rem; white-space: normal; text-align: left; }
  body:not(.story) .navbar.is-open .mode-tab-btn .icon-svg { display: inline-block; }
  body:not(.story) .navbar.is-open .sp-tab-indicator { display: none; }
  body:not(.story) .navbar.is-open .mode-switcher-container.sp-has-indicator .mode-tab-btn.active { background: rgba(111, 216, 234, 0.16); color: #FFFFFF; }
  body:not(.story) .navbar.is-open :is(.nav-story-link, .network-badge, .sp-theme-btn) { width: auto; min-height: 44px; height: auto; padding: 8px 14px !important; justify-content: flex-start; }
  body:not(.story) .navbar.is-open .nav-story-link { order: 21; }
  body:not(.story) .navbar.is-open .sp-theme-btn { order: 22; }
  body:not(.story) .navbar.is-open .lang-selector { order: 23; }
  body:not(.story) .navbar.is-open .network-badge { order: 24; flex: 1 1 100%; white-space: normal; }
  body:not(.story) .navbar.is-open :is(.nav-story-link span, .sp-theme-btn .sp-theme-txt) { display: inline; }
  body:not(.story) .navbar.is-open #networkNameLabel { position: static; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; }
  body:not(.story) .navbar.is-open .lang-selector .sp-lang-select { min-height: 44px; }
}
@media (max-width: 480px) {
  body:not(.story) .brand-sig { display: none; }
  .brand-mark-sm { display: block; }
  body:not(.story) .btn-connect { padding: 0 12px !important; max-width: 52vw; }
}
@media (prefers-reduced-motion: reduce) { .sp-menu-btn path { transition: none; } }

/* =============================================================================
   SEM CONTRATOS E DEMONSTRAÇÃO (2026-10-23)
   ============================================================================= */
.live-line.is-off, .live-line.is-demo { color: var(--warn); }
.live-line.is-off .live i, .live-line.is-demo .live i, .sp-ticker.is-off .live i, .sp-ticker.is-demo .live i { background: #EBB35E; }
.live-line.is-off .live i::after, .sp-ticker.is-off .live i::after { display: none; }
.live-line.is-demo .live i::after, .sp-ticker.is-demo .live i::after { border-color: #EBB35E; }
.sp-ticker.is-off .tk-empty { color: #A9C2CB; font-style: normal; padding-left: 14px; }
.v2-banner a, .v2-banner-demo { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* Estado de espera da home: logo + órbitas decorativas, texto embaixo */
.pf-idle .pf-idle-msg { justify-content: flex-end; padding-bottom: clamp(28px, 7%, 56px); gap: 10px; pointer-events: none; }
.pf-idle .pf-idle-msg > * { pointer-events: auto; }
.pf-idle .pf-idle-msg .v2-note { max-width: 46ch; }
.pf-idle-demo { font: 600 13px/1.2 var(--font-ui); color: var(--link); text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; }
.v2-demo-link { display: inline-block; margin-top: 6px; font: 600 13px/1.2 var(--font-ui); color: var(--link); text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.v2-pre-empty { padding: var(--s5) var(--s4); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.v2-pre-empty .v2-note { margin: 0; }
.v2-pre-note { margin-top: var(--s3); }
/* Faixa fixa da demonstração (todas as páginas) */
.sp-demo-band {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); text-align: center;
  background: repeating-linear-gradient(135deg, #EBB35E 0 14px, #E2A646 14px 28px); color: #1B1205;
  font: 600 14px/1.3 var(--font-ui); box-shadow: 0 -8px 24px -12px rgba(6, 18, 28, 0.6);
}
.sp-demo-band strong { font-weight: 800; letter-spacing: 0.01em; }
.sp-demo-band a { color: #1B1205; text-decoration: underline; text-underline-offset: 3px; font-weight: 650; padding: 4px 2px; }
.sp-demo-band a:focus-visible { outline: 2px solid #06121C; outline-offset: 2px; }
.sp-demo-band-ic { display: inline-flex; }
body.is-demo { padding-bottom: 64px; }
body.is-demo .toast { bottom: 76px; }
.v2-swap.is-demo-off { display: flex; flex-direction: column; gap: var(--s3); }
