/* ==========================================================================
   CELESTIUM ONLINE — Design System Integrado à Logo (Prata, Cristal & Branco)
   Foco no branco luminoso nas seções + prata esculpida e cristal ciano-safira
   ========================================================================== */

:root {
  /* Superfícies — Foco no Branco */
  --white: #ffffff;
  --bg-ice: #f3f8ff;
  --bg-crystal-tint: #eaf3ff;

  /* Paleta Extraída da Logo (Safira Profundo + Cristal Ciano + Prata Platina) */
  --sapphire-950: #06142e;
  --sapphire-900: #0b1f47;
  --sapphire-800: #10326e;
  --sapphire-700: #164ea8;
  --sapphire-600: #1a66e8;
  --crystal-400: #38bdf8;
  --crystal-300: #7dd3fc;
  --crystal-200: #bae6fd;
  --crystal-100: #e0f2fe;

  /* Prata Metálica */
  --silver-100: #f8fbff;
  --silver-200: #dce7f7;
  --silver-300: #b8cce8;
  --silver-400: #8ea9cf;

  /* Tipografia */
  --text-main: #0b1e42;
  --text-secondary: #415982;
  --text-muted: #6b83ab;

  /* Bordas & Sombras Cristalinas */
  --border-silver: rgba(142, 169, 207, 0.32);
  --border-crystal: rgba(56, 189, 248, 0.36);
  --shadow-card: 0 12px 34px rgba(11, 31, 71, 0.07);
  --shadow-crystal: 0 14px 36px rgba(26, 102, 232, 0.24);
  --shadow-deep: 0 26px 64px rgba(6, 20, 46, 0.34);

  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* Filete luminoso prateado/cristal no topo dos cards */
.crystal-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--silver-300) 15%, var(--crystal-400) 50%, var(--silver-300) 85%, transparent 100%);
}

/* ==================== BOTÕES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.78rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.54rem 1.05rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 0.95rem 1.65rem;
  font-size: 0.98rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Botão principal em cristal azul-safira com brilho ciano */
.btn-crystal {
  background: linear-gradient(135deg, var(--sapphire-700) 0%, var(--sapphire-600) 55%, #2298f2 100%);
  color: var(--white);
  border-color: rgba(186, 230, 253, 0.35);
  box-shadow: var(--shadow-crystal);
}

.btn-crystal:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(34, 152, 242, 0.4);
  filter: brightness(1.06);
}

/* Botão branco-platina esculpido para Hero escuro */
.btn-white-crystal {
  background: linear-gradient(180deg, #ffffff 0%, #e9f3ff 100%);
  color: var(--sapphire-900);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(6, 20, 46, 0.3), inset 0 1px 0 #ffffff;
}

.btn-white-crystal:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.32);
}

/* Botão vidro cristalino para Hero escuro */
.btn-glass-crystal {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(186, 230, 253, 0.42);
  backdrop-filter: blur(12px);
}

.btn-glass-crystal:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

/* Botão contornado em prata/safira sobre fundo branco */
.btn-silver-outline {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  color: var(--sapphire-800);
  border-color: var(--silver-300);
}

.btn-silver-outline:hover {
  border-color: var(--sapphire-600);
  background: var(--bg-ice);
  color: var(--sapphire-900);
}

.btn-ice {
  background: var(--crystal-100);
  color: var(--sapphire-800);
  border-color: var(--crystal-200);
}

.btn-ice:hover {
  background: var(--sapphire-600);
  border-color: var(--sapphire-600);
  color: var(--white);
}

/* ==================== CABEÇALHO ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-silver);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(11, 31, 71, 0.08);
}

.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 10px rgba(26, 102, 232, 0.22));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.91rem;
  color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sapphire-700);
  background: var(--bg-ice);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
  color: var(--sapphire-800);
  font-size: 0.79rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.72; }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-silver);
  background: var(--white);
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--sapphire-900);
  border-radius: 2px;
}

/* ==================== HERO CELESTIAL (ESTILO DA LOGO) ==================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 0 6.8rem;
  color: var(--white);
  background:
    radial-gradient(ellipse 68% 58% at 50% 24%, rgba(56, 189, 248, 0.26) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 78% 18%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    linear-gradient(155deg, #06132b 0%, #0b2048 44%, #10377a 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Feixes diagonais translúcidos inspirados nas asas de cristal */
.hero-crystal-beam {
  position: absolute;
  width: 520px;
  height: 160px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(255, 255, 255, 0.06), transparent);
  filter: blur(42px);
  pointer-events: none;
}

.beam-left {
  top: 40px;
  left: -120px;
  transform: rotate(22deg);
}

.beam-right {
  bottom: 90px;
  right: -80px;
  transform: rotate(-18deg);
}

.hero-aura-center {
  position: absolute;
  width: 680px;
  height: 400px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-rings {
  position: absolute;
  width: 820px;
  height: 820px;
  top: -190px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: slowSpin 80s linear infinite;
}

@keyframes slowSpin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 405px);
  gap: 2.6rem;
  align-items: start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(186, 230, 253, 0.34);
  font-size: 0.8rem;
  font-weight: 700;
  color: #e6f5ff;
  margin-bottom: 0.55rem;
  backdrop-filter: blur(8px);
}

.star-mini {
  width: 14px;
  height: 14px;
  color: var(--crystal-300);
}

.hero-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 0.1rem 0 0.75rem -0.65rem;
}

.hero-logo-img {
  width: min(100%, 580px);
  height: auto;
  filter: drop-shadow(0 16px 38px rgba(56, 189, 248, 0.34));
}

.auth-card {
  margin-top: 0.65rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: #eef6ff;
  margin-bottom: 0.9rem;
}

.silver-text {
  background: linear-gradient(180deg, #ffffff 0%, #dceeff 55%, #8ec8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: 1.02rem;
  color: rgba(232, 244, 255, 0.88);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.9rem;
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(186, 230, 253, 0.22);
  backdrop-filter: blur(12px);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.75rem;
  color: #c5e2ff;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(186, 230, 253, 0.22);
}

/* ==================== CARTÃO DE LOGIN / CADASTRO (BRANCO CRISTALINO) ==================== */
.auth-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 1.55rem;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.32rem;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
  border-radius: 12px;
  margin-bottom: 1.15rem;
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--white);
  color: var(--sapphire-800);
  box-shadow: 0 4px 12px rgba(16, 50, 110, 0.12);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sapphire-900);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.88rem;
  border-radius: 10px;
  border: 1.5px solid var(--silver-200);
  background: #f9fbff;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--crystal-400);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.text-link {
  color: var(--sapphire-600);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.auth-footnote {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-logged {
  text-align: center;
  padding: 0.5rem 0;
}

.logged-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 0.65rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sapphire-700), var(--crystal-400));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.logged-name {
  font-size: 1.1rem;
  color: var(--sapphire-900);
}

.logged-server {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.logged-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Mini Salão das Lendas dentro do card */
.hero-hall-mini {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--silver-200);
}

.hall-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}

.hall-mini-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sapphire-800);
}

.hall-mini-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hall-mini-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  padding: 0.36rem 0.55rem;
  border-radius: 8px;
  background: var(--bg-ice);
}

.mini-rank {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--white);
}

.mini-rank.r1 { background: linear-gradient(135deg, var(--sapphire-700), var(--crystal-400)); }
.mini-rank.r2 { background: linear-gradient(135deg, #4f79b8, #9bbce8); }
.mini-rank.r3 { background: linear-gradient(135deg, #6487b5, #b2c8e6); }

.mini-power {
  margin-left: auto;
  font-weight: 800;
  color: var(--sapphire-700);
  font-size: 0.8rem;
}

.hero-crystal-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-crystal-edge svg {
  width: 100%;
  height: 56px;
}

/* ==================== FAIXA DE STATUS RÁPIDO ==================== */
.quick-bar-section {
  background: var(--white);
  margin-top: -1.8rem;
  position: relative;
  z-index: 5;
  padding-bottom: 1.5rem;
}

.quick-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.quick-card {
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.95rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.quick-card:hover {
  border-color: var(--crystal-400);
  transform: translateY(-2px);
}

.quick-card-cta {
  justify-content: space-between;
}

.quick-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.crystal-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, #f8fbff 0%, #e4f1ff 100%);
  border: 1px solid var(--crystal-200);
  color: var(--sapphire-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 #ffffff;
}

.crystal-icon-box svg {
  width: 22px;
  height: 22px;
}

.quick-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sapphire-600);
}

.quick-title {
  display: block;
  font-size: 0.94rem;
  color: var(--sapphire-900);
}

.quick-meta {
  display: block;
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* ==================== SEÇÕES & DIVISOR ESTRELA ==================== */
.section {
  padding: 5rem 0;
}

.section-white {
  background: var(--white);
}

.section-ice {
  background: linear-gradient(180deg, var(--bg-ice) 0%, #f8fbff 100%);
  border-top: 1px solid var(--silver-200);
  border-bottom: 1px solid var(--silver-200);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.8rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sapphire-700);
  background: var(--crystal-100);
  border: 1px solid var(--crystal-200);
  padding: 0.32rem 0.88rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  color: var(--sapphire-900);
  line-height: 1.2;
}

.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.8rem auto 0.9rem;
  max-width: 220px;
}

.star-divider span {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--silver-300), var(--crystal-400), var(--silver-300), transparent);
}

.star-divider svg {
  width: 15px;
  height: 15px;
  color: var(--sapphire-600);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ==================== CLASSES ==================== */
.classes-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.classes-top-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.class-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(175px, 1fr));
  gap: 0.9rem;
  flex: 1;
}

.class-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--silver-200);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.class-pill:hover {
  border-color: var(--crystal-400);
  transform: translateY(-2px);
}

.class-pill.active {
  background: linear-gradient(135deg, var(--sapphire-900) 0%, var(--sapphire-700) 100%);
  border-color: var(--crystal-400);
  color: var(--white);
  box-shadow: var(--shadow-crystal);
}

.class-pill-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-ice);
  color: var(--sapphire-700);
  flex-shrink: 0;
}

.class-pill-icon svg {
  width: 22px;
  height: 22px;
}

.class-pill.active .class-pill-icon {
  background: rgba(56, 189, 248, 0.2);
  color: var(--white);
}

.class-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.class-pill small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.class-pill.active small {
  color: var(--crystal-200);
}

.gender-toggle {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
}

.gender-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gender-btn.active {
  background: var(--white);
  color: var(--sapphire-800);
  box-shadow: 0 4px 12px rgba(11, 31, 71, 0.1);
}

.class-showcase {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(270px, 0.88fr) minmax(0, 1.32fr);
  gap: 2.2rem;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  box-shadow: var(--shadow-card);
  align-items: center;
}

.class-visual {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.36), transparent 64%),
    linear-gradient(155deg, var(--sapphire-950) 0%, var(--sapphire-800) 58%, var(--sapphire-700) 100%);
  border: 1px solid rgba(186, 230, 253, 0.25);
  display: grid;
  place-items: center;
  padding: 1.5rem 1.25rem 0;
  overflow: hidden;
}

.class-visual-glow {
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.class-crest-stage {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 16px 32px rgba(6, 20, 46, 0.5));
  animation: floatY 4.5s ease-in-out infinite;
}

.class-crest-stage.has-portrait {
  width: 100%;
  height: 345px;
  align-items: end;
  animation: floatY 4.5s ease-in-out infinite;
  filter: drop-shadow(0 14px 28px rgba(6, 20, 46, 0.58));
}

.class-character-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: bottom center;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.class-role-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--sapphire-900);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.class-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.class-tag {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sapphire-600);
}

.class-gender-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sapphire-800);
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
}

.class-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sapphire-900);
  margin-bottom: 0.65rem;
}

.class-lore {
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

.class-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.4rem;
  margin-bottom: 1.45rem;
}

.attr-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.attr-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--sapphire-900);
}

.attr-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-crystal-tint);
  border: 1px solid var(--silver-200);
  overflow: hidden;
}

.attr-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sapphire-700), var(--sapphire-600), var(--crystal-400));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.class-skills h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-chip {
  padding: 0.45rem 0.88rem;
  border-radius: 10px;
  background: var(--bg-ice);
  border: 1px solid var(--crystal-200);
  color: var(--sapphire-800);
  font-size: 0.84rem;
  font-weight: 700;
}

/* ==================== 8 SISTEMAS ==================== */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.system-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  padding: 1.55rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--silver-200), var(--crystal-400), var(--silver-200));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.system-card:hover {
  transform: translateY(-4px);
  border-color: var(--crystal-400);
  box-shadow: 0 18px 40px rgba(16, 50, 110, 0.11);
}

.system-card:hover::before {
  opacity: 1;
}

.system-card .crystal-icon-box {
  margin-bottom: 1rem;
}

.system-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--sapphire-900);
  margin-bottom: 0.45rem;
}

.system-card p {
  font-size: 0.89rem;
  color: var(--text-secondary);
}

/* ==================== RANKINGS ==================== */
.ranking-panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.ranking-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-ice);
  border-bottom: 1px solid var(--silver-200);
}

.ranking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ranking-tab {
  border: 1px solid var(--silver-200);
  background: var(--white);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.87rem;
  padding: 0.54rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ranking-tab:hover {
  border-color: var(--crystal-400);
  color: var(--sapphire-800);
}

.ranking-tab.active {
  background: linear-gradient(135deg, var(--sapphire-800), var(--sapphire-600));
  border-color: var(--sapphire-700);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(22, 78, 168, 0.25);
}

.ranking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ranking-filters select,
.ranking-filters input {
  padding: 0.54rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--silver-300);
  background: var(--white);
  color: var(--text-main);
  font-size: 0.87rem;
  outline: none;
}

.ranking-filters input:focus,
.ranking-filters select:focus {
  border-color: var(--crystal-400);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.table-responsive {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ranking-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid var(--silver-200);
  background: var(--white);
}

.ranking-table td {
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid #eef4ff;
  font-size: 0.93rem;
}

.ranking-table tbody tr:hover {
  background: #f5faff;
}

.rank-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.84rem;
  background: var(--bg-ice);
  color: var(--sapphire-800);
}

.rank-pos.top-1 {
  background: linear-gradient(135deg, var(--sapphire-700), var(--crystal-400));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.rank-pos.top-2 {
  background: linear-gradient(135deg, #dce8f8, #b8d2f4);
  color: var(--sapphire-900);
}

.rank-pos.top-3 {
  background: var(--crystal-100);
  color: var(--sapphire-800);
}

.server-tag {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
  color: var(--sapphire-800);
  font-weight: 700;
  font-size: 0.77rem;
}

.power-value {
  font-weight: 800;
  color: var(--sapphire-700);
}

/* ==================== NOTÍCIAS & AGENDA ==================== */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--crystal-400);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.77rem;
  color: var(--text-muted);
}

.news-tag {
  display: inline-block;
  padding: 0.24rem 0.66rem;
  border-radius: 999px;
  background: var(--crystal-100);
  color: var(--sapphire-800);
  font-size: 0.73rem;
  font-weight: 800;
}

.news-card h3 {
  font-size: 1.04rem;
  color: var(--sapphire-900);
  line-height: 1.35;
}

.news-card p {
  font-size: 0.89rem;
  color: var(--text-secondary);
  flex: 1;
}

.news-read-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--sapphire-600);
  font-weight: 700;
  font-size: 0.87rem;
  cursor: pointer;
  padding: 0;
}

.news-read-btn:hover {
  text-decoration: underline;
}

.schedule-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.schedule-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crystal-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.schedule-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--sapphire-900);
}

.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.schedule-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem;
  border-radius: 12px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
}

.schedule-time {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--sapphire-800), var(--sapphire-600));
  padding: 0.34rem 0.6rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.schedule-list strong {
  display: block;
  font-size: 0.9rem;
  color: var(--sapphire-900);
}

.schedule-list small {
  color: var(--text-muted);
  font-size: 0.77rem;
}

.schedule-note {
  margin-top: 0.95rem;
  font-size: 0.77rem;
  color: var(--text-muted);
}

/* ==================== FAQ ACORDEÃO ==================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.open {
  border-color: var(--crystal-400);
  box-shadow: var(--shadow-card);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--sapphire-900);
  font-weight: 700;
  font-size: 0.97rem;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-ice);
  color: var(--sapphire-700);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--sapphire-600);
  color: var(--white);
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==================== DOWNLOAD BANNER ==================== */
.download-banner {
  border-radius: 26px;
  padding: 3rem;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.28), transparent 44%),
    linear-gradient(145deg, var(--sapphire-950) 0%, var(--sapphire-800) 56%, var(--sapphire-700) 100%);
  border: 1px solid rgba(186, 230, 253, 0.24);
  box-shadow: var(--shadow-deep);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 385px);
  gap: 2.5rem;
  align-items: center;
}

.download-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.download-copy p {
  color: #dbeeff;
  margin-bottom: 1.45rem;
  max-width: 52ch;
}

.steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(186, 230, 253, 0.28);
  font-size: 0.83rem;
  font-weight: 600;
}

.step-chip span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  color: var(--sapphire-900);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.76rem;
}

.download-actions-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
  box-shadow: 0 20px 44px rgba(6, 20, 46, 0.28);
}

.download-actions-card h3 {
  font-family: var(--font-display);
  color: var(--sapphire-900);
  font-size: 1.15rem;
  text-align: center;
}

.download-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.77rem;
  color: var(--text-muted);
}

/* ==================== RODAPÉ ==================== */
.site-footer {
  background: var(--sapphire-950);
  color: #cfe0ff;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(56, 189, 248, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  gap: 2.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(56, 189, 248, 0.24));
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #9ab5e2;
  max-width: 38ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.footer-col a {
  font-size: 0.87rem;
  color: #9ab5e2;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--crystal-300);
}

.footer-bottom {
  padding-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #7c9bcb;
}

/* ==================== MODAIS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 20, 46, 0.68);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  overflow: hidden;
  width: min(100%, 520px);
  background: var(--white);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--silver-200);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--silver-200);
  background: var(--bg-ice);
  color: var(--sapphire-900);
  font-size: 1.35rem;
  cursor: pointer;
}

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--sapphire-900);
  margin: 0.45rem 0;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 1.2rem;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.download-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
}

.download-option strong {
  display: block;
  font-size: 0.93rem;
  color: var(--sapphire-900);
}

.download-option small {
  color: var(--text-muted);
  font-size: 0.79rem;
}

.modal-tip {
  font-size: 0.81rem;
  color: var(--text-secondary);
  background: var(--bg-ice);
  border: 1px solid var(--crystal-200);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.news-modal-date {
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.news-modal-body {
  color: var(--text-secondary);
  font-size: 0.94rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==================== TOASTS ==================== */
.toast-container {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toast {
  background: var(--sapphire-950);
  color: var(--white);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-left: 4px solid var(--crystal-400);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-size: 0.89rem;
  font-weight: 600;
  box-shadow: var(--shadow-deep);
  max-width: 340px;
  animation: slideInToast 0.25s ease;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 1080px) {
  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .class-showcase,
  .news-layout,
  .download-banner {
    grid-template-columns: 1fr;
  }

  .quick-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--silver-200);
    flex-direction: column;
    padding: 1rem;
    gap: 0.35rem;
    display: none;
    box-shadow: var(--shadow-card);
  }

  .main-nav.open {
    display: flex;
  }

  .server-pill,
  .header-actions .btn-silver-outline {
    display: none;
  }

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

  .header-logo {
    height: 48px;
  }

  .quick-bar,
  .class-selector,
  .systems-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .download-banner {
    padding: 1.8rem;
  }
}


/* ==================== HERO CENTRALIZADO & PÁGINA DEDICADA entrar.html ==================== */
.hero-center-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-center-body .hero-description {
  margin-inline: auto;
}

.hero-cta-centered {
  justify-content: center;
}

.auth-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sapphire-950);
}

.auth-page-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 58% at 50% 24%, rgba(56, 189, 248, 0.24) 0%, transparent 65%),
    linear-gradient(155deg, #06132b 0%, #0b2048 48%, #10377a 100%);
}

.auth-page-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-page-brand {
  text-align: center;
}

.auth-page-logo {
  width: min(86vw, 420px);
  height: auto;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 12px 30px rgba(56, 189, 248, 0.32));
}

.auth-page-subtitle {
  color: #cfe6ff;
  font-size: 0.94rem;
}

.auth-card-standalone {
  width: min(100%, 430px);
}

.auth-card-footer {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--silver-200);
  display: flex;
  justify-content: center;
}

.shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.shield-badge svg {
  width: 16px;
  height: 16px;
  color: var(--sapphire-600);
}


/* ==================== PAINEL DO JOGADOR (painel.html) ==================== */
.dashboard-body {
  background: var(--bg-ice);
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sapphire-900);
}

.player-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sapphire-700), var(--crystal-400));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
}

.dash-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4.5rem;
  color: var(--white);
  background:
    radial-gradient(ellipse 64% 58% at 24% 25%, rgba(56, 189, 248, 0.24), transparent 65%),
    linear-gradient(150deg, #06132b 0%, #0b2048 48%, #10377a 100%);
}

.dash-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.dash-welcome {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.2;
  margin: 0.45rem 0 0.65rem;
}

.dash-subtitle {
  max-width: 56ch;
  color: #d6ecff;
  font-size: 0.96rem;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dash-content {
  margin-top: -2.2rem;
  padding-bottom: 4.5rem;
  position: relative;
  z-index: 4;
}

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.dash-kpi-card {
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.dash-kpi-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--sapphire-900);
  margin: 0.25rem 0;
}

.dash-section {
  margin-bottom: 2.5rem;
}

.dash-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dash-section-head h2,
.dash-panel-card h2 {
  font-family: var(--font-display);
  color: var(--sapphire-900);
  font-size: 1.5rem;
}

.dash-chars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.dash-char-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.dash-char-thumb {
  height: 220px;
  padding: 1rem 1rem 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.34), transparent 64%),
    linear-gradient(155deg, var(--sapphire-950) 0%, var(--sapphire-800) 60%, var(--sapphire-700) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.dash-char-thumb img {
  max-height: 205px;
  max-width: 100%;
  object-fit: contain;
}

.dash-char-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dash-char-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--sapphire-900);
}

.dash-char-info p {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.dash-char-power {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.dash-char-power strong {
  color: var(--sapphire-700);
}

.dash-two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dash-panel-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
}

.dash-panel-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--sapphire-900);
  margin-bottom: 0.35rem;
}

.dash-panel-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.4rem 0 1.1rem;
}

.checkin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.checkin-day {
  padding: 0.72rem 0.6rem;
  border-radius: 12px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.checkin-day span { font-size: 0.72rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.checkin-day strong { font-size: 0.85rem; color: var(--sapphire-900); }
.checkin-day small { font-size: 0.71rem; color: var(--text-muted); }

.checkin-day.claimed {
  background: #edf9f3;
  border-color: #a7e3c5;
}

.checkin-day.claimed small { color: #059669; font-weight: 700; }

.checkin-day.today {
  background: linear-gradient(135deg, var(--sapphire-800), var(--sapphire-600));
  border-color: var(--crystal-400);
  color: var(--white);
}

.checkin-day.today span,
.checkin-day.today strong,
.checkin-day.today small { color: var(--white); }

.checkin-day.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #f3f9ff, #dff0ff);
  border-color: var(--crystal-400);
}

.gift-form {
  display: flex;
  gap: 0.6rem;
}

.gift-form input {
  flex: 1;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--silver-200);
  background: #f9fbff;
  font-size: 0.92rem;
  outline: none;
}

.gift-form input:focus {
  border-color: var(--crystal-400);
  background: var(--white);
}

.gift-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
}

.dash-divider {
  height: 1px;
  background: var(--silver-200);
  margin: 1.35rem 0;
}

.dash-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dash-security-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

@media (max-width: 980px) {
  .dash-kpi-grid,
  .dash-chars-grid,
  .dash-two-col {
    grid-template-columns: 1fr;
  }

  .checkin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==================== ABAS 3 COLUNAS (ADMIN) & E-MAIL / PAINEL GM ==================== */
.auth-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.admin-badge-strip {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sapphire-800);
  background: var(--crystal-100);
  border: 1px solid var(--crystal-200);
  padding: 0.42rem 0.75rem;
  border-radius: 9px;
}

.email-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
  margin-bottom: 1rem;
}

.email-status-bar small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.email-status-bar strong {
  font-size: 0.92rem;
  color: var(--sapphire-900);
}

.email-verified-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #e6f7ee;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 800;
}

.email-verified-pill.pending {
  background: #e0f2fe;
  color: var(--sapphire-700);
}

.email-config-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.email-prefs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.admin-chip {
  border-color: var(--crystal-400);
}

.status-pill-gm {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-pill-gm.ok {
  background: #e6f7ee;
  color: #059669;
}

.status-pill-gm.ban {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-code-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.admin-code-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-code-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
  font-size: 0.85rem;
}

.admin-events-switches {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0.95rem;
  border-radius: 12px;
  background: var(--bg-ice);
  border: 1px solid var(--silver-200);
  cursor: pointer;
}

.admin-switch-row strong {
  display: block;
  font-size: 0.9rem;
  color: var(--sapphire-900);
}

.admin-switch-row small {
  color: var(--text-muted);
  font-size: 0.77rem;
}

.admin-switch-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--sapphire-600);
}


/* ==================== VITRINE EXCLUSIVA DE EINHERJARS (ESQUERDA: TIPOS | DIREITA: VISUAL) ==================== */
.einherjar-showcase {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.95fr);
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-card);
  align-items: center;
}

.einherjar-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.einherjar-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.einherjar-head-row .section-eyebrow {
  margin-bottom: 0;
}

.einherjar-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  color: var(--sapphire-900);
  line-height: 1.2;
}

.einherjar-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.einherjar-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
}

.einherjar-picker-label {
  font-size: 0.79rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.einherjar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ein-pill {
  padding: 0.52rem 0.95rem;
  border-radius: 10px;
  border: 1.5px solid var(--silver-200);
  background: var(--bg-ice);
  color: var(--sapphire-900);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ein-pill:hover {
  border-color: var(--crystal-400);
  background: var(--white);
  transform: translateY(-1px);
}

.ein-pill.ein-dual {
  border-color: var(--crystal-200);
  background: #edf6ff;
}

.ein-pill.active {
  background: linear-gradient(135deg, var(--sapphire-900), var(--sapphire-600));
  border-color: var(--crystal-400);
  color: var(--white);
  box-shadow: var(--shadow-crystal);
}

.einherjar-right {
  position: relative;
  min-height: 375px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 44%, rgba(56, 189, 248, 0.38), transparent 64%),
    linear-gradient(155deg, var(--sapphire-950) 0%, var(--sapphire-800) 58%, var(--sapphire-700) 100%);
  border: 1px solid rgba(186, 230, 253, 0.28);
  display: grid;
  place-items: center;
  padding: 1rem 1rem 0;
  overflow: hidden;
}

.einherjar-stage {
  width: 100%;
  height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: floatY 4.5s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(6, 20, 46, 0.6));
}

.einherjar-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: bottom center;
  transition: opacity 0.18s ease, transform 0.22s ease;
}

@media (max-width: 960px) {
  .einherjar-showcase {
    grid-template-columns: 1fr;
    padding: 1.45rem;
  }
}


/* ==================== SISTEMA MEUS CONVITES (painel.html) ==================== */
.invite-panel {
  padding: 2rem 2.25rem;
  background:
    radial-gradient(ellipse 46% 36% at 94% 4%, rgba(56, 189, 248, 0.11), transparent 70%),
    radial-gradient(ellipse 40% 34% at 6% 96%, rgba(26, 102, 232, 0.06), transparent 70%),
    var(--white);
}

.invite-header {
  text-align: center;
  margin-bottom: 1.85rem;
}

.invite-header .section-eyebrow {
  margin-bottom: 0.4rem;
}

.invite-ornament-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.invite-ornament-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sapphire-900);
  white-space: nowrap;
}

.invite-orn-line {
  flex: 1;
  max-width: 240px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--silver-300) 45%, var(--crystal-400));
}

.invite-orn-line-right {
  background: linear-gradient(270deg, transparent, var(--silver-300) 45%, var(--crystal-400));
}

.invite-orn-star {
  width: 14px;
  height: 14px;
  color: var(--crystal-400);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.invite-block {
  margin-bottom: 1.55rem;
}

.invite-rules-block {
  margin-bottom: 0;
}

.invite-subhead {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.invite-subhead span:first-child {
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sapphire-700);
  white-space: nowrap;
}

.invite-subhead-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--crystal-200), var(--silver-200) 65%, transparent);
}

.invite-link-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.dash-section,
.dash-panel-card[id],
.dash-two-col[id] {
  scroll-margin-top: 86px;
}

.invite-link-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1.5px solid var(--silver-200);
  background: var(--bg-ice);
  color: var(--sapphire-900);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.invite-link-input:focus {
  border-color: var(--crystal-400);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.invite-copy-btn {
  min-width: 136px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.invite-copy-btn svg {
  width: 16px;
  height: 16px;
}

.invite-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.invite-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.invite-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.56rem 1.15rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.invite-share-btn svg {
  width: 15px;
  height: 15px;
}

.invite-share-btn:hover {
  transform: translateY(-1px);
}

.invite-share-btn.share-whatsapp {
  color: #047857;
  border: 1.5px solid #34d399;
  background: #f2fdf8;
}

.invite-share-btn.share-whatsapp:hover {
  background: #e2faee;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.16);
}

.invite-share-btn.share-facebook {
  color: #1d4ed8;
  border: 1.5px solid #60a5fa;
  background: #f0f6ff;
}

.invite-share-btn.share-facebook:hover {
  background: #e1eeff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
}

.invite-demo-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.invite-demo-btn {
  border: 1px dashed var(--silver-300);
  background: var(--bg-ice);
  color: var(--sapphire-700);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.invite-demo-btn:hover {
  border-color: var(--crystal-400);
  background: var(--white);
  color: var(--sapphire-900);
}

.invite-demo-reset {
  color: var(--text-muted);
}

.invite-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.95rem;
  margin-bottom: 1.75rem;
}

.invite-stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid var(--silver-200);
  border-radius: 14px;
  padding: 1.25rem 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  box-shadow: 0 6px 18px rgba(11, 31, 71, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.invite-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--crystal-400);
  box-shadow: 0 12px 26px rgba(26, 102, 232, 0.09);
}

.invite-stat-card.highlight {
  background: linear-gradient(180deg, #f7fbff 0%, #eaf5ff 100%);
  border-color: var(--crystal-200);
}

.invite-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--sapphire-900);
}

.invite-stat-card.highlight .invite-stat-num {
  color: var(--sapphire-600);
}

.invite-stat-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.invite-list-box {
  border-radius: 13px;
  background: #f8fbff;
  border: 1px dashed var(--silver-300);
  padding: 1.35rem 1.2rem;
  overflow-x: auto;
}

.invite-list-box.has-items {
  background: var(--white);
  border: 1px solid var(--silver-200);
  padding: 0;
}

.invite-empty-state {
  text-align: center;
  font-style: italic;
  font-size: 0.91rem;
  color: var(--text-muted);
  margin: 0;
}

.invite-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.invite-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-ice);
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--silver-200);
  white-space: nowrap;
}

.invite-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #eef4ff;
  font-size: 0.89rem;
  color: var(--text-main);
  white-space: nowrap;
}

.invite-table tbody tr:last-child td {
  border-bottom: none;
}

.invite-table tbody tr:hover {
  background: #f7fbff;
}

.invite-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invite-pill.real,
.invite-pill.credited {
  background: #e6f7ee;
  color: #047857;
  border: 1px solid #a7e3c5;
}

.invite-pill.pending {
  background: #e6f3ff;
  color: var(--sapphire-700);
  border: 1px solid var(--crystal-200);
}

.invite-pill.progress {
  background: var(--bg-ice);
  color: var(--text-secondary);
  border: 1px solid var(--silver-200);
}

.invite-notice-box {
  background: linear-gradient(90deg, #ecf5ff 0%, #f7fbff 100%);
  border: 1px solid var(--crystal-200);
  border-left: 4px solid var(--sapphire-600);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.65rem;
}

.invite-notice-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--sapphire-900);
}

.invite-badge-inline {
  display: inline-block;
  padding: 0.08rem 0.48rem;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--crystal-200);
  color: var(--sapphire-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.invite-rules-text {
  font-size: 0.91rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin: 0;
}

.invite-rules-text strong {
  color: var(--sapphire-900);
}

/* Banner de convite ativo no formulário de cadastro (index.html?c=...) */
.referral-active-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #e8f4ff, #f3f9ff);
  border: 1px solid var(--crystal-200);
  color: var(--sapphire-800);
  font-size: 0.81rem;
  line-height: 1.4;
}

.referral-active-banner[hidden] {
  display: none;
}

.referral-active-banner svg {
  width: 15px;
  height: 15px;
  color: var(--crystal-400);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .invite-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .invite-panel {
    padding: 1.4rem 1.15rem;
  }

  .invite-link-row {
    flex-direction: column;
  }

  .invite-copy-btn {
    width: 100%;
  }

  .invite-orn-line {
    display: none;
  }

  .invite-stats-grid {
    grid-template-columns: 1fr;
  }
}
