/* ==========================================================================
   ARGOS SERVER — Design System unificado
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   VARIÁVEIS
   -------------------------------------------------------------------------- */
:root {
  --red:             #b01c1c;
  --red-bright:      #e02020;
  --red-deep:        #6b0f0f;

  --green:           #2ecc71;
  --green-bright:    #4ade80;
  --green-deep:      #1a7a42;

  --gold:            #c8a04a;
  --gold-bright:     #f5d98a;
  --gold-deep:       #8a6a20;
  --logo-gold:       #d4a24c;
  --logo-gold-2:     #f0c874;
  --gold-glow:       rgba(200, 160, 74, 0.45);

  --blue:            #5ba4cf;
  --danger:          #e74c3c;
  --success:         #2ecc71;

  --bg:              #0a0a0c;
  --bg-2:            #121216;
  --bg-3:            #050507;
  --panel:           rgba(15, 15, 22, 0.92);
  --panel-solid:     #0f0f16;

  --text:            #e8e8ec;
  --text-dim:        #8a8a92;
  --text-muted:      #6b6b74;

  --border:          rgba(255, 255, 255, 0.08);
  --border-gold:     rgba(200, 160, 74, 0.25);
  --border-red:      rgba(224, 32, 32, 0.3);

  --font-title:      'Cinzel', Georgia, serif;
  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:    'Rajdhani', 'Inter', sans-serif;

  --radius:          4px;
  --transition:      0.28s ease;
  --shadow:          0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-lg:       0 20px 60px rgba(0, 0, 0, 0.8);

  --hand-x:          50%;
  --hand-y:          45%;
  --flame-size:      280px;
  --flame-rotate:    -20deg;
  --flame-hue:       140deg;
}

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 70% 50%, rgba(60,30,20,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(80,10,10,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { color: var(--text-dim); margin-bottom: 1rem; }
.muted { color: var(--text-dim); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.container, .site, .wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section { padding: 60px 0; }

.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 120px;
  padding-bottom: 60px;
}

.site-main:has(> .hero),
.site-main:has(> section.hero) {
  padding-top: 0;
  padding-bottom: 0;
}

.site-main:has(> .auth-section),
.site-main:has(> section.auth-section) {
  padding-top: 0;
  padding-bottom: 0;
}

.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.flex, .flex-c, .flex-s, .flex-s-c, .flex-c-c { display: flex; flex-wrap: wrap; }
.flex-c   { align-items: center; }
.flex-s   { justify-content: space-between; }
.flex-s-c { justify-content: space-between; align-items: center; }
.flex-c-c { justify-content: center; align-items: center; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-dim); }
.text-white  { color: #fff; }
.text-red    { color: var(--red-bright); }
.text-green  { color: var(--green); }
.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; } .mb-30 { margin-bottom: 30px; }
.gap-10 { gap: 10px; } .gap-20 { gap: 20px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ==========================================================================
   HEADER — Logo + Menus CENTRALIZADOS + linha decorativa na borda inferior
   ========================================================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 100px;
  background: #000;
  border-bottom: none;      /* a linha decorativa substitui a borda */
}

.header-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

/* Grupo central: logo + menus */
.header-center {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.logo img {
  display: block;
  height: 72px;
  width: auto;
  transition: filter .35s ease;
}
header .logo img { filter: none; }
header .logo:hover img { filter: brightness(0) invert(1); }
footer .logo img { filter: none; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav.main-nav a {
  color: #c8c8d0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  transition: color .25s ease, text-shadow .25s ease;
  position: relative;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--logo-gold-2);
  text-shadow:
    0 0 12px rgba(212,162,76,0.7),
    0 0 24px rgba(212,162,76,0.4);
}

/* Botões Login/Registro — ancorados à direita */
.header-right {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login, .btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all .25s ease;
  color: #fff;
  white-space: nowrap;
}
.btn-login {
  background: linear-gradient(180deg, #d02424 0%, #8a1010 100%);
  border: 1px solid #e84c4c;
  box-shadow: 0 0 16px rgba(200,30,30,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-login:hover {
  color: #fff;
  box-shadow: 0 0 26px rgba(220,40,40,0.75), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.btn-register {
  background: linear-gradient(180deg, #34d17c 0%, #166a3c 100%);
  border: 1px solid #4ade80;
  box-shadow: 0 0 16px rgba(46,204,113,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-register:hover {
  color: #fff;
  box-shadow: 0 0 26px rgba(74,222,128,0.8), inset 0 1px 0 rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

/* User info (quando logado) */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  padding: 8px 14px;
  border-radius: 2px;
  border: 1px solid var(--border-gold);
  background: rgba(0,0,0,0.4);
  transition: all var(--transition);
}
.user-info:hover { border-color: var(--gold); background: rgba(200,160,74,0.05); }
.user-info .nickname {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-bright);
  text-transform: uppercase;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(10,10,14,0.98);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 8px 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}
.user-dropdown.open { display: block; }
.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-body);
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: rgba(200,160,74,0.08); color: var(--gold-bright); }
.user-dropdown .sep { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* --------------------------------------------------------------------------
   LINHA DECORATIVA — borda inferior do header
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   LINHA DECORATIVA — SOBREPOSTA à barra de menu
   -------------------------------------------------------------------------- */
.header-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;                     /* colada na base do header */
  transform: translateY(50%);    /* metade da linha sobe, metade desce */
  z-index: 10;                   /* na frente do conteúdo do header */
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  line-height: 0;
  overflow: visible;             /* NÃO corta a imagem */
}
.header-line img {
  display: block;
  width: 100%;                   /* ocupa a largura toda */
  max-width: none;
  height: auto;
  max-height: none;              /* sem limite de altura */
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(200,160,74,0.5));
}
/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 780px;
  padding-top: 100px;
  overflow: hidden;
  background:
    url('/static/img/bg_home.JPG') center/cover no-repeat,
    #0a0a0c;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.15) 45%, rgba(10,10,12,0.55) 100%),
    radial-gradient(ellipse 70% 80% at 70% 50%, transparent 0%, rgba(10,10,12,0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.character-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}
.character {
  position: absolute;
  bottom: -3%;
  left: 50%;
  transform: translateX(-50%);
  height: 110%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(-10px 10px 40px rgba(0,0,0,0.9))
    drop-shadow(0 0 60px rgba(180,20,20,0.4));
  pointer-events: none;
  z-index: 2;
}

.hand-flames {
  position: absolute;
  left: var(--hand-x);
  top: var(--hand-y);
  width: 0; height: 0;
  z-index: 3;
  pointer-events: none;
  animation: flameFloat 3.6s ease-in-out infinite;
}
@keyframes flameFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20%      { transform: translate(-3px, -5px) rotate(-1.5deg); }
  40%      { transform: translate(2px, -10px) rotate(1deg); }
  60%      { transform: translate(-2px, -6px) rotate(-0.8deg); }
  80%      { transform: translate(3px, -3px) rotate(1.2deg); }
}
.hand-flames .flame {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--flame-size);
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--flame-rotate));
  opacity: 0;
  pointer-events: none;
  filter:
    hue-rotate(var(--flame-hue))
    saturate(2)
    brightness(1.25)
    contrast(1.1)
    drop-shadow(0 0 10px rgba(0, 180, 255, 0.9))
    drop-shadow(0 0 22px rgba(0, 130, 255, 0.55))
    drop-shadow(0 0 40px rgba(0, 90, 220, 0.3));
  mix-blend-mode: screen;
}
.flame-1 { animation: flameFrame1 1.5s linear infinite; }
.flame-2 { animation: flameFrame2 1.5s linear infinite; }
.flame-3 { animation: flameFrame3 1.5s linear infinite; }
.flame-4 { animation: flameFrame4 1.5s linear infinite; }
.flame-5 { animation: flameFrame5 1.5s linear infinite; }

@keyframes flameFrame1 {
  0%, 15%   { opacity: 1; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(1); }
  25%, 100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(1.02); }
}
@keyframes flameFrame2 {
  0%, 15%   { opacity: 0; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(0.98); }
  20%, 35%  { opacity: 1; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(1.03); }
  45%, 100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(0.98); }
}
@keyframes flameFrame3 {
  0%, 35%   { opacity: 0; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(0.98); }
  40%, 55%  { opacity: 1; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(1.04); }
  65%, 100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(0.98); }
}
@keyframes flameFrame4 {
  0%, 55%   { opacity: 0; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(0.98); }
  60%, 75%  { opacity: 1; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(1.03); }
  85%, 100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(0.98); }
}
@keyframes flameFrame5 {
  0%, 75%   { opacity: 0; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(0.98); }
  80%, 95%  { opacity: 1; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(1.02); }
  100%      { opacity: 0; transform: translate(-50%,-50%) rotate(var(--flame-rotate)) scale(0.98); }
}

.sparks { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.spark {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.spark-1 { width: 220px; height: 340px; left: 12%; bottom: 20%; background-image: url('/static/img/spark_1.png'); animation: sparkFloatA 5s ease-in-out infinite; }
.spark-2 { width: 180px; height: 280px; left: 42%; bottom: 35%; background-image: url('/static/img/spark_2.png'); animation: sparkFloatB 6s ease-in-out infinite; animation-delay: 0.8s; }
.spark-3 { width: 260px; height: 400px; left: 60%; bottom: 8%;  background-image: url('/static/img/spark_3.png'); animation: sparkFloatC 7s ease-in-out infinite; animation-delay: 0.4s; }
.spark-4 { width: 240px; height: 360px; left: 30%; bottom: 5%;  background-image: url('/static/img/spark_4.png'); animation: sparkFloatD 6.5s ease-in-out infinite; animation-delay: 1.2s; }

@keyframes sparkFloatA {
  0%   { opacity: 0;   transform: translate(0, 30px) scale(0.85) rotate(-2deg); }
  20%  { opacity: 0.9; }
  50%  { opacity: 0.7; transform: translate(15px, -30px) scale(1.05) rotate(3deg); }
  80%  { opacity: 0.85;}
  100% { opacity: 0;   transform: translate(0, -60px) scale(0.9) rotate(-1deg); }
}
@keyframes sparkFloatB {
  0%   { opacity: 0;   transform: translate(0, 20px) scale(0.9) rotate(2deg); }
  25%  { opacity: 0.85;}
  50%  { opacity: 0.6; transform: translate(-20px, -40px) scale(1.1) rotate(-4deg); }
  75%  { opacity: 0.8; }
  100% { opacity: 0;   transform: translate(0, -80px) scale(0.95) rotate(1deg); }
}
@keyframes sparkFloatC {
  0%   { opacity: 0;   transform: translate(0, 40px) scale(0.8) rotate(0deg); }
  30%  { opacity: 1;   }
  55%  { opacity: 0.75;transform: translate(25px, -50px) scale(1.15) rotate(5deg); }
  80%  { opacity: 0.9; }
  100% { opacity: 0;   transform: translate(0, -90px) scale(0.85) rotate(-2deg); }
}
@keyframes sparkFloatD {
  0%   { opacity: 0;   transform: translate(0, 25px) scale(0.9) rotate(-3deg); }
  20%  { opacity: 0.9; }
  50%  { opacity: 0.55;transform: translate(-15px, -35px) scale(1.05) rotate(4deg); }
  80%  { opacity: 0.85;}
  100% { opacity: 0;   transform: translate(0, -70px) scale(0.9) rotate(1deg); }
}

.hero-cta {
  position: absolute;
  top: 50%;
  left: 12%;
  transform: translateY(-50%);
  width: 380px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
}
.hero-cta .class-info { text-align: left; margin-bottom: 0; }
.hero-cta .class-info .headline {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  text-shadow:
    0 0 40px rgba(255,255,255,0.4),
    0 0 80px rgba(224,32,32,0.35),
    0 6px 18px rgba(0,0,0,1);
  line-height: 1.15;
  max-width: 380px;
  margin: 0;
}
.hero-cta .class-info p {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 12px;
  max-width: 360px;
}
.hero-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: linear-gradient(180deg, #d02424 0%, #8a1010 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #e84c4c;
  border-radius: 2px;
  box-shadow:
    0 0 30px rgba(200,30,30,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all .28s ease;
}
.hero-cta .btn-cta:hover {
  color: #fff;
  box-shadow: 0 0 50px rgba(220,40,40,0.8);
  transform: translateY(-2px);
}

.hero-register-box {
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translateY(-50%);
  width: 380px;
  z-index: 6;
  background: linear-gradient(160deg, rgba(20,20,28,0.95), rgba(10,10,16,0.98));
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 30px 26px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(200,160,74,0.15);
  backdrop-filter: blur(10px);
}
.hero-register-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 6px 6px 0 0;
}
.hero-register-box h2 {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--gold-bright);
  text-align: center;
  text-shadow: 0 0 20px rgba(200,160,74,0.4);
  margin-bottom: 20px;
}
.hero-register-box .form { gap: 12px; display: flex; flex-direction: column; }
.hero-register-box .form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.hero-register-box .form input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hero-register-box .form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,160,74,0.12);
}
.hero-register-box .form button {
  width: 100%;
  margin-top: 8px;
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 3px;
}
.hero-register-box .check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.hero-register-box .muted {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}

.hero-content,
.cta-block,
.hero-cta .btn-download {
  display: none !important;
}

.social-rail {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.social-rail a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,24,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: #c8c8d0;
  text-decoration: none;
  transition: all .25s;
  backdrop-filter: blur(6px);
}
.social-rail a:hover {
  background: var(--red-deep);
  border-color: var(--red-bright);
  color: #fff;
  box-shadow: 0 0 16px rgba(220,30,30,0.5);
}
.social-rail svg { width: 16px; height: 16px; fill: currentColor; }

/* --------------------------------------------------------------------------
   DIVISOR DECORATIVO
   -------------------------------------------------------------------------- */
.section-divider {
  position: relative;
  height: 0;
  z-index: 10;
  pointer-events: none;
  flex-shrink: 0;
}
.section-divider img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  height: 56px;
  width: auto;
  filter:
    drop-shadow(0 0 12px rgba(120,80,220,0.55))
    drop-shadow(0 0 28px rgba(80,40,160,0.35));
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer {
  background: #050507;
  border-top: 1px solid var(--border);
  padding: 48px 60px 22px;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  max-width: 1400px;
  margin: 0 auto 30px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo img { height: 58px; width: auto; }
.footer-brand p { color: var(--text-dim); font-size: 13px; line-height: 1.8; max-width: 340px; margin: 0; }
.footer-col h4 {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--red-bright);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 13.5px; transition: color .25s; }
.footer-col a:hover { color: var(--logo-gold-2); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1.2px;
}
.footer-bottom strong { color: var(--red-bright); font-weight: 600; }
.footer-credit { display: flex; align-items: center; gap: 12px; }
.footer-credit .discord-icon { width: 14px; height: 14px; fill: var(--red-bright); }

/* --------------------------------------------------------------------------
   AUTH
   -------------------------------------------------------------------------- */
.auth-section {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  min-height: calc(100vh - 100px);
}
.auth-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  align-items: center;
  max-width: 1300px;
  width: 100%;
}
.auth-box {
  width: 100%;
  background: linear-gradient(160deg, rgba(20,20,28,0.95), rgba(10,10,16,0.98));
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(200,160,74,0.08);
  position: relative;
}
.auth-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-box h1 {
  font-family: var(--font-title);
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--gold-bright);
  text-align: center;
  text-shadow: 0 0 20px rgba(200,160,74,0.4);
  margin-bottom: 24px;
}
.auth-box .form { gap: 16px; }
.auth-box .form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.auth-box .form input,
.auth-box .form .form-input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-box .form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,160,74,0.12);
}
.auth-box .form button,
.auth-box .form .btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 3px;
}
.auth-box .check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.auth-box .muted {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}
.auth-box .alert { font-size: 12px; padding: 10px 14px; margin-bottom: 14px; }

.auth-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  position: relative;
}
.auth-image img {
  width: 100%;
  max-width: 640px;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  filter:
    drop-shadow(0 0 60px rgba(200,160,74,0.35))
    drop-shadow(0 40px 90px rgba(0,0,0,0.95));
  animation: authImageFloat 6s ease-in-out infinite;
}
@keyframes authImageFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@media (max-width: 1000px) {
  .auth-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: 30px;
  }
  .auth-image img { max-height: 380px; }
  .auth-section { padding: 60px 20px; }
}
@media (max-width: 600px) {
  .auth-section { padding: 40px 16px; }
  .auth-box { padding: 28px 22px; }
  .auth-image img { max-height: 260px; }
}

/* --------------------------------------------------------------------------
   STATS GRID
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.stat-box {
  background: rgba(15,15,22,0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
  transition: all .25s;
}
.stat-box:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.stat-box .stat-icon { font-size: 28px; margin-bottom: 10px; line-height: 1; }
.stat-box .stat-value {
  font-family: var(--font-title);
  font-size: 28px;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1;
}
.stat-box .stat-label {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   RANKING
   -------------------------------------------------------------------------- */
.ranking-section { padding: 50px 0; position: relative; z-index: 2; }
.rank-tabs, .rating-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 4px;
  width: fit-content;
  flex-wrap: wrap;
}
.rank-tab, .rating-tab {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.rank-tab.active, .rating-tab.active, .rating-tab--active {
  background: rgba(200,160,74,0.15);
  color: var(--gold-bright);
  font-weight: 700;
}
.rank-tab:hover:not(.active) { color: var(--text); }

.rank-table, .table, .admin-table {
  width: 100%;
  border-collapse: collapse;
}
.rank-table thead, .table thead, .admin-table thead {
  background: rgba(20,18,14,0.9);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.rank-table thead th, .table th, .admin-table th {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-gold);
  font-weight: 700;
}
.rank-table tbody tr, .table tbody tr, .admin-table tbody tr { transition: background var(--transition); }
.rank-table tbody tr:nth-child(even), .table tbody tr:nth-child(even), .admin-table tbody tr:nth-child(even) { background: rgba(20,18,14,0.55); }
.rank-table tbody tr:nth-child(odd),  .table tbody tr:nth-child(odd),  .admin-table tbody tr:nth-child(odd)  { background: rgba(15,13,10,0.45); }
.rank-table tbody tr:hover, .table tbody tr:hover, .admin-table tbody tr:hover { background: rgba(200,160,74,0.06); }
.rank-table td, .table td, .admin-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}
.rank-column { width: 60px; text-align: center; }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--font-title);
  font-weight: 700;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: var(--text);
}
.rank-badge--1 { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #0a0a12; border-color: var(--gold-bright); box-shadow: 0 0 14px var(--gold-glow); }
.rank-badge--2 { background: linear-gradient(135deg, #d0d0d8, #808090); color: #0a0a12; border-color: #c0c0c8; }
.rank-badge--3 { background: linear-gradient(135deg, #e09060, #8a5020); color: #fff; border-color: #e09060; }
.rank-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 13px;
  vertical-align: middle;
  position: relative;
  top: -2px;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.rank-crown:hover {
  transform: scale(1.2) translateY(-2px);
}
.rank-crown--gold {
  color: #ffd700;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.85));
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}
.rank-crown--silver {
  color: #e2e8f0;
  filter: drop-shadow(0 0 6px rgba(226, 232, 240, 0.8));
  text-shadow: 0 0 8px rgba(226, 232, 240, 0.6);
}
.rank-crown--bronze {
  color: #cd7f32;
  filter: drop-shadow(0 0 6px rgba(205, 127, 50, 0.8));
  text-shadow: 0 0 8px rgba(205, 127, 50, 0.6);
}
.char-name { font-weight: 700; color: #fff; }
.char-class-icon { width: 22px; height: 22px; vertical-align: middle; margin-right: 6px; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,160,74,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
}

.card, .panel {
  position: relative;
  padding: 24px;
  background: linear-gradient(160deg, rgba(20,20,28,0.9), rgba(10,10,16,0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card::before, .panel::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.card:hover, .panel:hover {
  border-color: var(--border-gold);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(200,160,74,0.08);
}

.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { color: var(--gold-bright); text-shadow: 0 0 40px rgba(200,160,74,0.3); }
.section-header p { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }

.section-title {
  font-family: var(--font-title);
  font-size: 28px;
  color: var(--gold-bright);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.section-title-line {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 6px;
}
.section-title-line::before,
.section-title-line::after {
  content: '';
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.section-title-line::after { background: linear-gradient(to left, transparent, var(--gold)); }

/* --------------------------------------------------------------------------
   FORMULÁRIOS GENÉRICOS
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-group, .form__field { display: flex; flex-direction: column; gap: 6px; }
.form-label, .form__label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.form-input, .form__input,
.form input[type="text"], .form input[type="email"],
.form input[type="password"], .form input[type="number"],
.form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form__input:focus,
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,160,74,0.12);
}
.form-input::placeholder { color: var(--text-muted); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-line { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-dim); cursor: pointer; }

/* --------------------------------------------------------------------------
   BOTÕES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary, .btn-primary {
  background: linear-gradient(180deg, #d02424 0%, #8a1010 100%);
  color: #fff;
  border-color: #e84c4c;
  box-shadow: 0 0 24px rgba(200,30,30,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--primary:hover, .btn-primary:hover {
  color: #fff;
  box-shadow: 0 0 36px rgba(220,40,40,0.8);
  transform: translateY(-1px);
}
.btn--gold {
  background: linear-gradient(135deg, #f0cd7c 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: #0a0a12;
  border-color: var(--gold-bright);
  font-weight: 800;
  box-shadow: 0 0 20px rgba(200,160,74,0.4);
}
.btn--gold:hover { color: #0a0a12; filter: brightness(1.1); transform: translateY(-1px); }
.btn--ghost, .btn-ghost {
  background: rgba(0,0,0,0.45);
  color: #e8e8ec;
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover, .btn-ghost:hover {
  color: #fff;
  border-color: var(--gold);
  background: rgba(200,160,74,0.08);
}
.btn--danger, .btn-danger {
  background: linear-gradient(180deg, #d02424 0%, #8a1010 100%);
  color: #fff;
  border-color: #e84c4c;
}
.btn-sm { padding: 8px 16px; font-size: 11px; letter-spacing: 2px; }
.btn-lg { padding: 16px 32px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* --------------------------------------------------------------------------
   ALERTS E FLASH
   -------------------------------------------------------------------------- */
.alert {
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 13px;
  border-left: 3px solid;
  margin-bottom: 16px;
}
.alert.ok, .alert.success { background: rgba(46,204,113,0.1); border-color: var(--green); color: var(--green-bright); }
.alert.danger, .alert.error { background: rgba(224,32,32,0.1); border-color: var(--red-bright); color: #ff8090; }
.alert.info { background: rgba(91,164,207,0.1); border-color: var(--blue); color: var(--blue); }
.alert.warning { background: rgba(200,160,74,0.1); border-color: var(--gold); color: var(--gold-bright); }

.flash { position: fixed; top: 120px; right: 24px; z-index: 3000; min-width: 280px; max-width: 380px; }
.flash-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; margin-bottom: 10px;
  border-radius: 4px; font-size: 13px; border-left: 3px solid;
  background: rgba(10,10,14,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: flashIn .35s ease;
}
@keyframes flashIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.flash-item.success { border-color: var(--green); color: var(--green-bright); }
.flash-item.error   { border-color: var(--red-bright); color: #ff8090; }
.flash-item.danger  { border-color: var(--red-bright); color: #ff8090; }
.flash-item.info    { border-color: var(--blue); color: var(--blue); }
.flash-item.warning { border-color: var(--gold); color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   DOWNLOAD
   -------------------------------------------------------------------------- */
.dl-banner {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: visible;
  background: #05060d;
}
.dl-banner-bg {
  position: absolute;
  inset: 0;
  background: #1a1a24 url('/static/img/gameblock-bg.jpg') center/cover no-repeat;
  filter: brightness(0.85) saturate(1.05);
  z-index: 0;
  overflow: hidden;
}
.dl-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,6,13,0.55) 0%, rgba(5,6,13,0.15) 40%, rgba(5,6,13,0.4) 100%);
  z-index: 1;
  pointer-events: none;
  height: 380px;
}
.dl-banner-logo { display: none !important; }

.dl-banner-title {
  position: absolute;
  bottom: 0;
  left: calc((100% - 1200px) / 2 + 40px);
  z-index: 3;
  background: rgba(8,8,12,0.92);
  padding: 30px 60px;
  min-width: 420px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.dl-banner-title h1 {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}
.dl-banner-character {
  position: absolute;
  bottom: -180px;
  right: 120px;
  z-index: 2;
  pointer-events: none;
}
.dl-banner-character img {
  max-height: 720px;
  max-width: 620px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(0 20px 60px rgba(0,0,0,0.9))
    drop-shadow(0 0 40px rgba(180,60,60,0.25));
}

.dl-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 70px;
  position: relative;
  z-index: 5;
}
.dl-section { width: 100%; }
.dl-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 30px;
}
.dl-section-title::before {
  content: '';
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  flex-shrink: 0;
}
.dl-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.dl-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dl-options-left,
.dl-options-right {
  background: rgba(12,12,16,0.9);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
}
.dl-options-size {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}
.dl-options-size strong {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-left: 6px;
}
.dl-options-icons {
  display: flex;
  gap: 14px;
  align-items: stretch;
  justify-content: center;
}
.dl-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  background: rgba(20,20,26,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 120px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all .25s;
}
.dl-icon-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.dl-icon-fallback {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
}
.dl-icon-link:hover {
  color: #fff;
  border-color: rgba(200,160,74,0.3);
  background: rgba(30,30,38,0.9);
}
.dl-options-right h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.dl-options-right p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 30px;
  max-width: 400px;
}
.dl-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 60px;
  background: linear-gradient(180deg, #7ac935 0%, #4a8a1a 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  box-shadow:
    0 0 40px rgba(120,200,50,0.55),
    0 0 80px rgba(120,200,50,0.25),
    inset 0 1px 0 rgba(255,255,255,0.35);
  transition: all .28s ease;
  text-decoration: none;
}
.dl-btn-download:hover {
  filter: brightness(1.15);
  color: #fff;
  box-shadow:
    0 0 60px rgba(140,220,60,0.85),
    0 0 120px rgba(140,220,60,0.4),
    inset 0 1px 0 rgba(255,255,255,0.45);
  transform: translateY(-2px);
}
.dl-table-wrap {
  width: 100%;
  background: rgba(12,12,16,0.6);
  border: 1px solid rgba(255,255,255,0.04);
}
.dl-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.dl-table thead {
  background: rgba(28,28,34,0.95);
}
.dl-table thead th {
  padding: 22px 28px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dl-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background .25s;
}
.dl-table tbody tr:last-child { border-bottom: none; }
.dl-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.dl-table td {
  padding: 22px 28px;
  font-size: 14px;
  color: var(--text);
  vertical-align: middle;
}
.dl-table td:first-child {
  color: #b8b8c0;
}
.dl-table a {
  color: #d4a24c;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .25s;
}
.dl-table a:hover { color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   PAINEL / ADMIN / SHOP
   -------------------------------------------------------------------------- */
.cabinet-container, .panel-layout {
  width: 100%;
  max-width: 1260px;
  margin: 36px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  box-sizing: border-box;
  font-family: var(--font-body);
}
.cabinet-sidebar, .panel-sidebar {
  width: 290px;
  min-width: 290px;
  max-width: 290px;
  position: sticky;
  top: 116px;
  z-index: 20;
  box-sizing: border-box;
}
.cabinet__content {
  width: 100%;
  min-width: 0;
  min-height: 400px;
  box-sizing: border-box;
}
.card-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .card-grid-2col {
    grid-template-columns: 1fr;
  }
}
.cabinet-nav, .panel-nav {
  background: rgba(15,15,22,0.85);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  list-style: none;
}
.cabinet__user-profile {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cabinet__user-avatar {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-radius: 50%;
  font-size: 20px; color: #fff;
}
.cabinet__user-info h3 { font-size: 15px; margin: 0; color: var(--gold-bright); letter-spacing: 1px; }
.cabinet__user-status { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.cabinet-nav__list { display: flex; flex-direction: column; gap: 4px; }
.cabinet-nav__item, .panel-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.cabinet-nav__item:hover, .panel-nav li a:hover {
  background: rgba(200, 160, 74, 0.12);
  color: #ffffff;
  border-color: rgba(200, 160, 74, 0.35);
  transform: translateX(3px);
}
.cabinet-nav__item.active, .cabinet-nav__item--active,
.panel-nav li a.active {
  background: linear-gradient(90deg, rgba(200, 160, 74, 0.22) 0%, rgba(200, 160, 74, 0.06) 100%);
  color: #ffffff;
  border-color: rgba(200, 160, 74, 0.55);
  box-shadow: inset 3px 0 0 #f5d98a, 0 4px 15px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}
.cabinet-nav__item i, .panel-nav li a i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: var(--gold);
  transition: transform .2s ease, color .2s ease;
  flex-shrink: 0;
}
.cabinet-nav__item:hover i, .cabinet-nav__item.active i {
  color: var(--gold-bright);
  transform: scale(1.1);
}
.cabinet-tab-panel {
  display: none;
  animation: cabinetFadeIn .22s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-margin-top: 130px;
}
.cabinet-tab-panel.active {
  display: block;
}
.cabinet__section, [id^="section-"] {
  scroll-margin-top: 130px;
}
@keyframes cabinetFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.characters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.character-card {
  padding: 20px;
  background: rgba(15,15,22,0.85);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  transition: all .25s;
}
.character-card:hover { border-color: var(--gold); box-shadow: 0 0 30px rgba(200,160,74,0.15); }
.character-avatar { display: flex; justify-content: center; margin-bottom: 12px; }
.character-info h4 { font-family: var(--font-title); font-size: 16px; color: #fff; margin-bottom: 4px; letter-spacing: 1px; }
.character-class { font-size: 12px; color: var(--gold); letter-spacing: 1px; margin-bottom: 4px; }
.character-level { font-size: 12px; color: var(--text-dim); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.shop-item, .shop-item-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 14px;
  background: rgba(15,15,22,0.85);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all .25s;
  text-align: center;
}
.shop-item:hover, .shop-item-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(200,160,74,0.15);
  transform: translateY(-4px);
}
.shop-item-icon, .shop-item-img {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  color: var(--gold);
}
.shop-item-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-item-title, .shop-item-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.shop-item-price {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */
@media (max-width: 1600px) {
  .hero-cta { left: 8%; }
  .hero-register-box { right: 8%; }
}
@media (max-width: 1400px) {
  .header-inner { padding: 0 30px; }
  .header-right { right: 30px; }
  .hero-cta { left: 6%; width: 350px; }
  .hero-register-box { right: 6%; width: 350px; }
}
@media (max-width: 1280px) {
  .hero-cta { left: 4%; width: 330px; }
  .hero-cta .class-info .headline { font-size: 28px; }
  .hero-register-box { right: 4%; width: 330px; padding: 26px 22px; }
  .dl-banner-title { left: 40px; }
}
@media (max-width: 1200px) {
  .header-inner { padding: 0 24px; }
  .header-right { right: 24px; }
  .header-center { gap: 24px; }
  nav.main-nav { gap: 24px; }
  nav.main-nav a { font-size: 14px; }
  .logo img { height: 62px; }
  header { height: 92px; }
  .hero { padding-top: 92px; }
  .spark-1 { width: 180px; height: 280px; }
  .spark-2 { width: 150px; height: 230px; }
  .spark-3 { width: 210px; height: 330px; }
  .spark-4 { width: 200px; height: 300px; }
  .section-divider img { height: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 1024px) {
  .header-inner { padding: 0 20px; }
  .header-right { right: 20px; }
  nav.main-nav { display: none; }
  .header-center { gap: 0; }
  header { height: 84px; }
  .hero { padding-top: 84px; }
  .logo img { height: 56px; }
  .section-divider img { height: 44px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cabinet-container, .panel-layout { grid-template-columns: 1fr; }
  .cabinet-sidebar, .panel-sidebar { position: static; }
  .site-main { padding-top: 100px; }

  .hero { min-height: 1200px; height: auto; padding-bottom: 60px; }
  .character-stage { position: relative; height: 500px; }
  .character { height: 100%; left: 50%; }

  .hero-cta {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%;
    max-width: 440px;
    margin: 30px auto 20px;
    align-items: center;
    text-align: center;
  }
  .hero-cta .class-info { text-align: center; }
  .hero-cta .class-info .headline { font-size: 28px; max-width: none; }

  .hero-register-box {
    position: relative;
    top: auto; right: auto;
    transform: none;
    width: 100%;
    max-width: 440px;
    margin: 20px auto 30px;
  }
}
@media (max-width: 1100px) {
  .hero { padding: 84px 0 40px; }
}
@media (max-width: 700px) {
  .header-inner { padding: 0 12px; }
  .header-right { right: 12px; }
  header { height: 76px; }
  .hero { padding-top: 76px; }
  .logo img { height: 44px; }
  .footer-brand .logo img { height: 42px; }
  .btn-login, .btn-register { padding: 7px 12px; font-size: 10px; letter-spacing: 1px; }
  .header-right { gap: 6px; }
  .class-info .headline { font-size: 22px; letter-spacing: 2px; }
  .social-rail { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  footer { padding: 36px 22px 18px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sparks { display: none; }
  .section-divider img { height: 34px; }
  .hand-flames { --flame-size: 160px; }
  .site-main { padding-top: 90px; }
  .character-stage { height: 340px; }
  .hero-register-box { padding: 24px 20px; }
  .hero-register-box h2 { font-size: 18px; letter-spacing: 3px; }
  .hero-cta .class-info .headline { font-size: 24px; }
  .dl-banner { height: 240px; margin-bottom: 20px; }
  .dl-banner::after { height: 240px; }
  .dl-banner-title {
    padding: 18px 24px;
    min-width: auto;
    left: 0; right: 0;
    width: 100%;
  }
  .dl-banner-title h1 { font-size: 20px; letter-spacing: 2px; }
  .dl-banner-character { display: none; }
  .dl-options { grid-template-columns: 1fr; }
  .dl-options-left,
  .dl-options-right { padding: 32px 22px; min-height: auto; }
  .dl-btn-download { padding: 14px 34px; font-size: 13px; letter-spacing: 2px; }
  .dl-table thead th,
  .dl-table td { padding: 14px 16px; font-size: 13px; }
  .dl-wrap { padding: 40px 16px 60px; }
}
/* --------------------------------------------------------------------------
   DECORAÇÃO DO CARD DE RANKING — imagem no topo centralizado
   -------------------------------------------------------------------------- */
.rank-card {
  position: relative;
  padding: 0;
  overflow: visible !important;   /* garante que a imagem não seja cortada */
}

/* Imagem decorativa centralizada na extremidade superior */
.rank-card {
  position: relative;
  padding: 0;
  overflow: visible !important;
  margin-top: 0;                /* garante que não tem margem sobrando */
  /* Impede que o ::before nativo do .card interfira */
  isolation: isolate;
}

/* Neutraliza o ::before original do .card (aquela linha dourada) */
.rank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -15%);   /* sobe metade pra fora */
  width: 100%;
  max-width: 720px;                    /* largura da imagem decorativa */
  height: auto;
  aspect-ratio: 1920 / 90;             /* AJUSTE conforme a imagem real */
  background-image: url('/static/img/slider-bottom-img.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(200,160,74,0.5));
  /* Reseta qualquer herança indesejada */
  border: 0;
  box-shadow: none;
}

.rank-card .rank-tabs {
  margin: 36px 16px 0;          /* espaço pro topo, abaixo da imagem */
  position: relative;
  z-index: 2;
}

.rank-card .rank-table {
  position: relative;
  z-index: 1;
}
/* --------------------------------------------------------------------------
   FORMULÁRIO DE CADASTRO — imagem decorativa centralizada no topo
   -------------------------------------------------------------------------- */
.hero-register-box {
  overflow: visible !important;   /* permite que a imagem saia do box */
}

.hero-register-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -35%);
  width: 700px;                     /* ← LARGURA FIXA em px, ignora o pai */
  height: auto;
  aspect-ratio: 1920 / 100;
  background-image: url('/static/img/slider-top-img.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(200,160,74,0.5));
  border: 0;
  box-shadow: none;
}
/* --------------------------------------------------------------------------
   BANNER DA PÁGINA /download — banner-yuan.webp
   -------------------------------------------------------------------------- */
.dl-banner-bg.dl-banner-bg--yuan {
  background: #05060d url('/static/img/banner-yuan.webp') center/cover no-repeat !important;
  filter: brightness(0.9) saturate(1.05);
}
/* --------------------------------------------------------------------------
   PERSONAGEM PRINCIPAL DA PÁGINA /download
   Fica atrás do card direito (.dl-options-right) e sobrepõe o banner
   -------------------------------------------------------------------------- */
.dl-banner {
  overflow: visible;                 /* permite o personagem sair do banner */
}

.dl-banner-character--main {
  position: absolute;
  bottom: -150px;                    /* desce o personagem pra fora do banner */
  right: 150px;                       /* posição horizontal */
  z-index: 5;                        /* ATRÁS do conteúdo principal */
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dl-banner-character--main img {
  display: block;
  max-height: 1080px;                 /* ajuste conforme o tamanho real da imagem */
  max-width: 1080px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(0 20px 60px rgba(0,0,0,0.9))
    drop-shadow(0 0 40px rgba(180,60,60,0.25));
}

/* --------------------------------------------------------------------------
   CARD DIREITO — fica na frente do personagem
   -------------------------------------------------------------------------- */
.dl-options-right {
  position: relative;
  z-index: 5;                        /* garante que fica ACIMA do personagem */
  background: rgba(12,12,16,0.92);   /* fundo semitransparente para dar contraste */
}
/* --------------------------------------------------------------------------
   PARTÍCULAS ANIMADAS — lateral direita do banner /download
   Aplicadas APENAS sobre o banner (overflow: hidden)
   -------------------------------------------------------------------------- */
.dl-sparks {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 40%;                        /* ocupa só a lateral direita */
  z-index: 2;                        /* acima do bg, abaixo do conteúdo */
  pointer-events: none;
  overflow: hidden;                  /* NÃO deixa sair do banner */
}

.dl-spark {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: screen;            /* efeito de luz */
  opacity: 0;
  pointer-events: none;
}

/* --- Spark 1 (esquerda do bloco, sobe mais) --- */
.dl-spark-1 {
  width: 120px;
  height: 200px;
  left: 5%;
  bottom: 10%;
  background-image: url('/static/img/spark_1.png');
  animation: dlSparkFloatA 5s ease-in-out infinite;
}

/* --- Spark 2 (centro, sobe médio) --- */
.dl-spark-2 {
  width: 100px;
  height: 160px;
  left: 35%;
  bottom: 25%;
  background-image: url('/static/img/spark_2.png');
  animation: dlSparkFloatB 6s ease-in-out infinite;
  animation-delay: 0.8s;
}

/* --- Spark 3 (direita, sobe mais) --- */
.dl-spark-3 {
  width: 140px;
  height: 220px;
  left: 65%;
  bottom: 5%;
  background-image: url('/static/img/spark_3.png');
  animation: dlSparkFloatC 7s ease-in-out infinite;
  animation-delay: 0.4s;
}

/* --- Spark 4 (centro-direita, ciclo diferente) --- */
.dl-spark-4 {
  width: 130px;
  height: 200px;
  left: 50%;
  bottom: 15%;
  background-image: url('/static/img/spark_4.png');
  animation: dlSparkFloatD 6.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* --- Animações (subida + oscilação) --- */
@keyframes dlSparkFloatA {
  0%   { opacity: 0;    transform: translate(0, 30px) scale(0.85) rotate(-2deg); }
  20%  { opacity: 0.9;  }
  50%  { opacity: 0.7;  transform: translate(15px, -30px) scale(1.05) rotate(3deg); }
  80%  { opacity: 0.85; }
  100% { opacity: 0;    transform: translate(0, -60px) scale(0.9) rotate(-1deg); }
}

@keyframes dlSparkFloatB {
  0%   { opacity: 0;    transform: translate(0, 20px) scale(0.9) rotate(2deg); }
  25%  { opacity: 0.85; }
  50%  { opacity: 0.6;  transform: translate(-20px, -40px) scale(1.1) rotate(-4deg); }
  75%  { opacity: 0.8;  }
  100% { opacity: 0;    transform: translate(0, -80px) scale(0.95) rotate(1deg); }
}

@keyframes dlSparkFloatC {
  0%   { opacity: 0;    transform: translate(0, 40px) scale(0.8) rotate(0deg); }
  30%  { opacity: 1;    }
  55%  { opacity: 0.75; transform: translate(25px, -50px) scale(1.15) rotate(5deg); }
  80%  { opacity: 0.9;  }
  100% { opacity: 0;    transform: translate(0, -90px) scale(0.85) rotate(-2deg); }
}

@keyframes dlSparkFloatD {
  0%   { opacity: 0;    transform: translate(0, 25px) scale(0.9) rotate(-3deg); }
  20%  { opacity: 0.9;  }
  50%  { opacity: 0.55; transform: translate(-15px, -35px) scale(1.05) rotate(4deg); }
  80%  { opacity: 0.85; }
  100% { opacity: 0;    transform: translate(0, -70px) scale(0.9) rotate(1deg); }
}
/* --------------------------------------------------------------------------
   SEÇÕES COM FUNDO PERSONALIZADO (bg_home.JPG) — 2ª e 3ª seções da home
   -------------------------------------------------------------------------- */
.bg-home-section {
  position: relative;
  background: #0a0a0c url('/static/img/bg_home.JPG') center center / cover no-repeat;
  background-attachment: scroll;
}

/* Camada escura sobre o fundo para o texto continuar legível */
.bg-home-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,12,0.75) 50%,
    rgba(10,10,12,0.55) 50%,
    rgba(10,10,12,0.75) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Garante que o conteúdo fica ACIMA da camada escura */
.bg-home-section > * {
  position: relative;
  z-index: 1;
}
/* --------------------------------------------------------------------------
   PÁGINA DE LOGIN — fundo personalizado (bg_login)
   -------------------------------------------------------------------------- */
.auth-section {
  position: relative;
  background: #0a0a0c url('/static/img/bg_login.jpg') center center / cover no-repeat;
  background-attachment: fixed;      /* efeito parallax */
}

/* Camada escura para o texto ficar legível sobre o fundo */
.auth-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,12,0.65) 0%,
    rgba(10,10,12,0.45) 50%,
    rgba(10,10,12,0.65) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Garante que o conteúdo (formulário + imagem) fica ACIMA da camada escura */
.auth-section > * {
  position: relative;
  z-index: 1;
}
/* --------------------------------------------------------------------------
   BANNER DA PÁGINA /login — bg_login.jpg
   -------------------------------------------------------------------------- */
.dl-banner-bg.dl-banner-bg--login {
  background: #05060d url('/static/img/bg_login.jpg') center/cover no-repeat !important;
  filter: brightness(0.9) saturate(1.05);
}

/* Personagem do banner de login */
.dl-banner-character--login {
  position: absolute;
  bottom: -200px;
  right: -90px;
  z-index: 2;
  pointer-events: none;
}
.dl-banner-character--login img {
  max-height: 650px;
  max-width: 1920px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(0 20px 60px rgba(0,0,0,0.9))
    drop-shadow(0 0 40px rgba(180,60,60,0.25));
}

/* --------------------------------------------------------------------------
   PAINEL DE LOGIN — 2 colunas (form + info)
   -------------------------------------------------------------------------- */
.dl-wrap--login {
  padding-top: 60px;
}

.login-panel {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

/* Formulário de Login */
.login-box {
  background: linear-gradient(160deg, rgba(20,20,28,0.95), rgba(10,10,16,0.98));
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(200,160,74,0.08);
  position: relative;
}
.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.login-box h2 {
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--gold-bright);
  text-align: center;
  text-shadow: 0 0 20px rgba(200,160,74,0.4);
  margin-bottom: 24px;
}
.login-box .form { gap: 16px; }
.login-box .form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.login-box .form input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.login-box .form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,160,74,0.12);
}
.login-box .form button {
  width: 100%;
  margin-top: 8px;
  padding: 13px 20px;
  font-size: 13px;
  letter-spacing: 3px;
}
.login-box .check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  cursor: pointer;
}
.login-box .muted {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

/* Painel informativo */
.login-info {
  background: rgba(12,12,16,0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 32px 28px;
  height: 100%;
}
.login-info h3 {
  font-family: var(--font-title);
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.login-info > p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.login-info-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.login-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 4px;
  transition: all .25s;
}
.login-info-item:hover {
  border-color: var(--border-gold);
  background: rgba(200,160,74,0.05);
}
/* Ícones das features do painel de login (imagens) */
.login-info-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(200,160,74,0.3));
  transition: transform .25s ease;
}
.login-info-item:hover .login-info-img {
  transform: scale(1.1);
}
}
.login-info-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}
.login-info-item p {
  color: var(--text-dim);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

/* Responsivo */
@media (max-width: 900px) {
  .login-panel {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .login-info {
    order: 2;
  }
}
@media (max-width: 700px) {
  .dl-wrap--login {
    padding: 40px 16px 60px;
  }
  .login-box { padding: 24px 20px; }
  .login-info { padding: 24px 20px; }
}
/* --------------------------------------------------------------------------
   SEÇÃO DE ESTATÍSTICAS — fundo personalizado (area-info-bg.jpg)
   -------------------------------------------------------------------------- */
.bg-stats-section {
  position: relative;
  background: #0a0a0c url('/static/img/area-info-bg.jpg') center center / cover no-repeat;
  background-attachment: scroll;
}

/* Camada escura sobre o fundo para o texto continuar legível */
.bg-stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,12,0.75) 0%,
    rgba(10,10,12,0.55) 50%,
    rgba(10,10,12,0.75) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Garante que o conteúdo fica ACIMA da camada escura */
.bg-stats-section > * {
  position: relative;
  z-index: 1;
}
/* =========================================================
   Correção: padronização dos ícones do painel de login
   Todos os ícones ficam na MESMA proporção visual
   ========================================================= */
.login-info-features .login-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Caixa quadrada fixa — todos os ícones ficam do mesmo tamanho */
.login-info-features .login-info-icon-box {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(200, 160, 74, 0.08);
  border: 1px solid rgba(200, 160, 74, 0.25);
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
}

/* O ícone se ajusta DENTRO da caixa, mantendo a proporção original */
.login-info-features .login-info-icon-box .login-info-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 !important;
}
/* =========================================================
   Adorno decorativo no topo do formulário de login
   (usa a mesma imagem slider-top-img do card "Criar Conta")
   ========================================================= */
.login-box {
  position: relative;
  padding-top: 44px;        /* espaço para o adorno "sair" pra cima */
  overflow: visible !important;
}

.login-box__ornament {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(200, 160, 74, 0.35));
}

.login-box__ornament img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.login-box > h2:first-of-type {
  margin-top: 6px;
  text-align: center;
}
/* =========================================================
   Adorno decorativo no topo do formulário de login
   (imagem slider-top-img colada na borda superior)
   ========================================================= */
.login-box {
  position: relative;
  padding-top: 44px;
  overflow: visible !important;
}

/* Neutraliza a linha dourada padrão do .login-box::before,
   que fica atrás do adorno e atrapalha o alinhamento visual */
.login-box::before {
  z-index: 1;
}

.login-box__ornament {
  position: absolute;
  top: 3px;                         /* encosta exatamente na borda superior */
  left: 50%;
  transform: translate(-50%, -50%); /* centraliza E sobe metade pra fora */
  width: 92%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 20;                    /* acima da linha dourada */
  filter: drop-shadow(0 4px 10px rgba(200, 160, 74, 0.35));
}

.login-box__ornament img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  margin: 0;
}

.login-box > h2:first-of-type {
  margin-top: 6px;
  text-align: center;
}
/* =========================================================
   ARMA MEMORIAL — usa o MESMO .rank-card do Top Guerreiros.
   Só adiciona "respiro" no topo (por não ter tabs) e o ícone+ray.
   ========================================================= */

/* Dá o mesmo "respiro" que o .rank-card tem por causa das tabs */
.memorial-card-table {
  padding-top: 30px !important;
}

/* Wrapper do ícone com ray atrás */
.memorial-icon-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Ray girando + pulsando ao fundo */
.memorial-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  filter:
    drop-shadow(0 0 10px rgba(200,160,74,0.9))
    drop-shadow(0 0 20px rgba(200,160,74,0.5));
  transform-origin: center center;
  animation:
    memorialRaySpin 18s linear infinite,
    memorialRayPulse 3s ease-in-out infinite;
}

@keyframes memorialRaySpin {
  from { transform: translate(-50%, -50%) rotate(0deg)   scale(var(--ray-scale, 1)); }
  to   { transform: translate(-50%, -50%) rotate(360deg) scale(var(--ray-scale, 1)); }
}

@keyframes memorialRayPulse {
  0%, 100% {
    --ray-scale: 1;
    opacity: 0.75;
    filter:
      drop-shadow(0 0 8px rgba(200,160,74,0.7))
      drop-shadow(0 0 16px rgba(200,160,74,0.35));
  }
  50% {
    --ray-scale: 1.15;
    opacity: 1;
    filter:
      drop-shadow(0 0 16px rgba(200,160,74,1))
      drop-shadow(0 0 32px rgba(200,160,74,0.6));
  }
}

/* Ícone (online-img.png) — tamanho de ícone de classe */
.memorial-icon {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(200,160,74,0.8));
}

/* Ícone de classe dentro da pill */
.memorial-class-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}
/* =========================================================
   Ícones de rank — 1º, 2º e 3º lugar (substituem o badge)
   ========================================================= */
.rank-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(200,160,74,0.6))
    drop-shadow(0 2px 4px rgba(0,0,0,0.8));
  transition: transform .25s ease, filter .25s ease;
}

tr:hover .rank-icon {
  transform: scale(1.08);
  filter:
    drop-shadow(0 0 12px rgba(200,160,74,0.9))
    drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}
/* =========================================================
   BG personalizado — Painel de Doações
   ========================================================= */
.panel-bg-cash {
  position: relative;
  background: transparent;
  width: 100%;
  min-height: auto;
}

/* Container dos sparks (não bloqueia cliques) */
.panel-bg-cash .sparks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Cada spark */
.panel-bg-cash .spark {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Spark 1 — canto superior esquerdo */
.panel-bg-cash .spark-1 {
  width: 500px;
  height: 500px;
  top: -8%;
  left: -6%;
  background-image: url('/static/img/spark_1.png');
  animation: sparkFloatA 6s ease-in-out infinite;
}

/* Spark 2 — canto inferior direito */
.panel-bg-cash .spark-2 {
  width: 450px;
  height: 450px;
  bottom: -10%;
  right: -6%;
  background-image: url('/static/img/spark_2.png');
  animation: sparkFloatB 7s ease-in-out infinite;
  animation-delay: 1s;
}

/* Spark 3 — canto superior direito */
.panel-bg-cash .spark-3 {
  width: 550px;
  height: 550px;
  top: -12%;
  right: -8%;
  background-image: url('/static/img/spark_3.png');
  animation: sparkFloatC 8s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Spark 4 — canto inferior esquerdo */
.panel-bg-cash .spark-4 {
  width: 480px;
  height: 480px;
  bottom: -8%;
  left: -6%;
  background-image: url('/static/img/spark_4.png');
  animation: sparkFloatD 6.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Animações — flutuação + pulsação de opacidade */
@keyframes sparkFloatA {
  0%   { opacity: 0;    transform: translate(0, 20px)  scale(0.9)  rotate(-2deg); }
  25%  { opacity: 0.85; }
  50%  { opacity: 0.6;  transform: translate(15px, -20px) scale(1.05) rotate(3deg); }
  75%  { opacity: 0.9;  }
  100% { opacity: 0;    transform: translate(0, -40px)  scale(0.95) rotate(-1deg); }
}

@keyframes sparkFloatB {
  0%   { opacity: 0;    transform: translate(0, 15px)  scale(0.95) rotate(2deg); }
  25%  { opacity: 0.8;  }
  50%  { opacity: 0.5;  transform: translate(-20px, -30px) scale(1.1) rotate(-3deg); }
  75%  { opacity: 0.85; }
  100% { opacity: 0;    transform: translate(0, -55px)  scale(0.9)  rotate(1deg); }
}

@keyframes sparkFloatC {
  0%   { opacity: 0;    transform: translate(0, 25px)  scale(0.85) rotate(0deg); }
  30%  { opacity: 0.9;  }
  55%  { opacity: 0.65; transform: translate(20px, -35px) scale(1.08) rotate(4deg); }
  80%  { opacity: 0.85; }
  100% { opacity: 0;    transform: translate(0, -50px)  scale(0.95) rotate(-2deg); }
}

@keyframes sparkFloatD {
  0%   { opacity: 0;    transform: translate(0, 18px)  scale(0.9)  rotate(-3deg); }
  20%  { opacity: 0.85; }
  50%  { opacity: 0.55; transform: translate(-15px, -25px) scale(1.05) rotate(3deg); }
  80%  { opacity: 0.9;  }
  100% { opacity: 0;    transform: translate(0, -45px)  scale(0.92) rotate(1deg); }
}

/* O conteúdo fica ACIMA dos sparks */
.panel-bg-cash > .cabinet-container {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   MODAL / MENU FLUTUANTE DE LOGIN NA PÁGINA PRINCIPAL
   ========================================================================== */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #131722 0%, #0b0d14 100%);
  border: 1px solid rgba(200, 160, 74, 0.4);
  border-radius: 14px;
  padding: 34px 30px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(200, 160, 74, 0.2);
  box-sizing: border-box;
  transform: scale(0.92) translateY(-14px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modal-overlay.active .login-modal-dialog {
  transform: scale(1) translateY(0);
}

.login-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9CA3AF;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.login-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #F87171;
  transform: rotate(90deg);
}

.login-modal-ornament {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 16px;
  pointer-events: none;
}
.login-modal-ornament img {
  width: 100%;
  height: auto;
  display: block;
}

.login-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 160, 74, 0.25) 0%, rgba(10, 12, 18, 0.9) 70%);
  border: 2px solid #F5D98A;
  box-shadow: 0 0 18px rgba(200, 160, 74, 0.4);
  color: #F5D98A;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.login-modal-title {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.login-modal-subtitle {
  font-size: 13px;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.4;
}

.login-modal-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.login-input-group {
  margin-bottom: 16px;
  text-align: left;
}

.login-input-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #D1D5DB;
  margin-bottom: 6px;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: #F5D98A;
  font-size: 15px;
  pointer-events: none;
}

.login-input-wrapper input {
  width: 100%;
  padding: 11px 42px 11px 40px;
  background: rgba(5, 7, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.login-input-wrapper input:focus {
  border-color: #F5D98A;
  background: rgba(10, 14, 22, 0.95);
  box-shadow: 0 0 0 3px rgba(200, 160, 74, 0.25);
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.btn-toggle-pwd:hover {
  color: #FFFFFF;
}

.login-modal-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 20px;
  font-size: 13px;
}

.login-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9CA3AF;
  cursor: pointer;
  user-select: none;
}

.login-remember-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #F5D98A;
  cursor: pointer;
}

.login-forgot-link {
  color: #F5D98A;
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.login-forgot-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.login-btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #E6C260 0%, #A87920 100%);
  color: #0B0E14;
  box-shadow: 0 4px 15px rgba(200, 160, 74, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn-submit:hover {
  background: linear-gradient(135deg, #F5D98A 0%, #C89930 100%);
  color: #000;
  box-shadow: 0 6px 20px rgba(200, 160, 74, 0.5);
  transform: translateY(-1px);
}

.login-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-modal-footer {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #9CA3AF;
}

.login-modal-footer a {
  color: #F5D98A;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.login-modal-footer a:hover {
  text-decoration: underline;
  color: #FFFFFF;
}