/* =========================================
   GameBio — app.css (CONSOLIDADO / SEM DUPLICAÇÕES)
   ========================================= */

/* -----------------------------
   Tokens base
----------------------------- */
:root {
  --bg: #0b0f14;
  --bg2: #070a10;

  --card: #111826;
  --card2: #0f1520;

  --text: #e8eef6;
  --muted: #a9b4c0;

  --glow: #7ee2ff;
  --glow-rgb: 126, 226, 255;

  --border: #1a2433;

  --radius: 18px;
  --btnText: #00121a;

  --shine: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.35);
}

/* -----------------------------
   Reset + Base
----------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu;
  color: var(--text);
  background:
    radial-gradient(
      1200px 700px at 20% 10%,
      rgba(var(--glow-rgb), 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 90% 20%,
      rgba(var(--glow-rgb), 0.06),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg2), var(--bg));
}

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

.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}

/* Container principal */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px;
}

/* Ajuda caso seu layout use main/app/content */
main,
.app,
.content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------
   Topbar
----------------------------- */
.topbar {
  border-bottom: 1px solid rgba(var(--glow-rgb), 0.18);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  filter: drop-shadow(0 0 10px rgba(var(--glow-rgb), 0.35));
}

.nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
}
.nav a:hover {
  color: var(--glow);
}

/* -----------------------------
   Hero
----------------------------- */
.hero {
  padding: 30px 0 10px;
  margin-bottom: 24px;
}

.hero h1,
.pageTitle {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 1px;
  margin: 0 0 10px;
}

.glow {
  color: var(--glow);
  text-shadow: 0 0 18px rgba(var(--glow-rgb), 0.35);
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.heroTop {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.pubBox {
  min-width: 280px;
  max-width: 520px;
}
.pubRow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pubCode {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hint {
  margin-top: 10px;
  color: var(--muted);
}
.hint code {
  background: var(--card);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* -----------------------------
   Botões
----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    var(--glow);
  color: var(--btnText);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(var(--glow-rgb), 0.18);
}

.btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(var(--glow-rgb), 0.26);
}

.btnGhost {
  background: transparent;
  border: 1px solid rgba(var(--glow-rgb), 0.2);
  color: var(--text);
}
.btnGhost:hover {
  border-color: rgba(var(--glow-rgb), 0.55);
  box-shadow: 0 0 20px rgba(var(--glow-rgb), 0.1);
}

.miniBtn {
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}
.miniBtn:hover {
  border-color: rgba(var(--glow-rgb), 0.55);
}

/* -----------------------------
   Alertas
----------------------------- */
.alert {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #2a1b1b;
  border: 1px solid #4b2a2a;
  color: #ffd1d1;
}
.alert.ok {
  background: #13261b;
  border-color: #224a33;
  color: #ccffe2;
}

/* -----------------------------
   Forms
----------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--glow-rgb), 0.14);
  background: var(--card2);
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(var(--glow-rgb), 0.55);
  box-shadow: 0 0 22px rgba(var(--glow-rgb), 0.12);
}

.hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

/* -----------------------------
   Cards + Grid (Dashboard)
----------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
  margin: 24px 0 18px;
}

/* Tablet */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--card);
  border: 1px solid rgba(var(--glow-rgb), 0.12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

/* Hover geral de cards (toque final) */
.card:hover {
  border-color: rgba(120, 200, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.12);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.cardTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.cardHint {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.9;
  text-align: right;
  white-space: nowrap;
}
.cardBody {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cardDivider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 10px 0;
}

.formGrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 900px) {
  .formGrid2 {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   Links (Dashboard e Profile)
----------------------------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.linkBtn {
  padding: 14px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--card2);
  border: 1px solid rgba(var(--glow-rgb), 0.18);
  position: relative;
}

/* tema visível no link */
.linkBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(var(--glow-rgb), 0.12), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.linkBtn:hover {
  border-color: rgba(var(--glow-rgb), 0.55);
  box-shadow: 0 0 22px rgba(var(--glow-rgb), 0.14);
}

.linkRow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.linkBtn {
  flex: 1 1 auto;
}

.linkActions {
  display: flex;
  gap: 6px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  margin-right: 8px;
  opacity: 0.95;
}

/* Drag */
.dragHandle {
  cursor: grab;
  user-select: none;
  opacity: 0.75;
  padding: 0 6px;
}
.draggable.dragging {
  opacity: 0.6;
  transform: scale(0.99);
}

/* -----------------------------
   Avatar / Banner (Dashboard)
----------------------------- */
.mediaRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.mediaBox {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mediaLabel {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.avatarImg {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(var(--glow-rgb), 0.25);
  background: rgba(var(--glow-rgb), 0.08);
}

.bannerImg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--card2);
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--muted);
  opacity: 0.9;
}

/* -----------------------------
   Followers (Dashboard)
----------------------------- */
.followersBox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.followerItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.followerItem:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--glow-rgb), 0.55);
  box-shadow: 0 0 14px rgba(var(--glow-rgb), 0.12);
}

.followerAvatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.followerMeta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.followerMeta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -----------------------------
   Notificações (Dashboard)
----------------------------- */
.notifList {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

/* 6) Itens “unread” (notificação não lida) */
.notifItem.unread {
  border-left: 3px solid rgba(var(--glow-rgb), 0.75);
  padding-left: 10px;
}

/* -----------------------------
   Achievements (Dashboard)
----------------------------- */
.achList {
  display: grid;
  gap: 10px;
}

.achItem {
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.95;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}
.achItem.locked {
  opacity: 0.6;
}
.achItem:hover {
  transform: translateY(-1px);
}

.achTop {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.achIcon {
  width: 36px;
  height: 36px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--glow-rgb), 0.18);
  box-shadow: 0 0 14px rgba(var(--glow-rgb), 0.08);
}

.achMeta strong {
  display: block;
  margin-bottom: 4px;
}

.achBar {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(var(--glow-rgb), 0.1);
  margin-top: 6px;
  overflow: hidden;
}

@keyframes progressGlow {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
  100% {
    filter: brightness(1);
  }
}

.achBarFill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    rgba(var(--glow-rgb), 0.25) 0%,
    rgba(var(--glow-rgb), 0.7) 50%,
    rgba(var(--glow-rgb), 0.3) 100%
  );
  box-shadow: 0 0 14px rgba(var(--glow-rgb), 0.16);
  transition: width 420ms ease;
  animation: progressGlow 2.4s ease-in-out infinite;
}

/* 7) Conquista desbloqueada dá uma “glow line” */
.achItem.unlocked {
  border-color: rgba(var(--glow-rgb), 0.22);
  box-shadow: 0 0 18px rgba(var(--glow-rgb), 0.1);
}

/* -----------------------------
   Scroll padronizado:
   Conquistas + Seguidores + Notifs
----------------------------- */
.achList,
.followersBox {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.achList::-webkit-scrollbar,
.followersBox::-webkit-scrollbar,
.notifList::-webkit-scrollbar {
  width: 6px;
}
.achList::-webkit-scrollbar-thumb,
.followersBox::-webkit-scrollbar-thumb,
.notifList::-webkit-scrollbar-thumb {
  background: rgba(var(--glow-rgb), 0.35);
  border-radius: 6px;
}
.achList::-webkit-scrollbar-thumb:hover,
.followersBox::-webkit-scrollbar-thumb:hover,
.notifList::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--glow-rgb), 0.55);
}
.achList::-webkit-scrollbar-track,
.followersBox::-webkit-scrollbar-track,
.notifList::-webkit-scrollbar-track {
  background: transparent;
}

/* Scrollbar (Firefox) */
.achList,
.followersBox,
.notifList {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--glow-rgb), 0.45) transparent;
}

/* -----------------------------
   Badge
----------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 6px;

  position: relative;
  overflow: hidden;
}

@keyframes badgeShine {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  15% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.35;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.badge::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -60%;
  width: 80%;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 45%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.badge:hover {
  border-color: rgba(var(--glow-rgb), 0.35);
  box-shadow: 0 0 22px rgba(var(--glow-rgb), 0.16);
}

.badge-bronze {
  background: rgba(205, 127, 50, 0.12);
  box-shadow: 0 0 16px rgba(205, 127, 50, 0.1);
}
.badge-silver {
  background: rgba(192, 192, 192, 0.12);
  box-shadow: 0 0 18px rgba(192, 192, 192, 0.12);
}
.badge-gold {
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.14);
}
.badge-platinum {
  background: rgba(229, 228, 226, 0.12);
  box-shadow: 0 0 22px rgba(180, 255, 240, 0.12);
}
.badge-diamond {
  background: rgba(185, 242, 255, 0.12);
  box-shadow: 0 0 24px rgba(var(--glow-rgb), 0.16);
}

/* brilho automático sutil */
.badge-bronze::after,
.badge-silver::after,
.badge-gold::after,
.badge-platinum::after,
.badge-diamond::after {
  animation: badgeShine 3.8s ease-in-out infinite;
}

/* 5) “Pill” (contador de notificações etc) */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-left: 8px;

  background: rgba(var(--glow-rgb), 0.14);
  border: 1px solid rgba(var(--glow-rgb), 0.25);
  color: var(--text);
  box-shadow: 0 0 18px rgba(var(--glow-rgb), 0.12);
}

/* -----------------------------
   Rank
----------------------------- */
.rankFilters {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px;
}
.rankFilters .miniBtn.active {
  border-color: var(--glow);
  box-shadow: 0 0 12px rgba(var(--glow-rgb), 0.18);
}

.rankList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rankItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}

.rankItem:hover {
  border-color: rgba(var(--glow-rgb), 0.55);
  box-shadow: 0 0 18px rgba(var(--glow-rgb), 0.08);
}

.rankPos {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-weight: 800;
}

.rankAvatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.rankMeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rankTrophy {
  margin-left: auto;
  font-size: 20px;
  opacity: 0.95;
}

.rankItem.isMe {
  border-color: var(--glow);
  box-shadow: 0 0 22px rgba(var(--glow-rgb), 0.22);
  background: linear-gradient(
    180deg,
    rgba(var(--glow-rgb), 0.06),
    rgba(0, 0, 0, 0.35)
  );
}

.youTag {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

/* ===== Rank hero com banner ao lado ===== */
.rankHeroTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.rankHeroLeft {
  min-width: 320px;
}

.rankHeroAd {
  width: 728px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 6px;
}

.rankHeroAd .adLabel {
  width: 728px;
  max-width: 100%;
  text-align: center;
  font-size: 11px;
  font-family: sans-serif;
  letter-spacing: 1px;
  color: #8b96a8;
  opacity: 0.7;
  margin-bottom: 6px;
}

.rankHeroAd .adBox {
  width: 728px;
  max-width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.adPlaceholder {
  width: 728px;
  height: 90px;
  max-width: 100%;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6b7c;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.15);
}

/* Responsivo: banner cai pra baixo e centraliza */
@media (max-width: 980px) {
  .rankHeroAd {
    align-items: center;
    width: 100%;
    margin-top: 10px;
  }
  .rankHeroAd .adBox {
    justify-content: center;
    width: 100%;
  }
}

/* -----------------------------
   Perfil público
----------------------------- */
.profile {
  padding: 26px 0;
}

.profileBanner {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--glow-rgb), 0.18);
  background: var(--card2);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.profileBannerShade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
}

.profileHeader {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(var(--glow-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--glow-rgb), 0.3);
}

.avatarPhoto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* avatar maior no profile */
.profileHeader .avatar {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}
.profileHeader .avatarPhoto {
  border-radius: 22px;
}

.profileHeader h1 {
  margin: 0;
  line-height: 1.05;
}
.profileHeader p {
  margin-top: 2px;
}

.bio {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 720px;
}

/* layout topo com stats à direita */
.profileTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profileMeta {
  display: flex;
  flex-direction: column;
}
.tagline {
  margin: 0;
}

.miniMeta {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.profileStats {
  min-width: 220px;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  padding-top: 8px;
}
.profileStats .statLine {
  margin: 2px 0;
}

.btnFollow {
  padding: 10px 14px;
  border-radius: 14px;
}

@media (max-width: 860px) {
  .profileTop {
    flex-direction: column;
    align-items: flex-start;
  }
  .profileStats {
    text-align: left;
    min-width: auto;
  }
}

/* -----------------------------
   Footer
----------------------------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding: 18px 0;
  color: var(--muted);
}

footer .container,
.footer .container,
.siteFooter .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footerNav {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.footerNav a {
  color: var(--muted);
}
.footerNav a:hover {
  color: var(--glow);
}

/* -----------------------------
   THEMES
----------------------------- */
body.theme-neon {
  --bg: #0b0f14;
  --bg2: #05070c;
  --card: #111826;
  --card2: #0f1520;
  --border: #1a2433;

  --glow: #7ee2ff;
  --glow-rgb: 126, 226, 255;

  --btnText: #00121a;
}
body.theme-neon .glow {
  text-shadow: 0 0 22px rgba(var(--glow-rgb), 0.42);
}

body.theme-pixel {
  --bg: #0d0b10;
  --bg2: #07050a;
  --card: #141022;
  --card2: #100c1c;
  --border: #241a3a;

  --glow: #ffd36a;
  --glow-rgb: 255, 211, 106;

  --btnText: #231600;

  font-family:
    "Press Start 2P",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu;
  letter-spacing: 0.2px;
}

/* reduzir um pouco tamanhos pra fonte pixel não estourar */
body.theme-pixel .hero h1 {
  font-size: 34px;
}
body.theme-pixel .nav {
  font-size: 12px;
}
body.theme-pixel .card h3 {
  font-size: 14px;
}
body.theme-pixel .muted,
body.theme-pixel label {
  font-size: 12px;
}

body.theme-pixel .btn,
body.theme-pixel .miniBtn,
body.theme-pixel .linkBtn,
body.theme-pixel input,
body.theme-pixel textarea,
body.theme-pixel select {
  border-radius: 10px;
}

body.theme-pixel .card,
body.theme-pixel .linkBtn,
body.theme-pixel .miniBtn {
  border-color: rgba(var(--glow-rgb), 0.26);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.18);
}

body.theme-pixel h1,
body.theme-pixel h2,
body.theme-pixel h3 {
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

body.theme-cyber {
  --bg: #070814;
  --bg2: #03040c;
  --card: #0f1024;
  --card2: #0b0c1a;
  --border: #22234a;

  --glow: #ff66d9;
  --glow-rgb: 255, 102, 217;

  --btnText: #1a0010;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0
      0 / 100% 7px,
    radial-gradient(
      900px 500px at 80% 15%,
      rgba(120, 80, 255, 0.12),
      transparent 55%
    ),
    radial-gradient(
      1200px 700px at 20% 10%,
      rgba(var(--glow-rgb), 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg2), var(--bg));
}

body.theme-cyber .btn {
  box-shadow:
    0 0 24px rgba(var(--glow-rgb), 0.22),
    0 14px 34px rgba(var(--glow-rgb), 0.18);
}
body.theme-cyber .btn:hover {
  box-shadow:
    0 0 34px rgba(var(--glow-rgb), 0.26),
    0 22px 60px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}
body.theme-cyber .logo {
  filter: drop-shadow(0 0 12px rgba(var(--glow-rgb), 0.3));
}

/* -----------------------------
   Avatar Frame por Rank (seguidores)
----------------------------- */
.avatarFrame {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.avatarFrame .followerAvatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.avatarFrame--bronze {
  background: linear-gradient(
    135deg,
    rgba(205, 127, 50, 0.55),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: 0 0 18px rgba(205, 127, 50, 0.1);
}
.avatarFrame--silver {
  background: linear-gradient(
    135deg,
    rgba(192, 192, 192, 0.55),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: 0 0 18px rgba(192, 192, 192, 0.12);
}
.avatarFrame--gold {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.55),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.12);
}
.avatarFrame--platinum {
  background: linear-gradient(
    135deg,
    rgba(120, 255, 220, 0.5),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: 0 0 18px rgba(120, 255, 220, 0.12);
}
.avatarFrame--diamond {
  background: linear-gradient(
    135deg,
    rgba(126, 226, 255, 0.6),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: 0 0 18px rgba(126, 226, 255, 0.14);
}

/* -----------------------------
   Loader Gamer
----------------------------- */
.btn.isLoading {
  position: relative;
  opacity: 0.95;
  cursor: wait;
}
.btn.isLoading::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: rgba(0, 0, 0, 0.75);
  display: inline-block;
  margin-left: 10px;
  animation: spin 0.8s linear infinite;
  vertical-align: -3px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* -----------------------------
   🏆 Achievement Toast Stack (ÚNICO)
----------------------------- */
.toastStack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 36px));
}

@keyframes gbToastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toastAch {
  display: flex;
  gap: 12px;
  align-items: flex-start;

  padding: 14px;
  border-radius: 16px;

  background: rgba(15, 21, 32, 0.92);
  border: 1px solid rgba(var(--glow-rgb), 0.22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);

  opacity: 0;
  transform: translateY(10px);
  animation: gbToastIn 0.22s ease forwards;
}

.toastAch.hide {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toastAch__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(var(--glow-rgb), 0.1);
  border: 1px solid rgba(var(--glow-rgb), 0.18);
  flex: 0 0 auto;
}

.toastAch__body strong {
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.toastAch__msg {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.toastAch__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.toastAch__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* -----------------------------
   HOME: grid com cards iguais (sem quebrar o resto)
   Use .homeGrid no HTML da home
----------------------------- */
.homeGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.homeGrid .card {
  height: 100%;
}

/* -----------------------------
   A11y: respeitar quem não quer animação
----------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* =========================
   HOME — Grid e Cards
   ========================= */

.homeGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch; /* deixa todos “esticados” */
}

@media (max-width: 1100px) {
  .homeGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .homeGrid {
    grid-template-columns: 1fr;
  }
}

.homeCard {
  padding: 16px;
  min-height: 170px; /* garante consistência */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* bottom sempre embaixo */
  gap: 12px;

  background:
    radial-gradient(
      900px 280px at 10% 0%,
      rgba(var(--glow-rgb), 0.08),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--card);

  border: 1px solid rgba(var(--glow-rgb), 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.homeCardTop {
  display: grid;
  gap: 8px;
}

.homeCardTitle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.homeCardTitle h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.homeCardIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--glow-rgb), 0.1);
  border: 1px solid rgba(var(--glow-rgb), 0.2);
  box-shadow: 0 0 18px rgba(var(--glow-rgb), 0.08);
}

.homeCard p {
  margin: 0;
  line-height: 1.55;
  font-size: 13px;
}

.homeCardBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.homeChip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.homeBtn {
  padding: 10px 14px;
  border-radius: 14px;
  border-color: rgba(var(--glow-rgb), 0.25);
}

/* contador */
.bigCounter {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.homeKicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* lista “como funciona” */
.homeSteps {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.homeSteps li {
  margin: 2px 0;
}

/* card centralizado (contador) */
.homeCard--center {
  text-align: center;
}
.homeCard--center .homeCardBottom {
  justify-content: center;
}

/* hover consistente */
.homeCard:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--glow-rgb), 0.45);
  box-shadow:
    0 16px 60px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(var(--glow-rgb), 0.1);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
/* =========================
   HOME — Cards mais “premium”
   Cole no FINAL do app.css
   ========================= */

.homeGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .homeGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .homeGrid {
    grid-template-columns: 1fr;
  }
}

.homeCard {
  padding: 18px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;

  border-radius: var(--radius);
  position: relative;
  overflow: hidden;

  /* fundo mais “card gamer” */
  background:
    radial-gradient(
      900px 260px at 10% 0%,
      rgba(var(--glow-rgb), 0.1),
      transparent 55%
    ),
    radial-gradient(
      700px 220px at 90% 20%,
      rgba(var(--glow-rgb), 0.05),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--card);

  /* borda melhor */
  border: 1px solid rgba(var(--glow-rgb), 0.14);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}

/* glow line no topo */
.homeCard::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--glow-rgb), 0.55),
    transparent
  );
  opacity: 0.55;
}

/* brilho diagonal ultra sutil */
.homeCard::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
  transform: rotate(8deg);
  opacity: 0.25;
  pointer-events: none;
}

.homeCardTop {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.homeCardBottom {
  position: relative;
  z-index: 1;
}

.homeCardTitle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.homeCardIcon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: rgba(var(--glow-rgb), 0.12);
  border: 1px solid rgba(var(--glow-rgb), 0.24);
  box-shadow:
    0 0 18px rgba(var(--glow-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.homeCardTitle h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.homeCard p {
  margin: 0;
  line-height: 1.6;
  font-size: 13px;
  color: var(--muted);
}

/* bottom alinhado e “bonito” */
.homeCardBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* chip gamer */
.homeChip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;

  background: rgba(var(--glow-rgb), 0.12);
  border: 1px solid rgba(var(--glow-rgb), 0.22);
  color: var(--text);
  box-shadow: 0 0 16px rgba(var(--glow-rgb), 0.08);
}

/* botão no card CTA */
.homeBtn {
  padding: 10px 14px;
  border-radius: 14px;
  border-color: rgba(var(--glow-rgb), 0.28);
}

/* contador mais “impactante” */
.bigCounter {
  font-size: 46px;
  font-weight: 1000;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 18px rgba(var(--glow-rgb), 0.12);
}

.homeKicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* lista “como funciona” */
.homeSteps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.homeSteps li {
  margin: 3px 0;
}

/* card centralizado (contador) */
.homeCard--center {
  text-align: center;
}
.homeCard--center .homeCardBottom {
  justify-content: center;
}

/* hover premium */
.homeCard:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--glow-rgb), 0.4);
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(var(--glow-rgb), 0.12);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
/* =========================================
   🛠️ ADMIN LAYOUT (menu lateral + conteúdo)
   Cole no FINAL do app.css
   ========================================= */

.adminLayout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
}

.adminSidebar {
  position: sticky;
  top: 86px; /* ajusta conforme altura da topbar */
  align-self: start;

  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(var(--glow-rgb), 0.14);
  border-radius: var(--radius);
  padding: 14px;

  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.adminBrand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.adminBrandMark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;

  background: rgba(var(--glow-rgb), 0.14);
  border: 1px solid rgba(var(--glow-rgb), 0.22);
  box-shadow: 0 0 18px rgba(var(--glow-rgb), 0.12);
}

.adminBrandTitle {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.adminMenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adminMenuItem {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);

  color: var(--text);
}

.adminMenuItem:hover {
  border-color: rgba(var(--glow-rgb), 0.45);
  box-shadow: 0 0 18px rgba(var(--glow-rgb), 0.08);
}

.adminMenuDivider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.adminMain {
  min-width: 0;
}

.adminHero {
  padding-top: 8px;
}

.adminQuickRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.adminStat {
  border: 1px solid rgba(var(--glow-rgb), 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 12px 14px;
}

.adminStatNum {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.adminStatLabel {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Responsivo */
@media (max-width: 980px) {
  .adminLayout {
    grid-template-columns: 1fr;
  }

  .adminSidebar {
    position: relative;
    top: 0;
  }

  .adminQuickRow {
    grid-template-columns: 1fr;
  }
}
/* =========================
   ADMIN LAYOUT (fix bagunça)
   ========================= */

.adminLayout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

.adminSidebar {
  position: sticky;
  top: 84px; /* ajusta se sua topbar for maior/menor */
}

.adminMain {
  min-width: 0;
}

.adminHero {
  padding: 10px 0 14px;
  margin-bottom: 10px;
}

/* Mobile: sidebar sobe e vira bloco normal */
@media (max-width: 980px) {
  .adminLayout {
    grid-template-columns: 1fr;
  }
  .adminSidebar {
    position: static;
    top: auto;
  }
}

/* =========================
   USERS LIST (menos poluição)
   ========================= */

.adminUsersList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adminUserRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.adminUserMain {
  min-width: 0;
}

.adminUserTop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.adminUserNick {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adminUserMeta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.adminUserActions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.adminRoleForm {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.adminRoleForm select {
  width: auto;
  min-width: 160px;
}

/* badge mais contido */
.adminUserBadge {
  align-self: start;
}
/* Paginação admin: evita sobreposição */
.adminPager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.adminPagerBtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.adminPager .miniBtn {
  position: static; /* garante que não esteja absolute/fixed */
}
.adBox {
  margin: 14px 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
