:root {
  --bg-dark: #0a0712;
  --bg-card: #140d24;
  --bg-card-hover: #1c1333;
  --purple-primary: #9d4edd;
  --purple-light: #c77dff;
  --purple-glow: rgba(157, 78, 221, 0.4);
  --cyan-accent: #00f0ff;
  --text-main: #f3f0f7;
  --text-muted: #a69bb8;
  --border-color: rgba(157, 78, 221, 0.2);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* BACKGROUND GLOW ORBS */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: rgba(157, 78, 221, 0.18);
  top: 5%;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(0, 240, 255, 0.12);
  top: 40%;
  right: -120px;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 5%;
  background: rgba(10, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.logo-text strong {
  color: var(--purple-light);
}

.badge-v5 {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan-accent);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--purple-light);
}

.btn-cta, .btn-primary {
  background: linear-gradient(135deg, var(--purple-primary), #7b2cbf);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--purple-glow);
  transition: all 0.3s;
  display: inline-block;
}

.btn-cta:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(157, 78, 221, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  display: inline-block;
}

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

/* HERO SECTION */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 5% 4rem;
  gap: 3.5rem;
  min-height: 85vh;
}

.hero-content {
  flex: 1.2;
}

.tag-pill {
  display: inline-block;
  background: rgba(157, 78, 221, 0.15);
  color: var(--purple-light);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.hero h1 span {
  color: var(--purple-light);
  text-shadow: 0 0 30px var(--purple-glow);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.stats-strip {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--text-main);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.card-glow {
  position: relative;
  background: var(--bg-card);
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px var(--purple-glow);
}

.card-glow img {
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  display: block;
}

.hero-badge {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-accent);
}

/* SECTIONS GENERAL */
.section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 5%;
}

.dark-bg {
  background: #07050d;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--cyan-accent);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* LORE GRID */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.lore-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.2rem;
  border-radius: 18px;
  transition: transform 0.3s;
}

.lore-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-light);
}

.lore-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.lore-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--purple-light);
}

.lore-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* GALERIA NARRATIVA */
.gallery-container {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2.5rem;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.main-display {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.main-display img {
  width: 100%;
  height: 480px;
  object-fit: contain;
  background: #080510;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.image-caption h3 {
  font-size: 1.4rem;
  color: var(--purple-light);
  margin-bottom: 0.4rem;
}

.image-caption p {
  color: var(--text-muted);
  font-size: 1rem;
}

.thumbnails-track {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 570px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.thumbnails-track::-webkit-scrollbar {
  width: 6px;
}

.thumbnails-track::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 99px;
}

.thumbnails-track::-webkit-scrollbar-thumb {
  background: var(--purple-primary);
  border-radius: 99px;
}

.thumb {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.thumb:hover {
  background: rgba(157, 78, 221, 0.1);
  border-color: var(--border-color);
}

.thumb.active {
  background: rgba(157, 78, 221, 0.2);
  border-color: var(--purple-primary);
}

.thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.thumb span {
  font-weight: 700;
  font-size: 0.95rem;
}

/* LABORATÓRIO DAS MÁSCARAS */
.mask-chamber {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
}

.mask-selector {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mask-btn {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 1.4rem;
  border-radius: 14px;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.mask-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--purple-light);
}

.mask-btn.active {
  background: rgba(157, 78, 221, 0.25);
  border-color: var(--purple-light);
  box-shadow: 0 0 20px var(--purple-glow);
}

.mask-btn .m-icon {
  font-size: 2rem;
}

.mask-btn .m-info strong {
  display: block;
  font-size: 1.1rem;
}

.mask-btn .m-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mask-display-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: border-color 0.3s;
}

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

.mask-avatar {
  font-size: 3rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.display-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.mask-badge-type {
  font-size: 0.85rem;
  color: var(--cyan-accent);
  font-weight: 700;
}

.mask-description-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.stats-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1.2rem;
  border-radius: 14px;
}

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

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.bar-label span {
  color: var(--text-muted);
}

.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-primary), var(--cyan-accent));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.special-perk {
  background: rgba(0, 240, 255, 0.08);
  border-left: 3px solid var(--cyan-accent);
  padding: 0.8rem 1.2rem;
  border-radius: 4px 8px 8px 4px;
  font-size: 0.95rem;
}

.perk-label {
  display: block;
  font-size: 0.8rem;
  color: var(--cyan-accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.voice-quote {
  background: rgba(157, 78, 221, 0.1);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--purple-light);
}

/* GAME DASHBOARD & MOCKUP */
.game-dashboard {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.game-screen-mockup {
  background: #050308;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  background: #140d24;
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.window-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.game-viewport-sim {
  position: relative;
  height: 380px;
  background: linear-gradient(180deg, #100b22 0%, #080512 80%, #201438 100%);
  overflow: hidden;
  padding: 1.5rem;
}

.sim-hud {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.sim-hp { color: #ff4747; }
.sim-mask { color: #00f0ff; }

.sim-player {
  position: absolute;
  bottom: 80px;
  left: 100px;
  background: var(--purple-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 0 15px var(--purple-glow);
}

.sim-enemy {
  position: absolute;
  bottom: 80px;
  right: 120px;
  background: #3d2338;
  color: #ff9999;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.sim-pickup {
  position: absolute;
  top: 150px;
  left: 280px;
  background: #ff4747;
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  animation: floatAnim 2.5s ease-in-out infinite alternate;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.sim-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #24153b;
  border-top: 2px solid var(--purple-primary);
}

.game-manual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.controls-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.controls-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

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

kbd {
  background: #000;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cyan-accent);
  font-family: monospace;
  font-size: 0.85rem;
}

.build-specs h4 {
  margin-bottom: 0.6rem;
  color: var(--purple-light);
}

.build-specs ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.build-specs li {
  margin-bottom: 0.4rem;
}

.folder-path {
  margin-top: 1.2rem;
}

.folder-path code {
  background: #000;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  display: inline-block;
  color: #00ffaa;
  font-family: monospace;
  font-size: 0.85rem;
}

/* EPISODE TIMELINE & STORYBOARD */
.episode-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.time-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.9rem 0.6rem;
  border-radius: 12px;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.time-step small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

.time-step:hover {
  border-color: var(--purple-light);
}

.time-step.active {
  background: rgba(157, 78, 221, 0.25);
  border-color: var(--purple-light);
  box-shadow: 0 0 15px var(--purple-glow);
}

.scene-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.2rem;
}

.scene-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.scene-header h3 {
  font-size: 1.5rem;
  color: var(--purple-light);
}

.scene-badge {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.scene-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.scene-col h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}

.scene-col h4:first-child {
  margin-top: 0;
}

.scene-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.scene-voice {
  background: rgba(157, 78, 221, 0.12);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--purple-light);
  color: #fff !important;
}

.scene-prompt {
  display: block;
  background: #000;
  padding: 0.8rem;
  border-radius: 8px;
  color: #a0ffa0;
  font-family: monospace;
  font-size: 0.82rem;
  line-height: 1.4;
  word-break: break-all;
}

/* PRICING GRID */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s;
}

.price-card:hover {
  transform: translateY(-5px);
}

.price-card.featured {
  border-color: var(--purple-primary);
  background: linear-gradient(180deg, #1c1033 0%, #140d24 100%);
  box-shadow: 0 0 30px var(--purple-glow);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple-primary), var(--cyan-accent));
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.2rem 0.9rem;
  border-radius: 99px;
  text-transform: uppercase;
}

.tier-tag {
  font-size: 0.85rem;
  color: var(--cyan-accent);
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

.price-value {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.price-value small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tier-features {
  list-style: none;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tier-features li {
  margin-bottom: 0.6rem;
}

.tier-features strong {
  color: var(--text-main);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-color);
  background: #050308;
  padding: 4rem 5% 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand strong {
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media(max-width: 950px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 3rem;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions, .stats-strip {
    justify-content: center;
  }
  .gallery-container {
    grid-template-columns: 1fr;
  }
  .mask-chamber {
    grid-template-columns: 1fr;
  }
  .game-dashboard {
    grid-template-columns: 1fr;
  }
  .scene-body {
    grid-template-columns: 1fr;
  }
  .timeline-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}


/* LEADERBOARD TABLE STYLES */
.leaderboard-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.leaderboard-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge-infra {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan-accent);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-family: monospace;
  font-weight: 600;
}

.leaderboard-table-wrapper {
  overflow-x: auto;
}

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

.leaderboard-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(157, 78, 221, 0.1);
  font-size: 0.95rem;
}

.leaderboard-table tr:hover td {
  background: rgba(157, 78, 221, 0.05);
}

.rank-pill {
  font-weight: 800;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.rank-1 { background: rgba(255, 215, 0, 0.2); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.4); }
.rank-2 { background: rgba(192, 192, 192, 0.2); color: #c0c0c0; border: 1px solid rgba(192, 192, 192, 0.4); }
.rank-3 { background: rgba(205, 127, 50, 0.2); color: #cd7f32; border: 1px solid rgba(205, 127, 50, 0.4); }
.rank-default { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.score-badge {
  font-weight: 900;
  color: #00ffaa;
  font-family: monospace;
}

.mask-pill {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(157, 78, 221, 0.2);
  color: var(--purple-light);
}

.loading-td {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem !important;
}


/* COFRE DOS QUADRINHOS ORIGINAIS */
.comics-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.comic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.comic-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-light);
  box-shadow: 0 15px 30px var(--purple-glow);
}

.comic-cover-preview {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.comic-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan-accent);
  letter-spacing: 1px;
}

.comic-badge-retro {
  background: rgba(157, 78, 221, 0.2);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  align-self: flex-start;
}

.comic-card h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.3;
}

.comic-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vault-notice-card {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(0, 240, 255, 0.08));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.notice-icon {
  font-size: 2.5rem;
}

.notice-text h4 {
  font-size: 1.1rem;
  color: var(--purple-light);
  margin-bottom: 0.2rem;
}

.notice-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* BOTÃO LER QUADRINHO */
.btn-read-comic {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--cyan-accent);
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.comic-card:hover .btn-read-comic {
  transform: translateX(6px);
}

/* MODAL COFRE DOS QUADRINHOS */
.comic-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.comic-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 10, 0.88);
  backdrop-filter: blur(12px);
}

.comic-modal-container {
  position: relative;
  z-index: 10;
  background: #120b22;
  border: 1px solid rgba(157, 78, 221, 0.4);
  border-radius: 20px;
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(157, 78, 221, 0.25);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.8rem;
  background: rgba(20, 13, 36, 0.95);
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.modal-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan-accent);
  letter-spacing: 1px;
}

.modal-title-box h3 {
  font-size: 1.3rem;
  color: #fff;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: rgba(255, 75, 75, 0.3);
  color: #ff6b6b;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.modal-page-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.page-frame {
  width: 100%;
  height: 420px;
  background: #08050e;
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.page-frame img:hover {
  transform: scale(1.03);
}

.modal-page-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-page-btn {
  background: rgba(157, 78, 221, 0.2);
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-page-btn:hover {
  background: var(--purple-primary);
  border-color: var(--purple-light);
}

.modal-page-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.detail-box {
  background: rgba(20, 13, 36, 0.6);
  border: 1px solid rgba(157, 78, 221, 0.15);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.detail-box h4 {
  font-size: 0.9rem;
  color: var(--purple-light);
  margin-bottom: 0.4rem;
}

.detail-box p {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
}

.detail-box blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: #ffd166;
  border-left: 3px solid #ffd166;
  padding-left: 0.8rem;
  margin-top: 0.2rem;
}

.detail-box.alert-canon {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.25);
}

.detail-box.alert-canon h4 {
  color: var(--cyan-accent);
}

/* ==============================================================================
   CENTRAL DE UPLOAD & ARQUIVAMENTO DIGITAL DO COFRE
   ============================================================================== */
.vault-uploader-box {
  background: rgba(20, 13, 36, 0.7);
  border: 1px dashed rgba(157, 78, 221, 0.4);
  border-radius: 18px;
  padding: 2rem;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}

.vault-uploader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.vault-uploader-header h3 {
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vault-uploader-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.uploader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-light);
}

.form-control {
  background: rgba(10, 7, 18, 0.8);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.vault-file-drop {
  border: 2px dashed rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.03);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vault-file-drop:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--cyan-accent);
}

.btn-upload-submit {
  background: linear-gradient(135deg, var(--purple-primary), #7209b7);
  color: #fff;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-upload-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(157, 78, 221, 0.4);
}

/* GALERIA DINÂMICA DO BANCO DE DADOS */
.vault-live-section {
  margin-top: 3rem;
}

.vault-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.vault-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.vault-page-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-light);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.vault-page-thumb-container {
  height: 200px;
  background: #090510;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.vault-page-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.vault-page-card:hover .vault-page-thumb-container img {
  transform: scale(1.05);
}

.vault-badge-page {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 7, 18, 0.85);
  border: 1px solid var(--cyan-accent);
  color: var(--cyan-accent);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
}

.vault-page-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.vault-page-card-body h4 {
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.3;
}

.vault-page-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.vault-tags-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
}

.vault-mini-tag {
  background: rgba(157, 78, 221, 0.15);
  color: var(--purple-light);
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
