:root {
  --bg: #08090d;
  --bg-soft: #11131a;
  --panel: #151821;
  --panel-2: #1a1f2b;
  --panel-3: #202635;
  --border: rgba(201, 168, 76, 0.14);
  --border-strong: rgba(201, 168, 76, 0.26);
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.12);
  --text: #efe8d7;
  --muted: #a49d8d;
  --muted-2: #726b5d;
  --green: #4ade80;
  --red: #f87171;
  --blue: #60a5fa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at top, rgba(201, 168, 76, 0.09), transparent 30%),
    linear-gradient(180deg, #06070a 0%, #0b0d13 100%);
  color: var(--text);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.app-login { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card {
  width: min(100%, 420px);
  background: rgba(21, 24, 33, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18), transparent 70%);
  pointer-events: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}
.headline {
  margin: 0.6rem 0 0.5rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.05;
}
.subhead { margin: 0 0 1.5rem; color: var(--muted); line-height: 1.6; font-size: 0.98rem; }
.form-grid { display: grid; gap: 1rem; }
.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}
.input, .select, .textarea {
  width: 100%;
  background: rgba(32, 38, 53, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--border-strong); transform: translateY(-1px); }
.textarea { resize: vertical; min-height: 90px; }
.button {
  border: none;
  border-radius: 14px;
  padding: 0.92rem 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.65; cursor: wait; }
.button-primary {
  background: linear-gradient(135deg, #dfc36d 0%, #c9a84c 100%);
  color: #090a0e;
  box-shadow: 0 12px 30px rgba(201, 168, 76, 0.22);
}
.button-secondary { background: transparent; color: var(--gold); border: 1px solid var(--border-strong); }
.button-danger { background: rgba(248, 113, 113, 0.12); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.22); }
.message { min-height: 1.2rem; font-size: 0.9rem; }
.message.error { color: var(--red); }
.message.success { color: var(--green); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.app-sidebar {
  border-right: 1px solid var(--border);
  background: rgba(10, 12, 18, 0.88);
  backdrop-filter: blur(24px);
  padding: 1.5rem 1.2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar-brand { display: block; text-decoration: none; margin-bottom: 1.6rem; }
.sidebar-brand strong { display: block; font-size: 1.1rem; color: var(--gold); letter-spacing: 0.06em; }
.sidebar-brand span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.88rem; }
.sidebar-section { margin-bottom: 1.4rem; }
.sidebar-section h3 { margin: 0 0 0.7rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }
.nav-list { display: grid; gap: 0.45rem; }
.nav-link {
  text-decoration: none;
  padding: 0.78rem 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover, .nav-link.is-active { background: var(--gold-soft); border-color: var(--border); color: var(--text); }
.sidebar-profile {
  margin-top: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(21, 24, 33, 0.72);
}
.sidebar-profile strong, .sidebar-profile span { display: block; }
.sidebar-profile strong { font-size: 0.95rem; }
.sidebar-profile span { margin-top: 0.3rem; color: var(--muted); font-size: 0.82rem; }
.app-main { padding: 1.5rem; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.page-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); font-family: "Playfair Display", serif; }
.page-copy { margin: 0.4rem 0 0; color: var(--muted); }
.content-grid, .list, .week-strip, .day-group { display: grid; gap: 1rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: rgba(21, 24, 33, 0.9);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.card-title { margin: 0; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.stat-card { padding: 1.2rem; }
.stat-value { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { margin-top: 0.4rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.stat-help { margin-top: 0.75rem; color: var(--muted); font-size: 0.88rem; }
.list-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(32, 38, 53, 0.38);
  border-radius: 18px;
  padding: 1rem;
}
.list-item strong, .list-item span { display: block; }
.list-item strong { font-size: 1rem; }
.list-item span { color: var(--muted); margin-top: 0.35rem; }
.badge-row, .inline-actions, .toolbar { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.badge.gold { color: var(--gold); }
.badge.green { color: var(--green); }
.badge.blue { color: var(--blue); }
.badge.red { color: var(--red); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 0.9rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  vertical-align: top;
}
.table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.muted { color: var(--muted); }
.empty-state { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.day-title { margin: 0; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }
.plan-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(32, 38, 53, 0.38);
}
.plan-item.done { opacity: 0.72; }
.plan-item.done .plan-item-title { text-decoration: line-through; }
.checkbox { margin-top: 0.15rem; }
.plan-item-title { font-weight: 700; }
.plan-item-copy { margin-top: 0.3rem; color: var(--muted); font-size: 0.92rem; }
.plan-month-summary strong,
.plan-month-summary span,
.plan-task-main strong,
.plan-task-main p {
  display: block;
}
.plan-month-summary span {
  margin-top: 0.35rem;
  color: var(--muted);
}
.plan-group + .plan-group {
  margin-top: 1rem;
}
.plan-task {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(32, 38, 53, 0.38);
}
.plan-task.done {
  opacity: 0.75;
}
.plan-task.done .plan-item-title {
  text-decoration: line-through;
}
.plan-task-main .inline-actions {
  margin-top: 1rem;
}
.metric-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.metric-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #dfc36d 0%, #c9a84c 100%);
}
.performance-overview {
  overflow: hidden;
}
.performance-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.15fr 0.95fr 1.4fr;
  align-items: stretch;
}
.performance-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.performance-stat {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(32, 38, 53, 0.56) 0%, rgba(21, 24, 33, 0.92) 100%);
  padding: 1rem;
  min-height: 116px;
}
.performance-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.performance-stat-value {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.performance-stat-value.is-green {
  color: var(--green);
}
.performance-stat-value.is-red {
  color: var(--red);
}
.chart-panel {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(32, 38, 53, 0.48) 0%, rgba(21, 24, 33, 0.92) 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.chart-panel-wide {
  min-width: 0;
}
.chart-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.chart-panel-head strong {
  font-size: 0.9rem;
}
.chart-panel-head span {
  color: var(--muted);
  font-size: 0.84rem;
}
.chart-panel-body {
  flex: 1;
  display: grid;
  place-items: center;
}
.donut-panel {
  min-height: 220px;
}
.donut-chart {
  width: min(220px, 100%);
  height: auto;
}
.donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 16;
}
.donut-progress {
  fill: none;
  stroke: var(--green);
  stroke-width: 16;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 80px 80px;
}
.donut-value {
  fill: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
}
.donut-label {
  fill: var(--muted);
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-block;
}
.legend-dot.is-gold {
  background: var(--gold);
}
.legend-dot.is-green {
  background: var(--green);
}
.legend-dot.is-red {
  background: var(--red);
}
.performance-chart-svg {
  width: 100%;
  height: auto;
  min-height: 210px;
}
.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}
.chart-axis-label {
  fill: var(--muted);
  font-size: 10px;
  font-family: "Outfit", sans-serif;
}
.chart-bar {
  opacity: 0.95;
}
.chart-bar-questions {
  fill: var(--gold);
}
.chart-bar-hits {
  fill: var(--green);
}
.mentor-pulse-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mentor-pulse-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(32, 38, 53, 0.48) 0%, rgba(21, 24, 33, 0.92) 100%);
  padding: 1rem;
}
.mentor-pulse-chart {
  margin-top: 0.8rem;
}
.mentor-pulse-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}
.mentor-pulse-metrics span {
  display: block;
  padding: 0.7rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.mentor-pulse-metrics strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}
.mentor-pulse-metrics small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.mentor-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  min-height: 3.1em;
}
.mini-activity-chart {
  width: 100%;
  height: auto;
}
.mini-chart-bar {
  fill: var(--gold);
  opacity: 0.95;
}
.mini-chart-label {
  fill: var(--muted);
  font-size: 9px;
  font-family: "Outfit", sans-serif;
}
.mentor-mini-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.week-strip-row { display: grid; gap: 0.45rem; }
.week-strip-row header { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.anchor-section { scroll-margin-top: 1.5rem; }
.mobile-nav-toggle { display: none; }
.app-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.64);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 70;
}
body.nav-open { overflow: hidden; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 320px);
    height: 100vh;
    z-index: 80;
    border-right: 1px solid var(--border-strong);
    border-bottom: none;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .app-sidebar.is-open {
    transform: translateX(0);
  }
  .app-main { min-width: 0; }
  .app-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
  }
  .app-topbar > div { min-width: 0; }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
  }
  .app-nav-overlay { display: block; }
  .app-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-layout { grid-template-columns: 1fr; }
  .performance-grid {
    grid-template-columns: 1fr;
  }
  .mentor-pulse-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .app-main, .app-sidebar, .login-card { padding: 1.1rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .app-topbar { grid-template-columns: auto minmax(0, 1fr); }
  .app-topbar .button-danger {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .performance-metrics {
    grid-template-columns: 1fr;
  }
  .mentor-pulse-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════════════
   TODAY CARD — check-in metrics grid
═══════════════════════════════════════════════ */
.today-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}
.today-metrics > span {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem .5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.today-metrics > span > strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.today-metrics > span > small {
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 900px) {
  .today-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════════════
   STREAK DISPLAY
═══════════════════════════════════════════════ */
.streak-display {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.streak-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: .85rem 1.25rem;
  min-width: 90px;
}
.streak-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.streak-label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}
.streak-best {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .6rem 1rem;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.streak-best .streak-number {
  font-size: 1.6rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   PLAN PROGRESS ROW
═══════════════════════════════════════════════ */
.plan-progress-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.plan-progress-row .metric-bar {
  flex: 1;
}
.plan-progress-pct {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  min-width: 2.8rem;
  text-align: right;
}

/* ═══════════════════════════════════════════════
   POMODORO TIMER CARD
═══════════════════════════════════════════════ */
.pomodoro-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  padding-top: .25rem;
}
.pomodoro-display {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color .3s;
}
.pomodoro-display.is-break {
  color: var(--green);
}
.pomodoro-mode-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: -.4rem;
}
.pomodoro-sessions {
  font-size: .85rem;
  color: var(--muted);
}
.pomodoro-sessions strong {
  color: var(--text);
}
.pomodoro-dots {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pomo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--panel-3);
  border: 1.5px solid var(--border-strong);
  transition: background .2s, transform .2s;
}
.pomo-dot.is-filled {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}
.pomodoro-controls {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pomodoro-controls .button {
  min-width: 5.5rem;
  font-size: .85rem;
  padding: .45rem .9rem;
}
.pomo-status {
  font-size: .8rem;
  color: var(--muted);
  min-height: 1.2em;
  text-align: center;
}

/* ── Pomodoro melhorado ─────────────────────────────────────────── */
.pomodoro-cycle {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .15rem;
}
.pomodoro-status {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  margin: .4rem 0 .5rem;
  min-height: 1.3em;
  transition: color .3s;
}
.pomodoro-footer {
  font-size: .8rem;
  color: var(--muted-2);
  text-align: center;
  margin-top: .6rem;
}

/* Pulso animado enquanto o timer roda */
@keyframes pomo-pulse {
  0%, 100% { text-shadow: 0 0 0px var(--gold); opacity: 1; }
  50% { text-shadow: 0 0 18px rgba(201,168,76,.55); opacity: .88; }
}
.pomodoro-display.is-running {
  animation: pomo-pulse 2s ease-in-out infinite;
}
.pomodoro-display.is-break.is-running {
  animation: pomo-pulse 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN — TAB NAVIGATION
═══════════════════════════════════════════════════════════════ */
.admin-tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  padding: 1rem 0 .2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.admin-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  padding: .5rem 1.1rem;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.admin-tab:hover {
  background: var(--gold-soft);
  border-color: var(--border-strong);
  color: var(--text);
}
.admin-tab.is-active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

/* Sections — hidden unless active */
.admin-section { display: none; }
.admin-section.is-active { display: block; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN — SUBTAB NAVIGATION (inside Conteúdo)
═══════════════════════════════════════════════════════════════ */
.admin-subtabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.admin-subtab {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 500;
  padding: .4rem .9rem;
  transition: background .15s, color .15s, border-color .15s;
}
.admin-subtab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.admin-subtab.is-active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

/* Subsections — hidden unless active */
.admin-subsection { display: none; }
.admin-subsection.is-active { display: block; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN — TODAY STUDENT GRID
═══════════════════════════════════════════════════════════════ */
.mentor-today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .85rem;
}
.mentor-student-card {
  padding: .95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.mentor-student-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  flex-wrap: wrap;
}
.mentor-student-head strong {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.mentor-student-concurso {
  font-size: .75rem;
  color: var(--muted);
  margin-top: -.1rem;
}
.mentor-student-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .3rem;
  margin-top: .3rem;
}
.mentor-student-metrics > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--panel-2);
  border-radius: 8px;
  padding: .35rem .2rem;
  text-align: center;
}
.mentor-student-metrics > span > strong {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.mentor-student-metrics > span > small {
  font-size: .62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .15rem;
}
.mentor-student-obs {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  margin: .2rem 0 0;
  line-height: 1.4;
}
.mentor-student-obs.is-muted {
  opacity: .6;
}

@media (max-width: 720px) {
  .admin-tabs { gap: .3rem; }
  .admin-tab  { font-size: .78rem; padding: .4rem .8rem; }
  .mentor-today-grid { grid-template-columns: 1fr; }
}


/* Interactive study plan */
.plan-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.plan-mini-stat,
.plan-focus-panel,
.plan-type-row,
.plan-detail-panel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(32, 38, 53, 0.42);
  border-radius: 18px;
}
.plan-mini-stat {
  padding: .9rem;
}
.plan-mini-stat strong {
  display: block;
  font-size: 1.35rem;
}
.plan-mini-stat strong.is-gold { color: var(--gold); }
.plan-mini-stat strong.is-blue { color: var(--blue); }
.plan-mini-stat strong.is-green { color: var(--green); }
.plan-mini-stat strong.is-red { color: var(--red); }
.plan-mini-stat span,
.plan-type-row span,
.plan-focus-panel p,
.table-subcopy {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}
.plan-type-progress {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}
.plan-type-row {
  display: grid;
  grid-template-columns: minmax(160px, .4fr) minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  padding: .8rem;
}
.plan-type-row strong {
  display: block;
  text-transform: capitalize;
}

.plan-day-list {
  display: grid;
  gap: 1rem;
}
.plan-current-step,
.plan-worklist-head,
.plan-history summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(223, 195, 109, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(223, 195, 109, 0.12), rgba(32, 38, 53, 0.42));
}
.plan-current-step {
  justify-content: flex-start;
}
.plan-current-step strong,
.plan-worklist-head strong,
.plan-history summary strong {
  display: block;
}
.plan-current-step p,
.plan-current-step small,
.plan-worklist-head > div > span,
.plan-history summary > div > span {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  line-height: 1.45;
}
.plan-current-step p {
  color: var(--text);
}
.plan-current-step.is-complete {
  border-color: rgba(57, 217, 138, 0.24);
  background: linear-gradient(135deg, rgba(57, 217, 138, 0.10), rgba(32, 38, 53, 0.42));
}
.plan-history {
  margin-top: 1rem;
}
.plan-history summary {
  cursor: pointer;
  list-style: none;
}
.plan-history summary::-webkit-details-marker {
  display: none;
}
.plan-history summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.plan-history[open] summary {
  margin-bottom: 1rem;
}
.plan-day-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: .75rem;
  padding: .85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(8, 9, 13, 0.24);
}
.plan-day-head span {
  display: block;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .9rem;
}
.plan-day-actions {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: .75rem;
  align-items: center;
}
.plan-day-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.plan-day-progress span {
  display: block;
  height: 100%;
  margin: 0;
  background: linear-gradient(135deg, #dfc36d 0%, #c9a84c 100%);
}
.plan-group.is-completed .plan-day-head {
  background: rgba(8, 9, 13, 0.16);
}
.plan-group.is-completed .plan-task {
  opacity: .72;
}
.plan-bulk-actions {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto minmax(0, 1fr);
  gap: .75rem;
  align-items: end;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(32, 38, 53, 0.34);
}
.plan-bulk-actions .message {
  min-height: 0;
  margin: 0;
}
@media (max-width: 980px) {
  .plan-current-step,
  .plan-worklist-head,
  .plan-history summary,
  .plan-day-head,
  .plan-day-actions,
  .plan-bulk-actions {
    grid-template-columns: 1fr;
  }
  .plan-current-step,
  .plan-worklist-head,
  .plan-history summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.plan-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.plan-focus-panel {
  padding: .9rem;
}
.plan-focus-panel > strong {
  display: block;
  margin-bottom: .55rem;
}
.plan-focus-panel ul {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-focus-panel li {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.plan-focus-panel li span {
  display: inline-block;
  min-width: 3.2rem;
  color: var(--gold);
  font-weight: 700;
}
.plan-monitor-select {
  display: block;
  max-width: 520px;
  margin-top: 1rem;
}
.plan-detail-panels {
  margin-top: 1rem;
}
.plan-detail-panel {
  display: none;
  padding: 1rem;
}
.plan-detail-panel.is-active {
  display: block;
}
.plan-detail-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(220px, .45fr);
  gap: 1rem;
  align-items: center;
}
.plan-detail-head strong,
.plan-detail-head span {
  display: block;
}
.plan-detail-head span {
  margin-top: .25rem;
  color: var(--muted);
}
.plan-detail-table {
  margin-top: 1rem;
  max-height: 520px;
  overflow: auto;
}
@media (max-width: 980px) {
  .plan-overview-grid,
  .plan-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-detail-head,
  .plan-type-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .plan-overview-grid,
  .plan-focus-grid {
    grid-template-columns: 1fr;
  }
}

/* Study Methods */
.method-breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.method-breadcrumb a { color: var(--gold); text-decoration: none; }
.method-breadcrumb a:hover { text-decoration: underline; }
.method-home-hero,
.method-lesson-hero,
.method-home-note {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(21, 24, 33, 0.96), rgba(32, 38, 53, 0.76));
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.method-home-hero { padding: clamp(1.35rem, 3vw, 2rem); }
.method-home-hero h1,
.method-lesson-hero h1 {
  margin: 0.35rem 0 0.8rem;
  font-family: "Playfair Display", serif;
  line-height: 1.04;
}
.method-home-hero h1 { font-size: clamp(2rem, 5vw, 3.7rem); }
.method-home-hero p,
.method-lesson-hero p,
.method-home-note p,
.lesson-block p,
.exercise-card p {
  color: var(--muted);
  line-height: 1.68;
}
.method-home-hero > p { max-width: 820px; font-size: clamp(1rem, 2vw, 1.12rem); }
.method-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.method-index-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(21, 24, 33, 0.86);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.method-index-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.method-index-card h2 { margin: 0; font-size: 1.15rem; }
.method-index-card .button { margin-top: auto; width: 100%; justify-content: center; text-align: center; }
.method-card-icon,
.method-hero-mark {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
}
.method-card-icon { width: 52px; height: 52px; border-radius: 16px; }
.method-card-count,
.method-module-label,
.lesson-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}
.method-home-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem;
}
.method-home-note h2 { margin: 0.4rem 0 0; }
.method-home-note p { margin-bottom: 0; max-width: 780px; }
.method-lesson-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.method-lesson-hero h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.method-lesson-hero p { max-width: 780px; font-size: 1.02rem; }
.method-hero-mark {
  width: 150px;
  height: 150px;
  justify-self: end;
  border-radius: 34px;
  font-size: 2.3rem;
}
.method-detail-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}
.method-side-nav {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(10, 12, 18, 0.78);
}
.method-side-nav strong { color: var(--text); font-size: 0.84rem; margin: 0.35rem 0; }
.method-side-nav a {
  color: var(--muted);
  text-decoration: none;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
}
.method-side-nav a:hover,
.method-side-nav a:focus-visible,
.method-side-nav a.is-current {
  color: var(--text);
  background: var(--gold-soft);
  outline: none;
}
.method-side-nav hr { width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); margin: 0.45rem 0; }
.method-lesson { display: grid; gap: 1rem; }
.lesson-block,
.golden-rule-card,
.exercise-card,
.suggestion-card,
.lesson-final {
  border: 1px solid var(--border);
  background: rgba(21, 24, 33, 0.9);
  border-radius: 22px;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  box-shadow: var(--shadow);
}
.lesson-block h2,
.exercise-card h2 { margin: 0.45rem 0 0.8rem; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.lesson-block p:last-child { margin-bottom: 0; }
.lesson-block-accent,
.lesson-objective,
.exercise-card {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.11), rgba(32, 38, 53, 0.72));
}
.method-bullet-list,
.check-list,
.prompt-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.method-bullet-list li,
.check-list li,
.prompt-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--muted);
  line-height: 1.55;
}
.method-bullet-list li::before,
.check-list li::before,
.prompt-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}
.check-list li::before { border-radius: 3px; }
.prompt-list li {
  font-family: inherit;
  background: rgba(8, 9, 13, 0.32);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 0.75rem 0.9rem 0.75rem 2.15rem;
}
.prompt-list li::before { left: 0.9rem; }
.method-mini-grid,
.subblock-grid,
.compare-grid,
.flashcard-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.method-mini-card,
.subblock-card,
.compare-grid article,
.flashcard-demo article,
.flow-step {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(32, 38, 53, 0.48);
  border-radius: 18px;
  padding: 1rem;
}
.method-mini-card h3,
.subblock-card h3 { margin: 0 0 0.55rem; }
.method-mini-card p { margin-top: 0; }
.method-step-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.method-step-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(32, 38, 53, 0.5);
  border-radius: 18px;
}
.method-step-list span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 800;
}
.method-step-list h3 { margin: 0 0 0.3rem; }
.method-step-list p { margin: 0; }
.golden-rule-card {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(21, 24, 33, 0.94));
}
.suggestion-card {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.16), rgba(21, 24, 33, 0.92));
}
.suggestion-card h2 { margin: 0.45rem 0 0.75rem; }
.suggestion-card p { color: var(--muted); line-height: 1.65; }
.suggestion-card p:last-child { margin-bottom: 0; }
.golden-rule-card span { display: block; color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 800; margin-bottom: 0.6rem; }
.golden-rule-card strong { display: block; font-family: "Playfair Display", serif; font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1.16; }
.method-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}
.flow-step span { display: block; color: var(--gold); font-weight: 800; margin-bottom: 0.4rem; }
.flow-step strong { display: block; }
.flashcard-demo article { min-height: 150px; display: grid; align-content: space-between; }
.flashcard-demo span,
.compare-grid span { color: var(--muted); line-height: 1.55; }
.compare-grid strong,
.flashcard-demo strong { display: block; font-size: 1.05rem; }
.lesson-final {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.lesson-final p { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(1.2rem, 2.5vw, 1.8rem); line-height: 1.2; }
.button:focus-visible,
.nav-link:focus-visible,
.method-index-card a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (max-width: 1200px) {
  .method-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .method-detail-layout,
  .method-lesson-hero { grid-template-columns: 1fr; }
  .method-side-nav { position: static; }
  .method-hero-mark { justify-self: start; width: 110px; height: 110px; border-radius: 26px; }
  .method-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .method-index-grid,
  .method-mini-grid,
  .subblock-grid,
  .compare-grid,
  .flashcard-demo,
  .method-flow { grid-template-columns: 1fr; }
  .method-home-note,
  .lesson-final { align-items: flex-start; flex-direction: column; }
  .method-index-card { min-height: 0; }
}
