/* ===================================================
   CNPI HUB — Design System Premium (Dark Mode)
   =================================================== */

:root {
  --bg-base:       #0a0e1a;
  --bg-surface:    #0f1629;
  --bg-card:       #141c35;
  --bg-card-hover: #1a2444;
  --bg-glass:      rgba(20, 28, 53, 0.7);

  --gold:          #f5c842;
  --gold-light:    #fde68a;
  --gold-dark:     #d4a017;
  --blue:          #4f8ef7;
  --blue-light:    #93c5fd;
  --blue-dark:     #1d4ed8;
  --green:         #22c55e;
  --red:           #ef4444;
  --purple:        #a855f7;

  --text-primary:  #f0f4ff;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.15);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
  --shadow-glow-gold: 0 0 30px rgba(245,200,66,0.2);
  --shadow-glow-blue: 0 0 30px rgba(79,142,247,0.2);

  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 99px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon { font-size: 1.8rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-accent { color: var(--gold); }
.logo-sub { font-size: 0.7rem; color: var(--text-secondary); font-weight: 400; }

.nav { display: flex; gap: 4px; }
.nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.nav-btn:hover { color: var(--text-primary); background: var(--border); }
.nav-btn.active { color: var(--gold); background: rgba(245, 200, 66, 0.1); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: var(--blue); top: -200px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--gold); top: 10%; right: -100px; animation-delay: 3s; }
.orb-3 { width: 300px; height: 300px; background: var(--purple); bottom: -100px; left: 40%; animation-delay: 5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-40px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.badge {
  display: inline-block;
  background: rgba(245, 200, 66, 0.1);
  border: 1px solid rgba(245, 200, 66, 0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #e8a200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  padding: 12px 24px;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a0e00;
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 200, 66, 0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--border-hover); }
.btn-large { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn-icon {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.btn-icon:hover { color: var(--text-primary); border-color: var(--border-hover); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== SUBJECTS ===== */
.subjects { padding: 4rem 2rem; }
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.subject-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.subject-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(245,200,66,0.03));
  opacity: 0;
  transition: var(--transition);
}
.subject-card:hover:not(.locked)::before { opacity: 1; }
.subject-card:hover:not(.locked) { border-color: rgba(245,200,66,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow-gold); }
.subject-card.active { border-color: var(--gold); background: rgba(245,200,66,0.07); }
.subject-card.locked { opacity: 0.4; cursor: default; }
.subject-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.subject-name { font-weight: 700; font-size: 0.9rem; }
.subject-count { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }
.subject-badge {
  display: inline-block;
  margin-top: 10px;
  background: rgba(34,197,94,0.15);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.add-card {
  border-style: dashed;
  border-color: rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.04);
}
.add-card:hover { border-color: var(--purple) !important; box-shadow: 0 0 30px rgba(168,85,247,0.15) !important; }

/* ===== QUIZ ===== */
.quiz-start-screen { display: flex; justify-content: center; padding: 2rem 0; }
.quiz-start-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.quiz-start-icon { font-size: 3rem; margin-bottom: 1rem; }
.quiz-start-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.75rem; }
.quiz-start-card p { color: var(--text-secondary); margin-bottom: 2rem; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 2.5rem; text-align: left; }
.option-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.option-toggle input { display: none; }
.toggle-track {
  width: 44px; height: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.option-toggle input:checked + .toggle-track { background: rgba(245,200,66,0.2); border-color: var(--gold); }
.option-toggle input:checked + .toggle-track .toggle-thumb { left: 23px; background: var(--gold); }

/* Quiz active */
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}
.quiz-progress-info { font-size: 1rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.quiz-subject-tag {
  background: rgba(79,142,247,0.15);
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}
.quiz-timer { font-family: var(--mono); font-size: 0.9rem; color: var(--text-secondary); }
.progress-bar-wrap {
  height: 4px;
  background: var(--bg-card);
  border-radius: 99px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.question-num { font-size: 0.8rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.question-text { font-size: 1.1rem; font-weight: 500; line-height: 1.65; margin-bottom: 2rem; }
.options-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }
.option-item {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}
.option-item:hover:not(.disabled) { border-color: var(--blue); background: rgba(79,142,247,0.06); }
.option-item.selected { border-color: var(--blue); background: rgba(79,142,247,0.1); }
.option-item.correct { border-color: var(--green) !important; background: rgba(34,197,94,0.1) !important; }
.option-item.wrong { border-color: var(--red) !important; background: rgba(239,68,68,0.08) !important; }
.option-item.disabled { cursor: default; pointer-events: none; }
.option-letter {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--mono);
}
.option-item.selected .option-letter { background: var(--blue); color: #fff; }
.option-item.correct .option-letter { background: var(--green); color: #fff; }
.option-item.wrong .option-letter { background: var(--red); color: #fff; }
.question-feedback {
  background: var(--bg-surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}
.feedback-correct { border-left-color: var(--green); }
.feedback-wrong { border-left-color: var(--red); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.quiz-nav { display: flex; gap: 12px; justify-content: flex-end; }

/* Results */
.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  max-width: 520px;
  margin: 2rem auto;
  box-shadow: var(--shadow-card);
}
.results-emoji { font-size: 4rem; margin-bottom: 1rem; animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bounceIn { from { transform: scale(0); } to { transform: scale(1); } }
.results-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.results-score { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 0.5rem; }
.score-num { font-size: 5rem; font-weight: 900; background: linear-gradient(135deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.score-den { font-size: 2rem; font-weight: 600; color: var(--text-secondary); }
.results-pct { color: var(--text-secondary); margin-bottom: 1.5rem; }
.results-bar-wrap { height: 8px; background: var(--bg-surface); border-radius: 99px; margin: 0 auto 2rem; overflow: hidden; }
.results-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: 99px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); width: 0%; }
.results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Review */
.review-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.review-item.review-correct { border-left: 3px solid var(--green); }
.review-item.review-wrong { border-left: 3px solid var(--red); }
.review-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.tag-correct { background: rgba(34,197,94,0.15); color: var(--green); }
.tag-wrong { background: rgba(239,68,68,0.15); color: var(--red); }
.review-q { font-weight: 600; margin-bottom: 0.5rem; }
.review-exp { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== BANCO ===== */
.banco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.banco-controls { display: flex; gap: 12px; align-items: center; }
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
}
.search-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 10px 0;
  width: 220px;
}
.search-wrap input::placeholder { color: var(--text-muted); }
.banco-list { display: flex; flex-direction: column; gap: 12px; }
.banco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.banco-card:hover { border-color: var(--border-hover); }
.banco-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
}
.banco-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 3px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}
.banco-q { font-size: 0.93rem; color: var(--text-secondary); flex: 1; }
.banco-arrow { color: var(--text-muted); font-size: 0.8rem; transition: var(--transition); flex-shrink: 0; }
.banco-card.open .banco-arrow { transform: rotate(90deg); }
.banco-card-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.banco-card.open .banco-card-body { display: block; }
.banco-options { display: flex; flex-direction: column; gap: 6px; margin: 1rem 0; }
.banco-option {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
}
.banco-option.gabarito { background: rgba(34,197,94,0.1); color: var(--green); font-weight: 600; }
.banco-exp {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.6;
}

/* ===== IA SECTION ===== */
.ia-header { text-align: center; margin-bottom: 2.5rem; }
.ia-icon-wrap {
  font-size: 3rem;
  display: inline-block;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(79,142,247,0.2));
  border: 1px solid rgba(168,85,247,0.3);
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}
.ia-header h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.75rem; }
.ia-header p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.ia-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: rgba(245,200,66,0.04); }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group select { cursor: pointer; }
.ia-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ia-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md);
  color: #fca5a5;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.ia-results {}
.ia-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ia-results-header h3 { font-size: 1.2rem; font-weight: 700; }
.ia-results-actions { display: flex; gap: 8px; }
.ia-question-card {
  background: var(--bg-card);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.ia-question-card::before {
  content: '✨ IA';
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(168,85,247,0.15);
  color: var(--purple);
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}
.ia-q-text { font-weight: 600; margin-bottom: 1rem; font-size: 0.95rem; }
.ia-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0.75rem; }
.ia-opt {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
}
.ia-opt.correct { background: rgba(34,197,94,0.1); color: var(--green); font-weight: 600; }
.ia-exp { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer-note { margin-top: 6px; font-size: 0.75rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; }
  .hero { padding: 4rem 1.5rem; }
  .hero-title { letter-spacing: -1px; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.5rem; }
  .subjects-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 3rem 1rem; }
  .question-card { padding: 1.5rem; }
  .quiz-start-card { padding: 2rem 1.5rem; }
  .banco-header { flex-direction: column; align-items: flex-start; }
  .search-wrap input { width: 160px; }
  .form-row { grid-template-columns: 1fr; }
  .results-card { padding: 2rem 1.5rem; }
}
