/* Estilo neon das telas públicas: landing, entrar, assinar e conta (tudo dentro de .vx-gate). */
:root {
  --nx-bg: #12082b;
  --nx-card: rgb(30 16 66 / 0.82);
  --nx-ink: #f3eeff;
  --nx-soft: #cfc3f5;
  --nx-faint: #a99bd6;
  --nx-violet: #a78bfa;
  --nx-cyan: #3ee6f5;
  --nx-cyan-soft: #9ff3fa;
  --nx-up: #3ef0a8;
  --nx-down: #ff6b9a;
  --nx-amber: #ffc857;
  --nx-edge: rgb(167 139 250 / 0.35);
  --nx-glass: rgb(243 238 255 / 0.06);
  --nx-glass-line: rgb(243 238 255 / 0.18);
  --nx-grad: linear-gradient(90deg, var(--nx-violet), var(--nx-cyan));
  --nx-display: Unbounded, Sora, system-ui, sans-serif;
  --nx-text: Sora, system-ui, sans-serif;
  /* vidro temperado: um leve clarão no canto de cima e o corpo translúcido */
  --nx-shine: radial-gradient(90% 70% at 0% 0%, rgb(255 255 255 / 0.1), transparent 55%);
  --nx-pane: var(--nx-shine), linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.02));
  --nx-pane-blur: blur(22px) saturate(1.4);
  /* borda de cima e da esquerda pegam a luz; a de baixo fica no escuro */
  --nx-pane-edge:
    inset 0 1px 0 rgb(255 255 255 / 0.24), inset 1px 0 0 rgb(255 255 255 / 0.08), inset 0 -1px 0 rgb(0 0 0 / 0.18);
  --nx-pane-shadow: var(--nx-pane-edge), 0 30px 80px rgb(4 2 16 / 0.5);
}

/* telas de acesso e pagamento */
.vx-gate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(38rem 30rem at 0% 0%, rgb(139 92 246 / 0.42), transparent 70%),
    radial-gradient(36rem 30rem at 100% 100%, rgb(62 230 245 / 0.2), transparent 70%), var(--nx-bg);
  color: var(--nx-ink);
  font-family: var(--nx-text);
  color-scheme: dark;
}
/* a luz da landing (ciano de um lado, violeta do outro), suave, para o vidro pegar um pouco da cor */
.vx-gate::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(30% 42% at 24% 45%, rgb(62 230 245 / 0.26), transparent 70%),
    radial-gradient(30% 46% at 76% 55%, rgb(139 92 246 / 0.32), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.vx-gate .vx-gate-card {
  border: 1px solid rgb(243 238 255 / 0.16);
  border-radius: 28px;
  background: var(--nx-pane), rgb(30 16 66 / 0.35);
  color: var(--nx-ink);
  box-shadow:
    var(--nx-pane-shadow),
    0 0 80px rgb(139 92 246 / 0.18);
  -webkit-backdrop-filter: var(--nx-pane-blur);
  backdrop-filter: var(--nx-pane-blur);
}
.vx-gate .vx-brand {
  font: italic 800 20px/1.1 var(--nx-display);
  letter-spacing: -0.02em;
}
.vx-gate .vx-brand span {
  color: var(--nx-violet);
}
.vx-gate h1 {
  margin-top: 22px;
  font: 800 clamp(25px, 5vw, 32px) / 1.1 var(--nx-display);
  letter-spacing: -0.03em;
}
.vx-gate h2 {
  font-family: var(--nx-display);
  letter-spacing: -0.01em;
}
.vx-gate :is(.vx-muted, .vx-identity small, .vx-account-facts dt, .vx-auth-actions .vx-muted) {
  color: var(--nx-soft);
}
.vx-gate a:not(.vx-btn) {
  color: var(--nx-cyan);
}
.vx-gate a:not(.vx-btn):hover {
  color: #b8f6fc;
}
.vx-gate .vx-field {
  gap: 8px;
  color: var(--nx-soft);
  font-size: 14px;
  font-weight: 500;
}
.vx-gate .vx-field :is(input, select) {
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--nx-glass-line);
  border-radius: 14px;
  background: var(--nx-glass);
  color: var(--nx-ink);
  font-size: 15px;
}
.vx-gate .vx-field input:focus {
  border-color: var(--nx-cyan);
}
.vx-gate .vx-btn {
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--nx-glass-line);
  border-radius: 999px;
  background: rgb(243 238 255 / 0.08);
  color: var(--nx-ink);
  font-family: var(--nx-text);
  font-weight: 600;
}
.vx-gate .vx-btn:hover {
  background: rgb(243 238 255 / 0.14);
}
.vx-gate .vx-btn.primary {
  border-color: transparent;
  background: var(--nx-grad);
  color: var(--nx-bg);
  font-weight: 700;
  box-shadow: 0 0 30px rgb(139 92 246 / 0.45);
}
.vx-gate .vx-btn.primary:hover {
  background: var(--nx-grad);
  filter: brightness(1.08);
}
.vx-gate .vx-btn.vx-google {
  border-color: transparent;
  background: var(--nx-ink);
  color: var(--nx-bg);
}
.vx-gate .vx-btn.vx-google:hover {
  background: #fff;
}
.vx-gate .vx-btn.vx-auth-switch {
  border-color: transparent;
  background: none;
  color: var(--nx-cyan);
}
.vx-gate .vx-btn.vx-danger {
  border-color: var(--nx-down);
  color: var(--nx-down);
}
.vx-gate :is(.vx-btn, input, a):focus-visible {
  outline: 2px solid var(--nx-cyan);
  outline-offset: 3px;
}
.vx-gate :is(.vx-auth-actions, .vx-account-section, .vx-account-facts, .vx-billing-details) {
  border-color: rgb(243 238 255 / 0.12);
}
.vx-gate .vx-message {
  color: var(--nx-up);
}
.vx-gate .vx-message[data-error='1'] {
  color: var(--nx-down);
}
.vx-gate .vx-actions {
  margin-top: 6px;
}

/* plano e formas de pagamento */
.vx-gate .vx-billing-offer {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
  margin-block: 20px;
  padding: 18px 20px;
  border: 1px solid rgb(62 230 245 / 0.35);
  border-radius: 20px;
  background: var(--nx-shine), linear-gradient(120deg, rgb(42 20 102 / 0.55), rgb(18 52 90 / 0.5));
  box-shadow: var(--nx-pane-edge);
  -webkit-backdrop-filter: var(--nx-pane-blur);
  backdrop-filter: var(--nx-pane-blur);
}
.vx-gate .vx-billing-offer p:first-child {
  grid-column: 1 / -1;
  color: var(--nx-cyan-soft);
  font-size: 14px;
}
.vx-gate .vx-billing-offer p:last-child {
  color: var(--nx-soft);
  font-size: 14px;
}
.vx-gate .vx-billing-offer strong {
  display: block;
  color: var(--nx-ink);
  font: 800 38px/1.05 var(--nx-display);
  letter-spacing: -0.03em;
}
.vx-gate .vx-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.vx-gate .vx-btn.vx-method {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  min-height: 0;
  padding: 16px 18px;
  border: 2px solid var(--nx-edge);
  border-radius: 20px;
  background: var(--nx-shine), var(--nx-glass);
  text-align: start;
  box-shadow: var(--nx-pane-edge);
}
.vx-gate .vx-btn.vx-method:hover {
  border-color: var(--nx-cyan);
  background: rgb(62 230 245 / 0.1);
}
.vx-method strong {
  font: 700 17px/1.2 var(--nx-display);
}
.vx-method small {
  color: var(--nx-soft);
  font-size: 13px;
  font-weight: 500;
}
.vx-gate .vx-waiting:not([data-error='1']) {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nx-cyan-soft);
  font-weight: 600;
}
.vx-gate .vx-waiting:not([data-error='1'])::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nx-cyan);
  animation: nx-pulse 1.6s infinite;
}
@keyframes nx-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(62 230 245 / 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgb(62 230 245 / 0);
  }
}

/* minha conta */
.vx-gate .vx-account-facts dd {
  color: var(--nx-ink);
}
.vx-gate .vx-table :is(th, td) {
  border-color: rgb(243 238 255 / 0.12);
}
.vx-gate .vx-table th {
  background: rgb(243 238 255 / 0.05);
  color: var(--nx-soft);
}
.vx-gate .vx-account-history td a {
  color: var(--nx-cyan);
}

@media (prefers-reduced-motion: reduce) {
  .vx-gate .vx-waiting::before {
    animation: none;
  }
}
.vx-gate .vx-state {
  color: var(--nx-soft);
}
.vx-gate .vx-state.active {
  color: var(--nx-up);
}
