/* =========================================================
   CALCMARKUP - STYLE.CSS ORGANIZADO
   ========================================================= */

/* =========================================================
   01. VARIÁVEIS E RESET
   ========================================================= */

:root {
  --azul: #0f4c81;
  --azul-escuro: #0a3558;
  --azul-profundo: #0f4c5c;
  --azul-profundo-escuro: #0b2f3a;
  --azul-suave: #eaf3fb;

  --verde: #166534;
  --verde-claro: #dcfce7;
  --vermelho: #c62828;
  --amarelo: #fff8d6;

  --texto: #1f2a37;
  --texto-escuro: #0f172a;
  --texto-suave: #5a6775;
  --cinza: #64748b;

  --branco: #ffffff;
  --fundo: #e9eef2;
  --fundo-claro: #f8fafc;
  --borda: #d9e6f2;
  --borda-clara: #dbe3ea;

  --sombra-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --sombra-card-forte: 0 22px 60px rgba(15, 23, 42, 0.14);
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--texto);
}

a {
  color: inherit;
}

/* =========================================================
   02. COMPONENTES GERAIS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--azul);
  color: var(--branco) !important;
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.18);
}

.btn-primary:hover {
  background: var(--azul-escuro);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f8fbfe;
  color: var(--azul-escuro) !important;
  border: 1px solid var(--borda);
}

.btn-secondary:hover {
  background: #eef5fb;
}

.btn-danger,
.admin-menu-exit {
  background: #b91c1c !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

.btn-danger:hover,
.admin-menu-exit:hover {
  background: #991b1b !important;
}

.btn-small {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.btn-full {
  width: 100%;
  margin-top: 14px;
  font-size: 1rem;
}

.btn-icon {
  gap: 6px;
  white-space: nowrap;
}

.muted {
  color: var(--texto-suave);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--vermelho);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.alert,
.alert-error,
.alert-success {
  padding: 13px 14px;
  border-radius: 12px;
  margin: 16px 0;
  font-weight: 700;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* =========================================================
   03. PÁGINA INICIAL
   ========================================================= */

body.home-page {
  min-height: 100vh;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #eef6fd 0%, #f8fbfe 45%, #eef3f8 100%);
}

.home-container {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  background: var(--branco);
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
}

.hero {
  min-height: 520px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul));
  color: var(--branco);
}

.hero-card {
  width: 100%;
  max-width: 460px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  backdrop-filter: blur(4px);
}

.hero-card img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.hero-card h2 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1.3;
}

.hero-card p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

.hero-description {
  color: #ffffff !important;
}

.content {
  padding: 56px 46px;
  display: flex;
  align-items: center;
}

.content-inner {
  max-width: 460px;
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--azul-suave);
  color: var(--azul-escuro);
  font-size: 0.92rem;
  font-weight: 700;
}

.home-page h1 {
  margin-bottom: 18px;
  color: var(--azul-escuro);
  font-size: 2.3rem;
  line-height: 1.2;
}

.home-page p {
  margin-bottom: 16px;
  color: var(--texto);
  font-size: 1.06rem;
  line-height: 1.75;
}

.actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.home-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.home-actions .btn {
  width: 100%;
  max-width: 280px;
}

.btn-main-action {
  min-height: 48px;
  font-size: 1.05rem;
}

.home-links {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--cinza);
  font-size: 0.92rem;
}

.home-links a {
  color: var(--azul-profundo);
  font-weight: 700;
  text-decoration: none;
}

.home-links a:hover {
  text-decoration: underline;
}

.footer-note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
  color: var(--texto-suave);
  font-size: 0.94rem;
}

/* =========================================================
   04. LOGIN, PAINEL E TOPO PADRÃO
   ========================================================= */

body.auth-page,
body.panel-page {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #eef6fd 0%, #f8fbfe 45%, #eef3f8 100%);
}

.auth-container {
  min-height: 100vh;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card,
.panel-card {
  width: 100%;
  max-width: 460px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid rgba(15, 76, 129, 0.10);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
}

.auth-logo {
  display: block;
  max-width: 180px;
  margin: 0 auto 20px;
}

.auth-card h1,
.panel-card h1 {
  margin-bottom: 10px;
  color: var(--azul-escuro);
  line-height: 1.25;
}

.form-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-box label {
  margin-top: 8px;
  color: var(--azul-escuro);
  font-weight: 700;
}

.form-box input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
}

.form-box input:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.auth-links,
.login-links {
  margin-top: 18px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.auth-links a,
.login-links a {
  color: #1f7a3f;
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover,
.login-links a:hover {
  text-decoration: underline;
}

.topbar {
  width: 100%;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--borda);
}

.topbar strong {
  display: block;
  color: var(--azul-escuro);
  font-size: 1.2rem;
}

.topbar span {
  color: var(--texto-suave);
  font-size: 0.92rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 24px;
}

.panel-card {
  max-width: 760px;
  margin: 0 auto;
}

.license-box {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--borda);
  border-radius: 16px;
}

.license-days {
    color: #0f4c5c;
    font-weight: 800;
    margin-left: 4px;
}

.license-box h2 {
  margin-bottom: 10px;
  color: var(--azul-escuro);
}

.license-box p {
  margin: 7px 0;
  line-height: 1.55;
}

.license-active {
  background: #eefaf1;
  border-color: #bde5c8;
}

.license-blocked {
  background: #fff4f4;
  border-color: #f5c2c0;
}

/* =========================================================
   05. PÁGINAS LEGAIS: POLÍTICA E TERMOS
   ========================================================= */

.policy-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0f766e 100%);
  color: #1e293b;
}

.policy-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 20px;
}

.policy-page .policy-container {
    padding-top: 42px;
}

.policy-page .policy-card .actions {
    display: none;
}

.policy-card {
  padding: 44px 52px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  line-height: 1.7;
}

.policy-card h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

.policy-card .muted {
  margin-bottom: 28px;
  color: #64748b;
  font-size: 0.95rem;
}

.policy-card h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  color: #14532d;
  font-size: 1.25rem;
}

.policy-card p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 1rem;
}

.policy-card strong {
  color: #0f172a;
}

.policy-card ul {
  margin: 10px 0 22px 22px;
}

.policy-card li {
  margin-bottom: 8px;
  color: #334155;
}

.policy-card .actions {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

/* Mantido para compatibilidade com política antiga, caso alguma página ainda use. */
body.privacy-page {
  margin: 0;
  background: #f4f6f8;
  color: #1f2937;
  line-height: 1.6;
}

.privacy-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 32px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.privacy-page h1,
.privacy-page h2 {
  color: #0f4c5c;
}

.privacy-page h1 {
  margin-top: 0;
  font-size: 2rem;
}

.privacy-page h2 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.privacy-page p,
.privacy-page li {
  font-size: 1rem;
}

.privacy-page ul {
  padding-left: 22px;
}

.update {
  margin-bottom: 24px;
  color: #5b6573;
  font-weight: bold;
}

.contact-box {
  margin-top: 28px;
  padding: 18px;
  background: var(--amarelo);
  border-left: 5px solid var(--vermelho);
  border-radius: 8px;
}

/* =========================================================
   06. TROCA DE SENHA
   ========================================================= */

.password-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #e9eef2 0%, #f8fafc 45%, #e0f2fe 100%);
  color: var(--texto-escuro);
}

.password-container {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 48px 0;
}

.password-card {
  padding: 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
}

.password-header {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.password-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #e0f2fe;
  color: var(--azul-profundo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.password-header h1 {
  margin: 0;
  color: var(--azul-profundo);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.password-header p {
  margin: 6px 0 0;
  color: #64748b;
}

.password-form {
  display: grid;
  gap: 18px;
}

.password-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.password-form label span {
  color: #475569;
  font-weight: 800;
  font-size: 0.95rem;
}

.password-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: var(--texto-escuro);
  font-size: 1rem;
  outline: none;
}

.password-form input:focus {
  border-color: var(--azul-profundo);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}

.password-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   07. ADMIN - LAYOUT, CABEÇALHO E COMPONENTES
   ========================================================= */

body.admin-page,
.admin-layout {
  min-height: 100vh;
  background: var(--fundo);
  color: var(--texto-escuro);
}

.admin-topbar {
  width: 100%;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-profundo-escuro));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.admin-brand {
  min-width: 230px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.admin-brand img {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 12px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.admin-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.1;
}

.admin-brand span {
  display: block;
  margin-top: 3px;
  color: #dff7fb;
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-menu-link {
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.admin-menu-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.admin-menu-link.active {
  background: var(--amarelo);
  color: var(--azul-profundo) !important;
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.18);
}

.admin-container {
  width: min(100% - 32px, 1100px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 0 48px;
}

.admin-card,
.config-card,
.requests-card {
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--sombra-card);
}

.admin-card {
  margin-bottom: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--borda);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--azul-escuro);
  font-size: 2rem;
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.badge {
  padding: 5px 10px;
  font-size: 0.85rem;
}

.status-pill {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.badge-ok,
.status-assinatura_criada {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.badge-warn,
.status-aguardando_pagamento {
  background: var(--amarelo);
  color: #92400e;
  border: 1px solid #facc15;
}

.badge-block,
.status-cancelado {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-neutral,
.status-pagamento_confirmado {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

/* =========================================================
   08. ADMIN - FORMULÁRIOS, TABELAS E CONFIGURAÇÕES
   ========================================================= */

.admin-form {
  max-width: 620px;
  display: grid;
  gap: 20px;
}

.form-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .full,
.full-field {
  grid-column: 1 / -1;
}

.form-grid label,
.admin-form label,
.config-field,
.subscribe-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid label,
.admin-form label span,
.config-field > span,
.subscribe-form label span,
.price-box > span {
  color: #334155;
  font-weight: 900;
  font-size: 0.95rem;
}

.form-grid input,
.form-grid select,
.admin-form input,
.subscribe-form input,
.subscribe-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: var(--texto-escuro);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
}

.form-grid input:focus,
.form-grid select:focus,
.admin-form input:focus,
.subscribe-form input:focus,
.subscribe-form textarea:focus {
  border-color: var(--azul-profundo);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}

.admin-form small,
.config-field small {
  color: var(--cinza);
  line-height: 1.5;
}

.inline-form {
  display: inline;
}

.table-wrap,
.requests-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table,
.requests-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.admin-table {
  margin-top: 16px;
}

.admin-table th,
.admin-table td,
.requests-table th,
.requests-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #edf2f7;
}

.admin-table th {
  background: #f8fbfe;
  color: var(--azul-escuro);
  font-size: 0.92rem;
}

.requests-table-wrap {
  border: 1px solid #dbe3ea;
  border-radius: 18px;
}

.requests-table {
  min-width: 1080px;
}

.requests-table th {
  background: var(--azul-profundo);
  color: #ffffff;
  font-size: 0.88rem;
}

.requests-table td {
  color: var(--texto-escuro);
  border-top: 1px solid #e2e8f0;
}

.requests-table small {
  color: var(--cinza);
  font-weight: 600;
}

.requests-table tbody tr:nth-child(even) td {
  background: var(--fundo-claro);
}

.request-actions {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-actions form {
  margin: 0;
}

.request-actions .btn {
  width: 100%;
  min-height: 38px;
  font-size: 0.84rem;
}

.request-note-row td {
  background: var(--amarelo) !important;
  color: #334155;
  line-height: 1.5;
}

.config-container {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 42px 0;
}

.config-card {
  padding: 38px;
  border-radius: 24px;
  box-shadow: var(--sombra-card-forte);
}

.config-header,
.subscribe-header,
.payment-header {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.config-icon,
.subscribe-icon,
.payment-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
  font-size: 2rem;
}

.config-header h1,
.subscribe-header h1,
.payment-header h1 {
  margin: 0;
  color: var(--texto-escuro);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.config-header .muted,
.subscribe-header p,
.payment-header p {
  margin: 6px 0 0;
  color: var(--cinza);
  font-weight: 600;
  line-height: 1.45;
}

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

.config-setting-card {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 26px;
  align-items: center;
  background: linear-gradient(135deg, var(--fundo-claro), #f1f5f9);
  border: 1px solid #dbe3ea;
  border-radius: 20px;
}

.config-setting-text h2 {
  margin: 0 0 8px;
  color: var(--azul-profundo);
  font-size: 1.35rem;
}

.config-setting-text p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  font-weight: 600;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-with-unit input {
  width: 130px;
  max-width: 180px;
  min-height: 52px;
  border-radius: 14px;
  color: var(--azul-profundo);
  font-size: 1.25rem;
  font-weight: 900;
}

.input-with-unit strong {
  color: var(--texto-escuro);
  font-size: 1rem;
}

.money-config-input {
  justify-content: flex-start;
}

.money-config-input strong {
  color: var(--azul-profundo);
  font-size: 1.1rem;
  font-weight: 900;
}

.config-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   09. PÁGINAS PÚBLICAS: ASSINATURA E PAGAMENTO PIX
   ========================================================= */

.subscribe-page,
.payment-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #e9eef2 0%, #f8fafc 50%, #e0f2fe 100%);
  color: var(--texto-escuro);
}

.subscribe-container,
.payment-container {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 46px 0;
}

.subscribe-card,
.payment-card {
  padding: 38px;
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 24px;
  box-shadow: var(--sombra-card-forte);
}

.subscribe-form {
  display: grid;
  gap: 22px;
}

.subscribe-form textarea {
  resize: vertical;
}

.price-box,
.payment-summary > div,
.pix-info > div,
.bank-info > div {
  background: var(--fundo-claro);
  border: 1px solid #dbe3ea;
  border-radius: 16px;
  padding: 16px;
}

.price-box {
  display: grid;
  gap: 6px;
}

.price-box strong {
  color: var(--azul-profundo);
  font-size: 1.45rem;
}

#valorTotal {
  color: var(--verde);
  font-size: 1.75rem;
  font-weight: 900;
}

.price-box small {
  color: var(--cinza);
  line-height: 1.45;
}

.subscribe-actions,
.payment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-summary {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-summary span,
.bank-info span,
.payment-code-box span,
.pix-info span,
.pix-copy-area span {
  color: var(--cinza);
  font-weight: 800;
  font-size: 0.88rem;
}

.payment-summary strong,
.bank-info strong,
.pix-info strong {
  color: var(--texto-escuro);
  font-size: 1rem;
  word-break: break-word;
}

.payment-total {
  background: #ecfdf5 !important;
  border-color: #86efac !important;
}

.payment-total strong {
  color: var(--verde);
  font-size: 1.55rem;
}

.bank-card,
.payment-note,
.pix-card {
  margin-top: 22px;
  padding: 24px;
  background: var(--fundo-claro);
  border: 1px solid #dbe3ea;
  border-radius: 20px;
}

.bank-card h2,
.payment-note h2,
.pix-card h2 {
  margin: 0 0 10px;
  color: var(--azul-profundo);
}

.bank-card p,
.payment-note p,
.pix-card p {
  color: #475569;
  line-height: 1.55;
  font-weight: 600;
}

.bank-info,
.pix-info {
  display: grid;
  gap: 14px;
}

.bank-info {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-code-box {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  gap: 6px;
  background: var(--amarelo);
  border: 1px solid #facc15;
  border-radius: 16px;
}

.payment-code-box strong {
  color: var(--vermelho);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.pix-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.pix-qrcode-box {
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 18px;
}

.pix-copy-area {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.pix-copy-area textarea {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: var(--texto-escuro);
  font-size: 0.9rem;
  resize: vertical;
}

.pix-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.pix-copy-feedback {
  margin: 10px 0 0;
  color: var(--verde);
  font-weight: 800;
}

/* =========================================================
   10. RESPONSIVIDADE
   ========================================================= */

@media (max-width: 980px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .admin-brand {
    min-width: 0;
  }

  .admin-menu {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .home-container {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 34px 24px;
  }

  .content {
    padding: 38px 24px 42px;
  }

  .home-page h1 {
    font-size: 1.95rem;
  }
}

@media (max-width: 760px) {
  .admin-grid,
  .form-grid,
  .config-setting-card,
  .payment-summary,
  .bank-info,
  .pix-layout {
    grid-template-columns: 1fr;
  }

  .config-container,
  .requests-container,
  .subscribe-container,
  .payment-container {
    width: min(100% - 24px, 1280px);
    padding: 28px 0;
  }

  .admin-card,
  .config-card,
  .requests-card,
  .subscribe-card,
  .payment-card {
    padding: 24px;
    border-radius: 20px;
  }

  .config-header,
  .subscribe-header,
  .payment-header,
  .password-header {
    align-items: flex-start;
  }

  .input-with-unit {
    align-items: stretch;
    flex-direction: column;
  }

  .input-with-unit input {
    width: 100%;
    max-width: 100%;
  }

  .config-actions,
  .subscribe-actions,
  .payment-actions,
  .password-actions {
    flex-direction: column;
  }

  .config-actions .btn,
  .subscribe-actions .btn,
  .payment-actions .btn,
  .password-actions .btn,
  .pix-actions .btn,
  .admin-form .btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .btn {
    flex: 1;
  }

  .policy-container {
    padding: 28px 14px;
  }

  .policy-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .policy-card h1 {
    font-size: 1.75rem;
  }

  .policy-card h2 {
    font-size: 1.12rem;
  }

  .policy-card .actions {
    flex-direction: column;
  }

  .policy-card .btn {
    width: 100%;
  }

  .home-actions {
    align-items: stretch;
  }

  .home-actions .btn {
    max-width: none;
  }

  .home-links {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .admin-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-menu-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .auth-card,
  .panel-card,
  .password-card {
    padding: 24px 18px;
  }

  .privacy-container {
    margin: 16px;
    padding: 24px 18px;
  }

  .privacy-page h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 560px) {
  body.home-page {
    padding: 14px;
  }

  .hero-card {
    padding: 18px;
  }

  .content {
    padding: 30px 20px 34px;
  }

  .home-page h1 {
    font-size: 1.7rem;
  }

  .home-page p {
    font-size: 1rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
