.auth-body {
  --signal: #d4ff3f;
  --signal-ink: #101208;
  --ink: #090a0c;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(212, 255, 63, 0.1), transparent 55%),
    radial-gradient(700px 400px at 100% 0%, rgba(18, 20, 26, 0.08), transparent 50%),
    #eceef2;
  -webkit-font-smoothing: antialiased;
}

.brand-elius {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-decoration: none;
  color: var(--ink, #12141a);
}

.brand-elius .brand-logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-elius .brand-name {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  text-transform: none;
}

.auth-eyebrow {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.auth-eyebrow.ok {
  color: #1f9d6c;
}

.auth-eyebrow.warn {
  color: #b45309;
}

.marketing-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.marketing-header nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.marketing-header a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.btn-primary.compact,
.btn-ghost.compact {
  width: auto;
  margin: 0;
  padding: 9px 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary.full,
.btn-ghost.full {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: normal;
  text-align: center;
  height: auto;
  min-height: 44px;
  box-sizing: border-box;
}

.hero-marketing {
  max-width: 800px;
  margin: 20px auto 10px;
  padding: 0 20px 10px;
  text-align: center;
}

.eyebrow {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-marketing h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.plans-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card.popular {
  border-color: rgba(11, 107, 92, 0.35);
  box-shadow: 0 16px 40px rgba(11, 107, 92, 0.12);
  transform: translateY(-4px);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

.plan-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.plan-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.plan-price small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.plan-tagline {
  margin: 0;
  color: var(--muted);
  min-height: 44px;
}

.plan-card ul {
  margin: 6px 0 16px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.plan-card .btn-primary {
  text-align: center;
  text-decoration: none;
}

.plans-note {
  text-align: center;
  color: var(--muted);
  margin-top: 22px;
  font-size: 0.9rem;
}

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 40px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  box-sizing: border-box;
  overflow-x: clip;
}

.brand.center {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--teal);
}

.auth-card {
  width: min(440px, 100%);
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px 26px;
  box-shadow: 0 18px 50px rgba(18, 20, 26, 0.08);
  overflow-x: clip;
  box-sizing: border-box;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.auth-sub {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.auth-card form,
.admin-form {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.auth-card label,
.admin-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  min-width: 0;
  max-width: 100%;
}

.auth-card label.lgpd-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.auth-card label.lgpd-check input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.auth-card label.lgpd-check span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-card input,
.auth-card select,
.admin-form input,
.admin-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.auth-card input[readonly] {
  background: #f3f4f6;
  color: #4b5563;
  cursor: default;
}

.auth-card input:focus,
.auth-card select:focus,
.admin-form input:focus,
.admin-form select:focus {
  outline: none;
  border-color: #12141a;
  box-shadow: 0 0 0 3px rgba(212, 255, 63, 0.25);
}

.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

.pay-method-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #f7f8fa;
  box-sizing: border-box;
}

.pay-method-box strong {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ink, #12141a);
}

.pay-method-box span {
  color: var(--muted, #6b7280);
  font-size: 0.8rem;
  font-weight: 600;
}

.coupon-row .btn-ghost {
  margin: 0;
  width: auto;
  min-width: 0;
  height: 100%;
  white-space: nowrap;
}

.coupon-create {
  grid-template-columns: 1.4fr 0.7fr auto;
  align-items: end;
}

@media (max-width: 720px) {
  .coupon-create {
    grid-template-columns: 1fr;
  }
}

.hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.form-error {
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
  font-size: 0.88rem;
}

.form-ok {
  color: var(--green);
  background: var(--green-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
  font-size: 0.88rem;
}

.email-sent-banner {
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 10px;
  padding: 12px 14px;
}

.auth-foot {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.auth-foot a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.lock-card {
  text-align: center;
}

.lock-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--amber-soft);
  color: #b45309;
}

.lock-icon svg {
  width: 28px;
  height: 28px;
}

.lock-meta {
  text-align: left;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.lock-meta p {
  margin: 4px 0;
  font-size: 0.9rem;
}

.lock-card .auth-eyebrow,
.lock-card h1,
.lock-card .auth-sub {
  text-align: center;
}

.lock-card form {
  text-align: left;
}

.admin-body {
  margin: 0;
  min-height: 100vh;
  background: #eceef2;
  font-family: "Manrope", system-ui, sans-serif;
}

.admin-app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #090a0c;
  color: #e9ebf0;
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100vh;
}

.admin-sidebar .brand-elius {
  color: #fff;
  padding: 4px 8px 8px;
}

.admin-sidebar .brand-name {
  color: #fff;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #8b919e;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.admin-nav-item:hover {
  background: color-mix(in srgb, var(--signal, #d4ff3f) 14%, transparent);
  color: #fff;
}

.admin-nav-item.active {
  background: var(--signal, #d4ff3f);
  color: var(--signal-ink, #101208);
  font-weight: 700;
}

.admin-nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.admin-nav-item.active .admin-nav-badge {
  background: #101208;
  color: #d4ff3f;
}

.admin-sidebar .btn-ghost {
  margin-top: auto;
  width: 100%;
  border: 1px solid rgba(233, 235, 240, 0.16);
  background: transparent;
  color: #e9ebf0;
}

.admin-sidebar .btn-ghost:hover {
  border-color: var(--signal, #d4ff3f);
  color: var(--signal, #d4ff3f);
}

.admin-content {
  padding: 28px 32px 40px;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.admin-topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-page[hidden] {
  display: none !important;
}

.admin-panel h2 {
  margin-top: 0;
}

.admin-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.historico-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

.historico-user-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 68vh;
  overflow: auto;
}

.historico-user-btn {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.historico-user-btn strong {
  font-size: 0.92rem;
}

.historico-user-btn span,
.historico-user-btn small {
  color: var(--muted);
  font-size: 0.78rem;
}

.historico-user-btn.active {
  border-color: var(--signal, #d4ff3f);
  background: color-mix(in srgb, var(--signal, #d4ff3f) 22%, #fff);
}

.historico-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
}

.historico-toolbar label {
  min-width: 160px;
}

.historico-events {
  display: grid;
  gap: 10px;
}

.historico-event {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.historico-event p {
  margin: 6px 0 0;
  color: var(--text);
}

.historico-event small {
  color: var(--muted);
  white-space: nowrap;
}

.historico-event.type-blocked {
  box-shadow: inset 3px 0 0 #ef4444;
}

.historico-event.type-unlocked,
.historico-event.type-email {
  box-shadow: inset 3px 0 0 var(--green, #1f9d6c);
}

.admin-charts {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}

.admin-chart-box {
  height: 260px;
}

@media (max-width: 1100px) {
  .admin-kpi {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .admin-app {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    min-height: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .admin-nav-item {
    white-space: nowrap;
  }
  .admin-sidebar .btn-ghost {
    margin-top: 0;
    width: auto;
  }
  .admin-content {
    max-height: none;
    padding: 20px 16px 32px;
  }
  .historico-layout,
  .admin-charts {
    grid-template-columns: 1fr;
  }
}

.notif-list {
  display: grid;
  gap: 10px;
}

.notif {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.notif.unread {
  border-color: rgba(11, 107, 92, 0.3);
  background: var(--teal-soft);
}

.notif.awaiting {
  box-shadow: inset 3px 0 0 var(--amber);
}

.notif p {
  margin: 6px 0;
  color: var(--text);
}

.notif-contacts {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  font-size: 0.88rem;
}

.notif-contacts strong {
  color: var(--muted);
  font-weight: 700;
}

.notif small {
  color: var(--muted);
}

.notif-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.cred-box {
  margin-top: 16px;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 14px;
}

.cred-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.cred-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cred-actions .btn-primary,
.cred-actions .btn-ghost {
  margin: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.check-row input {
  width: auto;
  margin: 0;
}

.chip.on {
  background: var(--signal, #d4ff3f);
  color: var(--signal-ink, #101208);
}

.table-wrap {
  overflow-x: auto;
}

.feature-locked {
  position: relative;
}

.feature-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.feature-unlock-btn {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.feature-unlock-btn:hover {
  filter: brightness(1.05);
}

.nav-item.disabled {
  opacity: 0.45;
  cursor: pointer;
}

.plan-feature-list {
  margin: 8px 0 12px;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.pay-banner {
  background: var(--amber-soft);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #92400e;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.popular {
    transform: none;
  }

  .notif {
    flex-direction: column;
  }

  .notif-actions {
    align-items: stretch;
  }

  .auth-shell {
    justify-content: flex-start;
    padding: 16px 12px calc(24px + env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .auth-card {
    width: 100%;
    padding: 20px 14px 18px;
  }

  .auth-card h1 {
    font-size: 1.18rem;
    overflow-wrap: anywhere;
  }

  .auth-sub,
  .auth-card p {
    overflow-wrap: anywhere;
  }

  .coupon-row {
    grid-template-columns: 1fr;
  }

  .coupon-row .btn-ghost {
    width: 100%;
    min-height: 44px;
  }
}
