:root {
  --bg: #090b11;
  --bg-soft: #121621;
  --panel: rgba(17, 22, 34, 0.88);
  --panel-strong: rgba(21, 27, 41, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f5fb;
  --muted: #97a3bb;
  --cyan: #1eb8ff;
  --cyan-soft: rgba(30, 184, 255, 0.18);
  --pink: #ff2f92;
  --pink-soft: rgba(255, 47, 146, 0.18);
  --lime: #70f078;
  --lime-soft: rgba(112, 240, 120, 0.18);
  --gold: #ffc54d;
  --gold-soft: rgba(255, 197, 77, 0.18);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(30, 184, 255, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 47, 146, 0.12), transparent 28%),
    linear-gradient(180deg, #0b0d14 0%, #090b11 100%);
  color: var(--text);
  font-family: Inter, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), #006cff 58%, var(--pink));
  color: #fff;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 0 10px 26px rgba(30, 184, 255, 0.35);
}

.brand-kicker,
.eyebrow,
.panel-kicker,
.sidebar-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.sidebar-group {
  display: grid;
  gap: 10px;
}

.nav-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #d9e4f9;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: 150ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: rgba(30, 184, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(30, 184, 255, 0.14), rgba(255, 47, 146, 0.08)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(30, 184, 255, 0.08);
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar-card,
.hero-panel,
.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.96), rgba(14, 18, 28, 0.92));
  box-shadow: var(--shadow);
}

.sidebar-card {
  padding: 18px;
}

.sidebar-card-title {
  font-size: 0.78rem;
  color: var(--muted);
}

.sidebar-card-value {
  margin-top: 10px;
  font-size: 1.35rem;
  font-weight: 700;
}

.sidebar-card-subline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.main {
  padding: 28px;
}

.topbar,
.hero-panel,
.panel-head,
.birthday-row,
.student-row,
.risk-row,
.progress-lane,
.detail-grid,
.detail-actions,
.topbar-actions,
.hero-stats,
.student-meta {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3 {
  margin: 4px 0 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.15rem; }

.topbar-actions,
.hero-stats,
.student-meta,
.detail-actions {
  gap: 12px;
}

.record-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 0;
  background: rgba(9, 11, 17, 0.78);
  backdrop-filter: blur(12px);
}

.record-tabs a {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce6f5;
  text-decoration: none;
  font-size: 13px;
}

.record-tabs a:hover {
  border-color: rgba(255, 47, 146, 0.5);
  color: #fff;
}

.primary-button,
.ghost-button,
.panel-button {
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan), #1883ff);
  border-color: rgba(30, 184, 255, 0.5);
  box-shadow: 0 12px 28px rgba(30, 184, 255, 0.28);
}

.ghost-button,
.panel-button {
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 47, 146, 0.16), transparent 70%);
}

.hero-panel.compact {
  padding: 22px 24px;
}

.hero-copy {
  max-width: 700px;
}

.hero-copy p {
  color: #b8c4da;
  line-height: 1.6;
  max-width: 820px;
}

.hero-pill {
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-pill strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
}

.metric-grid,
.content-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 22px;
}

.metric-card::after {
  content: "";
  display: block;
  height: 4px;
  margin-top: 20px;
  border-radius: 999px;
}

.accent-cyan::after { background: linear-gradient(90deg, var(--cyan), transparent); }
.accent-pink::after { background: linear-gradient(90deg, var(--pink), transparent); }
.accent-gold::after { background: linear-gradient(90deg, var(--gold), transparent); }
.accent-lime::after { background: linear-gradient(90deg, var(--lime), transparent); }
.accent-purple::after { background: linear-gradient(90deg, var(--purple), transparent); }

.metric-title,
.metric-foot {
  color: var(--muted);
}

.metric-value {
  margin-top: 10px;
  font-size: 2.2rem;
  font-weight: 800;
}

.dashboard-grid {
  grid-template-columns: 1.15fr 0.85fr 0.95fr;
}

.panel {
  padding: 20px;
}

.panel-wide {
  grid-column: span 1;
}

.panel-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.badge {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-cyan { background: var(--cyan-soft); color: #8fe0ff; }
.badge-pink { background: var(--pink-soft); color: #ff86c0; }
.badge-lime { background: var(--lime-soft); color: #b6ffb5; }

.birthday-list,
.stack-list,
.mini-student-list,
.risk-list,
.table-list,
#student-detail-progress,
#student-detail-finance,
#student-detail-exams {
  display: grid;
  gap: 12px;
}

.birthday-row,
.student-row,
.message-item,
.student-chip,
.chat-preview,
.finance-tile,
.table-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.birthday-row,
.risk-row,
.student-row,
.table-row {
  justify-content: space-between;
  gap: 14px;
}

.birthday-row span,
.risk-row strong,
.risk-row span,
.student-row span,
.message-item span,
.student-chip em,
.detail-grid span {
  color: var(--muted);
}

.message-item,
.student-row {
  text-decoration: none;
  color: var(--text);
}

.table-row {
  display: flex;
  align-items: center;
}

.table-row span {
  color: var(--muted);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 250px;
}

.bar-col {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.bar {
  width: 100%;
  border-radius: 18px 18px 8px 8px;
  min-height: 16px;
  background: linear-gradient(180deg, rgba(30, 184, 255, 0.95), rgba(30, 184, 255, 0.24));
  box-shadow: 0 10px 24px rgba(30, 184, 255, 0.24);
}

.donut-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.donut-chart {
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #111726 0 46%, transparent 47%),
    conic-gradient(var(--cyan) 0 42%, var(--pink) 42% 66%, var(--gold) 66% 82%, #7d84ff 82% 100%);
}

.donut-hole {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.donut-hole small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.legend {
  display: grid;
  gap: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
}

.dot-cyan { background: var(--cyan); }
.dot-pink { background: var(--pink); }
.dot-gold { background: var(--gold); }

.risk-row span {
  color: #ff7ab5;
  font-weight: 700;
}

.student-shell {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 20px;
  margin-top: 24px;
}

.student-main {
  display: grid;
  gap: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
}

.filter-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.student-table {
  display: grid;
  gap: 12px;
}

.student-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.student-identity span {
  display: block;
  margin-top: 4px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 184, 255, 0.18), rgba(255, 47, 146, 0.2));
  color: #fff;
  font-weight: 800;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.pill-chat { background: rgba(255, 47, 146, 0.14); color: #ff8bc3; }
.pill-money { background: rgba(255, 197, 77, 0.14); color: #ffd98f; }
.pill-docs { background: rgba(125, 132, 255, 0.14); color: #bcc1ff; }
.pill-ok { background: rgba(112, 240, 120, 0.14); color: #b7ffb5; }
.pill-warning { background: rgba(255, 136, 64, 0.14); color: #ffc39b; }

.student-row.is-selected {
  border-color: rgba(30, 184, 255, 0.26);
  background:
    linear-gradient(90deg, rgba(30, 184, 255, 0.08), rgba(255, 47, 146, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.detail-block {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.detail-title {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-grid {
  flex-wrap: wrap;
  gap: 14px;
}

.detail-grid > div {
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-grid span,
.finance-tile span {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.progress-lane {
  gap: 14px;
}

.progress-lane span {
  width: 90px;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-track {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.finance-tile {
  display: block;
}

.finance-tile strong {
  font-size: 1.5rem;
}

.finance-tile.subdued strong {
  font-size: 1rem;
}

.chat-preview {
  display: grid;
  gap: 6px;
}

@media (max-width: 1280px) {
  .metric-grid,
  .dashboard-grid,
  .student-shell,
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .student-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .metric-grid,
  .dashboard-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero-panel,
  .student-row,
  .birthday-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Product cockpit refinement */
:root {
  --bg: #07090d;
  --bg-soft: #0d1118;
  --panel: rgba(15, 18, 25, 0.98);
  --panel-strong: rgba(18, 22, 31, 0.98);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #8994a8;
  --cyan: #13c8ff;
  --cyan-soft: rgba(19, 200, 255, 0.15);
  --pink: #ff2f92;
  --pink-soft: rgba(255, 47, 146, 0.16);
  --lime: #29e684;
  --lime-soft: rgba(41, 230, 132, 0.15);
  --gold: #ffd04a;
  --gold-soft: rgba(255, 208, 74, 0.15);
  --shadow: none;
  --radius: 8px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 47, 146, 0.04), transparent 220px),
    linear-gradient(90deg, rgba(19, 200, 255, 0.05), transparent 420px),
    var(--bg);
}

body::before {
  background-size: 48px 48px;
  opacity: 0.55;
}

.shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  gap: 18px;
  padding: 22px 14px;
  background: rgba(8, 11, 17, 0.98);
}

.brand {
  padding: 6px 8px 18px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(145deg, #11c8ff, #0084ff 56%, #ff2f92);
}

.brand-name {
  letter-spacing: 0;
}

.nav-link {
  border-radius: 6px;
  padding: 13px 14px;
  font-weight: 650;
}

.nav-link.is-active {
  border-color: rgba(255, 47, 146, 0.35);
  background: linear-gradient(90deg, rgba(255, 47, 146, 0.18), rgba(19, 200, 255, 0.08));
  box-shadow: inset 3px 0 0 var(--pink);
}

.main {
  padding: 22px 26px 34px;
}

.topbar {
  min-height: 62px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.topbar p {
  margin: 7px 0 0;
  color: var(--muted);
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

.primary-button,
.ghost-button,
.panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  padding: 9px 13px;
  text-decoration: none;
  font-weight: 750;
}

.hero-panel {
  display: none;
}

.hero-panel::after {
  display: none;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hero-pill {
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.content-grid {
  gap: 14px;
  margin-top: 14px;
}

.dashboard-grid {
  grid-template-columns: 1.25fr 0.75fr 0.95fr;
}

.finance-grid,
.exam-grid,
.document-grid,
.dispatch-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.panel-large {
  grid-column: span 2;
}

.sidebar-card,
.metric-card,
.panel {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--panel);
}

.metric-card {
  padding: 17px;
  min-height: 136px;
}

.metric-value {
  font-size: 1.8rem;
}

.panel {
  padding: 16px;
}

.panel-head {
  margin-bottom: 14px;
}

.birthday-row,
.student-row,
.message-item,
.student-chip,
.chat-preview,
.finance-tile,
.table-row {
  border-radius: 6px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.028);
}

.table-row {
  color: var(--text);
  text-decoration: none;
}

.table-row:hover,
.student-row:hover {
  border-color: rgba(19, 200, 255, 0.24);
  background: rgba(19, 200, 255, 0.055);
}

.chart {
  min-height: 230px;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  align-items: end;
  gap: 10px;
  padding: 10px 4px 0;
}

.bar-col {
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 7px;
  min-width: 0;
}

.bar-col span {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-value {
  color: #dbe7f8;
  font-size: 0.74rem;
  font-weight: 750;
}

.bar {
  width: 100%;
  max-width: 42px;
  border-radius: 5px 5px 2px 2px;
  min-height: 12px;
}

.bar-cyan {
  background: linear-gradient(180deg, var(--cyan), rgba(19, 200, 255, 0.18));
}

.bar-gold {
  background: linear-gradient(180deg, var(--gold), rgba(255, 208, 74, 0.18));
}

.donut-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.donut-chart {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.donut-hole strong,
.donut-hole span {
  display: block;
  text-align: center;
}

.donut-hole span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.legend {
  display: grid;
  gap: 9px;
}

.legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.line-chart {
  width: 100%;
  min-height: 230px;
}

.line-chart polyline {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-pass {
  stroke: var(--lime);
}

.line-fail {
  stroke: var(--pink);
}

.line-chart text {
  fill: var(--muted);
  font-size: 12px;
}

.student-shell {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.student-detail-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.panel-wide {
  grid-column: 1 / -1;
}

.filter-grid {
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  margin-bottom: 14px;
}

.filter-grid input,
.filter-grid select {
  border-radius: 6px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.inline-form input {
  min-width: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.avatar {
  border-radius: 7px;
}

.pill,
.badge {
  border-radius: 999px;
}

.detail-actions {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-grid > div {
  border-radius: 6px;
}

.finance-tile {
  margin-bottom: 10px;
}

.auth-logout {
  width: 100%;
  margin-top: 14px;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(30, 184, 255, 0.22), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 47, 146, 0.2), transparent 34%),
    rgba(4, 7, 13, 0.86);
  backdrop-filter: blur(18px);
}

.login-card {
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.98), rgba(10, 13, 21, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.login-brand {
  padding: 0 0 20px;
}

.login-card p,
.login-hint,
.login-error,
.login-card label span {
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.login-card input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.login-card .primary-button {
  width: 100%;
  margin-top: 18px;
}

.login-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.login-error {
  min-height: 20px;
  margin-top: 10px;
  color: #ff86c0;
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 6, 11, 0.76);
  backdrop-filter: blur(14px);
}

.modal-card {
  width: min(860px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel-strong);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.modal-grid label {
  display: grid;
  gap: 7px;
}

.modal-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.modal-grid input,
.modal-grid select {
  width: 100%;
  min-width: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.modal-span {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.modal-error {
  min-height: 20px;
  color: #ff86c0;
  font-weight: 700;
}

.price-panel {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.price-list {
  display: grid;
  gap: 8px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.wizard-steps span {
  padding: 9px 10px;
  border: 1px solid rgba(255, 0, 122, 0.25);
  border-radius: 6px;
  background: rgba(255, 0, 122, 0.08);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.price-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 8px;
  color: var(--muted);
}

.price-source strong {
  color: #fff;
}

.price-source span {
  color: #55e293;
  font-weight: 800;
}

.price-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 6px;
  background: rgba(8, 11, 18, 0.55);
}

.price-row input {
  accent-color: var(--pink);
}

.price-row span {
  color: #dce0e7;
}

.price-row strong {
  color: #ff65b7;
}

.price-row.muted {
  display: block;
  color: var(--muted);
}

@media (max-width: 1280px) {
  .metric-grid,
  .dashboard-grid,
  .finance-grid,
  .exam-grid,
  .document-grid,
  .dispatch-grid,
  .workflow-grid,
  .student-detail-layout {
    grid-template-columns: 1fr 1fr;
  }

  .panel-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .hero-strip,
  .metric-grid,
  .dashboard-grid,
  .finance-grid,
  .exam-grid,
  .document-grid,
  .student-detail-layout,
  .workflow-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .workflow-form-row,
  .workflow-summary,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .student-row,
  .birthday-row,
  .table-row {
    align-items: stretch;
  }

  .donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Jendritzki dashboard visual direction */
:root {
  --bg: #05070b;
  --panel: rgba(13, 17, 25, 0.88);
  --panel-strong: rgba(15, 20, 29, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f8fb;
  --muted: #9298a5;
  --pink: #e6007e;
  --pink-hot: #ff1498;
  --pink-soft: rgba(230, 0, 126, 0.18);
  --cyan: #11d6e8;
  --cyan-soft: rgba(17, 214, 232, 0.14);
  --purple: #8b2cff;
  --lime: #22d07a;
  --gold: #f0b84b;
}

body {
  background:
    radial-gradient(circle at 72% 0%, rgba(42, 53, 78, 0.34), transparent 34%),
    linear-gradient(180deg, #070910 0%, #05070b 100%);
  font-size: 14px;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.45;
}

.shell {
  grid-template-columns: 268px minmax(0, 1fr);
  width: min(1440px, calc(100vw - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 17, 26, 0.96), rgba(6, 9, 15, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.sidebar {
  gap: 18px;
  padding: 26px 16px 20px;
  border-right-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 20, 30, 0.96), rgba(5, 8, 13, 0.98)),
    #070a10;
}

.brand {
  gap: 12px;
  padding: 0 8px 24px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 0;
  background: url("./assets/logo-lion.png") 43% 6% / 168% no-repeat;
  color: #071018;
  font-size: 0;
  filter: drop-shadow(0 0 18px rgba(230, 0, 126, 0.38));
  box-shadow: none;
}

.brand-mark::after {
  display: none;
}

.brand-kicker {
  color: #fff;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.brand-name {
  color: var(--pink-hot);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 20, 152, 0.28);
}

.sidebar-group {
  gap: 8px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 7px;
  color: #c8cbd3;
  background: transparent;
  font-weight: 600;
}

.nav-link::before {
  display: grid;
  place-items: center;
  width: 18px;
  color: #aeb3bf;
  font-size: 16px;
}

.nav-link:nth-of-type(1)::before { content: "⌂"; }
.nav-link:nth-of-type(2)::before { content: "♙"; }
.nav-link:nth-of-type(3)::before { content: "◴"; }
.nav-link:nth-of-type(4)::before { content: "◷"; }
.nav-link:nth-of-type(5)::before { content: "▱"; }
.nav-link:nth-of-type(6)::before { content: "⊞"; }
.nav-link:nth-of-type(7)::before { content: "□"; }
.nav-link:nth-of-type(8)::before { content: "◇"; }
.nav-link:nth-of-type(9)::before { content: "✉"; }
.nav-link:nth-of-type(10)::before { content: "▥"; }
.nav-link:nth-of-type(11)::before { content: "⚙"; }

.nav-link:hover,
.nav-link.is-active {
  border-color: rgba(230, 0, 126, 0.55);
  background: linear-gradient(90deg, rgba(230, 0, 126, 0.24), rgba(230, 0, 126, 0.08));
  color: #ff4db1;
  box-shadow: inset 0 0 0 1px rgba(230, 0, 126, 0.18);
}

.nav-link:hover::before,
.nav-link.is-active::before {
  color: #ff4db1;
}

.brand-footer {
  margin-top: auto;
  padding: 14px 8px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
}

.brand-footer .brand {
  padding: 0;
}

.auth-card {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.main {
  padding: 28px 34px 34px;
}

.topbar {
  min-height: 86px;
  padding-bottom: 24px;
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  row-gap: 18px;
}

.tenant-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  margin-bottom: 18px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.86rem;
}

h1 {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: clamp(1.75rem, 2vw, 2.3rem);
  font-weight: 850;
}

.topbar p {
  margin: 8px 0 0;
  color: #9ca2ad;
  font-size: 0.98rem;
}

.topbar-actions {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  gap: 0;
  margin-top: 0;
}

.topbar-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-height: 40px;
}

.topbar-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #c4c8d1;
  text-decoration: none;
  font-size: 18px;
}

.user-mini {
  display: grid;
  gap: 3px;
  min-width: 124px;
}

.user-mini strong {
  color: #fff;
  font-size: 0.84rem;
}

.user-mini span {
  color: #8f96a4;
  font-size: 0.78rem;
}

.avatar-button {
  display: block;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 20, 152, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at center 38%, transparent 0 6px, #ff4db1 6px 7px, transparent 8px),
    radial-gradient(circle at center 72%, transparent 0 12px, #ff4db1 12px 13px, transparent 14px);
}

.primary-button,
.toolbar-primary {
  border-color: rgba(255, 20, 152, 0.72);
  background: linear-gradient(180deg, #f21491, #c90073);
  color: white;
  box-shadow: 0 12px 28px rgba(230, 0, 126, 0.24);
}

.ghost-button,
.panel-button,
.action-toolbar button {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 20, 152, 0.72);
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #f21491, #c90073);
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.topbar-actions .primary-button {
  min-height: 48px;
  border-radius: 6px 0 0 6px;
}

.action-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.action-toolbar button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 0;
  color: #eef0f5;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.action-toolbar button:first-child {
  border-radius: 6px 0 0 6px;
}

.action-toolbar button:last-child {
  margin-left: auto;
  border-radius: 0 6px 6px 0;
}

.hero-strip {
  gap: 12px;
  margin-top: 0;
  margin-bottom: 18px;
}

body[data-page="dashboard"] .hero-strip {
  display: none;
}

.hero-pill,
.metric-card,
.panel,
.sidebar-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.016)),
    rgba(11, 15, 23, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.metric-card,
.panel,
.hero-pill {
  border-radius: 8px;
}

.metric-grid {
  gap: 18px;
  margin-top: 0;
}

.metric-card {
  min-height: 132px;
  padding: 20px 20px 16px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "▣";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 7px;
  background: rgba(230, 0, 126, 0.16);
  color: var(--pink-hot);
}

.metric-card::after {
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--pink-hot), rgba(17, 214, 232, 0.35), transparent);
}

.metric-title {
  color: #b7bcc6;
  font-size: 0.92rem;
}

.metric-value {
  margin-top: 10px;
  font-size: 1.95rem;
  font-weight: 850;
}

.metric-foot {
  margin-top: 8px;
  color: var(--lime);
  font-weight: 750;
}

.content-grid {
  gap: 20px;
  margin-top: 20px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  align-items: start;
}

.dashboard-grid .panel:nth-child(5),
.dashboard-grid .panel:nth-child(6) {
  display: none;
}

.panel-large {
  grid-column: span 1;
}

.panel {
  padding: 24px 26px;
}

.panel-head {
  align-items: flex-start;
}

.panel-kicker,
.eyebrow,
.sidebar-label {
  color: #8f95a1;
  letter-spacing: 0.12em;
}

.panel h3 {
  font-family: Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 820;
}

.panel h3 span {
  color: var(--muted);
  font-weight: 600;
}

.panel-select {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: #cbd0d9;
  font: inherit;
  font-size: 0.8rem;
}

.panel-link {
  color: var(--pink-hot);
}

.bar-cyan,
.bar-gold,
.bar {
  background: linear-gradient(180deg, #e6007e, #8526d8);
  box-shadow: 0 0 20px rgba(230, 0, 126, 0.18);
}

.donut-chart {
  background: radial-gradient(circle at center, #111722 0 47%, transparent 48%), conic-gradient(#8b2cff 0 35%, #e6007e 35% 67%, #11d6e8 67% 84%, #275dff 84% 94%, #ff7abf 94% 100%) !important;
}

.legend i {
  box-shadow: 0 0 14px currentColor;
}

.birthday-row,
.student-row,
.message-item,
.student-chip,
.finance-tile,
.table-row,
.risk-row {
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.student-chip,
.table-row,
.risk-row {
  padding: 9px 0;
}

.risk-row span,
.panel-link {
  color: var(--pink-hot);
}

.panel-link-bottom {
  display: block;
  margin-top: 16px;
  text-align: right;
}

body[data-page="dashboard"] .chart {
  min-height: 270px;
}

body[data-page="dashboard"] .chart-bars {
  min-height: 250px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

body[data-page="dashboard"] .bar-col {
  grid-template-rows: auto 1fr auto;
}

body[data-page="dashboard"] .bar-value {
  color: #f1f3f7;
  font-size: 0.8rem;
}

body[data-page="dashboard"] .bar {
  max-width: 34px;
  border-radius: 3px 3px 1px 1px;
}

body[data-page="dashboard"] .risk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
}

body[data-page="dashboard"] .risk-row strong,
body[data-page="dashboard"] .student-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="dashboard"] .student-chip {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body[data-page="dashboard"] .student-chip span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 20, 152, 0.7);
  border-radius: 50%;
  color: #ff66ba;
  font-size: 0.72rem;
}

body[data-page="dashboard"] .student-chip em {
  color: #9ca2ad;
  font-style: normal;
}

body[data-page="dashboard"] .donut-layout {
  grid-template-columns: 190px minmax(0, 1fr);
}

body[data-page="dashboard"] .donut-chart {
  width: 190px;
  height: 190px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.module-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)),
    rgba(11, 15, 23, 0.86);
  color: var(--text);
  text-decoration: none;
}

.module-card span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 20, 152, 0.6);
  color: #ff59b4;
  font-weight: 850;
}

.module-card strong {
  font-size: 1rem;
}

.module-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.module-card small {
  align-self: end;
  color: var(--lime);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-edit-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.quick-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.quick-form strong {
  color: #fff;
}

.quick-form input,
.quick-form select,
.workflow-form-row input,
.workflow-form-row select,
.student-edit-form input,
.student-edit-form select {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  background: rgba(8, 11, 18, 0.72);
  color: var(--text);
  padding: 0 11px;
  font: inherit;
}

.student-edit-form button {
  min-height: 38px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c7ccd6;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.workflow-grid.secondary {
  margin-top: 14px;
}

.workflow-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workflow-actions > button,
.workflow-actions > select {
  flex: 1 1 210px;
}

.contract-preview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.service-select-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-select-row input {
  accent-color: var(--pink);
}

.tiny-button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 47, 146, 0.35);
  border-radius: 6px;
  background: rgba(255, 47, 146, 0.12);
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.workflow-card strong {
  color: #fff;
}

.workflow-form-row {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 0.8fr;
  gap: 10px;
}

.price-list.compact {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.compact-list {
  max-height: 240px;
  overflow: auto;
}

.workflow-summary,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-tile {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(8, 11, 18, 0.58);
}

.summary-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-tile strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 18px;
}

.warning-list {
  display: grid;
  gap: 8px;
}

.warning-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(255, 0, 122, 0.22);
  border-radius: 6px;
  background: rgba(255, 0, 122, 0.08);
}

.warning-item span {
  color: #fff;
}

.warning-item small {
  color: var(--muted);
}

.warning-ok {
  color: #55e293;
}

.readiness-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(0, 221, 255, 0.18);
  border-radius: 6px;
  background: rgba(0, 221, 255, 0.07);
}

.readiness-head span,
.readiness-head strong {
  color: #fff;
}

.readiness-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 140px) 76px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.readiness-row meter {
  width: 100%;
  height: 8px;
}

.readiness-row strong {
  text-align: right;
  color: #fff;
}

.next-actions {
  display: grid;
  gap: 8px;
}

.next-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.next-action.is-high {
  border-color: rgba(255, 0, 122, 0.28);
  background: rgba(255, 0, 122, 0.09);
}

.next-action span {
  color: #fff;
}

.next-action strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

body[data-page="dashboard"]::after {
  content: "© 2026 Fahrschule Jendritzki. Alle Rechte vorbehalten.        Design mit ♥ in Braunschweig";
  position: fixed;
  left: calc(50% - min(720px, 50vw) + 310px);
  right: calc(50% - min(720px, 50vw) + 28px);
  bottom: 28px;
  color: #858c9a;
  font-size: 0.82rem;
  pointer-events: none;
  white-space: pre-wrap;
}

body[data-page="students"] .hero-strip {
  display: none;
}

body[data-page="students"] .student-shell {
  grid-template-columns: 1fr;
  margin-top: 0;
}

body[data-page="students"] .student-detail {
  display: none;
}

body[data-page="students"] .panel {
  padding: 18px;
}

body[data-page="students"] .panel-head {
  display: none;
}

.filter-grid {
  grid-template-columns: 1.05fr 1.05fr 1.05fr;
  gap: 18px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.filter-grid label {
  position: relative;
  gap: 10px;
}

.filter-grid span {
  color: #c5c9d1;
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  min-height: 44px;
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(8, 11, 18, 0.72);
}

.student-table {
  margin-top: 22px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.student-table::before {
  content: "KUNDENNUMMER        VORNAME / NAME                                      E-MAIL / FILIALE                                      AKTIVE AUSBILDUNG        AKTIONEN";
  display: block;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: #8e95a1;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: pre;
}

.student-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(360px, 1.4fr);
  align-items: center;
  min-height: 68px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0;
}

.student-row:last-child {
  border-bottom: 0;
}

.student-row:hover,
.student-row.is-selected {
  border-color: rgba(255, 20, 152, 0.22);
  background: rgba(230, 0, 126, 0.075);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 20, 152, 0.55);
  background: rgba(230, 0, 126, 0.12);
  color: #ff4db1;
  font-size: 0.8rem;
}

.student-identity strong {
  font-size: 0.92rem;
}

.student-identity span {
  color: #9ca2ae;
  font-size: 0.82rem;
}

.student-meta {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.pill-docs {
  color: #bec4cf;
}

.pill-money {
  background: rgba(230, 0, 126, 0.14);
  color: #ff7abf;
}

.pill-ok {
  color: #55e293;
}

.badge-cyan,
.badge-lime {
  background: var(--pink-soft);
  color: #ff65b7;
}

.modal-card,
.login-card {
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #111620;
}

@media (max-width: 1120px) {
  .shell {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .dashboard-grid,
  .metric-grid,
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-utility,
  .topbar-actions {
    grid-column: 1;
    justify-self: start;
  }

  body[data-page="dashboard"]::after {
    display: none;
  }

  .student-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .student-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    gap: 10px;
    padding: 14px;
  }

  .brand {
    padding-bottom: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark::after {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .sidebar-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-link {
    min-width: max-content;
    min-height: 38px;
    padding: 0 12px;
  }

  .brand-footer,
  .auth-card {
    display: none;
  }

  .main {
    padding: 20px 16px 28px;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-actions {
    margin-top: 0;
  }

  .metric-grid,
  .dashboard-grid,
  .filter-grid,
  .module-grid,
  .quick-action-grid,
  .student-edit-form {
    grid-template-columns: 1fr;
  }

  .student-table::before {
    display: none;
  }
}
