/* ============================================================
   GRUPO EPICENTRO — Student App CSS
   Mobile-first, dark, gamified
   ============================================================ */

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

:root {
  --bg: #0a0a14;
  --bg-card: #13131f;
  --bg-elevated: #1c1c2e;
  --purple: #8b5cf6;
  --purple-glow: #7c3aed;
  --gold: #f59e0b;
  --green: #10b981;
  --blue: #3b82f6;
  --red: #ef4444;
  --text: #f1f5f9;
  --text-dim: #64748b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-purple: 0 0 20px rgba(139,92,246,0.3);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   BOTTOM NAVIGATION (mobile app style)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 env(safe-area-inset-bottom);
  z-index: 100;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 12px;
  transition: color 0.2s;
}
.bottom-nav a.active { color: var(--purple); }
.bottom-nav a .nav-icon { font-size: 22px; }

/* ============================================================
   STUDENT HEADER
   ============================================================ */
.student-header {
  background: linear-gradient(135deg, #1c1c2e, #2d1b69);
  padding: 20px 16px 16px;
}
.xp-bar-container {
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  height: 8px;
  margin-top: 8px;
}
.xp-bar-fill {
  background: linear-gradient(90deg, var(--purple), var(--gold));
  height: 100%;
  border-radius: 99px;
  transition: width 1s ease;
}

/* ============================================================
   LEVEL BADGE
   ============================================================ */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   ACTION CARDS
   ============================================================ */
.action-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  text-decoration: none;
}
.action-card:active { transform: scale(0.97); }
.action-card:hover { border-color: var(--purple); }
.action-card .card-icon { font-size: 36px; flex-shrink: 0; }
.action-card .card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.action-card .card-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.action-card .card-xp {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}
.action-card .card-badge {
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 900;
  border-radius: 99px;
  padding: 2px 7px;
  margin-left: 6px;
}
.action-card .card-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 18px;
  flex-shrink: 0;
}

/* ============================================================
   MISSION CARDS
   ============================================================ */
.mission-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 4px solid var(--purple);
  padding: 16px;
  margin-bottom: 12px;
}
.mission-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.mission-badge.comunicacao { background: rgba(59,130,246,0.2); color: #60a5fa; }
.mission-badge.lideranca   { background: rgba(245,158,11,0.2);  color: #fbbf24; }
.mission-badge.equipe      { background: rgba(16,185,129,0.2);  color: #34d399; }
.mission-badge.conflito    { background: rgba(239,68,68,0.2);   color: #f87171; }
.mission-badge.emocional   { background: rgba(139,92,246,0.2);  color: #a78bfa; }
.mission-badge.adaptabilidade { background: rgba(20,184,166,0.2); color: #2dd4bf; }

/* ============================================================
   SCORE RING
   ============================================================ */
.score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring .score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring .score-number { font-size: 28px; font-weight: 900; color: var(--text); }
.score-ring .score-label { font-size: 10px; color: var(--text-dim); }

/* ============================================================
   STAR RATING
   ============================================================ */
.stars { display: flex; gap: 6px; }
.stars .star {
  font-size: 28px;
  cursor: pointer;
  color: #374151;
  transition: color 0.1s, transform 0.1s;
}
.stars .star.active { color: var(--gold); }
.stars .star:hover { color: var(--gold); transform: scale(1.1); }

/* ============================================================
   PROGRESS STEPS
   ============================================================ */
.steps { display: flex; gap: 4px; margin-bottom: 24px; }
.steps .step {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}
.steps .step.done    { background: var(--purple); }
.steps .step.current { background: linear-gradient(90deg, var(--purple), var(--gold)); }

/* ============================================================
   ACHIEVEMENT BADGES
   ============================================================ */
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.3;
  transition: opacity 0.3s;
}
.badge-item.earned { opacity: 1; }
.badge-icon {
  font-size: 36px;
  background: var(--bg-elevated);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.1);
}
.badge-item.earned .badge-icon {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(245,158,11,0.4);
}
.badge-name { font-size: 10px; text-align: center; color: var(--text-dim); }
.badge-item.earned .badge-name { color: var(--text); }

/* ============================================================
   XP FLOAT ANIMATION
   ============================================================ */
@keyframes xpFloat {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-60px); }
}
.xp-float {
  position: fixed;
  pointer-events: none;
  font-size: 18px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(245,158,11,0.8);
  animation: xpFloat 1.5s ease forwards;
  z-index: 9999;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--purple);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  white-space: nowrap;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-purple);
}
@keyframes slideUp {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}

/* ============================================================
   MODAL BOTTOM SHEET
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-sheet {
  background: var(--bg-elevated);
  border-radius: 20px 20px 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ============================================================
   RANKING PODIUM
   ============================================================ */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}
.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.podium-bar {
  width: 80px;
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12px;
  font-size: 22px;
}
.podium-bar.first  { height: 120px; background: linear-gradient(180deg, #f59e0b, #b45309); }
.podium-bar.second { height: 90px;  background: linear-gradient(180deg, #94a3b8, #475569); }
.podium-bar.third  { height: 70px;  background: linear-gradient(180deg, #b45309, #78350f); }

/* ============================================================
   RADAR CHART SVG
   ============================================================ */
.radar-container { display: flex; justify-content: center; padding: 16px 0; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}
.form-input::placeholder { color: var(--text-dim); }
textarea.form-input { resize: vertical; min-height: 90px; }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select.form-input option { background: #1c1c2e; color: #f1f5f9; }

/* ============================================================
   OPTION CHIPS
   ============================================================ */
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option-chip {
  background: var(--bg-elevated);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.15s;
}
.option-chip.selected {
  background: rgba(139,92,246,0.2);
  border-color: var(--purple);
  color: var(--purple);
}
.option-chip:active { transform: scale(0.96); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.btn-primary:active { transform: scale(0.97); box-shadow: none; }
.btn-primary.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(139,92,246,0.4); }
  50% { box-shadow: 0 4px 30px rgba(139,92,246,0.8), 0 0 0 8px rgba(139,92,246,0.1); }
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}
.btn-copy {
  background: rgba(16,185,129,0.15);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 20px 16px; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.section-subtitle { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 0; }

/* ============================================================
   MINI STATS
   ============================================================ */
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.mini-stat {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.mini-stat .value { font-size: 22px; font-weight: 900; }
.mini-stat .label { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

/* ============================================================
   TOGGLE
   ============================================================ */
.toggle-container {
  display: flex;
  gap: 8px;
}
.toggle-btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.08);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: inherit;
}
.toggle-btn.active-yes {
  background: rgba(16,185,129,0.2);
  border-color: var(--green);
  color: var(--green);
}
.toggle-btn.active-no {
  background: rgba(239,68,68,0.2);
  border-color: var(--red);
  color: var(--red);
}

/* ============================================================
   CHECK LIST ITEMS
   ============================================================ */
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 2px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.15s;
}
.check-item.checked {
  border-color: var(--green);
  background: rgba(16,185,129,0.1);
}
.check-item.checked-no {
  border-color: var(--red);
  background: rgba(239,68,68,0.1);
}
.check-item .check-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.15s;
}
.check-item.checked .check-circle {
  background: var(--green);
  border-color: var(--green);
}
.check-item.checked-no .check-circle {
  background: var(--red);
  border-color: var(--red);
}
.check-item .check-text { font-size: 14px; font-weight: 600; }

/* ============================================================
   HABILIDADE CARD (formulario step 7)
   ============================================================ */
.hab-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s;
}
.hab-card.rated { border-color: rgba(139,92,246,0.4); }
.hab-emoji { font-size: 32px; }
.hab-title { font-size: 16px; font-weight: 700; }
.hab-desc { font-size: 12px; color: var(--text-dim); margin: 4px 0 10px; }

/* ============================================================
   RANKING LIST
   ============================================================ */
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: var(--bg-card);
  transition: background 0.2s;
}
.rank-item.me {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.4);
}
.rank-pos { font-size: 14px; font-weight: 900; color: var(--text-dim); width: 28px; text-align: center; }
.rank-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  flex-shrink: 0;
}
.rank-info { flex: 1; }
.rank-name { font-size: 14px; font-weight: 700; }
.rank-level { font-size: 11px; color: var(--text-dim); }
.rank-xp { font-size: 13px; font-weight: 700; color: var(--gold); }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 16px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 99px;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.tab-btn.active {
  background: var(--purple);
  color: white;
}

/* ============================================================
   INDICACAO PIPELINE
   ============================================================ */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  position: relative;
}
.pipeline-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.pipeline-step:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.pipeline-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 34px;
  bottom: -8px;
  width: 2px;
  height: 8px;
  background: rgba(255,255,255,0.1);
  z-index: 1;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.status-badge.pendente    { background: rgba(239,68,68,0.2);   color: #f87171; }
.status-badge.andamento   { background: rgba(245,158,11,0.2);  color: #fbbf24; }
.status-badge.concluida   { background: rgba(16,185,129,0.2);  color: #34d399; }
.status-badge.enviado     { background: rgba(59,130,246,0.2);  color: #60a5fa; }
.status-badge.respondido  { background: rgba(139,92,246,0.2);  color: #a78bfa; }
.status-badge.agendado    { background: rgba(245,158,11,0.2);  color: #fbbf24; }
.status-badge.compareceu  { background: rgba(16,185,129,0.2);  color: #34d399; }
.status-badge.matriculado { background: rgba(245,158,11,0.3);  color: #f59e0b; border: 1px solid var(--gold); }

/* ============================================================
   DISC COLORS
   ============================================================ */
.disc-d { color: #ef4444; }
.disc-i { color: #f59e0b; }
.disc-s { color: #10b981; }
.disc-c { color: #3b82f6; }
.disc-card-d { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3); }
.disc-card-i { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); }
.disc-card-s { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); }
.disc-card-c { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); }

/* ============================================================
   PROFILE AVATAR
   ============================================================ */
.avatar-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900;
  flex-shrink: 0;
  border: 3px solid rgba(139,92,246,0.4);
}

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.2), transparent 70%), var(--bg);
}
.login-logo { font-size: 60px; margin-bottom: 16px; }
.login-title { font-size: 26px; font-weight: 900; text-align: center; margin-bottom: 8px; }
.login-sub { font-size: 14px; color: var(--text-dim); text-align: center; margin-bottom: 40px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state .empty-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state .empty-desc { font-size: 13px; line-height: 1.6; }

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.highlight-box {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(109,40,217,0.1));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}

/* ============================================================
   LOADING
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(139,92,246,0.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================================
   SKILL BAR
   ============================================================ */
.skill-bar-wrap { margin-bottom: 12px; }
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
}
.skill-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transition: width 1s ease;
}

/* ============================================================
   SAFE AREA & SCROLLBAR
   ============================================================ */
.safe-bottom { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 2px; }

/* ============================================================
   RESPONSIVE DESKTOP CONTAINER
   ============================================================ */
@media (min-width: 480px) {
  body { border-left: 1px solid rgba(255,255,255,0.05); border-right: 1px solid rgba(255,255,255,0.05); }
}

/* ─── VAGAS ─────────────────────────────────── */
.vaga-card { background: var(--bg-card); border-radius: 16px; padding: 18px;
  margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s; }
.vaga-card:hover { border-color: rgba(139,92,246,0.4); }
.vaga-card.epicentro { border-left: 3px solid var(--purple); }
.vaga-card.parceiro { border-left: 3px solid var(--blue); }
.vaga-card.destaque { border-left: 3px solid var(--gold); }

.company-logo { width: 44px; height: 44px; background: var(--bg-elevated); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }

.compat-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; flex: 1; }
.compat-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.compat-high   { background: #10b981; }
.compat-mid    { background: #f59e0b; }
.compat-low    { background: #ef4444; }

.compat-badge { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.compat-badge.high { background: rgba(16,185,129,0.15); color: #34d399; }
.compat-badge.mid  { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.compat-badge.low  { background: rgba(239,68,68,0.15);   color: #f87171; }

.benefit-chip { display: inline-block; font-size: 11px; background: rgba(16,185,129,0.12);
  color: #34d399; padding: 3px 8px; border-radius: 99px; margin: 2px; }

.tipo-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.tipo-estagio     { background: rgba(59,130,246,0.15); color: #60a5fa; }
.tipo-clt         { background: rgba(16,185,129,0.15); color: #34d399; }
.tipo-comissionado{ background: rgba(245,158,11,0.15); color: #fbbf24; }

/* ─── EMPREGABILIDADE ────────────────────────── */
.emprego-index { display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px; background: linear-gradient(135deg, #1c1c2e, #2d1b69);
  border-radius: 16px; margin-bottom: 20px; }
.emprego-ring { position: relative; width: 140px; height: 140px; }
.emprego-ring svg { transform: rotate(-90deg); }
.emprego-ring .ring-text { position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center; }
.emprego-ring .ring-num { font-size: 36px; font-weight: 900; }
.emprego-ring .ring-lbl { font-size: 10px; color: var(--text-dim); }

.trilha-card { background: var(--bg-card); border-radius: 14px; padding: 16px;
  margin-bottom: 12px; border-top: 3px solid; }
.trilha-cargos { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.trilha-cargo { font-size: 11px; background: var(--bg-elevated); border-radius: 99px;
  padding: 3px 10px; color: var(--text-dim); }

.habilidade-certificada { display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--bg-elevated); border-radius: 12px; margin-bottom: 8px; }
.hab-level { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.hab-level.iniciante    { background: rgba(100,116,139,0.2); color: #94a3b8; }
.hab-level.em-dev       { background: rgba(245,158,11,0.15); color: #fbbf24; }
.hab-level.intermediario{ background: rgba(59,130,246,0.15); color: #60a5fa; }
.hab-level.avancado     { background: rgba(139,92,246,0.15); color: #a78bfa; }
.hab-level.expert       { background: rgba(245,158,11,0.2);  color: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.3); }

.cert-card { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(245,158,11,0.08));
  border: 1px solid rgba(245,158,11,0.2); border-radius: 12px; padding: 16px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.btn-cert { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }

.perfil-preview { background: var(--bg-elevated); border-radius: 14px; padding: 16px;
  border: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
.perfil-preview .hab-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px;
  flex: 1; margin: 0 8px; }
.perfil-preview .hab-fill { height: 100%; border-radius: 3px; background: var(--purple); }

/* ─── STREAK / ENGAJAMENTO ────────────────────── */
.streak-banner { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.1));
  border: 1px solid rgba(245,158,11,0.3); border-radius: 14px; padding: 16px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.streak-fire { font-size: 40px; }
.streak-count { font-size: 32px; font-weight: 900; color: var(--gold); }
.streak-label { font-size: 12px; color: var(--text-dim); }

.desafio-card { background: var(--bg-card); border-radius: 14px; padding: 16px;
  border: 1px solid rgba(255,255,255,0.06); margin-bottom: 10px; }
.desafio-progress { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; margin-top: 10px; }
.desafio-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--purple), var(--gold)); transition: width 0.6s; }

/* ─── LOJA DE RECOMPENSAS ────────────────────── */
.loja-item { background: var(--bg-card); border-radius: 14px; padding: 16px;
  border: 1px solid rgba(255,255,255,0.06); text-align: center; }
.loja-item .loja-icon { font-size: 40px; margin-bottom: 8px; }
.loja-item .loja-price { font-size: 14px; font-weight: 800; color: var(--gold); }
.loja-item.indisponivel { opacity: 0.5; }
.loja-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* Profile preview card */
.profile-preview-card { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 12px; padding: 14px; margin-bottom: 16px; font-size: 13px; }
.profile-preview-card ul { list-style: none; margin-top: 8px; }
.profile-preview-card li { padding: 3px 0; color: var(--text-dim); }
.profile-preview-card li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ─── BOTTOM NAV LABELS ─────────────────────── */
.bottom-nav a span:not(.nav-icon) {
  font-size: 10px;
}
.bottom-nav {
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

/* ─── MENU DRAWER ──────────────────────────── */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.menu-overlay.open { display: flex; }
.menu-sheet {
  background: #1c1c2e;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  width: 100%;
  animation: slideUp 0.25s ease;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #13131f;
  border-radius: 12px;
  padding: 14px 6px;
  font-size: 11px;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: 1px solid rgba(255,255,255,0.05);
}
.menu-item:hover, .menu-item:active {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  border-color: rgba(139,92,246,0.3);
}
.menu-item span:first-child { font-size: 22px; }

/* ============================================================
   EXTRA SMALL SCREENS (< 380px)
   ============================================================ */
@media (max-width: 380px) {
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .mini-stat .value { font-size: 18px; }
  .stars .star { font-size: 24px; }
  .score-ring { width: 100px; height: 100px; }
  .score-ring .score-number { font-size: 22px; }
  .toast { white-space: normal; text-align: center; max-width: 90vw; font-size: 13px; }
  .action-card { gap: 12px; padding: 16px 12px; }
  .action-card .card-icon { font-size: 28px; }
  .action-card .card-title { font-size: 14px; }
  .login-title { font-size: 22px; }
  .student-header { padding: 16px 14px 12px; }
  .mission-card { padding: 14px; }
  .tabs { gap: 4px; padding: 8px; }
  .tab-btn { font-size: 12px; padding: 8px 10px; }
}
