:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d8e0ec;
  --brand: #2271F3;
  --brand-dark: #2271F3;
  --success: #047857;
  --warning: #b45309;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

.auth-loading body > * {
  visibility: hidden;
}

.auth-loading body::before {
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  content: "Verificando acesso...";
  display: flex;
  font-size: 1.1rem;
  font-weight: 800;
  inset: 0;
  justify-content: center;
  position: fixed;
  visibility: visible;
  z-index: 9999;
}

a {
  color: var(--brand);
  text-decoration: none;
}

.header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 72px);
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  height: auto;
  max-width: min(360px, 82vw);
  object-fit: contain;
  width: clamp(240px, 24vw, 360px);
}

.nav {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbe7f6;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 79, 184, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
}

.nav-link {
  align-items: center;
  border-radius: 12px;
  color: #1f3c82;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: #ffffff;
  color: var(--brand);
  transform: translateY(-1px);
}

.header-cta {
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero,
.page {
  width: 100%;
  margin: 0 auto;
  max-width: 1400px;
  padding: 40px clamp(20px, 4vw, 60px);
}

.hero {
  display: grid;
  align-items: center;
  gap: clamp(30px, 4vw, 80px);
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
}

.hero-copy {
  width: 100%;
  max-width: 760px;
}

h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  margin: 0 0 18px;
}

h2 {
  margin-top: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
  margin: 0 0 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.account-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
}

.account-main,
.account-sidebar,
.account-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.account-main {
  display: grid;
  gap: 24px;
}

.account-details {
  display: grid;
  gap: 14px;
  margin: 0;
}

.account-details div {
  border-bottom: 1px solid #edf2f7;
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
}

.account-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-details dd {
  font-weight: 800;
  margin: 0;
}

.account-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.subscription-warning {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.subscription-warning[hidden] {
  display: none;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin: 14px 0;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.login-page {
  max-width: 440px;
  padding-top: clamp(36px, 8vh, 72px);
}

.login-page h1 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.login-form {
  max-width: none;
}

.login-form input {
  border-radius: 10px;
}

.login-form .password-field input {
  border-radius: 10px 0 0 10px;
}

.login-form .password-toggle {
  border-radius: 0 10px 10px 0;
}

.login-submit {
  border-radius: 999px;
  margin-top: 8px;
  min-height: 48px;
}

.signup-prompt {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
  text-align: center;
}

label {
  display: grid;
  font-weight: 700;
  gap: 6px;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  padding: 12px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  position: relative;
}

.password-field input {
  border-radius: 6px 0 0 6px;
  min-width: 0;
}

.password-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  display: inline-flex;
  justify-content: center;
  padding: 0;
}

.password-toggle:hover,
.password-toggle.is-visible {
  background: #f8fbff;
  color: var(--brand);
}

.password-toggle svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.forgot-password-link {
  align-self: start;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  justify-content: flex-start;
  padding: 0;
}

.forgot-password-link:hover {
  background: transparent;
  color: var(--brand-dark);
  text-decoration: underline;
}

button,
.button {
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  padding: 12px 16px;
}

button:hover,
.button:hover {
  background: var(--brand-dark);
}

button.social,
.social {
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 2px solid #2271F3 !important;
}

button.social:hover,
.social:hover {
  background: #ffffff !important;
  border-color: #2271F3 !important;
  box-shadow: 0 12px 30px rgba(34, 113, 243, 0.2) !important;
}

.button.secondary {
  background: #e2e8f0;
  color: var(--ink);
}

.message {
  color: var(--muted);
  min-height: 22px;
}

.message.error {
  color: #b91c1c;
  font-weight: 800;
}

.modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1000;
}

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

.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  max-width: 480px;
  padding: 24px;
  position: relative;
  width: min(100%, 480px);
}

.modal-close {
  align-items: center;
  background: #e2e8f0;
  color: var(--ink);
  height: 36px;
  padding: 0;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
}

.admin-confirm-modal h3 {
  color: #0b2a5f;
  margin: 0 0 10px;
}

.admin-confirm-modal p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.admin-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.button.danger,
button.danger {
  background: #dc2626;
  color: #ffffff;
}

.button.danger:hover,
button.danger:hover {
  background: #b91c1c;
}

.success {
  color: var(--success);
  font-weight: 800;
}

.warning {
  color: var(--warning);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.badge {
  align-items: center;
  background: #ebf2ff;
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  color: var(--brand);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 18px;
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 113, 243, 0.1);
}

.highlight {
  color: var(--brand);
}

.feature-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 24px;
}

.feature-item {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e7ecf6;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  padding: 16px;
  min-width: 0;
}

.feature-icon {
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(34, 113, 243, 0.08);
  border-radius: 12px;
}

.feature-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.about-section {
  padding-top: 40px;
}

.about-card {
  border-radius: 20px;
  padding: 32px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.about-copy {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.abnt-copy {
  gap: 0;
}

.abnt-copy p {
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 12px;
  text-align: justify;
  text-indent: 1.25cm;
}

.abnt-copy p:last-child {
  margin-bottom: 0;
}

.about-section .title {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  margin-bottom: 18px;
  text-align: left;
}

.planos-page {
  padding-bottom: 60px;
}

.planos-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.plan-return {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 18px;
}

.plan-return p {
  color: var(--muted);
  margin: 0;
}

.plan-card {
  border: 1px solid #e7ecf6;
  border-radius: 20px;
  padding: 26px;
  background: var(--card);
  display: grid;
  gap: 18px;
}

.plan-card-highlighted {
  border-color: rgba(0, 20, 207, 0.22);
  box-shadow: 0 24px 48px rgba(0, 20, 207, 0.08);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.plan-type {
  color: var(--brand);
  font-weight: 800;
  margin: 0;
}

.plan-price {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.plan-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.payment-summary {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #dbe8ff;
  border-radius: 16px;
}

.payment-plan-choice {
  margin: 24px 0;
}

.payment-plan-choice h2 {
  font-size: 1.35rem;
  margin: 0 0 16px;
}

.payment-plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-plan-card {
  background: var(--card);
  border: 1px solid #e7ecf6;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.payment-plan-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 14px 30px rgba(34, 113, 243, 0.12);
}

.payment-plan-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.payment-plan-card .plan-type {
  color: var(--brand);
}

.payment-plan-card .plan-price {
  color: var(--ink);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.payment-note {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.payment-instructions {
  border: 1px solid #dbe8ff;
  border-radius: 8px;
  margin: 22px 0;
  padding: 20px;
}

.payment-instructions h2 {
  font-size: 1.35rem;
  margin: 0 0 14px;
}

.payment-instruction-box {
  background: #f8fbff;
  border: 1px solid #dbe8ff;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
}

.payment-instruction-box p {
  margin: 0;
}

.copy-value {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.payment-qr-code {
  display: block;
  height: auto;
  margin-top: 0.75rem;
  width: min(220px, 100%);
}

.receipt-form {
  max-width: 620px;
}

.checkout-summary {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.checkout-summary p {
  margin: 0;
  color: var(--muted);
}

.checkout-message {
  margin-top: 24px;
}

@media (max-width: 960px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .planos-grid,
  .payment-plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-return {
    align-items: flex-start;
    flex-direction: column;
  }
}

.button.primary {
  background: linear-gradient(135deg, #2271F3 0%, #2271F3 100%);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(34, 113, 243, 0.18);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  text-decoration: none;
  font-size: 1rem;
}

.button.primary:hover {
  background: linear-gradient(135deg, #2271F3 0%, #2271F3 100%);
}

.lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.security {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.sidebar-card {
  border: 1px solid #e7ecf6;
  box-shadow: 0 20px 50px rgba(0, 20, 207, 0.08);
  padding: 28px;
}

.sidebar-item {
  align-items: flex-start;
  display: flex;
  gap: 16px;
}

.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(34, 113, 243, 0.08);
  font-size: 1.3rem;
}

.sidebar-card h3,
.sidebar-card h4 {
  margin: 0;
}

.sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.sidebar-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.sidebar-divider {
  border-bottom: 1px dashed #dbe8ff;
  margin: 22px 0;
}

.checkmark {
  align-items: center;
  background: rgba(34, 113, 243, 0.12);
  border-radius: 999px;
  color: var(--brand);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 8px;
  padding: 4px 8px;
}

.link-arrow {
  color: var(--brand);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.link-arrow:hover {
  text-decoration: none;
}

.benefits-section {
  padding-top: 20px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 auto 14px;
  text-align: center;
}

.title {
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.benefits-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.benefit-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e7ecf6;
  border-radius: 18px;
  padding: 24px;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(34, 113, 243, 0.1);
  border-radius: 18px;
  font-size: 1.5rem;
}

.benefit-copy h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.benefit-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

.bottom-strip {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e7ecf6;
  border-radius: 14px;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 38px auto 0;
  max-width: 920px;
  padding: 18px 22px;
}

.bottom-strip p {
  color: var(--ink);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-strip .divider {
  background: #dbe8ff;
  height: 24px;
  width: 1px;
}

.site-footer {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 12px auto 0;
  max-width: 920px;
  padding: 0 4px;
  text-align: left;
}

.site-footer strong {
  color: var(--ink);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  align-items: center;
  color: #1f3c82;
  display: inline-flex;
  gap: 6px;
  font-weight: 700;
  padding: 0;
  white-space: nowrap;
}

.site-footer a:hover {
  color: var(--brand);
  text-decoration: none;
}

.admin-app-header .brand-logo {
  width: clamp(220px, 22vw, 330px);
}

.admin-dashboard {
  max-width: 1560px;
}

.admin-hero {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  margin-bottom: 28px;
}

.admin-hero h1 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.admin-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.admin-filters {
  align-items: end;
  background: #ffffff;
  border: 1px solid #dbe7f6;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 79, 184, 0.08);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, 1fr) repeat(2, minmax(130px, 0.7fr));
  padding: 14px;
}

.admin-filters label,
.compact-filter {
  color: #1f3c82;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-filters select,
.admin-filters input,
.compact-filter input,
.compact-filter select {
  background: #f8fbff;
  border: 1px solid #dbe7f6;
  border-radius: 10px;
  color: var(--ink);
  margin-top: 6px;
  min-height: 42px;
}

.admin-table-filters {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-table-filters .compact-filter {
  min-width: 180px;
}

.admin-filter-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.admin-filter-actions button {
  min-height: 42px;
}

.admin-section {
  margin-top: 26px;
}

.admin-section-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-section-heading h2,
.chart-card h2 {
  margin: 4px 0 0;
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.admin-panel,
.chart-card {
  background: #ffffff;
  border: 1px solid #dbe7f6;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 79, 184, 0.06);
}

.metric-card {
  display: grid;
  gap: 12px;
  min-height: 122px;
  padding: 18px;
}

.metric-card span,
.metric-list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.metric-card strong,
.metric-list strong {
  color: #0b2a5f;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.metric-card-wide {
  grid-column: span 2;
}

.admin-analytics-grid,
.charts-grid,
.admin-tool-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-tool-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.admin-coupon-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
}

.admin-coupon-form {
  display: grid;
  gap: 12px;
}

.admin-coupon-form h3,
.coupon-table-header h3 {
  color: #0b2a5f;
  font-size: 1rem;
  margin: 0;
}

.admin-coupon-form label {
  color: #1f3c82;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-coupon-form input {
  background: #f8fbff;
  border: 1px solid #dbe7f6;
  border-radius: 10px;
  color: var(--ink);
  margin-top: 6px;
  min-height: 42px;
}

.admin-coupon-form input[name="codigo"] {
  text-transform: uppercase;
}

.coupon-active-option {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.coupon-active-option input {
  min-height: 0;
  width: 18px;
}

.coupon-form-actions,
.coupon-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coupon-form-actions button {
  flex: 1 1 140px;
}

.admin-coupon-table-wrap table {
  min-width: 1040px;
}

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

.coupon-list-filters {
  margin-bottom: 0;
}

.coupon-performance {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.coupon-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coupon-details-heading {
  margin-bottom: -4px;
}

.admin-panel,
.chart-card {
  padding: 18px;
}

.admin-actions-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-actions-row .button,
.admin-actions-row button {
  width: auto;
}

.mini-table-wrap {
  margin-top: 14px;
  overflow: auto;
}

.mini-table-wrap table {
  border-collapse: collapse;
  min-width: 520px;
  width: 100%;
}

.mini-table-wrap th,
.mini-table-wrap td {
  border-bottom: 1px solid #e5edf8;
  padding: 10px;
  text-align: left;
}

.mini-table-wrap th {
  color: #1f3c82;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.metric-list article {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #e5edf8;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.metric-list strong {
  font-size: 1.45rem;
  white-space: nowrap;
}

.chart-card {
  display: grid;
  gap: 14px;
}

.chart-card canvas {
  width: 100%;
}

.table-wrap {
  overflow: auto;
}

.table-wrap table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.table-wrap th {
  background: #f8fbff;
  color: #1f3c82;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid #e5edf8;
  padding: 12px;
  vertical-align: middle;
}

.table-wrap tbody tr:hover {
  background: #fbfdff;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}

.status-pill.success {
  background: #dcfce7;
  color: #047857;
}

.status-pill.warning {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill.neutral {
  background: #e8f1ff;
  color: #1f3c82;
}

@media (max-width: 1140px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .bottom-strip {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .admin-hero,
  .admin-tool-grid,
  .admin-coupon-grid,
  .admin-analytics-grid,
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coupon-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

@media (max-width: 820px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

body {
  overflow-x: hidden;
}

.hero {
  width: 100%;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.sidebar-card {
  width: 100%;
}

@media (max-width: 768px) {

  .header {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .nav {
    width: 100%;
    justify-content: stretch;
  }

  .nav-link,
  .header-cta {
    flex: 1 1 160px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .coupon-metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card-wide {
    grid-column: auto;
  }

  .button-hero {
    width: 100%;
  }

  .bottom-strip {
    text-align: center;
  }

  .bottom-strip .divider {
    display: none;
  }
}

@media (min-width: 1700px) {

  .hero,
  .page {
    max-width: 1600px;
  }
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

* {
  max-width: 100%;
}

.hero,
.page,
.header {
  width: 100%;
  overflow: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
}

.feature-item,
.benefit-card,
.sidebar-card,
.card {
  min-width: 0;
}

.nav,
.hero-actions,
.feature-list,
.benefits-grid {
  min-width: 0;
}

.button,
.nav a {
  white-space: normal;
}

.nav .nav-link,
.nav .header-cta {
  white-space: nowrap;
}

@media (max-width: 1140px) {

  .hero {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    width: 100%;
  }
}

@media (max-width: 768px) {

  .header {
    padding: 16px;
  }

  .hero,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .feature-item,
  .benefit-card {
    padding: 18px;
  }

  .button,
  .nav a {
    width: 100%;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    word-break: break-word;
  }
}

/* Home */
.home-body {
  background: #f8fbff;
}

.home-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #dbe7f6;
  box-shadow: none;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto;
  padding: 22px clamp(24px, 5vw, 72px);
}

.home-header .brand-logo {
  width: clamp(210px, 18vw, 300px);
}

.home-nav {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: clamp(12px, 2.5vw, 42px);
  justify-content: center;
  padding: 0;
}

.home-nav .nav-link {
  background: transparent;
  border-radius: 0;
  color: var(--ink);
  gap: 8px;
  min-height: 58px;
  padding: 0 2px;
  position: relative;
}

.home-nav .nav-link:hover {
  background: transparent;
}

.home-nav .nav-link.is-active {
  color: var(--brand);
}

.home-nav .nav-link.is-active::after {
  background: var(--brand);
  border-radius: 999px;
  bottom: 0;
  content: '';
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.home-nav svg,
.home-hero svg,
.home-benefits-section svg,
.site-footer svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 22px;
}

.home-header-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.home-login-button {
  background: #ffffff;
  border: 1px solid #cfe0f7;
  box-shadow: none;
  color: var(--brand);
  min-height: 56px;
  min-width: 112px;
}

.home-login-button:hover {
  background: #f8fbff;
}

.home-header .header-cta {
  border-radius: 10px;
  min-height: 56px;
  min-width: 210px;
}

.home-hero {
  align-items: center;
  background:
    radial-gradient(circle at 58% 24%, rgba(34, 113, 243, 0.08), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
  border-bottom: 1px solid #dbe7f6;
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  grid-template-columns: minmax(330px, 0.9fr) minmax(360px, 1fr) minmax(280px, 0.62fr);
  margin: 0 auto;
  min-height: 570px;
  overflow: hidden;
  padding: clamp(34px, 4.2vw, 64px) clamp(24px, 5vw, 72px);
  position: relative;
}

.home-hero-copy {
  max-width: 640px;
}

.home-badge {
  margin-bottom: 26px;
}

.home-badge .badge-icon,
.home-badge svg {
  color: var(--brand);
}

.home-hero h1 {
  color: #07133d;
  font-size: clamp(2.65rem, 4.2vw, 5.2rem);
  line-height: 1.08;
  margin: 0 0 22px;
}

.home-hero h1 span {
  color: var(--brand);
}

.home-hero .lead {
  max-width: 650px;
}

.home-feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
}

.home-feature-list .feature-item {
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(15, 79, 184, 0.05);
}

.home-feature-list .feature-icon,
.home-benefits-section .benefit-icon,
.home-sidebar-card .sidebar-icon {
  color: var(--brand);
}

.home-hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  min-width: 0;
}

.home-hero-visual img {
  display: block;
  filter: drop-shadow(0 24px 42px rgba(15, 23, 42, 0.12));
  width: min(100%, 660px);
}

.home-sidebar-card {
  border-color: #e4ebf7;
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(15, 79, 184, 0.1);
  padding: clamp(24px, 3vw, 36px);
}

.sidebar-item {
  align-items: flex-start;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
}

.sidebar-icon {
  align-items: center;
  background: #edf4ff;
  border-radius: 999px;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.sidebar-item h3,
.sidebar-item h4 {
  color: var(--ink);
  font-size: 1rem;
  margin: 0 0 10px;
}

.sidebar-item p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.sidebar-divider {
  border-top: 1px dashed #cfd9e8;
  margin: 28px 0;
}

.checkmark {
  color: var(--brand);
}

.home-benefits-section {
  background: #ffffff;
  max-width: none;
  padding-bottom: 34px;
  padding-top: 34px;
}

.home-benefits-section .benefits-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}

.home-benefits-section .bottom-strip {
  max-width: 1120px;
}

.site-footer {
  border-top: 1px solid #dbe7f6;
  margin-top: 0;
  max-width: none;
  padding: 24px 16px;
  text-align: center;
}

.site-footer a svg {
  color: var(--brand);
  height: 20px;
  width: 20px;
}

@media (max-width: 1280px) {
  .home-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .home-header-actions {
    width: 100%;
    justify-content: center;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  }

  .home-hero-visual {
    order: 3;
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .home-header {
    padding: 16px;
  }

  .home-nav,
  .home-header-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .home-nav .nav-link,
  .home-header .header-cta,
  .home-login-button {
    width: 100%;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding: 28px 16px;
  }

  .home-hero-visual {
    grid-column: auto;
    order: 0;
  }

  .home-feature-list,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .bottom-strip {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Home layout alignment with the provided reference */
.home-header {
  background: #ffffff;
  border-bottom: 1px solid #dbe7f6;
  box-shadow: none;
  display: block;
  padding: 0;
}

.home-header-inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 310px minmax(0, 1fr) 360px;
  margin: 0 auto;
  max-width: 1760px;
  min-height: 116px;
  padding: 0 clamp(28px, 4vw, 56px);
  width: 100%;
}

.home-header .brand-logo {
  width: 290px;
}

.home-header .brand {
  justify-self: start;
}

.home-nav {
  align-items: stretch;
  display: flex;
  justify-content: center;
}

.home-nav .nav-link {
  min-height: 78px;
}

.home-header-actions {
  justify-self: end;
}

.home-hero {
  background:
    radial-gradient(circle at 58% 24%, rgba(34, 113, 243, 0.09), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
  border-bottom: 1px solid #dbe7f6;
  display: block;
  min-height: 0;
  padding: 0;
}

.home-hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(24px, 2.6vw, 46px);
  grid-template-columns: minmax(430px, 0.95fr) minmax(440px, 1.05fr) minmax(330px, 0.62fr);
  margin: 0 auto;
  max-width: 1760px;
  min-height: 604px;
  padding: clamp(42px, 4vw, 64px) clamp(28px, 4vw, 56px);
  width: 100%;
}

.home-hero-copy {
  max-width: 640px;
}

.home-hero h1 {
  font-size: clamp(3.25rem, 3.5vw, 4.7rem);
  letter-spacing: 0;
}

.home-feature-list {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature-list .feature-item {
  align-items: center;
  border-radius: 10px;
  min-height: 82px;
  padding: 14px;
}

.home-feature-list .feature-icon {
  border-radius: 999px;
  height: 42px;
  width: 42px;
}

.home-feature-list .feature-item h4 {
  font-size: 0.86rem;
}

.home-feature-list .feature-item p {
  font-size: 0.82rem;
}

.home-hero-visual {
  align-self: end;
  justify-self: center;
  margin-bottom: -12px;
  width: 100%;
}

.home-hero-visual img {
  max-height: 500px;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.home-sidebar-card {
  justify-self: end;
  max-width: 420px;
  width: 100%;
}

.home-benefits-section {
  padding-left: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
}

.home-benefits-section .benefits-grid,
.home-benefits-section .bottom-strip {
  max-width: 1280px;
}

@media (max-width: 1400px) {
  .home-header-inner {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .home-header-actions {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  }

  .home-hero-visual {
    order: 3;
    grid-column: 1 / -1;
    max-width: 720px;
  }

  .home-sidebar-card {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .home-header-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 16px;
  }

  .home-header .brand-logo {
    width: min(290px, 86vw);
  }

  .home-nav,
  .home-header-actions {
    width: 100%;
  }

  .home-nav .nav-link {
    min-height: 44px;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 32px 16px;
  }

  .home-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .home-feature-list {
    grid-template-columns: 1fr;
  }

  .home-hero-visual {
    grid-column: auto;
    margin-bottom: 0;
    order: 0;
  }
}

/* Logo final: preserve the full image inside the header. */
.brand {
  align-items: center;
  display: inline-flex;
  overflow: visible;
}

.brand-logo,
.admin-app-header .brand-logo,
.home-header .brand-logo {
  aspect-ratio: 500 / 281;
  height: auto;
  max-height: none;
  max-width: min(250px, calc(100vw - 28px));
  object-fit: contain;
  object-position: center;
  padding-right: 0;
  width: min(250px, 78vw);
}

/* Cabeçalho das telas internas com o mesmo alinhamento do index. */
.header.app-header {
  padding: 0;
}

.app-header-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1760px;
  min-height: 136px;
  padding: 0 48px;
  width: 100%;
}

@media (max-width: 900px) {
  .app-header-inner {
    min-height: 0;
    padding: 16px;
  }
}

/* Final internal-page polish: denser desktop layout and cleaner mobile proportions. */
@media (min-width: 1024px) {
  .header.admin-app-header {
    align-items: center;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 78px;
    padding: 0 32px;
  }

  .admin-app-header .brand-logo {
    max-width: 250px;
    width: 250px;
  }

  .header.admin-app-header .nav {
    justify-self: end;
  }

  .header.admin-app-header .button,
  .header.admin-app-header button {
    border-radius: 8px;
    font-size: 0.9rem;
    min-height: 40px;
    padding: 10px 14px;
  }

  .admin-dashboard {
    max-width: 1280px;
    padding: 30px 28px 42px;
  }

  .admin-hero {
    align-items: center;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    margin-bottom: 22px;
  }

  .admin-hero h1 {
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    margin-bottom: 12px;
  }

  .admin-hero p {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .admin-section {
    margin-top: 22px;
  }

  .section-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .admin-section-heading h2,
  .chart-card h2 {
    font-size: 1.25rem;
  }

  .admin-panel,
  .chart-card,
  .metric-card,
  .card {
    border-radius: 10px;
  }

  .admin-panel,
  .chart-card {
    padding: 16px;
  }

  .metric-card {
    min-height: 98px;
    padding: 15px;
  }

  .metric-card strong,
  .metric-list strong {
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  }

  .admin-actions-row .button,
  .admin-actions-row button {
    min-height: 38px;
    padding: 9px 12px;
  }

  .admin-filters {
    border-radius: 10px;
    padding: 12px;
  }

  .admin-filters select,
  .admin-filters input,
  .compact-filter input,
  .compact-filter select {
    min-height: 38px;
    padding: 9px 10px;
  }

  th,
  td {
    padding: 10px;
  }
}

@media (max-width: 760px) {
  .header.admin-app-header {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 14px;
  }

  .admin-app-header .brand-logo {
    width: min(210px, 78vw);
  }

  .header.admin-app-header .nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-dashboard {
    padding: 22px 14px 34px;
  }

  .admin-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .admin-panel,
  .chart-card,
  .card,
  .metric-card {
    border-radius: 10px;
    padding: 14px;
  }
}
