/* ==========================================================================
   Kursusportalen – design tokens & delte styles
   Redigér CSS-variablerne i :root for hurtigt at ændre udseendet.
   ========================================================================== */

:root {
  --bg: #f7f6fc;
  --bg-elevated: #f0eefa;
  --bg-card: #ffffff;
  --bg-card-hover: #faf9ff;
  --border: #e6e2f5;
  --border-soft: #ece9f8;

  --text: #17151f;
  --text-muted: #63636f;
  --text-faint: #94939f;

  --accent: #6b3fc2;
  --accent-dark: #54319b;
  --accent-2: #72bef9;

  --success: #189a5c;
  --success-bg: rgba(24, 154, 92, 0.12);
  --danger: #dc3c3a;
  --danger-bg: rgba(220, 60, 58, 0.12);
  --warn: #c97a06;
  --warn-bg: rgba(201, 122, 6, 0.12);
  --info: #2f7fe0;
  --info-bg: rgba(47, 127, 224, 0.12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow: 0 14px 40px -14px rgba(45, 33, 110, 0.22);
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-bg: rgba(10, 11, 15, 0.92);
  --header-text: #f5f5f7;
  --header-text-muted: #a9adb8;
  --header-border: #26232f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; color: var(--text-muted); }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 620px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn i, .btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--sm { padding: 7px 14px; font-size: 13px; gap: 6px; }
.btn--sm i, .btn--sm svg { width: 14px; height: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn--ghost--danger { border-color: var(--danger); color: var(--danger); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.link-arrow i, .link-arrow svg { width: 15px; height: 15px; }
.link-arrow--back { margin-bottom: 16px; color: var(--text-muted); }
.link-button {
  background: none; border: none; color: var(--accent); font-size: 13px;
  cursor: pointer; padding: 6px 0; text-decoration: underline;
}

/* ---------- Header / Nav (altid mørk, uanset lyst/mørkt tema) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--header-text); }
.brand i, .brand svg { color: var(--accent-2); width: 24px; height: 24px; }
.brand__logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.site-header .brand__logo { width: 38px; height: 38px; }
.brand--footer { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--header-text-muted); font-weight: 500; font-size: 14px; }
.main-nav a:hover, .main-nav a.is-active { color: var(--header-text); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.nav-cta--ghost { background: transparent; border: 1px solid var(--header-border); color: var(--header-text) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--header-border); color: var(--header-text); border-radius: 8px; padding: 8px; cursor: pointer; }

/* ---------- Flash messages ---------- */
.flash { padding: 13px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-size: 14px; border: 1px solid; }
.flash--success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.flash--error { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.flash--info { background: var(--info-bg); border-color: var(--info); color: var(--info); }
.flash--warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }

.flash-toast-stack {
  position: fixed; top: 88px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 32px);
}
.flash--toast { margin: 0; box-shadow: var(--shadow); animation: flashSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes flashSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .flash--toast { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background-color: #0a0b0f;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 8, 14, 0.88) 0%, rgba(8, 8, 14, 0.55) 32%, rgba(10, 10, 22, 0.18) 58%, rgba(10, 10, 22, 0) 78%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding: 40px 0; }
.hero__content { max-width: 560px; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--accent-2); font-weight: 600; margin-bottom: 14px;
}
.eyebrow i, .eyebrow svg { width: 14px; height: 14px; }
.hero h1 { margin-bottom: 12px; font-size: clamp(26px, 3.8vw, 42px); color: #fff; }
.hero__lead { font-size: 16px; max-width: 480px; margin-bottom: 24px; color: rgba(255, 255, 255, 0.78); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 700px) {
.hero { padding: 64px 0; }
}

/* ---------- Hero-tekst reveal ---------- */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__content > * { opacity: 0; animation: heroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero__content .eyebrow { animation-delay: 0.05s; }
.hero__content h1 { animation-delay: 0.15s; }
.hero__content .hero__lead { animation-delay: 0.28s; }
.hero__content .hero__cta { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
.hero__content > * { animation: none; opacity: 1; }
}

/* ---------- Section heading ---------- */
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

/* ---------- Testimonials (forside) ---------- */
.testimonials { background: var(--bg-elevated); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 64px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
@media (min-width: 900px) {
.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.testimonial-card__quote-icon { width: 26px; height: 26px; color: var(--accent); opacity: 0.5; }
.testimonial-card__comment { color: var(--text); font-size: 16px; line-height: 1.6; margin: 0; flex: 1; }
.testimonial-card__footer { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.testimonial-card__author { font-weight: 600; color: var(--text); font-size: 14px; }
.testimonial-card__course { color: var(--text-muted); font-size: 13px; }

/* ---------- Course grid / card ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
@media (min-width: 900px) {
.course-grid { grid-template-columns: repeat(3, 1fr); }
}
.course-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.course-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.course-card__image {
  aspect-ratio: 16 / 9; width: 100%; background: var(--bg-elevated) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; color: var(--text-faint); position: relative;
}
.course-card__image i, .course-card__image svg { width: 36px; height: 36px; }
.course-card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-card__body h3 { margin: 2px 0 4px; font-size: 17px; }
.course-card__date, .course-card__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.course-card__date i, .course-card__date svg, .course-card__meta i, .course-card__meta svg { width: 14px; height: 14px; }
.course-card__footer { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; }
.price { font-family: var(--font-heading); font-weight: 700; color: var(--text); }
.price--lg { font-size: 28px; display: block; margin-bottom: 4px; }
.price-vat { display: block; font-size: 13px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.price-vat strong { color: var(--text); font-weight: 700; }

/* ---------- Kursusrækker (forside "Seneste kurser") - fuld bredde, ét kursus pr. linje ---------- */
.course-row-list { display: flex; flex-direction: column; gap: 20px; }
.course-row {
  display: flex; height: 250px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.course-row:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.course-row__image {
  width: 38%; flex-shrink: 0; background: var(--bg-elevated) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; color: var(--text-faint); position: relative;
}
.course-row__image i, .course-row__image svg { width: 40px; height: 40px; }
.course-row__body { flex: 1; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.course-row__body h3 { margin: 2px 0 6px; font-size: 20px; }
.course-row__date, .course-row__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.course-row__date i, .course-row__date svg, .course-row__meta i, .course-row__meta svg { width: 14px; height: 14px; }
.course-row__footer { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 700px) {
.course-row { flex-direction: column; height: auto; }
.course-row__image { width: 100%; height: 160px; }
.course-row__body { padding: 20px; }
}

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.badge--ok { background: var(--success-bg); color: var(--success); }
.badge--warn { background: var(--warn-bg); color: var(--warn); position: absolute; top: 10px; right: 10px; }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--muted { background: var(--border); color: var(--text-muted); }
.badge--accent { background: var(--warn-bg); color: var(--accent-dark); }
.badge i, .badge svg { width: 13px; height: 13px; }

/* ---------- Cards / forms (shared with admin) ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.card--sticky { position: sticky; top: 92px; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 14px; }
input, textarea, select {
  width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  font-family: var(--font-body); font-size: 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[disabled] { opacity: 0.6; }
textarea { resize: vertical; }

/* ---------- Simpel rich-text editor (kursusbeskrivelse) ---------- */
.rte-toolbar { display: flex; gap: 4px; margin-top: 6px; }
.rte-toolbar button {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: none; color: var(--text-muted); cursor: pointer;
}
.rte-toolbar button:hover { color: var(--accent); border-color: var(--accent); }
.rte-toolbar button svg, .rte-toolbar button i { width: 16px; height: 16px; }
.rte-editor {
  min-height: 140px; padding: 11px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
}
.rte-editor:focus { outline: none; border-color: var(--accent); }
.rte-editor ul { padding-left: 22px; margin: 0 0 10px; }
.rte-editor p { margin: 0 0 10px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-subgrid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 20px; }
@media (max-width: 620px) {.form-subgrid-3 { grid-template-columns: 1fr; } }

.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.plain-list li { display: flex; align-items: center; gap: 8px; }
.plain-list i, .plain-list svg { width: 16px; height: 16px; }
.plain-list--muted li { color: var(--text-muted); }
.icon-ok { color: var(--success); }
.icon-pending { color: var(--text-faint); }
.icon-danger { color: var(--danger); }

/* ---------- Auth ---------- */
.auth-section { padding: 60px 0; }
.auth-card { text-align: center; }
.auth-card__icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--warn-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.auth-card label { text-align: left; }
.auth-card__actions { margin-top: -6px; }
.auth-card__switch { margin-top: 18px; font-size: 14px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 28px; }
.contact-about__icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--warn-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.code-input {
  font-size: 28px; font-weight: 700; letter-spacing: 10px; text-align: center;
  padding: 14px; font-family: var(--font-body);
}

/* ---------- Cookie-disclaimer ---------- */
.cookie-notice {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 100;
  max-width: 620px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-notice p { margin: 0; font-size: 13px; color: var(--text-muted); flex: 1 1 260px; }
.cookie-notice[hidden] { display: none; }

/* ---------- Betingelser / vilkår-boks ---------- */
.terms-box {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; margin: 6px 0 18px;
}
.terms-box p { font-size: 13px; margin-bottom: 8px; }
.terms-box p:first-child { color: var(--text); }
.terms-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text); margin: 0; }
.terms-checkbox input { width: auto; margin-top: 3px; flex-shrink: 0; }

/* ---------- Kursusgang-rækker (admin/course-edit.php) ---------- */
.session-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.session-row input { margin-top: 0; }
.session-row input[type="date"] { flex: 1.3; }
.session-row input[type="time"] { flex: 1; }
.session-row input[type="number"] { flex: 0.8; }
.session-row .remove-session {
  flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-faint); cursor: pointer;
}
.session-row .remove-session:hover { border-color: var(--danger); color: var(--danger); }
.session-row .remove-session svg, .session-row .remove-session i { width: 15px; height: 15px; }
#addSession { display: inline-flex; align-items: center; gap: 6px; }
#addSession svg, #addSession i { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .session-row { flex-wrap: wrap; }
  .session-row input { flex: 1 1 calc(50% - 5px); }
}

/* ---------- Admin-hurtigbjælke på offentlige sider ---------- */
.admin-quickbar { background: #15131f; border-bottom: 1px solid var(--accent); }
.admin-quickbar__inner { display: flex; align-items: center; gap: 20px; padding: 8px 20px; font-size: 13px; color: var(--accent-2); flex-wrap: wrap; }
.admin-quickbar__inner span { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.admin-quickbar__inner a { display: flex; align-items: center; gap: 6px; color: #fff; }
.admin-quickbar__inner a:hover { color: var(--accent-2); }
.admin-quickbar svg, .admin-quickbar i { width: 14px; height: 14px; }

/* ---------- Course detail ---------- */
.course-detail { padding: 40px 0 80px; }
.course-detail__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.course-detail__meta { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 24px; font-size: 14px; color: var(--text-muted); }
.course-detail__meta span { display: flex; align-items: center; gap: 8px; }
.course-detail__meta i, .course-detail__meta svg { width: 16px; height: 16px; color: var(--accent); }
.course-detail__image { border-radius: var(--radius); margin-bottom: 24px; max-height: 360px; width: 100%; object-fit: cover; }
.course-detail__image-card { padding: 0; overflow: hidden; }
.course-detail__image-card .course-detail__image { margin-bottom: 0; aspect-ratio: 16 / 9; max-height: none; border-radius: var(--radius); }

.session-picker { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.session-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elevated); cursor: pointer; font-size: 13px;
}
.session-option:has(input:checked) { border-color: var(--accent); background: rgba(107, 63, 194, 0.08); }
.session-option input[type="radio"] { width: auto; margin-top: 0; flex-shrink: 0; }
.session-option--full { opacity: 0.5; cursor: not-allowed; }

/* ---------- Stjerner / anmeldelser ---------- */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rating label { cursor: pointer; color: var(--border); margin: 0; }
.star-rating label svg, .star-rating label i { width: 30px; height: 30px; display: block; fill: none; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--accent); }
.star-rating input:checked ~ label svg,
.star-rating input:checked ~ label i,
.star-rating label:hover svg,
.star-rating label:hover i,
.star-rating label:hover ~ label svg,
.star-rating label:hover ~ label i { fill: currentColor; }

.review-stars { display: inline-flex; gap: 2px; }
.review-stars svg, .review-stars i { width: 16px; height: 16px; color: var(--border); fill: none; }
.review-stars svg.is-filled, .review-stars i.is-filled { color: var(--accent); fill: currentColor; }

.course-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.course-rating__num { font-weight: 700; color: var(--text); }
.review-card { border-bottom: 1px solid var(--border-soft); padding: 16px 0; }
.review-card:last-child { border-bottom: none; }
.review-card__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.prose { color: var(--text); font-size: 15px; }
.prose p { color: var(--text); }

/* ---------- Dashboard ---------- */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.registration-card { padding: 18px; }
.registrations-cancelled-heading { font-size: 14px; color: var(--text-faint); font-weight: 600; margin: 28px 0 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.registration-card--cancelled { padding: 12px 18px; opacity: 0.55; }
.registration-card--cancelled .registration-row__image { width: 56px; height: 42px; }
.registration-card--cancelled .registration-row__body h3 { font-size: 14px; }
.registration-card--cancelled .price { font-size: 14px; }
.registration-card__main { display: flex; align-items: center; gap: 16px; }
.registration-row__image {
  width: 88px; height: 66px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--bg-elevated) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--text-faint);
}
.registration-row__image i, .registration-row__image svg { width: 22px; height: 22px; }
.registration-row__body { flex: 1; min-width: 0; }
.registration-row__body h3 { font-size: 16px; margin-bottom: 4px; }
.registration-row__body p { font-size: 13px; margin-bottom: 2px; }
.registration-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.registration-meta span { display: inline-flex; align-items: center; gap: 6px; }
.registration-meta svg, .registration-meta i { flex-shrink: 0; }
.registration-card__main > .price { flex-shrink: 0; font-size: 17px; }
.registration-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft);
}
.registration-card__badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.registration-card__footer .link-button { font-size: 13px; text-decoration: none; }
.registration-card__footer .link-button:hover { text-decoration: underline; }
.registration-card__footer .link-button--danger { color: var(--danger); }
@media (max-width: 560px) {
  .registration-card__main { flex-wrap: wrap; }
  .registration-card__main > .price { margin-left: 108px; }
}

/* ---------- Search box ---------- */
.search-box { position: relative; }
.search-box i, .search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-faint); }
.search-box input { padding-left: 38px; min-width: 240px; margin-top: 0; }

/* ---------- Steps (init wizard) ---------- */
.install-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--accent); margin-bottom: 16px;
}
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 24px 0; flex-wrap: wrap; }
.steps li { font-size: 13px; padding: 8px 14px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-faint); }
.steps li.is-active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.steps li.is-done { color: var(--success); border-color: var(--success); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 48px 0; margin-top: 40px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.site-footer__muted { font-size: 13px; color: var(--text-faint); margin: 0; }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__links a { color: var(--text-muted); font-size: 14px; }
.site-footer__links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
.nav-toggle { display: inline-flex; }
.main-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-elevated);
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start;
    padding: 16px 20px; gap: 16px; display: none;
  }
.main-nav.is-open { display: flex; }
.course-detail__grid { grid-template-columns: 1fr; }
.dashboard-grid { grid-template-columns: 1fr; }
.form-row, .form-grid { grid-template-columns: 1fr; }
.card--sticky { position: static; }
}

@media (max-width: 560px) {
.hero { padding: 36px 0 28px; }
.site-header__inner { height: 64px; }
}
