/* ============== VARIÁVEIS DE COR ============== */
:root {
  --purple-dark: #24103f;
  --purple-mid:  #955ff2;
  --purple-deep: #5c2a9c;
  --lilac-soft:  #e1b8ff;
  --lilac-pink:  #f7a5ff;
  --lilac-light: #caa8ff;

  --bg-main: #050509;
  --text-main: #f5f5f5;
}

/* ============== RESET BÁSICO ============== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ============== LANDING (PRÉ-INSCRIÇÃO) – FUNDO FIXO + CONTEÚDO CENTRAL ============== */
body.landing-body {
  /* o fundo real fica nas camadas .site-bg/.site-overlay */
  background: var(--bg-main);
}

.landing-body .site-bg,
.landing-body .site-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.landing-body .site-bg {
  z-index: -2;
  background: url("../img/empresa_dia.png") center / cover no-repeat fixed;
  transform: scale(1.02);
}

.landing-body .site-overlay {
  z-index: -1;
  background:
    radial-gradient(circle at 15% 10%, rgba(149, 95, 242, 0.22), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(247, 165, 255, 0.14), transparent 60%),
    linear-gradient(to bottom, rgba(5, 5, 9, 0.35), rgba(5, 5, 9, 0.78));
}

.landing-body .landing-shell {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Header centralizado na largura do “quadro” */
.landing-body .header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0;
  background: rgba(5, 5, 9, 0.55);
  backdrop-filter: blur(10px);
}

.landing-body .header-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
}

/* Conteúdo em “cartões” centralizados, em cima do fundo fixo */
.landing-body main {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1.2rem 0 1.6rem;
}

.landing-body .hero,
.landing-body .section {
  padding: 2.2rem 2.2rem;
  border-radius: 1.4rem;
  background: rgba(5, 5, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  margin-top: 1.2rem;
}


.landing-body #sobre {
  text-align: center;
}

.landing-body #sobre p {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}

.landing-body .hero {
  min-height: auto;
  display: block;
  background: rgba(5, 5, 9, 0.78);
}

.landing-body .hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.landing-body .hero p {
  margin-left: auto;
  margin-right: auto;
}

/* Footer no mesmo “quadro” */
.landing-body .footer {
  width: min(1100px, 92vw);
  margin: 0 auto 1.5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(5, 5, 9, 0.55);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Responsivo: dá mais “respiro” no mobile */
@media (max-width: 640px) {
  .landing-body .hero,
  .landing-body .section {
    padding: 1.6rem 1.2rem;
  }
  .landing-body .nav a {
    margin-left: 1rem;
  }
  .landing-body .site-logo {
    height: 46px;
  }
}

/* ============== HEADER / NAV ============== */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  background: rgba(5, 5, 9, 0.9);
  backdrop-filter: blur(10px);
}

.logo span {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* logo do site (topo esquerdo) */
.site-logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
}

.nav a:hover {
  text-decoration: underline;
}

/* ============== HERO / HOME ============== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 3rem 5vw;
  background:
    radial-gradient(circle at top, var(--purple-deep) 0, var(--bg-main) 55%);
}

.hero-content {
  max-width: 550px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  max-width: 480px;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* ============== BOTÕES ============== */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  border: none;
  background: linear-gradient(
    135deg,
    var(--lilac-pink),
    var(--purple-mid)
  );
  color: var(--bg-main);
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--lilac-light);
  background: transparent;
  color: var(--lilac-light);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary.small {
  padding: 0.55rem 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.btn-secondary.small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-secondary.small-outline {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* ============== SEÇÕES / CARDS ============== */
.section {
  padding: 3rem 5vw;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.section p {
  max-width: 800px;
  opacity: 0.95;
  margin-bottom: 0.75rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: rgba(15, 15, 30, 0.9);
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.9rem;
  opacity: 0.95;
}

.card-tag {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* ============== VITRINE DE PERSONAGENS ============== */
.chars-section {
  position: relative;
}

.chars-intro {
  max-width: 680px;
  opacity: 0.95;
}

.chars-wrapper {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

.chars-main {
  background: radial-gradient(
    circle at top,
    rgba(149, 95, 242, 0.18),
    rgba(8, 8, 18, 0.95)
  );
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chars-big {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 14;
  border-radius: 1.2rem;
  background: radial-gradient(circle at bottom, #0b0b18, #050509);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.chars-big img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* painel lateral */

.chars-panel {
  background: rgba(10, 10, 22, 0.98);
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chars-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.8;
}

/* miniaturas */

.chars-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.char-thumb {
  width: 58px;
  height: 80px;
  border-radius: 0.9rem;
  padding: 2px;
  border: 1px solid transparent;
  background: rgba(6, 6, 18, 0.95);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.char-thumb img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.char-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.char-thumb-active {
  border-color: var(--lilac-pink);
  background: radial-gradient(circle at top, var(--purple-mid), #060612);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

/* caixa de texto */

.chars-info-box {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(4, 4, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chars-info-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

#char-role {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

#char-desc {
  font-size: 0.86rem;
  opacity: 0.95;
}

/* ============== OUTROS ELEMENTOS DA HOME ============== */
.section.center {
  text-align: center;
}

.section.center p {
  margin: 0 auto 1.5rem auto;
}

.site-counter {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.9;
  color: var(--lilac-light);
}


.site-counter-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.site-counter-row .counter-number {
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.site-counter-row .counter-max {
  font-size: 0.88rem;
  opacity: 0.85;
  color: var(--lilac-light);
}

.site-counter-row .counter-label {
  font-size: 0.88rem;
  opacity: 0.9;
  color: var(--lilac-light);
}

.prereg-counter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}



/* ====== Contador: estrelinhas subindo (preview) ====== */
.counter-stars{
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 150px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.95;
}

.prereg-counter > *:not(.counter-stars){
  position: relative;
  z-index: 1;
}

.counter-star{
  position: absolute;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f398ff 35%, rgba(243,152,255,0) 70%);
  border-radius: 2px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 8px rgba(243,152,255,.55)) drop-shadow(0 0 14px rgba(181,131,242,.30));
  opacity: 0;
  animation: starRise var(--dur, 1600ms) ease-out var(--delay, 0ms) forwards;
}

@keyframes starRise{
  0%   { transform: translate(0, 0) scale(0.75) rotate(0deg); opacity: 0; }
  18%  { opacity: 0.95; }
  100% { transform: translate(var(--drift, 0px), -140px) scale(1.1) rotate(18deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .counter-stars{ display:none; }
}


.prereg-meter {
  width: min(520px, 100%);
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(230, 210, 255, 0.25);
}

.prereg-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    to right,
    #6b1bb3,
    #9d4df2,
    #f398ff
  );
  transition: width 0.4s ease;
}

/* --- Barra: brilho rápido ao atualizar --- */
.prereg-meter-fill{
  position: relative;
  overflow: hidden;
}
.prereg-meter-fill::after{
  content:"";
  position:absolute;
  top:0;
  left:-55%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.prereg-meter-fill.meter-shine::after{
  opacity: 1;
  animation: meterShine 0.8s ease-out;
}
@keyframes meterShine{
  from { left: -55%; }
  to   { left: 125%; }
}

/* --- Confete roxinho (só na meta 500/500) --- */
.counter-confetti{
  position:absolute;
  left:0;
  right:0;
  top: 34px;
  height: 0;
  pointer-events:none;
  overflow: visible;
  z-index: 2;
}
.confetti-piece{
  position:absolute;
  top:0;
  width: 10px;
  height: 6px;
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, 0) rotate(0deg);
  animation-name: confettiFall;
  animation-timing-function: cubic-bezier(.18,.88,.22,1);
  animation-fill-mode: both;
}
@keyframes confettiFall{
  0%   { opacity: 0; transform: translate(-50%, 0) rotate(0deg); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift, 0px)), 150px) rotate(var(--rot, 240deg)); }
}
@media (prefers-reduced-motion: reduce){
  .counter-confetti{ display:none; }
  .prereg-meter-fill::after{ display:none; }
}

.prereg-goal {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.92;
  text-align: center;
  max-width: 620px;
  color: rgba(245, 245, 245, 0.9);
}

.prereg-goal strong {
  color: var(--lilac-soft);
}

/* ============== PRÉ-REGISTRO (LANDING) ============== */
.prereg-form {
  width: min(520px, 100%);
  margin: 1.2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.prereg-label {
  width: 100%;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.prereg-input {
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 6, 15, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
}

.prereg-input:focus {
  outline: 1px solid var(--lilac-light);
  border-color: var(--lilac-light);
}

.prereg-msg {
  min-height: 1.1rem;
  font-size: 0.85rem;
  opacity: 0.95;
}

.prereg-footnote {
  opacity: 0.75;
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

/* ============== TOAST DE RECOMPENSA DIÁRIA ============== */
#daily-reward-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(110, 60, 190, 0.96);
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

#daily-reward-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============== FOOTER ============== */
.footer {
  padding: 1.5rem 5vw;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============== TELA DE LOGIN ============== */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, var(--purple-deep) 0, var(--bg-main) 55%);
}

.auth-container {
  width: min(900px, 100%);
  margin: 2rem;
  background: rgba(8, 8, 18, 0.95);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 2.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-heart {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--lilac-pink);
}

.auth-header p {
  opacity: 0.9;
  font-size: 0.9rem;
}

.auth-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.auth-panel {
  background: radial-gradient(
    circle at top,
    rgba(149, 95, 242, 0.22),
    rgba(8, 8, 18, 0.95)
  );
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.auth-panel form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-panel label {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-panel input {
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 6, 15, 0.9);
  color: var(--text-main);
  font-size: 0.85rem;
}

.auth-panel input:focus {
  outline: 1px solid var(--lilac-light);
  border-color: var(--lilac-light);
}

.auth-msg {
  min-height: 1.1rem;
  font-size: 0.8rem;
}

.auth-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--lilac-light);
  text-decoration: none;
}

.auth-back:hover {
  text-decoration: underline;
}

/* ============== DASHBOARD (PAINEL) ============== */
.dash-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background:
    url("../img/bg_site/bg_site_painel.png") center top / cover no-repeat fixed,
    radial-gradient(circle at top, var(--purple-deep) 0, var(--bg-main) 55%);
}

.dash-wrapper {
  width: min(1100px, 100%);
  margin: 1.5rem;
  background: rgba(8, 8, 18, 0.96);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: radial-gradient(circle at top, var(--purple-deep), #080812 55%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
}

.dash-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.dash-logo-img{
  height: 92px; /* ~250% do logo antigo */
  width: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 700px){
  .dash-logo-img{
    height: 56px;
  }
}

.dash-header-right {
  /* Keep header in max 2 rows: (1) info+stats, (2) actions */
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "top top"
    "actions actions";
  justify-items: end;
  gap: 0.5rem 0.75rem;
}

.dash-header-top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.dash-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
}

.dash-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
}

.dash-user-info strong {
  font-size: 0.9rem;
}

.dash-user-info span {
  opacity: 0.8;
}

/* truncation for header info */
.dash-user-info strong,
.dash-user-info span {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
}

.stat-pill strong {
  font-size: 0.9rem;
}

.stat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* Abas do painel */
.dash-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.5rem 0.8rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 12, 0.95);
}

.dash-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(245, 245, 245, 0.8);
  cursor: pointer;
  text-decoration: none;
}

.dash-tab-active {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, var(--lilac-pink), var(--purple-mid));
  color: var(--bg-main);
}

.dash-tab:not(.dash-tab-active):hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.dash-main {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
}

.dash-profile {
  background: radial-gradient(
    circle at top,
    rgba(149, 95, 242, 0.25),
    rgba(8, 8, 18, 0.95)
  );
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dash-avatar-slot {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.8;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at top,
    rgba(149, 95, 242, 0.18),
    rgba(5, 5, 12, 0.96)
  );
  color: rgba(245, 245, 245, 0.9);
}

/* quando houver avatar, ele preenche o slot */
.dash-avatar-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dash-profile-text h2 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.dash-profile-text p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

.dash-progress {
  background: rgba(10, 10, 22, 0.95);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 1.5rem;
}

.dash-progress h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.dash-progress-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}

.episode-list {
  list-style: none;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.episode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(6, 6, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.episode-card.disabled {
  opacity: 0.6;
}

.episode-info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.episode-info p {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ============== RESPONSIVO ============== */
@media (max-width: 900px) {
  .dash-main {
    grid-template-columns: 1fr;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-header-right {
    justify-content: space-between;
    width: 100%;
  }

  .chars-wrapper {
    grid-template-columns: 1fr;
  }

  .chars-main {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header {
    padding-inline: 1rem;
  }

  .nav a {
    margin-left: 0.75rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 2.5rem 1.5rem;
  }

  .section {
    padding: 2.5rem 1.5rem;
  }

  .auth-container {
    margin: 1.5rem;
    padding: 1.8rem 1.5rem;
  }
}

/* ===== SHELL GERAL DO SITE (AMOR DOCE STYLE) ===== */

/* só controla layout; não mexe na cor de fundo */
body.mil-body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Container geral: centraliza header + “papel branco” */
.mil-shell {
  width: 100%;
  max-width: 1360px;
  padding: 16px 16px 32px;
  box-sizing: border-box;
}

/* HEADER FIXO (casca branca igual em todas as páginas) */
.mil-header {
  /* mantém o visual original do jogo (sem "card" branco) */
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

/* Logo grande opcional (se quiser usar) */
.mil-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mil-logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #333;
}

/* Área da direita: infos + botões (empilha quando precisar) */
.mil-header-right,
.dash-header-right,
.game-header-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

/* Linha 1: usuário (email + saudação / bem-vinda) */
.mil-header-userline,
.dash-user-info,
.game-header-userline{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Linha 2: pills (EP/Hype/Beats) + botões */
.mil-header-actions,
.dash-actions,
.game-header-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Header pode crescer (logo gigante) */
.mil-header{
  align-items: flex-start;
  padding: 18px 22px;
  height: auto;
}
/* Palco central: “papel” onde o conteúdo muda */
.mil-main {
  width: 100%;
  display: flex;
  justify-content: center;
}

.mil-stage {
  width: 100%;
  max-width: 1360px;
  /* mantém o visual original (sem virar um "card" branco) */
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  padding: 0;
  margin-bottom: 24px;
}

/* conteúdo cresce normal; quem rola é a página, não o quadro */
.mil-stage-inner {
  width: 100%;
}

/* Logo grande no header (topo esquerdo) */
.mil-header-logo-img{
  width: 260px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
}


/* ============== INTERNAL PAGES (shared frame) ============== */
/* Content area that changes below the header + tabs */
.dash-page {
  padding: 1.5rem;
}

/* Standard frame used across internal pages */
.mil-frame {
  background: #050308;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

/* Game must be 16:9 and consistent across pages */
.mil-frame-16x9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 560px;
}

@media (max-width: 860px) {
  .dash-page {
    padding: 1rem;
  }
  .mil-frame-16x9 {
    min-height: 460px;
  }
}


/* ===== Mensagens (Painel) ===== */
.dash-messages { padding: 18px; }
.dash-card-head { display: flex; flex-direction: column; gap: 10px; }
.dash-muted { opacity: .85; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.messages-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.msg-item { border: 1px solid rgba(255,255,255,.10); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.22); }
.msg-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 14px; background: transparent; border: 0; color: inherit; cursor: pointer; text-align: left;
}
.msg-head-left { display: flex; flex-direction: column; gap: 6px; }
.msg-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-title { margin: 0; font-size: 16px; font-weight: 800; }
.msg-meta { font-size: 12px; opacity: .8; }
.msg-chevron { font-size: 22px; transform: rotate(0deg); transition: transform .15s ease; opacity: .8; }
.msg-open .msg-chevron { transform: rotate(90deg); }

.msg-body { padding: 0 14px 14px; }
.msg-body p { margin: 0; line-height: 1.45; }

.msg-unread { border-color: rgba(197,160,255,.45); box-shadow: 0 0 0 1px rgba(197,160,255,.25) inset; }
.msg-badge { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 999px; background: rgba(197,160,255,.22); border: 1px solid rgba(197,160,255,.45); }
.msg-pin { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); }

@media (max-width: 560px){
  .msg-title { font-size: 15px; }
}


/* ----- Mensagens: Tabs + Amigos/DM ----- */
.msg-tabs{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.msg-tab{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: inherit;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}
.msg-tab.is-active{
  border-color: rgba(197,160,255,.45);
  box-shadow: 0 0 0 1px rgba(197,160,255,.20) inset;
  background: rgba(197,160,255,.12);
}

.msg-tab-panel{ margin-top: 10px; }

.friends-grid{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 14px;
  align-items: start;
}
.friends-card{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.20);
  padding: 12px;
  margin-bottom: 12px;
}
.friends-title{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 900;
}
.friends-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.friends-list{ display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.friend-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.friend-button{
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.friend-left{ display: flex; flex-direction: column; gap: 4px; }
.friend-name{ font-weight: 900; }
.friend-meta{ font-size: 12px; opacity: .8; }
.friend-actions{ display: flex; gap: 8px; align-items: center; }
.friend-open{ font-size: 12px; opacity: .85; font-weight: 900; }

.chat-card{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.20);
  overflow: hidden;
}
.chat-head{
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.chat-log{
  padding: 12px;
  height: 420px;
  overflow: auto;
}
.chat-form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.chat-msg{ display: flex; margin: 8px 0; }
.chat-msg.me{ justify-content: flex-end; }
.chat-bubble{
  max-width: 70%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.chat-msg.me .chat-bubble{
  border-color: rgba(197,160,255,.35);
  background: rgba(197,160,255,.12);
}
.chat-text{ white-space: pre-wrap; word-wrap: break-word; }
.chat-time{ font-size: 11px; opacity: .75; margin-top: 6px; text-align: right; }

#friend-send-msg.is-ok{ color: rgba(197,160,255,1); opacity: 1; }

@media (max-width: 980px){
  .friends-grid{ grid-template-columns: 1fr; }
  .chat-log{ height: 360px; }
}


/* Inputs padrão (usado em Mensagens/Amigos) */
.input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: inherit;
  outline: none;
}
.input:focus{
  border-color: rgba(197,160,255,.45);
  box-shadow: 0 0 0 2px rgba(197,160,255,.12);
}


/* ===== Mensagens: Lapidação (perfil + layout) ===== */
.dash-messages{ padding: 14px; }

.friends-grid{
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 16px;
}

.friends-left .friends-card:last-child{ margin-bottom: 0; }

.friend-item{ align-items: stretch; }
.friend-item .friend-left{ cursor: pointer; }
.friend-item .friend-left:hover{ filter: brightness(1.06); }

.friend-actions .btn-primary.small,
.friend-actions .btn-secondary.small-outline{
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.friend-actions .btn-secondary.small-outline{
  padding: 7px 10px;
}

.chat-log{ height: 520px; }

@media (max-width: 980px){
  .friends-grid{ grid-template-columns: 1fr; }
  .chat-log{ height: 420px; }
}

/* Modal de perfil de outra Solete (reusa .mil-modal do shop.css) */
.player-modal-grid{
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.player-modal-avatar{
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.20);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-modal-avatar .mil-wardrobe__stack{
  width: 100%;
  height: 100%;
}

.player-modal-avatar .mil-wardrobe__stack img{
  transform: scale(1.55);
  transform-origin: center top;
}

.player-modal-fields{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-modal-field{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.player-modal-label{
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .78;
}

.player-modal-value{
  opacity: .95;
  line-height: 1.35;
  word-break: break-word;
}

.player-modal-note{
  font-size: 12px;
  opacity: .82;
  line-height: 1.4;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 720px){
  .player-modal-grid{ grid-template-columns: 1fr; }
  .player-modal-avatar{ max-height: 360px; }
}
