/* ── Atlas · Site público — Obsidian (mesmo sistema do admin) ──────────────
   Fundo obsidiana, marfim para leitura e dourado (#D6A85E) como cor de ação.
   O dark é a experiência principal; o claro ("Ivory") é o MESMO sistema com
   as primitivas trocadas.

   O Estúdio de Tema (painel) sobrescreve --bg/--surface/--ink/--muted/--line/
   --accent/--accent-ink/--danger/--ok/--radius via inline no <html>. Todos os
   estilos derivam desses 10 tokens — a paleta do site nunca fica presa aqui. */

:root {
  /* Obsidian (dark) — padrão */
  --bg: #0a0f18;
  --surface: #111a28;
  --ink: #f3eedf;
  --muted: #8a97a8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #d6a85e;
  --accent-ink: #19140e;
  --danger: #fb7185;
  --ok: #34d399;
  --radius: 0.65rem;

  color-scheme: dark;

  /* Tokens derivados — seguem o Estúdio de Tema automaticamente */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --line-strong: rgba(255, 255, 255, 0.16);
  --panel-glow: rgba(0, 0, 0, 0.18);
  --glass: color-mix(in srgb, var(--ink) 3%, transparent);
  --ring: color-mix(in srgb, var(--accent) 55%, transparent);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Ivory (light) — mesmo sistema, primitivas trocadas */
html[data-theme='light'] {
  --bg: #ece9e1;
  --surface: #fffdf9;
  --ink: #14130f;
  --muted: #6e6857;
  --line: rgba(27, 26, 22, 0.12);
  --accent: #8a6027;
  --accent-ink: #fffaf0;
  --danger: #b23a4a;
  --ok: #157a4f;

  color-scheme: light;

  --line-strong: rgba(27, 26, 22, 0.24);
  --panel-glow: rgba(27, 26, 22, 0.08);
  --glass: color-mix(in srgb, var(--ink) 3%, transparent);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grade de 32px quase imperceptível — materialidade sem virar decoração */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 2.5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 2.5%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Brilhos radiais discretos: dourado no alto à direita, azul embaixo à esquerda */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 12%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 27%),
    radial-gradient(circle at 20% 80%, rgba(35, 84, 130, 0.09), transparent 28%);
}

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--ink);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--ink) 32%, transparent);
  background-clip: content-box;
  border: 3px solid transparent;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  min-height: 64px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 88%, #fff 12%),
    color-mix(in srgb, var(--accent) 55%, #000 20%)
  );
  color: var(--accent-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 26%, transparent);
  flex-shrink: 0;
}

.brand-name::after { content: '.'; color: var(--accent); }

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--glass);
}

.main-nav a.active {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 88%, #fff 12%),
    var(--accent)
  );
  color: var(--accent-ink);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 22%, transparent);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Toggle de tema — botão circular de vidro */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { border-color: var(--line-strong); background: var(--glass); }
.theme-toggle .icon-dark { display: none; }
.theme-toggle .icon-light { display: inline; }
html[data-theme='light'] .theme-toggle .icon-dark { display: inline; }
html[data-theme='light'] .theme-toggle .icon-light { display: none; }

.header-langrow {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
}
.header-langrow button {
  padding: 5px 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.header-langrow button:hover { color: var(--ink); }
.header-langrow button.active {
  color: var(--accent-ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff 12%), var(--accent));
}

/* Sessão — botão de login (visitante) */

.session-area { display: flex; align-items: center; gap: 8px; }
.session-login-btn {
  display: inline-flex; align-items: center;
  font-size: 0.82rem; font-weight: 800;
  color: var(--accent-ink); text-decoration: none;
  padding: 8px 16px; border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff 12%), var(--accent));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}
.session-login-btn:hover { box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 40%, transparent); filter: brightness(1.05); }

/* Sessão — avatar com dropdown (igual ao painel) */

.session-dropwrap { position: relative; }
.avatar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.avatar-btn:hover { border-color: var(--line-strong); background: var(--glass); }
.avatar-btn .avatar-name {
  font-size: 0.8rem; font-weight: 800;
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.avatar-btn .avatar-chevron { color: var(--muted); display: inline-flex; transition: transform 0.18s ease; }
.session-dropwrap.open .avatar-chevron { transform: rotate(180deg); }

.avatar {
  position: relative; display: grid; place-items: center;
  flex-shrink: 0; overflow: hidden;
  width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff 15%), color-mix(in srgb, var(--accent) 50%, #000 15%));
}
.avatar--lg { width: 40px; height: 40px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--accent-ink);
}
.avatar--lg .avatar-fallback { font-size: 0.85rem; }

.session-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 80;
  min-width: 236px; padding: 6px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -12px var(--panel-glow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.session-dropwrap.open .session-dropdown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.session-dropdown-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.session-drop-identity { min-width: 0; }
.session-drop-login { font-size: 0.88rem; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-drop-role { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

.session-dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; border: none; border-radius: 8px;
  background: transparent; color: var(--ink);
  font-size: 0.84rem; font-weight: 600; text-align: left; text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
}
.session-dropdown-item svg { color: var(--muted); flex-shrink: 0; }
.session-dropdown-item:hover { background: var(--glass); }
.session-dropdown-item--danger { color: var(--danger); }
.session-dropdown-item--danger svg { color: var(--danger); }
.session-dropdown-item--danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

.session-drop-sep { height: 1px; background: var(--line); margin: 6px 8px; }

/* ── Main / Footer ──────────────────────────────────────────────────────── */

.site-main { padding: 32px 20px 56px; flex: 1 0 auto; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 55%, transparent),
    transparent
  );
}

/* ── Cards / painéis ────────────────────────────────────────────────────── */

.card {
  background-color: var(--surface);
  background-image: linear-gradient(
    145deg,
    color-mix(in srgb, var(--surface) 86%, var(--ink) 6%),
    color-mix(in srgb, var(--surface) 94%, #000 6%)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 16px 44px var(--panel-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  padding: 22px;
}

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Hero de página — título com losango dourado + subtítulo */

.page-hero { margin: 4px 0 22px; }
.page-hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.page-hero .page-hero-title { margin: 0; }
.page-hero-title::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 3px;
  transform: rotate(45deg);
  flex-shrink: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff 15%), var(--accent));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent);
}
.page-hero-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 640px;
}

/* Título de seção — losango dourado menor */

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.section-title:first-child { margin-top: 0; }
.section-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff 15%), var(--accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent);
}
.page-title::after {
  content: '.';
  color: var(--accent);
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tabs button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tabs button:hover { color: var(--ink); border-color: var(--line-strong); }
.tabs button.active {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 88%, #fff 12%),
    var(--accent)
  );
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ── Tabelas ────────────────────────────────────────────────────────────── */

.table { width: 100%; border-collapse: collapse; background: transparent; }
.table th, .table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.table th {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom-color: var(--line-strong);
}
.table tbody tr {
  transition: background 0.12s ease;
}
.table tbody tr:hover { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.table .num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

.flex { display: flex; align-items: center; gap: 10px; }
.justify-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Formulários ────────────────────────────────────────────────────────── */

.form { max-width: 420px; }
.form label, .form .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 16px 0 7px;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form .hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.form-actions { margin-top: 20px; display: flex; align-items: center; gap: 12px; }

.checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; margin-top: 14px; }
.checkbox input { width: auto; }

/* ── Botões ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 88%, #fff 12%),
    var(--accent)
  );
  color: var(--accent-ink);
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn.btn-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn.btn-light:hover { border-color: var(--line-strong); background: var(--glass); filter: none; }
.btn.btn-sm { padding: 5px 11px; font-size: 0.78rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Alertas ────────────────────────────────────────────────────────────── */

.alert {
  padding: 11px 15px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  margin: 12px 0;
  border: 1px solid;
}
.alert-error {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--danger);
}
.alert-success {
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
  color: var(--ok);
}
.alert-info {
  background: var(--glass);
  border-color: var(--line);
  color: var(--muted);
}

/* ── Notícias ───────────────────────────────────────────────────────────── */

.news-list { display: flex; flex-direction: column; }
.news-item {
  display: block;
  margin-bottom: 16px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.news-item:last-child { margin-bottom: 0; }
.news-item:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.news-item h2 { font-size: 1.15rem; line-height: 1.3; color: var(--ink); transition: color 0.12s ease; }
.news-item:hover h2 { color: var(--accent); }
.news-meta {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}
.news-item-top { display: flex; align-items: center; gap: 10px; }
.news-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent);
}
.news-tag--event { background: color-mix(in srgb, #7c6cff 20%, var(--surface)); color: #a89bff; }
.news-tag--update { background: color-mix(in srgb, #3fb0ff 20%, var(--surface)); color: #7fc7ff; }
.news-tag--fix { background: color-mix(in srgb, #ff6b6b 20%, var(--surface)); color: #ff9b9b; }
.news-tag--maintenance { background: color-mix(in srgb, #9a9a9a 22%, var(--surface)); color: #c6c6c6; }
.news-body { font-size: 0.95rem; white-space: pre-wrap; }

/* ── Markdown (guias/notícias) ──────────────────────────────────────────── */

.prose { font-size: 0.95rem; line-height: 1.75; }
.prose h1 { font-size: 1.5rem; }
.prose h2 { font-size: 1.2rem; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  margin: 1.3em 0 0.55em;
  line-height: 1.3;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 0.85em; }
.prose ul, .prose ol { margin: 0 0 0.85em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.25em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 0 0 0.85em;
  padding: 0.15em 1em;
  color: var(--muted);
  background: var(--glass);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose code {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  font-size: 0.88em;
  font-family: var(--font-mono);
}
.prose pre {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9em 1.1em;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.prose table { border-collapse: collapse; margin: 0 0 0.85em; font-size: 0.88em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 11px; text-align: left; }
.prose th { background: var(--glass); }
.prose hr {
  border: 0;
  height: 1px;
  margin: 1.3em 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 50%, transparent),
    transparent
  );
}
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 0.85em; }
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px var(--panel-glow);
}

/* ── Grids / badges / utilitários ───────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--glass);
}

.empty { color: var(--muted); font-size: 0.92rem; padding: 28px 0; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}
.loading { color: var(--muted); padding: 28px 0; text-align: center; }

.stat { text-align: center; padding: 24px 18px; }
.stat .value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

hr {
  border: none;
  height: 1px;
  margin: 22px 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 45%, transparent),
    transparent
  );
}

/* ── Carrinho — botão flutuante + painel deslizante ─────────────────────── */

.cart-fab {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 40;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 90%, #fff 10%),
    color-mix(in srgb, var(--accent) 60%, #000 12%)
  );
  color: var(--accent-ink);
  box-shadow:
    0 14px 34px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 0 5px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.cart-fab:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.08);
  box-shadow:
    0 18px 40px color-mix(in srgb, var(--accent) 42%, transparent),
    0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.cart-fab:active { transform: translateY(-1px) scale(0.98); }

.cart-fab .cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #ff6b7d, var(--danger));
  color: #fff;
  border: 2px solid var(--bg);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 45;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 92vw;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px var(--panel-glow);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 46;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
}
.cart-drawer-tabs { display: flex; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.cart-drawer-tabs .btn { flex: 1; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.cart-drawer-footer { padding: 18px 20px; border-top: 1px solid var(--line); }
.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
}
.cart-close-btn:hover { color: var(--ink); background: var(--glass); }

.cart-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.cart-line-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.cart-line-qty button:hover { border-color: var(--line-strong); background: var(--glass); }

.cart-purchase-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.cart-coupon-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.cart-coupon-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  font-size: 0.85rem;
}
.cart-coupon-input::placeholder { color: var(--muted); }
.cart-coupon-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.cart-coupon-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
  color: var(--ok);
  font-size: 0.82rem;
  font-weight: 700;
}
.cart-coupon-chip-remove {
  border: none;
  background: color-mix(in srgb, var(--ok) 20%, transparent);
  color: var(--ok);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-coupon-chip-remove:hover { background: color-mix(in srgb, var(--ok) 32%, transparent); }

/* ── Eventos — painel flutuante com countdown ao vivo ───────────────────── */

.events-panel {
  position: fixed;
  right: 16px;
  bottom: 170px;
  left: auto;
  top: auto;
  z-index: 30;
  width: 276px;
  max-height: calc(100vh - 240px);
  display: none;
  flex-direction: column;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px var(--panel-glow);
  overflow: hidden;
}
.events-panel.open { display: flex; }
.events-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
}
.events-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.events-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 4px;
  line-height: 1;
}
.events-panel-close:hover { color: var(--ink); }
.events-panel-body { overflow-y: auto; padding: 12px 14px; }
.events-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.events-panel-item { border-left: 2px solid var(--line); padding-left: 12px; }
.events-panel-name { font-size: 0.88rem; font-weight: 700; }
.events-panel-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 0.78rem; color: var(--muted); }
.events-count {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.events-now {
  font-weight: 800;
  color: var(--ok);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}
.events-panel-empty { color: var(--muted); font-size: 0.82rem; padding: 6px 0; }
.events-group { margin-bottom: 12px; }
.events-group:last-child { margin-bottom: 0; }
.events-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px 1px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.events-group-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }

.events-fab {
  position: fixed;
  right: 20px;
  bottom: 158px;
  left: auto;
  top: auto;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 88%, #fff 12%),
    var(--accent)
  );
  color: var(--accent-ink);
  padding: 11px 16px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.events-fab:hover { transform: translateY(-2px); filter: brightness(1.06); }

@media (max-width: 768px) {
  .events-panel,
  .events-panel.open {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 170px;
    width: auto;
    max-height: 46vh;
  }
  .events-fab { left: auto; right: 12px; top: auto; bottom: 158px; }
}

/* ── Chat do Help Desk ──────────────────────────────────────────────────── */

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.chat-bubble {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-bubble--staff {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  color: var(--ink);
}
.chat-bubble--own {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 88%, #fff 12%),
    var(--accent)
  );
  color: var(--accent-ink);
}
.chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.chat-bubble--own .chat-meta { justify-content: flex-end; }
.chat-waiting {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.chat-closed {
  margin-top: 14px;
  padding: 10px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Entrada dos blocos ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .card, .stat, .page-title, .page-hero-title, .section-title {
    animation: reveal 0.45s cubic-bezier(0.23, 1, 0.32, 1) both;
  }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── Responsivo ─────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }

  .menu-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; border-radius: 10px; }
}

/* ── Perfil do jogador ───────────────────────────────────────────────────── */

.profile-section { margin-top: 24px; }
.profile-section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.profile-section > h2::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff 15%), var(--accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent);
}

.avatar--xl { width: 72px; height: 72px; }
.avatar--xl .avatar-fallback { font-size: 1.5rem; }
@property --avatar-ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes avatar-ring-spin {
  to { --avatar-ring-angle: 360deg; }
}
.avatar-edit-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
  padding: 3px;
  border-radius: 999px;
  background: conic-gradient(from var(--avatar-ring-angle), var(--accent), #ff8ac0, #7fc4ff, #c9a3ff, var(--accent));
  animation: avatar-ring-spin 4s linear infinite;
}
.avatar-edit-wrap:hover .avatar--xl { filter: brightness(0.75); }
.avatar-edit-badge {
  position: absolute;
  z-index: 2;
  right: -4px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--surface);
}
.avatar-edit-badge svg { width: 12px; height: 12px; }

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}
.profile-hero-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.profile-hero-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}
.profile-hero-meta b { color: var(--ink); font-weight: 700; }

.badge-ok {
  color: #6ee7a0;
  border-color: rgba(110, 231, 160, 0.35);
  background: rgba(110, 231, 160, 0.08);
}
.badge-danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.badge-guild {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.wallet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.wallet-stats.wallet-stats--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .wallet-stats.wallet-stats--4 { grid-template-columns: repeat(2, 1fr); }
  .wallet-stats--4 .wallet-stat:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
}
.wallet-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.wallet-stat + .wallet-stat { border-left: 1px solid var(--line); }
.coin {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.coin--c { color: #ffd98a; border-color: rgba(255, 217, 138, 0.35); background: radial-gradient(circle at 30% 25%, rgba(255, 217, 138, 0.3), rgba(214, 168, 94, 0.08)); }
.coin--cr { color: #8ecbff; border-color: rgba(142, 203, 255, 0.35); background: radial-gradient(circle at 30% 25%, rgba(142, 203, 255, 0.28), rgba(70, 130, 220, 0.08)); }
.coin--g { color: #9ff0b0; border-color: rgba(159, 240, 176, 0.35); background: radial-gradient(circle at 30% 25%, rgba(159, 240, 176, 0.28), rgba(60, 190, 120, 0.08)); }
.coin--wd { color: #f0b7ff; border-color: rgba(240, 183, 255, 0.35); background: radial-gradient(circle at 30% 25%, rgba(240, 183, 255, 0.28), rgba(180, 90, 220, 0.08)); }
.wallet-stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.wallet-stat-label {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.profile-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}
.profile-side {
  position: sticky;
  top: 88px;
}
.profile-account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.profile-account-chip .avatar { width: 34px; height: 34px; }
.profile-account-chip-main { min-width: 0; }
.profile-account-login {
  font-size: 0.85rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-account-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-account-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.profile-account-status.is-online { color: #6ee7a0; }
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px var(--panel-glow);
}
.profile-menu-label {
  padding: 8px 12px 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.13s ease, color 0.13s ease, transform 0.13s ease;
}
.profile-menu a:hover { background: var(--glass); transform: translateX(2px); }
.profile-menu-ico { display: inline-flex; color: var(--muted); flex-shrink: 0; transition: color 0.13s ease; }
.profile-menu a:hover .profile-menu-ico { color: var(--accent); }
.profile-menu a.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, #fff 10%), color-mix(in srgb, var(--accent) 60%, #000 8%));
  color: var(--accent-ink);
  font-weight: 800;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}
.profile-menu a.active .profile-menu-ico { color: var(--accent-ink); }
.profile-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-main .profile-section { margin-top: 0; }

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.char-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.char-media {
  position: relative;
  height: 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--surface) 60%, var(--ink) 7%), color-mix(in srgb, var(--surface) 30%, #000 12%));
}
.char-media img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}
.char-media-fallback {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--accent) 75%, var(--ink));
  opacity: 0.85;
}
.char-slot {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.char-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.char-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}
.char-class { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.char-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.chip b { color: var(--ink); }
.char-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--muted);
}
.char-meta-row { display: flex; align-items: center; gap: 7px; }
.char-meta-row b {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.char-ico { display: inline-flex; color: var(--muted); }
.char-ico--ruud { color: var(--accent); }

.char-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.char-list-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px var(--panel-glow);
}
.char-list-title {
  padding: 4px 8px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.char-list { display: flex; flex-direction: column; gap: 4px; max-height: 640px; overflow-y: auto; }
.char-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.13s ease, border-color 0.13s ease;
}
.char-list-item:hover { background: var(--glass); }
.char-list-item.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, #fff 10%), color-mix(in srgb, var(--accent) 60%, #000 8%));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.char-list-thumb {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.char-list-thumb img { height: 100%; width: 100%; object-fit: contain; }
.char-list-thumb-fallback { font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.char-list-item-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.char-list-item-name {
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.char-list-item-sub { font-size: 0.7rem; color: var(--muted); }
.char-list-item.active .char-list-item-name,
.char-list-item.active .char-list-item-sub { color: var(--accent-ink); }

.char-center-wrap, .char-side-wrap { min-width: 0; }
.char-center { padding: 26px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.char-detail-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.char-detail-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.char-detail-status.is-online { color: #6ee7a0; }
.char-detail-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
}
.char-detail-name-sep { color: var(--muted); font-weight: 400; }
.char-detail-name-info {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.char-detail-name-info b { font-weight: 700; color: var(--ink); }
.char-center-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.char-detail-media {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 420px;
  height: 300px;
  display: grid;
  place-items: center;
}
.char-detail-media img { position: relative; z-index: 1; height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5)); }
.char-glow {
  position: absolute;
  z-index: 0;
  inset: -25%;
  background:
    radial-gradient(45% 55% at 50% 45%, color-mix(in srgb, var(--glow-color) 70%, transparent), transparent 70%),
    radial-gradient(65% 70% at 40% 60%, color-mix(in srgb, var(--glow-color) 40%, transparent), transparent 75%),
    radial-gradient(70% 75% at 62% 40%, color-mix(in srgb, var(--glow-color) 32%, transparent), transparent 78%);
  filter: blur(38px);
  opacity: 0.8;
  mix-blend-mode: screen;
}

.char-levels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.char-level-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.char-levels-divider { width: 1px; height: 34px; background: var(--line); }
.char-level-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.char-level-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.char-level-value--master { color: var(--accent); }
.char-center-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; }
.char-meta--inline { flex-direction: row; gap: 14px; padding-top: 0; border-top: none; margin-top: 0; }

.char-side { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.char-stats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.char-stat {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  display: flex;
  align-items: center;
  gap: 10px;
}
.char-stat-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.char-stat--str .char-stat-icon { color: #f2867a; background: color-mix(in srgb, #f2867a 16%, transparent); }
.char-stat--agi .char-stat-icon { color: #6ee7a0; background: color-mix(in srgb, #6ee7a0 16%, transparent); }
.char-stat--vit .char-stat-icon { color: #7fc4ff; background: color-mix(in srgb, #7fc4ff 16%, transparent); }
.char-stat--ene .char-stat-icon { color: #c9a3ff; background: color-mix(in srgb, #c9a3ff 16%, transparent); }
.char-stat--cmd .char-stat-icon { color: #f2c14e; background: color-mix(in srgb, #f2c14e 16%, transparent); }
.char-stat-text { display: flex; flex-direction: column; gap: 1px; }
.char-stat-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.char-stat-value { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.char-quick-actions {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.char-quick-actions-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.char-quick-actions-row { display: flex; flex-direction: column; gap: 8px; }
.char-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.13s ease, border-color 0.13s ease;
}
.char-action-btn:hover { background: color-mix(in srgb, var(--accent) 12%, var(--glass)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.char-action-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.char-action-btn:disabled:hover { background: var(--glass); border-color: var(--line); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); box-shadow: none; }
.btn-ghost:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.char-actions-error { font-size: 0.8rem; color: #f2867a; }

.ticket-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ticket-header-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-list { display: flex; flex-direction: column; }
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.13s ease;
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row:hover { background: var(--glass); }
.ticket-row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ticket-row-subject {
  font-weight: 700;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-row-date { font-size: 0.74rem; color: var(--muted); }
.ticket-row-badges { flex-shrink: 0; display: flex; gap: 6px; }

@media (max-width: 640px) {
  .char-detail-media { height: 220px; }
  .char-detail-name { font-size: 1.5rem; }
}

@media (max-width: 1200px) {
  .char-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .char-side-wrap { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .char-shell { grid-template-columns: 1fr; }
  .char-list { max-height: 320px; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 12, 0.68);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal-card { width: 100%; max-width: 420px; padding: 24px; }
.modal-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }
.modal-form { display: flex; flex-direction: column; gap: 4px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.modal-field label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.modal-field input,
.modal-field select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
}
.modal-field select { color-scheme: dark; }
html[data-theme='light'] .modal-field select { color-scheme: light; }
.modal-field select option { background: var(--surface); color: var(--ink); }
.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.modal-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.modal-row b.is-negative { color: #f2867a; }
.modal-warning {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, #f2867a 14%, transparent);
  color: #f2867a;
  font-size: 0.78rem;
  font-weight: 600;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.account-card { padding: 26px; }
.account-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account-card-identity { min-width: 0; }
.account-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  margin: 18px 0 0;
}
.account-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.account-info dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  white-space: nowrap;
}
.account-info dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.account-card-coins { margin-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .profile-hero { flex-direction: column; text-align: center; }
  .profile-hero-name { justify-content: center; }
  .wallet-stats { grid-template-columns: 1fr; }
  .wallet-stat + .wallet-stat { border-left: none; border-top: 1px solid var(--line); }
  .account-card-head { flex-direction: column; text-align: center; }
  .account-card-head .profile-hero-name { justify-content: center; }
  .account-info { grid-template-columns: 1fr; }
  .account-info-row { flex-direction: column; gap: 2px; align-items: flex-start; }
  .account-info dd { text-align: left; }
}

@media (max-width: 920px) {
  .profile-layout { grid-template-columns: 1fr; gap: 14px; }
  .profile-side { position: static; }
}


.stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) {
  .stats-4 { grid-template-columns: 1fr; }
}

/* ── Conquistas ──────────────────────────────────────────────────────── */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.ach-card { display: flex; flex-direction: column; }
.ach-card-image {
  display: grid;
  place-items: center;
  margin: 0 0 12px;
  padding: 8px 0 2px;
}
@property --ach-ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes ach-ring-spin {
  to { --ach-ring-angle: 360deg; }
}
.ach-card-image-ring {
  --ach-glow-color: var(--accent);
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  padding: 3px;
  background: conic-gradient(from var(--ach-ring-angle), var(--ach-glow-color), transparent 55%, var(--ach-glow-color));
  animation: ach-ring-spin 3.5s linear infinite;
  box-shadow: 0 0 22px color-mix(in srgb, var(--ach-glow-color) 45%, transparent);
}
.ach-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
  background: var(--surface);
  padding: 12px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}
.ach-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ach-card-title { font-family: var(--font-display); font-size: 1rem; }
.ach-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ach-status-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.ach-card-desc { margin-top: 6px; white-space: pre-line; line-height: 1.5; text-align: center; }
.ach-progress-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ach-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--line);
}
.ach-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s ease; }
.ach-progress-label { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ach-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.ach-claim-row { margin-top: 14px; }
.ach-claim-btn { width: 100%; justify-content: center; }
.ach-class-select {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  color-scheme: dark;
}
html[data-theme='light'] .ach-class-select { color-scheme: light; }
.ach-class-select option { background: var(--surface); color: var(--ink); }
@media (max-width: 760px) {
  .ach-grid { grid-template-columns: 1fr; }
}

/* ── Toast (notificações canto inferior direito) ────────────────────────── */
.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}
@property --toast-ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes toast-ring-spin {
  to { --toast-ring-angle: 360deg; }
}
.toast {
  --toast-color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: calc(var(--radius) + 0.15rem);
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(
        from var(--toast-ring-angle),
        var(--toast-color),
        transparent 28%,
        transparent 72%,
        var(--toast-color)
      )
      border-box;
  animation: toast-ring-spin 3s linear infinite;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: auto;
}
.toast-visible { opacity: 1; transform: translateY(0) scale(1); }
.toast-leaving { opacity: 0; transform: translateY(4px) scale(0.98); }
.toast-bump { animation: toast-ring-spin 3s linear infinite, toast-bump 0.32s ease; }
@keyframes toast-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.025); }
  100% { transform: scale(1); }
}
.toast-success { --toast-color: var(--ok); }
.toast-error { --toast-color: var(--danger); }
.toast-warning { --toast-color: var(--accent); }
.toast-info { --toast-color: #38bdf8; }
.toast-body { flex: 1; min-width: 0; padding-top: 1px; }
.toast-message { font-size: 0.84rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.toast-description { margin-top: 3px; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }
.toast-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.toast-close svg { width: 13px; height: 13px; }
.toast-close:hover { color: var(--ink); background: var(--glass); }
@media (max-width: 480px) {
  .toast-stack { left: 18px; right: 18px; max-width: none; }
}

/* ── Exchange ────────────────────────────────────────────────────────── */
.exchange-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; max-width: 480px; }
.exchange-balance-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.exchange-balance-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.exchange-balance-icon--wcoin { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.exchange-balance-icon--gpoint { background: color-mix(in srgb, #38bdf8 18%, transparent); color: #38bdf8; }
.exchange-balance-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.exchange-balance-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

.exchange-layout { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.exchange-layout-main { flex: 1; min-width: 320px; max-width: 480px; }
.exchange-layout-main .exchange-balances { max-width: none; }
.exchange-info-card { flex: 1; min-width: 260px; max-width: 340px; }
.exchange-info-title { font-family: var(--font-display); font-weight: 700; margin-bottom: 10px; }
.exchange-info-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.exchange-card { width: 100%; }
.exchange-form { display: flex; flex-direction: column; gap: 16px; }
.exchange-rate-line {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.exchange-swap-row { display: flex; align-items: center; gap: 12px; }
.exchange-swap-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
}
.exchange-swap-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.exchange-swap-currency { font-size: 0.74rem; font-weight: 700; color: var(--accent); }
.exchange-swap-arrow { flex-shrink: 0; font-size: 1.2rem; color: var(--muted); }
.exchange-amount-input,
.exchange-preview-value {
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
}
.exchange-amount-input:focus { outline: none; }
.exchange-preview-value { display: block; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .exchange-swap-row { flex-direction: column; }
  .exchange-swap-arrow { transform: rotate(90deg); }
  .exchange-swap-side { width: 100%; }
}

/* ── Battle Pass ─────────────────────────────────────────────────────── */
.bp-icon { display: inline-flex; width: 1em; height: 1em; flex-shrink: 0; }
.bp-icon svg { width: 100%; height: 100%; }

.eyebrow-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 10px; }
.bp-section { margin: 0; }
.ach-progress-track--lg { height: 10px; }

/* Hero — temporada / nível / XP */
.bp-hero {
  position: relative;
  padding: 24px 26px;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% -20%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface));
  overflow: hidden;
}
.bp-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bp-hero-season { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }
.bp-hero-countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.bp-hero-main { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
.bp-hero-level { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bp-hero-level-ring {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 38%, var(--surface)), var(--surface));
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 32%, transparent), inset 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
}
.bp-hero-level-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--ink); line-height: 1; }
.bp-hero-level-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.bp-hero-progress { flex: 1; min-width: 0; }
.bp-hero-xp-row { display: flex; align-items: baseline; gap: 2px; margin-bottom: 8px; }
.bp-hero-xp-current { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.bp-hero-xp-goal { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

.bp-track-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.bp-track--free { color: var(--muted); }
.bp-track--gold { color: #eab308; border-color: color-mix(in srgb, #eab308 45%, transparent); background: color-mix(in srgb, #eab308 12%, transparent); }
.bp-track--premium { color: #a78bfa; border-color: color-mix(in srgb, #a78bfa 45%, transparent); background: color-mix(in srgb, #a78bfa 12%, transparent); }
.bp-chip-gold { color: #eab308; border-color: color-mix(in srgb, #eab308 40%, transparent); background: color-mix(in srgb, #eab308 10%, transparent); }
.bp-chip-premium { color: #a78bfa; border-color: color-mix(in srgb, #a78bfa 40%, transparent); background: color-mix(in srgb, #a78bfa 10%, transparent); }

/* Timeline de recompensas — o coração da página */
.bp-timeline-wrap { display: flex; flex-direction: column; gap: 14px; }
.bp-track-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--muted); flex-shrink: 0; }
.bp-track-dot--free { background: var(--muted); }
.bp-track-dot--gold { background: #eab308; }
.bp-track-dot--premium { background: #a78bfa; }

.bp-track-tabs { display: flex; gap: 6px; }
.bp-track-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s ease;
}
.bp-track-tab:hover { color: var(--ink); }
.bp-track-tab--active { color: var(--ink); background: var(--glass); }
.bp-track-tab--free.bp-track-tab--active { border-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.bp-track-tab--gold.bp-track-tab--active { border-color: color-mix(in srgb, #eab308 55%, transparent); background: color-mix(in srgb, #eab308 12%, transparent); }
.bp-track-tab--premium.bp-track-tab--active { border-color: color-mix(in srgb, #a78bfa 55%, transparent); background: color-mix(in srgb, #a78bfa 12%, transparent); }

.bp-timeline-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}
.bp-timeline-card {
  flex-shrink: 0;
  scroll-snap-align: center;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  cursor: default;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.bp-timeline-card-level { font-size: 0.68rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bp-timeline-card-visual {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
.bp-timeline-card-visual img { width: 36px; height: 36px; object-fit: contain; }
.bp-timeline-card-visual .bp-icon { width: 22px; height: 22px; }
.bp-timeline-card-visual--stack { display: flex; flex-direction: column; gap: 3px; width: auto; height: auto; padding: 6px; }
.bp-timeline-card-visual--stack img, .bp-timeline-card-visual--stack .bp-icon { width: 36px; height: 36px; }
.bp-timeline-card-visual--empty { opacity: 0.3; }
.bp-timeline-card-visual--locked { opacity: 0.55; }
.bp-timeline-card-name {
  width: 100%;
  font-size: 0.62rem;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bp-timeline-card-xp { font-size: 0.66rem; color: var(--muted); font-weight: 600; }
.bp-timeline-card--current { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.bp-timeline-card--available {
  cursor: pointer;
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent);
}
.bp-timeline-card--available:hover { transform: translateY(-3px); }
.bp-timeline-card--available .bp-timeline-card-visual { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.bp-timeline-card--claimed { cursor: pointer; opacity: 0.7; }
.bp-timeline-card--claimed .bp-timeline-card-visual { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.bp-slot-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ok);
  color: #fff;
}
.bp-slot-badge .bp-icon { width: 10px; height: 10px; }
.bp-slot-badge--lg { width: 18px; height: 18px; }
.bp-slot-badge--lock { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.bp-slot-badge--multi {
  top: -5px;
  bottom: auto;
  width: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent);
  font-size: 0.6rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--surface);
}

.bp-empty-tiers { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--glass); }
.bp-empty-tiers-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent); }

/* Modal de detalhe da recompensa — lista vertical estilo jogo: uma linha por item */
.bp-detail-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.bp-detail-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--glass); }
.bp-detail-item img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; background: var(--surface); border-radius: 8px; padding: 4px; }
.bp-detail-item--icon { justify-content: center; padding: 14px; background: none; }
.bp-detail-item--icon .bp-icon { width: 48px; height: 48px; }
.bp-detail-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-detail-item-name { font-weight: 700; color: var(--ink); }
.bp-detail-item-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.bp-detail-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bp-detail-line { display: flex; align-items: center; justify-content: space-between; font-size: 0.84rem; }

/* Mercado de Itens — báu (conta) sobre o fundo real do jogo (storage.png) e modal de anúncio */
.market-warehouse-card { padding: 16px; }
.market-item-tooltip { background: var(--glass); border-radius: 8px; padding: 10px 12px; margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.market-list-form { gap: 12px; }
.market-list-header { display: flex; align-items: center; gap: 12px; }
.market-list-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 10px; background: var(--glass); display: flex; align-items: center; justify-content: center; padding: 6px; cursor: help; }
.market-list-icon img { width: 100%; height: 100%; object-fit: contain; }
.market-list-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.market-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.market-list-grid label, .market-list-form > div > label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.market-price-row { display: flex; align-items: center; gap: 12px; }
.market-price-row input { flex: 1; min-width: 0; }
.market-fee-preview { flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.74rem; color: var(--muted); text-align: right; white-space: nowrap; }
.market-fee-net { color: #4ade80; font-weight: 600; }
.market-mine-card { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px 14px; }
.market-mine-icon { width: 44px; height: 44px; }
.market-mine-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.market-mine-top { display: flex; align-items: center; gap: 8px; }
.market-browse-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.market-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 88px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px var(--panel-glow);
}
.market-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.13s ease, color 0.13s ease, transform 0.13s ease;
}
.market-cat-btn:hover { background: var(--glass); transform: translateX(2px); }
.market-cat-btn.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, #fff 10%), color-mix(in srgb, var(--accent) 60%, #000 8%));
  color: var(--accent-ink);
  font-weight: 800;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}
.market-cat-count { font-size: 0.72rem; opacity: 0.75; }
.market-cat-btn.active .market-cat-count { opacity: 0.85; }
.market-cat-btn--empty { opacity: 0.45; }
.market-cat-btn--empty:hover { opacity: 0.75; }
.market-browse-search { width: 100%; margin-bottom: 16px; }
.market-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.market-browse-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px 14px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.market-browse-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.market-browse-card--excellent { border-color: rgba(21, 205, 21, 0.4); }
.market-browse-card--ancient { border-color: rgba(88, 255, 88, 0.5); box-shadow: 0 0 0 1px rgba(88, 255, 88, 0.12) inset; }
.market-browse-icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: 10px; background: var(--glass); display: flex; align-items: center; justify-content: center; padding: 6px; cursor: help; margin-bottom: 4px; }
.market-browse-icon img { width: 100%; height: 100%; object-fit: contain; }
.market-browse-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.market-browse-buy { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .market-browse-layout { grid-template-columns: 1fr; }
  .market-cat-nav { flex-direction: row; flex-wrap: wrap; position: static; }
}
.market-item-setinfo { border: 1px solid rgba(52, 211, 153, 0.35); }
.market-warehouse-grid { position: relative; width: 100%; max-width: 300px; max-height: 65vh; margin: 0 auto; aspect-ratio: 327 / 641; background-size: 100% 100%; background-repeat: no-repeat; border-radius: 10px; overflow: hidden; }
.market-warehouse-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: none;
  background: rgba(52, 211, 153, 0.18);
  cursor: pointer;
  transition: background 0.15s ease;
}
.market-warehouse-slot:hover { background: rgba(52, 211, 153, 0.32); }
.market-warehouse-slot img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.market-warehouse-stack { position: absolute; right: 1px; bottom: 1px; font-size: 9px; font-weight: 700; line-height: 1; color: #fff; background: rgba(0, 0, 0, 0.75); padding: 1px 3px; border-radius: 3px; pointer-events: none; }
.market-warehouse-slot--static { cursor: default; }

/* Tooltip de item — CSS copiado das cores/layout REAIS do cliente MU (extraído do style.css de
   outro servidor MU real, classes item_light_blue/item_luck/item_yellow/item_ancient_title/etc —
   mesmos valores hex, mesmo container centralizado). Container: #tooltip { background:#221f28;
   border:1px solid #111; text-align:center; font:10px Tahoma }. */
.mu-tooltip {
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  max-width: 320px;
  padding: 6px 8px;
  border-radius: 3px;
  background-color: #221f28;
  border: 1px solid #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font: 12px Tahoma, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.1s ease, transform 0.1s ease;
}
.mu-tooltip.is-visible { opacity: 1; transform: translateY(0); }
/* Dentro do modal de anúncio o tooltip fica "solto" no fluxo (position:static) — sem limite de
   altura ele empurra a modal inteira pra baixo quando o item tem muita linha (set completo etc).
   Trava a altura e deixa rolar dentro dele mesmo. */
.mu-tooltip[style*='position:static'] { max-height: 260px; overflow-y: auto; pointer-events: auto; }
.mu-tooltip div { margin: 0; }
.mu-tooltip-name { color: #fff; }
.mu-tooltip-name--excellent { color: #15cd15; }
.mu-tooltip-name--ancient { color: #58ff58; }
.mu-tooltip-stat { color: #80b2ff; }
.mu-tooltip-luck { color: #80b2ff; }
.mu-tooltip-skill { color: #80b2ff; }
.mu-tooltip-class { color: #fff; background-color: maroon; }
.mu-tooltip-divider { height: 6px; }
.mu-tooltip-setname { color: #fade09; }
.mu-tooltip-set-header { color: #0f0; }
.mu-tooltip-set-line { color: grey; }
.mu-tooltip-socket { color: #b266ff; }
.market-warehouse-slot--static:hover { background: rgba(52, 211, 153, 0.18); }

/* Resumo de missões na página principal */
.bp-missions-summary-head { display: flex; align-items: flex-start; gap: 12px; }
.bp-missions-summary-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  padding: 7px;
}
.bp-missions-summary-count { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.bp-missions-preview { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bp-mission-mini { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--glass); border: 1px solid var(--line); }
.bp-mission-mini-icon { flex-shrink: 0; width: 15px; height: 15px; color: var(--muted); }
.bp-mission-mini-icon--done { color: var(--ok); }
.bp-mission-mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bp-mission-mini-desc { font-size: 0.78rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-mission-mini-xp { flex-shrink: 0; font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.bp-see-all-btn { display: inline-flex; align-items: center; gap: 6px; }
.bp-see-all-btn .bp-icon { width: 14px; height: 14px; }

/* Modal de missões */
.modal-card--lg { max-width: 640px; }
.bp-missions-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.bp-filter-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.bp-filter-tab {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s ease;
}
.bp-filter-tab:hover { color: var(--ink); }
.bp-filter-tab--active { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.bp-missions-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding-right: 4px; }

.bp-mission-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); }
.bp-mission-row--claimed { opacity: 0.55; }
.bp-mission-row-icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--muted); }
.bp-mission-row-icon--done { color: var(--accent); }
.bp-mission-row-icon--claimed { color: var(--ok); }
.bp-mission-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bp-mission-row-desc { font-size: 0.82rem; color: var(--ink); }
.bp-mission-row-progress { display: flex; align-items: center; gap: 8px; }
.bp-mission-row-progress .ach-progress-track { flex: 1; }
.bp-mission-card-frac { font-size: 0.66rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.bp-mission-claim {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: default;
}
.bp-mission-claim .bp-icon { width: 12px; height: 12px; }
.bp-mission-claim--done { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); cursor: pointer; }
.bp-mission-claim--done:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.bp-mission-claim--claimed { border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }

/* Lojinha — secundária, no rodapé */
.bp-shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.bp-shop-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); }
.bp-shop-card-head { display: flex; align-items: center; gap: 10px; }
.bp-shop-card-icon { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); color: var(--accent); padding: 8px; }
.bp-shop-card-body { flex: 1; min-width: 0; }
.bp-shop-card-title { font-weight: 700; color: var(--ink); font-size: 0.84rem; }
.bp-shop-qty { width: 100%; padding: 6px 8px; margin-top: 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 0.8rem; }
.bp-shop-card .ach-claim-btn { width: 100%; }

.bp-hero-char-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.bp-hero-char-picker-icon { width: 13px; height: 13px; color: var(--accent); }
.bp-hero-char-picker-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.bp-hero-char-select {
  display: inline-block;
  width: auto;
  margin-top: 0;
  padding: 0 4px;
  border: none;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}
.bp-char-gate { display: flex; align-items: center; gap: 14px; }
.bp-char-gate-icon { flex-shrink: 0; width: 26px; height: 26px; color: var(--accent); }
.bp-char-gate select { margin-left: auto; }

@media (max-width: 640px) {
  .bp-hero-main { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bp-hero-progress { width: 100%; }
  .bp-missions-summary-head { flex-direction: column; }
  .bp-hero-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bp-char-gate { flex-direction: column; align-items: flex-start; }
  .bp-char-gate select { margin-left: 0; width: 100%; }
}

/* Rankings — Top Level / Top PvP / Top Gens / Top Guilds */
.rank-tabs { margin-top: 4px; }
.rank-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.rank-search {
  flex: 1 1 260px;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  font-size: 0.88rem;
}
.rank-search::placeholder { color: var(--muted); }
.rank-search:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.rank-class-select {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  min-width: 180px;
}
.rank-table th { white-space: nowrap; }
.rank-table td { vertical-align: middle; }
.rank-table th.rank-level-col, .rank-table td.rank-level-col { text-align: center; }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--glass);
  color: var(--muted);
  border: 1px solid var(--line);
}
.rank-badge--gold { background: linear-gradient(135deg, #ffd77a, #d6a231); color: #3a2900; border-color: transparent; box-shadow: 0 0 10px color-mix(in srgb, #ffd77a 55%, transparent); }
.rank-badge--silver { background: linear-gradient(135deg, #e6e9ee, #b7bfc9); color: #21262c; border-color: transparent; }
.rank-badge--bronze { background: linear-gradient(135deg, #dba36a, #a5673a); color: #2c1806; border-color: transparent; }
.rank-player { display: flex; align-items: center; gap: 10px; }
.rank-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff 15%), color-mix(in srgb, var(--accent) 50%, #000 15%));
  color: var(--accent-ink);
}
.rank-avatar--img {
  object-fit: cover;
  background: var(--glass);
  border: 1px solid var(--line);
}
.rank-avatar-wrap { position: relative; flex-shrink: 0; width: 34px; height: 34px; display: inline-flex; }
.rank-avatar-wrap--vip::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #ff2b4d, #ff8a3d, #ff2b4d, #b3001f, #ff2b4d);
  filter: blur(0.5px);
  animation: rank-vip-spin 2.2s linear infinite;
  z-index: 0;
}
.rank-avatar-wrap--vip::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 999px;
  box-shadow: 0 0 4px 1px rgba(255, 40, 60, 0.55);
  animation: rank-vip-pulse 1.6s ease-in-out infinite;
  z-index: 0;
}
.rank-avatar-wrap--vip .rank-avatar { position: relative; z-index: 1; }
@keyframes rank-vip-spin {
  to { transform: rotate(360deg); }
}
@keyframes rank-vip-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.rank-vip-badge {
  position: absolute;
  z-index: 2;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff4d5e, #b3001f);
  color: #fff;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.5px 4px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(179, 0, 31, 0.5);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .rank-avatar-wrap--vip::before, .rank-avatar-wrap--vip::after { animation: none; }
}
.rank-guild { display: inline-flex; align-items: center; gap: 6px; }
.rank-guild-mark { flex-shrink: 0; display: inline-flex; border-radius: 3px; overflow: hidden; }
.rank-class-select-slot:empty { display: none; }
.rank-player-name { font-weight: 700; color: var(--ink); }
.rank-player-class { font-size: 0.74rem; color: var(--muted); margin-top: 1px; }
.rank-level-stack { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rank-level-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}
.rank-master-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.rank-total { font-weight: 800; color: var(--danger); font-variant-numeric: tabular-nums; }
.rank-dim { color: var(--muted); }
.rank-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; }
.rank-status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--muted); flex-shrink: 0; }
.rank-status--online { color: var(--ok); }
.rank-status--online .rank-status-dot { background: var(--ok); box-shadow: 0 0 6px color-mix(in srgb, var(--ok) 70%, transparent); }
.rank-status--offline { color: var(--muted); }
.rank-location { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--muted); }

@media (max-width: 640px) {
  .rank-toolbar { flex-direction: column; }
  .rank-class-select { width: 100%; }
}

/* Loja — cards de produto com imagem, categoria, destaque e descrição */
.shop-toolbar { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 18px; }
.shop-search {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  font-size: 0.88rem;
  max-width: 360px;
}
.shop-search::placeholder { color: var(--muted); }
.shop-search:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.shop-cat-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-cat-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.shop-cat-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.shop-cat-btn.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff 12%), var(--accent));
  color: var(--accent-ink);
  border-color: transparent;
}
/* CashShop — barra lateral de sub-abas ao lado da grade, igual ao CashShop original do jogo. */
.cashshop-layout { display: flex; gap: 20px; align-items: flex-start; }
.cashshop-sidebar { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; width: 160px; }
.cashshop-sidebar-btn {
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cashshop-sidebar-btn:hover { color: var(--ink); background: var(--glass); }
.cashshop-sidebar-btn.active {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.cashshop-layout .shop-grid { flex: 1; min-width: 0; }

@media (max-width: 720px) {
  .cashshop-layout { flex-direction: column; }
  .cashshop-sidebar { flex-direction: row; flex-wrap: wrap; width: 100%; }
}

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.shop-card--featured {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  animation: shop-featured-pulse 2.4s ease-in-out infinite;
}
.shop-card--featured:hover { animation-play-state: paused; }
@keyframes shop-featured-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent) inset,
      0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent);
  }
  50% {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent) inset,
      0 0 16px 3px color-mix(in srgb, var(--accent) 28%, transparent);
  }
}
.shop-card--out { opacity: 0.6; }
.shop-card-media { position: relative; width: 100%; aspect-ratio: 16/10; background: var(--glass); overflow: hidden; }
.shop-card-image { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Ícones de item têm proporção livre (nem sempre quadrada) — contain evita cortar o item. */
.cashshop-card-image { object-fit: contain; padding: 12px; }
/* Cursor de "ajuda" (seta + ?) avisa que dá pra passar o mouse pra ver os itens do pacote —
   mesmo padrão do ícone de item no Item Market (.market-browse-icon). */
.cashshop-card-media { cursor: help; }
.cashshop-variant-select { width: 100%; margin-top: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; }
/* Preço vira badge no canto superior direito da imagem — libera o rodapé só pros botões. */
.cashshop-price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 15, 24, 0.78);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.cashshop-price-badge .shop-card-price-value { font-size: 0.85rem; }
.cashshop-price-badge .shop-card-price-label { font-size: 0.6rem; }
.cashshop-card-footer { align-items: stretch; }
.cashshop-card-actions { display: flex; gap: 8px; width: 100%; }
.cashshop-card-actions .shop-card-buy { flex: 1; }
.shop-card-media-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--accent); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); }
.shop-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff 12%), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}
.shop-category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(10, 15, 24, 0.72);
  color: var(--ink);
  backdrop-filter: blur(4px);
}
.shop-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.shop-card-title { margin: 0; font-size: 1rem; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-card-desc { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-bonus { margin-top: 4px; font-size: 0.76rem; font-weight: 700; color: var(--ok); }
.shop-card-footer { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-card-price { display: flex; align-items: baseline; gap: 5px; }
.shop-card-price-value { font-size: 1.15rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.shop-card-price-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.shop-card-buy { flex-shrink: 0; }
.shop-card-buy:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .shop-card-footer { flex-direction: column; align-items: stretch; }
  .shop-card-buy { width: 100%; }
}

/* Downloads — cards em lista (ícone + info + botões), agrupados por categoria. */
.dl-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dl-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28); }
.dl-card--featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.dl-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--accent);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 20%, var(--surface)), var(--surface));
}
.dl-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-card-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-card-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.dl-card-badge { position: static; }
.dl-card-meta { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-card-desc { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.dl-card-actions { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .dl-card { flex-direction: column; align-items: stretch; }
  .dl-card-actions { flex-direction: column; align-items: stretch; }
}

/* Banner de destaque no topo — cliente completo, o download que todo mundo procura primeiro. */
.dl-hero-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 30px;
  margin-bottom: 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background:
    radial-gradient(circle at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 88%, var(--ink) 4%), color-mix(in srgb, var(--surface) 96%, #000 4%));
}
.dl-hero-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--accent);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 26%, var(--surface)), var(--surface));
}
.dl-hero-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dl-hero-eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.dl-hero-title { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.dl-hero-actions { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-requirements { margin: 0; font-family: inherit; font-size: 0.84rem; color: var(--muted); line-height: 1.6; white-space: pre-wrap; }

/* Guia rápido de instalação — passos numerados, sem estatísticas inventadas. */
.dl-steps { padding: 22px 24px; margin-bottom: 28px; }
.dl-steps-title { margin: 0 0 16px; font-size: 0.95rem; font-weight: 800; color: var(--ink); }
.dl-steps-list { display: flex; flex-direction: column; gap: 14px; }
.dl-step { display: flex; align-items: flex-start; gap: 14px; }
.dl-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}
.dl-step-title { font-weight: 700; color: var(--ink); font-size: 0.88rem; }
.dl-step-desc { color: var(--muted); font-size: 0.8rem; line-height: 1.45; margin-top: 2px; }

@media (max-width: 640px) {
  .dl-hero-banner { flex-direction: column; }
  .dl-hero-title { font-size: 1.3rem; }
}

/* Guias — cards de capa (reaproveita .shop-card) + artigo de detalhe com banner de capa. */
.guide-card { color: inherit; text-decoration: none; }
.guide-card .shop-card-title { white-space: normal; }
.guide-article { padding: 0; overflow: hidden; }
.guide-article-cover { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.guide-article-body { padding: 20px 22px 26px; }
.guide-article-badge { position: static; display: inline-block; margin-bottom: 10px; }
.guide-back { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; font-size: 0.82rem; }