:root {
  --bg: #0f1115;
  --bg-elev: #171a21;
  --bg-elev-2: #1f242e;
  --line: #2a303c;
  --text: #f2f5fa;
  --text-dim: #9aa3b2;
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --green: #29d07a;
  --green-soft: rgba(41, 208, 122, 0.15);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(78px + var(--safe-bottom));
}

/* Cabeçalho */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.96), rgba(15, 17, 21, 0.82));
  backdrop-filter: blur(12px);
  padding-top: var(--safe-top);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
.athlete { display: flex; align-items: center; gap: 12px; }
.athlete-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8a4c);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.4);
}
.athlete-info { display: flex; flex-direction: column; line-height: 1.2; }
.athlete-hello { font-size: 12px; color: var(--text-dim); }
.athlete-name { font-size: 16px; font-weight: 700; }
.plan-badge {
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Conteúdo */
.app-main { padding: 18px 18px 8px; }
.view-title { font-size: 26px; font-weight: 800; margin: 4px 0 4px; letter-spacing: -0.02em; }
.view-subtitle { color: var(--text-dim); margin: 0 0 18px; font-size: 14px; }
.hidden { display: none !important; }

/* Card de progresso semanal */
.progress-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.progress-text { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.progress-label { font-size: 13px; color: var(--text-dim); }
.progress-count { font-size: 13px; color: var(--text-dim); }
.progress-count strong { color: var(--text); font-size: 15px; }
.progress-bar { height: 8px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #ff8a4c); border-radius: 999px; transition: width .35s ease; }

/* Chips de filtro por nível */
.filter-chips {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 -18px 16px; padding: 0 18px 2px;
  -webkit-overflow-scrolling: touch;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 8px 16px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Card "como executar" */
.round-guide {
  background: var(--accent-soft);
  border: 1px solid rgba(255, 90, 31, 0.25);
  border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px;
}
.round-guide-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.round-guide-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.round-guide-text strong { color: var(--accent); }

/* kicker do exercício */
.exercise-kicker {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-dim); font-weight: 700; margin-bottom: 2px;
}
.exercise-run { border-color: rgba(255, 90, 31, 0.35); }

/* Lista de dias */
.days-list { display: flex; flex-direction: column; gap: 12px; }
.day-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: transform .12s ease, border-color .2s ease;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
}
.day-card:active { transform: scale(0.985); }
.day-card.done { border-color: var(--green); }
.day-tag {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
}
.day-card.done .day-tag { background: var(--green-soft); color: var(--green); }
.day-card-body { flex: 1; min-width: 0; }
.day-card-title { font-size: 16px; font-weight: 700; margin: 0; }
.day-card-meta { font-size: 13px; color: var(--text-dim); margin: 3px 0 0; }
.day-card-arrow { color: var(--text-dim); font-size: 22px; }
.day-check {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  color: transparent;
  font-size: 13px;
}
.day-card.done .day-check { background: var(--green); border-color: var(--green); color: #06210f; }

/* Detalhe do dia */
.back-btn {
  background: none; border: none; color: var(--accent);
  font-size: 16px; font-weight: 600; padding: 4px 0; margin-bottom: 6px; cursor: pointer;
}
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.day-focus {
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  background: var(--bg-elev-2); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.day-progress { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; }
.day-progress .progress-bar { flex: 1; }
.day-progress-text { font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* Exercícios */
.exercise-list { display: flex; flex-direction: column; gap: 12px; }
.exercise {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .2s ease, opacity .2s ease;
}
.exercise.done { border-color: var(--green); }
.exercise.done .exercise-name { text-decoration: line-through; color: var(--text-dim); }
.exercise-top { display: flex; align-items: flex-start; gap: 12px; }
.exercise-check {
  width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: transparent;
  display: grid; place-items: center;
  color: transparent; cursor: default;
  font-size: 15px; font-weight: 700;
  transition: all .15s ease;
}
.exercise.done .exercise-check { background: var(--green); border-color: var(--green); color: #06210f; }
.exercise-main { flex: 1; min-width: 0; }
.exercise-name { font-size: 16px; font-weight: 700; margin: 0; }
.exercise-note { font-size: 13px; color: var(--text-dim); margin: 6px 0 0; }
.exercise-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stat {
  background: var(--bg-elev-2);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 62px;
}
.stat-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.stat-value { display: block; font-size: 15px; font-weight: 700; margin-top: 2px; }
.video-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--accent); text-decoration: none;
}

/* Anotações */
.notes-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.notes-status { font-size: 12px; color: var(--green); }
.notes-status.saving { color: var(--text-dim); }
.notes-clear { background: none; border: none; color: var(--text-dim); font-size: 13px; cursor: pointer; }
.notes-area {
  width: 100%;
  min-height: 200px;
  resize: vertical;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}
.notes-area:focus { outline: none; border-color: var(--accent); }
.notes-history-title { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.quick-log { display: flex; gap: 8px; margin-bottom: 12px; }
.quick-log-input {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font: inherit; font-size: 14px;
}
.quick-log-input:focus { outline: none; border-color: var(--accent); }
.quick-log-add {
  width: 46px; flex-shrink: 0;
  background: var(--accent); border: none; color: #fff;
  border-radius: var(--radius-sm);
  font-size: 22px; font-weight: 700; cursor: pointer;
}
.log-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.log-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.log-item-body { flex: 1; min-width: 0; }
.log-item-text { font-size: 14px; margin: 0; word-break: break-word; }
.log-item-date { font-size: 11px; color: var(--text-dim); margin: 4px 0 0; }
.log-item-del { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 18px; line-height: 1; }
.empty { color: var(--text-dim); font-size: 14px; text-align: center; padding: 20px 0; }

/* Navegação inferior */
.bottom-nav {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%; max-width: 560px;
  display: flex;
  background: rgba(23, 26, 33, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
  z-index: 30;
}
.nav-btn {
  flex: 1;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 0 10px;
  font-size: 11px; font-weight: 600;
  transition: color .2s ease;
}
.nav-btn svg { width: 24px; height: 24px; fill: currentColor; }
.nav-btn.active { color: var(--accent); }

/* animação de entrada */
.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Jornada gamificada */
.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 3px;
}
.journey-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.journey-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 14px;
  box-shadow: var(--shadow);
}
.level-shield {
  width: 58px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), #ff8a4c);
  clip-path: polygon(50% 0, 95% 18%, 87% 75%, 50% 100%, 13% 75%, 5% 18%);
  color: #fff;
  filter: drop-shadow(0 5px 9px rgba(255, 90, 31, .28));
}
.level-shield span { font-size: 21px; font-weight: 900; line-height: 1; }
.level-shield small { font-size: 7px; font-weight: 800; letter-spacing: .1em; margin-top: 3px; }
.redo-assessment {
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 12px;
  padding: 0;
  margin: -9px 0 17px;
  cursor: pointer;
}
.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.game-stat {
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 8px;
  text-align: center;
}
.game-stat-icon { display: block; font-size: 18px; margin-bottom: 4px; }
.game-stat strong { display: block; font-size: 13px; white-space: nowrap; }
.game-stat small { display: block; color: var(--text-dim); font-size: 9px; margin-top: 2px; }
.xp-next { color: var(--text-dim); font-size: 10px; text-align: right; margin-top: 7px; }

.workout-history {
  margin: 0 0 22px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.history-heading h2 { margin: 0; font-size: 16px; }
.history-count { flex-shrink: 0; color: var(--text-dim); font-size: 10px; }
.history-list { display: flex; flex-direction: column; gap: 7px; max-height: 260px; overflow-y: auto; }
.history-empty { color: var(--text-dim); font-size: 12px; text-align: center; padding: 10px 0 4px; }
.history-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 10px;
  background: var(--bg-elev-2);
}
.history-medal { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); }
.history-info strong { display: block; font-size: 12px; }
.history-info small { display: block; color: var(--text-dim); font-size: 9px; margin-top: 2px; }
.history-time { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

.journey-path { display: flex; flex-direction: column; gap: 0; padding: 2px 0 18px; }
.journey-node {
  position: relative;
  width: calc(100% - 32px);
  margin-bottom: 30px;
}
.journey-node:nth-child(even) { margin-left: 32px; }
.journey-node:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 31px;
  left: 32px;
  top: 100%;
  background: var(--line);
}
.journey-node:nth-child(even):not(:last-child)::after { left: auto; right: 32px; }
.journey-node.done:not(:last-child)::after { background: var(--green); }
.journey-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .18);
}
.journey-node.current .journey-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 25px rgba(0, 0, 0, .25);
}
.journey-node.done .journey-card { border-color: rgba(41, 208, 122, .5); }
.journey-node.locked .journey-card { opacity: .55; cursor: not-allowed; }
.journey-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-elev-2);
  border: 2px solid var(--line);
  font-size: 16px;
  font-weight: 900;
}
.journey-node.current .journey-number { background: var(--accent); border-color: var(--accent); color: #fff; }
.journey-node.done .journey-number { background: var(--green); border-color: var(--green); color: #06210f; }
.journey-content { flex: 1; min-width: 0; }
.journey-title { margin: 0; font-size: 15px; font-weight: 800; }
.journey-meta { margin: 4px 0 0; color: var(--text-dim); font-size: 11px; }
.journey-status { font-size: 19px; flex-shrink: 0; }
.journey-node.locked .journey-status { filter: grayscale(1); }

/* Escolha da dificuldade e conclusão */
.difficulty-label { margin: 16px 0 4px; color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.recommendation { color: var(--green); font-size: 11px; margin-bottom: 8px; }
.difficulty-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 15px; }
.difficulty-btn {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  color: var(--text-dim);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.difficulty-btn span { display: block; font-size: 16px; margin-bottom: 3px; }
.difficulty-btn.active { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.difficulty-btn.completed::after {
  content: "✓";
  position: absolute;
  right: 5px;
  top: 4px;
  color: var(--green);
  font-size: 10px;
}
.workout-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-elev), var(--bg-elev-2));
}
.workout-timer.running {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.workout-timer.countdown {
  border-color: var(--accent);
  background: var(--accent-soft);
  animation: countdownPulse 1s ease-in-out infinite;
}
.workout-timer.countdown .timer-label { color: var(--accent); }
.workout-timer.countdown .timer-clock strong { color: var(--accent); font-size: 34px; }
.timer-clock { min-width: 0; }
.timer-label { display: block; color: var(--text-dim); font-size: 9px; font-weight: 800; letter-spacing: .09em; margin-bottom: 3px; }
.timer-clock strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.timer-actions { display: flex; align-items: center; gap: 6px; }
.timer-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 11px;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.timer-start { background: var(--accent); }
.timer-pause { background: var(--bg-elev-2); border: 1px solid var(--line) !important; }
.timer-reset { background: transparent; color: var(--text-dim) !important; font-size: 18px !important; padding: 0 7px !important; }
.difficulty-btn:disabled { opacity: .5; cursor: not-allowed; }
.finish-workout {
  width: 100%;
  margin: 18px 0 6px;
  padding: 15px 18px;
  border: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--accent), #ff8a4c);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 90, 31, .25);
}
.finish-workout small { font-weight: 700; opacity: .9; }
.finish-workout:disabled { background: var(--bg-elev-2); color: var(--text-dim); box-shadow: none; cursor: not-allowed; }

/* Celebração e avaliação inicial */
.celebration,
.assessment {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 8, 11, .84);
  backdrop-filter: blur(8px);
}
.celebration-card,
.assessment-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
  animation: pop .3s ease;
}
.celebration-card { text-align: center; }
.celebration-image,
.assessment-image {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.celebration-image { aspect-ratio: 16 / 8; margin-bottom: 18px; }
.assessment-image { aspect-ratio: 16 / 7; margin: 0 0 18px; }
.celebration-card h2 { margin: 8px 0; font-size: 25px; }
.celebration-time { display: block; color: var(--accent); font-size: 33px; font-variant-numeric: tabular-nums; letter-spacing: .04em; margin: 12px 0; }
.celebration-card p { color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.celebration-card button,
.assessment-next {
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.assessment-progress { height: 5px; background: var(--bg-elev-2); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.assessment-progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.assessment-card h2 { margin: 8px 0 7px; font-size: 23px; line-height: 1.2; }
.assessment-card > div > p,
.assessment-copy { color: var(--text-dim); font-size: 13px; line-height: 1.5; margin: 0 0 17px; }
.assessment-options { display: flex; flex-direction: column; gap: 9px; }
.assessment-option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: var(--bg-elev-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.assessment-option:active { border-color: var(--accent); }
.assessment-result { text-align: center; }
.result-badge { font-size: 48px; margin: 12px 0 5px; }
.assessment-disclaimer { color: var(--text-dim); font-size: 10px; line-height: 1.4; margin-top: 14px; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes countdownPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .08); }
  50% { box-shadow: 0 0 0 6px rgba(255, 90, 31, .14); }
}

/* Autenticação */
.header-actions { display: flex; align-items: center; gap: 7px; }
.logout-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: 17px;
  cursor: pointer;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 90, 31, .15), transparent 38%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(23, 26, 33, .96);
  box-shadow: var(--shadow);
}
.auth-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 17px;
  margin-bottom: 20px;
}
.auth-card h1 { margin: 5px 0 8px; font-size: 28px; line-height: 1.07; letter-spacing: -.03em; }
.auth-copy { margin: 0 0 18px; color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 12px; background: var(--bg); margin-bottom: 15px; }
.auth-tab {
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.auth-tab.active { color: #fff; background: var(--bg-elev-2); }
.auth-form { display: flex; flex-direction: column; gap: 11px; }
.auth-form label { color: var(--text-dim); font-size: 11px; font-weight: 700; }
.auth-form input {
  width: 100%;
  margin-top: 5px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-submit {
  border: 0;
  border-radius: 11px;
  padding: 13px;
  margin-top: 3px;
  background: linear-gradient(135deg, var(--accent), #ff8a4c);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.auth-submit:disabled { opacity: .6; cursor: wait; }
#signupForm .auth-submit {
  background: linear-gradient(135deg, #20b968, #38d98a);
  box-shadow: 0 7px 18px rgba(41, 208, 122, .22);
}
.auth-link {
  border: 1px solid rgba(255, 122, 47, .35);
  border-radius: 10px;
  padding: 11px;
  background: rgba(255, 122, 47, .1);
  color: #ff7a2f;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.auth-link-secondary {
  border: 0;
  padding: 3px;
  background: none;
  color: var(--text-dim);
  font-size: 11px;
}
.auth-message { padding: 10px 12px; margin: 12px 0 0; border-radius: 10px; color: #ffb396; background: var(--accent-soft); font-size: 12px; line-height: 1.4; }
.auth-message.success { color: var(--green); background: var(--green-soft); }

/* Painel administrativo */
.admin-refresh {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  margin: 0 0 12px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.admin-stat { padding: 12px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); text-align: center; }
.admin-stat strong { display: block; color: var(--accent); font-size: 19px; }
.admin-stat small { display: block; color: var(--text-dim); font-size: 9px; margin-top: 2px; }
.student-list { display: flex; flex-direction: column; gap: 9px; }
.student-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.student-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.student-head strong { display: block; font-size: 14px; }
.student-head small { display: block; color: var(--text-dim); font-size: 10px; margin-top: 3px; }
.student-level { padding: 5px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; }
.student-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 11px; }
.student-metric { padding: 8px 5px; border-radius: 9px; background: var(--bg-elev-2); text-align: center; }
.student-metric strong { display: block; font-size: 12px; }
.student-metric small { color: var(--text-dim); font-size: 8px; }

/* Primeiro acesso e avaliação em páginas separadas */
.welcome-screen,
.quiz-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 90, 31, .16), transparent 42%),
    var(--bg);
}
.welcome-card {
  width: 100%;
  max-width: 430px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  text-align: center;
}
.welcome-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 17px;
  margin-bottom: 20px;
}
.welcome-card .eyebrow { text-align: left; }
.welcome-card h1 { margin: 6px 0 10px; font-size: 30px; line-height: 1.08; }
.welcome-card h1 span { color: var(--accent); }
.welcome-card > p:not(.auth-message) { color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.welcome-steps { display: flex; flex-direction: column; gap: 7px; margin: 18px 0; text-align: left; }
.welcome-steps span { padding: 10px; border-radius: 10px; background: var(--bg-elev-2); font-size: 12px; }
.welcome-steps strong { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 50%; background: var(--accent); color: #fff; }
.welcome-card > button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #ff8a4c);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.quiz-screen .assessment-card { position: static; max-width: 430px; }
.assessment-link {
  display: block;
  text-align: center;
  text-decoration: none;
}
