:root {
  /* Fundo */
  --bg-1: #080412;
  --bg-2: #120824;
  --bg-3: #1f0d3d;
  --bg-4: #2c1060;

  /* Roxos principais */
  --primary: #9333ea;
  --primary-2: #7e22ce;
  --primary-3: #5b21b6;
  --primary-soft: #c084fc;

  /* Dourados */
  --accent: #f5c542;
  --accent-2: #e0ac1c;
  --accent-soft: #ffe08a;

  /* Texto */
  --text: #f8f7ff;
  --muted: #cfc8e8;
  --muted-2: #a79fc7;

  /* Superfícies */
  --card: rgba(17, 10, 34, 0.78);
  --card-2: rgba(30, 14, 58, 0.88);
  --card-border: rgba(245, 197, 66, 0.26);

  /* Sombras */
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.62);

  /* Extras */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(147, 51, 234, 0.35), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(245, 197, 66, 0.08), transparent 18%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 30%, var(--bg-3) 65%, var(--bg-4) 100%);
  position: relative;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.bg-magic {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(245, 197, 66, 0.22) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 110px 110px, 72px 72px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* HERO */
.hero {
  padding: 90px 20px 50px;
  position: relative;
}

.hero-content {
  width: min(940px, 100%);
  margin: 0 auto;
  text-align: center;
}

.tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 18px;
  border: 1px solid rgba(245, 197, 66, 0.34);
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.10);
  color: var(--accent-soft);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 0 18px rgba(245, 197, 66, 0.08);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 1.02;
  margin-bottom: 18px;
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(147, 51, 234, 0.35),
    0 0 28px rgba(245, 197, 66, 0.08);
}

.subtitle {
  width: min(780px, 100%);
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-badges {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-badges span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 197, 66, 0.20);
  font-size: 0.94rem;
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(147, 51, 234, 0.15);
}

/* CARDS DA HOME */
.links-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  padding: 32px 0 74px;
}

.portal-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 165px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.10), rgba(245, 197, 66, 0.04));
  opacity: 1;
  pointer-events: none;
}

.portal-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(245, 197, 66, 0.56);
  box-shadow: var(--shadow-strong);
}

.icon{
min-width:90px;
height:90px;
display:flex;
align-items:center;
justify-content:center;
}

.portal-card h2,
.portal-card p {
  position: relative;
  z-index: 1;
}

.portal-card h2 {
  margin-bottom: 8px;
  font-size: 1.24rem;
  color: #ffffff;
}

.portal-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* RODAPÉ */
.footer {
  padding: 30px 16px 42px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.95rem;
}

/* PÁGINAS INTERNAS */
.page-header {
  padding: 56px 20px 26px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 0 16px rgba(147, 51, 234, 0.25);
}

.page-header p {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

.content-card {
  width: min(1020px, 92%);
  margin: 0 auto 54px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    var(--card-2);
  border: 1px solid rgba(245, 197, 66, 0.22);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 1.32rem;
}

.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.8;
}

.content-card ul {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent-soft);
  font-weight: 700;
}

/* GRIDS */
.turma-grid,
.aluno-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.mini-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 197, 66, 0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.mini-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 197, 66, 0.42);
  box-shadow: 0 14px 34px rgba(0,0,0,0.30);
}

.mini-card h3 {
  margin-bottom: 8px;
  color: #fff;
}

.mini-card p {
  color: var(--muted);
  line-height: 1.65;
}

/* OPCIONAL PARA ÍCONES DE IMAGEM */
.portal-icon{
width:90px;
height:90px;
border-radius:18px;
padding:6px;
box-shadow:
0 0 10px rgba(0,0,0,0.6),
0 0 15px rgba(124,58,237,0.6);
transition:all .25s ease;
}

.portal-card:hover .portal-icon{
transform:scale(1.08);
box-shadow:
0 0 20px rgba(245,197,66,0.9),
0 0 40px rgba(124,58,237,0.7);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .hero {
    padding-top: 68px;
  }

  .links-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-card {
    min-height: auto;
    padding: 20px;
  }

  .content-card {
    padding: 22px;
  }

  .hero-badges {
    gap: 10px;
  }

  .hero-badges span {
    font-size: 0.88rem;
  }
}

.portal-icon{
width:70px;
height:70px;
border-radius:16px;
border:2px solid rgba(255,255,255,0.2);
background:linear-gradient(145deg,#2b0d5c,#1a0838);
padding:8px;
box-shadow:
0 0 10px rgba(0,0,0,0.6),
inset 0 0 10px rgba(255,255,255,0.1);
}

.portal-card:hover .portal-icon{
transform:scale(1.08);
box-shadow:
0 0 15px rgba(245,197,66,0.8),
0 0 30px rgba(124,58,237,0.4);
transition:all .25s ease;
}

/* ===== PERFIL RPG ===== */

/* ===== PERFIL RPG TESTE ÁGATA ===== */

.rpg-profile {
  width: min(1050px, 92%);
  margin: 50px auto 70px;
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(18, 8, 36, 0.92);
  border: 1px solid rgba(245, 197, 66, 0.22);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.rpg-header {
  text-align: center;
  margin-bottom: 28px;
}

.rpg-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 6px;
  color: #fff;
}

.rpg-header span {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.rpg-main {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
}

.rpg-avatar {
  width: 190px;
  height: 190px;
  border-radius: 24px;
  border: 2px solid rgba(245, 197, 66, 0.22);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.30), rgba(245, 197, 66, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.32),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  flex-shrink: 0;
}

.rpg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.avatar-placeholder {
  font-size: 4.5rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.rpg-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nickname-line {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.character-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 720px;
}

.class-chip {
  display: inline-block;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 197, 66, 0.22);
  color: var(--accent);
  font-weight: 700;
}

.rpg-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 197, 66, 0.14);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.stat span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.stat strong {
  font-size: 1.45rem;
  color: #fff;
}

.xp-container {
  margin-bottom: 34px;
}

.xp-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.xp-bar {
  width: 100%;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 197, 66, 0.16);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #9333ea, #f5c542);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.35);
}

.emblems-section {
  margin-bottom: 28px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 1.35rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.badge {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 197, 66, 0.16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.badge strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #fff;
}

.badge p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== AVATAR + RANK ===== */

.rpg-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rank-below {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rank-below img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.rank-below span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(245, 197, 66, 0.6);
}

@media (max-width: 850px) {
  .rpg-main {
    grid-template-columns: 1fr;
  }

  .rpg-avatar {
    margin: 0 auto;
  }

  .rpg-info-panel {
    text-align: center;
    align-items: center;
  }

  .character-description {
    text-align: center;
  }

  .rpg-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245,197,66,0.14);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.stat span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.stat strong {
  font-size: 1.45rem;
  color: #fff;
}

.xp-container {
  margin-bottom: 34px;
}

.xp-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.xp-bar {
  width: 100%;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(245,197,66,0.16);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #9333ea, #f5c542);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.35);
}

.emblems-section {
  margin-bottom: 28px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 1.35rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.badge {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245,197,66,0.16);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.badge strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #fff;
}

.badge p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 850px) {
  .rpg-main {
    grid-template-columns: 1fr;
  }

  .rpg-avatar {
    margin: 0 auto;
  }

  .rpg-info-panel {
    text-align: center;
    align-items: center;
  }

  .character-description {
    text-align: center;
  }

  .rpg-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* ===== AVATAR + RANK ===== */

.rpg-avatar-box{
display:flex;
flex-direction:column;
align-items:center;
gap:10px;
}

.rank-below{
display:flex;
flex-direction:column;
align-items:center;
gap:4px;
}

.rank-below img{
width:60px;
height:60px;
object-fit:contain;
filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.rank-below span{
font-size:0.9rem;
font-weight:700;
color:var(--accent);
text-shadow:0 0 8px rgba(245,197,66,0.6);
}

/* ===== PÁGINA DE RANKS ===== */

.ranks-page {
  width: min(1150px, 92%);
  margin: 50px auto 70px;
}

.ranks-header {
  text-align: center;
  margin-bottom: 34px;
}

.ranks-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 12px;
  color: #fff;
}

.ranks-header p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.rank-card {
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(18, 8, 36, 0.92);
  border: 1px solid rgba(245, 197, 66, 0.18);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 197, 66, 0.38);
}

.rank-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

.rank-card h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.2rem;
}

.rank-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.ranks-footer {
  margin-top: 32px;
  text-align: center;
}

.rank-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.admin-panel-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, #d4af37, #f6df7a);
  color: #2d1b00;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 18px rgba(255, 215, 100, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-panel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 215, 100, 0.35);
}

.hp-container {
  width: 100%;
  max-width: 260px;
  margin: 14px auto 0;
}

.energia-container {
  width: 100%;
  max-width: 220px;
  margin: 14px auto 0;
}

.hp-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffd4d4;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

.energia-label {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #fff;
}

.hp-bar {
  width: 100%;
  height: 14px;
  background: rgba(80, 0, 0, 0.45);
  border: 1px solid rgba(255, 90, 90, 0.55);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.25);
}

.energia-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,215,0,0.25);
}

.hp-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2d2d, #ff5a5a, #ff8585);
  box-shadow:
    0 0 8px rgba(255, 0, 0, 0.45),
    0 0 16px rgba(255, 60, 60, 0.35);
  transition: width 0.4s ease;
}

.energia-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2ec5ff, #7b61ff);
  box-shadow: 0 0 10px rgba(80, 120, 255, 0.45);
  transition: width 0.4s ease;
}

.badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 12px;
}

.badge-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.badge-text strong {
  display: block;
  color: #f8e7a1;
  margin-bottom: 4px;
}

.badge-text p {
  margin: 0;
  color: #ddd4b0;
  font-size: 14px;
}

.auth-card {
  max-width: 620px;
  margin: 40px auto;
}

.auth-card-large {
  max-width: 760px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(25, 10, 45, 0.88);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: 0.25s ease;
}

.auth-form input::placeholder {
  color: rgba(255,255,255,0.65);
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: #ffd54a;
  box-shadow: 0 0 12px rgba(255, 213, 74, 0.28);
}

.auth-form select {
  appearance: none;
}

.magic-btn {
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #ffcc33, #ff9f1a);
  color: #2b1200;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 187, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.magic-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 187, 0, 0.45);
}

.msg-box {
  padding: 12px 14px;
  border-radius: 14px;
  margin-top: 18px;
  font-weight: 600;
}

.msg-error {
  background: rgba(120, 20, 20, 0.9);
  border: 1px solid rgba(255, 90, 90, 0.35);
  color: #fff;
}

.msg-success {
  background: rgba(20, 90, 40, 0.9);
  border: 1px solid rgba(90, 255, 140, 0.35);
  color: #fff;
}

.auth-link-text {
  margin-top: 18px;
  text-align: center;
  color: #f6e7b2;
}

.auth-link-text a {
  color: #ffd54a;
  font-weight: 700;
  text-decoration: none;
}

.auth-link-text a:hover {
  text-decoration: underline;
}

.auth-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(25, 10, 45, 0.88);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  transition: 0.25s ease;
}

.auth-form textarea::placeholder {
  color: rgba(255,255,255,0.65);
}

.auth-form textarea:focus {
  border-color: #ffd54a;
  box-shadow: 0 0 12px rgba(255, 213, 74, 0.28);
}

.profile-extra-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 194, 46, 0.16);
  color: #fff;
}

.profile-extra-box h3 {
  margin-top: 0;
  color: #ffd54a;
}

.section-title {
  margin-top: 28px;
  margin-bottom: 14px;
  color: #ffd54a;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 194, 46, 0.16);
  border-radius: 16px;
  padding: 16px;
}

.badge-text strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.badge-text p {
  color: #f2e8cc;
  margin: 0;
}

.auth-form input[type="file"] {
  padding: 10px;
  border-radius: 12px;
  background: rgba(25, 10, 45, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.25);
  cursor: pointer;
}

.auth-form input[type="file"]::file-selector-button {
  background: linear-gradient(90deg, #ffcc33, #ff9f1a);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: #2b1200;
  font-weight: bold;
  cursor: pointer;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255, 194, 46, 0.16);
  border-radius: 16px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
}

.admin-table th {
  background: rgba(255, 204, 51, 0.12);
  color: #ffd54a;
  font-weight: 700;
}

.admin-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

.mini-admin-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ffcc33, #ff9f1a);
  color: #2b1200;
  font-weight: 700;
  text-decoration: none;
}

.mini-admin-btn:hover {
  opacity: 0.92;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 700px) {
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 194, 46, 0.16);
  color: #fff;
}

.admin-checkbox-item input[type="checkbox"] {
  transform: scale(1.2);
}


.danger-btn {
  background: linear-gradient(90deg, #ff4d4d, #cc0000);
  color: #fff;
}

.danger-btn:hover {
  opacity: 0.9;
}

.mini-admin-btn {
  margin: 2px;
  font-size: 12px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-topbar-left p {
  margin: 0;
  color: #fff;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.acoes-cell {
  min-width: 220px;
  vertical-align: top;
}

.acoes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.mini-admin-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ffcc33, #ff9f1a);
  color: #2b1200;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.mini-admin-btn:hover {
  opacity: 0.92;
}

.danger-btn {
  background: linear-gradient(90deg, #ff4d4d, #cc0000);
  color: #fff;
}

.admin-table td,
.admin-table th {
  vertical-align: middle;
}

.admin-table-wrap {
  overflow-x: auto;
}

@media (max-width: 900px) {
  .acoes-cell {
    min-width: 260px;
  }
}
.rank-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: gold;
    text-decoration: none;
    font-weight: bold;
}

.rank-link:hover {
    text-shadow: 0 0 10px gold;
    transform: scale(1.02);
}

.rank-link img {
    display: block;
}

.rank-below {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.rank-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(40, 22, 70, 0.95), rgba(24, 10, 46, 0.95));
    border: 1px solid rgba(255, 196, 64, 0.35);
    box-shadow:
        0 0 18px rgba(255, 196, 64, 0.12),
        inset 0 0 12px rgba(255, 255, 255, 0.03);
    min-width: 240px;
    justify-content: center;
}

.rank-image-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.rank-image-link:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(255, 215, 90, 0.55));
}

.rank-badge-image {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.rank-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.rank-name-link {
    color: #ffcf4d;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

.rank-name-link:hover {
    color: #ffe38a;
    text-shadow: 0 0 10px rgba(255, 215, 90, 0.55);
}

.rank-card-subtitle {
    font-size: 12px;
    color: #d8c8ff;
    opacity: 0.9;
}

.rank-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.rank-mini-link {
    color: #9fe3ff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

.rank-mini-link:hover {
    color: #d8f5ff;
    text-shadow: 0 0 8px rgba(120, 220, 255, 0.45);
}

.portal-action-row {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.portal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;
    border-radius: 14px;

    width: auto;
    min-width: auto;

    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;

    color: #ffe7a3;
    background: linear-gradient(180deg, rgba(79, 49, 130, 0.95), rgba(60, 35, 105, 0.95));
    border: 1px solid rgba(255, 196, 64, 0.35);

    box-shadow:
        0 0 10px rgba(255, 196, 64, 0.08),
        inset 0 0 10px rgba(255, 255, 255, 0.03);

    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-action-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 100, 0.55);
    box-shadow:
        0 0 16px rgba(255, 196, 64, 0.18),
        inset 0 0 12px rgba(255, 255, 255, 0.04);
}

.portal-action-btn .icon {
    font-size: 0.95rem;
    line-height: 1;
    width: auto;
    min-width: auto;
    height: auto;
    display: inline;
}


.hero-logo {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 18px;

  filter:
    drop-shadow(0 0 10px rgba(255, 215, 100, 0.25))
    drop-shadow(0 0 30px rgba(147, 51, 234, 0.25));
}

.hero-subtitle-strong {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}