/* ============================================================
   components.css — PayIA reusable components
   ============================================================ */

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-smooth), opacity var(--transition-fast), background var(--transition-smooth);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--brand-ink, #0F172A);
  color: white;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}
.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.20);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }

.btn-outline {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn-outline:hover { border-color: var(--brand-ink, #0F172A); background: var(--bg-elevated); }

.btn-white {
  background: white;
  color: #080810;
  font-weight: 800;
}
.btn-white:hover { background: #f0f0f0; transform: scale(1.02); }
.btn-white:active { transform: scale(0.98); }

.btn-teal {
  background: linear-gradient(135deg, var(--brand-teal), #0891b2);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
}

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* Shimmer on primary hover */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--glow-purple);
}

/* KPI Card */
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.4), transparent);
}
.kpi-card:hover { transform: translateY(-2px); border-color: rgba(124, 58, 237, 0.2); }

.kpi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.kpi-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  color: var(--brand-bright);
  flex-shrink: 0;
}
.kpi-icon.teal   { background: rgba(6,182,212,0.15);  color: var(--brand-teal); }
.kpi-icon.success{ background: rgba(62,207,142,0.15); color: var(--success); }
.kpi-icon.danger { background: rgba(241,100,100,0.15);color: var(--danger); }

.kpi-value { font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.kpi-value.success-val { color: var(--success); }
.kpi-value.danger-val  { color: var(--danger); }
.kpi-value.teal-val    { color: var(--brand-teal); }

.kpi-sub { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.kpi-up   { color: var(--success); }
.kpi-down { color: var(--danger); }

.kpi-progress { margin-top: 12px; }
.progress-bar-bg { height: 4px; background: var(--bg-elevated); border-radius: 99px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand-teal), #0891b2); border-radius: 99px; transition: width 0.8s ease; }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.badge-overdue {
  background: var(--overdue);
  color: var(--danger);
  border: 1px solid rgba(241,100,100,0.25);
  animation: pulse-badge 2.5s ease-in-out infinite;
}
.badge-pending {
  background: var(--pending);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.2);
}
.badge-paid {
  background: var(--paid);
  color: var(--success);
  border: 1px solid rgba(62,207,142,0.2);
}
.badge-scheduled { background: rgba(56, 189, 248, 0.12); color: var(--brand-bright); border: 1px solid rgba(56, 189, 248, 0.2); }
.badge-sent      { background: var(--paid);    color: var(--success); }
.badge-cancelled { background: var(--overdue); color: var(--danger); }

/* ─── Form Elements ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; position: relative; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--brand-primary);
  box-shadow: var(--glow-purple);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.input-error  { border-color: var(--danger); }

.form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  padding: 12px 36px 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-select:focus { border-color: var(--brand-primary); box-shadow: var(--glow-purple); outline: none; }
.form-select option { background: var(--bg-card); }

.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 44px; }
.input-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex; align-items: center;
  transition: color var(--transition-fast);
  padding: 4px;
}
.input-eye:hover { color: var(--text-secondary); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 4px;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.form-checkbox span { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.form-checkbox a { color: var(--brand-bright); text-decoration: underline; }

.field-error { display: block; font-size: 12px; color: var(--danger); margin-top: 6px; font-weight: 500; }

/* Divider with text */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ─── Auth Card ──────────────────────────────────────────────── */
.auth-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s ease;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}
.auth-footer-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
}
.auth-footer-link a { color: var(--brand-bright); font-weight: 600; }

/* Google Button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.btn-google:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.15); color: var(--text-primary); }

/* ─── Bento Cards ────────────────────────────────────────────── */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(124,58,237,0.12) 0%, transparent 100%);
  pointer-events: none;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--glow-purple);
}

.bento-large { grid-column: span 2; }

.bento-card-inner { padding: 28px; height: 100%; display: flex; flex-direction: column; }
.bento-icon {
  width: 44px; height: 44px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-bright);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.bento-icon.teal { background: rgba(6,182,212,0.15); color: var(--brand-teal); }
.bento-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.bento-card p  { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }

/* Bento bar chart */
.bento-chart { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bento-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
  flex: 1;
}
.bc-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.bc-group span { font-size: 10px; color: var(--text-muted); }
.bc-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  height: var(--h);
  transition: height 0.4s ease;
  min-height: 3px;
}
.bc-bar.received { background: linear-gradient(to top, rgba(6,182,212,0.7), rgba(6,182,212,0.3)); }
.bc-bar.late     { background: linear-gradient(to top, rgba(241,100,100,0.7), rgba(241,100,100,0.3)); }
.bento-chart-legend { display: flex; gap: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.legend-item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.received-legend::before { background: var(--brand-teal); }
.late-legend::before     { background: var(--danger); }

/* Bento message preview */
.bento-message-preview {
  flex: 1;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.typewriter-preview::after { content: '|'; animation: blink 0.7s ease-in-out infinite; color: var(--brand-bright); }

/* Bento channels */
.bento-channels { display: flex; gap: 10px; margin-bottom: 16px; }
.channel-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.channel-icon.wpp   { background: rgba(37,211,102,0.15); color: #25D366; }
.channel-icon.email { background: rgba(6,182,212,0.15);  color: var(--brand-teal); }

/* ─── Pricing Cards ──────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,0.08); }
.pricing-card-inner { padding: 32px; }

/* Card destaque escuro — único ponto de contraste forte da página */
.pricing-featured {
  background: linear-gradient(180deg, #0F172A, #131E36);
  border-color: #0F172A;
  box-shadow: 0 24px 60px rgba(15,23,42,0.25);
  position: relative;
}
.pricing-featured .plan-name { color: #8FA0BC; }
.pricing-featured .price-currency,
.pricing-featured .price-value,
.pricing-featured .price-period { color: #fff; }
.pricing-featured .plan-desc { color: #C0C9D9; }
.pricing-featured .plan-features li { color: #C0C9D9; }
.pricing-featured .check-icon { color: #34D399; }
.pricing-featured .btn-primary { background: #fff; color: #0F172A; box-shadow: none; }
.pricing-featured .btn-primary:hover { background: #EEF1F6; }
.pricing-featured:hover { box-shadow: 0 30px 70px rgba(15,23,42,0.32); }
.pricing-featured .pricing-card-inner { padding-top: 44px; }

.plan-badge {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-primary));
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 8px; }
.price-currency { font-size: 20px; font-weight: 700; color: var(--text-secondary); }
.price-value    { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.price-period   { font-size: 15px; color: var(--text-muted); margin-left: 2px; }
.price-custom   { font-size: 28px; font-weight: 800; }

.plan-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.check-icon { color: var(--brand-teal); font-weight: 900; font-size: 15px; flex-shrink: 0; }
.plan-feature-disabled { opacity: 0.4; text-decoration: line-through; }

/* ─── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 16, 0.85);
  /* backdrop-filter removido — causava input lag pesado em modais */
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-card::-webkit-scrollbar { width: 4px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 2px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}
.modal-title::before {
  content: '';
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #A78BFA, #7C3AED);
  flex-shrink: 0;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.modal-close:hover { background: var(--bg-elevated); color: var(--text-primary); }

/* ─── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 240px;
  max-width: 340px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: all;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger);  }
.toast-info    { border-left: 3px solid var(--brand-primary); }

/* ─── Sidebar Mobile Toggle ──────────────────────────────────── */
#sidebarToggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
#sidebarToggle:hover { background: var(--bg-elevated); }

@media (max-width: 767px) {
  #sidebarToggle { display: flex; }
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-card); }

/* ─── Custom Highlights ──────────────────────────────────────── */
.row-critical {
  background: rgba(241, 100, 100, 0.05);
  border-left: 3px solid var(--danger);
}
.row-critical:hover {
  background: rgba(241, 100, 100, 0.1);
}

/* ─── Print Styles ───────────────────────────────────────────── */
@media print {
  body * {
    visibility: hidden;
  }
  #tab-reports, #tab-reports * {
    visibility: visible;
  }
  #tab-reports {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .sidebar, .dashboard-header, .dashboard-tabs, .table-search, .btn, .no-print, th.no-print, td.no-print {
    display: none !important;
  }
  .kpi-card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }
  body {
    background: #fff;
    color: #000;
  }
  .dashboard-main {
    padding: 0;
    margin: 0;
  }
}

/* ─── CRM Layout ─────────────────────────────────────────────── */
.crm-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  min-height: 600px;
}

.crm-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 620px;
}

.crm-client-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}

.crm-client-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.crm-client-card:hover {
  background: rgba(37, 99, 235, 0.06);
}
.crm-client-card.active {
  background: rgba(37, 99, 235, 0.10);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 10px 10px 0;
}

.crm-details-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 620px;
  overflow-y: auto;
}

.crm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-muted);
  text-align: center;
}

/* CRM details headers & notes */
.crm-client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}
.crm-notes-section h4, .crm-history-section h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}
.crm-notes-section textarea {
  width: 100%;
  min-height: 80px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  padding: 12px;
  font-size: 14px;
  color: var(--text-primary);
  resize: vertical;
  font-family: inherit;
  margin-bottom: 8px;
  transition: border-color var(--transition-fast);
}
.crm-notes-section textarea:focus {
  border-color: var(--brand-ink, #0F172A);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.08);
  outline: none;
}

/* Cabeçalho da seção com título + status */
.crm-notes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.crm-notes-head h4 { margin: 0; }
.crm-notes-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted, #667085);
  min-height: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease;
}
.crm-notes-status[data-state="saving"] { color: var(--text-muted, #667085); }
.crm-notes-status[data-state="saving"]::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted, #667085);
  animation: crmDot 0.9s ease-in-out infinite;
}
.crm-notes-status[data-state="saved"] { color: #059669; }
.crm-notes-status[data-state="saved"]::before {
  content: '✓'; font-weight: 900;
}
.crm-notes-status[data-state="error"] { color: #DC2626; }
@keyframes crmDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.75); }
}

/* Textarea repaginada + hint */
.crm-notes-textarea {
  width: 100%;
  min-height: 100px;
  background: #fff;
  border: 1px solid var(--border-card, #E4E7EC);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-primary, #0B1220);
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.crm-notes-textarea:focus {
  border-color: var(--brand-ink, #0F172A);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.08);
  outline: none;
}
.crm-notes-textarea::placeholder { color: var(--text-muted, #667085); }
.crm-notes-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-muted, #667085);
}

/* CRM History Timeline */
.crm-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
  margin-top: 14px;
}
.crm-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-subtle);
}
.crm-timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.crm-timeline-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--brand-primary);
}
.crm-timeline-dot.WhatsApp { border-color: #25D366; }
.crm-timeline-dot.Email    { border-color: var(--brand-teal); }
.crm-timeline-dot.Ligacao  { border-color: var(--brand-primary); }
.crm-timeline-dot.Outro    { border-color: var(--text-muted); }

.crm-timeline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.crm-timeline-channel {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-elevated);
}
.crm-timeline-channel.WhatsApp { background: rgba(37,211,102,0.12); color: #128C7E; }
.crm-timeline-channel.Email    { background: rgba(6,182,212,0.12);  color: #0891b2; }
.crm-timeline-channel.Ligacao  { background: rgba(124,58,237,0.12); color: var(--brand-primary); }

.crm-timeline-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CRM Log Interaction Form */
.crm-log-form {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  background: var(--bg-elevated);
  padding: 14px;
  border-radius: 10px;
  align-items: center;
}

@media (max-width: 1023px) {
  .crm-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .crm-sidebar, .crm-details-pane {
    height: auto;
    max-height: 500px;
  }
}

/* ============================================================
   AI Mensagens — versão premium
   ============================================================ */

/* Hero */
.ai-hero {
  position: relative;
  margin-bottom: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 60%, #0F172A 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}
.ai-hero-glow {
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(500px 280px at 0% 100%, rgba(124, 58, 237, 0.30), transparent 60%);
  pointer-events: none;
  filter: blur(10px);
}
.ai-hero-content { position: relative; z-index: 1; }
.ai-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}
.ai-hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ECF8E;
  box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.2), 0 0 10px rgba(62, 207, 142, 0.6);
  animation: aiPulse 1.8s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.7; }
}
.ai-hero-title {
  margin: 16px 0 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.ai-hero-gradient {
  background: linear-gradient(90deg, #38BDF8 0%, #7C3AED 50%, #38BDF8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aiShine 8s linear infinite;
}
@keyframes aiShine {
  to { background-position: 200% center; }
}
.ai-hero-sub {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 22px;
}

/* Steps */
.ai-hero-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ai-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ai-step:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.ai-step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C3AED, #38BDF8);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
}
.ai-step-info { display: flex; flex-direction: column; gap: 4px; }
.ai-step-info strong { font-size: 13px; color: #fff; }
.ai-step-info span    { font-size: 12px; color: #94a3b8; line-height: 1.5; }

/* Section header (config + output) */
.ai-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ai-section-pill {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.10);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.ai-pill-live {
  background: rgba(62, 207, 142, 0.10);
  color: #3ECF8E;
  border-color: rgba(62, 207, 142, 0.25);
}

/* Config card moderno */
.ai-config-modern {
  background: var(--bg-default, #fff);
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

/* Botão Gerar Mensagem com gradient + glow */
.btn-ai-generate {
  position: relative;
  background: linear-gradient(135deg, #7C3AED 0%, #38BDF8 100%) !important;
  border: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  padding: 13px 18px !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-ai-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.btn-ai-generate:active { transform: translateY(0); }
.ai-btn-spark {
  font-size: 17px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.7));
  animation: sparkBlink 2.5s ease-in-out infinite;
}
@keyframes sparkBlink {
  0%, 100% { opacity: 1; transform: rotate(0deg) scale(1); }
  50%      { opacity: 0.6; transform: rotate(180deg) scale(1.15); }
}

/* Tip embaixo do botão */
.ai-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
}
.ai-tip svg { flex-shrink: 0; margin-top: 2px; color: #38BDF8; }

/* Output: Empty state polido */
.ai-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 20px;
  color: rgba(203, 213, 225, 0.7);
}
.ai-empty svg {
  margin-bottom: 4px;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.4));
  animation: emptyFloat 3.5s ease-in-out infinite;
}
@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.ai-empty p { margin: 0; text-align: center; font-size: 14px; }
.ai-empty p strong {
  background: linear-gradient(90deg, #38BDF8, #7C3AED);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ai-empty-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* Hero compacto — caber sem scroll */
.ai-hero-compact {
  padding: 20px 28px;
  margin-bottom: 16px;
  border-radius: 16px;
}
.ai-hero-compact .ai-hero-title {
  font-size: 22px;
  margin: 8px 0 0;
}
.ai-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ai-hero-steps-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-step-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}
.ai-step-mini b {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #38BDF8);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.ai-step-arrow { color: rgba(255, 255, 255, 0.3); font-size: 14px; }

/* Campo de instruções personalizadas */
.ai-instructions {
  resize: vertical;
  min-height: 56px;
  max-height: 120px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}
.ai-label-optional {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

/* Fonte legível no preview (não mais monospace cru) */
#aiOutputText {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14px;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-wrap: break-word;
  letter-spacing: 0;
  font-weight: 400;
  padding: 4px 2px;
}
.terminal-body { min-height: 320px; }

/* Responsivo */
@media (max-width: 768px) {
  .ai-hero { padding: 18px 16px; }
  .ai-hero-title { font-size: 18px; }
  .ai-hero-steps { grid-template-columns: 1fr; }
  .ai-hero-row { flex-direction: column; align-items: flex-start; }
  .ai-hero-steps-compact { width: 100%; justify-content: flex-start; }
}

/* ============================================================
   LANDING — Hero stats + How it works + Modules + VS
   ============================================================ */

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 540px;
  margin: 32px auto 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.hero-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-stat strong {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #7C3AED, #38BDF8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.hero-stat span {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  margin-top: 6px;
  line-height: 1.3;
}

/* Section header tweaks */
.section-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  background: #fff;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ─── How it works ───────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-default, #fff) 0%, #fafbff 100%);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
}
.step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #38BDF8);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}
.step-icon {
  width: 56px;
  height: 56px;
  margin: 8px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(56, 189, 248, 0.08));
  color: #7C3AED;
}
.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary, #0f172a);
}
.step-card p {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin: 0;
}
.step-arrow {
  font-size: 24px;
  color: rgba(124, 58, 237, 0.4);
  font-weight: 300;
}

/* ─── Modules grid (9 cards) ─────────────────────────────── */
.modules {
  padding: 100px 0;
  background: var(--bg-default, #fff);
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.module-card {
  background: #fff;
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border-color: rgba(124, 58, 237, 0.25);
}
.module-highlight {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.04), rgba(56, 189, 248, 0.04));
  border-color: rgba(124, 58, 237, 0.2);
  position: relative;
  overflow: hidden;
}
.module-highlight::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 70%);
  pointer-events: none;
}
.module-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(56, 189, 248, 0.12));
  color: #7C3AED;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.module-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary, #0f172a);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-mini {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7C3AED, #38BDF8);
  color: #fff;
  letter-spacing: 0.5px;
}
.module-card p {
  font-size: 13px;
  color: var(--text-secondary, #475569);
  line-height: 1.55;
  margin: 0;
}

/* ─── VS section (sem vs com PayIA) ──────────────────────── */
.why-payia {
  padding: 100px 0;
  background: linear-gradient(180deg, #fafbff 0%, var(--bg-default, #fff) 100%);
}
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.vs-col {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
}
.vs-col-bad {
  background: linear-gradient(160deg, #FEF2F2, #fff);
  border-color: rgba(239, 68, 68, 0.2);
}
.vs-col-good {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.06), rgba(56, 189, 248, 0.06), #fff);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.1);
}
.vs-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.vs-emoji { font-size: 32px; }
.vs-col h3 { margin: 0; font-size: 19px; color: var(--text-primary, #0f172a); }
.vs-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vs-col li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary, #475569);
}
.vs-col-bad li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #EF4444;
  font-weight: 700;
}
.vs-col-good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3ECF8E;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 968px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-arrow { transform: rotate(90deg); justify-self: center; }
  .vs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .modules-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-stat strong { font-size: 26px; }
}

/* ============================================================
   Configurações — avatar, toggle rows
   ============================================================ */
.settings-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #38BDF8);
  color: white;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.settings-avatar.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}
.settings-avatar.loading::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  z-index: 1;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  gap: 12px;
  padding: 6px 0;
}
.settings-toggle-row > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-toggle-row > span > small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   MODULES DEEP — seção "Conheça cada módulo" (landing)
   ═══════════════════════════════════════════════════════════ */
.modules-deep { padding: 80px 0; }
.modules-nav {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 32px auto 56px; max-width: 980px;
  padding: 14px 16px;
  background: var(--bg-secondary, #F9FAFB);
  border: 1px solid var(--border-color, #E5E7EB);
  border-radius: var(--radius-lg, 16px);
}
.modules-nav a {
  text-decoration: none; padding: 6px 12px;
  border-radius: 999px; font-size: 13px;
  color: var(--text-secondary, #475569);
  background: white; border: 1px solid var(--border-color, #E5E7EB);
  transition: all 0.15s;
}
.modules-nav a:hover {
  border-color: #7C3AED; color: #7C3AED;
  transform: translateY(-1px);
}

.mod-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-color, #E5E7EB);
}
.mod-block:last-child { border-bottom: none; }
.mod-block.reverse .mod-text { order: 2; }
.mod-block.reverse .mod-mock { order: 1; }

.mod-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700;
  color: var(--text-muted, #6B7280); letter-spacing: 1px;
  margin-bottom: 8px;
}
.mod-badge {
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #7C3AED 0%, #38BDF8 100%);
  color: white; letter-spacing: 0.5px;
}
.mod-badge.new {
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
}
.mod-title {
  font-size: 32px; font-weight: 700;
  margin: 4px 0 16px; line-height: 1.15;
  color: var(--text-primary, #0F172A);
  letter-spacing: -0.5px;
}
.mod-desc {
  font-size: 16px; line-height: 1.65;
  color: var(--text-secondary, #475569);
  margin-bottom: 20px;
}
.mod-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.mod-bullets li {
  position: relative; padding-left: 26px;
  font-size: 15px; line-height: 1.5;
  color: var(--text-secondary, #475569);
}
.mod-bullets li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #38BDF8 100%);
}

/* Mockups visuais */
.mod-mock {
  border-radius: 20px; padding: 36px 28px;
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  color: white; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
  position: relative; overflow: hidden;
}
.mod-mock-purple  { background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%); }
.mod-mock-blue    { background: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%); }
.mod-mock-teal    { background: linear-gradient(135deg, #0D9488 0%, #2DD4BF 100%); }
.mod-mock-violet  { background: linear-gradient(135deg, #6D28D9 0%, #C084FC 100%); }
.mod-mock-amber   { background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%); }
.mod-mock-pink    { background: linear-gradient(135deg, #DB2777 0%, #F472B6 100%); }
.mod-mock-emerald { background: linear-gradient(135deg, #059669 0%, #34D399 100%); }
.mod-mock-indigo  { background: linear-gradient(135deg, #4338CA 0%, #818CF8 100%); }
.mod-mock-rose    { background: linear-gradient(135deg, #BE123C 0%, #FB7185 100%); }
.mod-mock-cyan    { background: linear-gradient(135deg, #0891B2 0%, #67E8F9 100%); }
.mod-mock-orange  { background: linear-gradient(135deg, #EA580C 0%, #FB923C 100%); }
.mod-mock-fuchsia { background: linear-gradient(135deg, #A21CAF 0%, #E879F9 100%); }

/* Mockup KPI */
.mock-kpi-grid { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; max-width: 280px; }
.mock-kpi { background: rgba(255,255,255,0.12); padding: 14px 16px; border-radius: 12px; backdrop-filter: blur(6px); }
.mock-kpi span { display: block; font-size: 11px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; }
.mock-kpi strong { display: block; font-size: 22px; font-weight: 700; margin-top: 4px; }

/* Mockup lista */
.mock-list { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.mock-list-item { background: rgba(255,255,255,0.12); padding: 10px 14px; border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.mock-list-item div:not(.mock-avatar) { display: flex; flex-direction: column; line-height: 1.3; }
.mock-list-item strong { font-size: 14px; }
.mock-list-item span { font-size: 12px; opacity: 0.85; }
.mock-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }

/* Mockup cobrança */
.mock-charge { background: rgba(255,255,255,0.12); padding: 18px; border-radius: 12px; width: 100%; max-width: 280px; }
.mock-charge-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mock-charge-head strong { font-size: 22px; }
.mock-badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.mock-overdue { background: rgba(239,68,68,0.3); color: #FCA5A5; }
.mock-sent { background: rgba(59,130,246,0.3); color: #BFDBFE; }
.mock-charge-meta { font-size: 13px; opacity: 0.85; margin-bottom: 14px; }
.mock-charge-actions { display: flex; gap: 6px; }
.mock-charge-actions button { flex: 1; background: rgba(255,255,255,0.18); border: none; color: white; padding: 8px; border-radius: 8px; font-size: 12px; cursor: pointer; }

/* Mockup chat */
.mock-chat { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.mock-msg { background: rgba(255,255,255,0.18); padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }

/* Mockup lembrete */
.mock-reminder { background: rgba(255,255,255,0.12); padding: 22px; border-radius: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mock-clock { margin-bottom: 4px; opacity: 0.95; }
.mock-reminder strong { font-size: 14px; }
.mock-reminder span { font-size: 13px; opacity: 0.9; }
.mock-time { font-size: 18px !important; font-weight: 700; opacity: 1 !important; margin-top: 6px; }

/* Mockup proposta */
.mock-proposal { background: rgba(255,255,255,0.12); padding: 18px; border-radius: 12px; width: 100%; max-width: 280px; }
.mock-proposal strong { display: block; font-size: 17px; margin: 8px 0 6px; }
.mock-proposal p { font-size: 12px; opacity: 0.85; margin: 0 0 10px; line-height: 1.5; }
.mock-total { font-size: 26px; font-weight: 700; }

/* Mockup PIX */
.mock-pix { background: rgba(255,255,255,0.12); padding: 18px; border-radius: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mock-qr { background: white; padding: 10px; border-radius: 8px; margin-bottom: 4px; }
.mock-pix strong { font-size: 22px; }
.mock-pix span { font-size: 12px; opacity: 0.85; }

/* Mockup shop */
.mock-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 320px; }
.mock-shop-card { background: rgba(255,255,255,0.12); padding: 10px; border-radius: 10px; }
.mock-shop-img { aspect-ratio: 4/3; background: rgba(255,255,255,0.18); border-radius: 6px; margin-bottom: 8px; }
.mock-shop-card strong { display: block; font-size: 12px; line-height: 1.3; }
.mock-shop-price { font-size: 13px; font-weight: 700; margin-top: 4px; display: block; }

/* Mockup goals */
.mock-goals { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 300px; }
.mock-goals > div { background: rgba(255,255,255,0.12); padding: 12px 14px; border-radius: 10px; }
.mock-goals span:not(.mock-bar) { display: block; font-size: 12px; opacity: 0.85; margin-bottom: 6px; }
.mock-goals strong { display: block; font-size: 12px; margin-top: 6px; }
.mock-bar { background: rgba(255,255,255,0.18); height: 6px; border-radius: 3px; overflow: hidden; }
.mock-bar > div { height: 100%; background: white; border-radius: 3px; }

/* Mockup assistente */
.mock-assist { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 300px; }
.mock-assist-msg { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.4; max-width: 85%; }
.mock-assist-msg.user { align-self: flex-end; background: rgba(255,255,255,0.25); border-bottom-right-radius: 4px; }
.mock-assist-msg.bot { align-self: flex-start; background: white; color: #4C1D95; border-bottom-left-radius: 4px; }

@media (max-width: 768px) {
  .mod-block { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .mod-block.reverse .mod-text { order: 1; }
  .mod-block.reverse .mod-mock { order: 2; }
  .mod-title { font-size: 24px; }
  .mod-mock { min-height: 200px; padding: 28px 20px; }
}

/* ─── Mockup auto-rotation: dots + label ─── */
.mockup-current-label {
  text-align: center;
  margin: 24px auto 8px;
  max-width: 560px;
  padding: 0 20px;
  animation: mockupLabelFadeIn 0.4s ease-out;
}
.mockup-current-label strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #7C3AED 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mockup-current-label span {
  display: block;
  font-size: 14px;
  color: var(--text-secondary, #64748B);
  line-height: 1.5;
}
@keyframes mockupLabelFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mockup-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px auto 0;
  padding: 8px;
}
.mockup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(148,163,184,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.mockup-dot:hover { background: rgba(124,58,237,0.5); transform: scale(1.2); }
.mockup-dot.active {
  width: 28px; border-radius: 4px;
  background: linear-gradient(90deg, #7C3AED 0%, #38BDF8 100%);
  box-shadow: 0 2px 8px rgba(124,58,237,0.4);
}

/* ─── Chart Controls (filtros do gráfico) ─── */
.chart-controls {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.chart-control-group {
  display: inline-flex; gap: 4px;
  background: var(--bg-secondary, #F9FAFB);
  border: 1px solid var(--border-color, #E5E7EB);
  border-radius: 999px; padding: 4px;
}
.chart-ctrl-btn {
  background: transparent; border: none; cursor: pointer;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary, #64748B);
  font-family: inherit; display: inline-flex; align-items: center; gap: 4px;
  transition: all 0.15s;
}
.chart-ctrl-btn:hover { color: var(--text-primary, #0F172A); }
.chart-ctrl-btn.active {
  background: linear-gradient(135deg, #7C3AED 0%, #38BDF8 100%);
  color: white; box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

/* ─── Row Actions: alinha botões de ação em linha ─── */
.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.row-actions .btn-sm,
.row-actions .icon-btn {
  flex-shrink: 0;
}
.row-actions .icon-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0;
}

/* ═══════════════════════════════════════════════════
   TAB HERO — cabeçalho padrão de cada aba
   ═══════════════════════════════════════════════════ */
.tab-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.20);
  position: relative;
  overflow: hidden;
}
.tab-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.20), transparent 70%);
  pointer-events: none;
}
.tab-hero-content { position: relative; z-index: 1; flex: 1; min-width: 0; }
.tab-hero-actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.tab-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  color: #C4B5FD;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.tab-hero-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.tab-hero-title .gradient-text {
  background: linear-gradient(90deg, #A78BFA, #38BDF8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tab-hero-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .tab-hero { flex-direction: column; align-items: stretch; padding: 18px 20px; }
  .tab-hero-title { font-size: 18px; }
  .tab-hero-actions { flex-direction: column; }
  .tab-hero-actions .btn { width: 100%; justify-content: center; }
}

/* Reset kpi-grid quando aparece logo apos tab-hero — grid mais denso */
.tab-hero + .kpi-grid,
.tab-hero + div .kpi-grid,
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

/* Ícone colorido nos KPI cards existentes (harmoniza com o admin) */
.kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.kpi-icon.success  { background: linear-gradient(135deg, #10B981, #34D399); }
.kpi-icon.danger   { background: linear-gradient(135deg, #EF4444, #F87171); }
.kpi-icon.teal     { background: linear-gradient(135deg, #06B6D4, #38BDF8); }
.kpi-icon.warning  { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.kpi-icon.pink     { background: linear-gradient(135deg, #EC4899, #F472B6); }

.kpi-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.30);
}

/* Empty state padrao */
.pi-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.pi-empty-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(56,189,248,.06));
  border: 1px solid rgba(124,58,237,.25);
  margin-bottom: 14px;
  color: #A78BFA;
}
.pi-empty h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}
.pi-empty p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  max-width: 380px;
}

/* ═══════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════ */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(124, 58, 237, 0.22);
  position: relative;
  overflow: hidden;
}
.admin-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 70%);
  pointer-events: none;
}
.admin-hero-inner { position: relative; z-index: 1; }
.admin-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  color: #C4B5FD;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.admin-hero-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.admin-hero-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.admin-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.admin-kpi-card {
  position: relative;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.35);
}
.admin-kpi-highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(56, 189, 248, 0.03));
  border-color: rgba(124, 58, 237, 0.25);
}
.admin-kpi-mrr {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.03));
  border-color: rgba(16, 185, 129, 0.25);
}
.admin-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.admin-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.admin-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.admin-users-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
}
.admin-users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.admin-users-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.admin-users-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}
.admin-users-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-input, rgba(255,255,255,0.03));
  border: 1px solid var(--border-subtle);
  min-width: 260px;
  color: var(--text-muted);
}
.admin-users-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  flex: 1;
  padding: 0;
}
.admin-users-search input::placeholder { color: var(--text-muted); }

.admin-users-table-wrap {
  overflow-x: auto;
}
.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-users-table thead th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
}
.admin-users-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}
.admin-users-table tbody tr:last-child td { border-bottom: none; }
.admin-users-table tbody tr:hover { background: rgba(124,58,237,0.04); }

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7C3AED, #38BDF8);
}
.admin-user-email {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
}
.admin-user-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
}
.admin-user-email-sub {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}
.admin-user-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.admin-plan-badge.plan-pro {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(167,139,250,0.15));
  border: 1px solid rgba(124,58,237,0.35);
  color: #C4B5FD;
}
.admin-plan-badge.plan-starter {
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.25);
  color: var(--text-muted);
}
.admin-plan-badge.plan-enterprise {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.15));
  border: 1px solid rgba(245,158,11,0.35);
  color: #FBBF24;
}

.admin-users-actions-col { text-align: right; }
.admin-user-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.admin-btn-pro {
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  color: white;
}
.admin-btn-pro:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.35); }
.admin-btn-down {
  background: rgba(148,163,184,0.1);
  border-color: rgba(148,163,184,0.25);
  color: var(--text-secondary);
}
.admin-btn-down:hover { background: rgba(148,163,184,0.2); }
.admin-btn-danger {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: #F87171;
}
.admin-btn-danger:hover { background: rgba(239,68,68,0.2); }

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .admin-hero { flex-direction: column; align-items: stretch; }
  .admin-users-header { flex-direction: column; align-items: stretch; }
  .admin-users-search { min-width: 0; width: 100%; }
  .admin-hero-title { font-size: 20px; }
}

