/* ═══════════════════════════════════════════════════════
   Metacogni Dashboard — Dark Mode Premium
   Glassmorphism · Gradients · Micro-animations
   ═══════════════════════════════════════════════════════ */

/* ── Body override when dashboard is active ── */
body:has(.dashboard) {
  background: #060918;
  color: #cbd5e1;
}

/* ── Dark Theme Variables (scoped to dashboard) ── */
.dashboard {
  --ink: #f1f5f9;
  --ink2: #cbd5e1;
  --ink3: #94a3b8;
  --mut: #64748b;
  --bg: #060918;
  --bg2: #0f172a;
  --card: rgba(15, 23, 42, 0.55);
  --card-solid: #111827;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --glass: rgba(15, 23, 42, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --pri: #6366f1;
  --pri2: #818cf8;
  --pri-soft: rgba(99, 102, 241, 0.12);
  --acc: #f97316;
  --acc-soft: rgba(249, 115, 22, 0.1);
  --ok: #10b981;
  --ok-soft: rgba(16, 185, 129, 0.1);
  --bad: #ef4444;
  --bad-soft: rgba(239, 68, 68, 0.1);
  --warn: #eab308;
  --warn-soft: rgba(234, 179, 8, 0.1);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.1);
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --sh: 0 4px 16px rgba(0, 0, 0, 0.45);
  --sh-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 20px;
}

/* ── Keyframes ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
  50%      { box-shadow: 0 0 20px rgba(249, 115, 22, 0.7); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ── Dashboard Base ── */
.dashboard {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% -5%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(34, 211, 238, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 45%),
    var(--bg);
  color: var(--ink2);
}

/* ── Glass Card Utility ── */
.glass-card {
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.glass-card:hover {
  border-color: var(--line2);
}

/* ── Header ── */
.dash-header {
  background: rgba(6, 9, 24, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeIn 400ms var(--ease);
}
.dash-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(249, 115, 22, 0.3), transparent);
}
.dash-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pri), #4f46e5);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}
.brand .logo svg {
  width: 20px;
  height: 20px;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #f1f5f9, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--mut) !important;
  letter-spacing: 0.2px;
}

/* Avatar */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pri), var(--acc));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}
.avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--pri-soft), 0 0 16px rgba(99, 102, 241, 0.3);
}

/* Notification button */
.btn-notif {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink3);
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.btn-notif:hover {
  background: rgba(255,255,255,0.1);
  color: var(--ink);
  border-color: var(--line2);
}
.btn-notif .notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--acc);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.5);
}

/* ── Main ── */
.dash-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 48px) 100px;
}

/* ── Greeting ── */
.dash-greeting {
  margin-bottom: 36px;
  animation: fadeInUp 500ms var(--ease);
}
.dash-greeting h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  background: linear-gradient(135deg, #f1f5f9 30%, #818cf8 70%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-greeting p {
  color: var(--mut);
  font-size: 15px;
  margin-top: 6px;
}
.dash-greeting .greeting-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--sh-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
  animation: fadeInUp 500ms var(--ease) backwards;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.stat-card:nth-child(1) { animation-delay: 100ms; }
.stat-card:nth-child(2) { animation-delay: 150ms; }
.stat-card:nth-child(3) { animation-delay: 200ms; }
.stat-card:nth-child(4) { animation-delay: 250ms; }
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
  border-color: var(--line2);
}
.stat-card:nth-child(1):hover { box-shadow: var(--sh), 0 0 24px rgba(99, 102, 241, 0.12); }
.stat-card:nth-child(2):hover { box-shadow: var(--sh), 0 0 24px rgba(16, 185, 129, 0.12); }
.stat-card:nth-child(3):hover { box-shadow: var(--sh), 0 0 24px rgba(34, 211, 238, 0.12); }
.stat-card:nth-child(4):hover { box-shadow: var(--sh), 0 0 24px rgba(234, 179, 8, 0.12); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.stat-icon .icon { width: 22px; height: 22px; }
.stat-info { display: flex; flex-direction: column; }
.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  animation: countUp 600ms var(--ease) backwards;
}
.stat-label {
  font-size: 12.5px;
  color: var(--mut);
  font-weight: 500;
  margin-top: 2px;
}

/* ── Grid Layout ── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.dash-main-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-header h2 .section-icon {
  width: 20px;
  height: 20px;
  color: var(--pri2);
}

/* ── Dash Sections ── */
.dash-section {
  animation: fadeInUp 500ms var(--ease) backwards;
}
.dash-section:nth-child(1) { animation-delay: 300ms; }
.dash-section:nth-child(2) { animation-delay: 350ms; }
.dash-section:nth-child(3) { animation-delay: 400ms; }

/* ── Concurso Cards ── */
.concurso-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--sh);
  transition: all 250ms var(--ease);
}
.concurso-card:hover {
  box-shadow: var(--sh-lg);
  border-color: var(--line2);
  transform: translateY(-2px);
}
.concurso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.concurso-nome {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.concurso-cargo {
  font-size: 13px;
  color: var(--mut);
  margin-top: 2px;
}

/* ── Progress Ring ── */
.concurso-progress-ring {
  position: relative;
  width: 56px;
  height: 56px;
}
.concurso-progress-ring svg {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
}
.ring-fill {
  fill: none;
  stroke: url(#ring-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray .8s var(--ease);
  filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.3));
}
.ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* ── Disciplinas ── */
.disciplinas-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.disciplina-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: all 200ms var(--ease);
  text-decoration: none;
  color: inherit;
}
.disciplina-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}
.disciplina-info { flex: 1; min-width: 0; }
.disciplina-nome {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  display: block;
}
.disciplina-meta {
  font-size: 11.5px;
  color: var(--mut);
}
.disciplina-bar {
  width: 80px;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}
.disciplina-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pri), var(--acc));
  border-radius: 9px;
  transition: width .6s var(--ease);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.2);
}
.disciplina-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--mut);
  width: 32px;
  text-align: right;
}

/* ── Sidebar ── */
.dash-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideInRight 600ms var(--ease) backwards;
  animation-delay: 300ms;
}
.aside-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--sh-sm);
}
.aside-card .section-header {
  margin-bottom: 14px;
}
.aside-card .section-header h2 {
  font-size: 15px;
}

/* ── Last Activity ── */
.last-activity-empty {
  text-align: center;
  padding: 16px 8px;
  color: var(--mut);
  font-size: 13.5px;
}
.last-activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
}
.last-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.last-activity-text {
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.5;
}
.last-activity-time {
  font-size: 11.5px;
  color: var(--mut);
  display: block;
  margin-top: 2px;
}
.last-activity-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pri2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
  transition: color 200ms var(--ease);
}
.last-activity-link:hover {
  color: var(--acc);
}

/* ── Quick Actions ── */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink2);
  transition: all 200ms var(--ease);
  cursor: pointer;
  width: 100%;
  text-align: left;
  text-decoration: none;
}
.quick-action:hover {
  border-color: var(--pri);
  background: var(--pri-soft);
  transform: translateX(4px);
  color: var(--ink);
}
.qa-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.qa-icon .icon { width: 18px; height: 18px; }

/* ── Streak Card ── */
.streak-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  padding: 20px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.streak-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.streak-flame {
  font-size: 32px;
  animation: float 3s ease-in-out infinite;
}
.streak-count {
  font-size: 22px;
  font-weight: 800;
}
.streak-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.streak-dots {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.streak-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transition: all .4s var(--ease);
}
.streak-dot.active {
  background: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* ── Reviews Section ── */
.reviews-section {
  animation: fadeInUp 500ms var(--ease) backwards;
  animation-delay: 350ms;
}
.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 200ms var(--ease);
}
.review-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--line2);
}
.review-item.review-due {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.04);
}
.review-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
}
.review-meta {
  font-size: 12px;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.review-badge.due {
  background: rgba(249, 115, 22, 0.15);
  color: var(--acc);
}
.review-badge.upcoming {
  background: rgba(99, 102, 241, 0.12);
  color: var(--pri2);
}
.review-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.review-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--mut);
  font-size: 13.5px;
}
.review-empty-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 200ms var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pri), #4f46e5);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--ink3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  border-color: var(--line2);
}
.btn-sm {
  padding: 5px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.btn-ok:hover {
  background: rgba(16, 185, 129, 0.18);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}
.btn-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(234, 179, 8, 0.2);
}
.btn-warn:hover {
  background: rgba(234, 179, 8, 0.18);
}
.btn-danger {
  color: var(--bad);
}
.btn-danger:hover {
  background: var(--bad-soft);
}

/* ── Active Cycle Section ── */
.cycle-chart-row {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}
.cycle-donut {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05);
}
.cycle-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cycle-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink2);
}
.cycle-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cycle-sessions {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 8px 16px;
}
.cycle-session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.cycle-session-item:last-child {
  border-bottom: none;
}
.cycle-session-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cycle-session-num {
  color: var(--mut);
  font-size: 11px;
  font-weight: 700;
  width: 22px;
}
.cycle-session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cycle-session-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
}
.cycle-session-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cycle-session-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink3);
}
.cycle-complete-all {
  text-align: center;
  padding: 32px 16px;
}
.cycle-complete-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.cycle-complete-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ok);
}
.cycle-complete-text {
  font-size: 13.5px;
  color: var(--mut);
  margin-top: 4px;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 200ms var(--ease);
}
.modal-overlay[hidden] { display: none; }
.modal-content {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  width: 90%;
  max-width: 620px;
  padding: 28px;
  box-shadow: var(--sh-lg), 0 0 60px rgba(99, 102, 241, 0.08);
  animation: fadeInUp 300ms var(--ease);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--mut);
  transition: color 200ms var(--ease);
}
.btn-close:hover { color: var(--ink); }
.text-mut {
  color: var(--mut);
  font-size: 13.5px;
  margin-bottom: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 16px;
  align-items: stretch;
}
.form-row input,
.form-col input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.form-row input:focus,
.form-col input:focus {
  border-color: var(--pri);
  background: rgba(99, 102, 241, 0.06);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-row input::placeholder,
.form-col input::placeholder {
  color: var(--mut);
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.form-col label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.disc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.disc-table th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 2px solid var(--line2);
  color: var(--mut);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.disc-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
}
.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-aside {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .dash-greeting h1 {
    font-size: 24px;
  }
}