/* ============================================================================
   CRAQUES DA SUPERAÇÃO — DESIGN SYSTEM
   Identidade: campo de futebol + confiança institucional (ONG).
   Paleta: azul (instituição/confiança) + verde (campo/esperança) + branco.
   Tipografia: Poppins (display, arredondada e amigável) + Inter (corpo, legível).
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Cores */
  --blue-900: #0A2540;
  --blue-800: #0F3562;
  --blue-700: #123E7A;
  --blue-600: #1D6FE0;
  --blue-500: #4C8DF0;
  --blue-100: #E7F0FE;

  --green-700: #148C4A;
  --green-600: #1FAA59;
  --green-500: #2ECC71;
  --green-100: #E8F8EE;

  --white: #FFFFFF;
  --gray-50: #F6F9FC;
  --gray-100: #EEF2F6;
  --gray-200: #E1E8EF;
  --gray-300: #CBD6E0;
  --gray-500: #7C8B99;
  --gray-600: #5B6B79;
  --gray-800: #24313D;
  --gray-900: #14202B;

  --danger: #E5484D;
  --danger-bg: #FDECEC;
  --warning: #C9871A;
  --warning-bg: #FDF3E1;

  /* Tipografia */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Forma */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Sombra */
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.18);

  /* Transição */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------- */
/* RESET                                                                  */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-900);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
p { line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------- */
/* UTILITÁRIOS                                                            */
/* ---------------------------------------------------------------------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(31, 170, 89, 0.35);
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(31, 170, 89, 0.4); }
.btn-secondary {
  background: var(--white);
  color: var(--blue-700);
  border: 2px solid var(--blue-100);
}
.btn-secondary:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-danger {
  background: var(--white);
  color: var(--danger);
  border: 2px solid var(--danger-bg);
}
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-lg { padding: 20px 40px; font-size: 1.1rem; }

/* ---------------------------------------------------------------------- */
/* HEADER / NAV                                                           */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue-900);
}
.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; color: var(--gray-500); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-600); }

/* ---------------------------------------------------------------------- */
/* HERO — "campo de futebol"                                              */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, var(--blue-700), var(--blue-900) 60%);
  color: var(--white);
  padding: 120px 0 140px;
}
.hero::before {
  /* linhas de campo desenhadas em SVG, sutis, no fundo */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}
.hero-field-circle {
  position: absolute;
  top: 50%;
  right: -180px;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}
.hero-field-circle::after {
  content: '';
  position: absolute;
  inset: 70px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero .eyebrow { background: rgba(46, 204, 113, 0.18); color: var(--green-500); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  margin: 20px 0 18px;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--green-500); }
.hero p.lead {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-banner {
  margin-top: 56px;
  position: relative;
  background: linear-gradient(120deg, rgba(46,204,113,0.18), rgba(29,111,224,0.18));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  animation: pulse-glow 3.5s ease-in-out infinite;
}
.hero-banner-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-banner-text .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(46,204,113,0.6);
  animation: dot-ping 1.8s ease-out infinite;
}
@keyframes dot-ping {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(46,204,113,0); }
  50% { box-shadow: 0 0 40px rgba(46,204,113,0.12); }
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -70px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  text-align: center;
}
.stat-card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--blue-700);
}
.stat-card .label { color: var(--gray-600); font-weight: 600; font-size: 0.92rem; margin-top: 4px; }

/* Sobre / cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.info-card .icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: var(--green-100);
  margin-bottom: 18px;
}
.info-card h3 { font-size: 1.15rem; }
.info-card p { color: var(--gray-600); font-size: 0.96rem; margin: 0; }

/* Passo a passo */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-item { position: relative; padding: 28px 22px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-100); }
.step-item .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  background: var(--blue-600);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-item h4 { font-size: 1rem; margin-bottom: 6px; }
.step-item p { font-size: 0.88rem; color: var(--gray-600); margin: 0; }

/* CTA final */
.cta-band {
  background: linear-gradient(120deg, var(--green-600), var(--blue-700));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 6px 0 0; }

/* Footer */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-grid a { display: block; margin-bottom: 8px; transition: color 0.2s; }
.footer-grid a:hover { color: var(--green-500); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---------------------------------------------------------------------- */
/* PÁGINA DE INSCRIÇÃO — formulário estilo Google Forms                   */
/* ---------------------------------------------------------------------- */
.form-page { background: var(--gray-50); min-height: 100vh; padding-bottom: 80px; }
.form-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 20px 0;
}
.form-header .container { display: flex; align-items: center; justify-content: space-between; }

.form-hero {
  background: var(--blue-900);
  color: var(--white);
  padding: 48px 0 90px;
  text-align: center;
}
.form-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.form-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 10px auto 0; }

/* Barra de progresso — "a bola avança rumo ao gol" */
.progress-wrap { max-width: 720px; margin: -54px auto 40px; padding: 0 24px; position: relative; z-index: 3; }
.progress-track {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.progress-line {
  position: absolute;
  left: 44px; right: 44px; top: 50%;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 0;
}
.progress-line-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--blue-600));
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}
.progress-dot {
  position: relative;
  z-index: 1;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.35s var(--ease);
}
.progress-dot.active {
  background: var(--blue-600);
  color: var(--white);
  transform: scale(1.15);
  box-shadow: 0 0 0 6px var(--blue-100);
}
.progress-dot.done { background: var(--green-500); color: var(--white); }
.progress-dot.done::after { content: '✓'; }
.progress-dot.done span { display: none; }

.form-container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  padding: 40px;
  margin-bottom: 24px;
  animation: fade-up 0.4s var(--ease);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-card .step-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-600);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: block;
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > .step-desc { color: var(--gray-600); margin-bottom: 28px; font-size: 0.95rem; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.field label .required { color: var(--danger); margin-left: 3px; }
.field .hint { font-size: 0.8rem; color: var(--gray-500); margin-top: 6px; }
.field input[type="text"],
.field input[type="date"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--danger); }
.field .error-msg { color: var(--danger); font-size: 0.8rem; margin-top: 6px; display: none; }
.field.has-error .error-msg { display: block; }
.field textarea { resize: vertical; min-height: 90px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-pill {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-600);
}
.radio-pill input { display: none; }
.radio-pill.selected { border-color: var(--blue-600); background: var(--blue-100); color: var(--blue-700); }

/* Upload de foto do aluno */
.photo-upload {
  display: flex;
  align-items: center;
  gap: 20px;
}
.photo-preview {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 1.6rem;
  color: var(--gray-400);
  flex-shrink: 0;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Upload de documentos */
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-upload {
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  min-width: 0;
}
.doc-upload.filled { border-color: var(--green-500); background: var(--green-100); }
.doc-upload.invalid { border-color: var(--danger); background: var(--danger-bg); }
.doc-upload .doc-title { font-weight: 700; font-size: 0.86rem; color: var(--gray-800); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.doc-upload .doc-status { font-size: 0.78rem; color: var(--gray-500); overflow-wrap: anywhere; word-break: break-word; }
.doc-upload.filled .doc-status { color: var(--green-700); }
.doc-upload input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.doc-upload .doc-icon { font-size: 1.2rem; }

.declaracao-box {
  background: var(--blue-100);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.declaracao-box input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-600); flex-shrink: 0; }
.declaracao-box label { font-size: 0.92rem; color: var(--blue-900); font-weight: 500; line-height: 1.5; }

.form-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 8px; }

/* Caixa de rolagem do Termo de Adesão */
.termo-box {
  max-height: 340px;
  overflow-y: auto;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 20px;
  background: var(--gray-50);
}
.termo-box h3 { font-size: 0.98rem; color: var(--blue-700); margin: 18px 0 6px; }
.termo-box h3:first-child { margin-top: 0; }
.termo-box p { font-size: 0.86rem; color: var(--gray-800); margin: 0 0 10px; line-height: 1.6; }
.termo-fade {
  position: relative;
  margin-top: -44px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(246,249,252,0), var(--gray-50));
  pointer-events: none;
}
.termo-scroll-hint { text-align: center; color: var(--gray-500); font-size: 0.78rem; margin: -12px 0 16px; }

/* Barra de progresso de upload no envio */
.upload-progress-overlay {
  position: fixed; inset: 0; background: rgba(10,37,64,0.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(4px);
}
.upload-progress-overlay[hidden] { display: none !important; }
.upload-progress-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; width: 90%; max-width: 420px; text-align: center;
}
.upload-progress-card .ball {
  font-size: 2.4rem; display: inline-block; margin-bottom: 14px;
  animation: roll 1s linear infinite;
}
@keyframes roll { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.progress-bar-outer { background: var(--gray-100); border-radius: var(--radius-pill); height: 12px; overflow: hidden; margin-top: 18px; }
.progress-bar-inner { height: 100%; background: linear-gradient(90deg, var(--green-500), var(--blue-600)); width: 0%; transition: width 0.3s var(--ease); }
.upload-progress-card .pct { font-family: var(--font-display); font-weight: 700; color: var(--blue-700); margin-top: 10px; display: block; }

/* Tela de sucesso */
.success-screen {
  max-width: 560px; margin: 60px auto; text-align: center;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 56px 40px; box-shadow: var(--shadow-md);
}
.success-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--green-100); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; margin: 0 auto 24px;
  animation: pop-in 0.5s var(--ease);
}
@keyframes pop-in { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.protocolo-box {
  background: var(--blue-100); border-radius: var(--radius-md);
  padding: 20px; margin: 24px 0;
}
.protocolo-box .label { font-size: 0.85rem; color: var(--blue-700); font-weight: 600; }
.protocolo-box .value { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--blue-900); letter-spacing: 0.03em; }

/* ---------------------------------------------------------------------- */
/* ADMIN                                                                  */
/* ---------------------------------------------------------------------- */
.admin-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 20%, var(--blue-700), var(--blue-900) 70%);
  padding: 24px;
}
.admin-login-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 44px 40px; width: 100%; max-width: 400px;
}
.admin-login-card .logo { justify-content: center; margin-bottom: 8px; }
.admin-login-card h1 { text-align: center; font-size: 1.4rem; }
.admin-login-card p.sub { text-align: center; color: var(--gray-600); margin-bottom: 28px; font-size: 0.9rem; }
.admin-error {
  background: var(--danger-bg); color: var(--danger); font-size: 0.85rem;
  padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; display: none;
}
.admin-error.show { display: block; }

.admin-shell { display: none; min-height: 100vh; }
.admin-shell.active { display: flex; }
.admin-sidebar {
  width: 240px; background: var(--blue-900); color: var(--white);
  padding: 28px 20px; flex-shrink: 0;
  display: flex; flex-direction: column;
}
.admin-sidebar .logo { color: var(--white); margin-bottom: 40px; }
.admin-sidebar .logo small { color: rgba(255,255,255,0.5); }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem; color: rgba(255,255,255,0.7);
  margin-bottom: 6px; cursor: pointer; transition: background 0.2s;
}
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,0.1); color: var(--white); }
.admin-sidebar .logout-btn { margin-top: auto; }

.admin-main { flex: 1; padding: 36px 40px; max-width: calc(100vw - 240px); }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.admin-topbar h1 { font-size: 1.5rem; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-grid.stat-grid-5 { grid-template-columns: repeat(5, 1fr); }
.admin-stat-card {
  background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-100);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.admin-stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; }
.admin-stat-card .label { color: var(--gray-600); font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
.admin-stat-card.total .num { color: var(--blue-700); }
.admin-stat-card.pendente .num { color: var(--warning); }
.admin-stat-card.aprovada .num { color: var(--green-600); }
.admin-stat-card.reserva .num { color: #7E22CE; }
.admin-stat-card.reprovada .num { color: var(--danger); }

.search-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar input, .search-bar select {
  padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
  font-size: 0.92rem; font-family: inherit;
}
.search-bar input { flex: 1; min-width: 220px; }

.admin-table-wrap { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-100); overflow: hidden; box-shadow: var(--shadow-sm); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.admin-table th {
  text-align: left; padding: 14px 18px; background: var(--gray-50);
  font-weight: 700; color: var(--gray-600); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gray-100);
}
table.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); }
table.admin-table tr:last-child td { border-bottom: none; }
table.admin-table tr:hover { background: var(--gray-50); cursor: pointer; }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700; }
.status-recebida { background: var(--blue-100); color: var(--blue-700); }
.status-analise { background: var(--warning-bg); color: var(--warning); }
.status-aprovada { background: var(--green-100); color: var(--green-700); }
.status-reserva { background: #F3E8FF; color: #7E22CE; }
.status-reprovada { background: var(--danger-bg); color: var(--danger); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }

/* Modal de detalhe da inscrição */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,37,64,0.6); z-index: 1000;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 20px;
  overflow-y: auto; backdrop-filter: blur(3px);
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 860px;
  padding: 36px 40px 40px; box-shadow: var(--shadow-lg); animation: fade-up 0.3s var(--ease);
  margin-bottom: 40px;
}
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-header .protocolo-tag { font-family: var(--font-display); font-weight: 800; color: var(--blue-700); font-size: 1.1rem; }
.modal-close { background: var(--gray-100); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; color: var(--gray-600); }
.modal-close:hover { background: var(--gray-200); }

.detail-section { margin-bottom: 26px; }
.detail-section h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail-item .label { font-size: 0.76rem; color: var(--gray-500); font-weight: 600; }
.detail-item .value { font-size: 0.94rem; color: var(--gray-900); font-weight: 500; margin-top: 2px; }

.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.doc-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--gray-100); border-radius: var(--radius-sm); font-size: 0.86rem;
}
.doc-list-item a { color: var(--blue-600); font-weight: 700; }

.status-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.status-btn {
  padding: 10px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--gray-200);
  font-weight: 600; font-size: 0.85rem; background: var(--white); color: var(--gray-600);
}
.status-btn.active-recebida { border-color: var(--blue-600); background: var(--blue-100); color: var(--blue-700); }
.status-btn.active-em_analise { border-color: var(--warning); background: var(--warning-bg); color: var(--warning); }
.status-btn.active-aprovada { border-color: var(--green-600); background: var(--green-100); color: var(--green-700); }
.status-btn.active-reserva { border-color: #7E22CE; background: #F3E8FF; color: #7E22CE; }
.status-btn.active-reprovada { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }

.admin-textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200); font-family: inherit; min-height: 80px; margin-top: 8px; }

.loader { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: var(--white); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--gray-900); color: var(--white);
  padding: 14px 22px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 2000; transform: translateY(20px); opacity: 0; transition: all 0.3s var(--ease);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--green-600); }

/* ---------------------------------------------------------------------- */
/* RESPONSIVO                                                             */
/* ---------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .stats-strip, .grid-3, .steps-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .admin-main { max-width: 100vw; padding: 24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid.stat-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .detail-grid, .doc-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 90px 0 110px; }
  .hero-banner { flex-direction: column; align-items: flex-start; }
  .row-2, .row-3, .doc-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .cta-band { flex-direction: column; text-align: center; }
  .admin-sidebar { width: 76px; padding: 20px 10px; }
  .admin-sidebar .logo span.text, .admin-nav-item span.text { display: none; }
  .admin-main { max-width: calc(100vw - 76px); padding: 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid.stat-grid-5 { grid-template-columns: 1fr 1fr; }
  .modal-card { padding: 24px 20px; }
}
