/* Camada transversal: mantém a identidade FireVault e torna a navegação previsível. */
.site-header {
  width: min(100% - 48px, 1440px);
  min-height: 82px;
  height: auto;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  position: relative;
  z-index: 30;
}
.site-header .brand { flex: 0 0 auto; }
.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(2px, .55vw, 9px);
  margin: 0;
}
.global-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(9px, 1.05vw, 15px);
  border: 1px solid transparent;
  border-radius: 999px;
  color: #a5b2af;
  font: 600 10px/1 "DM Mono", monospace;
  letter-spacing: .045em;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.global-nav a:hover, .global-nav a:focus-visible, .global-nav a[aria-current="page"] {
  color: #e9f0ed;
  border-color: rgba(166,255,223,.2);
  background: rgba(166,255,223,.06);
}
.global-nav a[aria-current="page"] { color: #a6ffdf; }
.site-header__actions, .header-actions, .trends-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.site-account-link {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #08211b;
  background: #a6ffdf;
  border: 1px solid #a6ffdf;
  border-radius: 999px;
  font: 700 10px/1 "DM Mono", monospace;
  letter-spacing: .045em;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease;
}
.site-account-link:hover { transform: translateY(-1px); background: #d0ffef; }
.site-account-link__mark { font-size: 14px; line-height: 1; }
.site-account-link.is-authenticated { color: #e9f0ed; background: #172228; border-color: rgba(166,255,223,.27); }
.global-menu-trigger {
  display: none;
  width: 40px;
  height: 39px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(228,245,242,.16);
  border-radius: 10px;
  color: #e9f0ed;
  background: #10191d;
}
.global-menu-trigger span { width: 16px; height: 1px; background: currentColor; }
.global-mobile-nav[hidden] { display: none !important; }
.global-mobile-nav:not([hidden]) {
  position: fixed;
  z-index: 40;
  top: 72px;
  right: 24px;
  left: 24px;
  display: grid;
  gap: 3px;
  padding: 10px;
  background: rgba(17,27,32,.98);
  border: 1px solid rgba(228,245,242,.14);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
}
.global-mobile-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: #c4d0cc;
  font: 600 11px "DM Mono", monospace;
}
.global-mobile-nav a:hover, .global-mobile-nav a[aria-current="page"] { color: #a6ffdf; background: rgba(166,255,223,.07); }
.global-mobile-nav a:last-child { margin-top: 4px; color: #08211b; background: #a6ffdf; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid #a6ffdf;
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .site-header { width: min(100% - 40px, 1440px); gap: 14px; }
  .global-nav { gap: 0; }
  .global-nav a { padding-inline: 8px; font-size: 9px; }
  .site-header .cart-button { padding-inline: 9px; }
}
@media (max-width: 980px) {
  .site-header { min-height: 74px; width: min(100% - 32px, 1440px); }
  .global-nav { display: none !important; }
  .global-menu-trigger { display: flex !important; }
  .site-header__actions, .header-actions, .trends-header-actions { margin-left: auto; }
  .global-mobile-nav:not([hidden]) { top: 66px; right: 16px; left: 16px; }
}
@media (max-width: 560px) {
  .site-header { width: calc(100% - 28px); min-height: 68px; padding: 9px 0; gap: 8px; }
  .site-header .brand { font-size: 17px; }
  .site-account-link { min-height: 36px; padding: 0 11px; font-size: 9px; }
  .site-header .cart-button { min-height: 36px; gap: 6px; padding: 0 8px; }
  .site-header .cart-button > span:not(#cartCount) { display: none; }
  .site-header .cart-button svg { width: 16px; }
  .global-mobile-nav:not([hidden]) { top: 61px; }
}
@media (prefers-reduced-motion: reduce) {
  .global-nav a, .site-account-link { transition: none; }
}


.space-launcher { width: min(100% - 68px,1292px); margin: 0 auto; padding: 105px 0 48px; }
.space-launcher__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.space-launcher__heading h2 { margin: 0; font: 600 clamp(36px,4.5vw,58px)/.98 "Space Grotesk",sans-serif; letter-spacing: -.075em; }
.space-launcher__heading h2 em { color: #a6ffdf; font-style: normal; }
.space-launcher__heading > p { max-width: 290px; margin: 0 0 3px; color: #a5b2af; font-size: 11px; line-height: 1.65; }
.space-launcher__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.space-card { min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; padding: 17px; border: 1px solid rgba(228,245,242,.12); border-radius: 13px; background: linear-gradient(145deg,rgba(166,255,223,.055),rgba(255,255,255,.012) 55%),#10191e; transition: transform .2s ease,border-color .2s ease,background .2s ease; }
.space-card:hover { transform: translateY(-4px); border-color: rgba(166,255,223,.3); background-color: #132027; }
.space-card__icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(166,255,223,.18); border-radius: 10px 4px 10px 4px; color: #a6ffdf; background: rgba(166,255,223,.06); font-size: 17px; }
.space-card__meta { margin-bottom: 7px; color: #35d6ae; font: 500 8px "DM Mono",monospace; letter-spacing: .12em; }
.space-card > strong { margin-bottom: 7px; font: 600 18px "Space Grotesk",sans-serif; letter-spacing: -.04em; }
.space-card > span:nth-last-of-type(1) { min-height: 34px; color: #a5b2af; font-size: 10px; line-height: 1.55; }
.space-card > b { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(228,245,242,.1); color: #dce6e2; font: 600 8px "DM Mono",monospace; letter-spacing: .04em; }
.space-card > b i { color: #a6ffdf; font-size: 14px; font-style: normal; }
.space-card--study .space-card__icon { color: #b8d4ff; border-color: rgba(184,212,255,.19); }
.space-card--trends .space-card__icon { color: #ffd875; border-color: rgba(255,216,117,.2); }
.space-card--baiano .space-card__icon { color: #ffb547; border-color: rgba(255,181,71,.22); }
@media (max-width: 900px) { .space-launcher { width: min(100% - 40px,1292px); padding-top: 76px; } .space-launcher__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .space-launcher { width: calc(100% - 32px); padding: 64px 0 20px; } .space-launcher__heading { display: block; } .space-launcher__heading h2 { font-size: 37px; } .space-launcher__heading > p { margin-top: 12px; } .space-card { min-height: 204px; padding: 13px; } .space-card > strong { font-size: 15px; } .space-card > span:nth-last-of-type(1) { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .space-card { transition: none; } .space-card:hover { transform: none; } }
