/* NemesisPay — Auth Gate (cinematic HUD, not a SaaS card) */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --nx-black: #030303;
  --nx-red: #e10600;
  --nx-red-hot: #ff2d22;
  --nx-gold: #c9a227;
  --nx-gold-bright: #f0d060;
  --nx-text: #f3efe6;
  --nx-muted: #9a9488;
  --nx-line: rgba(201, 162, 39, 0.35);
  --nx-font: 'Oxanium', sans-serif;
  --nx-body: 'Rajdhani', sans-serif;
  --nx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  min-height: 100%;
  min-height: 100dvh;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--nx-red) #080808;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: #080808;
}

*::-webkit-scrollbar-thumb {
  min-height: 34px;
  border: 2px solid #080808;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--nx-red-hot), #8f0500);
  box-shadow: 0 0 8px rgba(225,6,0,.45);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff453b, var(--nx-red));
}

*::-webkit-scrollbar-corner {
  background: #080808;
}

body.nx-auth {
  font-family: var(--nx-body);
  color: var(--nx-text);
  background: var(--nx-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--nx-gold-bright); text-decoration: none; font-weight: 700; }
a:hover { color: #fff; }

.icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* ===== STAGE ===== */
.nx-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  position: relative;
}

.nx-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 64px);
  min-height: 100vh;
  min-height: 100dvh;
}

.nx-stage__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url('../img/fundo.png') center 20% / cover no-repeat;
  transform: scale(1.04);
  animation: nx-ken 18s ease-in-out infinite alternate;
}

.nx-stage__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.45) 55%, rgba(3,0,0,0.9) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.8) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(225,6,0,0.28), transparent 55%);
}

.nx-stage__scan {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 3px
  );
  opacity: 0.4;
  mix-blend-mode: multiply;
}

.nx-stage__top {
  position: absolute;
  top: 28px;
  left: clamp(28px, 5vw, 64px);
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}

.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--nx-line);
  background: rgba(0,0,0,0.55);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-family: var(--nx-font);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-gold);
}

.nx-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nx-red);
  box-shadow: 0 0 10px var(--nx-red);
  animation: nx-blink 1.6s ease-in-out infinite;
}

.nx-stage__brand {
  position: relative;
  z-index: 2;
  max-width: 640px;
  animation: nx-rise 0.9s var(--nx-ease) both;
}

.nx-panel__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.nx-emblem {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nx-gold);
  box-shadow:
    0 0 0 4px rgba(0,0,0,0.45),
    0 0 28px rgba(225,6,0,0.4);
}

.nx-offer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  font-family: var(--nx-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--nx-gold-bright);
  background: rgba(225, 6, 0, 0.18);
  border: 1px solid rgba(225, 6, 0, 0.4);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.nx-headline {
  font-family: var(--nx-font);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
  max-width: 16ch;
}

.nx-headline em {
  font-style: normal;
  color: var(--nx-gold-bright);
  text-decoration: underline;
  text-decoration-color: var(--nx-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.nx-lead {
  margin-top: 18px;
  max-width: 42ch;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.45;
  color: rgba(243, 239, 230, 0.88);
  font-weight: 600;
}

.nx-lead strong {
  color: #fff;
  font-weight: 700;
}

.nx-features {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.nx-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(201, 162, 39, 0.22);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nx-feature .icon {
  width: 1.35em;
  height: 1.35em;
  color: var(--nx-gold-bright);
  margin-top: 2px;
}

.nx-feature b {
  display: block;
  font-family: var(--nx-font);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.nx-feature span {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--nx-muted);
  font-weight: 600;
  line-height: 1.3;
}

.nx-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(243, 239, 230, 0.85);
}

.nx-proof__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
  flex-shrink: 0;
}

/* ===== HUD PANEL ===== */
.nx-panel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  background: #0a0808;
  border-left: 1px solid rgba(201,162,39,0.22);
  overflow: hidden;
}

.nx-panel-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(225,6,0,0.12), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(201,162,39,0.06), transparent 35%);
  pointer-events: none;
}

.nx-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  background: #110d0d;
  border: 1px solid rgba(201,162,39,0.32);
  clip-path: polygon(
    18px 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    0 100%,
    0 18px
  );
  box-shadow:
    0 0 0 1px rgba(225,6,0,0.08) inset,
    0 24px 60px rgba(0,0,0,0.55);
  animation: nx-rise 0.75s var(--nx-ease) 0.12s both;
}

.nx-panel::before,
.nx-panel::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--nx-red);
  pointer-events: none;
}
.nx-panel::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}
.nx-panel::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.nx-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.nx-panel__head h1 {
  font-family: var(--nx-font);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-text);
}

.nx-panel__head p {
  margin-top: 4px;
  color: var(--nx-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nx-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--nx-font);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dffb0;
  border: 1px solid rgba(46,204,113,0.35);
  background: rgba(46,204,113,0.08);
  white-space: nowrap;
}

.nx-field {
  margin-bottom: 14px;
}

.nx-field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--nx-font);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-gold);
  font-weight: 700;
}

.nx-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 52px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(201,162,39,0.22);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: border-color 0.2s var(--nx-ease), box-shadow 0.2s var(--nx-ease);
}

.nx-input:focus-within {
  border-color: var(--nx-red);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.16), 0 0 24px rgba(225,6,0,0.12);
}

.nx-input .icon { color: var(--nx-gold); opacity: 0.85; }

.nx-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--nx-text);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 0;
  font-family: var(--nx-body);
}

.nx-input input::placeholder { color: #5f5a52; }

.nx-btn {
  width: 100%;
  margin-top: 8px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-family: var(--nx-font);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background:
    linear-gradient(135deg, var(--nx-red-hot) 0%, var(--nx-red) 40%, #6b0000 100%);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 12px 32px rgba(225,6,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.2s var(--nx-ease), filter 0.2s var(--nx-ease);
}

.nx-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.nx-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.nx-turnstile {
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  overflow: hidden;
  line-height: 0;
  display: flex;
  justify-content: center;
}

.nx-turnstile iframe {
  display: block;
  max-width: none;
}

.nx-btn--gold {
  color: #1a1200;
  background: linear-gradient(135deg, var(--nx-gold-bright), var(--nx-gold) 50%, #8a6d12);
  box-shadow: 0 12px 32px rgba(201,162,39,0.3), inset 0 1px 0 rgba(255,255,255,0.25);
}

.nx-foot {
  margin-top: 20px;
  text-align: center;
  color: var(--nx-muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.nx-foot a {
  position: relative;
}
.nx-foot a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-gold), transparent);
}

.nx-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--nx-font);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a554c;
}

.nx-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nx-red), var(--nx-gold), transparent);
  opacity: 0.85;
  animation: nx-sweep 3.5s linear infinite;
  background-size: 200% 100%;
}

@keyframes nx-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes nx-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes nx-ken {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}
@keyframes nx-sweep {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Mobile */
@media (max-width: 980px) {
  .nx-gate {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .nx-stage {
    min-height: 42vh;
    min-height: 42dvh;
    justify-content: flex-end;
    padding: 20px 18px 28px;
  }

  .nx-stage__top {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .nx-stage__bg {
    background-position: center 15%;
  }

  .nx-stage__veil {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.3) 45%, rgba(3,0,0,0.88) 100%),
      radial-gradient(ellipse at 50% 30%, rgba(225,6,0,0.22), transparent 55%);
  }

  .nx-headline {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    max-width: 100%;
  }

  .nx-lead {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .nx-features {
    display: none;
  }

  .nx-offer {
    font-size: 0.7rem;
    max-width: 100%;
  }

  .nx-proof {
    font-size: 0.85rem;
  }

  .nx-panel-wrap {
    border-left: 0;
    border-top: 1px solid rgba(201,162,39,0.22);
    padding: 22px 16px max(28px, env(safe-area-inset-bottom));
    align-items: flex-start;
  }

  .nx-panel {
    width: 100%;
    padding: 22px 18px;
  }

  .nx-input input { font-size: 16px; }
}

@media (max-width: 420px) {
  .nx-panel__head {
    flex-direction: column;
  }
  .nx-emblem {
    width: 72px;
    height: 72px;
  }
}

/* Toast (usado pelo app.js nas telas de auth) */
.toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  background: rgba(10,10,12,0.96);
  border: 1px solid rgba(201,162,39,0.4);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-weight: 600;
  font-family: var(--nx-body);
  animation: nx-rise 0.3s var(--nx-ease);
}
.toast.error { border-color: rgba(225,6,0,0.55); color: #ffb4ae; }
.toast.success { border-color: rgba(46,204,113,0.45); color: #9dffc4; }

@media (max-width: 980px) {
  .toast-wrap { left: 12px; right: 12px; }
  .toast { min-width: 0; max-width: none; width: 100%; }
}
