/* =========================================================
   O Último Sheikah — Painel Admin (Discord)
   Reaproveita variáveis, fontes e tema de ../styles.css
   ========================================================= */

/* ---------- Tela de login ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(63, 169, 255, 0.16), transparent 55%),
    linear-gradient(rgba(5, 11, 22, 0.86), rgba(5, 11, 22, 0.96)),
    url("../assets/img/kieran-baker-botw-sheikah-wall-no-eye.jpg") center / cover no-repeat fixed;
}

/* halo pulsante atrás do card (sensor Sheikah) */
.login-page::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 169, 255, 0.18), transparent 70%);
  filter: blur(10px);
  animation: login-pulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes login-pulse {
  0%, 100% { transform: scale(0.9);  opacity: 0.55; }
  50%      { transform: scale(1.08); opacity: 0.9; }
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 48px 36px 36px;
  background: color-mix(in srgb, var(--navy-800) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), var(--glow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(63, 169, 255, 0.6));
}

.login-card .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.login-title {
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.login-card .runes {
  display: block;
  color: var(--blue);
  letter-spacing: 6px;
  font-size: 0.85rem;
  margin: 4px 0 18px;
  opacity: 0.8;
}

.login-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ---------- Botão "Entrar com Discord" ---------- */
.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 20px;
  font-family: "Calamity", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: #5865f2;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-discord:hover {
  background: #4752e6;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.6);
}
.btn-discord:active { transform: translateY(0); }
.btn-discord svg { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }

.login-note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--muted);
}

.login-back {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--cyan);
  transition: opacity .15s ease;
}
.login-back:hover { opacity: 0.75; text-decoration: underline; }

@media (max-width: 480px) {
  .login-card { padding: 40px 24px 32px; }
  .login-title { font-size: 1.6rem; }
}

/* =========================================================
   PAINEL — layout shell (sidebar + conteúdo)
   ========================================================= */
.panel {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  background: var(--navy-800);
  border-right: 1px solid color-mix(in srgb, var(--blue) 18%, transparent);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 24px;
}
.sidebar-brand img { width: 40px; height: 40px; }
.sidebar-brand b {
  font-family: "Hylia Serif", serif;
  font-weight: normal;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.1;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: var(--navy-700); color: var(--ivory); }
.nav-item.active {
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  color: var(--cyan);
  box-shadow: inset 2px 0 0 var(--blue);
}
.nav-item .ico { font-size: 1.05rem; width: 22px; text-align: center; }
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.nav-item--exit { color: var(--muted); }
.nav-item--exit:hover { background: color-mix(in srgb, #e65a5a 18%, transparent); color: #ff9a9a; }

/* ---------- Área principal ---------- */
.panel-main { padding: 32px 36px 56px; }

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.panel-header h1 { font-size: 1.7rem; margin-bottom: 2px; }
.panel-header .sub { color: var(--muted); font-size: 0.9rem; }

/* bolsa de rupias */
.rupee-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  background: var(--navy-800);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: 999px;
  font-weight: 700;
  color: var(--cream);
  font-size: 1.05rem;
}
.rupee { width: 17px; height: 17px; flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(75, 224, 139, 0.7)); }
.rupee-pill small { color: var(--muted); font-weight: 600; font-size: 0.78rem; }

/* ---------- Card de perfil ---------- */
.profile-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.profile-card::after {
  content: "⌖";
  position: absolute;
  right: -10px;
  bottom: -30px;
  font-size: 9rem;
  color: color-mix(in srgb, var(--blue) 10%, transparent);
  pointer-events: none;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue);
  box-shadow: var(--glow);
}
.level-chip {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid var(--navy-800);
}
.profile-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.profile-name { font-size: 1.5rem; }
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}
.xp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.xp-row b { color: var(--cyan); }
.xp-track {
  height: 12px;
  background: var(--navy-900);
  border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent);
  border-radius: 999px;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(63, 169, 255, 0.7);
}

/* ---------- Stats rápidos ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  padding: 18px;
  text-align: center;
  background: var(--navy-800);
  border: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
  border-radius: 14px;
}
.stat-card .v { font-family: "Hylia Serif", serif; font-size: 1.7rem; color: var(--cyan); }
.stat-card .l { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

/* ---------- Blocos de seção ---------- */
.block { margin-bottom: 36px; }
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.block-head h2 { font-size: 1.25rem; }
.block-link { color: var(--cyan); font-size: 0.9rem; font-weight: 600; }
.block-link:hover { text-decoration: underline; }

/* ---------- Loja (preview) ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shop-item {
  background: var(--navy-800);
  border: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.shop-item:hover { transform: translateY(-4px); border-color: var(--blue); }
.shop-thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: radial-gradient(circle at 50% 40%, var(--navy-600), var(--navy-900));
}
.shop-item .body { padding: 12px 14px 14px; }
.shop-item .name { font-weight: 700; color: var(--ivory); font-size: 0.92rem; }
.shop-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}
.shop-price .rupee { width: 14px; height: 14px; }

/* ---------- Sorteio em destaque ---------- */
.raffle {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, var(--navy-800)), var(--navy-800));
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 16px;
}
.raffle .emoji { font-size: 2.6rem; flex-shrink: 0; }
.raffle .info { flex: 1; }
.raffle .info h3 { font-size: 1.15rem; color: var(--cream); }
.raffle .info p { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.raffle .deadline { color: var(--gold); font-size: 0.82rem; font-weight: 700; margin-top: 6px; }
.btn-join {
  flex-shrink: 0;
  padding: 11px 22px;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn-join:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- Avisos ---------- */
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--navy-800);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
}
.notice .ico { font-size: 1.4rem; flex-shrink: 0; }
.notice .t { font-weight: 700; color: var(--ivory); }
.notice .d { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.notice time { display: block; color: var(--cyan); font-size: 0.78rem; margin-top: 6px; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px;
  }
  .sidebar-brand { padding: 0 8px 0 4px; border: 0; }
  .sidebar-brand b { display: none; }
  .sidebar-nav { flex-direction: row; gap: 4px; }
  .nav-item span:not(.ico) { display: none; }
  .nav-item { padding: 10px 12px; }
  .sidebar-foot { margin: 0; padding: 0; }
  .panel-main { padding: 24px 18px 48px; }
}
@media (max-width: 720px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .profile-card { flex-direction: column; text-align: center; }
  .raffle { flex-direction: column; text-align: center; }
}

/* =========================================================
   PAINEL — fundo (pattern Sheikah azul + overlay suave)
   ========================================================= */
.panel-page {
  min-height: 100vh;
  /* glow "sensor Sheikah" no topo + parede clareada via "screen" + gradiente escuro */
  background:
    radial-gradient(130% 55% at 50% -8%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 55%),
    linear-gradient(rgba(5, 11, 22, 0.50), rgba(5, 11, 22, 0.78)),
    url("../assets/img/sheikah-wall.jpg") center / cover no-repeat;
  background-color: var(--navy-600);
  background-blend-mode: normal, normal, screen;
  background-attachment: fixed, fixed, fixed;
}

/* =========================================================
   PAINEL — variação com MENU NO TOPO (topbar)
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--navy-800) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 18%, transparent);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-brand img { width: 36px; height: 36px; }
.topbar-brand b {
  font-family: "Hylia Serif", serif;
  font-weight: normal;
  font-size: 1.05rem;
  color: var(--cream);
}
.topbar-nav { display: flex; gap: 4px; }
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  padding: 9px 16px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .15s ease, color .15s ease;
}
.topbar-ico { font-size: 1rem; line-height: 1; }
.topbar-link:hover { background: var(--navy-700); color: var(--ivory); }
.topbar-link.active {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}
/* sublinhado dourado com glow no item ativo */
.topbar-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px color-mix(in srgb, var(--gold) 70%, transparent);
}

.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue);
  box-shadow: 0 0 10px rgba(63, 169, 255, 0.5);
}
.user-name { font-weight: 700; color: var(--ivory); font-size: 0.95rem; }
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.btn-logout:hover {
  border-color: #ff9a9a;
  color: #ff9a9a;
  background: color-mix(in srgb, #e65a5a 12%, transparent);
}

/* conteúdo centralizado abaixo da topbar */
.panel-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 12px 16px; }
  .topbar-user { gap: 10px; }
  .user-name { display: none; }
  .topbar-nav { order: 3; width: 100%; justify-content: center; }
  .topbar-link { padding: 8px 14px; }
}

/* =========================================================
   PAINEL — Moderação
   ========================================================= */
/* chip de nível de acesso (fake por enquanto) */
.mod-access {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
}

.sub-head {
  font-family: "Hylia Serif", serif;
  font-weight: normal;
  font-size: 1.05rem;
  color: var(--gold);
  margin: 4px 0 12px;
}

/* card de stat em alerta */
.stat-card.alert { border-color: color-mix(in srgb, #ff7a7a 50%, transparent); }
.stat-card.alert .v { color: #ff9a9a; }

/* toolbar + busca */
.mod-toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mod-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--navy-800);
  border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent);
  border-radius: 10px;
}
.mod-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  outline: none;
}
.mod-search input::placeholder { color: var(--muted); }

/* botão de ação preenchido */
.btn-add {
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.btn-add:hover { background: var(--blue-glow); transform: translateY(-1px); }

/* tabela */
.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
}
.mod-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  background: var(--navy-800);
}
.mod-table th, .mod-table td { padding: 13px 16px; text-align: left; }
.mod-table thead th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
}
.mod-table tbody tr { border-bottom: 1px solid color-mix(in srgb, var(--blue) 8%, transparent); }
.mod-table tbody tr:last-child { border-bottom: 0; }
.mod-table tbody tr:hover { background: color-mix(in srgb, var(--blue) 6%, transparent); }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent);
}
.cell-user b { color: var(--ivory); font-weight: 700; }
.cell-rupees { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; }
.cell-rupees .rupee { width: 14px; height: 14px; }
.role-tag { font-size: 0.85rem; color: var(--cyan); }
.muted-label { color: var(--muted); font-weight: 400; }
.row-actions { display: flex; gap: 6px; white-space: nowrap; }

/* botões pequenos de linha */
.btn-mini {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn-mini:hover { background: color-mix(in srgb, var(--blue) 16%, transparent); }
.btn-mini.danger { color: #ff9a9a; border-color: color-mix(in srgb, #ff7a7a 35%, transparent); }
.btn-mini.danger:hover { background: color-mix(in srgb, #e65a5a 14%, transparent); }

/* denúncias */
.report-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--navy-800);
  border-left: 3px solid #ff9a4a;
  border-radius: 10px;
}
.report-card .ico { font-size: 1.4rem; flex-shrink: 0; }
.report-card .info { flex: 1; min-width: 0; }
.report-card .who { color: var(--ivory); font-weight: 700; }
.report-card .reason { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.report-card time { display: block; color: var(--cyan); font-size: 0.78rem; margin-top: 4px; }
.report-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* badges de punição */
.pun-badge { padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.pun-badge.warn { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.pun-badge.mute { background: color-mix(in srgb, #ff9a4a 20%, transparent); color: #ffb774; }
.pun-badge.ban  { background: color-mix(in srgb, #ff5a5a 18%, transparent); color: #ff9a9a; }

/* cards de gestão (economia / sorteios / avisos) */
.manage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.manage-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--navy-800);
  border: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
  border-radius: 14px;
}
.manage-card .ico { font-size: 1.8rem; }
.manage-card h3 { font-size: 1.05rem; color: var(--cream); }
.manage-card .count { color: var(--muted); font-size: 0.88rem; }
.manage-card .btn-add { margin-top: 10px; align-self: flex-start; }

@media (max-width: 720px) {
  .manage-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   DASHBOARD (home do membro)
   ========================================================= */

/* ----- Card do herói — banner cinematográfico ----- */
.hero-card { padding: 0; min-height: 244px; gap: 0; align-items: stretch;
  border-color: color-mix(in srgb, var(--gold) 32%, transparent); }
.hero-card::after { display: none; } /* remove o ⌖ do .profile-card base */

/* Arte de fundo + escurecimento pra legibilidade do texto */
.hero-bg { position: absolute; inset: 0; z-index: 0;
  background: url('/assets/img/hero-bg.jpg') center 28% / cover no-repeat;
  transform: scale(1.02); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy-900) 4%,
      color-mix(in srgb, var(--navy-900) 78%, transparent) 42%,
      color-mix(in srgb, var(--navy-900) 22%, transparent) 100%),
    linear-gradient(0deg, var(--navy-900) 0%, transparent 55%); }

.hero-body { position: relative; z-index: 1; flex: 1; display: flex;
  align-items: center; gap: 34px; padding: 30px 36px; }

/* Retrato com aura dourada */
.hero-card .profile-avatar { width: 122px; height: 122px; border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 14%, transparent),
    0 0 30px rgba(240, 198, 116, 0.5), inset 0 0 24px rgba(0, 0, 0, 0.45); }
.hero-card .xp-track { height: 14px; }
.hero-card .xp-fill { transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

.hero-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
  text-shadow: 0 0 10px rgba(142, 240, 255, 0.4); margin-bottom: 4px; }
.hero-name { font-size: 2rem; line-height: 1.05; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }
.hero-title { font-family: "Hylia Serif", serif; font-style: italic; color: var(--gold);
  font-size: 1.02rem; margin-top: 4px; opacity: 0.92; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }

/* Painel de nível + XP (lado direito) */
.hero-stats { position: relative; z-index: 1; flex-shrink: 0; width: 240px;
  align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding-left: 30px; border-left: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
.hero-level-badge { display: flex; align-items: baseline; gap: 10px; }
.hero-level-lbl { font-family: "Hylia Serif", serif; font-size: 1rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; }
.hero-level-num { font-family: "Hylia Serif", serif; font-size: 3.2rem; line-height: 0.9;
  color: var(--gold); text-shadow: 0 0 20px rgba(240, 198, 116, 0.5); }
.hero-stats .hero-xp-num { display: block; margin-top: 9px; }

.hero-patente {
  display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--ivory);
  background: color-mix(in srgb, var(--navy-600) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 14%, transparent);
}
.hero-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, var(--blue)); box-shadow: 0 0 6px var(--c, var(--blue));
}
.hero-xp-num { font-size: 0.82rem; color: var(--muted); }
.hero-xp-num b { color: var(--cyan); }

@media (max-width: 760px) {
  .hero-body { flex-direction: column; text-align: center; padding: 28px 24px; }
  .hero-bg::after { background:
    linear-gradient(0deg, var(--navy-900) 12%, color-mix(in srgb, var(--navy-900) 55%, transparent) 100%); }
  .hero-tags { justify-content: center; }
  .hero-stats { width: 100%; padding-left: 0; padding-top: 22px; margin-top: 4px;
    border-left: none; border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
  .hero-level-badge { justify-content: center; }
}

/* ----- Atributos — ficha de batalha ----- */
.attr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.attr-tile {
  display: flex; flex-direction: column; gap: 11px; padding: 14px 18px;
  background: var(--navy-800);
  border: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
  border-radius: 14px; transition: transform .15s ease, border-color .15s ease;
}
.attr-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.attr-head { display: flex; align-items: center; gap: 12px; }
/* Triforce em destaque: Força · Sabedoria · Coragem */
.attr-tile.hi {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, var(--navy-800)), var(--navy-800));
  border-color: color-mix(in srgb, var(--gold) 38%, transparent);
  box-shadow: 0 0 16px rgba(240, 198, 116, 0.12);
}
.attr-tile.hi .attr-val { color: var(--gold); }
.attr-ico { font-size: 1.45rem; line-height: 1; }
.attr-name { flex: 1; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.attr-val { font-family: "Hylia Serif", serif; font-size: 1.5rem; color: var(--cyan); line-height: 1; }
/* Mini-barra proporcional do atributo */
.attr-bar {
  height: 7px; background: var(--navy-900); border-radius: 999px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--blue) 14%, transparent);
}
.attr-bar-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 8px rgba(63, 169, 255, 0.6);
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}
.attr-tile.hi .attr-bar-fill {
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 75%, #fff), var(--gold));
  box-shadow: 0 0 8px rgba(240, 198, 116, 0.6);
}
@media (max-width: 720px) { .attr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .attr-grid { grid-template-columns: 1fr; } }

/* ----- Conquistas ----- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.badge {
  position: relative; text-align: center; padding: 18px 10px 14px;
  background: var(--navy-800);
  border: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
  border-radius: 14px; transition: transform .15s ease, border-color .15s ease;
}
.badge:hover { transform: translateY(-4px); }
.badge .ico { font-size: 2.4rem; line-height: 1; }
.badge .bname { font-weight: 700; font-size: .82rem; color: var(--ivory); margin-top: 8px; }
.badge .bdesc { font-size: .72rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.badge.earned {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 0 16px rgba(240, 198, 116, 0.18);
}
.badge.earned .ico { filter: drop-shadow(0 0 10px rgba(240, 198, 116, 0.55)); }
.badge.locked { opacity: .45; filter: grayscale(.7); }
.badge.locked::after { content: "🔒"; position: absolute; top: 8px; right: 10px; font-size: .85rem; }

/* ----- Layout em 2 colunas (telas largas) ----- */
.dash-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dash-col .block { margin-bottom: 0; }
@media (max-width: 980px) { .dash-columns { grid-template-columns: 1fr; } }

/* ----- Equipamento ----- */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.equip-slot {
  --rc: var(--blue);
  display: flex; align-items: center; gap: 13px; padding: 13px 16px;
  background: var(--navy-800);
  border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent);
  border-left: 3px solid var(--rc);
  border-radius: 12px; transition: transform .15s ease, border-color .15s ease;
}
.equip-slot:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rc) 55%, transparent); }
.equip-ico {
  font-size: 1.5rem; line-height: 1; width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--rc) 14%, var(--navy-900));
  border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent);
  border-radius: 10px;
}
.equip-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.equip-slot-name { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.equip-item { font-weight: 700; color: var(--ivory); font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.equip-rare { font-size: .72rem; font-weight: 700; color: var(--rc); }
.equip-empty { font-size: .88rem; color: var(--muted); font-style: italic; opacity: .8; }

/* Raridades */
.equip-slot.rare-comum    { --rc: #8aa0b8; }
.equip-slot.rare-raro     { --rc: var(--blue); }
.equip-slot.rare-epico    { --rc: #b57edc; }
.equip-slot.rare-lendario { --rc: var(--gold); box-shadow: 0 0 16px color-mix(in srgb, var(--gold) 16%, transparent); }
.equip-slot.empty { --rc: #3a4a5e; border-style: dashed; opacity: .8; }
.equip-slot.empty .equip-ico { filter: grayscale(1); opacity: .5; }

@media (max-width: 720px) { .equip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .equip-grid { grid-template-columns: 1fr; } }

/* ----- Ficha (coluna direita): atributos/equipamento em 1 coluna ----- */
.dash-col--side .attr-grid,
.dash-col--side .equip-grid { grid-template-columns: 1fr; }

/* ----- Stats rápidos (faixa full width): 4 no desktop, 2 no tablet, 1 no celular ----- */
.dash-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dash-stats { grid-template-columns: 1fr; } }

/* ----- Carteira de rupias (destaque no header) ----- */
.wallet {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 24px 10px 14px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 18px color-mix(in srgb, var(--gold) 12%, transparent);
}
.wallet-bag {
  width: 58px; height: 58px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.55));
}
.wallet-info { display: flex; flex-direction: column; line-height: 1; }
.wallet-amount {
  font-family: "Hylia Serif", serif; font-size: 2rem; color: var(--cream);
  text-shadow: 0 0 14px color-mix(in srgb, var(--gold) 35%, transparent);
}
.wallet-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin-top: 4px;
}
@media (max-width: 560px) {
  .wallet { width: 100%; justify-content: flex-start; }
}

/* ----- Cabeçalhos de bloco padronizados (runa + divisória dourada) ----- */
.dash-columns .block-head {
  padding-bottom: 12px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, color-mix(in srgb, var(--gold) 50%, transparent), transparent 80%) 1;
}
/* runa ◈ + título; quando há "tradução" Sheikah, o ◈ ocupa as 2 linhas
   e texto/runa ficam alinhados entre si (via .block-title em grid abaixo) */
.dash-columns .block-head h2 { display: inline-flex; align-items: center; gap: 10px; }
.dash-columns .block-head h2::before,
.dash-columns .block-head .block-title::before {
  content: "◈"; color: var(--gold); font-size: 0.85rem;
  text-shadow: 0 0 8px color-mix(in srgb, var(--gold) 50%, transparent);
}
/* quando o título tem block-title (com runa), o ◈ vem do wrapper, não do h2 */
.dash-columns .block-head .block-title h2::before { content: none; }
.dash-columns .block-head .block-title h2 { display: block; }

/* ----- Stats rápidos com ícone (placa de pedra) ----- */
.dash-stats .stat-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
}
.dash-stats .stat-ico {
  flex-shrink: 0; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: color-mix(in srgb, var(--gold) 12%, var(--navy-900));
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: 12px;
}
.dash-stats .stat-body { min-width: 0; }
.dash-stats .stat-card .v { line-height: 1.1; }

/* ----- Item 3: runas decorativas nos cantos da viewport ----- */
.panel-page::before,
.panel-page::after {
  content: "";
  position: fixed;
  width: 340px;
  height: 340px;
  background: url("../assets/img/circle-runes.svg") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.panel-page::before { top: -100px; right: -100px; }
.panel-page::after { bottom: -100px; left: -100px; }
/* garante o conteúdo acima das runas (topbar já é sticky/z-index 50) */
.panel-content { position: relative; z-index: 1; }

/* ----- Item 4: topbar ganha destaque ao rolar ----- */
.topbar { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.topbar.scrolled {
  background: color-mix(in srgb, var(--navy-900) 88%, transparent);
  border-bottom-color: color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45),
              0 1px 0 color-mix(in srgb, var(--gold) 30%, transparent);
}

/* ----- Item 5: mini-status do herói na topbar (nível + rupias) ----- */
.topbar-stats { display: flex; align-items: center; gap: 12px; }
.topbar-level {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.topbar-level b { color: var(--cream); }
.topbar-rupees {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .92rem; font-weight: 700; color: var(--cream);
}
.topbar-rupees img { width: 24px; height: 24px; object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
@media (max-width: 720px) {
  .topbar-stats { gap: 8px; }
  .topbar-level { display: none; } /* economiza espaço no mobile; rupias seguem */
}

/* ----- Item 9: scrollbar temática (fina, cores do tema) ----- */
* { scrollbar-width: thin; scrollbar-color: var(--blue) var(--navy-900); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue), #2b7fd6);
  border-radius: 999px;
  border: 2px solid var(--navy-900);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--cyan), var(--blue)); }
::-webkit-scrollbar-corner { background: var(--navy-900); }

/* ----- Item 10: inscrição decorativa em runas Sheikah (banner do herói) ----- */
.hero-runes {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 30px;
  font-family: "Sheikah", serif;
  font-size: 1.4rem;
  letter-spacing: 5px;
  color: var(--cyan);
  opacity: 0.22;
  text-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 55%, transparent);
  pointer-events: none;
  user-select: none;
}
@media (max-width: 760px) { .hero-runes { display: none; } }

/* ----- "Tradução" decorativa das labels em runas Sheikah ----- */
.l-rune {
  font-family: "Sheikah", serif;
  font-size: 0.7rem;
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 4px;
  color: var(--cyan);
  opacity: 0.40;
  user-select: none;
}

/* ----- Item 11: rodapé temático ----- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  background: color-mix(in srgb, var(--navy-900) 55%, transparent);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 24px 42px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-divider { color: var(--blue); letter-spacing: 6px; opacity: 0.55; font-size: 0.9rem; }
.footer-quote {
  font-family: "Hylia Serif", serif; font-style: italic;
  color: var(--gold); font-size: 1.05rem; max-width: 460px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); font-weight: 700; font-size: 0.95rem; margin-top: 4px;
}
.footer-brand img { width: 28px; height: 28px; object-fit: contain; }
.footer-sheikah {
  font-family: "Sheikah", serif; color: var(--cyan);
  opacity: 0.32; letter-spacing: 4px; font-size: 1rem; user-select: none;
}
.footer-copy { color: var(--muted); font-size: 0.78rem; }

/* ----- Runas Sheikah abaixo do nome do atributo ----- */
.attr-namebox { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.attr-namebox .attr-name { flex: none; }
.attr-rune {
  font-family: "Sheikah", serif;
  font-size: 0.62rem;
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 2px;
  color: var(--cyan);
  opacity: 0.40;
  user-select: none;
}

/* ----- Item 15 (visual): bônus de atributo dos itens equipados ----- */
.equip-bonus { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.equip-buff {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  color: #6ee7a0;
  background: color-mix(in srgb, #4be08b 14%, transparent);
  border: 1px solid color-mix(in srgb, #4be08b 30%, transparent);
}

/* ----- Runas Sheikah abaixo do título das seções ----- */
.block-title {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}
.block-title::before { grid-row: 1 / 3; align-self: center; }
.block-title h2 { grid-column: 2; grid-row: 1; }
.block-title .block-rune { grid-column: 2; grid-row: 2; }
.block-rune {
  font-family: "Sheikah", serif;
  font-size: 0.66rem;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.40;
  user-select: none;
}

/* ----- Item 7: sino de notificações + toasts ----- */
.notif { position: relative; }
.topbar-bell {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  font-size: 1.05rem; line-height: 1;
  background: var(--navy-800);
  border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent);
  border-radius: 10px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.topbar-bell:hover { background: var(--navy-700); border-color: color-mix(in srgb, var(--gold) 40%, transparent); transform: translateY(-1px); }
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 800;
  color: #fff; background: #e65a5a;
  border: 2px solid var(--navy-900); border-radius: 999px;
}
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: 300px; max-height: 380px; overflow-y: auto;
  background: color-mix(in srgb, var(--navy-800) 96%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.notif-panel-head {
  padding: 13px 16px; font-weight: 700; color: var(--cream);
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
}
.notif-list { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 0.88rem; color: var(--ivory);
}
.notif-item:hover { background: var(--navy-700); }
.notif-item-ico { font-size: 1.1rem; line-height: 1.2; flex-shrink: 0; }
.notif-empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 0.86rem; }

/* Toasts flutuantes */
.toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 11px;
  min-width: 220px; max-width: 340px;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 16px color-mix(in srgb, var(--gold) 10%, transparent);
  color: var(--ivory); font-size: 0.9rem; font-weight: 600;
  opacity: 0; transform: translateX(20px);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-ico { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
@media (max-width: 480px) {
  .toast-stack { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
}
