:root {
  --bg: #050607;
  --surface: rgba(15, 18, 24, 0.9);
  --surface-soft: rgba(255,255,255,0.045);
  --border: rgba(255,255,255,0.1);
  --border-strong: rgba(243, 180, 54, 0.42);
  --text: #f7f4eb;
  --muted: #aaa8a4;
  --faint: #7b7872;
  --gold: #f3b436;
  --green: #64d26f;
  --red: #ff6b6b;
  --blue: #58a6ff;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --radius-sm: 6px;
  --dashboard-width: 1800px;
  --dashboard-gutter: clamp(16px, 2vw, 28px);
  --content-max-width: 1380px;
  --reading-max-width: 760px;
  --section-space-desktop: 120px;
  --section-space-tablet: 88px;
  --section-space-mobile: 64px;
  --block-gap-large: 40px;
  --block-gap-medium: 24px;
  --block-gap-small: 14px;
  --home-section-gap: clamp(72px, 7vw, 120px);
  --functional-section-gap: clamp(48px, 5vw, 80px);
  --interactive-transition: transform .18s cubic-bezier(.22, .72, .2, 1), border-color .18s ease, box-shadow .18s ease, background-color .18s ease, filter .18s ease;
  --interactive-shadow: 0 18px 42px rgba(0,0,0,.4), 0 0 22px rgba(243,180,54,.055);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
*::before,
*::after { box-sizing: border-box; }
img,
svg { max-width: 100%; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-size: 13.5px;
  background:
    linear-gradient(135deg, rgba(243,180,54,0.12), transparent 28rem),
    linear-gradient(215deg, rgba(88,166,255,0.1), transparent 32rem),
    var(--bg);
  overflow-x: hidden;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 76%);
  pointer-events: none;
}

.topbar {
  width: min(var(--dashboard-width), calc(100% - (var(--dashboard-gutter) * 2)));
  margin: 0 auto;
}

.app-shell,
.footer {
  width: min(var(--content-max-width), calc(100% - (var(--dashboard-gutter) * 2)));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 200px) minmax(520px, 1fr) auto;
  grid-template-areas: "brand nav market";
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  margin-bottom: 14px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(5, 6, 7, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 45px rgba(0,0,0,0.3);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(243, 180, 54, .2));
}
.brand-mark,
.donation-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: #070707;
  background: linear-gradient(135deg, var(--gold), #ffe9a8);
  font-weight: 900;
  box-shadow: 0 0 30px rgba(243,180,54,0.22);
  flex: 0 0 auto;
}
.brand strong { display: block; }
.brand small { color: var(--muted); font-size: 0.78rem; }

.primary-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: visible;
  min-width: 0;
}
.nav-item {
  position: relative;
  min-width: 0;
}
.topbar-market {
  grid-area: market;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
  margin-left: auto;
}
.ticker-pair,
.currency-toggle {
  min-height: 34px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2);
}
.ticker-pair span,
.currency-toggle span {
  color: var(--muted);
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.ticker-pair strong {
  color: var(--gold);
  font-size: .78rem;
  white-space: nowrap;
}
.currency-toggle select {
  min-height: 20px;
  margin: 0;
  padding: 0 22px 0 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
}
#tickerStatus {
  color: #ffe7ac;
  min-width: max-content;
  line-height: 1.25;
  font-size: .74rem;
}
#tickerStatus:empty { display: none; }
.tab-link {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
  font-size: .82rem;
  border: 1px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 10, 13, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity .18s ease, transform .18s ease;
}
.submenu a {
  display: block;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: .86rem;
  white-space: nowrap;
}
.submenu a:hover {
  color: var(--text);
  background: rgba(243,180,54,0.1);
}
.has-menu:hover .submenu,
.has-menu:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.tab-link:hover,
.tab-link.active {
  color: var(--text);
  background: rgba(243,180,54,0.12);
  border-color: rgba(243,180,54,0.3);
}
.nav-link-locked { gap: 6px; }
.nav-link-copy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 5px;
  line-height: 1.05;
}
.nav-link-copy small {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: var(--faint);
  font-size: .54rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-lock {
  position: relative;
  width: 9px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .72;
}
.nav-lock::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

main { position: relative; z-index: 1; }
.tab-panel { display: none; padding-bottom: 20px; }
.tab-panel.active { display: block; }
.anchor-target,
[id^="mercado-"],
[id^="calculadoras-"],
[id^="carteira-"],
[id^="produtos-"],
[id^="comunidade-"],
[id^="apoie-"] {
  scroll-margin-top: 100px;
}
.anchor-target {
  display: block;
  height: 0;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.8fr);
  gap: 10px;
}

.hero-copy,
.hero-panel,
.warning-strip article,
.tool-card,
.portfolio-card,
.product-category,
.community-card,
.development-card,
.donation-card,
.suggestion-card,
.checkin-card,
.hub-card,
.price-card,
.allocation-panel,
.opportunity-panel,
.status-banner,
.disclaimer-box {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-copy {
  padding: clamp(18px, 2vw, 28px);
  position: relative;
  overflow: hidden;
}
.hero-copy:after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -38%;
  width: 520px;
  height: 320px;
  background: radial-gradient(circle, rgba(243,180,54,0.12), transparent 66%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  border: 1px solid rgba(243,180,54,0.22);
  background: rgba(243,180,54,0.08);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 800;
}
.eyebrow span,
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

h1 {
  margin: 10px 0 8px;
  font-size: 2.35rem;
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 940px;
}
h2 {
  margin: 7px 0;
  font-size: 1.42rem;
  letter-spacing: 0;
}
h3 { margin: 0 0 6px; font-size: .96rem; }
p { margin-top: 0; }

.hero p,
.section-heading p,
.tool-card p,
.portfolio-card p,
.product-category p,
.community-card p,
.suggestion-card p,
.checkin-card p,
.small-note,
.warning-strip p,
.price-card small,
.disclaimer-box,
.status-banner,
.risk-note p {
  color: var(--muted);
  line-height: 1.5;
}
.hero p { max-width: 620px; font-size: .9rem; }
.hero-subtitle {
  color: var(--text) !important;
  font-size: 1.02rem !important;
  line-height: 1.35 !important;
  max-width: 620px;
}

.hero-actions,
.donation-controls,
.market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.hero-actions { margin-top: 14px; }

.primary-button,
.secondary-button,
.swap-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
  transition: var(--interactive-transition), opacity .18s ease;
}
.primary-button {
  color: #080807;
  background: linear-gradient(135deg, var(--gold), #ffe6a4);
}
.secondary-button,
.swap-button {
  color: var(--text);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
}
.primary-button:hover,
.secondary-button:hover,
.swap-button:hover { transform: translateY(-1px); }
button:disabled { opacity: .62; cursor: not-allowed; }
button:disabled:hover { transform: none; }
.full { width: 100%; }
.link-slot { display: contents; }
.is-disabled {
  opacity: .58;
  cursor: not-allowed;
  pointer-events: none;
}

/* Feedback compartilhado apenas por controles e paineis com interacao real. */
.asset-filter,
.view-toggle button,
.quick-converter button,
.opportunity-summary button,
.link-list a,
.follow-card,
.product-video-link,
#panel-mercado .filter-panel,
#panel-mercado .view-panel,
#panel-mercado .converter-card,
#panel-calculadoras .tool-card,
#panel-carteira .portfolio-card,
#panel-comunidade .community-card,
#panel-comunidade .course-preview,
#panel-apoie .donation-card,
#panel-apoie .suggestion-card,
#panel-apoie .checkin-card {
  transition: var(--interactive-transition);
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:not(:disabled):not(.is-disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 10px 24px rgba(243,180,54,.14);
  }
  .secondary-button:not(:disabled):not(.is-disabled):hover,
  .swap-button:not(:disabled):hover,
  .product-video-link[href]:hover {
    transform: translateY(-2px);
    border-color: rgba(243,180,54,.34);
    background-color: rgba(243,180,54,.065);
    box-shadow: 0 10px 24px rgba(0,0,0,.28), 0 0 16px rgba(243,180,54,.045);
  }
  #panel-home .home-image-action:not(.is-disabled):hover {
    background: rgba(243,180,54,.045);
    box-shadow: inset 0 0 0 1px rgba(243,180,54,.24), 0 8px 22px rgba(0,0,0,.16);
  }
  #panel-mercado .asset-filter:hover,
  #panel-mercado .view-toggle button:not(.active):hover,
  #panel-mercado .quick-converter button:hover,
  #panel-carteira .opportunity-summary button:not(.active):hover,
  .link-list a[href]:hover,
  .follow-card[href]:hover {
    transform: translateY(-1px);
    border-color: rgba(243,180,54,.34);
    background-color: rgba(243,180,54,.065);
    box-shadow: 0 9px 20px rgba(0,0,0,.24);
  }
  #panel-mercado .filter-panel:focus-within,
  #panel-mercado .view-panel:focus-within,
  #panel-mercado .converter-card:hover,
  #panel-mercado .converter-card:focus-within,
  #panel-calculadoras .tool-card:hover,
  #panel-calculadoras .tool-card:focus-within,
  #panel-carteira .portfolio-card:has(a[href], button:not(:disabled)):hover,
  #panel-comunidade .community-card:has(a[href], button:not(:disabled)):hover,
  #panel-comunidade .course-preview:has(a[href], button:not(:disabled)):hover,
  #panel-apoie .donation-card:focus-within,
  #panel-apoie .suggestion-card:has(a[href], button:not(:disabled)):hover,
  #panel-apoie .checkin-card:has(button:not(:disabled)):hover {
    transform: translateY(-2px);
    border-color: rgba(243,180,54,.28);
    box-shadow: var(--interactive-shadow);
  }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.trust-row span {
  color: var(--muted);
  padding: 6px 9px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
  font-size: .8rem;
}

.hero-panel {
  padding: 13px;
  align-self: stretch;
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.market-mini { display: grid; gap: 6px; margin: 10px 0; }
.market-mini div,
.dashboard-stat,
.projection-grid div,
.price-values div,
.retirement-results div,
.portfolio-card dl div,
.checkin-stats div {
  background: rgba(0,0,0,0.24);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.market-mini div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
}
.market-mini span { color: var(--gold); font-weight: 850; }
.dashboard-stat { padding: 16px; }
.dashboard-stat span,
.dashboard-stat small,
.muted { color: var(--muted); }
.dashboard-stat strong {
  display: block;
  margin: 6px 0;
  font-size: 1.16rem;
}

.section-heading { margin: 16px 0 9px; }
.tab-panel > .section-heading:first-child { margin-top: 0; }
.compact-heading { margin-top: 20px; }
.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}
.section-heading span,
.product-category span,
.hub-card span,
.price-card span {
  display: inline-block;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
}
.market-actions {
  justify-content: flex-end;
  text-align: right;
  color: var(--muted);
}
.market-actions small { flex-basis: 100%; }

.warning-strip,
.hub-grid,
.price-grid,
.portfolio-grid,
.product-category-grid,
.community-grid,
.development-grid,
.support-grid {
  display: grid;
  gap: 9px;
}
.warning-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0 16px;
}
.warning-strip article { padding: 10px; }
.warning-strip strong { color: var(--gold); }
.warning-strip p { margin: 6px 0 0; font-size: .84rem; }

.hub-grid { grid-template-columns: repeat(5, minmax(180px, 1fr)); }
.hub-card {
  min-height: 82px;
  padding: 11px;
  color: var(--text);
  text-decoration: none;
}
.hub-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.status-banner {
  margin-bottom: 9px;
  padding: 9px 11px;
}
.status-banner[data-mode="loading"] {
  color: #dce9ff;
  border-color: rgba(88,166,255,0.22);
  background: rgba(88,166,255,0.07);
}
.status-banner[data-mode="live"] {
  color: #dff7e2;
  border-color: rgba(100,210,111,0.28);
  background: rgba(100,210,111,0.08);
}
.status-banner[data-mode="fallback"] {
  color: #ffe7ac;
  border-color: rgba(243,180,54,0.28);
  background: rgba(243,180,54,0.08);
}
.status-banner.soft {
  margin-top: 16px;
  margin-bottom: 0;
  background: rgba(88,166,255,0.08);
  border-color: rgba(88,166,255,0.22);
}

.market-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: stretch;
  margin-bottom: 10px;
}
.filter-panel,
.view-panel {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.18);
}
.filter-panel > span,
.view-panel > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.asset-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.asset-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
  color: var(--text);
  font-size: .78rem;
}
.asset-filter input {
  width: 14px;
  min-height: 14px;
  margin: 0;
  accent-color: var(--gold);
}
.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.22);
}
.view-toggle button {
  min-height: 27px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}
.view-toggle button.active {
  color: #080807;
  background: var(--gold);
}

.price-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 14px;
}
.price-card { padding: 12px; }
.price-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.price-card-top h3 { margin-bottom: 0; }
.price-card-top > strong {
  white-space: nowrap;
  font-size: .88rem;
}
.positive { color: var(--green); }
.negative { color: var(--red); }
.neutral { color: var(--muted); }
.price-values {
  display: grid;
  gap: 8px;
  margin: 12px 0 9px;
}
.price-main {
  margin: 9px 0 7px;
  padding: 9px;
  border: 1px solid rgba(243,180,54,0.25);
  border-radius: var(--radius-sm);
  background: rgba(243,180,54,0.08);
}
.price-main span {
  color: var(--muted);
  margin-bottom: 6px;
}
.price-main strong {
  display: block;
  color: var(--gold);
  font-size: 1.2rem;
  overflow-wrap: normal;
  white-space: nowrap;
}
.price-values div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
}
.compact-values { margin-top: 8px; }
.selected-value {
  border-color: rgba(243,180,54,0.25) !important;
  background: rgba(243,180,54,0.08) !important;
}
.price-values strong {
  overflow-wrap: normal;
  text-align: right;
  white-space: nowrap;
}
.price-grid.market-list-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.market-list-header,
.market-list-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(110px, .7fr) minmax(150px, 1fr) minmax(120px, .8fr) minmax(130px, .8fr);
  gap: 12px;
  align-items: center;
}
.market-list-header {
  padding: 0 14px 4px;
  color: var(--faint);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.market-list-row {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.024));
}
.market-list-row div {
  display: grid;
  gap: 2px;
}
.market-list-row strong { white-space: nowrap; }
.market-list-row small,
.market-list-row span { color: var(--muted); }
.market-list-row .positive { color: var(--green); font-weight: 900; }
.market-list-row .negative { color: var(--red); font-weight: 900; }
.market-list-row .neutral { color: var(--muted); font-weight: 850; }

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.45fr) minmax(340px, .7fr);
  gap: 10px;
}
.tool-card { padding: clamp(11px, .9vw, 15px); }
.feature-card { grid-column: 1 / -1; }
.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 9px;
}
.tool-header span,
.status-pill {
  white-space: nowrap;
  color: var(--gold);
  background: rgba(243,180,54,0.09);
  border: 1px solid rgba(243,180,54,0.22);
  padding: 5px 8px;
  border-radius: var(--radius);
  font-size: .72rem;
  font-weight: 900;
  display: inline-flex;
  width: fit-content;
}
.status-pill.testing { color: var(--blue); background: rgba(88,166,255,0.1); border-color: rgba(88,166,255,0.24); }
.status-pill.dev { color: var(--gold); }
.status-pill.needed { color: var(--red); background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.24); }
.status-pill.active { color: var(--green); background: rgba(100,210,111,0.1); border-color: rgba(100,210,111,0.24); }
.status-pill.planned { color: var(--muted); }

.converter-grid,
.form-grid {
  display: grid;
  gap: 8px;
  align-items: end;
}
.quick-converter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.quick-converter button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.045);
  font-weight: 850;
  cursor: pointer;
}
.quick-converter button:hover {
  border-color: rgba(243,180,54,0.28);
}
.mode-selector {
  display: block;
  max-width: 460px;
  margin-bottom: 9px;
}
.compact-status {
  margin-top: 0;
  margin-bottom: 10px;
}
.converter-grid {
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) 46px minmax(180px, 1fr);
}
.five-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.four-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { color: var(--muted); font-weight: 750; font-size: .82rem; }
input,
select {
  width: 100%;
  margin-top: 5px;
  min-height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.28);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
}
select option { background: #10141b; color: var(--text); }

.result-box {
  margin-top: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(243,180,54,0.13), rgba(255,255,255,0.04));
  border: 1px solid rgba(243,180,54,0.26);
}
.slim-result { padding: 11px; }
.result-box span,
.projection-grid span,
.retirement-results span,
.checkin-stats span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}
.result-box strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.slim-result strong { font-size: 1.55rem; }
.result-box small { display: block; color: var(--muted); margin-top: 5px; }
.projection-grid,
.retirement-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 7px;
  margin-top: 9px;
}
.projection-grid div,
.retirement-results div { padding: 8px; }
.projection-grid strong,
.retirement-results strong {
  color: var(--gold);
  overflow-wrap: normal;
  white-space: nowrap;
}
.progress-track {
  height: 7px;
  margin-top: 9px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transition: width .25s ease;
}
.retirement-layout {
  display: grid;
  gap: 10px;
}
.retirement-formula-note {
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(243,180,54,0.22);
  border-radius: var(--radius);
  background: rgba(243,180,54,0.07);
  color: #ffe7ac;
  line-height: 1.45;
}
.chart-card {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.22);
}
.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .84rem;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-gold { background: var(--gold); }
.legend-blue { background: var(--blue); }
.legend-green { background: var(--green); }
#compoundChart {
  display: block;
  width: 100%;
  height: 195px;
  min-height: 180px;
  max-height: 220px;
}

.allocation-panel {
  display: grid;
  grid-template-columns: minmax(320px, .55fr) minmax(520px, 1.45fr);
  gap: 12px;
  align-items: center;
  padding: clamp(14px, 1.2vw, 18px);
  margin-bottom: 10px;
}
.opportunity-panel {
  display: grid;
  grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
  gap: 10px;
  align-items: center;
  padding: clamp(12px, 1vw, 16px);
  margin-bottom: 9px;
}
.opportunity-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.opportunity-summary button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(243,180,54,0.24);
  border-radius: var(--radius-sm);
  color: var(--gold);
  background: rgba(243,180,54,0.08);
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
}
.opportunity-summary button:hover {
  border-color: rgba(243,180,54,0.45);
  background: rgba(243,180,54,0.13);
}
.opportunity-summary button.active {
  color: #080807;
  border-color: var(--gold);
  background: var(--gold);
}
.allocation-bars {
  display: grid;
  gap: 10px;
}
.allocation-row {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(240px, 1fr) minmax(110px, auto);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
}
.allocation-row div {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.allocation-row i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--green));
}
.allocation-row span,
.allocation-row strong { white-space: nowrap; }
.allocation-row strong { color: var(--text); text-align: right; }

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}
.portfolio-card { padding: clamp(12px, 1vw, 16px); }
.compact-portfolio-card { min-height: 100%; }
.portfolio-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.portfolio-card-top span {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.portfolio-card-top strong {
  color: var(--muted);
  font-size: .84rem;
  min-width: max-content;
  white-space: nowrap;
}
.portfolio-card dl { display: grid; gap: 6px; margin: 10px 0; }
.portfolio-card dl div {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
}
dt { color: var(--muted); }
dd { margin: 0; font-weight: 800; }
.portfolio-card dd { overflow-wrap: normal; }
.portfolio-card .status-pill { margin-left: auto; }
.opportunity-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opportunity-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.opportunity-metrics dd {
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.opportunity-note {
  padding: 8px 10px;
  border: 1px solid rgba(88,166,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(88,166,255,0.07);
}
.opportunity-note strong {
  display: block;
  margin-bottom: 5px;
}
.opportunity-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}
.risk-note {
  border-top: 1px solid var(--border);
  padding-top: 9px;
  margin-bottom: 10px;
}
.risk-note strong { display: block; margin-bottom: 6px; }
.scenario-bars {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.scenario-bars div {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .88rem;
}
.scenario-bars span,
.scenario-bars strong { white-space: nowrap; }
.scenario-bars i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.scenario-bars b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
}
.diversification-planner-card {
  display: grid;
  grid-template-columns: minmax(320px, .7fr) minmax(420px, 1.3fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: clamp(12px, 1vw, 16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(88,166,255,0.09), rgba(243,180,54,0.06));
  box-shadow: var(--shadow);
}
.diversification-planner-card h3 { margin-top: 7px; }
.planner-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 7px;
}
.planner-preview span {
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(0,0,0,0.2);
  line-height: 1.35;
}

.product-category-grid,
.community-grid { grid-template-columns: repeat(3, minmax(260px, 1fr)); }
.product-showcase-grid { grid-template-columns: repeat(5, minmax(190px, 1fr)); }
.product-category,
.product-card-v2,
.community-card,
.mini-game-card,
.development-card,
.suggestion-card,
.checkin-card { padding: 14px; }
.product-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}
.link-list a {
  display: grid;
  gap: 4px;
  padding: 9px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.22);
}
.link-list small { color: var(--gold); }
.link-list em {
  color: var(--muted);
  font-size: .78rem;
  font-style: normal;
}
.product-showcase-grid {
  display: grid;
  gap: 10px;
}
.product-card-v2 {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
/* Ative a arte somente depois de adicionar o arquivo e marcar imageEnabled no SITE_CONFIG. */
.product-card-v2[data-product],
.home-product-card[data-product] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.product-card-v2[data-product]::before,
.home-product-card[data-product]::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: var(--product-card-image, none);
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
}
.product-card-v2[data-product] > *,
.home-product-card[data-product] > * {
  position: relative;
  z-index: 1;
}
.product-card-v2[data-product-art="enabled"]::before,
.home-product-card[data-product-art="enabled"]::before { opacity: .34; }
.product-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: rgba(243,180,54,0.12);
  border: 1px solid rgba(243,180,54,0.28);
  color: var(--gold);
  font-weight: 950;
}
.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card-v2 h3 { margin: 0; }
.product-card-v2 > strong { color: var(--muted); }
.product-video-slot {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0,0,0,0.2);
  margin-top: auto;
}
.product-video-slot a {
  color: var(--gold);
  text-decoration: none;
}
.product-video-slot a:hover { text-decoration: underline; }

/* Aba Produtos: cards aprovados, isolados das demais areas do hub. */
#panel-produtos {
  padding-bottom: clamp(64px, 7vw, 96px);
}
#panel-produtos .products-page-header {
  max-width: 860px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
#panel-produtos .products-page-header > span {
  display: inline-block;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#panel-produtos .products-page-header h2 {
  max-width: 760px;
  margin: 7px 0 8px;
  font-size: clamp(1.8rem, 2.6vw, 2.65rem);
  line-height: 1.12;
}
#panel-produtos .products-page-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.92rem, 1.2vw, 1.04rem);
  line-height: 1.6;
}
#panel-produtos .products-page-header small {
  display: block;
  max-width: 720px;
  margin-top: 14px;
  padding-left: 12px;
  color: var(--faint);
  border-left: 2px solid rgba(243,180,54,.42);
  font-size: .76rem;
  line-height: 1.45;
}
#panel-produtos .product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.15vw, 16px);
  align-items: stretch;
}
#panel-produtos .approved-product-card {
  --product-accent: 243, 180, 54;
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(var(--product-accent), .34);
  border-radius: 9px;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--product-accent), .08), transparent 38%),
    linear-gradient(180deg, rgba(10,14,20,.98), rgba(4,7,11,.99));
  box-shadow: 0 22px 48px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.035);
  transition: var(--interactive-transition);
}
#panel-produtos .approved-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--product-accent), .58);
  box-shadow: 0 24px 52px rgba(0,0,0,.4), 0 0 24px rgba(var(--product-accent), .065);
}
#panel-produtos .approved-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--product-accent), .24);
  background: #030509;
}
#panel-produtos .approved-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#panel-produtos .approved-product-card[data-product="coindepo"] .approved-product-image {
  isolation: isolate;
  background: #010611;
}
#panel-produtos .approved-product-card[data-product="coindepo"] .approved-product-image img {
  border-radius: 8.25%;
  -webkit-clip-path: inset(0 round 8.25%);
  clip-path: inset(0 round 8.25%);
  transform: translateZ(0);
}
#panel-produtos .approved-product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(12px, 1vw, 15px);
}
#panel-produtos .approved-product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#panel-produtos .approved-product-heading h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}
#panel-produtos .approved-product-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  color: #9ce8a4;
  border: 1px solid rgba(100,210,111,.28);
  border-radius: 999px;
  background: rgba(100,210,111,.09);
  font-size: .63rem;
  font-weight: 900;
  text-transform: uppercase;
}
#panel-produtos .approved-product-content > p {
  min-height: 6em;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
#panel-produtos .approved-product-actions {
  display: grid;
  gap: 7px;
  margin-top: auto;
}
#panel-produtos .approved-product-button {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: center;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.2;
  transition: var(--interactive-transition);
}
#panel-produtos .approved-product-button--primary {
  color: #fff;
  border-color: rgba(var(--product-accent), .62);
  background: linear-gradient(135deg, rgba(var(--product-accent), .94), rgba(var(--product-accent), .68));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 22px rgba(var(--product-accent), .12);
}
#panel-produtos .approved-product-card[data-product="okx"] .approved-product-button--primary {
  color: #07090b;
  background: linear-gradient(135deg, #fff, #cfd3d6);
}
#panel-produtos .approved-product-button--video {
  color: var(--text);
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.025);
}
#panel-produtos a.approved-product-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
#panel-produtos .approved-product-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
#panel-produtos .approved-product-button.is-disabled {
  color: rgba(154,164,173,.58);
  border-color: rgba(255,255,255,.07);
  background: rgba(255,255,255,.018);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
#panel-produtos .approved-product-button-icon {
  flex: 0 0 auto;
  font-size: .9rem;
  line-height: 1;
}
#panel-produtos .approved-product-button-icon--video {
  font-size: .68rem;
}

@media (max-width: 1240px) {
  #panel-produtos .product-showcase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  #panel-produtos .product-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  #panel-produtos .product-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  #panel-produtos {
    padding-bottom: 56px;
  }
  #panel-produtos .products-page-header {
    margin-bottom: 28px;
  }
  #panel-produtos .product-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #panel-produtos .approved-product-card,
  #panel-produtos .approved-product-button {
    transition: none;
  }
  #panel-produtos .approved-product-card:hover,
  #panel-produtos a.approved-product-button:hover {
    transform: none;
  }
}

.course-preview {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, .7fr) minmax(260px, .7fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(243,180,54,0.1), rgba(88,166,255,0.06));
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.course-copy > strong {
  display: inline-block;
  color: var(--gold);
  margin-top: 6px;
}
.course-list span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .74rem;
}
.course-list ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.42;
}
.community-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 10px;
}
.mini-game-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.development-grid { grid-template-columns: repeat(4, minmax(210px, 1fr)); }
.development-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.support-grid {
  grid-template-columns: minmax(560px, 1.45fr) minmax(340px, .75fr);
}
.donation-card {
  grid-row: span 2;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.donation-card > * { min-width: 0; }
.donation-mark,
.qr-placeholder {
  width: 78px;
  height: 78px;
}
.qr-placeholder {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(243,180,54,0.11);
  color: var(--gold);
  font-weight: 900;
  font-size: .95rem;
  text-align: center;
  padding: 10px;
}
.donation-controls { margin-top: 10px; }
.donation-controls label { min-width: 130px; flex: 1; }
.network-warning {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(243,180,54,0.25);
  background: rgba(243,180,54,0.08);
  color: #ffe7ac;
  line-height: 1.45;
  font-size: .9rem;
}
code {
  display: block;
  margin-top: 9px;
  padding: 9px;
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  overflow-x: auto;
}
.suggestion-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.checkin-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0;
}
.checkin-stats .wide-stat { grid-column: 1 / -1; }
.checkin-stats div { padding: 8px; }
.checkin-stats strong {
  display: block;
  color: var(--gold);
  overflow-wrap: anywhere;
}
.checkin-card small { color: var(--muted); }
.home-checkin-card {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.22);
}
.home-checkin-card strong { display: block; margin: 4px 0; }
.home-checkin-card small,
.checkin-last-line { color: var(--muted); }
.checkin-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.checkin-inline div {
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
}
.checkin-inline span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: .82rem;
}
.checkin-inline strong,
.checkin-last-line strong { color: var(--gold); }

.about-pedro {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.022));
  box-shadow: var(--shadow);
}
.about-pedro span,
.follow-card > span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-pedro p {
  max-width: 1040px;
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.48;
}
.compact-warning p { font-size: .82rem; }
.follow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}
.follow-card {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.024));
  box-shadow: var(--shadow);
}
.follow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}
.follow-card .secondary-button { margin-top: auto; }
.footer-link.is-disabled { color: rgba(154, 164, 173, .62); }

/* Home progressiva: mais respiro entre secoes sem ampliar os componentes. */
#panel-home { padding-bottom: 0; }
.home-section {
  position: relative;
  scroll-margin-top: 100px;
}
.home-section + .home-section { margin-top: clamp(14px, 1.5vw, 22px); }
.home-hero-section {
  min-height: clamp(420px, 48vh, 480px);
  display: flex;
  align-items: center;
  padding: 8px clamp(8px, 1.4vw, 20px) 0;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  border-bottom: 1px solid rgba(243,180,54,.14);
  background:
    radial-gradient(circle at 82% 54%, rgba(243,180,54,.055), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.08), rgba(255,255,255,.008));
}
.home-hero-section .hero {
  width: 100%;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: clamp(18px, 2.4vw, 36px);
  align-items: stretch;
}
.home-hero-section .hero-copy {
  max-width: 680px;
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.home-hero-section .hero-copy::after { display: none; }
.home-hero-section .hero-kicker {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font-size: .73rem;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-hero-section .hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(3.35rem, 4.4vw, 4.25rem);
  line-height: .98;
  font-weight: 850;
}
.home-hero-section .hero-copy h1 span { color: var(--gold); }
.home-hero-section .hero-subtitle {
  max-width: 610px;
  margin-bottom: 10px;
  font-size: clamp(1.22rem, 1.62vw, 1.48rem) !important;
  line-height: 1.28 !important;
}
.home-hero-section .hero-description {
  max-width: 570px;
  margin-bottom: 0;
  font-size: .9rem;
  line-height: 1.58;
}
.home-hero-section .hero-actions {
  gap: 12px;
  margin-top: 20px;
}
.home-hero-section .hero-actions .primary-button,
.home-hero-section .hero-actions .secondary-button {
  min-width: 178px;
  min-height: 42px;
  padding-inline: 22px;
  border-radius: 7px;
  gap: 9px;
}
.home-hero-section #heroYoutubeCta .primary-button::before {
  content: "→";
  font-size: 1.05rem;
}
.home-hero-section .hero-actions > .secondary-button::before {
  content: "◇";
  color: var(--gold);
  font-size: .95rem;
}
.hero-portrait {
  position: relative;
  isolation: isolate;
  min-height: clamp(400px, 46vh, 460px);
  max-height: 470px;
  aspect-ratio: 1.16 / 1;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle at 54% 55%, rgba(243,180,54,.13), transparent 68%);
  box-shadow: none;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 8% 11% 4%;
  border: 1px solid rgba(243,180,54,.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(243,180,54,.035),
    0 0 70px rgba(243,180,54,.08);
  pointer-events: none;
}
.hero-portrait::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 15%, transparent 88%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 76%, var(--bg) 100%);
}
.hero-visual-background,
.hero-person {
  position: absolute;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.hero-visual-background {
  z-index: 1;
  inset: 0 -2%;
  width: 100%;
  height: 100%;
  object-position: center;
  opacity: .92;
}
.hero-person {
  z-index: 3;
  right: 4%;
  bottom: -2%;
  width: 75%;
  height: 99%;
  object-position: center bottom;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.46));
}
.development-page {
  min-height: clamp(430px, 62vh, 660px);
  display: grid;
  place-items: center;
  padding: var(--block-gap-large) 0;
}
.development-page-content {
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--block-gap-small);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow: var(--shadow);
  text-align: center;
}
.development-page-content h2 { margin: 4px 0 0; }
.development-page-content p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.development-page-content small { color: var(--faint); }
.development-page-content .primary-button { margin-top: 8px; }
.feature-live-content[hidden] { display: none; }
.home-hero-section + .home-about-section {
  margin-top: clamp(14px, 1.5vw, 22px);
}
.home-about-section .about-pedro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr);
  min-height: 296px;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(243,180,54,.3);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(7,8,10,.99) 0%, rgba(7,8,10,.96) 35%, rgba(7,8,10,.76) 55%, rgba(7,8,10,.1) 100%),
    url("assets/home/fundo-pedro-about.webp") center / cover no-repeat,
    #090b0f;
  box-shadow: 0 18px 45px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.025);
}
.about-pedro-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 720px;
  padding: clamp(24px, 2.8vw, 38px);
}
.home-about-section .about-pedro h2 {
  margin: 9px 0 14px;
  font-size: clamp(1.45rem, 2vw, 1.82rem);
}
.home-about-section .about-pedro p {
  max-width: 690px;
  margin: 0 0 10px;
  font-size: .84rem;
  line-height: 1.54;
}
.home-about-section .about-pedro p:last-child { margin-bottom: 0; }
.about-portrait {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}
.about-portrait::before {
  content: none;
}
.about-portrait::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7,8,10,.98) 0%, transparent 24%, transparent 100%),
    linear-gradient(to bottom, transparent 78%, rgba(7,8,10,.9) 100%);
  pointer-events: none;
}
.about-person {
  position: absolute;
  display: block;
  pointer-events: none;
}
.about-person {
  z-index: 2;
  right: 3%;
  bottom: -3%;
  width: 84%;
  height: 106%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.4));
}
.home-heading {
  max-width: var(--reading-max-width);
  margin: 0 0 18px;
}
.home-heading.split-heading { max-width: none; }
.home-heading h2 { margin: 6px 0 5px; font-size: 1.52rem; }
.home-heading p { margin-bottom: 0; font-size: .84rem; line-height: 1.5; }
.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--block-gap-medium);
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 0 -22px -18px;
  border: 0;
  border-top: 1px solid rgba(243,180,54,.18);
  border-radius: 0;
  background: transparent;
}
.home-section#home-hub,
.home-section#home-products {
  padding: 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(243,180,54,.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(243,180,54,.045), transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,.018), rgba(5,8,12,.78));
  box-shadow: 0 16px 38px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.02);
}
.home-section#home-hub .home-heading,
.home-section#home-products .home-heading { margin-bottom: 14px; }
.home-product-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.hub-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 13px;
  text-align: center;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background .2s ease, color .2s ease;
}
.hub-card:last-child { border-right: 0; }
.hub-card:hover { background: rgba(243,180,54,.055); }
.hub-card .hub-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.45rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 0 20px rgba(243,180,54,.2);
}
.hub-card div { display: grid; gap: 4px; }
.hub-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text);
  font-size: .9rem;
}
.hub-card small {
  color: var(--faint);
  font-size: .62rem;
}
.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.42;
}
.hub-card.is-locked { opacity: .58; }
.hub-card.is-locked .hub-card-icon { color: var(--faint); text-shadow: none; }
.hub-card-lock {
  position: relative;
  width: 9px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .7;
}
.hub-card-lock::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}
.home-market-preview {
  padding: var(--block-gap-medium);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.home-market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--block-gap-small);
  margin: var(--block-gap-medium) 0 0;
}
.home-market-grid div {
  min-height: 72px;
  align-items: center;
  padding: 16px 18px;
}
.home-tool-card,
.home-product-card {
  min-width: 0;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: var(--block-gap-small);
  padding: var(--block-gap-medium);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.022));
  box-shadow: var(--shadow);
}
.home-product-card {
  min-height: 0;
  --product-accent: 243, 180, 54;
  gap: 8px;
  padding: 7px;
  overflow: hidden;
  border-color: rgba(var(--product-accent), .25);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(var(--product-accent), .055), rgba(4,6,9,.96) 58%);
  box-shadow: 0 14px 30px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.025);
}
.home-product-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.12;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(0,0,0,.38);
}
.home-product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 68%, rgba(3,5,8,.16));
  box-shadow: inset 0 0 0 1px rgba(var(--product-accent), .08);
}
.home-product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 0;
}
.home-product-meta h3 { margin: 0; font-size: .9rem; }
.home-product-meta .status-pill { flex: 0 0 auto; }
.home-product-card[data-product="etherfi"] { --product-accent: 145, 88, 255; }
.home-product-card[data-product="gomining"] { --product-accent: 44, 208, 111; }
.home-product-card[data-product="coindepo"] { --product-accent: 42, 125, 255; }
.home-product-card[data-product="onekey"] { --product-accent: 70, 205, 98; }
.home-product-card[data-product="okx"] { --product-accent: 220, 220, 220; }
.home-tool-card > span,
.home-product-card > .status-pill {
  align-self: flex-start;
}
.home-tool-card > span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.home-tool-card h3,
.home-product-card h3 { margin: 0; }
.home-tool-card p,
.home-product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.home-tool-card a {
  margin-top: auto;
  color: var(--gold);
  font-weight: 850;
  text-decoration: none;
}
.home-product-card .home-product-caption {
  overflow: hidden;
  margin: -2px 2px 0;
  color: var(--faint);
  font-size: .69rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-product-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 6px;
  margin-top: auto;
}
.home-product-actions .product-access-link,
.home-product-actions .product-video-link {
  min-width: 0;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 850;
  text-decoration: none;
}
.home-product-actions .product-access-link {
  color: #fff;
  border: 1px solid rgba(var(--product-accent), .5);
  background: linear-gradient(135deg, rgba(var(--product-accent), .72), rgba(var(--product-accent), .36));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.home-product-actions .product-access-link::after { content: "↗"; font-size: .8rem; }
.home-product-actions .product-video-link::after { content: "▶"; font-size: .58rem; opacity: .75; }
.home-product-actions .is-disabled::after { content: ""; }
.home-product-actions a:hover { transform: translateY(-1px); filter: brightness(1.08); }
.home-product-actions .product-video-link {
  color: var(--muted);
  background: rgba(255,255,255,.025);
}
.product-video-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}
.follow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--block-gap-medium);
}
.follow-card {
  min-height: 180px;
  padding: var(--block-gap-medium);
}
.home-community-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 18px;
  align-items: stretch;
  min-height: 176px;
  padding: 13px 15px;
  border: 1px solid rgba(243,180,54,.24);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(243,180,54,.055), rgba(88,166,255,.035));
  box-shadow: 0 16px 38px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.02);
}
.home-community-copy {
  max-width: 620px;
  align-self: center;
  padding: 2px 8px;
}
.home-community-copy h2 { margin: 7px 0; font-size: 1.3rem; }
.home-community-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.52;
}
.home-community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.home-community-section .home-checkin-card {
  margin: 0;
  align-content: center;
  padding: 11px 14px;
  border-color: rgba(88,166,255,.18);
  background: rgba(5,8,12,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.home-community-section .home-checkin-card > div:first-child {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 3px 10px;
}
.home-community-section .home-checkin-card > div:first-child strong { margin: 0; }
.home-community-section .home-checkin-card > div:first-child small { grid-column: 1 / -1; }
.home-community-section .checkin-inline { gap: 0; }
.home-community-section .checkin-inline div {
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.home-community-section .checkin-inline div:first-child { border-right: 1px solid var(--border); }
.home-community-section .checkin-inline strong { font-size: 1rem; }
.home-community-section .checkin-last-line { font-size: .75rem; }
.home-community-section .primary-button { min-height: 32px; }

/* Home final: artes aprovadas com hotspots responsivos sobre os controles desenhados. */
.home-final-blocks {
  display: grid;
  width: 100%;
  gap: var(--home-section-gap);
}
.home-final-blocks + .home-community-section { margin-top: var(--home-section-gap); }
.home-final-blocks .home-final-block {
  position: relative;
  width: 100%;
  min-width: 0;
  scroll-margin-top: 100px;
}
.home-final-blocks .home-final-block > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  -webkit-mask-image:
    linear-gradient(to right, rgba(0,0,0,.7) 0%, #000 3.2%, #000 96.8%, rgba(0,0,0,.7) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.74) 0%, #000 4.5%, #000 95.5%, rgba(0,0,0,.74) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, rgba(0,0,0,.7) 0%, #000 3.2%, #000 96.8%, rgba(0,0,0,.7) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.74) 0%, #000 4.5%, #000 95.5%, rgba(0,0,0,.74) 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-composite: intersect;
}
.home-final-blocks .home-image-action {
  position: absolute;
  z-index: 2;
  display: block;
  padding: 0;
  color: transparent;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.home-final-blocks .home-image-action:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(243,180,54,.2);
}
.home-final-blocks .home-image-action.is-disabled {
  pointer-events: none;
  cursor: default;
}
.home-final-blocks .home-image-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-final-blocks [data-action="hero-youtube"] {
  top: 76.35%;
  left: 5.03%;
  width: 20.66%;
  height: 10.68%;
}
.home-final-blocks [data-action="hero-understand"] {
  top: 76.35%;
  left: 27.70%;
  width: 19.44%;
  height: 10.68%;
}

.home-final-blocks [data-action^="hub-"] {
  top: 38.67%;
  height: 49.72%;
}
.home-final-blocks [data-action="hub-market"] { left: 2.30%; width: 16.80%; }
.home-final-blocks [data-action="hub-calculators"] { left: 19.15%; width: 15.38%; }
.home-final-blocks [data-action="hub-products"] { left: 34.62%; width: 15.29%; }
.home-final-blocks [data-action="hub-wallet"] { left: 50%; width: 15.65%; }
.home-final-blocks [data-action="hub-community"] { left: 65.75%; width: 14.96%; }
.home-final-blocks [data-action="hub-support"] { left: 80.80%; width: 16.90%; }

.home-final-blocks [data-action$="-access"] {
  top: 77.35%;
  height: 6.22%;
}
.home-final-blocks [data-action$="-video"] {
  top: 85.02%;
  height: 6.58%;
}
.home-final-blocks [data-action^="etherfi-"] { left: 4.12%; width: 15.87%; }
.home-final-blocks [data-action^="gomining-"] { left: 22.91%; width: 16.28%; }
.home-final-blocks [data-action^="coindepo-"] { left: 42.07%; width: 16.34%; }
.home-final-blocks [data-action^="onekey-"] { left: 61.27%; width: 16.44%; }
.home-final-blocks [data-action^="okx-"] { left: 80.64%; width: 15.50%; }

#panel-mercado > .section-heading:first-child,
#panel-calculadoras > .section-heading:first-child { margin-bottom: 0; }
#panel-mercado > .market-controls { margin-bottom: 0; }
#panel-mercado > #mercado-precos + .price-grid {
  margin-top: var(--functional-section-gap);
  margin-bottom: 0;
}
#panel-mercado > .converter-card { margin-top: var(--functional-section-gap); }
#panel-calculadoras > .calculator-grid {
  margin-top: var(--functional-section-gap);
  row-gap: var(--functional-section-gap);
}
.app-shell:has(#panel-home.active) + .footer { margin-top: var(--home-section-gap); }
.app-shell:has(#panel-mercado.active) + .footer,
.app-shell:has(#panel-calculadoras.active) + .footer { margin-top: var(--functional-section-gap); }

@media (max-width: 1024px) {
  :root {
    --home-section-gap: clamp(56px, 7vw, 88px);
    --functional-section-gap: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --home-section-gap: 44px;
    --functional-section-gap: 36px;
  }
  .home-final-blocks .home-image-action:focus-visible {
    outline-width: 2px;
    outline-offset: 1px;
    box-shadow: 0 0 0 3px rgba(243,180,54,.2);
  }
}

.tab-panel:not(#panel-home) {
  padding-top: var(--block-gap-small);
  padding-bottom: var(--section-space-mobile);
}
.tab-panel:not(#panel-home) > .section-heading:first-child {
  margin-bottom: var(--block-gap-medium);
}
.tab-panel:not(#panel-home) .compact-heading { margin-top: var(--block-gap-large); }

.motion-ready .reveal-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.motion-ready .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  grid-template-areas:
    "intro links"
    "bottom bottom";
  column-gap: clamp(28px, 3vw, 48px);
  row-gap: 16px;
  padding: 24px 0 18px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 28px;
}
.footer-top {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(243,180,54,.18));
}
.footer-top p {
  max-width: 260px;
  margin: 0;
  color: var(--faint);
  text-align: left;
  font-size: .72rem;
  line-height: 1.42;
}
.footer-grid {
  grid-area: links;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.footer-column {
  display: grid;
  gap: 5px;
}
.footer-column strong {
  color: var(--text);
  margin-bottom: 3px;
  font-size: .8rem;
}
.footer-column a { font-size: .72rem; }
.footer a {
  color: var(--muted);
  text-decoration: none;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  grid-area: bottom;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand market"
      "nav nav";
    align-items: center;
  }
  .topbar-market {
    width: auto;
    justify-content: flex-end;
  }
  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }
  .nav-item { flex: 0 0 auto; }
  .nav-link-copy small { display: none; }
}

@media (max-width: 1040px) {
  .price-grid,
  .portfolio-grid,
  .follow-grid,
  .product-showcase-grid,
  .development-grid,
  .mini-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tools-grid,
  .follow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-section + .home-section { margin-top: 18px; }
  .calculator-grid,
  .support-grid,
  .allocation-panel,
  .opportunity-panel,
  .diversification-planner-card,
  .course-preview { grid-template-columns: 1fr; }
  .donation-card { grid-row: auto; }
  .five-cols,
  .four-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .hero,
  .warning-strip,
  .hub-grid,
  .follow-grid,
  .product-category-grid,
  .product-showcase-grid,
  .community-grid { grid-template-columns: 1fr; }
  .home-tools-grid,
  .home-product-preview,
  .home-market-grid,
  .home-community-section { grid-template-columns: 1fr; }
  .footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "links"
      "bottom";
  }
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-top p { max-width: 520px; text-align: right; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-grid,
  .home-product-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero-section {
    min-height: auto;
    padding: clamp(34px, 8vw, 58px) 0 0;
  }
  .home-hero-section .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-hero-section .hero-copy {
    max-width: 650px;
  }
  .home-hero-section .hero-copy h1 {
    font-size: clamp(3rem, 11vw, 4.5rem);
  }
  .hero-portrait {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 520px;
    min-height: clamp(390px, 82vw, 520px);
    max-height: 540px;
    justify-self: center;
  }
  .home-about-section .about-pedro {
    grid-template-columns: 1fr;
    min-height: 0;
    background:
      radial-gradient(circle at 50% 100%, rgba(243,180,54,.045), transparent 42%),
      linear-gradient(180deg, rgba(12,14,17,.98), rgba(7,8,10,.98));
  }
  .about-pedro-copy { padding: clamp(26px, 7vw, 42px); }
  .about-portrait {
    min-height: clamp(300px, 72vw, 420px);
    background:
      linear-gradient(to top, rgba(7,8,10,.12), transparent 38%),
      url("assets/home/fundo-pedro-about.webp") center / cover no-repeat;
  }
  .about-person {
    right: 6%;
    width: 78%;
    height: 100%;
  }
  .home-section + .home-section { margin-top: 24px; }
  .home-hero-section + .home-about-section { margin-top: 34px; }
  .hub-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .hub-card:nth-child(even) { border-right: 0; }
  .hub-card:nth-last-child(-n + 2) { border-bottom: 0; }
  .home-community-section { padding: var(--block-gap-medium); }
  .home-section#home-hub,
  .home-section#home-products { padding: 17px; }
  .home-section#home-hub .hub-grid { margin: 0 -17px -17px; }
  .hero-copy,
  .hero-panel { grid-column: 1 / -1; }
  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .market-actions {
    justify-content: flex-start;
    text-align: left;
  }
  .converter-grid { grid-template-columns: 1fr 1fr; }
  .swap-button { grid-column: 1 / -1; }
  .projection-grid,
  .retirement-results,
  .checkin-stats { grid-template-columns: 1fr; }
  .market-controls { grid-template-columns: 1fr; }
  .market-list-header { display: none; }
  .market-list-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .opportunity-summary { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --dashboard-gutter: 14px; }
  .topbar,
  .app-shell,
  .footer {
    width: calc(100% - (var(--dashboard-gutter) * 2));
  }
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "market"
      "nav";
    top: 8px;
    margin-top: 8px;
    margin-bottom: 18px;
  }
  .brand { min-width: 0; }
  .brand-logo { width: 36px; height: 36px; }
  .brand small { display: none; }
  h1 { font-size: 2rem; }
  .primary-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
    padding-bottom: 0;
  }
  .nav-item,
  .tab-link { width: 100%; }
  .tab-link {
    gap: 4px;
    padding-inline: 5px;
    font-size: .76rem;
  }
  .nav-lock {
    width: 8px;
    height: 7px;
  }
  .nav-lock::before {
    left: 1px;
    bottom: 5px;
    width: 4px;
    height: 4px;
  }
  .submenu {
    position: fixed;
    top: 190px;
    left: var(--dashboard-gutter);
    right: var(--dashboard-gutter);
    width: auto;
    min-width: 0;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    transform: translateY(-4px);
  }
  .has-menu:hover .submenu,
  .has-menu:focus-within .submenu { transform: translateY(0); }
  .hero-actions,
  .tool-header,
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-top p { text-align: left; }
  .tool-header span { white-space: normal; }
  .price-grid,
  .portfolio-grid,
  .footer-grid,
  .follow-grid,
  .development-grid,
  .mini-game-grid,
  .converter-grid,
  .five-cols,
  .four-cols,
  .two-cols,
  .planner-preview { grid-template-columns: 1fr; }
  .opportunity-metrics { grid-template-columns: 1fr; }
  .allocation-row {
    grid-template-columns: 1fr 44px;
  }
  .allocation-row span,
  .allocation-row strong,
  .scenario-bars span,
  .scenario-bars strong,
  .projection-grid strong,
  .retirement-results strong,
  .price-main strong,
  .price-values strong {
    white-space: normal;
  }
  .allocation-row div { grid-column: 1 / -1; }
  .donation-card { grid-template-columns: 1fr; }
  .donation-mark,
  .qr-placeholder { width: auto; max-width: 100%; }
  .primary-button,
  .secondary-button,
  .suggestion-card .secondary-button,
  .checkin-card .primary-button { width: 100%; }
  .topbar-market {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }
  #tickerStatus { min-width: 110px; }
  .chart-header { align-items: flex-start; flex-direction: column; }
  .home-product-actions { grid-template-columns: 1fr; }
  .hub-grid,
  .home-product-preview { grid-template-columns: 1fr; }
  .hub-card,
  .hub-card:nth-child(even),
  .hub-card:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .hub-card:last-child { border-bottom: 0; }
  .home-hero-section .hero-copy { padding-inline: 2px; }
  .home-hero-section .hero-copy h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .home-hero-section .hero-subtitle { font-size: 1.18rem !important; }
  .home-heading { margin-bottom: var(--block-gap-medium); }
  .hero-person {
    right: 7%;
    width: 82%;
  }
  .hub-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .hub-card:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .motion-ready .reveal-section {
    opacity: 1;
    transform: none;
  }
  .primary-button:hover,
  .secondary-button:hover,
  .swap-button:hover,
  .asset-filter:hover,
  .view-toggle button:hover,
  .quick-converter button:hover,
  .opportunity-summary button:hover,
  .link-list a:hover,
  .follow-card:hover,
  .product-video-link:hover,
  #panel-mercado .converter-card:hover,
  #panel-calculadoras .tool-card:hover,
  #panel-carteira .portfolio-card:hover,
  #panel-comunidade .community-card:hover,
  #panel-comunidade .course-preview:hover,
  #panel-apoie .donation-card:hover,
  #panel-apoie .suggestion-card:hover,
  #panel-apoie .checkin-card:hover {
    transform: none !important;
  }
}
