/* ============================================================================
   ARCANUM • ORDEM DO VÉU — DESIGN SYSTEM DE PRODUÇÃO (100% RESPONSIVO)
   Estética: Magos Misteriosos, Alta Magia, Ocultismo, Umbanda & Espiritualidade
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-abyss: #050409;
  --bg-sanctum: #0b0914;
  --bg-card: #120f20;
  --bg-card-hover: #1a152e;
  --bg-glass: rgba(12, 9, 22, 0.84);
  --bg-glass-heavy: rgba(7, 5, 14, 0.96);

  --gold-bright: #f5d77f;
  --gold-primary: #d4af37;
  --gold-deep: #99761c;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --violet-astral: #8b5cf6;
  --violet-deep: #4c1d95;
  --violet-glow: rgba(139, 92, 246, 0.32);

  --crimson-ritual: #e11d48;
  --emerald-vital: #10b981;

  --text-primary: #f8f5ee;
  --text-secondary: #c4bdd4;
  --text-muted: #857d99;

  --border-gold: rgba(212, 175, 55, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-display: 'Cinzel', serif;
  --font-ornate: 'Cinzel Decorative', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-cinema: 0 22px 55px rgba(0, 0, 0, 0.85);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  background: radial-gradient(circle at 50% 0%, #17112b 0%, var(--bg-abyss) 55%);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-primary);
  padding-bottom: 110px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-abyss);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), #3c2c63);
  border-radius: 4px;
}

/* ============================================================================
   BARRA DE CONTROLE RÁPIDO (SIMULADOR DE PERFIL / ACESSO RÁPIDO ADMIN)
   ============================================================================ */
.mode-switcher-bar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: linear-gradient(90deg, #0d0818 0%, #1b1133 50%, #0d0818 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 7px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  backdrop-filter: blur(12px);
}

.mode-switcher-bar.hidden-bar {
  display: none;
}

.mode-switcher-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mode-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-bright);
  animation: pulseGlow 2s infinite;
  flex-shrink: 0;
}

.mode-switcher-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mode-pill:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

.mode-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(139, 92, 246, 0.25));
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

/* ============================================================================
   HEADER ESTILO NETFLIX CINEMATOGRÁFICO & MENU MOBILE
   ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4%;
  background: linear-gradient(180deg, rgba(5, 4, 9, 0.95) 0%, rgba(5, 4, 9, 0.78) 75%, transparent 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  transition: background 0.3s ease;
  gap: 14px;
}

.navbar.scrolled {
  background: rgba(6, 5, 12, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-sigil {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), rgba(15, 10, 30, 0.95));
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 1.25rem;
  box-shadow: 0 0 18px var(--gold-glow);
  overflow: hidden;
}

.brand-sigil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-ornate);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, #fff6d6 0%, var(--gold-primary) 55%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  position: relative;
  padding: 4px 0;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-bright);
  text-shadow: 0 0 12px var(--gold-glow);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

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

.mobile-menu-toggle {
  display: none;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  background: rgba(8, 6, 16, 0.98);
  border-bottom: 1px solid var(--border-gold);
  padding: 16px 4%;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer.open {
  display: flex;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 7px 14px 7px 34px;
  color: var(--text-primary);
  font-size: 0.82rem;
  width: 190px;
  transition: all 0.25s ease;
}

.search-input:focus {
  outline: none;
  width: 240px;
  background: rgba(15, 11, 29, 0.95);
  box-shadow: 0 0 16px var(--gold-glow);
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.82rem;
  color: var(--gold-primary);
  pointer-events: none;
}

.status-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge-header.locked {
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(225, 29, 72, 0.5);
  color: #fda4af;
}

.status-badge-header.unlocked {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

/* ============================================================================
   BOTÕES MÍSTICOS & CTAs DE ALTA CONVERSÃO
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  font-family: var(--font-sans);
  line-height: 1.2;
}

.btn-gold {
  background: linear-gradient(135deg, #f6d982 0%, #d4af37 50%, #9b7416 100%);
  color: #090612;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.38);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
  filter: brightness(1.06);
}

.btn-play-white {
  background: var(--text-primary);
  color: #07050f;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-play-white:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-bright);
}

.btn-danger {
  background: rgba(225, 29, 72, 0.15);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.45);
}

.btn-danger:hover {
  background: rgba(225, 29, 72, 0.32);
  color: #fff;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.76rem;
}

.btn-xs {
  padding: 5px 9px;
  font-size: 0.72rem;
}

/* ============================================================================
   HERO BANNER CINEMATOGRÁFICO (ARQUIMAGO MISTERIOSO)
   ============================================================================ */
.hero-banner {
  position: relative;
  min-height: 80vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 56px 4% 86px;
  overflow: hidden;
  background-size: cover;
  background-position: center 20%;
}

.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 9, 0.96) 0%, rgba(5, 4, 9, 0.82) 45%, rgba(5, 4, 9, 0.28) 78%, rgba(5, 4, 9, 0.85) 100%),
    linear-gradient(180deg, rgba(5, 4, 9, 0.4) 0%, transparent 35%, rgba(5, 4, 9, 0.92) 92%, var(--bg-abyss) 100%);
  z-index: 1;
}

.hero-sacred-geometry {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.22);
  box-shadow: inset 0 0 80px rgba(212, 175, 55, 0.08);
  pointer-events: none;
  z-index: 1;
  animation: slowRotate 90s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: var(--gold-bright);
  margin-bottom: 16px;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.match-pill {
  color: #34d399;
  font-weight: 700;
}

.meta-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.73rem;
  color: var(--text-secondary);
}

.meta-badge.gold {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.14);
}

.hero-description {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-conversion-Ribbon {
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.16), rgba(139, 92, 246, 0.16));
  border-left: 3px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-conversion-Ribbon p {
  font-size: 0.83rem;
  color: var(--text-primary);
  flex: 1;
  min-width: 220px;
}

.hero-conversion-Ribbon strong {
  color: var(--gold-bright);
}

/* ============================================================================
   FILTROS DE TRADIÇÕES E FORMATOS
   ============================================================================ */
.filter-strip {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  padding: 0 4% 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-chip {
  background: rgba(18, 15, 32, 0.92);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.filter-chip:hover,
.filter-chip.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(76, 29, 149, 0.45));
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ============================================================================
   TRILHOS E CARROSSÉIS ESTILO NETFLIX
   ============================================================================ */
.catalog-container {
  padding: 10px 4% 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.netflix-row {
  position: relative;
}

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.row-title {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-title-sigil {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.row-subtitle {
  font-size: 0.79rem;
  color: var(--text-muted);
}

.row-cards-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}

/* ============================================================================
   CARD DO ACERVO (VITRINE TRAVADA 🔒 vs LIBERADA 🔓)
   ============================================================================ */
.arcane-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.arcane-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.22);
  z-index: 10;
}

.card-poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #090710;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.arcane-card:hover .card-poster {
  transform: scale(1.07);
}

.arcane-card.is-locked .card-poster {
  filter: saturate(0.84) contrast(1.05);
}

.card-poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 4, 9, 0.15) 0%, transparent 45%, rgba(18, 15, 32, 0.98) 100%);
}

.card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
}

.format-badge {
  background: rgba(8, 6, 16, 0.86);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-bright);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.lock-status-pill {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.lock-status-pill.locked {
  background: rgba(15, 10, 28, 0.9);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.lock-status-pill.unlocked {
  background: rgba(6, 78, 59, 0.88);
  border: 1px solid #34d399;
  color: #a7f3d0;
}

.lock-status-pill.free-sample {
  background: rgba(88, 28, 135, 0.9);
  border: 1px solid #c084fc;
  color: #f3e8ff;
}

.card-center-action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 9, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.arcane-card:hover .card-center-action {
  opacity: 1;
}

.center-circle-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright), var(--gold-primary));
  color: #080610;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-tradition {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.34;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.card-cta-label {
  color: var(--gold-bright);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================================
   BARRA FIXA DE ALTA CONVERSÃO (CTR) QUANDO A VITRINE ESTÁ TRAVADA
   ============================================================================ */
.sticky-conversion-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: linear-gradient(90deg, rgba(10, 7, 20, 0.98) 0%, rgba(28, 17, 54, 0.98) 50%, rgba(10, 7, 20, 0.98) 100%);
  border-top: 1.5px solid var(--gold-primary);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.9);
  padding: 12px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(16px);
}

.sticky-conversion-bar.hidden {
  display: none;
}

.sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sticky-lock-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sticky-bar-text h4 {
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--gold-bright);
}

.sticky-bar-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.sticky-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price-highlight-box {
  text-align: right;
}

.price-highlight-box .small-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
}

.price-highlight-box .price-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-bright);
}

/* ============================================================================
   MODAIS RESPONSIVOS
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 2, 7, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-window {
  background: var(--bg-sanctum);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1040px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-cinema), 0 0 50px rgba(212, 175, 55, 0.16);
  animation: modalFadeIn 0.28s ease;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 6, 16, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #07050f;
}

.content-modal-hero {
  position: relative;
  padding: 32px 28px 24px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-subtle);
}

.content-modal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 9, 20, 0.65) 0%, rgba(11, 9, 20, 0.97) 100%);
}

.content-modal-hero-inner {
  position: relative;
  z-index: 2;
}

.player-stage {
  margin-top: 18px;
  background: #040308;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.player-video {
  width: 100%;
  max-height: 460px;
  display: block;
  background: #000;
}

.locked-stage-paywall {
  padding: 40px 22px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.16) 0%, rgba(9, 7, 18, 0.96) 70%);
}

.locked-stage-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
  display: inline-block;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.6));
}

.locked-stage-paywall h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.locked-stage-paywall p {
  max-width: 580px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.benefits-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: left;
}

.benefit-mini-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.79rem;
  color: var(--text-primary);
}

.lessons-section {
  padding: 24px 28px 30px;
}

.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-wrap: wrap;
}

.lesson-row:hover,
.lesson-row.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
}

.lesson-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 220px;
}

.lesson-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.lesson-info h5 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.lesson-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.lesson-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.grimoire-reader-box {
  padding: 24px;
  background: linear-gradient(180deg, #130f22 0%, #0b0814 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #efe6d5;
}

.grimoire-reader-box h3,
.grimoire-reader-box h4 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  margin: 14px 0 10px;
}

.grimoire-reader-box ul {
  margin: 12px 0 16px 22px;
}

.grimoire-reader-box blockquote {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  font-style: italic;
  color: var(--gold-bright);
}

.product-discount-box {
  padding: 22px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(76, 29, 149, 0.25));
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.price-comparison .old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.price-comparison .member-new-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.coupon-ticket {
  background: #080610;
  border: 1.5px dashed var(--gold-primary);
  padding: 9px 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1rem;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}

/* ============================================================================
   PAINEL DO GRÃO-MESTRE (ADMIN COMPLETO COM EDIÇÃO TOTAL)
   ============================================================================ */
.admin-panel-wrapper {
  padding: 28px 4%;
  max-width: 1440px;
  margin: 0 auto;
}

.admin-panel-wrapper.hidden {
  display: none;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-gold);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px;
}

.stat-card .stat-label {
  font-size: 0.74rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin-top: 6px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.admin-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 22px;
}

.admin-card-box.editing-highlight {
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.18);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.form-control {
  background: rgba(5, 4, 9, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Galeria e Preview de Imagens no Admin */
.image-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.image-thumb-preview {
  width: 68px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
  background: #050409;
  flex-shrink: 0;
}

.preset-gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.preset-thumb-btn {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: none;
  transition: all 0.2s ease;
}

.preset-thumb-btn:hover,
.preset-thumb-btn.selected {
  border-color: var(--gold-bright);
  transform: scale(1.06);
}

.preset-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.admin-table th {
  color: var(--gold-bright);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.action-btns-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 90vw;
}

.arcane-toast {
  background: rgba(15, 11, 28, 0.96);
  border: 1px solid var(--gold-primary);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: modalFadeIn 0.25s ease;
}

/* Rodapé Cinematográfico */
.sanctum-footer {
  margin-top: 40px;
  padding: 36px 4% 28px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 4, 9, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}

@keyframes slowRotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================================
   RESPONSIVIDADE COMPLETA (MOBILE, TABLET E DESKTOP)
   ============================================================================ */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .mode-switcher-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 14px;
  }
  .mode-switcher-buttons {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .mode-pill {
    white-space: nowrap;
  }
  .navbar {
    padding: 10px 14px;
  }
  .brand-name {
    font-size: 1.08rem;
  }
  .brand-sub {
    display: none;
  }
  .search-input {
    width: 130px;
  }
  .search-input:focus {
    width: 165px;
  }
  .status-badge-header {
    display: none;
  }
  .hero-banner {
    min-height: 64vh;
    padding: 34px 16px 68px;
  }
  .hero-sacred-geometry {
    width: 260px;
    height: 260px;
    right: -40px;
    opacity: 0.45;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .row-cards-track {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
  }
  .content-modal-hero,
  .lessons-section {
    padding: 20px 16px;
  }
  .sticky-conversion-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 12px 14px;
    gap: 10px;
  }
  .sticky-bar-info {
    flex-direction: column;
    gap: 6px;
  }
  .sticky-lock-badge {
    display: none;
  }
  .sticky-bar-actions {
    justify-content: center;
  }
  .price-highlight-box {
    text-align: center;
    width: 100%;
  }
}
