/* =========================================================================
   GS Smart Menu — Nova Landing Page de Planos (Cristais SVG + Crossfade)
   Mobile-First & Isolada contra conflitos de ui_header / gs-admin-theme
   ========================================================================= */

:root {
  --card-tilt: 8deg;            /* Valor inicial: 8° */
  --bg-blur: 1px;               /* Valor inicial: 1% (~1px) */
  --bg-darkness: 0.75;          /* Valor inicial: 75% */
  --glass-blur: 16px;

  --cyan-1: #2dd4bf;
  --cyan-2: #38bdf8;
  --violet-1: #818cf8;
  --gold-1: #fbbf24;
  --gold-2: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
}

/* Reset seguro sobre o tema base */
html,
body.gs-admin-theme,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #060911 !important;
  color: var(--text-main) !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.gs-plans-page,
.gs-plans-page * {
  box-sizing: border-box;
}

/* =========================================================================
   CAMADAS DE FUNDO ROTATIVAS (CROSSFADE SUAVE A CADA 30s)
   ========================================================================= */
.gs-bg-stage {
  position: fixed;
  inset: -24px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #060911;
}

.gs-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(var(--bg-blur));
  transform: scale(1.03);
  transition: opacity 1.8s ease-in-out, filter 0.25s ease;
  will-change: opacity;
}

.gs-bg-slide.is-visible {
  opacity: 1;
}

.gs-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, min(0.96, calc(var(--bg-darkness) + 0.06))) 0%,
    rgba(5, 8, 16, var(--bg-darkness)) 50%,
    rgba(4, 6, 12, min(0.98, calc(var(--bg-darkness) + 0.14))) 100%
  );
}

/* =========================================================================
   CONTEÚDO PRINCIPAL
   ========================================================================= */
.gs-plans-page {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 88px;
}

/* Navegação Superior */
.gs-plans-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.gs-plans-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.gs-plans-brand span {
  font-weight: 500;
  font-size: 1.06rem;
  color: #e2e8f0;
}

.gs-login-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #f1f5f9 !important;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.gs-login-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.36);
}

/* Hero */
.gs-plans-intro {
  text-align: center;
  max-width: 780px;
  margin: 42px auto 48px;
}

.gs-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #67e8f9;
  margin: 0 0 12px;
}

.gs-plans-intro h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.95rem, 4.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 16px;
}

.gs-plans-intro p:not(.gs-eyebrow) {
  font-size: clamp(0.96rem, 1.6vw, 1.14rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 630px;
  margin: 0 auto;
}

/* =========================================================================
   PALCO DOS 2 CARDS DE CRISTAL TRANSPARENTE (SVG + CSS 3D)
   ========================================================================= */
.gs-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: stretch;
  perspective: 1600px;
  margin-bottom: 36px;
}

.gs-crystal-slot {
  position: relative;
  transform-style: preserve-3d;
  display: flex;
}

.gs-plan {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 38px 32px 32px;
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(12, 18, 34, 0.34) 48%,
    rgba(8, 12, 24, 0.48) 100%
  );
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease;
  will-change: transform;
}

.gs-plan--a {
  transform: rotateY(var(--card-tilt));
  transform-origin: center center;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.48),
    0 0 38px rgba(45, 212, 191, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.gs-plan--b {
  transform: rotateY(calc(var(--card-tilt) * -1));
  transform-origin: center center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(22, 18, 40, 0.38) 48%,
    rgba(10, 12, 26, 0.52) 100%
  );
  box-shadow:
    0 26px 65px rgba(0, 0, 0, 0.54),
    0 0 44px rgba(129, 140, 248, 0.18),
    0 0 28px rgba(251, 191, 36, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Efeito ao passar o mouse, clicar ou tocar: desinclina e vem para frente */
.gs-plan--a:hover,
.gs-plan--b:hover,
.gs-plan--a.is-pressed,
.gs-plan--b.is-pressed,
.gs-plan--a:focus-within,
.gs-plan--b:focus-within {
  transform: rotateY(0deg) translateY(-8px) translateZ(28px) scale(1.016);
  z-index: 10;
}

.gs-plan--a:hover,
.gs-plan--a.is-pressed {
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.60),
    0 0 56px rgba(45, 212, 191, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.gs-plan--b:hover,
.gs-plan--b.is-pressed {
  box-shadow:
    0 36px 85px rgba(0, 0, 0, 0.64),
    0 0 60px rgba(129, 140, 248, 0.28),
    0 0 42px rgba(251, 191, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* Moldura SVG vetorial transparente */
.gs-crystal-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 26px;
  overflow: visible;
}

.gs-floor-glow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -22px;
  height: 24px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.48;
  pointer-events: none;
}

.gs-floor-glow--cyan {
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.55), transparent 72%);
}

.gs-floor-glow--gold {
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.45), rgba(129, 140, 248, 0.35), transparent 75%);
}

/* Selo flutuante no Card Recomendado */
.gs-featured-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 55%, #d97706 100%);
  border: 1px solid rgba(253, 224, 71, 0.58);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.48);
}

.gs-plan-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gs-plan-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 10px;
}

.gs-plan--a .gs-plan-eyebrow { color: #5eead4; }
.gs-plan--b .gs-plan-eyebrow { color: #fcd34d; }

.gs-plan h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.38rem, 2.2vw, 1.68rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: center;
  margin: 0 0 10px;
}

.gs-plan-desc {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  min-height: 46px;
  margin: 0 0 20px;
}

.gs-plan-desc strong {
  color: #ffffff;
}

/* Preço */
.gs-plan-price-wrap {
  text-align: center;
  margin-bottom: 20px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gs-price-from {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin: 0 0 2px;
}

.gs-price-from s {
  color: #e2e8f0;
  opacity: 0.82;
}

.gs-plan-price {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2.15rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.05;
  margin: 0;
}

.gs-plan--b .gs-plan-price--promo {
  color: #fde68a;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.30);
}

.gs-plan-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.gs-price-period {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fcd34d;
  margin: 4px 0 0;
}

/* Caixa de oferta */
.gs-plan-offer {
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 22px;
  text-align: center;
}

.gs-plan--a .gs-plan-offer {
  background: rgba(45, 212, 191, 0.08);
  border: 1px dashed rgba(94, 234, 212, 0.45);
}

.gs-plan--b .gs-plan-offer {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(129, 140, 248, 0.10));
  border: 1px solid rgba(251, 191, 36, 0.50);
}

.gs-plan-offer strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.gs-plan-offer p {
  font-size: 0.86rem;
  color: #f1f5f9;
  margin: 0 0 4px;
}

.gs-plan-offer small {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cbd5e1;
}

/* Lista de benefícios */
.gs-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-grow: 1;
}

.gs-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.gs-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.gs-plan-note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-dim);
  text-align: center;
  margin: -10px 0 18px;
}

/* Botão CTA */
.gs-plan-choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.gs-plan--a .gs-plan-choose {
  color: #042f2e !important;
  background: linear-gradient(90deg, #5eead4 0%, #38bdf8 100%);
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.28);
}

.gs-plan--b .gs-plan-choose {
  color: #0f172a !important;
  background: linear-gradient(90deg, #a5b4fc 0%, #fde68a 58%, #fbbf24 100%);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.32);
}

.gs-plan-choose:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.gs-plan-unavailable {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 24px 0;
}

.gs-plan-unavailable a {
  color: #5eead4;
  font-weight: 600;
}

/* =========================================================================
   RODAPÉ, PASSO A PASSO E FUTURAS FUNCIONALIDADES
   ========================================================================= */
.gs-plans-switch {
  text-align: center;
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 18px 0 42px;
}

.gs-plans-next {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 34px;
}

.gs-plans-next h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 22px;
}

.gs-plans-next ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gs-plans-next li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.gs-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #67e8f9;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.gs-plans-future {
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gs-plans-future summary {
  cursor: pointer;
  font-weight: 600;
  color: #e2e8f0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gs-plans-future summary::-webkit-details-marker {
  display: none;
}

.gs-plans-future summary::before {
  content: '▶';
  font-size: 0.72rem;
  color: #67e8f9;
  transition: transform 0.2s ease;
}

.gs-plans-future[open] summary::before {
  transform: rotate(90deg);
}

.gs-plans-future summary small {
  color: var(--text-dim);
  font-weight: 400;
}

.gs-plans-future p {
  margin: 12px 0 0;
  line-height: 1.55;
  color: var(--text-muted);
}

/* =========================================================================
   PAINEL DE EFEITOS RETRÁTIL (OCULTO POR PADRÃO + FLECHINHA LATERAL)
   ========================================================================= */
.gs-fx-drawer {
  position: fixed;
  right: 0;
  bottom: 22px;
  z-index: 999;
  display: flex;
  align-items: flex-end;
  transform: translateX(calc(100% - 38px));
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.gs-fx-drawer.is-open {
  transform: translateX(0);
}

.gs-fx-tab {
  width: 38px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 13, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-right: none;
  border-radius: 14px 0 0 14px;
  color: #67e8f9;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: -6px 6px 24px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, color 0.2s ease;
}

.gs-fx-tab:hover {
  background: rgba(15, 23, 42, 0.96);
  color: #fde68a;
}

.gs-fx-tab .gs-fx-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.gs-fx-drawer.is-open .gs-fx-tab .gs-fx-arrow {
  transform: rotate(180deg);
}

.gs-fx-panel {
  width: 284px;
  max-width: calc(100vw - 48px);
  background: rgba(9, 13, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: none;
  border-radius: 16px 0 0 16px;
  padding: 15px 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: -10px 14px 36px rgba(0, 0, 0, 0.60);
  font-size: 0.8rem;
  color: #e2e8f0;
}

.gs-fx-title {
  font-weight: 700;
  color: #67e8f9;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gs-fx-row {
  margin-bottom: 11px;
}

.gs-fx-row:last-child {
  margin-bottom: 0;
}

.gs-fx-row label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.gs-fx-row input[type="range"] {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.gs-fx-bg-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gs-fx-btn {
  flex: 1;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gs-fx-btn:hover {
  background: rgba(56, 189, 248, 0.20);
  border-color: rgba(56, 189, 248, 0.50);
}

.gs-fx-counter {
  font-size: 0.74rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   RESPONSIVO — 100% MOBILE FRIENDLY
   ========================================================================= */
@media (max-width: 900px) {
  .gs-plans-page {
    padding: 18px 16px 76px;
  }

  .gs-plans-intro {
    margin: 28px auto 36px;
  }

  .gs-plans-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    perspective: 1200px;
  }

  /* Em mobile mantemos o card legível de frente, com leve pop ao tocar */
  .gs-plan--a,
  .gs-plan--b {
    transform: rotateY(0deg);
    padding: 34px 22px 26px;
  }

  .gs-plan--a.is-pressed,
  .gs-plan--b.is-pressed {
    transform: translateY(-4px) scale(1.015);
  }

  .gs-plan-desc {
    min-height: auto;
  }

  .gs-plan-price-wrap {
    min-height: auto;
  }

  .gs-plans-next ol {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gs-fx-drawer {
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .gs-plans-brand {
    font-size: 1.15rem;
  }

  .gs-plans-brand span {
    font-size: 0.94rem;
  }

  .gs-login-pill {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .gs-featured-badge {
    font-size: 0.66rem;
    padding: 5px 12px;
  }
}
