:root {
  color-scheme: dark;
  --page: #111827;
  --page-deep: #0f172a;
  --panel: rgba(31, 41, 55, 0.86);
  --panel-solid: #1f2937;
  --panel-soft: rgba(17, 24, 39, 0.72);
  --line: rgba(75, 85, 99, 0.72);
  --line-strong: rgba(148, 163, 184, 0.46);
  --text: #ffffff;
  --muted: #d1d5db;
  --subtle: #9ca3af;
  --accent: #facc15;
  --accent-hover: #fde047;
  --accent-ink: #111827;
  --link: #fde68a;
  --danger: #ef4444;
  --danger-deep: #991b1b;
  --success: #4ade80;
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  flex-direction: column;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 16% 18%, rgba(250, 204, 21, 0.09), transparent 20rem),
    radial-gradient(circle at 82% 10%, rgba(45, 212, 191, 0.08), transparent 24rem),
    var(--page);
  background-size: 4.5rem 4.5rem, 4.5rem 4.5rem, auto, auto, auto;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

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

button,
summary,
select {
  cursor: pointer;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(250, 204, 21, 0.55);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(55, 65, 81, 0.86);
  background: rgba(17, 24, 39, 0.9);
  box-shadow: 0 0.5rem 1.3rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header-branding,
.site-header nav {
  display: flex;
  min-width: 0;
  align-items: center;
}

.site-header-branding {
  gap: 1rem;
}

.brand {
  display: block;
  flex: 0 1 auto;
}

.brand img {
  display: block;
  width: auto;
  height: 3rem;
  max-width: min(15rem, 48vw);
  object-fit: contain;
  padding-top: 0.35rem;
}

.education-label {
  padding-left: 1rem;
  border-left: 1px solid rgba(148, 163, 184, 0.32);
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header nav {
  justify-content: flex-end;
  gap: 0.55rem;
}

.site-header nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 0.375rem;
  background: rgba(31, 41, 55, 0.86);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.site-header nav a:hover {
  background: #374151;
  color: var(--text);
}

.site-header nav .nav-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 850;
}

.site-header nav .nav-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.shell {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
  flex: 1 0 auto;
}

.hero {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(75, 85, 99, 0.42);
  border-radius: 1rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(135deg, rgba(17, 24, 39, 0.99), rgba(31, 41, 55, 0.97));
  background-size: 3.5rem 3.5rem, 3.5rem 3.5rem, auto;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 1.25rem;
  width: clamp(9rem, 20vw, 14rem);
  aspect-ratio: 1;
  background: url("/osint_challenges/assets/Avatar/SearchingAvatar.webp") center / contain no-repeat;
  filter: drop-shadow(0 1.25rem 1.75rem rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 49rem;
  padding-right: clamp(0rem, 9vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.45rem, 6vw, 5rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 900;
  line-height: 1.25;
}

h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.hero-copy {
  max-width: 43rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 620;
  line-height: 1.6;
}

.price-lockup {
  display: flex;
  margin-top: 1.6rem;
  align-items: center;
  gap: 1rem;
}

.price-lockup strong {
  color: var(--accent);
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1;
}

.price-lockup span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.view {
  animation: reveal 0.2s ease-out;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
}

.hero + .notice,
.hero + .notice + #loadingView,
.hero + .notice + #loadingView + .view,
.hero + #statusMessage,
#publicView {
  margin-top: 1.5rem;
}

.card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.centered {
  width: min(100%, 42rem);
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered p {
  margin: 0.5rem auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.centered .button-row {
  justify-content: center;
  margin-top: 1.25rem;
}

.grid {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.grid > * {
  min-width: 0;
}

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

.purchase-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.75fr);
  align-items: start;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.compact {
  gap: 0.8rem;
}

.compact-top {
  margin-top: 1rem;
}

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

.small {
  font-size: 0.84rem;
  line-height: 1.55;
}

.optional {
  color: var(--subtle);
  font-weight: 500;
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.feature-list li + li {
  margin-top: 0.55rem;
}

.feature-list li::marker {
  color: var(--accent);
}

.education-seo-content {
  display: grid;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.content-intro {
  max-width: 48rem;
}

.content-intro h2,
.education-process h2,
.education-cta h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  line-height: 1.1;
}

.content-intro > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.seo-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.seo-feature-card {
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(31, 41, 55, 0.68);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.14);
}

.seo-feature-card .feature-number {
  margin: 0 0 2.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.seo-feature-card > p:last-child {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.education-process {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}

.process-list {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: education-step;
}

.process-list li {
  position: relative;
  display: grid;
  min-height: 4.25rem;
  padding: 0 0 1.25rem 3.5rem;
  counter-increment: education-step;
  gap: 0.3rem;
}

.process-list li + li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.process-list li::before {
  content: counter(education-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.process-list li + li::before {
  top: 1.25rem;
}

.process-list strong {
  color: var(--text);
  font-size: 0.95rem;
}

.process-list span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.education-faq {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 0;
  margin: 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  width: 100%;
  padding: 1.15rem 2rem 1.15rem 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 1.05rem;
  right: 0.15rem;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 2rem 1.15rem 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.education-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  background:
    radial-gradient(circle at 90% 20%, rgba(250, 204, 21, 0.1), transparent 16rem),
    var(--panel);
}

.education-cta > div:first-child {
  max-width: 40rem;
}

.education-cta p:not(.eyebrow) {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.education-cta .button-row {
  flex: 0 0 auto;
}

.tabs {
  display: flex;
  padding: 0.25rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(75, 85, 99, 0.48);
  border-radius: 0.625rem;
  background: rgba(17, 24, 39, 0.58);
}

.tab {
  min-height: 2.5rem;
  flex: 1;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--subtle);
  font-size: 0.84rem;
  font-weight: 800;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: #374151;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
  align-items: end;
}

.form-grid .button {
  grid-column: 1 / -1;
  width: fit-content;
}

label {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
  color: #e5e7eb;
  font-size: 0.84rem;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.5;
}

select[multiple] {
  min-height: 9.5rem;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.14);
}

fieldset {
  min-width: 0;
  padding: 0.9rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

legend {
  padding: 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.seat-picker {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  gap: 0.5rem;
}

.seat-picker button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #374151;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 850;
}

.seat-picker button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.confirmations {
  display: grid;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.confirmations label,
.toggle-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.confirmations input,
.toggle-list input,
table input {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  min-height: 1rem;
  padding: 0;
  margin-top: 0.18rem;
  accent-color: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    filter 0.16s ease, transform 0.16s ease;
}

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

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-primary {
  border-color: rgba(254, 240, 138, 0.38);
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.button-secondary {
  border-color: var(--line-strong);
  background: #374151;
  color: var(--text);
}

.button-secondary:hover:not(:disabled),
.button-quiet:hover:not(:disabled) {
  border-color: rgba(250, 204, 21, 0.7);
  background: rgba(250, 204, 21, 0.1);
  color: #fef08a;
}

.button-quiet {
  border-color: var(--line);
  background: rgba(17, 24, 39, 0.35);
}

.button-danger {
  border-color: rgba(248, 113, 113, 0.52);
  background: rgba(153, 27, 27, 0.9);
  color: #fee2e2;
}

.button-danger:hover:not(:disabled) {
  border-color: #f87171;
  background: #b91c1c;
  color: #ffffff;
}

.text-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
}

.text-button:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.order-summary {
  position: sticky;
  top: 6rem;
}

.summary-line,
.summary-total {
  display: flex;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-line strong {
  color: var(--text);
}

.summary-total {
  padding-top: 1rem;
  border-bottom: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.summary-total strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.notice,
.status-banner {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(96, 165, 250, 0.48);
  border-radius: 0.65rem;
  background: rgba(30, 64, 175, 0.18);
  color: #dbeafe;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.55;
}

.notice {
  margin-bottom: 1rem;
}

.notice.error,
.status-banner.suspended,
.status-banner.closed {
  border-color: rgba(248, 113, 113, 0.52);
  background: rgba(127, 29, 29, 0.35);
  color: #fee2e2;
}

.status-banner.grace,
.status-banner.invoice_due {
  border-color: rgba(250, 204, 21, 0.52);
  background: rgba(113, 63, 18, 0.34);
  color: #fef3c7;
}

.status-banner.active,
.status-banner.canceling {
  border-color: rgba(74, 222, 128, 0.44);
  background: rgba(20, 83, 45, 0.3);
  color: #dcfce7;
}

.status-banner {
  margin-bottom: 1rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
  border: 3px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard-header,
.section-heading {
  display: flex;
  min-width: 0;
  margin-bottom: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-header > div:first-child,
.section-heading > div:first-child {
  min-width: 0;
}

.dashboard-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.02;
}

.dashboard-header p {
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

#studentStats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(31, 41, 55, 0.82);
  box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.13);
}

.stat strong {
  display: block;
  overflow: hidden;
  margin-bottom: 0.15rem;
  color: var(--accent);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.stat span {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 650;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 0.65rem;
}

.inline-form label {
  flex: 1;
}

details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

summary {
  width: fit-content;
  color: var(--link);
  font-size: 0.86rem;
  font-weight: 800;
}

summary:hover {
  color: var(--accent-hover);
}

.table-card,
.danger-zone,
#activeDashboard > .card:last-child,
#studentView > .card {
  margin-top: 1rem;
}

.table-card {
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td code {
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.row-actions .button {
  min-height: 2rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.72rem;
}

.leaderboard,
.audit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: leaderboard;
}

.leaderboard li,
.audit-list li {
  display: flex;
  min-width: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.leaderboard li {
  counter-increment: leaderboard;
  justify-content: flex-start;
}

.leaderboard li::before {
  content: counter(leaderboard);
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
}

.leaderboard li strong {
  margin-left: auto;
  color: #fef3c7;
  font-size: 0.8rem;
  text-align: right;
}

.leaderboard li:last-child,
.audit-list li:last-child {
  border-bottom: 0;
}

.audit-list time {
  color: var(--subtle);
  font-size: 0.78rem;
  text-align: right;
}

.toggle-list {
  display: grid;
  gap: 0.75rem;
}

.toggle-list .button {
  width: fit-content;
  margin-top: 0.25rem;
}

.danger-zone {
  border-color: rgba(248, 113, 113, 0.38);
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.1), transparent 55%),
    var(--panel);
}

.danger-zone .button-row {
  margin-top: 1rem;
}

dialog {
  width: min(38rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-card {
  display: grid;
  padding: clamp(1.25rem, 4vw, 2rem);
  gap: 1rem;
}

.dialog-card h2,
.dialog-card p {
  margin: 0;
}

.dialog-card p {
  color: var(--muted);
  line-height: 1.6;
}

.dialog-actions {
  justify-content: flex-end;
}

pre {
  max-width: 100%;
  max-height: min(20rem, 45vh);
  padding: 0.85rem;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--page-deep);
  color: #e5e7eb;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid rgba(55, 65, 81, 0.86);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(17, 24, 39, 0.9);
  color: var(--subtle);
  font-size: 0.75rem;
  box-shadow: 0 -0.5rem 1.3rem rgba(0, 0, 0, 0.1);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--subtle);
  font-weight: 650;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer p {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero {
    min-height: 28rem;
  }

  .hero-content {
    max-width: 41rem;
    padding-right: 6rem;
  }

  .grid-two,
  .purchase-grid,
  .dashboard-grid,
  .seo-feature-grid,
  .education-process,
  .education-faq,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .education-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-summary {
    position: static;
  }

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

@media (max-width: 700px) {
  .site-header-inner {
    min-height: 4.25rem;
    gap: 0.75rem;
  }

  .brand img {
    height: 2.65rem;
    max-width: min(12rem, 44vw);
  }

  .education-label,
  .site-header nav a:not(.nav-primary) {
    display: none;
  }

  .site-header nav {
    gap: 0.4rem;
  }

  .shell {
    width: min(100%, calc(100vw - 1.5rem));
    padding: 1.5rem 0 2.5rem;
  }

  .hero {
    min-height: 0;
    padding: 2rem 1.25rem 9.5rem;
  }

  .hero::after {
    right: 0.7rem;
    bottom: 0.35rem;
    width: 9rem;
  }

  .hero-content {
    max-width: none;
    padding-right: 0;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .dashboard-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-header .button-row,
  .section-heading .button,
  #studentView .dashboard-header > .button {
    width: 100%;
  }

  .dashboard-header .button-row .button,
  .section-heading > .button {
    flex: 1 1 auto;
  }

  .table-card {
    overflow: visible;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 0.75rem;
  }

  tbody tr {
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: rgba(17, 24, 39, 0.44);
  }

  td {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    padding: 0.35rem 0;
    border: 0;
    gap: 0.6rem;
    overflow-wrap: anywhere;
  }

  td::before {
    color: var(--subtle);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  td:nth-child(1) {
    display: block;
  }

  td:nth-child(1)::before {
    content: "Select account";
    margin-right: 0.55rem;
  }

  td:nth-child(2)::before {
    content: "Username";
  }

  td:nth-child(3)::before {
    content: "Login ID";
  }

  td:nth-child(4)::before {
    content: "Status";
  }

  td:nth-child(5) {
    display: block;
    padding-top: 0.7rem;
  }

  td:nth-child(5)::before {
    content: "Actions";
    display: block;
    margin-bottom: 0.45rem;
  }

  .row-actions .button {
    flex: 1 1 calc(50% - 0.35rem);
  }
}

@media (max-width: 520px) {
  .site-header-inner {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .site-header nav .nav-primary {
    display: none;
  }

  .site-header nav .button {
    min-height: 2.25rem;
    padding: 0.45rem 0.65rem;
  }

  .price-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .card {
    padding: 1.1rem;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  #studentStats {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat {
    padding: 0.8rem;
  }

  .inline-form,
  .stacked-mobile {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form .button,
  .button-row.stacked-mobile .button,
  .dialog-actions .button {
    width: 100%;
  }

  .leaderboard li,
  .audit-list li {
    align-items: flex-start;
  }

  .leaderboard li strong {
    max-width: 9rem;
  }

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

  .site-footer p {
    white-space: normal;
  }

  .education-cta .button-row,
  .education-cta .button {
    width: 100%;
  }

  .row-actions .button {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
