:root {
  --bg: #07111f;
  --bg-2: #0b1729;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-2: rgba(255, 255, 255, 0.105);
  --text: #f5f8ff;
  --muted: #a9b8d3;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #47b5ff;
  --accent-2: #7c5cff;
  --gold: #f8c75a;
  --success: #70e0a0;
  --shadow: 0 24px 80px rgba(0,0,0,0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(71, 181, 255, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--bg), #040913 70%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800;
  box-shadow: 0 12px 40px rgba(71, 181, 255, 0.25);
}

.brand strong {
  display: block;
  letter-spacing: 0.03em;
}

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

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  transition: 180ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link {
  color: var(--muted);
  font-size: 13px;
}

.admin-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8e7ff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,0.055);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #3d79ff);
  color: white;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 32px rgba(71, 181, 255, 0.26);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(71, 181, 255, 0.36);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.menu-btn {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 22px;
  padding: 6px 10px;
}

.section {
  padding: clamp(70px, 8vw, 120px) clamp(18px, 4vw, 64px);
  max-width: 1320px;
  margin: 0 auto;
}

.alt-section {
  max-width: none;
  margin: 0;
  padding-left: clamp(18px, 4vw, 64px);
  padding-right: clamp(18px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border-block: 1px solid rgba(255,255,255,0.06);
}

.alt-section > * {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding-top: clamp(90px, 10vw, 150px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(112, 224, 160, 0.13);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 880px;
  margin-top: 18px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
}

h3 {
  font-size: 23px;
}

.hero-lead,
.section-head p,
.panel-content p,
.recording-card p,
.register-grid p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 17px;
}

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
  max-width: 680px;
}

.trust-row div {
  padding: 18px;
  background: rgba(255,255,255,0.065);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.trust-row strong {
  display: block;
  font-size: 28px;
}

.trust-row span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.hero-card {
  position: relative;
  padding: 32px;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(155deg, rgba(71, 181, 255, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.055));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -28% 22%;
  height: 210px;
  background: radial-gradient(circle, rgba(124,92,255,0.34), transparent 65%);
}

.card-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 80px;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--success);
}

.hero-card h2 {
  font-size: clamp(30px, 3vw, 44px);
  margin-bottom: 16px;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.65;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mini-list span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid var(--line);
  color: #dce8ff;
  font-size: 13px;
  font-weight: 700;
}

.section-head {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin-top: 12px;
}

.compact {
  max-width: 980px;
}

.split-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.panel-content,
.info-tile,
.course-card,
.method-card,
.module,
.service-card,
.community-card,
.lead-form,
.recording-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 14px 48px rgba(0,0,0,0.16);
}

.panel-content {
  padding: 34px;
}

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

.info-tile {
  padding: 24px;
}

.info-tile span,
.module span {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.info-tile strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.info-tile p,
.course-card p,
.method-card p,
.module p,
.service-card p,
.community-card span,
.form-note {
  color: var(--muted);
  line-height: 1.62;
}

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

.course-card {
  padding: 26px;
  min-height: 315px;
  display: flex;
  flex-direction: column;
}

.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(71,181,255,0.16);
  color: #9bd8ff;
  font-weight: 900;
  margin-bottom: 22px;
}

.course-card h3 {
  margin-bottom: 12px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.course-meta span,
.badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #d9e7ff;
  background: rgba(255,255,255,0.06);
}

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

.method-card {
  padding: 24px;
}

.method-card strong {
  display: block;
  font-size: 20px;
}

.curriculum-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: #05101f;
  background: linear-gradient(135deg, var(--accent), #9ee7ff);
}

.curriculum-panel {
  display: none;
}

.curriculum-panel.active {
  display: block;
}

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

.module {
  padding: 24px;
}

.module strong {
  display: block;
  font-size: 19px;
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
}

.schedule-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.schedule-table th {
  color: #d8e7ff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.schedule-table td {
  color: var(--muted);
}

.schedule-table tr:last-child td {
  border-bottom: 0;
}

.badge.open {
  color: #07111f;
  background: var(--success);
}

.badge.pending {
  color: #07111f;
  background: var(--gold);
}

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

.service-card {
  padding: 30px;
}

.service-card.featured {
  background:
    linear-gradient(160deg, rgba(71,181,255,0.18), rgba(124,92,255,0.12)),
    var(--panel);
}

.service-card ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: #dbe8ff;
  line-height: 1.8;
}

.recording-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(248,199,90,0.14), rgba(71,181,255,0.10)),
    var(--panel);
}

.recording-card h2 {
  margin-top: 10px;
}

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

.community-card {
  padding: 24px;
}

.community-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.65;
}

.register-section {
  max-width: none;
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(71,181,255,0.20), transparent 34rem),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
}

.register-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.register-grid h2 {
  margin-top: 12px;
}

.contact-stack {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-stack a {
  color: #bfe7ff;
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #e4efff;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 14px 14px;
  font: inherit;
  outline: none;
}

select option {
  color: #07111f;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(71,181,255,0.8);
  box-shadow: 0 0 0 4px rgba(71,181,255,0.12);
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #040913;
}

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

.footer p {
  max-width: 620px;
  margin: 8px 0 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  padding: 14px 18px;
  border-radius: 999px;
  background: #24d366;
  color: #04130a;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(36,211,102,0.32);
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 8px;
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
  }

  .ghost-link {
    display: none;
  }

  .hero-grid,
  .split-panel,
  .register-grid {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .method-grid,
  .module-grid,
  .service-grid,
  .community-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px 16px;
  }

  .header-actions .btn {
    display: none;
  }

  h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .trust-row,
  .panel-grid,
  .course-grid,
  .method-grid,
  .module-grid,
  .service-grid,
  .community-row {
    grid-template-columns: 1fr;
  }

  .recording-card,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}

/* Requirements-driven additions */
.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(71, 181, 255, 0.25);
}

.profile-lead {
  color: #dbe8ff !important;
  font-weight: 700;
}

.module ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.legal-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 14px 48px rgba(0,0,0,0.16);
}

.legal-card h3 {
  margin-bottom: 10px;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

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

.country-code {
  min-height: 51px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: #ff9b9b;
}

.confirmation-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(71, 181, 255, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--bg), #040913 70%);
}

.confirmation-card {
  width: min(840px, 100%);
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.075);
  box-shadow: var(--shadow);
}

.confirmation-logo {
  display: block;
  margin-bottom: 24px;
  border-radius: 20px;
}

.confirmation-card h1 {
  margin-top: 14px;
  font-size: clamp(38px, 6vw, 68px);
}

.confirmation-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 6px;
  color: #bfe7ff;
  font-weight: 800;
}

.admin-login-page {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,0.075);
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 10px;
}

.login-card h1 {
  max-width: 100%;
  margin-top: 12px;
  font-size: clamp(36px, 6vw, 58px);
}

.login-card label {
  display: grid;
  gap: 8px;
  color: #e4efff;
  font-weight: 800;
}

.login-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-toolbar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  background: rgba(4, 9, 19, 0.94);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
}

.admin-toolbar strong {
  margin-right: 4px;
  color: #fff;
}

.admin-toolbar button,
.admin-import {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #eaf3ff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.admin-toolbar button:hover,
.admin-import:hover {
  background: rgba(71,181,255,0.18);
}

.admin-toolbar button:active,
.admin-import:active,
.admin-dialog button:active {
  transform: translateY(1px) scale(0.98);
}

.admin-import input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#adminToolbarStatus {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  transition: color 160ms ease;
}

#adminToolbarStatus.admin-status-pulse {
  animation: adminStatusPulse 620ms ease;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 9, 19, 0.72);
  backdrop-filter: blur(12px);
  opacity: 1;
  transition: opacity 180ms ease;
}

.admin-modal[hidden] {
  display: none;
}

.admin-dialog {
  width: min(1320px, calc(100vw - 36px));
  height: min(900px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #07111f;
  box-shadow: var(--shadow);
  transform: translateY(0) scale(1);
  transition: transform 180ms ease, opacity 180ms ease;
}

.admin-modal-entering {
  animation: adminOverlayIn 180ms ease both;
}

.admin-modal-entering .admin-dialog {
  animation: adminDialogIn 220ms cubic-bezier(.2,.8,.2,1) both;
}

.admin-modal-leaving {
  opacity: 0;
}

.admin-modal-leaving .admin-dialog {
  transform: translateY(10px) scale(0.985);
  opacity: 0;
}

.admin-dialog-head,
.admin-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.admin-dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-dialog-head strong {
  display: block;
  color: var(--text);
  font-size: 22px;
}

.admin-dialog-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-dialog-actions {
  justify-content: flex-end;
  background: rgba(7,17,31,0.98);
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.admin-dialog button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-dialog button:hover {
  background: rgba(71,181,255,0.18);
}

.admin-dialog button:disabled,
.admin-toolbar button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.admin-button-busy {
  position: relative;
  padding-left: 34px !important;
}

.admin-button-busy::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,0.38);
  border-top-color: var(--text);
  border-radius: 999px;
  animation: adminSpin 700ms linear infinite;
}

.admin-button-confirm {
  border-color: rgba(112,224,160,0.78) !important;
  background: rgba(112,224,160,0.18) !important;
  box-shadow: 0 0 0 4px rgba(112,224,160,0.08);
}

.admin-course-rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
}

.admin-course-row {
  display: block;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  overflow: visible;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-course-row-new {
  border-color: rgba(112,224,160,0.8);
  background: rgba(112,224,160,0.08);
  box-shadow: 0 0 0 5px rgba(112,224,160,0.08);
}

.admin-course-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-course-row-head strong {
  color: var(--text);
}

.admin-form-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
  min-height: 0;
  padding: 22px 18px 24px;
  visibility: visible !important;
  opacity: 1 !important;
}

.admin-form-grid label {
  display: grid;
  gap: 8px;
  color: #e4efff;
  font-size: 13px;
  font-weight: 800;
}

.admin-wide-field {
  grid-column: 1 / -1;
}

.admin-form-grid label:first-child {
  grid-column: span 3;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  min-height: 52px;
}

.admin-mode .admin-editable {
  outline: 1px dashed rgba(112,224,160,0.75);
  outline-offset: 4px;
  cursor: text;
}

.admin-mode .admin-editable:focus {
  outline: 2px solid var(--success);
  background: rgba(112,224,160,0.09);
}

.admin-editable-media {
  outline: 2px dashed var(--gold);
  outline-offset: 5px;
  cursor: pointer;
}

@keyframes adminOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes adminDialogIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes adminStatusPulse {
  0% { color: var(--muted); }
  35% { color: var(--success); }
  100% { color: var(--muted); }
}

@media (max-width: 1100px) {
  .batch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-form-grid label:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .batch-grid,
  .legal-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: 44vh;
    overflow-y: auto;
  }

  .admin-toolbar button,
  .admin-import {
    flex: 1 1 auto;
  }

  .admin-modal {
    padding: 12px;
    align-items: stretch;
  }

  .admin-dialog {
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
  }

  .admin-dialog-head,
  .admin-dialog-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dialog-head-actions {
    width: 100%;
  }

  .admin-dialog-head-actions button,
  .admin-dialog-actions button {
    width: 100%;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px 20px;
  }

  .admin-course-rows {
    padding: 14px;
    gap: 16px;
  }

  .admin-course-row-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
