/* =========================================================
   PULSO · DESIGN SYSTEM
   ========================================================= */

:root {
  --bg: #000;
  --bg-soft: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-elev: rgba(255, 255, 255, 0.04);
  --fg: #fff;
  --muted: #aaa;
  --dim: #555;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #FF2E5A;
  --accent-soft: rgba(255, 46, 90, 0.15);
  --accent-glow: rgba(255, 46, 90, 0.35);
  --gold: #FFD700;
  --orange: #FFA500;
  --green: #3DDC97;
  --red: #FF4757;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'tnum';
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
img { max-width: 100%; display: block; }

/* =========================================================
   TIPOGRAFIA
   ========================================================= */

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.tag-muted { color: var(--muted); border-color: var(--line); }
.tag-green { color: var(--green); border-color: var(--green); }
.tag-red { color: var(--red); border-color: var(--red); }
.tag-gold { color: var(--gold); border-color: var(--gold); }

.label-tiny {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }

/* =========================================================
   LAYOUT BASE
   ========================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.2rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-large { font-size: 1.4rem; gap: 0.8rem; }
.brand-large .brand-dot { width: 14px; height: 14px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.user-chip .user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.user-chip .user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
}
.role-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 4px;
  width: fit-content;
}
.role-master {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.role-closer {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
}
.header-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
}
.header-link:hover, .header-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.header-logout { display: inline; }

@media (max-width: 640px) {
  .app-header { padding: 1rem 0.8rem; }
  .user-chip .user-meta { display: none; }
  .header-link { padding: 0.4rem 0.6rem; font-size: 0.72rem; }
}

.app-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-footer p + p { margin-top: 0.4rem; }
.app-footer .fine { text-transform: none; letter-spacing: 0; font-style: italic; color: var(--dim); font-size: 0.78rem; margin-top: 0.8rem; }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px -6px var(--accent-glow);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.btn-secondary:hover {
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
}
.btn-ghost:hover { color: var(--fg); }

.btn-block { width: 100%; }
.btn-large { padding: 1.2rem 2rem; font-size: 1rem; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp .wpp-icon {
  flex-shrink: 0;
}
.wpp-icon {
  display: inline-block;
  vertical-align: middle;
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  transition: all 0.3s var(--ease);
}

.card-hover:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
}

.card-accent {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 12px 32px -16px var(--accent-glow);
}

/* =========================================================
   FORMS
   ========================================================= */

.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-label .required { color: var(--accent); margin-left: 0.2rem; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font-size: 0.95rem;
  transition: all 0.2s var(--ease);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 46, 90, 0.04);
}

.form-textarea { resize: vertical; min-height: 90px; }
.form-help { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; font-style: italic; line-height: 1.4; }
.helper {
  display: block;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Modalidade da oferta — pills */
.modalidade-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
@media (min-width: 640px) {
  .modalidade-grid { grid-template-columns: repeat(3, 1fr); }
}
.modalidade-pill {
  position: relative;
  cursor: pointer;
}
.modalidade-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.modalidade-pill .modalidade-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s var(--ease);
  justify-content: center;
}
.modalidade-pill .modalidade-icon {
  font-size: 1.4rem;
}
.modalidade-pill input[type="radio"]:checked + .modalidade-label {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 24px -6px var(--accent-glow);
}
.modalidade-pill:hover .modalidade-label {
  border-color: var(--line-strong);
}

/* Labels condicionais dentro do bloco PIX */
.oferta-pix-label-pix, .oferta-pix-label-misto { display: none; }

/* Preview ao vivo da oferta */
.oferta-preview {
  margin-top: 1.4rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(180deg, rgba(255, 46, 90, 0.06), transparent);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.oferta-preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.oferta-preview-box {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.oferta-preview-total {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* Misto na página do lead */
.ad-card-misto {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
  margin: 0.6rem 0;
}
.ad-misto-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.8rem;
}
.ad-misto-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-misto-valor {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.ad-misto-plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
}

/* "Se aceitar essa proposta" — caixa final no Antes/Depois */
.oferta-aceitar {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  background: rgba(255, 46, 90, 0.08);
  border: 1px solid var(--accent);
  border-radius: 14px;
  text-align: center;
}
.oferta-aceitar-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.oferta-aceitar-valor {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.oferta-aceitar-modo {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Métrica destaque na calculadora dual (faturamento) */
.cd-metric-total {
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 46, 90, 0.3);
}
.cd-metric-total .cd-metric-value {
  font-size: clamp(1.6rem, 4vw, 2rem);
}
.form-error { color: var(--red); font-size: 0.85rem; margin-top: 0.4rem; }

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  background: var(--bg-card);
}
.fieldset legend {
  padding: 0 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =========================================================
   AVATAR / MONOGRAMA
   ========================================================= */

.monogram {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #FF6B85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px -6px var(--accent-glow);
}
.monogram-sm { width: 32px; height: 32px; font-size: 0.78rem; }
.monogram-lg { width: 64px; height: 64px; font-size: 1.4rem; }

/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.2rem;
  background:
    radial-gradient(ellipse at top, var(--accent-soft), transparent 60%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 520px;
  padding: 2.4rem 1.8rem;
  text-align: center;
}

.login-card h1 {
  font-size: 1.8rem;
  margin: 1rem 0 0.4rem;
}
.login-card .subtitle { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  margin-top: 1.6rem;
}
.login-error {
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: #ff8a98;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

.login-grid {
  display: grid;
  gap: 0.8rem;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition: all 0.25s var(--ease);
  width: 100%;
}
.login-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--bg-elev);
}
.login-btn .name { font-weight: 700; font-size: 0.95rem; }
.login-btn .email { font-size: 0.8rem; color: var(--muted); }
.login-btn .admin-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dash-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0 1.4rem;
}
@media (min-width: 768px) {
  .dash-hero {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.dash-hero h1 { font-size: 2rem; }
.dash-hero .lead { color: var(--muted); font-size: 0.95rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease);
}
.filter-pill.active, .filter-pill:hover {
  color: var(--fg);
  border-color: var(--fg);
}
.filter-select {
  padding: 0.5rem 0.8rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 6px;
  font-size: 0.85rem;
}

.proposal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding-bottom: 4rem;
}
@media (min-width: 768px) { .proposal-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .proposal-grid { grid-template-columns: 1fr 1fr 1fr; } }

.prop-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
}
.prop-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.prop-card .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}
.prop-card .head h3 { font-size: 1.05rem; line-height: 1.25; }
.prop-card .head .meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

.prop-card .price {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.prop-card .price-sub {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prop-card .info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}
.prop-card .info-row strong { color: var(--fg); font-weight: 600; }

.prop-card .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.prop-card .actions .btn { flex: 1; padding: 0.7rem 0.6rem; font-size: 0.78rem; }

.empty-state {
  text-align: center;
  padding: 4rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--bg-card);
}
.empty-state h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.empty-state p { color: var(--muted); font-style: italic; max-width: 480px; margin: 0 auto 1.4rem; }

/* =========================================================
   FORMULÁRIO NOVA PROPOSTA
   ========================================================= */

.form-page { padding: 2rem 0 4rem; }
.form-page h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.form-page .lead { color: var(--muted); margin-bottom: 2rem; }

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.form-error-banner {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid var(--red);
  color: #ff8a98;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
}

/* =========================================================
   PROPOSTA CRIADA (sucesso)
   ========================================================= */

.success-page {
  padding: 3rem 0 4rem;
  text-align: center;
}
.success-page h1 { font-size: 2.2rem; margin: 1rem 0 0.6rem; }
.success-page .lead { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; }

.share-card {
  padding: 2rem 1.4rem;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(255, 46, 90, 0.05), transparent);
  border-radius: 16px;
  margin-bottom: 2rem;
  text-align: left;
}

.link-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  word-break: break-all;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

.share-actions {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .share-actions { grid-template-columns: 1fr 1fr; }
}

.preview-frame {
  width: 100%;
  height: 600px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  margin: 2rem 0;
}

.copy-feedback {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--green);
  color: #000;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease);
  z-index: 1000;
}
.copy-feedback.visible { transform: translateX(-50%) translateY(0); }

/* =========================================================
   PÁGINA DO LEAD — A PEÇA CENTRAL
   ========================================================= */

.lead-page {
  background:
    radial-gradient(ellipse at top, var(--accent-soft), transparent 70%),
    var(--bg);
  min-height: 100vh;
}

.lead-section {
  padding: 2.4rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .lead-section { padding: 4rem 2rem; }
}

.lead-hero {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 2.6rem;
}

.lead-hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 1.2rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.lead-hero .subtitle {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

/* COUNTDOWN */
.countdown-wrap {
  margin: 1.5rem 0 0.6rem;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-size: clamp(2rem, 7vw, 4rem);
  font-feature-settings: 'tnum';
}
.countdown .unit { display: inline-flex; align-items: baseline; gap: 0.25rem; }
.countdown .unit-label {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.countdown .sep { color: var(--dim); font-weight: 400; font-size: 0.7em; }

.countdown.urgent { animation: pulse 1.6s infinite var(--ease); }
.countdown.critical { color: var(--red); animation: pulse 0.9s infinite var(--ease); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* Card consultor */
.consultor-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.consultor-card .info { flex: 1; }
.consultor-card .name { font-weight: 700; font-size: 1.05rem; }
.consultor-card .role {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.2rem;
}
.consultor-card .whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #25D366;
  margin-top: 0.5rem;
  font-weight: 600;
  transition: opacity 0.2s var(--ease);
}
.consultor-card .whatsapp-link:hover { opacity: 0.8; }

/* Recap */
.recap-section { text-align: center; }
.recap-section h2 { font-size: 1.4rem; margin: 0.8rem 0; font-weight: 700; }
.recap-text { color: var(--muted); font-size: 1rem; max-width: 620px; margin: 0 auto 1.4rem; font-style: italic; line-height: 1.6; }
.recap-quote {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.6rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  text-align: left;
  font-style: italic;
  color: var(--fg);
  line-height: 1.7;
  border-radius: 0 8px 8px 0;
}

/* Calculadora */
.calc-section { background: linear-gradient(180deg, transparent, rgba(255, 46, 90, 0.04)); }
.calc-section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.4rem;
}
.calc-section .calc-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.calc-inputs {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto 2rem;
}
@media (min-width: 640px) { .calc-inputs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .calc-inputs { grid-template-columns: repeat(5, 1fr); } }

.calc-input-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
  transition: border-color 0.2s var(--ease);
}
.calc-input-group:focus-within { border-color: var(--accent); }
.calc-input-group label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.calc-input-group input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 1.2rem;
  font-weight: 700;
}
.calc-input-group input:focus { outline: none; }

.calc-results {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) { .calc-results { grid-template-columns: 1fr 1fr; } }

.scenario {
  padding: 1.6rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.scenario.atual { color: var(--muted); }
.scenario.pulso { border-color: var(--accent); background: linear-gradient(180deg, rgba(255, 46, 90, 0.08), var(--bg-card)); }
.scenario h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--muted);
}
.scenario.pulso h3 { color: var(--accent); }
.scenario .receita {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.scenario .receita-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.scenario .sub-cenarios {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}
.scenario .sub {
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}
.scenario .sub-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.scenario .sub-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.gap-bar {
  max-width: 1000px;
  margin: 1.6rem auto 0;
  padding: 1.4rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
  text-align: center;
}
.gap-bar .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.gap-bar .value {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--fg);
  margin-top: 0.4rem;
}
.gap-bar .pct { color: var(--accent); margin-left: 0.5rem; }

.calc-reset {
  display: block;
  margin: 1.4rem auto 0;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}
.calc-reset:hover { color: var(--fg); border-color: var(--fg); }

/* Fases */
.fases-section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.4rem;
}
.fases-section .fases-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.fases-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) { .fases-grid { grid-template-columns: 1fr 1fr; } }

.fase-card {
  position: relative;
  padding: 1.6rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.4s var(--ease);
}
.fase-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.fase-card .num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.fase-card h3 { font-size: 1.1rem; letter-spacing: 0.06em; margin-bottom: 0.6rem; }
.fase-card .desc { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin-bottom: 1rem; }
.fase-card ul { list-style: none; padding: 0; }
.fase-card li {
  font-size: 0.85rem;
  padding: 0.4rem 0 0.4rem 1.2rem;
  position: relative;
  color: var(--fg);
  border-top: 1px solid var(--line);
}
.fase-card li:first-child { border-top: 0; }
.fase-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* Investimento */
.invest-section { text-align: center; }
.invest-section .tier-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.invest-section .preco {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 1rem 0 0.6rem;
  text-shadow: 0 8px 40px var(--accent-glow);
}
.invest-section .condicoes {
  font-size: 1rem;
  color: var(--fg);
  max-width: 540px;
  margin: 0 auto 1.4rem;
  line-height: 1.6;
}
.invest-section .selo {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.8rem;
}

/* Próxima conversa */
.next-meeting {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.6rem;
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: var(--accent-soft);
  text-align: center;
}
.next-meeting .tag { margin-bottom: 1.2rem; }
.next-meeting h3 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin-bottom: 1.4rem;
  line-height: 1.4;
  font-weight: 700;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 3rem 1.2rem;
}
.final-cta p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

/* =========================================================
   PROPOSTA EXPIRADA
   ========================================================= */

.expired-page {
  background: var(--bg);
  min-height: 100vh;
}
.expired-hero {
  text-align: center;
  padding: 4rem 1.2rem 2rem;
  border-bottom: 1px solid var(--line);
}
.expired-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--muted);
  margin: 1rem 0;
  letter-spacing: -0.01em;
}
.expired-hero .subtitle { color: var(--dim); font-style: italic; max-width: 540px; margin: 0 auto; }

.new-offer-card {
  max-width: 620px;
  margin: 3rem auto;
  padding: 2.4rem 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 46, 90, 0.06), transparent);
  text-align: center;
}
.new-offer-card h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 1rem 0;
}
.new-offer-card .preco {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin: 1rem 0 1.4rem;
  line-height: 1.3;
}
.new-offer-card p { color: var(--muted); font-style: italic; line-height: 1.6; }

/* =========================================================
   ADMIN
   ========================================================= */

.admin-page { padding: 2rem 0 4rem; }
.admin-page h1 { font-size: 1.8rem; margin-bottom: 1.4rem; }

.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }

.metric-card {
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric-card .label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.metric-card .value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-filters {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.4rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
@media (min-width: 768px) { .admin-filters { grid-template-columns: repeat(5, 1fr); align-items: end; } }

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table th, .admin-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  position: sticky;
  top: 0;
}
.admin-table tbody tr:hover { background: var(--bg-elev); }
.admin-table .consultor-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================================================
   STATUS BADGES
   ========================================================= */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-active { color: var(--green); border: 1px solid rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.08); }
.status-active::before { background: var(--green); }
.status-expired { color: var(--red); border: 1px solid rgba(255, 71, 87, 0.3); background: rgba(255, 71, 87, 0.08); }
.status-expired::before { background: var(--red); }
.status-opened { color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.08); }
.status-opened::before { background: var(--gold); }

/* =========================================================
   UTILITIES
   ========================================================= */

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-fine { font-style: italic; color: var(--dim); }
.mt-1 { margin-top: 0.6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 1.8rem; }
.mb-1 { margin-bottom: 0.6rem; }
.mb-2 { margin-bottom: 1.2rem; }
.mb-3 { margin-bottom: 1.8rem; }

.divider {
  height: 1px;
  background: var(--line);
  margin: 2rem 0;
}

.scroll-hint {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  animation: bounce 2s infinite var(--ease);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =========================================================
   ANTES / DEPOIS — CINEMATOGRÁFICO
   ========================================================= */

.ad-section {
  padding: 4rem 1.2rem;
  background: radial-gradient(ellipse at center, rgba(255, 46, 90, 0.08), transparent 70%);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .ad-section { padding: 6rem 2rem; }
}

.ad-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.6rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 46, 90, 0.05), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 46, 90, 0.3);
  box-shadow: 0 0 80px rgba(255, 46, 90, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .ad-container { padding: 4.5rem 3rem; }
}

.ad-eyebrow {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.ad-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.ad-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.6rem;
  font-style: italic;
}

.ad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: stretch;
  margin-bottom: 2.4rem;
}
.ad-arrow {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
  margin: -0.4rem 0;
}
@media (min-width: 768px) {
  .ad-grid { grid-template-columns: 1fr auto 1fr; gap: 2rem; }
  .ad-arrow { transform: none; font-size: 3rem; }
}

.ad-card {
  border-radius: 18px;
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.ad-antes {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}
.ad-antes .ad-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.4rem;
}
.ad-antes .ad-card-row { margin: 0.4rem 0; }
.ad-strike {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 71, 87, 0.5);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: #888;
}
.ad-antes .ad-card-foot {
  margin-top: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.ad-agora {
  background: linear-gradient(180deg, rgba(255, 46, 90, 0.12), rgba(255, 46, 90, 0.04));
  border: 2px solid var(--accent);
  box-shadow: 0 0 40px rgba(255, 46, 90, 0.25);
  color: var(--fg);
  animation: ad-fade-up 0.8s var(--ease) 0.2s both;
}
.ad-agora .ad-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.ad-agora .ad-card-main {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 0.8rem;
}
.ad-agora .ad-card-valor {
  display: block;
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  text-shadow: 0 0 60px rgba(255, 46, 90, 0.4);
  margin-top: 0.3rem;
}
.ad-agora .ad-card-pix {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@keyframes ad-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ad-economia {
  display: inline-block;
  padding: 1rem 1.6rem;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ADE80;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

/* =========================================================
   CALCULADORA DUAL
   ========================================================= */

.calc-dual-section {
  padding: 4rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(255, 46, 90, 0.03));
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .calc-dual-section { padding: 5rem 2rem; } }

.cd-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 2.4rem;
  line-height: 1.2;
  font-weight: 800;
}

.cd-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) { .cd-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }

.cd-col {
  border-radius: 16px;
  padding: 2rem 1.4rem;
}
.cd-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.cd-col .cd-sub {
  font-size: 0.82rem;
  font-style: italic;
  margin-bottom: 1.6rem;
  color: var(--muted);
}

.cd-atual {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.cd-atual h3 { color: var(--muted); }

.cd-alvo {
  background: linear-gradient(180deg, rgba(255, 46, 90, 0.06), rgba(255, 46, 90, 0.02));
  border: 2px solid var(--accent);
  box-shadow: 0 0 40px rgba(255, 46, 90, 0.12);
}
.cd-alvo h3 { color: var(--accent); }

.cd-metric {
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cd-metric:first-of-type { border-top: 0; padding-top: 0; }
.cd-metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.cd-metric-value {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
}
.cd-strong { color: var(--accent); }
.cd-delta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4ADE80;
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}
.cd-delta-warn { color: var(--orange); }

/* =========================================================
   PILARES
   ========================================================= */

.pilares-section {
  padding: 4rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .pilares-section { padding: 5rem 2rem; } }

.pilares-title {
  text-align: center;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.pilares-sub {
  text-align: center;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2.6rem;
  letter-spacing: 0.05em;
}

.pilar-card {
  display: flex;
  gap: 1.4rem;
  padding: 2rem 1.4rem;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: all 0.4s var(--ease);
  align-items: flex-start;
  position: relative;
}
@media (min-width: 768px) { .pilar-card { padding: 2.4rem 2rem; gap: 2rem; } }

.pilar-card:hover {
  border-color: var(--accent);
  transform: scale(1.01);
  background: rgba(255, 46, 90, 0.04);
}

.pilar-icon {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  flex-shrink: 0;
}

.pilar-content { flex: 1; }
.pilar-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pilar-num { color: var(--accent); margin-right: 0.3rem; }
.pilar-content p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
}

.pilar-bonus {
  background: linear-gradient(135deg, rgba(255, 46, 90, 0.18), rgba(255, 46, 90, 0.05));
  border: 2px solid var(--accent);
  box-shadow: 0 0 60px rgba(255, 46, 90, 0.25);
  animation: bonus-pulse 3s infinite var(--ease);
}
.pilar-bonus .pilar-content h3 { color: var(--fg); }
.pilar-bonus .pilar-content p { color: var(--fg); }
.pilar-bonus-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1300;
}

@keyframes bonus-pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(255, 46, 90, 0.25); }
  50%      { box-shadow: 0 0 80px rgba(255, 46, 90, 0.4); }
}

.next-meeting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.4rem;
}

/* =========================================================
   MASTER VIEW (3 abas)
   ========================================================= */

.master-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
  margin: 1.4rem 0 1.2rem;
  overflow-x: auto;
}
.master-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.master-tab:hover { color: var(--fg); }
.master-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-count {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-size: 0.72rem;
  min-width: 1.6rem;
  text-align: center;
}
.master-tab.active .tab-count {
  background: var(--accent-soft);
  color: var(--accent);
}

.master-filter {
  display: flex;
  align-items: end;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 360px;
}
.master-filter .form-label { margin-bottom: 0.3rem; }

.row-urgent {
  background: rgba(255, 46, 90, 0.08) !important;
}
.row-urgent strong { color: var(--accent); }

.status-accepted {
  color: var(--green);
  border: 1px solid rgba(61, 220, 151, 0.3);
  background: rgba(61, 220, 151, 0.08);
}
.status-accepted::before { background: var(--green); }

/* =========================================================
   CRM MASTER
   ========================================================= */

.crm-page h1 { font-size: 1.8rem; }

.performance-card {
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 46, 90, 0.06), rgba(0,0,0, 0.4));
  border: 1px solid var(--accent);
  border-radius: 14px;
  margin: 1.4rem 0 1.6rem;
}
.perf-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .perf-grid { grid-template-columns: repeat(5, 1fr); }
}
.perf-metric {
  text-align: left;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--line);
}
.perf-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.perf-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.perf-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.perf-green { color: var(--green); }
.perf-accent { color: var(--accent); }
.perf-red { color: var(--red); }

.crm-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: end;
}
.crm-filters .form-group { min-width: 180px; }

.crm-section {
  margin-bottom: 2.4rem;
}
.crm-section-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--line);
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.8rem;
}
.crm-section-head h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.crm-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.crm-empty {
  padding: 1.4rem;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.crm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
}
.crm-table th { padding: 0.7rem 0.9rem; }
.crm-table td { padding: 0.9rem; vertical-align: middle; }

.row-urgent {
  background: rgba(255, 46, 90, 0.06) !important;
  box-shadow: inset 4px 0 0 var(--accent);
}
.row-hot {
  background: rgba(255, 46, 90, 0.1) !important;
  animation: hot-pulse 2.4s infinite var(--ease);
}
@keyframes hot-pulse {
  0%, 100% { box-shadow: inset 4px 0 0 var(--accent), 0 0 0 0 rgba(255, 46, 90, 0.4); }
  50%      { box-shadow: inset 4px 0 0 var(--accent), 0 0 8px 2px rgba(255, 46, 90, 0.25); }
}

.crm-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.crm-novo     { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--line); }
.crm-visto    { background: rgba(120, 180, 255, 0.1); color: #78b4ff; border: 1px solid rgba(120, 180, 255, 0.3); }
.crm-aberto   { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); animation: hot-blink 1.4s infinite var(--ease); }
.crm-fechado  { background: rgba(61, 220, 151, 0.1); color: var(--green); border: 1px solid rgba(61, 220, 151, 0.3); }
.crm-expirado { background: rgba(255, 71, 87, 0.08); color: var(--red); border: 1px solid rgba(255, 71, 87, 0.3); }

@keyframes hot-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.65; }
}

.crm-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.crm-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.crm-action-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.2rem;
}
.modal-content {
  width: 100%;
  max-width: 480px;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 2rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255, 46, 90, 0.2);
}
.modal-content h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }

