/* ============================================================
   LAYOUT.CSS — AstroEdu Brasil
   Gerado por tools/split-css.js
   Não editar manualmente — edite a fonte ou reorganize os slots.
   ============================================================ */
/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: rgba(5,5,16,0.6);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, box-shadow 0.4s;
}

header.scrolled {
  background: rgba(5,5,16,0.92);
  box-shadow: 0 1px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.75rem;
  height: 100%;
  padding: 0 1rem;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  font-size: 1.4rem;
  animation: spin 40s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.logo-text {
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 20%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-2);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  display: flex;
  align-items: center;
  gap: 5px;
}

nav ul li a:hover { color: var(--text); background: var(--surface-2); }

nav ul li a.active {
  color: #fff;
  background: rgba(0,212,255,0.1);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Nav só-ícones: botão redondo sem texto */
nav ul li a.nav-icon-only {
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
nav ul li a.nav-icon-only:hover {
  background: rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-1px);
}
nav ul li a.nav-icon-only.active {
  background: rgba(0,212,255,0.2);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
}

/* Mantém ícones sempre inline (cancela mobile dropdown do base.css) */
nav:has(.nav-icon-only) ul,
header nav ul {
  position: static !important;
  display: flex !important;
  flex-direction: row !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  backdrop-filter: none !important;
  top: auto !important; left: auto !important; right: auto !important;
}
/* Hamburguer escondido sempre que há nav icon-only (novo header) */
header:has(.nav-icon-only) .hamburger { display: none !important; }
/* Empurra badge usuário para direita */
.header-user { margin-left: auto; }

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 6px;
}

.hamburger span {
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 4.5rem 0 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-planet { display: none; }

.hero p {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  border: none;
  font-family: var(--font-b);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--accent);
  color: #050510;
  box-shadow: 0 2px 20px rgba(0,212,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0,212,255,0.4);
  filter: brightness(1.1);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-h);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-2px);
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.section-title p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.06), transparent 70%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-h);
  background: var(--surface-2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card:hover::after { opacity: 1; }

.card:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  transition: transform 0.35s var(--ease);
}

.card:hover .card-icon { transform: scale(1.12); }

.card h3 {
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: 0.3px;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}

.card-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.75rem;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.82rem;
  margin-top: 4rem;
  background: rgba(5,5,16,0.8);
}

footer a { color: var(--accent); text-decoration: none; }

/* ===== FAB ===== */
.fab-group {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.fab-trigger {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-h);
  background: rgba(5,5,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botão pequeno auxiliar para abrir o menu extras */
.fab-mini {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-h);
  background: rgba(5,5,16,0.75);
  backdrop-filter: blur(14px);
  color: var(--text-2);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
  margin-bottom: 4px;
}
.fab-mini:hover { background: rgba(0,212,255,0.1); color: var(--accent); transform: rotate(90deg); }
.fab-open .fab-mini { background: var(--accent); color: #050510; transform: rotate(45deg); }

.fab-trigger:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 4px 25px rgba(0,0,0,0.5), 0 0 15px rgba(0,212,255,0.1);
}

.fab-trigger-icon {
  transition: transform 0.35s var(--ease);
  display: inline-block;
}

.fab-open .fab-trigger-icon { transform: rotate(45deg); }

.fab-open .fab-trigger {
  background: var(--accent);
  color: #050510;
  border-color: transparent;
}

.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.3s var(--ease);
}

.fab-open .fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(5,5,16,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fab-item:hover {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.2);
  color: #fff;
  transform: translateX(-3px);
}

.fab-item-icon { font-size: 0.95rem; }

/* ===== FOGUETE LOADING ===== */
.loading-rocket {
  text-align: center;
  padding: 3rem;
  font-size: 4rem;
  animation: rocket-fly 1s ease-in-out infinite alternate;
}

@keyframes rocket-fly {
  from { transform: translateY(0) rotate(-45deg); }
  to { transform: translateY(-30px) rotate(-45deg); }
}

/* ===== BACK BUTTON ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--azul-brilhante);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: gap 0.3s;
}

.back-btn:hover { gap: 12px; }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 10;
  background: rgba(6,11,30,0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin-top: 4rem;
}

footer a { color: var(--azul-brilhante); text-decoration: none; }

/* ===== PIN MODAL ===== */
#pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #0d1b4b 0%, #050510 70%);
  animation: pinFadeIn 0.5s ease;
}
#pin-overlay.pin-closing {
  animation: pinFadeOut 0.4s ease forwards;
}
@keyframes pinFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pinFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.pin-modal {
  background: rgba(13, 27, 75, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 360px;
  width: 90%;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(0,212,255,0.15), 0 0 120px rgba(124,58,237,0.1);
  animation: pinSlideUp 0.5s ease;
}
@keyframes pinSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pin-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.pin-logo-icon {
  font-size: 2.2rem;
}
.pin-logo-text {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

.pin-title {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.pin-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pin-input-wrap {
  margin-bottom: 0.5rem;
}
.pin-input {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.6rem;
  padding: 0.7rem 1rem;
  width: 200px;
  max-width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.pin-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}
.pin-input::placeholder {
  color: var(--text-3);
  letter-spacing: 0.8rem;
}

.pin-error {
  font-size: 0.78rem;
  color: var(--red);
  min-height: 1.2rem;
  margin-bottom: 0.5rem;
}

.pin-btn {
  font-size: 1rem;
  padding: 0.65rem 2.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
}
.pin-hint {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 1px;
}

/* PIN welcome toast */
.pin-toast {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #0d1b4b, #1a0533);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  font-family: var(--font-b);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 0 30px rgba(0,212,255,0.2);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  white-space: nowrap;
}
.pin-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pin-toast-icon {
  font-size: 1.1rem;
}

/* User badge in header */
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.8rem;
  flex-shrink: 0;
}
.user-badge-pin {
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  letter-spacing: 2px;
}
.user-badge-logout {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.user-badge-logout:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

@media (max-width: 760px) {
  .pin-modal { padding: 2rem 1.5rem; }
  .pin-input { font-size: 1.5rem; width: 180px; }
  .user-badge { display: none; }
}


/* ===== SETTINGS OVERLAY ===== */
.settings-overlay {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(5,5,16,0.88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: fadeIn 0.2s var(--ease);
}
.settings-modal {
  background: #0a0a20; border: 1px solid var(--border-h);
  border-radius: var(--radius-lg); padding: 1.5rem;
  max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.settings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.settings-header h2 { font-family: var(--font-h); }
.settings-close { background: transparent; border: none; color: var(--text-2); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.settings-close:hover { color: var(--red); }
.settings-section { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.settings-section:last-child { border-bottom: none; }
.settings-section h3 { font-family: var(--font-h); font-size: 1rem; margin-bottom: 0.6rem; color: var(--accent); }
.settings-section p { font-size: 0.9rem; margin: 0.3rem 0; color: var(--text-2); }
.settings-section p strong { color: var(--text); }
.settings-section .btn { margin-right: 0.5rem; margin-top: 0.5rem; }

/* ===== HISTÓRICO MODAL ===== */
.hist-overlay { z-index: 9998; }
.hist-modal { max-width: 760px; }
.hist-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.hist-tab {
  background: transparent; border: none; color: var(--text-2);
  font-family: var(--font-h); font-weight: 700; font-size: 0.9rem;
  padding: 0.55rem 1rem; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hist-tab:hover { color: var(--text); }
.hist-tab-active { color: var(--accent); border-bottom-color: var(--accent); }
.hist-panel { max-height: 65vh; overflow-y: auto; padding-right: 0.25rem; }
.hist-empty { color: var(--text-2); font-style: italic; text-align: center; padding: 2rem 1rem; }
.hist-summary {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 0.8rem; padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.hist-stat {
  font-family: var(--font-h); font-weight: 800; font-size: 0.85rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.hist-stat-ok   { background: rgba(16,185,129,0.18); color: #34d399; }
.hist-stat-err  { background: rgba(231,76,60,0.18); color: #ff6b6b; }
.hist-stat-skip { background: rgba(243,156,18,0.18); color: #fbbf24; }
.hist-day { margin-bottom: 1rem; }
.hist-day-head {
  font-family: var(--font-h); font-weight: 700; font-size: 0.82rem;
  color: var(--text-2); margin: 0.8rem 0 0.4rem;
  display: flex; align-items: center; gap: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hist-day-count {
  background: rgba(0,212,255,0.15); color: var(--accent);
  font-size: 0.7rem; padding: 1px 7px; border-radius: 999px;
}
.hist-q-list { list-style: none; padding: 0; margin: 0; }
.hist-q {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.65rem; margin-bottom: 4px;
  background: rgba(255,255,255,0.03); border-radius: 8px;
  font-size: 0.8rem;
}
.hist-q-icon { font-size: 1.05rem; line-height: 1; flex-shrink: 0; }
.hist-q-topic { color: var(--text); font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-q-code { font-family: var(--font-h); font-size: 0.7rem; color: var(--text-2); letter-spacing: 0.03em; }
.hist-q-time { font-size: 0.7rem; color: var(--text-2); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.hist-res {
  font-family: var(--font-h); font-weight: 800; font-size: 0.68rem;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
  flex-shrink: 0;
}
.hist-res.hist-ok   { background: rgba(16,185,129,0.2); color: #34d399; }
.hist-res.hist-err  { background: rgba(231,76,60,0.2); color: #ff6b6b; }
.hist-res.hist-skip { background: rgba(243,156,18,0.2); color: #fbbf24; }
.hist-book-list { list-style: none; padding: 0; margin: 0; }
.hist-book {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0.8rem; margin-bottom: 6px;
  background: rgba(255,255,255,0.03); border-radius: 8px;
  border: 1px solid var(--border);
}
.hist-book-title { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.hist-book-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; }
.hist-badge {
  padding: 2px 8px; border-radius: 999px;
  font-family: var(--font-h); font-weight: 700; font-size: 0.7rem;
}
.hist-done { background: rgba(16,185,129,0.2); color: #34d399; }
.hist-reading { background: rgba(0,212,255,0.15); color: var(--accent); }
.hist-time { color: var(--text-2); font-size: 0.7rem; }

/* ================================================================
   HEADER USER BADGE v2 — nav-integrated level + settings
   ================================================================ */
.header-user {
  display: flex; align-items: center; gap: 0.5rem; margin-left: auto;
}
.header-pin {
  font-family: var(--font-h); font-weight: 700; font-size: 0.9rem;
  color: var(--accent); padding: 0.25rem 0.55rem;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25);
  border-radius: 999px;
}
button.header-level,
.header-level {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--border-h);
  color: var(--text); padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-b);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
button.header-level:hover,
.header-level:hover { border-color: var(--accent); background: rgba(0,212,255,0.12) !important; }
.header-level-emoji { font-size: 1.1rem; line-height: 1; }
.header-level-text { font-family: var(--font-h); font-weight: 900; font-size: 0.85rem; color: var(--accent); }
.header-level-sub { font-size: 0.7rem; color: var(--text-2); }
button.header-settings,
.header-settings {
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid var(--border-h);
  color: var(--text); width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
}
button.header-settings:hover,
.header-settings:hover { transform: rotate(45deg); background: rgba(0,212,255,0.15) !important; }

/* Hide the old in-dashboard top panel when present */
.home-top-panel { display: none !important; }

/* Compact page hero used on subpáginas (jogos, etc.) */
.page-mini-hero {
  margin: 0 0 1rem; padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.06));
  border: 1px solid rgba(0,212,255,0.18); border-radius: 14px;
  text-align: left;
}
.page-mini-hero h1 {
  font-family: var(--font-h); font-size: 1.25rem; font-weight: 800;
  margin: 0; line-height: 1.15;
  background: linear-gradient(135deg, #fff 20%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-mini-hero p {
  margin: 0.25rem 0 0; color: var(--text-2); font-size: 0.9rem;
}
@media (max-width: 480px) {
  .page-mini-hero { padding: 0.7rem 0.9rem; }
  .page-mini-hero h1 { font-size: 1.1rem; }
  .page-mini-hero p { font-size: 0.85rem; }
}

/* Mobile: collapse header badge info */
@media (max-width: 720px) {
  .header-level-sub { display: none; }
  .header-level { padding: 0.25rem 0.45rem; }
  .header-pin { font-size: 0.8rem; padding: 0.2rem 0.45rem; }
}
@media (max-width: 500px) {
  .header-level-text { display: none; }
  .header-user { gap: 0.35rem; }
}

