/* Next Level — design system: arcano roxo/ouro sobre preto (dark fantasy RPG) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* fontes self-hospedadas (sem dependência externa em runtime — nada de Google Fonts
   no CSP; os arquivos vivem em fonts/, baixados uma vez neste commit) */
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/cinzel-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/rajdhani-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/rajdhani-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/rajdhani-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/rajdhani-700.woff2') format('woff2');
}

:root {
  --bg:            #08070b;
  --surface:       linear-gradient(180deg, #171220 0%, #0a0810 100%);
  --surface-2:     #1d1826;
  --input-bg:      #0b0a0e;
  --border:        rgba(155, 92, 255, 0.18);
  --border-focus:  rgba(155, 92, 255, 0.6);
  --border-strong: rgba(155, 92, 255, 0.42);
  --white-100:     #f5f3fa;
  --white-200:     #ddd8ea;
  --purple-300:    #b98cff;
  --purple-400:    #9b5cff;
  --purple-500:    #7c2ff5;
  --purple-600:    #5a1fc2;
  --muted:         #8a839c;
  --muted-2:       #5c5568;
  --error:         #e0607a;
  --success:       #5ddf82;
  /* acento "ouro de rank" — reforça a leitura de RPG (XP, rank, destaques) sem
     brigar com o roxo arcano, que segue sendo a cor dominante */
  --gold-300:      #f3d78a;
  --gold-400:      #d9ac47;
  --gold-500:      #a9791f;
  --gold-glow:     rgba(217, 172, 71, 0.5);
  --grad-purple:   linear-gradient(90deg, #6c2bd9 0%, #b98cff 50%, #6c2bd9 100%);
  --grad-gold:     linear-gradient(90deg, #a9791f 0%, #f3d78a 50%, #a9791f 100%);
  --glow:          0 0 18px rgba(155, 92, 255, 0.22);
  --shadow-card:   0 20px 60px rgba(0,0,0,0.65);
  --radius:        5px;
  --radius-lg:     8px;
  --t:             0.15s ease;
  --font-display:  'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body:     'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--white-200);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* scrollbar temática (webkit + firefox) — cosmético, não altera layout */
* { scrollbar-width: thin; scrollbar-color: var(--purple-600) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--purple-500), var(--purple-600)); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--purple-400); }

/* ── MOLDURA RÚNICA ─────────────────────────────────────────
   Cantos ornamentados (superior-esq. + inferior-dir.) aplicados por seletor
   agrupado nos painéis principais do site — zero mudança de HTML/JS, é só
   decoração via pseudo-elemento. Mantido só nos 2 cantos opostos (não os 4)
   pra não pesar visualmente numa tela que fica aberta por horas. */
.login-card, .panel-card, .help-panel, .meta-panel, .modal, .modal-card,
.nav-card, .info-card, .grade-wrap, .download-banner {
  position: relative;
}
.login-card::before, .panel-card::before, .help-panel::before, .meta-panel::before,
.modal::before, .modal-card::before, .nav-card::before, .info-card::before,
.grade-wrap::before, .download-banner::before {
  content: ''; position: absolute; top: -1px; left: -1px; width: 16px; height: 16px;
  border-top: 2px solid var(--gold-400); border-left: 2px solid var(--gold-400);
  opacity: 0.75; pointer-events: none;
}
.login-card::after, .panel-card::after, .help-panel::after, .meta-panel::after,
.modal::after, .modal-card::after, .nav-card::after, .info-card::after,
.grade-wrap::after, .download-banner::after {
  content: ''; position: absolute; bottom: -1px; right: -1px; width: 16px; height: 16px;
  border-bottom: 2px solid var(--gold-400); border-right: 2px solid var(--gold-400);
  opacity: 0.75; pointer-events: none;
}

/* pequeno losango dourado antes dos títulos de seção — assinatura "rúnica" reaproveitada */
.help-title::before, .panel-title::before, .modal-title::before {
  content: '◆'; color: var(--gold-400); font-size: 0.6em; margin-right: 8px; vertical-align: middle;
}

/* ── CAMPOS DE FORMULÁRIO (geral: modais, painel, grade) ── */

.login-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 13px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white-200);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus { border-color: var(--border-focus); box-shadow: 0 0 12px rgba(155,92,255,0.18); }
.field input::placeholder { color: var(--muted-2); }

.field-error   { font-size: 13px; color: var(--error); padding: 0 2px; }
.field-ok      { font-size: 13px; color: var(--success); padding: 0 2px; }
.field-pending { font-size: 13px; color: var(--gold-300); padding: 0 2px; }

.line {
  height: 48px; display: flex; align-items: center; justify-content: center;
  gap: 16px; color: var(--muted); font-size: 13px;
}
.line::before, .line::after { content: ""; height: 1px; background: var(--border); flex: 1; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  border: 1px solid var(--purple-300);
  border-radius: var(--radius);
  color: var(--white-100);
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: box-shadow var(--t), filter var(--t);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 28px rgba(155,92,255,0.4), 0 0 10px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.16); filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* ── LOGIN (tela hero) ──────────────────────────────────── */

body.page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, #241a33 0%, #0a0509 45%, #000 100%);
  overflow: auto;
  padding: 24px;
}

.login-wrap { width: min(460px, 92vw); text-align: center; padding: 32px 0; }

.login-logo {
  width: min(180px, 60vw);
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 0 24px rgba(155,92,255,0.32));
  margin-bottom: 22px;
}

.login-card {
  background: linear-gradient(180deg, #17141dee, #0a090cee);
  border: 1px solid #6c2bd9aa;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 0 40px #000, inset 0 0 20px rgba(155,92,255,0.06), 0 0 20px rgba(217,172,71,0.08);
  text-align: left;
  animation: arcanePulse 5s ease-in-out infinite;
}
/* pulso sutil só na tela de login — é a "vitrine" do app; nas telas internas
   (abertas por horas durante o farm) uma animação contínua só cansaria a vista
   e queimaria CPU/bateria à toa, então os demais painéis ficam estáticos */
@keyframes arcanePulse {
  0%, 100% { box-shadow: 0 0 40px #000, inset 0 0 20px rgba(155,92,255,0.06), 0 0 16px rgba(217,172,71,0.08); }
  50%      { box-shadow: 0 0 46px #000, inset 0 0 26px rgba(155,92,255,0.11), 0 0 30px rgba(217,172,71,0.2); }
}

.login-card h1 {
  font-family: var(--font-display);
  letter-spacing: 7px;
  font-size: 26px;
  font-weight: 700;
  color: var(--white-100);
  text-align: center;
  margin-bottom: 4px;
  text-shadow: 0 0 18px rgba(155,92,255,0.35);
}
.login-card .tagline {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 20px;
}
.login-card .muted { color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 24px; }

.login-card label { display: block; text-align: left; color: var(--white-200); font-size: 13px; margin: 14px 0 7px; letter-spacing: 0.03em; }

.login-card input {
  width: 100%;
  height: 52px;
  background: #0b0a0e;
  border: 1px solid #453a55;
  border-radius: var(--radius);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.login-card input:focus { border-color: var(--purple-300); box-shadow: 0 0 12px rgba(155,92,255,0.25); }
.login-card input::placeholder { color: var(--muted-2); }

.password-box { display: flex; gap: 8px; }
.password-box input { flex: 1; }
.password-box button {
  width: 54px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius); border: 1px solid #453a55; background: #111;
  color: var(--white-200); cursor: pointer; font-size: 18px; transition: border-color var(--t);
}
.password-box button:hover { border-color: var(--purple-300); }

.login-card form .btn-primary { height: 52px; margin-top: 22px; }
.login-card .field-error, .login-card .field-ok { margin-top: 12px; }

.config-warning {
  padding: 10px 12px;
  background: rgba(155,92,255,0.06);
  border: 1px solid rgba(155,92,255,0.2);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.login-wrap footer { margin-top: 28px; color: var(--muted-2); letter-spacing: 3px; font-size: 12px; }

/* ── ADMIN / PÁGINAS INTERNAS ───────────────────────────── */

.topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.page-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; color: var(--white-100); letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(155,92,255,0.25);
}
.page-subtitle { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; letter-spacing: 0.03em; }

.btn-silver {
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--surface-2);
  border: 1px solid var(--purple-300);
  border-radius: var(--radius);
  color: var(--white-100);
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.btn-silver:hover { background: linear-gradient(135deg, var(--purple-500), var(--purple-600)); box-shadow: 0 0 14px rgba(155,92,255,0.25); }

/* tabela de membros */
.members-table { width: 100%; border-collapse: collapse; }
.members-table th {
  text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2); padding: 0 12px 12px; border-bottom: 1px solid var(--border);
}
.members-table th.sortable { cursor: pointer; user-select: none; transition: color var(--t); }
.members-table th.sortable:hover { color: var(--white-200); }
.members-table th.sortable.sort-active { color: var(--gold-300); }
.members-table td { padding: 12px; font-size: 13.5px; color: var(--white-200); border-bottom: 1px solid var(--border); vertical-align: middle; }
.members-table tr:last-child td { border-bottom: none; }
.members-table tbody tr:hover td { background: rgba(155,92,255,0.04); }

.role-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border: 1px solid;
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px);
}
.role-badge.owner  { color: var(--gold-300); border-color: rgba(243,215,138,0.55); background: rgba(217,172,71,0.1); }
.role-badge.admin  { color: var(--white-200); border-color: rgba(221,216,234,0.3); }
.role-badge.member { color: var(--muted-2); border-color: var(--border); }

.tbl-btn {
  background: none; border: none; color: var(--muted); font-size: 12.5px; font-family: inherit; font-weight: 600;
  cursor: pointer; padding: 4px 8px; border-radius: var(--radius); transition: color var(--t), background var(--t);
}
.tbl-btn:hover { color: var(--white-100); background: rgba(155,92,255,0.08); }
.tbl-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tbl-btn.danger:hover { color: var(--error); }
.tbl-btn.approve       { color: var(--success); }
.tbl-btn.approve:hover { color: #8fdb93; background: rgba(93,223,130,0.08); }

.tbl-actions { white-space: nowrap; text-align: right; }
.tbl-actions .tbl-btn { margin-left: 2px; }

.pending-tag {
  display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-300);
  border: 1px solid rgba(243,215,138,0.4); padding: 1px 7px;
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px);
}
.row-pending { background: rgba(217,172,71,0.05); }

.kick-cell { white-space: nowrap; color: var(--muted); }
.coins-cell { white-space: nowrap; }
.kick-empty { color: var(--muted-2); }
.tbl-btn-icon { background: none; border: none; cursor: pointer; color: var(--muted-2); padding: 0 3px; font-size: 0.85rem; transition: color var(--t); vertical-align: middle; }
.tbl-btn-icon:hover:not(:disabled) { color: var(--gold-300); }
.kick-edit-input { width: 120px; padding: 3px 7px; background: var(--input-bg); border: 1px solid var(--border-focus); border-radius: var(--radius); color: var(--white-100); font-size: 0.85rem; font-family: inherit; vertical-align: middle; }

.empty-state { text-align: center; padding: 48px 0; color: var(--muted-2); font-size: 14px; }

/* modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.78); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(3px); padding: 24px; }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 400px; box-shadow: var(--shadow-card); }
.modal-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--white-100); letter-spacing: 0.02em; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

.btn-ghost {
  padding: 10px 18px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--muted); font-size: 12.5px; font-family: inherit; font-weight: 600;
  letter-spacing: 0.06em; cursor: pointer; transition: all var(--t);
}
.btn-ghost:hover { border-color: var(--purple-300); color: var(--white-200); }
.btn-ghost.danger { color: #e0a0a8; border-color: rgba(224,96,122,0.4); }
.btn-ghost.danger:hover { border-color: var(--error); color: var(--error); background: rgba(224,96,122,0.08); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

.page-header-actions { display: flex; align-items: center; gap: 10px; }

/* ── APP SHELL (sidebar + topbar) ───────────────────────── */

body.page-app { min-height: 100vh; background: radial-gradient(circle at top right, #1c1526 0%, #05050a 45%, #000 100%); }
.app-shell { display: flex; align-items: stretch; min-height: 100vh; }

.sidebar {
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column;
  background: rgba(10,9,12,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--border); position: sticky; top: 0; align-self: flex-start;
  height: 100vh; padding: 22px 16px;
}

.sidebar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 0 8px 20px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.sidebar-brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; filter: drop-shadow(0 0 6px rgba(155,92,255,0.4)); }
.sidebar-brand-name { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-100); }
.sidebar-brand-tag { display: block; font-size: 10px; letter-spacing: 0.06em; color: var(--muted-2); margin-top: 2px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; padding: 10px 12px; border-radius: var(--radius); color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; letter-spacing: 0.02em; transition: background var(--t), color var(--t); }
.sidebar-nav a:hover { background: var(--surface-2); color: var(--white-100); }
.sidebar-nav a.active { background: var(--surface-2); color: var(--gold-300); box-shadow: inset 3px 0 0 var(--gold-400); }

.sidebar-nav a[data-perm] { display: none; }
.sidebar-nav a[data-perm].perm-ok { display: flex; }

.sidebar-footer { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-user { font-size: 12.5px; color: var(--muted); padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer .btn-logout { width: 100%; }

.app-main { flex: 1; min-width: 0; padding: 36px 32px 48px; }
.app-content { max-width: 960px; margin: 0 auto; }

.search-input {
  width: 100%; max-width: 320px; padding: 10px 14px; margin-bottom: 18px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--white-100); font-size: 13.5px; font-family: inherit; outline: none; transition: border-color var(--t);
}
.search-input:focus { border-color: var(--border-focus); }
.search-input::placeholder { color: var(--muted-2); }

@media (max-width: 880px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px 16px; }
  .sidebar-brand { border-bottom: none; padding: 0; margin: 0; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 auto; gap: 4px; overflow: visible; }
  .sidebar-footer { flex-direction: row; align-items: center; border-top: none; margin: 0; padding: 0; }
  .sidebar-footer .btn-logout { width: auto; }
  .app-main { padding: 24px 18px 40px; }
}

.header-xp {
  display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--gold-300);
  background: var(--surface-2); border: 1px solid rgba(217,172,71,0.3); border-radius: 999px; padding: 6px 14px;
}
.xp-icon { width: 12px; height: 12px; background: var(--grad-gold); flex-shrink: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

.btn-logout {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted); font-size: 11px; font-family: inherit; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; cursor: pointer; transition: border-color var(--t), color var(--t);
}
.btn-logout:hover { border-color: var(--purple-300); color: var(--white-200); }

.dashboard-greeting { margin-bottom: 36px; }
.dashboard-greeting h1 { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--white-100); letter-spacing: 0.01em; }
.dashboard-greeting h1 strong { color: var(--gold-300); }
.greeting-role { font-size: 12px; color: var(--muted-2); margin-top: 4px; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.nav-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; text-decoration: none; color: inherit; transition: border-color var(--t), background var(--t), transform var(--t); display: block; }
.nav-card:hover { border-color: rgba(155,92,255,0.45); background: var(--surface-2); transform: translateY(-2px); }
.nav-card-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--white-200); letter-spacing: 0.03em; margin-bottom: 6px; }
.nav-card-desc { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.nav-card-badge { display: inline-block; margin-top: 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 2px 8px; clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px); }

.download-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; margin-bottom: 32px;
  background: linear-gradient(135deg, #191320 0%, #1f1729 100%); border: 1px solid rgba(155,92,255,0.4);
  border-radius: var(--radius-lg); text-decoration: none; transition: border-color var(--t), box-shadow var(--t);
}
.download-banner:hover { border-color: rgba(217,172,71,0.6); box-shadow: 0 0 18px rgba(217,172,71,0.16); }
.download-banner-text { display: flex; flex-direction: column; gap: 4px; }
.download-banner-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--white-100); letter-spacing: 0.02em; }
.download-banner-sub { font-size: 13px; color: var(--muted); }
.download-banner-btn {
  flex-shrink: 0; padding: 10px 22px; background: linear-gradient(135deg, var(--purple-400), var(--purple-600));
  color: var(--white-100); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius); transition: filter var(--t);
}
.download-banner:hover .download-banner-btn { filter: brightness(1.12); }

.pending-banner {
  background: rgba(217,172,71,0.08); border: 1px solid rgba(217,172,71,0.4); border-radius: var(--radius-lg);
  padding: 14px 18px; margin-bottom: 24px; font-size: 13px; color: var(--gold-300); line-height: 1.5;
}
.pending-banner strong { color: var(--gold-300); font-weight: 700; }

.info-section { margin-top: 44px; }
.info-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--white-200); letter-spacing: 0.03em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.info-title .nav-card-badge { margin-top: 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 18px; position: relative; }
.info-step { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--grad-gold); color: #201400; font-size: 11px; font-weight: 700; margin-bottom: 12px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.info-card-title { font-size: 13.5px; font-weight: 700; color: var(--white-200); letter-spacing: 0.02em; margin-bottom: 6px; }
.info-card-desc { font-size: 12.5px; color: var(--muted-2); line-height: 1.55; }

/* ── Página de reservas ──────────────────────────────────── */

.meta-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 28px; }
.meta-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.meta-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.meta-hours { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--gold-300); }
.progress-track { height: 9px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill {
  height: 100%; width: 0; border-radius: 99px; transition: width 0.4s ease;
  background: var(--grad-gold);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 14px),
    var(--grad-gold);
  box-shadow: 0 0 10px var(--gold-glow);
}
.meta-balances { display: flex; flex-wrap: wrap; gap: 24px 32px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.balance { display: flex; flex-direction: column; gap: 2px; }
.balance-num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--white-100); }
.balance-lbl { font-size: 12px; color: var(--muted); }
.meta-status { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.meta-status strong { color: var(--gold-300); }

.my-res-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.my-res-week-title { font-size: 13px; font-weight: 700; color: var(--white-200); letter-spacing: 0.02em; margin-bottom: 10px; }
.my-res-list { display: flex; flex-direction: column; gap: 8px; }
.my-res-empty { font-size: 13px; color: var(--muted-2); }
.my-res-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: 13.5px; color: var(--white-200); }
.my-res-slot { font-weight: 600; }
.my-res-locked { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.my-res-row .kind-badge { flex-shrink: 0; }

.help-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 28px; }
.help-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--white-100); margin-bottom: 8px; }
.help-intro { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.help-intro strong { color: var(--gold-300); }
.help-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.help-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.help-card-h { font-size: 13px; font-weight: 700; color: var(--white-100); margin-bottom: 6px; letter-spacing: 0.02em; }
.help-card p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.help-card strong { color: var(--white-200); }

.day-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.day-tab { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--white-200); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 14px; cursor: pointer; transition: border-color var(--t), color var(--t), background var(--t); }
.day-tab:hover { border-color: var(--border-focus); color: var(--white-100); }
.day-tab.active { background: var(--grad-purple); border-color: var(--gold-400); color: var(--white-100); font-weight: 700; box-shadow: 0 0 12px rgba(217,172,71,0.25); }

.grade-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }
.grade-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.grade-table th { background: var(--surface-2); color: var(--white-200); font-weight: 700; text-align: center; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: 0.03em; }
.grade-hour-col { width: 64px; }
.grade-hour { text-align: center; color: var(--muted); background: var(--surface); font-variant-numeric: tabular-nums; font-weight: 600; }
.grade-cell { text-align: center; padding: 8px 6px; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); height: 38px; min-width: 84px; }
.grade-table tr:last-child .grade-cell, .grade-table tr:last-child .grade-hour { border-bottom: none; }
.grade-cell.free { color: var(--muted-2); cursor: pointer; transition: background var(--t), color var(--t); }
.grade-cell.free:hover { background: rgba(155,92,255,0.1); color: var(--white-100); }
.grade-cell.past { color: var(--muted-2); opacity: 0.4; }
.grade-cell.taken { color: var(--white-200); }
.grade-cell.mine { background: rgba(217,172,71,0.1); color: var(--white-100); position: relative; box-shadow: inset 2px 0 0 var(--gold-400); }
.grade-who { font-weight: 600; }
.grade-x { margin-left: 6px; border: none; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.grade-x:hover { color: var(--error); }

/* ── Painel Owner + Grade do admin ──────────────────────── */

.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 24px; }
.panel-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--white-100); }
.panel-hint { font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
.panel-saved { font-size: 13px; color: var(--gold-300); }

.toggle-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; min-width: 200px; }
.toggle input { width: 16px; height: 16px; accent-color: var(--purple-400); cursor: pointer; }
.toggle span { font-size: 14px; font-weight: 600; color: var(--white-100); }
.toggle-desc { font-size: 12px; color: var(--muted); }

.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 18px; }
.panel-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }

.grade-cell.adm-free { cursor: pointer; color: var(--muted-2); }
.grade-cell.adm-free:hover { background: rgba(155,92,255,0.1); color: var(--white-100); }

.modal-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); width: 380px; max-width: 95vw; max-height: 70vh; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 4px; line-height: 1; transition: color var(--t); }
.modal-close:hover { color: var(--white-100); }
.modal-sub { padding: 10px 20px 4px; font-size: 0.8rem; color: var(--muted); }
.modal-search { margin: 8px 20px 4px; padding: 9px 12px; background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--white-100); font-size: 0.9rem; font-family: inherit; }
.modal-search:focus { outline: none; border-color: var(--purple-300); }
.modal-search::placeholder { color: var(--muted-2); }
.modal-list { overflow-y: auto; flex: 1; padding: 8px; }
.modal-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 0.875rem; }
.member-row { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; border-radius: var(--radius); padding: 10px 12px; cursor: pointer; color: var(--white-200); text-align: left; transition: background var(--t); }
.member-row:hover { background: var(--surface-2); }
.member-name { flex: 1; font-size: 0.9rem; font-weight: 600; }
.member-kick { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.kind-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 0 6px; margin-left: 4px; clip-path: polygon(3px 0, 100% 0, 100% 100%, 0 100%, 0 3px); }
