/* ── Google Fonts: Montserrat (Nack brand font) ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ── Design system – Nack Contabilidade ──────────────────────────────────── */
:root {
  /* Nack brand */
  --navy:        #0F2A3D;
  --navy-dark:   #091D2B;
  --navy-mid:    #1C3A52;
  --gold:        #E3B04B;
  --gold-dark:   #C99734;
  --gold-light:  #FDF8EE;
  --gold-border: #F0D898;

  /* Neutros */
  --white:    #FFFFFF;
  --bg:       #F4F6F8;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;

  /* Semânticos */
  --red:     #DC2626;   /* erros/alertas */
  --green:   #16A34A;
  --orange:  #D97706;
  --blue:    #2563EB;

  /* Shadows & radius */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius:    14px;
  --radius-sm: 8px;
  --transition: .2s ease;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.app-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.app-header h1 {
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.app-header p {
  font-size: .78rem;
  color: var(--gold);
  margin-top: .3rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
}

/* ── Stepper ─────────────────────────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  flex: 1;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
  transition: background var(--transition);
}
.step-item.done:not(:last-child)::after { background: var(--navy); }
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: background var(--transition), color var(--transition);
}
.step-item.active .step-circle { background: var(--gold); color: var(--navy); }
.step-item.done   .step-circle { background: var(--navy); color: var(--white); }
.step-label {
  font-size: .62rem;
  color: var(--gray-400);
  font-weight: 600;
  text-align: center;
  transition: color var(--transition);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.step-item.active .step-label { color: var(--gold-dark); }
.step-item.done   .step-label { color: var(--navy); }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.progress-track {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width .4s ease;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
@media (max-width: 480px) { .card { padding: 1.25rem; } }

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.card-subtitle {
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

/* ── Termo ───────────────────────────────────────────────────────────────── */
.termo-box {
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  max-height: 320px;
  overflow-y: auto;
  font-size: .86rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.termo-box p  { margin-bottom: .75rem; }
.termo-box ul { padding-left: 1.25rem; margin-bottom: .75rem; }
.termo-box li { margin-bottom: .4rem; }

/* ── Pergunta de aceite ──────────────────────────────────────────────────── */
.aceite-pergunta {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: .95rem;
}
.radio-group { display: flex; flex-direction: column; gap: .75rem; }
.radio-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  font-size: .9rem;
  padding: .8rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
  font-weight: 500;
}
.radio-label:hover { border-color: var(--gold-border); }
.radio-label input[type="radio"] { accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.radio-label.selected { border-color: var(--gold); background: var(--gold-light); font-weight: 700; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: .9rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: var(--bg);
  transition: background var(--transition);
}
.faq-item[open] summary { background: var(--gold-light); color: var(--navy-dark); }
.faq-item summary::after { content: '+'; font-size: 1.2rem; font-weight: 300; color: var(--gold-dark); }
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  padding: 1rem 1.1rem;
  font-size: .86rem;
  color: var(--gray-700);
  line-height: 1.75;
  border-top: 1px solid var(--gray-200);
}
.faq-answer p  { margin-bottom: .5rem; }
.faq-answer ul { padding-left: 1.25rem; margin-bottom: .5rem; }
.faq-answer li { margin-bottom: .3rem; }
.faq-answer a  { color: var(--navy); font-weight: 600; }

/* ── Formulário ──────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.span-2 { grid-column: span 2; }
@media (max-width: 560px) { .span-2 { grid-column: span 1; } }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .8rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  font-size: .93rem;
  font-family: inherit;
  color: var(--gray-900);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  width: 100%;
}
.field input:focus, .field select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,42,61,.1);
}
.field input.invalid { border-color: var(--red); }
.field-error { font-size: .78rem; color: var(--red); margin-top: .2rem; font-weight: 600; }

/* Instagram – @ embutido */
.input-instagram { position: relative; }
.at-prefix {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .93rem;
  pointer-events: none;
  font-weight: 600;
}
.input-instagram input { padding-left: 1.75rem; }

/* Instagram profile cards */
.ig-profiles { display: flex; gap: .6rem; flex-wrap: wrap; }
.ig-card {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border: 1.5px solid var(--gold-border);
  border-radius: 100px;
  background: var(--gold-light);
  color: var(--navy);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.ig-card:hover {
  background: var(--gold-border);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.ig-card-icon { color: #C13584; display: flex; align-items: center; }
.ig-card-handle { color: var(--navy); }
.ig-card-follow { color: var(--gold-dark); font-size: .75rem; }

/* Checkbox */
.checkbox-group { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  font-size: .88rem;
  color: var(--gray-700);
  padding: .75rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
  font-weight: 500;
}
.checkbox-label:hover { border-color: var(--gold-border); }
.checkbox-label input[type="checkbox"] { accent-color: var(--navy); width: 17px; height: 17px; flex-shrink: 0; }
.checkbox-label.checked { border-color: var(--navy); background: #EDF2F6; }

/* Toggle dependente */
.toggle-group { display: flex; gap: .75rem; margin-top: .5rem; }
.toggle-btn {
  flex: 1;
  padding: .65rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .88rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--gray-500);
  transition: all var(--transition);
  text-align: center;
}
.toggle-btn.active { border-color: var(--navy); color: var(--navy); background: #EDF2F6; }

/* Seção de dependente */
.dependente-section {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-sm);
  display: none;
}
.dependente-section.visible { display: block; }
.dependente-section h3 { font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }

/* Aviso Instagram */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  font-size: .85rem;
  color: #5D4037;
  margin-top: 1rem;
  font-weight: 500;
}
.info-box-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Revisão ─────────────────────────────────────────────────────────────── */
.review-section {
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.review-section h3 {
  font-size: .75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 2px solid var(--gold);
  padding-bottom: .5rem;
}
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; }
@media (max-width: 480px) { .review-grid { grid-template-columns: 1fr; } }
.review-row { display: flex; flex-direction: column; }
.review-label { font-size: .7rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }
.review-value { font-size: .9rem; color: var(--gray-900); font-weight: 500; }

.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-orange { background: #FEF3C7; color: #92400E; }

/* ── Botões ──────────────────────────────────────────────────────────────── */
.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.btn-row.right { justify-content: flex-end; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(227,176,75,.35);
}
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--bg); border-color: var(--navy); }
.btn-full { width: 100%; justify-content: center; }

/* ── Alertas ─────────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  font-size: .86rem;
  margin-top: 1rem;
  font-weight: 500;
}
.alert-warning { background: var(--gold-light); border: 1px solid var(--gold-border); color: #5D4037; }
.alert-danger  { background: #FFF0F0; border: 1px solid #FCA5A5; color: #991B1B; }
.alert-success { background: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; }
.alert-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(15,42,61,.25);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: none;
}
.spinner.visible { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Landing page ────────────────────────────────────────────────────────── */
.landing-card {
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  max-width: 540px;
  margin: 0 auto;
}
.landing-icon { font-size: 3rem; margin-bottom: 1rem; line-height: 1; }
.landing-title {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .4rem;
  letter-spacing: -.01em;
}
.landing-sub {
  font-size: .78rem;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.1rem;
}
.landing-desc {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.landing-steps {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: .25rem;
}
.ls-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .86rem;
  color: var(--gray-700);
  font-weight: 500;
}
.ls-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Admin: Login ────────────────────────────────────────────────────────── */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  border-top: 4px solid var(--gold);
}
.login-card h1 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: .35rem; }
.login-card p  { font-size: .82rem; color: var(--gray-500); margin-bottom: 1.5rem; }

/* ── Admin: Layout ───────────────────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
@media (max-width: 700px) {
  .admin-wrap { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; }
}
.sidebar-brand { padding: 1.25rem 1rem; border-bottom: 1px solid rgba(227,176,75,.25); }
.sidebar-brand h2 { font-size: .95rem; font-weight: 800; color: var(--white); }
.sidebar-brand span { display: block; font-size: .72rem; color: var(--gold); margin-top: .2rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.sidebar-nav { flex: 1; padding: .75rem 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.1rem;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover  { color: var(--white); background: rgba(255,255,255,.07); }
.nav-item.active { color: var(--navy); background: var(--gold); }
.nav-icon { font-size: 1rem; }
.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); }

/* ── Admin: Conteúdo ─────────────────────────────────────────────────────── */
.admin-content { flex: 1; padding: 1.5rem; overflow-x: auto; background: var(--bg); }
.admin-page  { display: none; }
.admin-page.active { display: block; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem; }
.page-header h2 { font-size: 1.2rem; font-weight: 800; color: var(--navy); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gray-200);
}
.stat-card.navy   { border-left-color: var(--navy); }
.stat-card.gold   { border-left-color: var(--gold); }
.stat-card.green  { border-left-color: var(--green); }
.stat-card.orange { border-left-color: var(--orange); }
.stat-card.red    { border-left-color: var(--red); }
.stat-card.gray   { border-left-color: var(--gray-400); }
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.stat-label  { font-size: .72rem; color: var(--gray-500); margin-top: .1rem; font-weight: 600; }

/* Filtros */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-btn {
  padding: .4rem .85rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover  { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Tabela */
.table-wrap { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th { background: var(--navy); color: rgba(255,255,255,.85); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .75rem 1rem; text-align: left; white-space: nowrap; }
td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }
.table-actions { display: flex; gap: .5rem; }
.btn-sm {
  padding: .3rem .7rem;
  font-size: .77rem;
  border-radius: 6px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-sm-primary { background: var(--gold); color: var(--navy); }
.btn-sm-primary:hover { background: var(--gold-dark); }
.btn-sm-outline { background: var(--white); border: 1.5px solid var(--gray-200); color: var(--navy); }
.btn-sm-outline:hover { border-color: var(--navy); background: var(--bg); }

/* Status badges */
.status-badge { display: inline-block; padding: .2rem .55rem; border-radius: 100px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.s-recebido  { background:#DBEAFE; color:#1E40AF; }
.s-pendente  { background:#FEF3C7; color:#92400E; }
.s-aprovado  { background:#D1FAE5; color:#065F46; }
.s-cadastrado{ background:#ECFDF5; color:#065F46; border:1px solid #6EE7B7; }
.s-recusado  { background:#FEE2E2; color:#991B1B; }
.s-erro      { background:#FFE4E6; color:#9F1239; }
.s-duplicado { background:#F3F4F6; color:#374151; }
.s-dados     { background:#FEF9C3; color:#713F12; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.modal-header h3 { font-size: 1rem; font-weight: 800; color: var(--navy); }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray-400); line-height: 1; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); display: flex; gap: .75rem; flex-wrap: wrap; }

.detail-group { margin-bottom: 1.25rem; }
.detail-group h4 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--navy); margin-bottom: .6rem; border-bottom: 2px solid var(--gold); padding-bottom: .4rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; }
.detail-row .dl { font-size: .7rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; }
.detail-row .dv { font-size: .88rem; color: var(--gray-900); font-weight: 500; }

/* Logs */
.log-list { display: flex; flex-direction: column; gap: .5rem; }
.log-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  font-size: .82rem;
}
.log-item.status-erro { border-left-color: var(--red); }
.log-item.status-ok   { border-left-color: var(--green); }
.log-meta { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; color: var(--gray-500); font-size: .74rem; margin-bottom: .2rem; }
.log-msg  { color: var(--gray-700); }
.log-reg  { color: var(--navy); font-weight: 700; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.empty-state p { font-size: .9rem; }

/* ── Utilitários ─────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-1   { margin-top: .5rem; }
.mt-2   { margin-top: 1rem; }
.text-sm { font-size: .82rem; color: var(--gray-500); }
