:root {
  --bg: #f7f2e8;
  --bg-2: #fffaf1;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #fffdf8;
  --ink: #16324f;
  --muted: #5e7288;
  --line: rgba(22, 50, 79, 0.12);
  --brand: #1177cc;
  --brand-deep: #0f4f88;
  --accent: #ff8c42;
  --accent-soft: #ffe1bf;
  --success: #2f9e74;
  --success-soft: #ddf7eb;
  --danger: #d9485f;
  --danger-soft: #ffe0e6;
  --warning: #d69714;
  --warning-soft: #fff1c2;
  --sky: #cfeafc;
  --mint: #dff7ec;
  --shadow-lg: 0 24px 60px rgba(17, 53, 88, 0.16);
  --shadow-md: 0 14px 34px rgba(17, 53, 88, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: "Trebuchet MS", "Avenir Next", "Segoe UI Variable", sans-serif;
  --font-body: "Segoe UI Variable", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #ffffff;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

.body-site {
  display: flex;
  flex-direction: column;
}

.route-student-grades {
  background:
    radial-gradient(circle at 8% 8%, rgba(120, 200, 255, 0.22), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255, 213, 106, 0.26), transparent 28%),
    linear-gradient(180deg, #f8fcff 0%, #fff9ef 48%, #ffffff 100%);
}

.route-student-grades::before {
  opacity: 0;
}

.body-home {
  min-height: 100vh;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 900;
  padding: 18px 0 6px;
  background: transparent;
}

.site-header-inner,
.site-footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand) 0%, #1fb5ff 100%);
  box-shadow: 0 14px 28px rgba(17, 119, 204, 0.2);
}

.site-brand-mark-image {
  overflow: hidden;
  background: #fff;
}

.site-brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-brand-copy,
.user-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-brand-copy strong,
.user-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-brand-copy small,
.user-summary small,
.user-menu-head span,
.site-footer p {
  color: var(--muted);
}

.site-nav,
.site-actions,
.site-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav {
  justify-content: center;
}

.site-nav a,
.site-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-action.ghost:hover {
  color: var(--brand-deep);
  background: rgba(17, 119, 204, 0.1);
}

.site-action.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #1a93e8 100%);
  box-shadow: 0 12px 22px rgba(17, 119, 204, 0.2);
}

.site-action.primary:hover,
.grade-card:hover {
  transform: translateY(-2px);
}

.user-menu {
  position: relative;
}

.user-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: 280px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 53, 88, 0.08);
}

.user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff9b54 0%, #ffd56a 100%);
}

.user-caret {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.user-menu.is-open .user-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.user-menu-head {
  display: grid;
  gap: 4px;
  padding: 12px 12px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.user-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
}

.user-menu-panel a:hover {
  background: rgba(17, 119, 204, 0.1);
  color: var(--brand-deep);
}

.site-main {
  flex: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 8px 0 34px;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer-links {
  justify-content: flex-end;
}

.site-footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.site-footer-links a:hover {
  color: var(--brand-deep);
}

.grades-shell {
  width: min(1480px, calc(100% - 48px));
  padding-top: 30px;
}

.grades-shell-wide {
  width: min(1760px, calc(100% - 28px));
}

.route-student-grades .page-shell {
  width: min(1480px, calc(100% - 48px));
  max-width: 1480px;
}

.route-student-grades .grades-shell-wide {
  width: min(1760px, calc(100% - 28px));
  max-width: 1760px;
}

.grades-status-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.grades-status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 20px;
  border: 1px solid rgba(22, 50, 79, 0.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(30, 67, 118, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.grades-status-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(30, 67, 118, 0.13);
}

.grades-status-card.is-login {
  background: linear-gradient(135deg, #f4fbff 0%, #ffffff 54%, #fff7df 100%);
}

.grades-status-card.is-guest {
  background: linear-gradient(135deg, #fff7f4 0%, #ffffff 54%, #eef8ff 100%);
}

.grades-status-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #4c8dff 0%, #22c58b 100%);
  box-shadow: inset 0 -8px 16px rgba(255, 255, 255, 0.26), 0 14px 26px rgba(76, 141, 255, 0.24);
}

.grades-status-card.is-guest .grades-status-icon {
  background: linear-gradient(135deg, #ff8c42 0%, #ffca55 100%);
  box-shadow: inset 0 -8px 16px rgba(255, 255, 255, 0.26), 0 14px 26px rgba(255, 140, 66, 0.22);
}

.grades-status-icon svg,
.grade-card-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grades-status-card span {
  display: block;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
}

.grades-status-card strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
}

.grades-status-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.grades-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}

.grades-hero-wide {
  grid-template-columns: 1fr;
  gap: 0;
}

.grades-hero-copy,
.grades-hero-panel,
.grade-map-section {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(22, 50, 79, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 56px rgba(30, 67, 118, 0.11);
  backdrop-filter: blur(12px);
}

.grades-hero-copy {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 213, 106, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(239, 248, 255, 0.96) 0%, #fff 52%, rgba(255, 247, 223, 0.9) 100%);
}

.grades-hero-wide .grades-hero-copy {
  min-height: 280px;
  max-width: none;
  padding: clamp(28px, 3.4vw, 54px) clamp(46px, 6vw, 86px);
}

.grades-hero-copy h1 {
  max-width: 24em;
  margin: 16px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.grades-hero-copy p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

@media (min-width: 1200px) {
  .grades-hero-wide .grades-hero-copy h1 {
    white-space: nowrap;
  }
}

.grades-hero-panel {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 26px;
  background:
    radial-gradient(circle at 20% 10%, rgba(76, 141, 255, 0.16), transparent 34%),
    linear-gradient(160deg, #f9fcff 0%, #fff 58%, #fff5ea 100%);
}

.grades-panel-illustration {
  min-height: 214px;
  display: grid;
  place-items: center;
}

.grades-panel-illustration svg {
  width: min(100%, 280px);
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(76, 141, 255, 0.15));
}

.stat-highlight {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 50, 79, 0.08);
}

.grades-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-highlight strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  color: var(--brand-deep);
}

.stat-highlight small {
  color: var(--muted);
}

.study-tip {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(17, 119, 204, 0.1), rgba(255, 213, 106, 0.2));
  border: 1px solid rgba(17, 119, 204, 0.1);
}

.study-tip span,
.section-kicker {
  color: var(--brand-deep);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.study-tip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.grade-map-section {
  padding: clamp(22px, 3vw, 34px);
}

.grade-map-section-wide {
  padding: clamp(28px, 3vw, 40px);
}

.section-head {
  margin-bottom: 24px;
}

.grade-grid-polished {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.grades-shell-wide .grade-grid-polished {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
}

.grade-grid-polished .grade-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  border: 0;
  border-radius: 28px;
  color: #ffffff;
  isolation: isolate;
  transform: translateY(0) rotateX(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.grade-grid-polished .grade-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  opacity: 1;
  pointer-events: none;
}

.grade-grid-polished .grade-card:hover::before,
.grade-grid-polished .grade-card:focus-visible::before {
  opacity: 1;
  transform: scale(1.1);
}

.grade-grid-polished .grade-card:hover,
.grade-grid-polished .grade-card:focus-visible {
  transform: translateY(-12px) scale(1.02);
}

.grade-grid-polished .grade-card .chip,
.grade-card-action {
  margin-top: auto;
  font-weight: 800;
}

.grade-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  color: #fff;
  background: rgba(22, 50, 79, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.grade-card-action i {
  font-style: normal;
  transition: transform 0.16s ease;
}

.grade-grid-polished .grade-card:hover .grade-card-action i,
.grade-grid-polished .grade-card:focus-visible .grade-card-action i {
  transform: translateX(3px);
}

.grade-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.grade-card-meta span {
  padding: 10px 12px;
  border-radius: 16px;
  color: rgba(22, 50, 79, 0.76);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.58);
}

.grade-card-meta b {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 20px;
}

.grade-grid-polished .grade-card.is-current .chip,
.grade-grid-polished .grade-card.is-current .grade-card-action {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
}

.grade-grid-polished .grade-card.is-current {
  outline: 3px solid rgba(17, 119, 204, 0.22);
  outline-offset: 4px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #ff9b54 0%, #ffd56a 100%);
  box-shadow: inset 0 -6px 14px rgba(255, 255, 255, 0.32), var(--shadow-md);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark::before {
  width: 18px;
  height: 18px;
  top: 11px;
  left: 9px;
}

.brand-mark::after {
  width: 14px;
  height: 14px;
  bottom: 10px;
  right: 9px;
}

.brand-copy h1,
.brand-copy h2,
.hero h2,
.section-head h3,
.card h3,
.card h4,
.panel h3 {
  margin: 0;
  font-family: var(--font-display);
}

.brand-copy p,
.hero p,
.muted,
.section-head p,
.meta,
.panel p {
  margin: 0;
  color: var(--muted);
}

.top-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-link,
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1;
  max-width: 100%;
}

.pill-link {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-card,
.card,
.panel,
.sidebar,
.table-wrap,
.login-card,
.spotlight {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-card {
  padding: 28px;
}

.hero-card h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-card p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 50ch;
}

.hero-art {
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-art::before {
  width: 220px;
  height: 220px;
  right: -34px;
  top: -24px;
  background: linear-gradient(135deg, #52b5ff 0%, #91ddff 100%);
}

.hero-art::after {
  width: 190px;
  height: 190px;
  left: -24px;
  bottom: -34px;
  background: linear-gradient(135deg, #ffd36a 0%, #ff9852 100%);
}

.floating-card {
  position: absolute;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  animation: floatY 4.8s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  top: 26px;
  left: 28px;
  width: 180px;
}

.floating-card:nth-child(2) {
  right: 24px;
  bottom: 28px;
  width: 190px;
  animation-delay: -2s;
}

.floating-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.floating-card p {
  font-size: 14px;
  line-height: 1.5;
}

.quick-actions,
.section-grid,
.stats-grid,
.grade-grid,
.records-grid {
  display: grid;
  gap: 18px;
}

.quick-actions {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0 18px;
}

.section-head > div,
.brand-copy,
.mini-item > div,
.field,
.toolbar .field {
  min-width: 0;
}

.section-head h3 {
  font-size: 28px;
  margin-bottom: 4px;
}

.section-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.panel,
.table-wrap,
.login-card,
.spotlight {
  padding: 22px;
}

.card h3,
.panel h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.badge {
  color: var(--brand-deep);
  background: rgba(17, 119, 204, 0.12);
}

.chip {
  background: rgba(22, 50, 79, 0.08);
  color: var(--ink);
}

.chip.success {
  background: var(--success-soft);
  color: var(--success);
}

.chip.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.chip.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: none;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  text-align: center;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #1a93e8 100%);
  box-shadow: 0 14px 22px rgba(17, 119, 204, 0.22);
}

.button.secondary {
  color: var(--brand-deep);
  background: rgba(17, 119, 204, 0.1);
}

.button.sun {
  color: #71430f;
  background: linear-gradient(135deg, #ffd76c 0%, #ff9d4d 100%);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.mini-item strong {
  font-size: 16px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 34px;
  font-family: var(--font-display);
  margin: 8px 0 4px;
}

.layout-login {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

.login-card {
  padding: 28px;
}

.login-card h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.field-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(17, 119, 204, 0.46);
  box-shadow: 0 0 0 4px rgba(17, 119, 204, 0.1);
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.spotlight {
  min-height: 620px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -56px;
  top: -54px;
  background: linear-gradient(135deg, rgba(17, 119, 204, 0.16), rgba(17, 119, 204, 0.02));
}

.spotlight .planet {
  width: 220px;
  height: 220px;
  margin: 34px auto 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff9d6 0%, #fff9d6 16%, transparent 17%),
    radial-gradient(circle at 65% 38%, rgba(255, 255, 255, 0.55) 0%, transparent 18%),
    linear-gradient(135deg, #59b6ff 0%, #1d78cb 100%);
  box-shadow: inset 0 -14px 28px rgba(0, 0, 0, 0.14), 0 24px 42px rgba(17, 119, 204, 0.16);
  position: relative;
}

.spotlight .planet::before {
  content: "";
  position: absolute;
  inset: 52px 30px;
  border-radius: 50%;
  border: 18px solid rgba(255, 222, 120, 0.84);
  transform: rotate(-18deg);
}

.spotlight ul {
  padding-left: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.grade-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grade-card {
  position: relative;
  overflow: hidden;
}

.grade-card::before {
  content: "";
  position: absolute;
  inset: 12px 12px auto auto;
  width: 82px;
  height: 82px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(14deg);
  z-index: -1;
}

.grade-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -34px auto;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  z-index: -1;
}

.grade-card h4 {
  margin-top: 8px;
  font-size: 26px;
}

.grade-card .meta {
  margin: 0;
  color: rgba(22, 50, 79, 0.72);
  font-weight: 700;
}

.grade-card .level-ribbon {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.grade-card-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-top: 10px;
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

.grade-card.theme-sky {
  background: linear-gradient(135deg, #5eb3f6 0%, #a8d8ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 12px rgba(94, 179, 246, 0.3),
    0 20px 40px rgba(94, 179, 246, 0.35);
}

.grade-card.theme-mint {
  background: linear-gradient(135deg, #4ecb9f 0%, #a0efd0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 12px rgba(78, 203, 159, 0.3),
    0 20px 40px rgba(78, 203, 159, 0.35);
}

.grade-card.theme-sun {
  background: linear-gradient(135deg, #ffb84d 0%, #ffd98f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 12px rgba(255, 184, 77, 0.3),
    0 20px 40px rgba(255, 184, 77, 0.35);
}

.grade-card.theme-peach {
  background: linear-gradient(135deg, #ff8ba0 0%, #ffb8c6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 12px rgba(255, 139, 160, 0.3),
    0 20px 40px rgba(255, 139, 160, 0.35);
}

.grade-card.theme-sea {
  background: linear-gradient(135deg, #4dd4cb 0%, #8eeae4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 12px rgba(77, 212, 203, 0.3),
    0 20px 40px rgba(77, 212, 203, 0.35);
}

.grade-card.theme-violet {
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 12px rgba(167, 139, 250, 0.3),
    0 20px 40px rgba(167, 139, 250, 0.35);
}

.challenge-page-shell {
  width: min(1600px, calc(100% - 48px));
}

.challenge-two-column {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(620px, 1.62fr);
  gap: 28px;
  align-items: start;
}

.challenge-left-panel,
.challenge-right-panel {
  min-width: 0;
}

.challenge-left-panel {
  position: sticky;
  top: 18px;
}

.challenge-header-card {
  height: fit-content;
}

.challenge-header-grid {
  display: grid;
  gap: 22px;
}

.challenge-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.challenge-title-block h1 {
  margin: 0 0 6px;
  font-size: 42px;
  line-height: 1.05;
}

.challenge-title-block p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.challenge-title-copy {
  display: grid;
  gap: 0;
}

.challenge-center-nav,
.challenge-time-block {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.challenge-time-block .muted {
  margin: 0;
  font-weight: 700;
}

.challenge-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
}

.challenge-single {
  grid-template-columns: 1fr;
}

.challenge-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.challenge-main {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.question-page {
  display: none;
}

[data-submit-final][hidden] {
  display: none !important;
}

.question-page.is-active {
  display: block;
  animation: pageRise 0.22s ease both;
}

.question-board,
.question-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.timer-card {
  display: grid;
  gap: 18px;
}

.timer-card-top,
.timer-card-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.timer-card-progress {
  width: 100%;
}

.timer-card-nav {
  align-items: flex-start;
  padding-top: 2px;
}

.nav-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timer-card-nav .nav-bubbles {
  width: min(520px, 100%);
  flex: 0 1 520px;
}

.timer-badge {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffe9cf 0%, #fff8ea 100%);
  color: #96520d;
  min-width: 120px;
  text-align: center;
}

.timer-badge strong {
  display: block;
  font-size: 30px;
  font-family: var(--font-display);
}

.progress-track {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(22, 50, 79, 0.08);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, #32c2ff 0%, #0a7ace 100%);
}

.question-card h3 {
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.choice-list {
  display: grid;
  gap: 14px;
}

.choice {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.choice:hover,
.choice.is-active {
  transform: translateY(-1px);
  border-color: rgba(17, 119, 204, 0.36);
  box-shadow: 0 10px 22px rgba(17, 119, 204, 0.12);
}

.choice-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-deep);
  background: rgba(17, 119, 204, 0.1);
}

.nav-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 10px;
}

.nav-bubble {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: rgba(22, 50, 79, 0.08);
}

.nav-bubble.done {
  background: rgba(47, 158, 116, 0.18);
  color: var(--success);
}

.nav-bubble.current {
  background: rgba(17, 119, 204, 0.14);
  color: var(--brand-deep);
}

.result-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.celebration {
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.celebration::before,
.celebration::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  opacity: 0.45;
}

.celebration::before {
  background: var(--sky);
  top: -76px;
  left: -54px;
}

.celebration::after {
  background: var(--accent-soft);
  right: -70px;
  bottom: -74px;
}

.score-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 10px auto 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #fff 55%, transparent 56%),
    conic-gradient(#2f9e74 0 var(--score-deg, 0deg), rgba(22, 50, 79, 0.08) var(--score-deg, 0deg) 360deg);
}

.score-ring.is-empty {
  background:
    radial-gradient(circle, #fff 55%, transparent 56%),
    conic-gradient(rgba(22, 50, 79, 0.08) 0 360deg);
}

.score-ring strong {
  font-size: 34px;
  font-family: var(--font-display);
}

.result-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 34, 56, 0.22);
  backdrop-filter: blur(8px);
  animation: flashOverlayIn 0.18s ease-out;
}

.result-dialog.is-hidden {
  display: none;
}

.result-dialog-card {
  width: min(100%, 420px);
  padding: 28px 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 54px rgba(15, 40, 70, 0.18);
  text-align: center;
}

.result-dialog-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 14px;
}

.result-dialog-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
  background: rgba(17, 119, 204, 0.08);
}

.result-dialog-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  font-family: var(--font-display);
  color: var(--ink);
}

.result-dialog-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.75;
}

.result-dialog-close {
  min-width: 140px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.admin-frame {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 22px;
}

.admin-shell-wide {
  width: min(1560px, calc(100% - 28px));
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar-panel {
  position: sticky;
  top: 20px;
  padding: 22px 18px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-menu {
  display: grid;
  gap: 10px;
}

.admin-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.admin-menu-link span,
.admin-menu-link small {
  display: block;
}

.admin-menu-link small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-menu-link:hover,
.admin-menu-link.is-active {
  background: rgba(17, 119, 204, 0.12);
  border-color: rgba(17, 119, 204, 0.16);
  transform: translateY(-1px);
}

.admin-sidebar-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(17, 119, 204, 0.07);
  border: 1px solid rgba(17, 119, 204, 0.12);
}

.admin-sidebar-note strong {
  display: block;
  margin-bottom: 6px;
}

.admin-main-panel {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.admin-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-header-copy h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  font-family: var(--font-display);
}

.admin-header-copy p {
  max-width: 58ch;
}

.admin-header-side {
  display: grid;
  gap: 14px;
  justify-items: end;
  min-width: 320px;
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 244, 255, 0.92) 100%);
  border: 1px solid rgba(17, 119, 204, 0.1);
}

.admin-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
  box-shadow: 0 10px 22px rgba(17, 119, 204, 0.24);
}

.admin-user-meta {
  min-width: 0;
}

.admin-user-meta strong,
.admin-user-meta span {
  display: block;
}

.admin-user-meta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-logout-button {
  margin-left: auto;
  white-space: nowrap;
}

.admin-header-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.question-filter-form {
  display: grid;
  grid-template-columns: 180px 180px minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.question-filter-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.question-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.question-cell {
  min-width: 420px;
  white-space: normal;
  line-height: 1.6;
}

.question-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px;
 }

.sidebar {
  padding: 24px 20px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.side-nav {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--muted);
}

.side-link.is-active,
.side-link:hover {
  background: rgba(17, 119, 204, 0.1);
  color: var(--brand-deep);
}

.content-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.table-wrap {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar .field {
  min-width: 150px;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.config-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.config-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.metric-box {
  padding: 18px;
  border-radius: 20px;
  color: #fff;
}

.metric-box.blue {
  background: linear-gradient(135deg, #0f6dc4 0%, #34a5f0 100%);
}

.metric-box.orange {
  background: linear-gradient(135deg, #ef7e32 0%, #ffc160 100%);
}

.metric-box.green {
  background: linear-gradient(135deg, #209a7e 0%, #51c9a7 100%);
}

.metric-box.ink {
  background: linear-gradient(135deg, #264766 0%, #4f7090 100%);
}

.metric-box strong {
  display: block;
  font-size: 30px;
  margin-top: 10px;
}

.install-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.install-step {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.install-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  color: var(--brand-deep);
  background: rgba(17, 119, 204, 0.1);
}

.install-step strong {
  font-size: 14px;
}

.install-step.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #1a93e8 100%);
}

.install-step.is-active span {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.9);
}

.install-step.is-done {
  border-color: rgba(47, 158, 116, 0.22);
}

.install-step.is-done span {
  color: var(--success);
  background: var(--success-soft);
}

.install-shell {
  width: min(1280px, calc(100% - 32px));
  margin-top: 18px;
  padding: 28px;
  border-radius: 34px;
  color: #edf5ff;
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 175, 55, 0.22), transparent 26%),
    radial-gradient(circle at 92% 16%, rgba(77, 160, 255, 0.2), transparent 26%),
    linear-gradient(145deg, #081523 0%, #10243a 46%, #07111d 100%);
  box-shadow: 0 32px 90px rgba(6, 19, 32, 0.34);
}

.install-shell::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  pointer-events: none;
}

.install-shell .topbar {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.install-shell .brand-mark {
  background:
    linear-gradient(135deg, #d6b25e 0%, #f6e3a6 48%, #8fb8ff 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.install-shell .brand-copy h1,
.install-shell .brand-copy h2,
.install-shell h2,
.install-shell h3,
.install-shell h4,
.install-shell strong {
  color: #f8fbff;
}

.install-shell .brand-copy p,
.install-shell .muted,
.install-shell .meta,
.install-shell .footer-note,
.install-shell p,
.install-shell li,
.install-shell .timeline-item {
  color: rgba(226, 236, 248, 0.74);
}

.install-shell .hero-card,
.install-shell .panel,
.install-shell .login-card,
.install-shell .spotlight,
.install-shell .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

.install-shell .badge {
  color: #ffe8a6;
  background: rgba(214, 178, 94, 0.14);
  border: 1px solid rgba(214, 178, 94, 0.26);
}

.install-shell .pill-link,
.install-shell .chip {
  color: #eaf3ff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.install-shell .chip.success {
  color: #8ff1c5;
  background: rgba(47, 158, 116, 0.18);
}

.install-shell .chip.warning {
  color: #ffe1a1;
  background: rgba(214, 151, 20, 0.2);
}

.install-shell .chip.danger {
  color: #ff9aae;
  background: rgba(217, 72, 95, 0.18);
}

.install-shell .field input,
.install-shell .field select,
.install-shell .field textarea {
  color: #f8fbff;
  background: rgba(5, 16, 28, 0.62);
  border-color: rgba(255, 255, 255, 0.14);
}

.install-shell .field input::placeholder,
.install-shell .field textarea::placeholder {
  color: rgba(226, 236, 248, 0.44);
}

.install-shell .field select option {
  color: #10243a;
}

.install-shell .mini-item,
.install-shell .config-card,
.install-shell .stat {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.install-shell .timeline-item::before {
  background: #d6b25e;
  box-shadow: 0 0 0 5px rgba(214, 178, 94, 0.14);
}

.install-shell .install-progress {
  padding: 18px;
  border-radius: 24px;
  background: rgba(1, 8, 18, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.install-shell .install-step {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.install-shell .install-step span {
  color: #0c1a2b;
  background: rgba(255, 255, 255, 0.9);
}

.install-shell .install-step.is-active {
  background: linear-gradient(135deg, #d6b25e 0%, #f1cf78 100%);
  color: #132236;
}

.install-shell .install-step.is-active strong {
  color: #132236;
}

.install-shell .install-step.is-done {
  background: rgba(47, 158, 116, 0.18);
  border-color: rgba(143, 241, 197, 0.28);
}

.install-shell .install-step.is-done span {
  color: #082417;
  background: #8ff1c5;
}

.install-shell .button.primary {
  color: #122033;
  background: linear-gradient(135deg, #d6b25e 0%, #f4d985 100%);
  box-shadow: 0 16px 30px rgba(214, 178, 94, 0.22);
}

.install-shell .button.secondary {
  color: #eaf3ff;
  background: rgba(70, 137, 214, 0.22);
}

.install-shell .button.ghost {
  color: #eaf3ff;
  border-color: rgba(255, 255, 255, 0.18);
}

.install-complete-card h2 {
  letter-spacing: -0.03em;
}

.install-advisory-card {
  align-self: stretch;
}

.install-shell .spotlight .planet {
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.42), transparent 16%),
    radial-gradient(circle at 62% 58%, rgba(214, 178, 94, 0.34), transparent 20%),
    linear-gradient(135deg, rgba(64, 126, 206, 0.62) 0%, rgba(5, 16, 28, 0.95) 100%);
  box-shadow:
    inset 0 -18px 34px rgba(0, 0, 0, 0.28),
    0 26px 56px rgba(70, 137, 214, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.install-shell .spotlight .planet::before {
  border-color: rgba(214, 178, 94, 0.58);
}

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

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  position: relative;
  padding: 0 0 0 22px;
  color: var(--muted);
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: 0;
  top: 8px;
  background: var(--brand);
}

.timeline-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pageRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .site-header-inner,
  .grades-status-board,
  .grades-hero,
  .hero,
  .layout-login,
  .challenge-layout,
  .result-layout,
  .admin-frame,
  .admin-layout,
  .question-admin-grid {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .admin-sidebar-panel {
    position: static;
  }

  .challenge-panels {
    grid-template-columns: 1fr;
  }

  .challenge-page-shell {
    width: min(1180px, calc(100% - 28px));
  }

  .challenge-two-column {
    grid-template-columns: 1fr;
  }

  .challenge-left-panel {
    position: static;
  }

  .timer-card-top,
  .timer-card-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .timer-card-nav .nav-bubbles {
    width: 100%;
    flex-basis: auto;
  }

  .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-actions {
    justify-content: flex-start;
  }

  .user-menu-panel {
    left: 0;
    right: auto;
  }

  .hero-art {
    min-height: 240px;
  }

  .spotlight {
    min-height: auto;
  }

  .admin-frame {
    gap: 18px;
  }

  .admin-header-bar {
    flex-direction: column;
  }

  .admin-header-side {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .admin-user-card {
    max-width: none;
  }

  .question-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-side {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .route-student-grades .page-shell {
    width: min(100% - 28px, 1320px);
  }

  .route-student-grades .grades-shell-wide {
    width: min(100% - 28px, 1500px);
    max-width: 1500px;
  }

  .grades-hero {
    grid-template-columns: 1fr 340px;
    gap: 18px;
  }

  .grade-grid-polished {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 920px) {
  .site-header-inner,
  .site-footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .site-header-inner {
    gap: 14px;
    border-radius: 20px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  .grades-hero-copy,
  .grades-hero-panel,
  .grade-map-section {
    border-radius: 24px;
  }

  .grades-hero-copy {
    min-height: auto;
  }

  .grades-hero {
    grid-template-columns: 1fr;
  }

  .grades-status-card {
    border-radius: 22px;
  }

  .grades-hero-panel,
  .grade-map-section {
    padding: 20px;
  }

  .page-shell {
    width: min(100% - 24px, 1240px);
    padding-top: 22px;
  }

  .hero-card,
  .card,
  .panel,
  .table-wrap,
  .login-card,
  .spotlight,
  .sidebar {
    padding: 20px;
  }

  .hero-card h2 {
    font-size: clamp(28px, 5vw, 38px);
  }

  .question-card h3,
  .login-card h2 {
    font-size: clamp(24px, 4.6vw, 32px);
  }

  .toolbar-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .admin-shell-wide {
    width: min(100% - 20px, 1560px);
  }

  .install-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .install-shell {
    width: min(100% - 20px, 1280px);
    padding: 22px;
    border-radius: 28px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 0 4px;
  }

  .site-header-inner,
  .site-footer-inner {
    width: min(100% - 20px, 1240px);
  }

  .site-brand-copy small,
  .user-summary {
    display: none;
  }

  .site-nav,
  .site-actions,
  .site-footer-links {
    width: 100%;
  }

  .site-nav a,
  .site-action {
    flex: 1 1 auto;
  }

  .user-menu,
  .user-menu-button {
    width: 100%;
    max-width: none;
  }

  .user-menu-panel {
    width: 100%;
  }

  .grades-hero-copy h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .topbar,
  .section-head,
  .toolbar,
  .admin-header-bar {
    align-items: start;
    flex-direction: column;
  }

  .brand {
    width: 100%;
    align-items: flex-start;
  }

  .brand-copy h1,
  .brand-copy h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .top-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-card,
  .card,
  .panel,
  .table-wrap,
  .login-card,
  .spotlight,
  .sidebar {
    border-radius: 22px;
    padding: 18px;
  }

  .nav-bubbles {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  }

  .config-row {
    grid-template-columns: 1fr;
  }

  .question-filter-form {
    grid-template-columns: 1fr;
  }

  .admin-user-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-logout-button {
    margin-left: 0;
  }

  .install-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip,
  .stats-grid,
  .grades-status-board,
  .config-grid,
  .section-grid,
  .quick-actions,
  .grade-grid,
  .grade-grid-polished {
    grid-template-columns: 1fr;
  }

  .grades-hero-stats {
    grid-template-columns: 1fr;
  }

  .grade-grid-polished .grade-card {
    min-height: 230px;
    border-radius: 24px;
  }

  .grade-card-meta {
    grid-template-columns: 1fr;
  }

  .grades-status-card {
    align-items: flex-start;
  }

  .grades-hero-copy,
  .grades-hero-panel {
    border-radius: 24px;
  }

  .grade-grid-polished {
    gap: 14px;
  }

  .toolbar-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .toolbar-grid .field,
  .toolbar .field {
    width: 100%;
  }

  .button-row {
    width: 100%;
  }

  .button-row .button,
  .button-row a.button,
  .button-row button.button {
    flex: 1 1 100%;
    width: 100%;
  }

  .choice {
    grid-template-columns: 46px 1fr;
    padding: 12px;
    min-height: 68px;
  }

  .choice-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .timer-card {
    align-items: stretch;
    flex-direction: column;
  }

  .timer-badge {
    width: 100%;
    min-width: 0;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .install-shell {
    width: calc(100% - 12px);
    padding: 16px;
    border-radius: 22px;
  }

  .install-shell::after {
    inset: 8px;
    border-radius: 16px;
  }

  .install-shell .topbar {
    padding-bottom: 16px;
  }

  .install-step {
    min-height: 82px;
    padding: 12px;
  }

  .install-step strong {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(255, 186, 73, 0.18), transparent 24%),
      radial-gradient(circle at top right, rgba(17, 119, 204, 0.12), transparent 22%),
      linear-gradient(180deg, #fff9ef 0%, #f7efe0 100%);
  }

  .page-shell {
    width: calc(100% - 14px);
    padding-bottom: 28px;
  }

  .route-student-grades .page-shell {
    width: calc(100% - 18px);
  }

  .route-student-grades .grades-shell-wide {
    width: calc(100% - 18px);
    max-width: none;
  }

  .grades-hero-copy,
  .grades-hero-panel,
  .grade-map-section {
    border-radius: 20px;
  }

  .grades-hero-copy,
  .grade-map-section,
  .grades-hero-panel {
    padding: 16px;
  }

  .grades-panel-illustration {
    min-height: 150px;
  }

  .grade-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .grade-card h4 {
    font-size: 24px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .pill-link,
  .badge,
  .chip {
    font-size: 13px;
    padding: 8px 12px;
  }

  .hero-card,
  .card,
  .panel,
  .table-wrap,
  .login-card,
  .spotlight,
  .sidebar {
    border-radius: 18px;
    padding: 16px;
  }

  .hero-card h2,
  .login-card h2,
  .question-card h3 {
    font-size: 22px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 46px;
    padding: 12px 14px;
  }

  .nav-bubbles {
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  }

  .install-progress {
    grid-template-columns: 1fr;
  }

  .install-shell {
    width: calc(100% - 8px);
    margin-top: 10px;
    padding: 14px;
  }

  .flash-stack {
    padding: 14px;
  }

  .flash {
    width: min(100%, 420px);
    padding: 14px 14px 14px 16px;
  }
}

@media (max-width: 420px) {
  .top-links {
    gap: 8px;
  }

  .pill-link,
  .badge,
  .chip {
    width: 100%;
    justify-content: center;
  }

  .brand {
    gap: 10px;
  }

  .mini-item,
  .history-item {
    padding: 12px 14px;
  }

  .question-card h3 {
    font-size: 20px;
  }

  th,
  td {
    padding: 12px 10px;
  }
}

.flash-stack {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(14, 30, 52, 0.22);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  animation: flashOverlayIn 0.18s ease-out;
}

.flash {
  width: min(460px, calc(100vw - 48px));
  margin: 0;
  padding: 16px 16px 16px 18px;
  border-radius: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(17, 53, 88, 0.12);
  animation: flashPopIn 0.2s ease-out;
  pointer-events: auto;
}

.flash.is-hiding {
  animation: flashFadeOut 0.22s ease-in forwards;
}

.flash-body {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  word-break: break-word;
}

.flash-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: currentColor;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  transition: background 0.16s ease, transform 0.16s ease;
}

.flash-close:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: scale(1.04);
}

.flash-success {
  background: linear-gradient(135deg, rgba(221, 247, 235, 0.98), rgba(244, 255, 250, 0.98));
  border: 1px solid rgba(47, 158, 116, 0.2);
  color: #1f7a57;
}

.flash-error {
  background: linear-gradient(135deg, rgba(255, 224, 230, 0.98), rgba(255, 248, 250, 0.98));
  border: 1px solid rgba(217, 72, 95, 0.2);
  color: #b53349;
}

@keyframes flashOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes flashPopIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flashFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

button.chip {
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Home v2 — Professional landing page
   ========================================================================== */
.home {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
  position: relative;
  z-index: 1;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  margin-bottom: 28px;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.home-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, #34a5f0 100%);
  box-shadow: 0 12px 24px rgba(17, 119, 204, 0.26);
}

.home-nav-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.home-nav-brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.home-nav-links {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(22, 50, 79, 0.04);
}

.home-nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease;
}

.home-nav-link:hover {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.8);
}

.home-nav-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 18%, rgba(17, 119, 204, 0.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 140, 66, 0.14), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8f4ea 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.home-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 119, 204, 0.1);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.home-hero-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(47, 158, 116, 0.2);
}

.home-hero h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
  color: var(--ink);
}

.home-hero h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero p {
  margin: 0 0 22px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.home-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.home-hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.home-hero-stats div span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.home-hero-visual {
  position: relative;
  min-height: 320px;
}

.home-hero-mock {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, #0f4f88 0%, #1177cc 60%, #3aa3ec 100%);
  box-shadow: 0 30px 70px rgba(15, 79, 136, 0.3);
  padding: 22px;
  color: #eaf4ff;
  overflow: hidden;
}

.home-hero-mock::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 106, 0.4), transparent 70%);
  top: -60px;
  right: -60px;
}

.home-hero-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
  opacity: 0.85;
}

.home-hero-mock-dots {
  display: inline-flex;
  gap: 6px;
}

.home-hero-mock-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  display: inline-block;
}

.home-hero-mock-dots i:first-child {
  background: #ff8c66;
}

.home-hero-mock-dots i:nth-child(2) {
  background: #ffc860;
}

.home-hero-mock-dots i:last-child {
  background: #7be495;
}

.home-hero-mock-title {
  font-size: 22px;
  font-family: var(--font-display);
  line-height: 1.3;
  margin-bottom: 14px;
}

.home-hero-mock-list {
  display: grid;
  gap: 10px;
}

.home-hero-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.home-hero-mock-row strong {
  font-weight: 700;
}

.home-hero-mock-row small {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 214, 106, 0.28);
  color: #ffe199;
  font-weight: 700;
  font-size: 12px;
}

.home-hero-mock-row.is-done small {
  background: rgba(123, 228, 149, 0.26);
  color: #b6f5c7;
}

.home-section {
  margin-bottom: 32px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-section-head h3 {
  margin: 0;
  font-size: 26px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.home-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.home-section-head-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 6px;
}

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

.home-feature-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.home-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.home-feature-icon.v1 { background: linear-gradient(135deg, #1177cc 0%, #34a5f0 100%); }
.home-feature-icon.v2 { background: linear-gradient(135deg, #ff8c42 0%, #ffc07a 100%); }
.home-feature-icon.v3 { background: linear-gradient(135deg, #2f9e74 0%, #5ec79c 100%); }
.home-feature-icon.v4 { background: linear-gradient(135deg, #6548c4 0%, #9a80e8 100%); }

.home-feature-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-family: var(--font-display);
}

.home-feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-entry-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.home-entry-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  opacity: 0.14;
}

.home-entry-card.e-student::after { background: #1177cc; }
.home-entry-card.e-admin::after { background: #ff8c42; }
.home-entry-card.e-install::after { background: #2f9e74; }

.home-entry-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.home-entry-card h4 {
  margin: 0;
  font-size: 22px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.home-entry-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.home-entry-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(17, 119, 204, 0.08);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
}

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

.home-status {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(17, 119, 204, 0.05) 0%, rgba(255, 140, 66, 0.04) 100%);
  border: 1px solid var(--line);
}

.home-status-head strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.home-status-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-status-list {
  display: grid;
  gap: 10px;
}

.home-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  font-size: 14px;
}

.home-status-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.home-status-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.home-footer {
  margin-top: 36px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.home-footer a {
  color: var(--brand-deep);
  font-weight: 600;
}

/* ==========================================================================
   Install Wizard v2 — 6-step standardized installer
   ========================================================================== */
.wizard {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 48px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(15, 40, 70, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.wizard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbf7ef 100%);
}

.wizard-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wizard-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, #34a5f0 100%);
  box-shadow: 0 10px 22px rgba(17, 119, 204, 0.26);
  flex-shrink: 0;
}

.wizard-brand-copy strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-family: var(--font-display);
}

.wizard-brand-copy span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.wizard-topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wizard-progress-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 119, 204, 0.09);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
}

.wizard-progress-counter b {
  font-size: 16px;
  font-family: var(--font-display);
  color: var(--brand);
}

.wizard-progress-bar {
  width: 140px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 119, 204, 0.12);
  overflow: hidden;
}

.wizard-progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  transition: width 0.3s ease;
}

.wizard-topbar-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.wizard-topbar-link:hover {
  color: var(--brand-deep);
}

.wizard-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.wizard-sidebar {
  padding: 28px 22px;
  background: linear-gradient(180deg, #fbf8f0 0%, #f5efe2 100%);
  border-right: 1px solid var(--line);
}

.wizard-sidebar-title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 14px;
}

.wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  position: relative;
}

.wizard-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: background 0.16s ease, border-color 0.16s ease;
  position: relative;
}

.wizard-step + .wizard-step::before {
  content: "";
  position: absolute;
  left: 29px;
  top: -8px;
  height: 10px;
  width: 2px;
  background: var(--line);
}

.wizard-step-index {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(17, 53, 88, 0.06);
}

.wizard-step-copy {
  min-width: 0;
  display: block;
}

.wizard-step-copy strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

.wizard-step-copy span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.wizard-step.is-active {
  background: rgba(17, 119, 204, 0.08);
  border-color: rgba(17, 119, 204, 0.2);
}

.wizard-step.is-active .wizard-step-index {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #34a5f0 100%);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(17, 119, 204, 0.28);
}

.wizard-step.is-active .wizard-step-copy strong {
  color: var(--brand-deep);
}

.wizard-step.is-done .wizard-step-index {
  color: #fff;
  background: var(--success);
  border-color: transparent;
}

.wizard-step.is-done .wizard-step-index::before {
  content: "✓";
  font-size: 16px;
}

.wizard-step.is-done .wizard-step-index-num {
  display: none;
}

.wizard-help {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(17, 119, 204, 0.06);
  border: 1px solid rgba(17, 119, 204, 0.12);
}

.wizard-help strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--brand-deep);
}

.wizard-help p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.wizard-main {
  padding: 32px 36px 28px;
  background: #fff;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.wizard-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.wizard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.wizard-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}

.wizard-panel-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wizard-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 58ch;
}

.wizard-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.wizard-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.wizard-status.is-ok {
  background: var(--success-soft);
  color: var(--success);
}

.wizard-status.is-ok::before {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(47, 158, 116, 0.2);
}

.wizard-status.is-warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.wizard-status.is-warn::before {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(214, 151, 20, 0.2);
}

.wizard-status.is-err {
  background: var(--danger-soft);
  color: var(--danger);
}

.wizard-status.is-err::before {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(217, 72, 95, 0.2);
}

.wizard-panel-body {
  flex: 1;
  min-height: 0;
}

.wizard-check-list {
  display: grid;
  gap: 10px;
}

.wizard-check-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fafbfd;
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.wizard-check-row:hover {
  background: #fff;
  border-color: rgba(17, 119, 204, 0.18);
}

.wizard-check-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.wizard-check-icon.ok {
  background: var(--success-soft);
  color: var(--success);
}

.wizard-check-icon.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.wizard-check-icon.err {
  background: var(--danger-soft);
  color: var(--danger);
}

.wizard-check-text strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.wizard-check-text span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.wizard-check-value {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(22, 50, 79, 0.06);
  color: var(--ink);
  white-space: nowrap;
}

.wizard-check-value.ok {
  background: var(--success-soft);
  color: var(--success);
}

.wizard-check-value.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.wizard-check-value.err {
  background: var(--danger-soft);
  color: var(--danger);
}

.wizard-form {
  display: grid;
  gap: 22px;
}

.wizard-form-group {
  padding: 22px;
  border-radius: 18px;
  background: #fafbfd;
  border: 1px solid var(--line);
}

.wizard-form-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.wizard-form-group-title strong {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
}

.wizard-form-group-title span {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(17, 119, 204, 0.1);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

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

.wizard-field-grid.single {
  grid-template-columns: 1fr;
}

.wizard-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wizard-field.col-span-2 {
  grid-column: span 2;
}

.wizard-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.wizard-field .hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.wizard-field input,
.wizard-field select,
.wizard-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.wizard-field input:focus,
.wizard-field select:focus,
.wizard-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(17, 119, 204, 0.12);
}

.wizard-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wizard-radio {
  position: relative;
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.wizard-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-radio strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.wizard-radio span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.wizard-radio:has(input:checked) {
  border-color: var(--brand);
  background: rgba(17, 119, 204, 0.05);
  box-shadow: 0 0 0 4px rgba(17, 119, 204, 0.1);
}

.wizard-radio:has(input:checked) strong {
  color: var(--brand-deep);
}

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

.wizard-summary-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fafbfd;
  border: 1px solid var(--line);
}

.wizard-summary-item label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.wizard-summary-item strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  font-family: var(--font-display);
  word-break: break-all;
}

.wizard-alert {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafbfd;
  font-size: 14px;
  line-height: 1.6;
  align-items: flex-start;
}

.wizard-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.wizard-alert.is-ok {
  border-color: rgba(47, 158, 116, 0.3);
  background: rgba(221, 247, 235, 0.5);
}

.wizard-alert.is-ok .wizard-alert-icon {
  background: var(--success);
  color: #fff;
}

.wizard-alert.is-warn {
  border-color: rgba(214, 151, 20, 0.3);
  background: rgba(255, 241, 194, 0.5);
}

.wizard-alert.is-warn .wizard-alert-icon {
  background: var(--warning);
  color: #fff;
}

.wizard-alert.is-err {
  border-color: rgba(217, 72, 95, 0.3);
  background: rgba(255, 224, 230, 0.5);
}

.wizard-alert.is-err .wizard-alert-icon {
  background: var(--danger);
  color: #fff;
}

.wizard-alert-body strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}

.wizard-alert-body span {
  color: var(--muted);
  word-break: break-all;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.wizard-actions .spacer {
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #1a93e8 100%);
  box-shadow: 0 10px 22px rgba(17, 119, 204, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 14px 26px rgba(17, 119, 204, 0.32);
}

.btn-outline {
  color: var(--brand-deep);
  background: #fff;
  border-color: rgba(17, 119, 204, 0.3);
}

.btn-outline:hover {
  background: rgba(17, 119, 204, 0.05);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(22, 50, 79, 0.04);
}

.btn-success {
  color: #fff;
  background: linear-gradient(135deg, var(--success) 0%, #51c9a7 100%);
  box-shadow: 0 10px 22px rgba(47, 158, 116, 0.24);
}

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

.wizard-welcome-item {
  padding: 18px;
  border-radius: 16px;
  background: #fafbfd;
  border: 1px solid var(--line);
}

.wizard-welcome-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.wizard-welcome-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.wizard-welcome-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(17, 119, 204, 0.1);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.wizard-success-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 158, 116, 0.1) 0%, rgba(17, 119, 204, 0.06) 100%);
  border: 1px solid rgba(47, 158, 116, 0.2);
  margin-bottom: 22px;
}

.wizard-success-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--success) 0%, #51c9a7 100%);
  box-shadow: 0 20px 44px rgba(47, 158, 116, 0.3);
}

.wizard-success-copy h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-family: var(--font-display);
  color: var(--ink);
}

.wizard-success-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.wizard-success-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}

.wizard-success-meta b {
  color: var(--ink);
  font-weight: 700;
}

/* Responsive — wizard */
@media (max-width: 960px) {
  .wizard-body {
    grid-template-columns: 1fr;
  }

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

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

  .wizard-step + .wizard-step::before {
    display: none;
  }

  .wizard-step-copy span {
    display: none;
  }

  .wizard-help {
    display: none;
  }

  .wizard-main {
    padding: 24px 22px 22px;
  }

  .wizard-panel-head {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .home-hero-visual {
    min-height: 260px;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-entry-grid {
    grid-template-columns: 1fr;
  }

  .home-status {
    grid-template-columns: 1fr;
  }

  .home-nav {
    flex-wrap: wrap;
    padding: 14px;
  }

  .home-nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-field-grid {
    grid-template-columns: 1fr;
  }

  .wizard-field.col-span-2 {
    grid-column: auto;
  }

  .wizard-radio-group {
    grid-template-columns: 1fr;
  }

  .wizard-summary {
    grid-template-columns: 1fr;
  }

  .wizard-welcome-grid {
    grid-template-columns: 1fr;
  }

  .wizard-success-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .wizard-actions {
    flex-wrap: wrap;
  }

  .wizard-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .wizard-topbar {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .wizard-main {
    padding: 20px 16px;
  }

  .wizard-panel-head h2 {
    font-size: 22px;
  }
}

/* ==========================================================================
   Auth v2 — Login / Register pages (student + admin themes)
   ========================================================================== */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  position: relative;
  z-index: 1;
}

.auth-side {
  position: relative;
  overflow: hidden;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(135deg, #0f4f88 0%, #1177cc 60%, #3aa3ec 100%);
}

.auth-side::before,
.auth-side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-side::before {
  width: 380px;
  height: 380px;
  right: -140px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 214, 106, 0.45), transparent 70%);
}

.auth-side::after {
  width: 300px;
  height: 300px;
  left: -100px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.auth-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.auth-brand-logo.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

.auth-brand span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.78;
}

.auth-pitch {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.auth-pitch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.auth-pitch h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-pitch p {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.86;
  max-width: 44ch;
}

.auth-feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.92;
}

.auth-feature-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.auth-side-footer {
  margin-top: 28px;
  font-size: 12px;
  opacity: 0.7;
  position: relative;
  z-index: 2;
}

.auth-form-wrap {
  display: flex;
  flex-direction: column;
  padding: 36px 52px;
  background: #fcfaf3;
  position: relative;
  overflow: auto;
}

.auth-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.16s ease;
}

.auth-back:hover {
  color: var(--brand-deep);
}

.auth-switch {
  font-size: 13px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--brand-deep);
  font-weight: 700;
  margin-left: 4px;
}

.auth-form-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.auth-form-inner {
  width: 100%;
  max-width: 440px;
}

.auth-form-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.auth-form-inner h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.auth-form-inner .lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-fields {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(17, 119, 204, 0.12);
}

.auth-field .hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
}

.auth-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #1a93e8 100%);
  box-shadow: 0 14px 30px rgba(17, 119, 204, 0.28);
}

.auth-btn-primary:hover {
  box-shadow: 0 16px 34px rgba(17, 119, 204, 0.34);
}

.auth-btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  min-height: 44px;
  font-size: 14px;
}

.auth-btn-ghost:hover {
  color: var(--ink);
  background: rgba(22, 50, 79, 0.04);
}

.auth-btn-secondary {
  color: var(--brand-deep);
  background: rgba(17, 119, 204, 0.1);
  border-color: rgba(17, 119, 204, 0.2);
  font-size: 14px;
  white-space: nowrap;
}

.auth-btn-secondary:hover {
  background: rgba(17, 119, 204, 0.16);
}

.auth-btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn-send-code {
  min-height: 48px;
}

.captcha-label {
  color: var(--muted);
}

.captcha-refresh {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.58);
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.captcha-refresh::after {
  content: "↻";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  color: #64748b;
  font-size: 18px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  outline: none;
}

.captcha-refresh:hover::after,
.captcha-refresh:focus-visible::after {
  opacity: 1;
}

.captcha-image {
  width: 100%;
  height: 48px;
  display: block;
  border: 0;
  border-radius: 14px;
  pointer-events: none;
  object-fit: cover;
  background: transparent;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-meta {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(17, 119, 204, 0.06);
  border: 1px solid rgba(17, 119, 204, 0.12);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-meta strong {
  color: var(--ink);
}

/* Admin auth theme — dark/professional */
.auth--admin .auth-side {
  background:
    radial-gradient(circle at 12% 20%, rgba(214, 178, 94, 0.22), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(70, 137, 214, 0.24), transparent 34%),
    linear-gradient(145deg, #07111d 0%, #0e2338 48%, #081828 100%);
}

.auth--admin .auth-side::before {
  background: radial-gradient(circle, rgba(214, 178, 94, 0.3), transparent 70%);
}

.auth--admin .auth-form-wrap {
  background: #f5f7fb;
}

.auth--admin .auth-form-eyebrow {
  color: #c6912d;
}

.auth--admin .auth-brand-logo {
  background: linear-gradient(135deg, #d6b25e 0%, #f6e3a6 100%);
  border-color: rgba(214, 178, 94, 0.5);
  color: #1f2e44;
}

.auth--admin .auth-btn-primary {
  background: linear-gradient(135deg, #0f4f88 0%, #1b79d6 100%);
  box-shadow: 0 14px 30px rgba(15, 79, 136, 0.34);
}

/* Student auth theme — warm/friendly */
.auth--student .auth-side {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 214, 106, 0.34), transparent 32%),
    radial-gradient(circle at 88% 86%, rgba(17, 119, 204, 0.24), transparent 32%),
    linear-gradient(135deg, #ff8c42 0%, #e86a39 45%, #0f4f88 100%);
}

.auth--student .auth-brand-logo {
  background: linear-gradient(135deg, #ffd56a 0%, #ff9852 100%);
  color: #6a2e0b;
  border-color: rgba(255, 255, 255, 0.38);
}

.auth--student .auth-form-eyebrow {
  color: #d96b21;
}

/* AI style auth refresh */
.ai-auth {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(195, 235, 255, 0.88) 0%, rgba(232, 229, 255, 0.9) 48%, rgba(128, 207, 255, 0.86) 100%);
  overflow: hidden;
}

.ai-auth .auth-side {
  padding: clamp(36px, 6vw, 88px) clamp(42px, 8vw, 126px);
  color: #0b2a55;
  background:
    radial-gradient(circle at 30% 38%, rgba(255, 255, 255, 0.74), transparent 22%),
    linear-gradient(145deg, rgba(226, 246, 255, 0.82), rgba(231, 230, 255, 0.42));
}

.ai-auth .auth-side::before {
  width: 640px;
  height: 220px;
  left: -120px;
  right: auto;
  top: auto;
  bottom: 82px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(41, 154, 246, 0.38), rgba(255, 255, 255, 0.08));
  filter: blur(2px);
  transform: rotate(-15deg);
}

.ai-auth .auth-side::after {
  width: 720px;
  height: 260px;
  left: -180px;
  bottom: -128px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.56), rgba(117, 107, 255, 0.18));
  transform: rotate(-8deg);
}

.ai-auth .auth-brand {
  color: #0b2a55;
}

.ai-auth .auth-brand-logo {
  background: linear-gradient(135deg, #7667ff 0%, #48c6ff 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 18px 32px rgba(75, 116, 255, 0.22);
}

.ai-auth .auth-brand span,
.ai-auth .auth-pitch p,
.ai-auth .auth-side-footer {
  color: rgba(11, 42, 85, 0.66);
  opacity: 1;
}

.ai-auth .auth-pitch {
  margin-top: 56px;
}

.ai-auth .auth-pitch h2 {
  max-width: 760px;
  color: #071b57;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(7, 27, 87, 0.08);
}

.ai-auth .auth-pitch p {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.7;
}

.auth-orbit {
  width: min(640px, 94%);
  margin: 32px 0 28px 54px;
  filter: drop-shadow(0 32px 48px rgba(67, 119, 229, 0.28));
  animation: float-orbit 6s ease-in-out infinite;
}

@keyframes float-orbit {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.auth-orbit svg {
  width: 100%;
  height: auto;
  display: block;
}

.auth-orbit .ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 12;
}

.auth-orbit .ring-2 {
  stroke: rgba(92, 122, 255, 0.28);
  stroke-width: 8;
}

.auth-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 740px;
}

.auth-feature-cards div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 36px rgba(77, 118, 185, 0.14);
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

.auth-feature-cards div:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(77, 118, 185, 0.22);
  border-color: rgba(255, 255, 255, 0.88);
}

.auth-feature-cards span {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #7667ff, #48c6ff);
  box-shadow: 0 8px 20px rgba(118, 103, 255, 0.32);
  color: #fff;
  font-size: 24px;
}

.auth-feature-cards strong {
  color: #102c58;
  font-size: 16px;
  font-weight: 700;
}

.auth-feature-cards small {
  color: rgba(44, 70, 107, 0.64);
  font-size: 13px;
  line-height: 1.4;
}

.ai-auth .auth-form-wrap {
  justify-content: center;
  padding: clamp(28px, 5vw, 76px);
  background: transparent;
}

.ai-auth .auth-form-card {
  flex: 0 0 auto;
  padding: 0;
}

.ai-auth .auth-form-inner {
  max-width: 420px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 60px rgba(62, 99, 161, 0.16);
  backdrop-filter: blur(18px);
}

.ai-auth .auth-form-eyebrow {
  text-align: center;
  color: #315fcf;
  letter-spacing: 0.08em;
}

.ai-auth .auth-form-inner h1,
.ai-auth .auth-form-inner .lead {
  text-align: center;
}

.ai-auth .auth-form-inner h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.ai-auth .auth-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ai-auth .auth-field input {
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(52, 105, 190, 0.06);
}

.ai-auth .auth-field input:focus {
  box-shadow: 0 0 0 4px rgba(94, 115, 255, 0.14), inset 0 0 0 1px rgba(94, 115, 255, 0.36);
}

.auth-inline-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}

.auth-inline-links a {
  color: #315fcf;
  font-weight: 700;
}

.auth-inline-links-register {
  margin: 18px 0 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(94, 115, 255, 0.08), rgba(94, 115, 255, 0.04));
  border: 1px solid rgba(94, 115, 255, 0.16);
  box-shadow: 0 4px 12px rgba(94, 115, 255, 0.06);
  gap: 16px;
}

.auth-inline-links-register a {
  flex: 1 1 160px;
  position: relative;
  padding: 2px 0;
  transition: all 0.2s ease;
}

.auth-inline-links-register a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7a61ff, #3c80f6);
  transition: width 0.3s ease;
}

.auth-inline-links-register a:hover::after {
  width: 100%;
}

.auth-inline-links-register a:hover {
  color: #5e47ff;
}

.auth-form-wrap-register {
  padding-top: 28px;
  padding-bottom: 28px;
}

.auth-form-inner-register {
  max-width: 520px;
  padding: 38px 40px;
}

.auth-fields-register {
  gap: 18px;
}

.auth-field-row-register {
  gap: 16px;
}

.auth-field-register select,
.auth-fields-register .auth-field input,
.auth-fields-register .auth-field select {
  min-height: 54px;
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.auth-fields-register .auth-field input:hover,
.auth-fields-register .auth-field select:hover {
  border-color: rgba(94, 115, 255, 0.3);
  background: rgba(255, 255, 255, 0.98);
}

.auth-fields-register .auth-field input::placeholder {
  color: rgba(22, 50, 79, 0.4);
  font-size: 14px;
}

.auth-register-lead {
  margin-bottom: 24px;
  line-height: 1.75;
  font-size: 15px;
  color: rgba(22, 50, 79, 0.72);
}

.auth-actions-register {
  margin-top: 28px;
  margin-bottom: 8px;
}

.auth-meta-register {
  text-align: left;
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 249, 225, 0.9), rgba(255, 252, 240, 0.7));
  border: 1px solid rgba(255, 200, 100, 0.24);
  box-shadow: 0 4px 12px rgba(255, 180, 80, 0.08);
}

.auth-meta-register strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #16324f;
  font-weight: 700;
}

.auth-meta-register span {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(22, 50, 79, 0.72);
}

.ai-auth .auth-btn-primary {
  border-radius: 12px;
  background: linear-gradient(135deg, #7a61ff 0%, #3c80f6 100%);
  box-shadow: 0 18px 36px rgba(80, 102, 242, 0.32);
  transition: all 0.3s ease;
}

.ai-auth .auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(80, 102, 242, 0.4);
}

.ai-auth .auth-meta {
  text-align: center;
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.6);
}

.ai-auth.auth--admin .auth-feature-cards span,
.ai-auth.auth--admin .auth-brand-logo {
  background: linear-gradient(135deg, #5e73ff 0%, #30c790 100%);
}

.ai-auth.auth--admin .auth-form-eyebrow {
  color: #234ec8;
}

/* Admin console visual refresh */
.body-admin {
  background:
    radial-gradient(circle at 18% 8%, rgba(189, 233, 255, 0.9), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(208, 204, 255, 0.86), transparent 26%),
    linear-gradient(135deg, #f7fbff 0%, #eef7ff 50%, #f5f3ff 100%);
}

.body-admin::before {
  opacity: 0;
}

.body-admin .adm {
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  background: transparent;
}

.body-admin .adm-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(245, 251, 255, 0.82), rgba(232, 237, 255, 0.7));
  color: #15345f;
  box-shadow: 0 24px 60px rgba(69, 105, 164, 0.14);
  backdrop-filter: blur(18px);
}

.body-admin .adm-sidebar-brand {
  border-bottom-color: rgba(22, 50, 79, 0.08);
}

.body-admin .adm-sidebar-logo {
  color: #fff;
  background: linear-gradient(135deg, #7667ff 0%, #48c6ff 100%);
  box-shadow: 0 14px 28px rgba(84, 117, 255, 0.24);
}

.body-admin .adm-sidebar-brand-copy strong {
  color: #071b57;
}

.body-admin .adm-sidebar-brand-copy span,
.body-admin .adm-nav-section {
  color: rgba(21, 52, 95, 0.52);
}

.body-admin .adm-nav-link {
  color: rgba(21, 52, 95, 0.74);
}

.body-admin .adm-nav-link:hover {
  color: #071b57;
  background: rgba(255, 255, 255, 0.58);
}

.body-admin .adm-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, #7667ff 0%, #3c80f6 100%);
  box-shadow: 0 14px 28px rgba(82, 109, 241, 0.24);
}

.body-admin .adm-nav-link.is-active::before {
  background: #48c6ff;
}

.body-admin .adm-nav-icon {
  color: #315fcf;
  background: rgba(255, 255, 255, 0.68);
}

.body-admin .adm-nav-link.is-active .adm-nav-icon {
  color: #315fcf;
  background: rgba(255, 255, 255, 0.92);
}

.body-admin .adm-sidebar-help {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.66);
  color: rgba(21, 52, 95, 0.74);
}

.body-admin .adm-sidebar-help strong {
  color: #071b57;
}

.body-admin .adm-sidebar-help p {
  color: rgba(21, 52, 95, 0.58);
}

.body-admin .adm-sidebar-help a {
  color: #315fcf;
}

.body-admin .adm-main {
  min-width: 0;
}

.body-admin .adm-topbar {
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(69, 105, 164, 0.12);
  backdrop-filter: blur(18px);
}

.body-admin .adm-content {
  padding: 0;
}

.body-admin .adm-card,
.body-admin .adm-kpi-card,
.body-admin .adm-quick-link {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(69, 105, 164, 0.1);
  backdrop-filter: blur(14px);
}

.body-admin .adm-kpi-card {
  border-radius: 22px;
}

.body-admin .adm-card {
  border-radius: 22px;
}

.body-admin .adm-table thead th {
  background: rgba(239, 247, 255, 0.78);
}

.body-admin .adm-topbar-avatar,
.body-admin .adm-kpi-card.k-blue .adm-kpi-icon {
  background: linear-gradient(135deg, #7667ff 0%, #48c6ff 100%);
}

.body-admin .adm-kpi-card.k-orange .adm-kpi-icon {
  background: linear-gradient(135deg, #ffb547 0%, #ff7aa2 100%);
}

.body-admin .adm-kpi-card.k-green .adm-kpi-icon {
  background: linear-gradient(135deg, #30c790 0%, #48c6ff 100%);
}

.body-admin .adm-kpi-card.k-purple .adm-kpi-icon {
  background: linear-gradient(135deg, #756bff 0%, #b27cff 100%);
}

/* Responsive — auth */
@media (max-width: 960px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .ai-auth {
    overflow: auto;
  }

  .ai-auth .auth-side {
    padding: 32px 24px;
  }

  .auth-orbit {
    margin-left: 0;
  }

  .auth-feature-cards {
    grid-template-columns: 1fr;
  }

  .auth-side {
    padding: 32px;
    min-height: 280px;
  }

  .auth-form-wrap {
    padding: 28px;
  }

  .auth-form-card {
    padding: 24px 0;
  }
}

@media (max-width: 560px) {
  .auth-side {
    padding: 24px;
    min-height: 220px;
  }

  .auth-pitch h2 {
    font-size: 24px;
  }

  .auth-pitch p {
    font-size: 13px;
  }

  .auth-form-wrap {
    padding: 20px;
  }

  .auth-field-row {
    grid-template-columns: 1fr;
  }

  .ai-auth .auth-form-inner {
    padding: 26px 20px;
  }

  .ai-auth .auth-pitch h2 {
    font-size: 30px;
  }
}

/* ==========================================================================
   Admin Backend v2 — Shared shell (sidebar + topbar + content)
   ========================================================================== */
.adm {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: #f6f4ea;
  position: relative;
  z-index: 1;
}

/* ---- sidebar ---- */
.adm-sidebar {
  padding: 22px 18px;
  background: linear-gradient(180deg, #0e2338 0%, #081828 100%);
  color: #cdd8e8;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.adm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.adm-sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #1c2a3e;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #d6b25e 0%, #f6e3a6 100%);
  box-shadow: 0 10px 20px rgba(214, 178, 94, 0.22);
  flex-shrink: 0;
}

.adm-sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.adm-logo-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafbfd;
}

.adm-logo-preview img,
.adm-logo-fallback {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
}

.adm-logo-preview img {
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(22, 50, 79, 0.08);
}

.adm-logo-fallback {
  display: grid;
  place-items: center;
  color: #1c2a3e;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #d6b25e 0%, #f6e3a6 100%);
}

.adm-logo-preview-meta {
  display: grid;
  gap: 6px;
}

.adm-logo-preview-meta strong {
  color: var(--ink);
  font-size: 14px;
}

.adm-logo-preview-meta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.adm-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.adm-check-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.adm-link-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.adm-link-row:last-child {
  border-bottom: none;
}

.adm-card-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.adm-sidebar-brand-copy strong {
  display: block;
  color: #f8fbff;
  font-size: 16px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.adm-sidebar-brand-copy span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(226, 236, 248, 0.6);
}

.adm-nav-section {
  margin: 14px 0 10px;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 236, 248, 0.42);
  font-weight: 700;
}

.adm-nav {
  display: grid;
  gap: 2px;
}

.adm-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(226, 236, 248, 0.75);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
  position: relative;
}

.adm-nav-link:hover {
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.04);
}

.adm-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(17, 119, 204, 0.5) 0%, rgba(58, 163, 236, 0.35) 100%);
  box-shadow: inset 0 0 0 1px rgba(58, 163, 236, 0.28);
}

.adm-nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6b25e 0%, #f6e3a6 100%);
}

.adm-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.adm-nav-link.is-active .adm-nav-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.adm-nav-label {
  flex: 1;
  min-width: 0;
}

.adm-nav-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.adm-nav-badge.hot {
  background: rgba(217, 72, 95, 0.22);
  color: #ffb1bf;
}

.adm-sidebar-help {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(214, 178, 94, 0.14) 0%, rgba(17, 119, 204, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 236, 248, 0.85);
}

.adm-sidebar-help strong {
  display: block;
  color: #f8fbff;
  font-size: 13px;
  margin-bottom: 4px;
}

.adm-sidebar-help p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(226, 236, 248, 0.68);
}

.adm-sidebar-help a {
  color: #ffd56a;
  font-weight: 700;
}

/* ---- topbar ---- */
.adm-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.adm-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.adm-topbar-title h1 {
  margin: 0 0 3px;
  font-size: 20px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.adm-topbar-title p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.adm-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-topbar-search {
  position: relative;
}

.adm-topbar-search input {
  min-width: 240px;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafbfd;
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.adm-topbar-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 119, 204, 0.12);
  background: #fff;
}

.adm-topbar-search::before {
  content: "⌕";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.adm-topbar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fafbfd;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.adm-topbar-icon:hover {
  color: var(--brand-deep);
  border-color: rgba(17, 119, 204, 0.24);
  background: rgba(17, 119, 204, 0.05);
}

.adm-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: #fafbfd;
  border: 1px solid var(--line);
}

.adm-topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
  font-size: 14px;
}

.adm-topbar-user-info {
  line-height: 1.2;
}

.adm-topbar-user-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.adm-topbar-user-info span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.adm-topbar-user-info span b {
  color: var(--brand-deep);
  font-weight: 700;
}

.adm-user-menu {
  position: relative;
}

.adm-user-menu-button {
  min-height: 48px;
  max-width: 320px;
  background: #fafbfd;
  box-shadow: none;
}

.adm-user-menu-panel {
  width: 220px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 40, 70, 0.12);
}

.adm-user-menu-panel a {
  font-size: 14px;
}

/* ---- content area ---- */
.adm-content {
  padding: 28px;
  display: grid;
  gap: 20px;
  min-height: 0;
}

.adm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(15, 40, 70, 0.04);
  overflow: hidden;
}

.adm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.adm-card-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-family: var(--font-display);
  color: var(--ink);
}

.adm-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.adm-card-head-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.adm-card-body {
  padding: 22px;
}

.adm-card-body.flush {
  padding: 0;
}

/* ---- KPI cards ---- */
.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.adm-kpi-card {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 40, 70, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adm-kpi-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: 0.14;
}

.adm-kpi-card.k-blue::after { background: #1177cc; }
.adm-kpi-card.k-orange::after { background: #ff8c42; }
.adm-kpi-card.k-green::after { background: #2f9e74; }
.adm-kpi-card.k-purple::after { background: #6548c4; }

.adm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 40, 70, 0.08);
}

.adm-kpi-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.adm-kpi-card-head span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.adm-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.adm-kpi-card.k-blue .adm-kpi-icon { background: linear-gradient(135deg, #1177cc 0%, #34a5f0 100%); }
.adm-kpi-card.k-orange .adm-kpi-icon { background: linear-gradient(135deg, #ff8c42 0%, #ffc07a 100%); }
.adm-kpi-card.k-green .adm-kpi-icon { background: linear-gradient(135deg, #2f9e74 0%, #5ec79c 100%); }
.adm-kpi-card.k-purple .adm-kpi-icon { background: linear-gradient(135deg, #6548c4 0%, #9a80e8 100%); }

.adm-kpi-value {
  font-size: 30px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.adm-kpi-delta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.adm-kpi-delta b {
  color: var(--success);
}

.adm-kpi-delta.down b {
  color: var(--danger);
}

/* ---- dashboard extras ---- */
.adm-split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
}

.adm-activity {
  display: grid;
  gap: 0;
}

.adm-activity-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.adm-activity-row:last-child {
  border-bottom: none;
}

.adm-activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, #1177cc, #34a5f0);
}

.adm-activity-body strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.adm-activity-body span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.adm-quick-grid {
  display: grid;
  gap: 10px;
}

.adm-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.adm-quick-link:hover {
  border-color: rgba(17, 119, 204, 0.3);
  background: rgba(17, 119, 204, 0.04);
  transform: translateY(-1px);
}

.adm-quick-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

.adm-quick-link strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.adm-quick-link span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---- table v2 ---- */
.adm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
}

.adm-table thead th {
  position: sticky;
  top: 0;
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-weight: 700;
}

.adm-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  vertical-align: middle;
}

.adm-check-col {
  width: 56px;
  text-align: center;
}

.adm-check-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.adm-table tbody tr:last-child td {
  border-bottom: none;
}

.adm-table tbody tr:hover {
  background: rgba(17, 119, 204, 0.03);
}

.adm-table td.muted {
  color: var(--muted);
}

.adm-table td .cell-title {
  font-weight: 600;
  color: var(--ink);
}

.adm-table td .cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.adm-table td .cell-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 50, 79, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.adm-table td .cell-tag.blue { background: rgba(17, 119, 204, 0.1); color: var(--brand-deep); }
.adm-table td .cell-tag.orange { background: rgba(255, 140, 66, 0.12); color: #bd5517; }
.adm-table td .cell-tag.green { background: var(--success-soft); color: var(--success); }
.adm-table td .cell-tag.red { background: var(--danger-soft); color: var(--danger); }

.adm-table-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.adm-table-empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}

.adm-row-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(17, 119, 204, 0.08);
  color: var(--brand-deep);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease;
}

.adm-row-btn:hover {
  background: rgba(17, 119, 204, 0.16);
}

.adm-row-btn.danger {
  color: var(--danger);
  background: rgba(217, 72, 95, 0.08);
}

.adm-row-btn.danger:hover {
  background: rgba(217, 72, 95, 0.16);
}

.adm-row-btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.adm-row-btn.ghost:hover {
  color: var(--ink);
  background: rgba(22, 50, 79, 0.04);
}

/* ---- filter bar ---- */
.adm-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
}

.adm-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 22px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17, 119, 204, 0.04);
  border: 1px solid rgba(17, 119, 204, 0.08);
}

.adm-check-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.adm-check-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.adm-filter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.adm-filter-field label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.adm-filter-field input,
.adm-filter-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.adm-filter-field input:focus,
.adm-filter-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 119, 204, 0.12);
}

.adm-filter-actions {
  display: inline-flex;
  gap: 8px;
  align-items: end;
  padding-bottom: 0;
}

/* ---- pagination ---- */
.adm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: #fafbfd;
  flex-wrap: wrap;
}

.adm-pagination-info {
  font-size: 13px;
  color: var(--muted);
}

.adm-pagination-info b {
  color: var(--ink);
  font-weight: 700;
}

.adm-pager {
  display: inline-flex;
  gap: 4px;
}

.adm-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.adm-page-size select {
  min-height: 36px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.adm-page-size select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 119, 204, 0.12);
}

.adm-import-duplicate-box {
  margin: 0 22px 22px;
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.92) 0%, rgba(255, 252, 245, 0.98) 100%);
}

.adm-import-duplicate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.adm-import-duplicate-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--ink);
}

.adm-import-duplicate-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.adm-import-duplicate-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.adm-import-duplicate-summary span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(217, 119, 6, 0.16);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.adm-import-duplicate-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.adm-import-duplicate-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.12);
}

.adm-import-duplicate-title {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}

.adm-import-duplicate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.adm-import-duplicate-more {
  color: var(--muted);
  font-size: 13px;
}

.adm-import-duplicate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.adm-import-duplicate-actions form {
  margin: 0;
}

.adm-pager a,
.adm-pager span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.adm-pager a:hover {
  color: var(--brand-deep);
  border-color: rgba(17, 119, 204, 0.26);
  background: rgba(17, 119, 204, 0.04);
}

.adm-pager .is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #1a93e8 100%);
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(17, 119, 204, 0.26);
}

.adm-pager .is-disabled {
  color: rgba(22, 50, 79, 0.28);
  cursor: not-allowed;
  background: #f7f8fa;
}

/* ---- admin forms ---- */
.adm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.adm-form-grid.single {
  grid-template-columns: 1fr;
}

.adm-question-editor {
  display: grid;
  gap: 18px;
}

.adm-form-section {
  padding: 18px;
  border: 1px solid rgba(22, 50, 79, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 251, 253, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.adm-form-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.adm-form-section-head > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(17, 119, 204, 0.1);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
}

.adm-form-section-head strong,
.adm-form-section-head small {
  display: block;
}

.adm-form-section-head strong {
  color: var(--ink);
  font-size: 15px;
}

.adm-form-section-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.adm-form-section > .hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 119, 204, 0.06);
  color: #49647f;
  line-height: 1.65;
}

.adm-add-student-panel {
  padding-top: 18px;
  padding-bottom: 0;
}

.adm-add-student-form {
  display: grid;
  gap: 12px;
}

.adm-add-student-actions {
  align-content: end;
}

.adm-add-student-actions .adm-btn {
  width: 100%;
  min-height: 42px;
}

.adm-template-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.adm-template-preview {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff3de 0%, #fffdf7 100%);
  border: 1px solid rgba(255, 140, 66, 0.16);
}

.adm-template-sheet {
  height: 100%;
  padding: 22px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed rgba(214, 151, 20, 0.28);
  box-shadow: 0 10px 24px rgba(15, 40, 70, 0.06);
}

.adm-template-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.adm-template-grade,
.adm-template-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.adm-template-grade {
  color: #8d4f17;
  background: rgba(255, 140, 66, 0.14);
}

.adm-template-badge {
  color: var(--brand-deep);
  background: rgba(17, 119, 204, 0.1);
}

.adm-template-sheet h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-family: var(--font-display);
  color: var(--ink);
}

.adm-template-sheet-meta {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.adm-template-lines {
  display: grid;
  gap: 10px;
}

.adm-template-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink);
}

.adm-template-line span {
  width: 22px;
  flex: 0 0 auto;
  color: #bd5517;
  font-weight: 800;
}

.adm-template-line b {
  font-weight: 700;
}

.adm-template-subline {
  padding-left: 32px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.adm-template-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.adm-template-copy h3 {
  margin: 0;
  font-size: 22px;
  font-family: var(--font-display);
  color: var(--ink);
}

.adm-template-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.adm-template-points {
  display: grid;
  gap: 10px;
}

.adm-template-point {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fafbfd;
  border: 1px solid var(--line);
}

.adm-template-point strong,
.adm-template-point span {
  display: block;
}

.adm-template-point strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.adm-template-point span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.adm-import-submit {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px dashed rgba(22, 50, 79, 0.14);
  display: flex;
  justify-content: flex-start;
}

.adm-import-submit .adm-btn {
  min-width: 170px;
  justify-content: center;
}

.adm-import-feedback {
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(17, 119, 204, 0.12);
  background:
    linear-gradient(135deg, rgba(244, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 34px rgba(30, 67, 118, 0.08);
}

.adm-import-feedback .adm-alert {
  margin-bottom: 14px !important;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: none;
}

.adm-import-feedback .adm-alert-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
}

.adm-import-feedback .adm-alert-body strong {
  font-size: 16px;
  margin-bottom: 4px;
}

.adm-import-feedback .adm-alert-body span {
  display: block;
  font-size: 13px;
}

.adm-import-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.adm-import-feedback.is-hiding {
  animation: fadeOutSoft 0.24s ease forwards;
}

.adm-import-result-card {
  min-height: 104px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fafbfd;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.adm-import-result-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  grid-row: span 2;
}

.adm-import-result-card strong,
.adm-import-result-card span {
  display: block;
}

.adm-import-result-card strong {
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
  font-family: var(--font-display);
}

.adm-import-result-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.adm-import-result-card.success {
  background: rgba(221, 247, 235, 0.6);
  border-color: rgba(47, 158, 116, 0.2);
}

.adm-import-result-card.success .adm-import-result-icon {
  background: var(--success);
}

.adm-import-result-card.warn {
  background: rgba(255, 241, 194, 0.55);
  border-color: rgba(214, 151, 20, 0.2);
}

.adm-import-result-card.warn .adm-import-result-icon {
  background: var(--warning);
}

.adm-import-result-card.info {
  background: rgba(17, 119, 204, 0.06);
  border-color: rgba(17, 119, 204, 0.14);
}

.adm-import-result-card.info .adm-import-result-icon {
  background: var(--brand);
}

.adm-question-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.adm-question-bank-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fafbfd;
}

.adm-question-bank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.adm-question-bank-head strong {
  color: var(--ink);
  font-size: 15px;
}

.adm-question-bank-head span {
  color: var(--muted);
  font-size: 12px;
}

.adm-question-bank-list {
  display: grid;
  gap: 10px;
}

.adm-question-bank-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(22, 50, 79, 0.08);
}

.adm-question-bank-item b,
.adm-question-bank-item span {
  display: block;
}

.adm-question-bank-item b {
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}

.adm-question-bank-item span {
  color: var(--muted);
  font-size: 12px;
}

.adm-form-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.adm-form-field.span-2 {
  grid-column: span 2;
}

.adm-form-field label {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.adm-form-field input,
.adm-form-field select,
.adm-form-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.adm-form-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.adm-question-editor .adm-form-field textarea {
  min-height: 132px;
}

.adm-form-field input:focus,
.adm-form-field select:focus,
.adm-form-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 119, 204, 0.12);
}

.adm-form-field .hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- option list for question form ---- */
.adm-option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.adm-option {
  display: grid;
  grid-template-columns: 42px 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.adm-option:focus-within {
  border-color: var(--brand);
  background: #fff;
}

.adm-option-tag {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-deep);
  background: rgba(17, 119, 204, 0.12);
  font-size: 13px;
}

.adm-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
  cursor: pointer;
}

.adm-option input[type="text"] {
  border: none;
  background: transparent;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 14px;
}

.adm-option input[type="text"]:focus {
  box-shadow: none;
}

.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.adm-btn:hover {
  transform: translateY(-1px);
}

.adm-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #1a93e8 100%);
  box-shadow: 0 8px 16px rgba(17, 119, 204, 0.22);
}

.adm-btn-success {
  color: #fff;
  background: linear-gradient(135deg, var(--success) 0%, #51c9a7 100%);
  box-shadow: 0 8px 16px rgba(47, 158, 116, 0.22);
}

.adm-btn-warning {
  color: #7a4f00;
  background: linear-gradient(135deg, #ffd56a 0%, #ff9852 100%);
  box-shadow: 0 8px 16px rgba(255, 140, 66, 0.24);
}

.adm-btn-outline {
  color: var(--brand-deep);
  background: #fff;
  border-color: rgba(17, 119, 204, 0.3);
}

.adm-btn-outline:hover {
  background: rgba(17, 119, 204, 0.05);
}

.adm-btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.adm-btn-ghost:hover {
  color: var(--ink);
  background: rgba(22, 50, 79, 0.04);
}

.adm-btn-danger {
  color: var(--danger);
  background: rgba(217, 72, 95, 0.08);
  border-color: rgba(217, 72, 95, 0.18);
}

.adm-btn-danger:hover {
  background: rgba(217, 72, 95, 0.14);
}

/* ---- alert / empty ---- */
.adm-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid var(--line);
  background: #fafbfd;
}

.adm-alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.adm-alert.info { border-color: rgba(17, 119, 204, 0.2); background: rgba(17, 119, 204, 0.04); }
.adm-alert.info .adm-alert-icon { background: var(--brand); }
.adm-alert.warn { border-color: rgba(214, 151, 20, 0.24); background: rgba(255, 241, 194, 0.5); }
.adm-alert.warn .adm-alert-icon { background: var(--warning); }
.adm-alert.ok { border-color: rgba(47, 158, 116, 0.22); background: rgba(221, 247, 235, 0.5); }
.adm-alert.ok .adm-alert-icon { background: var(--success); }

.adm-alert-body strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.adm-alert-body span {
  color: var(--muted);
}

/* ---- grade config ---- */
.adm-grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.adm-grade-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
  overflow: hidden;
}

.adm-grade-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(17, 119, 204, 0.06);
}

.adm-grade-card:focus-within {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(17, 119, 204, 0.12);
}

.adm-grade-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.adm-grade-head strong {
  font-size: 16px;
  font-family: var(--font-display);
  color: var(--ink);
}

.adm-grade-head span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(17, 119, 204, 0.1);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
}

.adm-grade-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.adm-grade-inputs-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.adm-grade-inputs-top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.adm-grade-input-wrap-bank {
  position: relative;
  z-index: 1;
}

.adm-bank-picker {
  display: grid;
  gap: 14px;
}

.adm-bank-group {
  display: grid;
  gap: 8px;
}

.adm-bank-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 119, 204, 0.06);
  border: 1px solid rgba(17, 119, 204, 0.1);
}

.adm-bank-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.adm-bank-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.adm-bank-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 800;
}

.adm-bank-group-title span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 50, 79, 0.06);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 700;
}

.adm-bank-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.adm-bank-chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.adm-bank-chip input[type="checkbox"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.adm-bank-chip-body {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.adm-bank-chip-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(22, 50, 79, 0.08);
  color: transparent;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.adm-bank-chip:hover .adm-bank-chip-body {
  transform: translateY(-1px);
  border-color: rgba(17, 119, 204, 0.24);
}

.adm-bank-chip-body b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.adm-bank-chip-body small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.adm-bank-chip.is-checked .adm-bank-chip-body,
.adm-bank-chip input[type="checkbox"]:checked + .adm-bank-chip-body {
  border-color: rgba(17, 119, 204, 0.45);
  background: linear-gradient(135deg, rgba(17, 119, 204, 0.12), rgba(111, 197, 255, 0.14));
  box-shadow: 0 10px 20px rgba(17, 119, 204, 0.12);
}

.adm-bank-chip.is-checked .adm-bank-chip-mark,
.adm-bank-chip input[type="checkbox"]:checked + .adm-bank-chip-body .adm-bank-chip-mark {
  background: var(--brand);
  color: #fff;
  transform: scale(1.04);
}

.adm-bank-chip.is-shared .adm-bank-chip-body {
  background: linear-gradient(135deg, rgba(255, 213, 106, 0.14), rgba(255, 246, 220, 0.94));
}

.adm-bank-chip.is-shared.is-checked .adm-bank-chip-body,
.adm-bank-chip.is-shared input[type="checkbox"]:checked + .adm-bank-chip-body {
  border-color: rgba(214, 151, 20, 0.4);
  background: linear-gradient(135deg, rgba(255, 213, 106, 0.24), rgba(17, 119, 204, 0.08));
  box-shadow: 0 10px 20px rgba(214, 151, 20, 0.12);
}

.adm-grade-inputs label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.adm-grade-inputs input {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}

.adm-grade-inputs input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 119, 204, 0.12);
}

/* ---- responsive admin ---- */
@media (max-width: 1080px) {
  .body-admin .adm {
    grid-template-columns: 1fr;
    padding: 12px;
  }

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

  .adm-sidebar {
    position: static;
    max-height: none;
    padding: 16px;
  }

  .adm-nav {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    display: grid;
  }

  .adm-sidebar-help {
    display: none;
  }

  .adm-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adm-split-2 {
    grid-template-columns: 1fr;
  }

  .adm-filter-bar {
    grid-template-columns: 1fr;
  }

  .adm-filter-actions {
    justify-content: stretch;
  }

  .adm-bulk-bar {
    margin: 12px 16px 10px;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .adm-template-showcase {
    grid-template-columns: 1fr;
  }

  .adm-option-list {
    grid-template-columns: 1fr;
  }

  .adm-import-result-grid {
    grid-template-columns: 1fr;
  }

  .adm-grade-inputs-3 {
    grid-template-columns: 1fr;
  }

  .adm-grade-inputs-top {
    grid-template-columns: 1fr;
  }

  .adm-bank-picker {
    grid-template-columns: 1fr;
  }

  .adm-import-result-grid {
    grid-template-columns: 1fr;
  }

  .adm-bank-group-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .body-admin .adm-topbar {
    margin-bottom: 14px;
  }

  .body-admin .adm-content {
    padding: 0;
  }

  .adm-topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .adm-topbar-search input {
    min-width: 0;
    width: 100%;
  }

  .adm-content {
    padding: 16px;
  }

  .adm-kpi-grid {
    grid-template-columns: 1fr;
  }

  .adm-card-head {
    flex-direction: column;
  }

  .adm-form-grid {
    grid-template-columns: 1fr;
  }

  .adm-form-field.span-2 {
    grid-column: auto;
  }

  .adm-topbar-title h1 {
    font-size: 17px;
  }

  .adm-topbar-user-info {
    display: none;
  }

  .adm-grade-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Homepage v2 — Dark premium redesign (.hp2)
   ========================================================================== */
.hp2 {
  background: #06101e;
  color: #dde8f4;
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.hp2[data-home-theme="light"] {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  color: #203449;
}

/* ── Nav ── */
.hp2-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(6, 16, 30, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hp2-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hp2-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.hp2-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b8ef3 0%, #1a6fd6 100%);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
  color: #fff;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.hp2-brand-mark-image {
  overflow: hidden;
  background: #fff;
}

.hp2-brand-mark-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hp2-brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #e8f0fe;
  line-height: 1.2;
}

.hp2-brand-text span {
  display: block;
  font-size: 11px;
  color: #3e5a76;
  margin-top: 1px;
}

.hp2-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.hp2-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #5c7a9a;
  text-decoration: none;
  transition: color 0.16s;
}

.hp2-nav-links a:hover {
  color: #d4e8ff;
}

.hp2-nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Buttons ── */
.hp2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
  line-height: 1;
}

.hp2-btn-theme {
  background: transparent;
  color: #d4e8ff;
  border: none;
  box-shadow: none;
  width: 36px;
  min-height: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
}

.hp2-btn:hover {
  transform: translateY(-1px);
}

.hp2-btn-theme:hover {
  background: transparent;
  box-shadow: none;
}

.hp2-theme-icon {
  display: none;
  width: 24px;
  height: 24px;
  color: currentColor;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.hp2-theme-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp2-theme-icon-moon svg {
  fill: currentColor;
  stroke: none;
}

.hp2-btn-theme:hover .hp2-theme-icon {
  transform: scale(1.08);
}

.hp2[data-home-theme="light"] .hp2-theme-icon-moon,
.hp2[data-home-theme="dark"] .hp2-theme-icon-sun {
  display: block;
}

.hp2[data-home-theme="light"] .hp2-theme-icon-sun,
.hp2[data-home-theme="dark"] .hp2-theme-icon-moon {
  display: none;
}

.hp2[data-home-theme="light"] .hp2-btn-theme {
  color: #4b5f73;
}

.hp2[data-home-theme="light"] .hp2-theme-icon-moon {
  color: #4b5f73;
}

.hp2[data-home-theme="dark"] .hp2-theme-icon-sun {
  color: #f6c24a;
}

.hp2-btn-lg {
  height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 15px;
}

.hp2-btn-primary {
  background: linear-gradient(135deg, #3b8ef3 0%, #1a6fd6 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 142, 243, 0.36);
}

.hp2-btn-primary:hover {
  box-shadow: 0 12px 32px rgba(59, 142, 243, 0.52);
  color: #fff;
}

.hp2-btn-ghost {
  background: transparent;
  color: #5c7a9a;
  border-color: rgba(255, 255, 255, 0.1);
}

.hp2-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #d4e8ff;
  border-color: rgba(255, 255, 255, 0.2);
}

.hp2-btn-glass {
  background: rgba(255, 255, 255, 0.07);
  color: #c8daf4;
  border-color: rgba(255, 255, 255, 0.12);
}

.hp2-btn-glass:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #e8f4ff;
}

.hp2-btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
}

.hp2-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hp2[data-home-theme="light"] .hp2-nav {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(32, 52, 73, 0.08);
}

.hp2[data-home-theme="light"] .hp2-nav-links a {
  color: #51677d;
}

.hp2[data-home-theme="light"] .hp2-nav-links a:hover {
  color: #17324d;
}

.hp2[data-home-theme="light"] .hp2-brand-text strong {
  color: #17324d;
}

.hp2[data-home-theme="light"] .hp2-brand-text span {
  color: #778a9d;
}

.hp2[data-home-theme="light"] .hp2-btn-theme {
  color: #16324f;
}

.hp2[data-home-theme="light"] .hp2-btn-ghost {
  color: #38556f;
  border-color: rgba(22, 50, 79, 0.12);
}

.hp2[data-home-theme="light"] .hp2-btn-ghost:hover {
  background: rgba(17, 119, 204, 0.06);
  color: #16324f;
  border-color: rgba(17, 119, 204, 0.18);
}

.hp2[data-home-theme="light"] .hp2-btn-glass,
.hp2[data-home-theme="light"] .hp2-btn-ghost-light {
  background: rgba(17, 119, 204, 0.06);
  color: #34536f;
  border-color: rgba(17, 119, 204, 0.14);
}

.hp2[data-home-theme="light"] .hp2-btn-glass:hover,
.hp2[data-home-theme="light"] .hp2-btn-ghost-light:hover {
  background: rgba(17, 119, 204, 0.12);
  color: #16324f;
}

/* ── Hero ── */
.hp2-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 36px 80px;
  overflow: hidden;
}

.hp2-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}

.hp2-orb-1 {
  width: 680px;
  height: 680px;
  top: -220px;
  right: -80px;
  background: radial-gradient(circle, rgba(59, 142, 243, 0.2), transparent 70%);
}

.hp2-orb-2 {
  width: 520px;
  height: 520px;
  bottom: -120px;
  left: -180px;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.12), transparent 70%);
}

.hp2-orb-3 {
  width: 400px;
  height: 400px;
  top: 38%;
  right: 28%;
  background: radial-gradient(circle, rgba(148, 103, 255, 0.1), transparent 70%);
}

.hp2-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 142, 243, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 142, 243, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
}

.hp2-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.hp2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(59, 142, 243, 0.1);
  border: 1px solid rgba(59, 142, 243, 0.24);
  font-size: 13px;
  font-weight: 600;
  color: #6aadf5;
  margin-bottom: 26px;
}

.hp2-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a5a78;
  flex-shrink: 0;
}

.hp2-hero-badge-dot.is-live {
  background: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.22);
  animation: hp2-pulse 2s ease infinite;
}

@keyframes hp2-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.08); }
}

.hp2-hero-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #e8f0fe;
  font-weight: 800;
}

.hp2-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #f5c542 0%, #f0843d 50%, #f54b7c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp2-hero-lead {
  margin: 0 0 38px;
  font-size: 17px;
  line-height: 1.8;
  color: #4e6a88;
  max-width: 46ch;
}

.hp2-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hp2-hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hp2-hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #e8f0fe;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hp2-hero-stat span {
  display: block;
  font-size: 12px;
  color: #3a5068;
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.hp2[data-home-theme="light"] .hp2-hero {
  background:
    radial-gradient(circle at top right, rgba(86, 180, 247, 0.14), transparent 30%),
    radial-gradient(circle at left 20%, rgba(255, 196, 82, 0.12), transparent 28%);
}

.hp2[data-home-theme="light"] .hp2-grid-lines {
  background-image:
    linear-gradient(rgba(17, 119, 204, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 119, 204, 0.045) 1px, transparent 1px);
}

.hp2[data-home-theme="light"] .hp2-hero-badge {
  background: rgba(17, 119, 204, 0.08);
  border-color: rgba(17, 119, 204, 0.18);
  color: #1b6dba;
}

.hp2[data-home-theme="light"] .hp2-hero-title,
.hp2[data-home-theme="light"] .hp2-section-head h2,
.hp2[data-home-theme="light"] .hp2-entry-card h3,
.hp2[data-home-theme="light"] .hp2-step-body h3,
.hp2[data-home-theme="light"] .hp2-feat-card h3 {
  color: #17324d;
}

.hp2[data-home-theme="light"] .hp2-hero-lead,
.hp2[data-home-theme="light"] .hp2-section-head p,
.hp2[data-home-theme="light"] .hp2-feat-card p,
.hp2[data-home-theme="light"] .hp2-step-body p,
.hp2[data-home-theme="light"] .hp2-entry-card > p,
.hp2[data-home-theme="light"] .hp2-entry-list li,
.hp2[data-home-theme="light"] .hp2-status-val,
.hp2[data-home-theme="light"] .hp2-footer-brand strong,
.hp2[data-home-theme="light"] .hp2-footer-links a,
.hp2[data-home-theme="light"] .hp2-footer-copy {
  color: #60748a;
}

.hp2[data-home-theme="light"] .hp2-hero-stat strong {
  color: #16324f;
}

.hp2[data-home-theme="light"] .hp2-hero-stat span,
.hp2[data-home-theme="light"] .hp2-status-title,
.hp2[data-home-theme="light"] .hp2-status-label,
.hp2[data-home-theme="light"] .hp2-footer-brand span {
  color: #7b8ea1;
}

.hp2[data-home-theme="light"] .hp2-stat-sep,
.hp2[data-home-theme="light"] .hp2-status-sep {
  background: rgba(22, 50, 79, 0.1);
}

.hp2[data-home-theme="light"] .hp2-mockup {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(17, 119, 204, 0.1);
  box-shadow:
    0 44px 80px rgba(17, 53, 88, 0.18),
    0 0 0 1px rgba(17, 119, 204, 0.05);
}

.hp2[data-home-theme="light"] .hp2-mockup-head {
  background: rgba(17, 119, 204, 0.04);
  border-bottom-color: rgba(17, 119, 204, 0.08);
  color: #6b7f93;
}

.hp2[data-home-theme="light"] .hp2-mockup-q p {
  color: #264259;
}

.hp2[data-home-theme="light"] .hp2-opt {
  border-color: rgba(22, 50, 79, 0.08);
  color: #536a81;
  background: rgba(244, 248, 252, 0.82);
}

.hp2[data-home-theme="light"] .hp2-opt span {
  background: rgba(17, 119, 204, 0.08);
  color: #1a6fd6;
}

.hp2[data-home-theme="light"] .hp2-opt.is-selected {
  background: rgba(17, 119, 204, 0.08);
  border-color: rgba(17, 119, 204, 0.26);
  color: #1a6fd6;
}

.hp2[data-home-theme="light"] .hp2-mockup-footer span {
  color: #72879b;
}

.hp2[data-home-theme="light"] .hp2-float-1 {
  background: rgba(47, 158, 116, 0.12);
  border-color: rgba(47, 158, 116, 0.22);
  color: #1d8b61;
}

.hp2[data-home-theme="light"] .hp2-float-2 {
  background: rgba(17, 119, 204, 0.1);
  border-color: rgba(17, 119, 204, 0.18);
  color: #1b6dba;
}

.hp2-stat-sep {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Mockup ── */
.hp2-hero-visual {
  position: relative;
}

.hp2-mockup {
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 48px 96px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hp2-mockup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #4e6a88;
}

.hp2-mockup-dots {
  display: flex;
  gap: 6px;
}

.hp2-mockup-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.hp2-mockup-dots i:nth-child(1) { background: #e05050; }
.hp2-mockup-dots i:nth-child(2) { background: #f5c542; }
.hp2-mockup-dots i:nth-child(3) { background: #2ecc71; }

.hp2-mockup-timer {
  margin-left: auto;
  font-weight: 700;
  color: #f5c542;
  font-size: 13px;
}

.hp2-mockup-body {
  padding: 24px 22px 20px;
}

.hp2-mockup-q {
  margin-bottom: 18px;
}

.hp2-mockup-qnum {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3b8ef3;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hp2-mockup-q p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #b8d0ec;
}

.hp2-mockup-opts {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.hp2-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #6e8aaa;
}

.hp2-opt.is-selected {
  background: rgba(59, 142, 243, 0.14);
  border-color: rgba(59, 142, 243, 0.38);
  color: #9ac8ff;
}

.hp2-opt span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.hp2-opt.is-selected span {
  background: #3b8ef3;
  color: #fff;
}

.hp2-mockup-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hp2-mockup-prog {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.hp2-mockup-prog-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b8ef3, #7dd4fc);
  border-radius: 99px;
}

.hp2-mockup-footer span {
  font-size: 12px;
  color: #344e68;
  white-space: nowrap;
}

.hp2-float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  border: 1px solid transparent;
}

.hp2-float-1 {
  bottom: -18px;
  left: -28px;
  background: rgba(46, 204, 113, 0.14);
  border-color: rgba(46, 204, 113, 0.28);
  color: #50e09a;
}

.hp2-float-2 {
  top: -18px;
  right: -22px;
  background: rgba(59, 142, 243, 0.14);
  border-color: rgba(59, 142, 243, 0.28);
  color: #78bfff;
}

/* ── Sections ── */
.hp2-section {
  padding: 104px 36px;
  position: relative;
}

.hp2-section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.hp2-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.hp2-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: #3b8ef3;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hp2-section-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e8f0fe;
  line-height: 1.15;
}

.hp2-section-head p {
  margin: 0;
  color: #3e5a76;
  font-size: 16px;
  line-height: 1.75;
}

.hp2[data-home-theme="light"] .hp2-how-section,
.hp2[data-home-theme="light"] .hp2-status-bar,
.hp2[data-home-theme="light"] .hp2-footer {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(22, 50, 79, 0.06);
}

.hp2[data-home-theme="light"] .hp2-feat-card,
.hp2[data-home-theme="light"] .hp2-step,
.hp2[data-home-theme="light"] .hp2-entry-card {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(22, 50, 79, 0.08);
  box-shadow: 0 18px 36px rgba(17, 53, 88, 0.08);
}

.hp2[data-home-theme="light"] .hp2-feat-card:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(17, 119, 204, 0.14);
}

.hp2[data-home-theme="light"] .hp2-step-num {
  background: linear-gradient(135deg, rgba(17, 119, 204, 0.9), rgba(86, 180, 247, 0.28));
  -webkit-background-clip: text;
  background-clip: text;
}

.hp2[data-home-theme="light"] .hp2-step-arrow {
  color: rgba(17, 119, 204, 0.25);
}

.hp2[data-home-theme="light"] .hp2-entry-student {
  background: linear-gradient(155deg, #ffffff, #f2f8ff);
  border-color: rgba(17, 119, 204, 0.12);
}

.hp2[data-home-theme="light"] .hp2-entry-admin {
  background: linear-gradient(155deg, #ffffff, #f7f4ff);
  border-color: rgba(111, 94, 194, 0.12);
}

.hp2[data-home-theme="light"] .hp2-entry-pill,
.hp2[data-home-theme="light"] .hp2-feat-tags span,
.hp2[data-home-theme="light"] .hp2-entry-list code {
  background: rgba(17, 119, 204, 0.07);
  color: #4f6882;
}

/* ── Feature grid ── */
.hp2-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hp2-feat-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 30px 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.hp2-feat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.hp2-feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.hp2-feat-icon svg {
  width: 22px;
  height: 22px;
}

.hp2-feat-icon--blue   { background: rgba(59, 142, 243, 0.14); color: #5aaeff; }
.hp2-feat-icon--amber  { background: rgba(245, 197, 66, 0.13); color: #f5c542; }
.hp2-feat-icon--green  { background: rgba(46, 204, 113, 0.13); color: #36db88; }
.hp2-feat-icon--purple { background: rgba(148, 103, 255, 0.13); color: #ae82ff; }

.hp2-feat-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #cce0f8;
}

.hp2-feat-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #3e5a76;
}

.hp2-feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hp2-feat-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #4e6a88;
  letter-spacing: 0.03em;
}

/* ── How it works ── */
.hp2-how-section {
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hp2-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hp2-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 30px 26px;
}

.hp2-step-num {
  font-size: 44px;
  font-weight: 900;
  font-family: var(--font-display);
  background: linear-gradient(135deg, rgba(59, 142, 243, 0.5), rgba(59, 142, 243, 0.08));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hp2-step-body h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #cce0f8;
}

.hp2-step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #3e5a76;
}

.hp2-step-arrow {
  font-size: 22px;
  color: rgba(59, 142, 243, 0.28);
  margin-top: 44px;
  flex-shrink: 0;
}

/* ── Entry cards ── */
.hp2-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hp2-entry-card {
  border-radius: 26px;
  padding: 38px 34px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.hp2-entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}

.hp2-entry-student {
  background: linear-gradient(155deg, #0d2240, #091a30);
  border-color: rgba(59, 142, 243, 0.18);
}

.hp2-entry-student::before {
  background: radial-gradient(circle at 92% 4%, rgba(245, 197, 66, 0.16), transparent 45%);
}

.hp2-entry-admin {
  background: linear-gradient(155deg, #130d28, #0d0b1c);
  border-color: rgba(148, 103, 255, 0.18);
}

.hp2-entry-admin::before {
  background: radial-gradient(circle at 92% 4%, rgba(148, 103, 255, 0.2), transparent 45%);
}

.hp2-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
}

.hp2-entry-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #5c7a9a;
  text-transform: uppercase;
}

.hp2-entry-icon {
  font-size: 30px;
  line-height: 1;
}

.hp2-entry-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: #e8f0fe;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  position: relative;
}

.hp2-entry-card > p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.8;
  color: #3e5a76;
  position: relative;
}

.hp2-entry-list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  position: relative;
}

.hp2-entry-list li {
  font-size: 13px;
  color: #4e6a88;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.55;
}

.hp2-entry-list li::before {
  content: "›";
  color: #3b8ef3;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.3;
}

.hp2-entry-list code {
  font-size: 12px;
  padding: 1px 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  color: #90c0f8;
  font-family: monospace;
}

.hp2-entry-actions {
  display: flex;
  gap: 10px;
  position: relative;
  flex-wrap: wrap;
}

/* ── Status bar ── */
.hp2-status-bar {
  background: rgba(255, 255, 255, 0.022);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 22px 36px;
}

.hp2-status-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hp2-status-title {
  font-size: 12px;
  font-weight: 800;
  color: #2e4a66;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.hp2-status-items {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hp2-status-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.hp2-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hp2-status-dot.is-ok   { background: #2ecc71; }
.hp2-status-dot.is-warn { background: #f5c542; }
.hp2-status-dot.is-err  { background: #e05050; }

.hp2-status-label { color: #2e4a66; }
.hp2-status-val   { color: #5c7a9a; font-weight: 600; }

.hp2-status-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.hp2-status-inner > .hp2-btn {
  margin-left: auto;
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

/* ── Footer ── */
.hp2-footer {
  padding: 36px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hp2-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hp2-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hp2-footer-brand strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #3e5a76;
}

.hp2-footer-brand span {
  display: block;
  font-size: 11px;
  color: #243646;
  margin-top: 2px;
}

.hp2-footer-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.hp2-footer-links a {
  font-size: 13px;
  color: #243646;
  text-decoration: none;
  transition: color 0.16s;
}

.hp2-footer-links a:hover {
  color: #5c7a9a;
}

.hp2-footer-copy {
  font-size: 12px;
  color: #1c2e3e;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hp2-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .hp2-hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hp2-hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 72px;
  }

  .hp2-hero-visual {
    display: none;
  }

  .hp2-steps {
    flex-direction: column;
    gap: 12px;
  }

  .hp2-step-arrow {
    display: none;
  }

  .hp2-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hp2-nav-links {
    display: none;
  }

  .hp2-nav-cta {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hp2-btn-theme {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hp2-hero-title {
    font-size: 36px;
  }

  .hp2-hero-lead {
    font-size: 15px;
  }

  .hp2-feat-grid {
    grid-template-columns: 1fr;
  }

  .hp2-section {
    padding: 68px 20px;
  }

  .hp2-hero {
    padding: 96px 20px 60px;
  }

  .hp2-hero-stats {
    gap: 20px;
  }

  .hp2-footer-links {
    margin-left: 0;
    gap: 18px;
  }
}
