:root {
  --ink: #272827;
  --ink-soft: #5f605f;
  --bg: #ffffff;
  --bg-soft: #f7f6f5;
  --brand: #c73a41;
  --brand-dark: #9e2b31;
  --accent: #e2545b;
  --success: #059669;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(39, 40, 39, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
#register, #schedule, #about, #courses { scroll-margin-top: 78px; }

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* Montserrat for both headings and body text */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; }
a { color: var(--brand); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(199, 58, 65, .45);
}
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:visited { color: #fff; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand, .btn-brand:hover, .btn-brand:focus, .btn-brand:active, .btn-brand:visited { color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-sm { padding: 8px 16px; font-size: .875rem; }

/* ---------- Site nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee9e8;
  padding: 12px 0;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 40px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0 auto;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta-item { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-login-btn { display: none; }
  .nav-cta-item { display: block; }
  .nav-cta-item a { color: var(--brand); font-weight: 700; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px 24px 16px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee9e8;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid #f2eeed;
  }
  .nav-links li:last-child a { border-bottom: none; }
}
/* Job board */
.jobs-filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 20px;
  margin-bottom: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  align-items: end;
}
.jobs-filter-form { display: contents; }
.jobs-filter-bar .filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jobs-filter-bar .filter-item label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.jobs-filter-bar .filter-select,
.jobs-filter-bar .search-input {
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: .95rem;
  font-family: "Montserrat", inherit;
  background: #fff;
}
.jobs-filter-bar .filter-select:focus,
.jobs-filter-bar .search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(199, 58, 65, .15);
}
.jobs-search-row { display: flex; gap: 8px; }
.jobs-search-row .search-input { flex: 1; }
@media (max-width: 720px) {
  .jobs-filter-bar { grid-template-columns: 1fr; gap: 16px; }
  .jobs-search-row { flex-direction: column; }
  .jobs-search-row .btn { width: 100%; }
}
.job-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) { .job-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .job-list { grid-template-columns: 1fr; } }
.job-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 24px !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}
.job-card { box-shadow: none; }
.job-card:hover {
  transform: translateY(-4px);
  border-color: #eec6c8;
}
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.job-card-logo {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand-dark);
  font-size: 1.3rem; font-weight: 800; overflow: hidden;
  border: 1px solid #ece7e6;
}
.job-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-card-main { flex: 1; min-width: 0; }
.job-title { font-size: 1.25rem; margin-bottom: 8px; font-weight: 700; }
.job-company { color: var(--brand); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.job-meta-tags { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.job-meta-tag {
  font-size: .85rem;
  color: var(--ink-soft);
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 6px;
  white-space: nowrap;
}
.job-type-badge {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 12px;
  border-radius: 6px;
  background: #faeaeb;
  color: var(--brand-dark);
}
.job-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; text-align: right; }
.job-salary {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand);
}
.job-excerpt {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.6;
  margin: 4px 0;
}
.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e8e6e5;
}
.job-deadline {
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 500;
}
.job-cta {
  color: var(--brand);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}
.job-meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .job-card-header { flex-direction: column; }
  .job-card-side { align-items: flex-start; text-align: left; }
  .job-card-footer { flex-direction: column; align-items: flex-start; }
}

/* ---------- Job detail page ---------- */
.job-detail-hero { padding: 40px 0 34px; }
.job-back { color: var(--ink-soft); font-weight: 600; font-size: .9rem; text-decoration: none; }
.job-back:hover { color: var(--brand); }
.job-hero-top { display: flex; align-items: center; gap: 18px; margin: 18px 0 16px; }
.job-logo {
  flex: 0 0 60px; width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand-dark);
  font-size: 1.6rem; font-weight: 800; overflow: hidden;
  border: 1px solid #ece7e6;
}
.job-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-logo-sm { flex-basis: 44px; width: 44px; height: 44px; font-size: 1.2rem; border-radius: 11px; }
.job-detail-title { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin-bottom: 4px; }
.job-detail-company { color: var(--ink-soft); font-size: 1rem; font-weight: 600; }
.job-detail-company span { font-weight: 500; }
.job-detail-hero .tag-salary { background: var(--ink); color: #fff; }
.job-detail-hero .tag-closed { background: #fef2f2; color: var(--danger); }

.job-detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .job-detail-grid { grid-template-columns: 1fr; gap: 28px; } }
.job-block-title { font-size: 1.3rem; margin-bottom: 14px; }
.job-description { color: #3a3b3a; font-size: 1rem; line-height: 1.8; }
.job-description p { margin-bottom: 14px; }
.job-description ul, .job-description ol { margin: 0 0 14px 20px; }
.job-description li { margin-bottom: 6px; }
.job-description strong { color: var(--ink); }

.company-card {
  margin-top: 32px; padding: 24px;
  background: var(--bg-soft); border: 1px solid #ece7e6; border-radius: var(--radius);
}
.company-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.company-card-head h3 { font-size: 1.1rem; }
.company-card p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 10px; }

.job-detail-aside { position: sticky; top: 88px; }
@media (max-width: 900px) { .job-detail-aside { position: static; } }
.job-apply-card { max-width: none; padding: 26px; }
.job-apply-card .form-title { font-size: 1.25rem; margin-bottom: 2px; }
.job-apply-card .form-sub { color: var(--ink-soft); font-size: .9rem; margin-bottom: 16px; }

/* Apply form — shorter, rounded inputs */
.job-apply-form { display: grid; gap: 14px; }
.job-apply-form input[type=text],
.job-apply-form input[type=email],
.job-apply-form input[type=tel],
.job-apply-form textarea {
  padding: 10px 13px;
  border: 1.5px solid #d8d2d2;
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  width: 100%;
}
.job-apply-form textarea { resize: vertical; }
.job-apply-form input:focus,
.job-apply-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 58, 65, .15);
}
.job-apply-form small { color: var(--ink-soft); font-weight: 500; }

/* File upload — matches dashboard .file-btn style */
.job-apply-form input[type=file] {
  width: 100%;
  font-size: .88rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.job-apply-form input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.job-apply-form input[type=file]::file-selector-button:hover { border-color: var(--brand); color: var(--brand); }

/* ============ About page ============ */
.page-hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
  background: linear-gradient(135deg, #272827 0%, #161716 100%);
  color: #fff;
}
.page-hero::before,
.page-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(199, 58, 65, .5), transparent 70%);
}
.page-hero::before { width: 420px; height: 420px; top: -160px; right: -120px; }
.page-hero::after { width: 340px; height: 340px; bottom: -180px; left: -100px; opacity: .7; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .page-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .75rem; font-weight: 800; color: var(--accent); margin-bottom: 14px;
}
.page-hero .section-title { color: #fff; margin-bottom: 12px; }
.page-hero .section-title::after { display: none; }
.page-hero .section-lead { color: rgba(255, 255, 255, .78); margin-bottom: 0; }

.about-emphasis {
  font-size: 1.25rem; font-weight: 800; color: var(--ink);
  margin: 18px 0; padding-left: 18px; border-left: 4px solid var(--brand); line-height: 1.4;
}

/* 20 / 80 training model */
.model-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  max-width: 760px; margin: 44px auto 0;
  border: 1px solid #ece7e6; border-radius: var(--radius); overflow: hidden; background: #fff;
}
.model-block { padding: 30px 24px; text-align: center; }
.model-block + .model-block { border-left: 1px solid #ece7e6; }
.model-block--brand { background: var(--ink); color: #fff; }
.model-num { display: block; font-size: 2.8rem; font-weight: 900; line-height: 1; color: var(--brand); }
.model-block--brand .model-num { color: #fff; }
.model-num span { font-size: 1.4rem; vertical-align: super; }
.model-lbl { display: block; margin-top: 6px; font-weight: 700; font-size: .95rem; }
.model-block--brand .model-lbl { color: rgba(255,255,255,.85); }
.model-note {
  grid-column: 1 / -1; padding: 20px 24px; margin: 0;
  border-top: 1px solid #ece7e6; color: var(--ink-soft); font-size: .95rem; text-align: center;
}
@media (max-width: 520px) { .model-block .model-num { font-size: 2.2rem; } }

/* Pull quote */
.pull-quote { max-width: 780px; margin: 44px auto; text-align: center; }
.pull-quote p { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; line-height: 1.3; color: var(--ink); margin-bottom: 12px; }
.pull-quote small { display: block; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; max-width: 620px; margin: 0 auto; }

.eco-heading { text-align: center; font-size: 1.15rem; font-weight: 800; margin: 8px 0 22px; }

/* Icon-chip cards (ecosystem + values) */
.about-card { display: flex; flex-direction: column; gap: 8px; }
.about-card h3 { font-size: 1.05rem; font-weight: 800; }
.about-card p { color: var(--ink-soft); font-size: .93rem; line-height: 1.6; flex: 1; }
.about-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 6px;
  background: var(--bg-soft); color: var(--ink); border: 1px solid #ece7e6;
}
.about-ic svg { width: 23px; height: 23px; }

/* Who we serve */
.serve-grid { margin-top: 8px; }
.serve-card { display: flex; flex-direction: column; gap: 12px; }
.serve-tag {
  align-self: flex-start; background: #faeaeb; color: var(--brand-dark);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.serve-card p { color: var(--ink-soft); line-height: 1.65; margin: 0; }
.serve-hook { color: var(--ink) !important; font-weight: 600; }

/* Comparison table */
.compare {
  max-width: 960px; margin: 40px auto 0;
  border: 1px solid #ece7e6; border-radius: var(--radius); overflow: hidden; background: #fff;
}
.compare-head { display: grid; grid-template-columns: 1fr 1fr; }
.compare-head > div { padding: 16px 18px; font-weight: 800; text-align: center; font-size: .95rem; }
.compare-head .trad { background: var(--bg-soft); color: var(--ink-soft); }
.compare-head .applyd { background: var(--ink); color: #fff; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row:nth-child(even) { background: #fbfafa; }
.compare-row > div { padding: 16px 18px; font-size: .92rem; line-height: 1.55; position: relative; }
.compare-row .trad { color: var(--ink-soft); border-right: 1px solid #ece7e6; }
.compare-row .applyd { color: var(--ink); font-weight: 500; }
.compare-row .applyd::before { content: "✓  "; color: var(--brand); font-weight: 800; }
.compare-row .trad::before { content: "✕  "; color: #c9c2c2; font-weight: 800; }
.cmp-label {
  display: none; font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 4px; opacity: .7;
}
@media (max-width: 640px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row .trad { border-right: none; border-bottom: 1px dashed #ece7e6; }
  .cmp-label { display: block; }
}

/* Skills, Not Stamps banner */
.stamp-banner {
  max-width: 960px; margin: 32px auto 0; text-align: center;
  padding: 30px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, #c73a41 0%, #7e2226 100%); color: #fff;
}
.stamp-sub { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; opacity: .85; }
.stamp-title { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-top: 4px; }

/* Mission / Vision */
.mv-grid { max-width: 900px; margin: 0 auto; }
.mv-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.mv-card p { font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: var(--ink); margin: 0; }
.mv-card--brand { background: var(--ink); border-color: var(--ink); }
.mv-card--brand p { color: #fff; }
.mv-card--brand .mv-tag { background: rgba(255,255,255,.12); color: #fff; }
.mv-tag {
  align-self: flex-start; background: #faeaeb; color: var(--brand-dark);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}

/* Course detail hero */
.course-hero { padding: 40px 0 44px; }
.course-hero-back { display: inline-block; color: rgba(255,255,255,.7); font-weight: 600; font-size: .9rem; text-decoration: none; }
.course-hero-back:hover { color: #fff; }
.course-hero-back i { margin-right: 6px; }
.course-hero-inner { max-width: 780px; margin-top: 16px; }
.course-hero .section-title { color: #fff; margin: 8px 0 14px; }
.course-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; color: rgba(255,255,255,.8); font-size: .92rem; }
.course-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.course-hero-meta i { color: var(--accent); }
.course-detail { padding-top: 40px; }

/* ============ Blog ============ */
.blog-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.blog-tab {
  padding: 8px 18px; border-radius: 999px; text-decoration: none;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid #e2e2e2; transition: all .15s ease;
}
.blog-tab:hover { border-color: var(--brand); color: var(--brand); }
.blog-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex; flex-direction: column; padding: 0 !important; overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: #eec6c8; }
.blog-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8e6e5, #d4ccc7); }
.blog-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(39, 40, 39, .82); color: #fff; text-decoration: none;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 999px;
}
.blog-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; flex: 1; }
.blog-meta { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: .8rem; }
.blog-body h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.blog-excerpt { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; flex: 1; }
.blog-readmore { color: var(--brand); font-weight: 700; font-size: .88rem; margin-top: 4px; }

/* Blog detail */
.post-hero { padding: 44px 0 24px; }
.post-back { color: var(--ink-soft); font-weight: 600; font-size: .9rem; text-decoration: none; }
.post-back:hover { color: var(--brand); }
.post-hero-inner { max-width: 780px; margin: 18px auto 0; text-align: center; }
.post-badge { position: static; display: inline-block; background: #faeaeb; color: var(--brand-dark); margin-bottom: 16px; }
.post-title { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; margin-bottom: 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; color: var(--ink-soft); font-size: .9rem; font-weight: 500; }
.post-cover { max-width: 900px; margin: 28px auto 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 760px; margin: 40px auto 0; font-size: 1.06rem; line-height: 1.85; }
.post-body h2 { font-size: 1.5rem; margin: 28px 0 10px; }
.post-body h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.post-body img { border-radius: 10px; margin: 18px 0; }
.post-share { max-width: 760px; margin: 40px auto 8px; padding-top: 24px; border-top: 1px solid #ece7e6; }

/* Blog admin — category chips + publish switch */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid #e6e0df; border-radius: 999px;
  padding: 6px 8px 6px 14px; font-size: .9rem; font-weight: 600; color: var(--ink);
}
.cat-chip form { margin: 0; display: inline-flex; }
.cat-chip button {
  width: 20px; height: 20px; border: none; border-radius: 50%; cursor: pointer;
  background: #e6dede; color: var(--ink-soft); font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.cat-chip button:hover { background: var(--danger); color: #fff; }
.switch-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.switch-row small { color: var(--ink-soft); font-weight: 400; }

/* ============ Course registration / Paystack ============ */
.course-enroll-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.enroll-form-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid #ece7e6; }
.enroll-fee-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 10px; background: var(--bg-soft);
  font-size: .95rem; color: var(--ink); margin-bottom: 10px;
}
.enroll-fee-row strong { color: var(--brand); font-size: 1.15rem; }
.enroll-note { color: var(--ink-soft); font-size: .85rem; line-height: 1.5; margin-bottom: 14px; }
.enroll-form { display: grid; gap: 12px; }
.enroll-form input[type=text],
.enroll-form input[type=email],
.enroll-form input[type=tel] { padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
.enroll-form .field-label { margin-bottom: 4px; }
.enroll-secure { text-align: center; color: var(--ink-soft); font-size: .8rem; margin-top: 12px; }
.enroll-secure i { color: var(--success); margin-right: 4px; }

.enroll-result { text-align: center; margin-bottom: 20px; }
.enroll-result-ic { font-size: 3.4rem; line-height: 1; }
.enroll-result.is-success .enroll-result-ic { color: var(--success); }
.enroll-result.is-fail .enroll-result-ic { color: var(--danger); }
.enroll-summary { width: 100%; border-collapse: collapse; }
.enroll-summary th, .enroll-summary td { text-align: left; padding: 10px 0; border-bottom: 1px solid #f0eaea; font-size: .92rem; vertical-align: top; }
.enroll-summary th { color: var(--ink-soft); font-weight: 600; width: 38%; }
.enroll-summary td { color: var(--ink); word-break: break-word; }

.enroll-credentials {
  background: var(--bg-soft); border: 1px dashed #d6c9c9; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 20px;
}
.enroll-credentials p { color: var(--ink-soft); font-size: .85rem; margin-bottom: 10px; }
.cred-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.cred-row + .cred-row { border-top: 1px solid #eee2e2; }
.cred-row span { color: var(--ink-soft); font-size: .9rem; }
.cred-row strong { font-size: 1.1rem; letter-spacing: .04em; color: var(--brand); }

/* Applicant portal (complete application) */
.app-steps { list-style: none; display: flex; gap: 10px; margin: 0 0 24px; padding: 0; flex-wrap: wrap; }
.app-steps li {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 160px;
  padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px solid #e6e0df;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}
.app-steps li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft);
  color: var(--ink-soft); font-size: .8rem; font-weight: 800; flex: 0 0 24px;
}
.app-steps li.active { border-color: var(--brand); color: var(--ink); }
.app-steps li.active span { background: var(--brand); color: #fff; }
.app-steps li.done { color: var(--ink); }
.app-steps li.done span { background: var(--success); color: #fff; }
.app-steps li.done span::before { content: "✓"; }
.app-steps li.done span { font-size: 0; }
.app-steps li.done span::before { font-size: .8rem; }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
@media (max-width: 560px) { .pay-options { grid-template-columns: 1fr; } }
.pay-option {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px; border: 1.5px solid #e6e0df; border-radius: var(--radius); background: #fff;
}
.pay-option--alt { background: var(--bg-soft); }
.pay-option-tag { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.pay-option-amt { font-size: 2rem; font-weight: 900; color: var(--ink); line-height: 1; }
.pay-option-note { color: var(--ink-soft); font-size: .85rem; line-height: 1.5; flex: 1; margin-bottom: 8px; }

/* CMS admin */
.cms-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cms-page-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.cms-page-ic {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--ink); border: 1px solid #ece7e6;
}
.cms-page-ic svg { width: 22px; height: 22px; }
.cms-page-body { flex: 1; min-width: 0; }
.cms-page-body h3 { font-size: 1.02rem; font-weight: 800; }
.cms-page-body p { color: var(--ink-soft); font-size: .82rem; }
.cms-page-edit { color: var(--brand); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.cms-section { margin-bottom: 18px; }
.cms-fields { display: flex; flex-direction: column; gap: 18px; }
.cms-field { min-width: 0; }
.cms-field .rich-editor-holder { position: relative; width: 100%; }

/* Livewire table skeleton loader */
.tbl-skeleton { display: grid; gap: 14px; padding: 8px 2px; }
.tbl-skeleton-row { display: flex; gap: 16px; align-items: center; }
.skeleton-bar {
  display: block; height: 14px; flex: 1; border-radius: 6px;
  background: linear-gradient(90deg, #eee7e6 25%, #f6f1f0 37%, #eee7e6 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-bar { animation: none; }
}

/* Admin: dynamic attendance repeater */
.attendance-repeater { display: grid; gap: 8px; margin-bottom: 10px; }
.attendance-row { display: grid; grid-template-columns: 1fr 130px 38px; gap: 8px; align-items: center; }
.attendance-row input { margin: 0; }
.attendance-remove {
  width: 38px; height: 38px; border: 1px solid #e0d9d9; border-radius: 8px;
  background: #fff; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s ease;
}
.attendance-remove:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
@media (max-width: 560px) { .attendance-row { grid-template-columns: 1fr 90px 38px; } }

/* Public course card: attendance pricing list */
.attend-pricing { display: grid; gap: 8px; margin-bottom: 14px; }
.attend-pricing-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px; background: var(--bg-soft);
}
.attend-pricing-row span { color: var(--ink-soft); font-size: .9rem; }
.attend-pricing-row strong { color: var(--brand); font-size: 1.05rem; }

/* Applicant: attendance + payment radios */
.tuition-form { margin-top: 18px; }
.attend-choose { margin-bottom: 20px; }
.tuition-label { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 10px; }
.attend-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.attend-radio { position: relative; cursor: pointer; }
.attend-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.attend-radio-body {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border: 1.5px solid #e6e0df; border-radius: 12px; background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.attend-radio-body strong { font-size: .95rem; }
.attend-radio-body .attend-price { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.attend-radio input:checked + .attend-radio-body { border-color: var(--brand); background: #faeaeb; }
.attend-radio input:checked + .attend-radio-body .attend-price { color: var(--brand); }
.attend-radio input:focus-visible + .attend-radio-body { box-shadow: 0 0 0 3px rgba(199, 58, 65, .18); }
.tuition-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 10px; background: var(--ink); color: #fff; margin-bottom: 4px;
}
.tuition-total strong { font-size: 1.3rem; }

.pay-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding: 18px 20px; border-radius: 12px;
  background: var(--bg-soft); border: 1px dashed #d6c9c9;
}
.pay-balance strong { color: var(--ink); }
.pay-balance p { color: var(--ink-soft); font-size: .85rem; margin: 4px 0 0; }

.app-hero-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-hero-bar .section-title { color: #fff; }
.app-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .app-grid { grid-template-columns: 1fr; } }
.app-summary { position: sticky; top: 88px; }
@media (max-width: 820px) { .app-summary { position: static; } }
.app-summary h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.app-form-card { padding: 30px; }
.app-form input[type=text],
.app-form input[type=date],
.app-form select,
.app-form textarea { padding: 10px 12px; border-radius: 8px; font-size: .95rem; }

/* Company portal — applications */
.applicant-card { margin-bottom: 16px; }
.applicant-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.applicant-head h3 { font-size: 1.05rem; }
.applicant-meta { color: var(--ink-soft); font-size: .88rem; }
.applicant-cover {
  color: var(--ink-soft);
  font-size: .92rem;
  font-style: italic;
  margin: 12px 0 0;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-radius: 10px;
}
.applicant-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #faeaeb;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.file-pill:hover { background: #f5d8da; }
.status-form { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.status-chip {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 999px;
}
.status-pending { background: #fef3c7; color: #92400e; }
/* Waiting on the hourly send limit — neutral, because nothing is wrong. */
.status-queued { background: #ecedec; color: var(--ink-soft); }
.status-sent { background: #d1fae5; color: var(--success); }
.status-failed { background: #fef2f2; color: var(--danger); }
.status-reviewed { background: #dbeafe; color: #1e40af; }
.status-shortlisted { background: #d1fae5; color: var(--success); }
.status-rejected { background: #fef2f2; color: var(--danger); }

/* Contact page and other page heroes (not home) */
.contact-hero {
  padding: 80px 0 56px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
}
.contact-grid { margin-bottom: 28px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card p { flex: 1; }
.contact-link { font-weight: 700; font-size: .95rem; text-decoration: none; }
.contact-link:hover { color: var(--brand-dark); text-decoration: underline; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e8e6e5;
}
.map-wrap iframe { display: block; }

footer .footer-logo {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: .85;
  margin-bottom: 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(226, 84, 91, .25), transparent 60%),
    radial-gradient(800px 600px at 95% 15%, rgba(199, 58, 65, .3), transparent 65%),
    linear-gradient(165deg, rgba(22, 23, 22, .93) 0%, rgba(39, 40, 39, .88) 55%, rgba(58, 36, 38, .9) 100%),
    url('../img/hero-bg.jpg') center / cover no-repeat;
  color: #fff;
  padding: 48px 0;
  text-align: center;
  overflow: hidden;
  min-height: calc(100vh - 65px); /* full viewport minus sticky navbar */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; margin-bottom: 20px; }
.hero .sub { font-size: 1.2rem; max-width: 720px; margin: 0 auto 32px; color: rgba(255,255,255,.9); }
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 0 0 36px;
  font-weight: 600;
  color: rgba(255,255,255,.95);
}
.stat-strip span::before { content: "· "; color: var(--accent); }
.stat-strip span:first-child::before { content: ""; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.hero-ctas .link { color: #fff; font-weight: 600; }

/* Hero with embedded form */
.hero .container { max-width: 1200px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
  text-align: left;
}
.hero-copy { padding-top: 24px; }
.hero-grid .sub { margin: 0 0 32px; }
.hero-grid .stat-strip { justify-content: flex-start; }
.hero-grid .hero-ctas { justify-content: flex-start; }
.hero-form { max-width: none; color: var(--ink); text-align: left; padding: 24px 26px; }
.hero-form .form-title { font-size: 1.35rem; margin-bottom: 2px; }
.hero-form .form-sub { color: var(--ink-soft); font-size: .9rem; margin-bottom: 14px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { padding-top: 0; }
  .hero-grid .stat-strip,
  .hero-grid .hero-ctas { justify-content: center; }
  .hero-form { text-align: left; }
}

/* Hero feature chips */
.feature-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 30px; }
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: .92rem;
  backdrop-filter: blur(4px);
}
.feature-chip i {
  font-style: normal;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
}
@media (max-width: 900px) { .feature-chips { justify-content: center; } }

/* Hero meta strip */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 28px;
  align-items: center;
  text-align: left;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-meta .meta-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.hero-meta strong { display: block; font-size: 1.05rem; }
.hero-meta small { color: rgba(255, 255, 255, .65); font-size: .85rem; }
@media (max-width: 900px) {
  .hero-meta { grid-template-columns: 1fr 1fr; text-align: left; }
  .hero-meta .btn { grid-column: 1 / -1; text-align: center; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 760px; margin-bottom: 36px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; font-size: 1.05rem; font-weight: 700; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }

.tool-card summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tool-card summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; }
.tool-card[open] summary::after { content: "–"; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  background: #faeaeb;
  color: var(--brand-dark);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- Courses Filter & Grid ---------- */
.courses-filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-item label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.filter-select, .courses-filter-bar .search-input {
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: .95rem;
  font-family: "Montserrat", inherit;
  background: #fff;
}
.filter-select:focus { outline: none; border-color: var(--brand); }
@media (max-width: 720px) {
  .courses-filter-bar { grid-template-columns: 1fr; gap: 16px; }
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .courses-grid { grid-template-columns: 1fr; } }

/* ---------- Course cards ---------- */
.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #eee9e8;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: #eec6c8;
}
.course-thumb {
  position: relative;
  height: 190px;
  background: #f7f6f5;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e6e5, #d4ccc7);
}
.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(199, 58, 65, .3);
}
.course-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.course-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}
.course-description {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}
.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f2eeed;
}
.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.course-meta-item i { color: var(--brand); }
.course-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand);
}
.course-cta {
  align-self: stretch;
  text-align: center;
}

/* ---------- Course detail page ---------- */
.course-detail { padding: 40px 0 72px; }
.course-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 24px;
}
.course-back:hover { color: var(--brand); }
.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.course-badge-static {
  position: static;
  display: inline-block;
  box-shadow: none;
  margin-bottom: 14px;
}
.course-detail-title { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
.course-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}
.course-detail-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 28px;
}
.course-detail-body p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}
.course-enroll-card { position: sticky; top: 96px; }
.course-enroll-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 14px;
}
.course-enroll-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .95rem;
  padding: 8px 0;
  border-bottom: 1px solid #f2eeed;
}
.course-enroll-row i { color: var(--brand); width: 18px; }
.course-related { margin-top: 64px; }
@media (max-width: 860px) {
  .course-detail-grid { grid-template-columns: 1fr; }
  .course-enroll-card { position: static; }
  .course-detail-title { font-size: 1.6rem; }
}

/* ---------- Tool grid with category tabs ---------- */
.hl { color: var(--brand); }
.journey-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.jp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e8e6e5;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--shadow);
}
.jp i {
  font-style: normal;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e8e6e5;
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}
.filter-tabs .tab {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.filter-tabs .tab em { font-style: normal; font-weight: 600; color: var(--ink-soft); margin-left: 4px; font-size: .8rem; }
.filter-tabs .tab:hover { background: var(--bg-soft); }
.filter-tabs .tab.active { background: var(--brand); color: #fff; }
.filter-tabs .tab.active em { color: rgba(255, 255, 255, .8); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tool-item.tool-hidden { display: none; }
.tool-thumb { height: 130px; }
.tool-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tool-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tool-item h3 { font-size: 1.05rem; }
.tool-item p { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.tool-cta { margin-top: 10px; align-self: flex-start; padding: 8px 20px; }

/* ---------- Testimonials ---------- */
.t-card { display: flex; flex-direction: column; gap: 12px; }
.t-stars { color: var(--brand); letter-spacing: 3px; font-size: 1rem; }
.t-chip {
  align-self: flex-start;
  background: #faeaeb;
  color: var(--brand-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.t-quote { color: var(--ink-soft); font-style: italic; font-size: .97rem; }
.t-person { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.t-person small { color: var(--ink-soft); }
.t-avatar {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Stats band ---------- */
.stats-band { padding: 56px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-row > div + div { border-left: 1px solid #e8e6e5; }
.stats-row .num { display: block; font-size: 2.7rem; font-weight: 800; color: var(--brand); line-height: 1.15; }
.stats-row .lbl { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
@media (max-width: 720px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row > div + div { border-left: none; }
}

/* ---------- Promo bar ---------- */
.promo-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  animation: promoIn .4s ease;
}
@keyframes promoIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.promo-bar .btn { white-space: nowrap; }
.promo-close {
  background: none;
  border: none;
  color: #9a9b9a;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}
.promo-close:hover { color: #fff; }
@media (max-width: 640px) { .promo-bar span { display: none; } .promo-bar { padding-left: 10px; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.nice { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
table.nice th, table.nice td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #e2e8f0; }
table.nice th { background: var(--ink); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
table.nice tr:last-child td { border-bottom: none; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { padding-left: 34px; position: relative; color: var(--ink-soft); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #faeaeb;
  color: var(--brand);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}
.check-list strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label.field-label { font-weight: 600; font-size: .88rem; display: block; margin-bottom: 4px; }
label.field-label .req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], select {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 0;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 58, 65, .15); }
select:focus { outline: none; }

/* Livewire (rappasoft) table controls — trim the oversized search box & selects */
[wire\:id] input[type=text],
[wire\:id] input[type=search],
[wire\:id] select {
  padding: 7px 12px;
  font-size: .9rem;
}
.field-error { color: var(--danger); font-size: .85rem; margin-top: 4px; }
.iti { width: 100%; }
.contact-form-wrap {
  max-width: 600px;
  margin: 60px auto;
  background: #fff;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
textarea {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 0;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  font-family: "Montserrat", inherit;
  resize: vertical;
}
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 58, 65, .15); }

.success-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--success);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .92rem;
  font-weight: 600;
}
.schedule-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.schedule-form > div { flex: 1 1 160px; }
.schedule-form > .grow { flex: 3 1 320px; }
.schedule-form > .submit-cell { flex: 0 0 auto; }
.link-danger {
  background: none;
  border: none;
  color: var(--danger);
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
/* Admin sidebar layout */
.admin-body { display: flex; min-height: 100vh; background: var(--bg-soft); }
.admin-sidebar {
  flex: 0 0 240px;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 26px 16px;
  transition: flex .25s ease, transform .25s ease;
  z-index: 35;
}
.is-collapsed .admin-sidebar {
  flex: 0 0 76px;
  padding-left: 12px;
  padding-right: 12px;
}
.side-logo { display: flex; align-items: center; justify-content: flex-start; margin: 0 6px 32px; }
.side-logo-full { height: 38px; filter: brightness(0) invert(1); display: block; }
.side-logo-mark { height: 34px; display: none; }

/* Collapsed = icon-only rail (desktop) */
@media (min-width: 861px) {
  .is-collapsed .admin-sidebar .side-logo { justify-content: center; margin-bottom: 28px; }
  .is-collapsed .admin-sidebar .side-logo-full { display: none; }
  .is-collapsed .admin-sidebar .side-logo-mark { display: block; }
  .is-collapsed .admin-sidebar .side-heading,
  .is-collapsed .admin-sidebar .side-group-toggle { display: none; }
  /* Collapsed rail shows all icons regardless of dropdown state */
  .is-collapsed .admin-sidebar .side-group-items { max-height: none; opacity: 1; overflow: visible; }
  .is-collapsed .admin-sidebar .side-nav a {
    justify-content: center;
    gap: 0;
    font-size: 0;
    padding: 12px 0;
  }
  .is-collapsed .admin-sidebar .side-nav a svg { width: 20px; height: 20px; flex-basis: auto; }
}
.side-nav {
  display: grid;
  gap: 5px;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -6px;
  padding: 0 6px 8px;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}
.side-nav::-webkit-scrollbar { width: 0; height: 0; display: none; } /* WebKit */
.side-heading {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a8b8a;
  padding: 16px 14px 4px;
}
.side-nav .side-heading:first-child { padding-top: 4px; }

/* Collapsible nav groups (dropdowns) */
.side-group { display: grid; }
.side-group-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; background: none; border: none; cursor: pointer; font-family: inherit;
  color: #8a8b8a; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 14px 7px; transition: color .15s ease;
}
.side-group-toggle:hover { color: #cfcfcf; }
.side-caret { width: 14px; height: 14px; flex: 0 0 14px; color: #6f706f; transition: transform .22s ease; }
.side-group.open > .side-group-toggle .side-caret { transform: rotate(180deg); }
.side-group-items { display: grid; gap: 5px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .25s ease, opacity .2s ease; }
.side-group.open > .side-group-items { max-height: 420px; opacity: 1; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .section-title { margin-bottom: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.page-head .section-title::after { display: none; }

/* Dashboard home */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.home-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.home-card h3 { font-size: 1.05rem; }
.home-card p { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.home-card span { color: var(--brand); font-weight: 700; font-size: .9rem; }

/* Roles & permissions */
.roles-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; margin-bottom: 24px; }
@media (max-width: 900px) { .roles-grid { grid-template-columns: 1fr; } }
.perm-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.perm-list { display: flex; flex-wrap: wrap; gap: 8px; }
.perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #faeaeb;
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
}
.perm-chip form { display: inline-flex; }
.perm-chip button {
  background: none;
  border: none;
  color: var(--brand-dark);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 5px;
  border-radius: 50%;
}
.perm-chip button:hover { color: var(--danger); }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #cfcfcf;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 11px 14px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.side-nav a svg { width: 18px; height: 18px; color: #8f8f8f; flex: 0 0 18px; transition: color .15s ease; }
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav a:hover svg { color: #fff; }
.side-nav a.active { background: var(--brand); color: #fff; }
.side-nav a.active svg { color: #fff; }
.side-avatar {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #eee9e8;
  padding: 10px 40px;
  gap: 16px;
}
.sidebar-toggle {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.sidebar-toggle:hover { background: var(--bg-soft); }
.profile-menu { position: relative; }
.profile-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 12px;
}
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu summary:hover { background: var(--bg-soft); }
.pm-name { text-align: left; line-height: 1.25; }
.pm-name strong { display: block; font-size: .92rem; }
.pm-name small { color: var(--ink-soft); font-size: .78rem; }
.pm-caret { color: var(--ink-soft); font-size: .8rem; }
.pm-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: #fff;
  border: 1px solid #eee9e8;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(39, 40, 39, .16);
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 50;
}
.pm-dropdown a, .pm-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.pm-dropdown a:hover, .pm-dropdown button:hover { background: var(--bg-soft); color: var(--brand); }
.admin-page { padding: 32px 40px 60px; }
/* Styled file upload with image preview */
.file-field { display: flex; align-items: center; gap: 12px; }
.file-preview {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f7f6f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ink-soft);
}
.file-preview { position: relative; }
.file-preview img { width: 100%; height: 100%; object-fit: contain; }
.file-preview:has(img) { cursor: zoom-in; }
.file-preview:has(img)::after {
  content: "\f00e"; /* magnifying-glass-plus */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 3px; bottom: 3px;
  width: 18px; height: 18px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(39, 40, 39, .62); color: #fff;
  font-size: .58rem; opacity: 0; transition: opacity .15s ease;
  pointer-events: none;
}
.file-preview:hover:has(img)::after { opacity: 1; }

/* Click-to-zoom lightbox (sits above modals) */
.img-lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin;
  background: rgba(22, 23, 22, .82);
  cursor: zoom-out;
  animation: lb-fade .18s ease;
}
.img-lightbox[hidden] { display: none; }
.img-lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  background: #fff;
}
.img-lightbox .lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.img-lightbox .lb-close:hover { background: var(--brand); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.file-btn:hover { border-color: var(--brand); color: var(--brand); }
.file-name {
  font-size: .85rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Shared admin modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  background: rgba(39, 40, 39, .55);
  backdrop-filter: blur(3px);
}
.modal-overlay[hidden] { display: none; }
.modal-panel {
  width: 100%;
  max-width: 640px;
  margin: auto;
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(39, 40, 39, .3);
  animation: modalIn .18s ease;
}
.modal-header { flex-shrink: 0; }
/* min-height:0 lets this flex child shrink and scroll instead of overflowing the panel */
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #eee9e8;
}
.modal-title { font-size: 1.15rem; }
.modal-x {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 4px;
}
.modal-x:hover { color: var(--ink); }
.modal-body { padding: 24px; }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.modal-grid > * { min-width: 0; }
.modal-grid .span-2 { grid-column: 1 / -1; }
.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 12px;
  margin: 22px -24px -24px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid #eee9e8;
}
@media (max-width: 560px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 16px; }
}

/* Rounded form controls across admin pages */
.admin-page input[type=text],
.admin-page input[type=email],
.admin-page input[type=tel],
.admin-page input[type=password],
.admin-page input[type=number],
.admin-page input[type=date],
.admin-page select,
.admin-page textarea {
  border-radius: 8px;
}

/* Compact, rounded form controls inside modals */
.modal-body input[type=text],
.modal-body input[type=email],
.modal-body input[type=tel],
.modal-body input[type=password],
.modal-body input[type=number],
.modal-body select,
.modal-body textarea {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .95rem;
}
.modal-body .field-label { margin-bottom: 5px; }
.modal-body .rich-editor-holder .ql-editor { min-height: 110px; max-height: 190px; }
.modal-body textarea { max-width: 100%; resize: vertical; }
.modal-body .select2-container { max-width: 100%; }
.modal-body .select2-container--default .select2-selection--single {
  height: 40px;
  border-radius: 8px;
}
.modal-body .select2-selection__rendered { overflow: hidden; text-overflow: ellipsis; }
.modal-body .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  font-size: .95rem;
}
.modal-body .select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }

/* Table row action icons */
.row-actions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.row-actions form { display: inline-flex; margin: 0; }
.row-actions a,
.row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d8d2d2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  color: var(--ink);
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.row-actions a:hover,
.row-actions button:hover { border-color: var(--brand); color: var(--brand); background: #faeaeb; }
.row-actions .link-danger { color: var(--danger); }
.row-actions .link-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 980px; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

/* Admin cards are flat — border only, no drop shadow */
.admin-page .card { box-shadow: none; }
.admin-page .card:hover { box-shadow: none; border-color: #ddd6d6; transform: none; }

/* Card section header (icon chip + title/subtitle) */
.card-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.card-head .card-ic {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--ink);
}
.card-head .card-ic svg { width: 20px; height: 20px; }
.card-head h3 { font-size: 1.05rem; font-weight: 900; margin: 0 0 2px; }
.card-head p { color: var(--ink-soft); font-size: .9rem; margin: 0; }

/* Profile forms — slimmer inputs */
.profile-grid input[type=text],
.profile-grid input[type=email],
.profile-grid input[type=password] {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .95rem;
}

/* Profile page */
.side-avatar { overflow: hidden; }
.side-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-hero-card { padding: 0; overflow: hidden; margin-bottom: 24px; max-width: 980px; }
.profile-banner {
  height: 110px;
  background:
    radial-gradient(420px 160px at 85% 20%, rgba(199, 58, 65, .55), transparent 70%),
    linear-gradient(120deg, #161716, #272827 60%, #3a2426);
}
.profile-hero-body {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 28px 22px;
  margin-top: -44px;
}
.profile-avatar-xl {
  flex: 0 0 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.profile-avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-info { flex: 1; min-width: 0; }
.profile-hero-info h2 { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-hero-info p { color: var(--ink-soft); margin: 2px 0; }
.profile-hero-info small { color: var(--ink-soft); font-size: .82rem; }
.role-chip {
  background: #faeaeb;
  color: var(--brand-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.remove-avatar-form { padding-bottom: 6px; }

@media (max-width: 640px) {
  .profile-banner { height: 96px; }
  .profile-hero-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 0 20px 24px;
    margin-top: -52px;
  }
  .profile-hero-info { flex: none; width: 100%; }
  .profile-hero-info h2 { justify-content: center; font-size: 1.2rem; }
  .remove-avatar-form { padding-bottom: 0; }
}

.avatar-upload { display: flex; align-items: stretch; gap: 16px; }
.avatar-preview {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #eee9e8, var(--shadow);
  cursor: pointer;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-cam {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(39, 40, 39, .5);
  color: #fff; opacity: 0; transition: opacity .18s ease;
}
.avatar-cam svg { width: 22px; height: 22px; }
.avatar-preview:hover .avatar-cam { opacity: 1; }

.avatar-drop {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px dashed #d6c9c9;
  border-radius: 12px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.avatar-drop:hover { border-color: var(--brand); background: #faeaeb; }
.avatar-drop.is-drag { border-color: var(--brand); background: #faeaeb; box-shadow: 0 0 0 3px rgba(199, 58, 65, .12); }
.avatar-drop.is-error { border-color: var(--danger); background: #fef2f2; }
.avatar-drop-ic {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand); border: 1px solid #eee6e6;
}
.avatar-drop-ic svg { width: 19px; height: 19px; }
.avatar-drop-text { display: flex; flex-direction: column; min-width: 0; }
.avatar-drop-main { font-size: .9rem; color: var(--ink); }
.avatar-drop-main strong { color: var(--brand); font-weight: 700; }
.avatar-drop.is-error .avatar-drop-main strong { color: var(--danger); }
.upload-hint { color: var(--ink-soft); font-size: .8rem; margin-top: 3px; }
.avatar-drop.is-error .upload-hint { color: var(--danger); }
@media (max-width: 480px) {
  .avatar-upload { flex-direction: column; align-items: flex-start; }
  .avatar-drop { width: 100%; }
}
@media (max-width: 860px) {
  .admin-body { flex-direction: row; }
  .admin-sidebar { position: fixed; height: 100vh; left: 0; top: 0; flex: 0 0 240px; transform: translateX(0); padding-left: 16px; padding-right: 16px; }
  .is-collapsed .admin-sidebar { flex: 0 0 240px; transform: translateX(-160px); }
  .is-collapsed .admin-sidebar .side-nav { display: none; }
  .is-collapsed .admin-sidebar .side-heading { display: none; }
  .side-nav { grid-template-columns: 1fr; }
  .admin-topbar { padding: 10px 24px; }
  .admin-page { padding: 24px; }
}

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .92rem;
}
.tools-picker { max-height: 185px; overflow-y: auto; padding-right: 6px; }
.tools-picker::-webkit-scrollbar { width: 8px; }
.tools-picker::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.tools-picker details {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.tools-picker summary { font-weight: 700; cursor: pointer; font-size: .95rem; }
.tools-picker .options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--ink-soft); }
.chk input { accent-color: var(--brand); width: 17px; height: 17px; }
.consent { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }

/* ---------- Multi-step form ---------- */
.step-meta { font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.step-meta span { color: var(--brand); }
.step-title { font-size: 1.15rem; margin: 2px 0 6px; color: var(--ink); }
.step-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  margin: 8px 0 16px;
  overflow: hidden;
}
.step-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #7e2226);
  border-radius: 999px;
  transition: width .3s ease;
}
#regForm { position: relative; display: flex; flex-direction: column; }
.form-step { display: none; }
.form-step.active { display: flex; flex-direction: column; animation: stepIn .25s ease; }
.form-step.measuring {
  display: block !important;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 0;
  pointer-events: none;
  animation: none !important;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.form-nav { display: flex; gap: 12px; margin-top: 24px; }
.form-nav .btn { flex: 1; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid #cbd5e1; }
.btn-outline:hover { background: var(--bg-soft); }

/* Destructive actions: brand red, but outlined so it never competes with the
   primary .btn-brand call to action until you hover it. */
.btn-danger { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-danger:hover, .btn-danger:focus { background: var(--brand); color: #fff; }
.btn-danger:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Creative touches ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: rgba(226, 84, 91, .45); top: -140px; left: -120px; }
.blob-2 { width: 480px; height: 480px; background: rgba(199, 58, 65, .5); bottom: -180px; right: -140px; animation-delay: -8s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}

.grad-text {
  background: linear-gradient(90deg, #e2545b, #f0a3a7, #c73a41, #e2545b);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 300% center; } }

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

/* Marquee */
.marquee { background: var(--ink); padding: 16px 0; overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-item { color: #cbd5e1; font-weight: 600; white-space: nowrap; font-size: .95rem; }
.marquee-item::before { content: "✦"; color: var(--accent); margin-right: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Split sections with images */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: .9fr 1.1fr; }
.split .section-lead { margin-bottom: 18px; }
.split-media { position: relative; padding: 18px; }
.img-frame { position: relative; }
.img-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  background: linear-gradient(135deg, var(--brand), #7e2226);
  border-radius: 22px;
  transform: rotate(-3deg);
  opacity: .9;
}
.img-frame img {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(39, 40, 39, .22);
}
.mini-card {
  position: absolute;
  bottom: -4px;
  left: -6px;
  z-index: 2;
  background: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(39, 40, 39, .2);
  animation: bob 5s ease-in-out infinite;
}
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .split-media { order: 2; }
}

/* Section title accent */
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), #7e2226);
  margin-top: 12px;
}
.center .section-title::after, .final-cta .section-title::after { margin-left: auto; margin-right: auto; }

/* Hover life for cards & steps */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover {
  transform: translateY(-6px);
  border-color: #eec6c8;
}
.card:hover .icon { animation: wiggle .5s ease; display: inline-block; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg) scale(1.15); }
  75% { transform: rotate(12deg) scale(1.15); }
}
.step-num { background: linear-gradient(135deg, var(--brand), #7e2226); transition: transform .25s ease; }
.step:hover .step-num { transform: scale(1.12) rotate(-6deg); }

/* Scroll reveal (classes added by JS) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .blob, .grad-text, .float-chip, .marquee-track, .mini-card, .step-bar span,
  .card, .step-num, .form-step.active { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Select2 ---------- */
.select2-container--default .select2-selection--single {
  height: 50px;
  border: 1.5px solid #cbd5e1;
  border-radius: 0;
  background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 47px;
  padding-left: 14px;
  padding-right: 32px;
  color: var(--ink);
  font-size: 1rem;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #64748b; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #cbd5e1;
  outline: none;
}
.select2-selection { outline: none !important; }
.select2-dropdown {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1.5px solid #cbd5e1;
  border-radius: 0;
  padding: 8px 12px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand); }
.phone-row .select2 { flex: 0 0 46%; min-width: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    linear-gradient(135deg, rgba(22, 23, 22, .92), rgba(199, 58, 65, .82)),
    url('../img/celebrate.jpg') center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.final-cta .section-lead { color: rgba(255,255,255,.85); }
.micro { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 14px; }

footer { background: var(--ink); color: #b9bab9; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 24px 40px; }
.footer-grid p { max-width: 380px; line-height: 1.7; }
footer h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
footer ul { list-style: none; display: grid; gap: 9px; }
footer a { color: #b9bab9; text-decoration: none; transition: color .15s ease; }
footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; text-align: center; font-size: .85rem; color: #8a8b8a; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Thank you ---------- */
.thanks-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.thanks-card { max-width: 640px; text-align: center; }
.thanks-card .big { font-size: 3rem; margin-bottom: 16px; }
.socials { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}
.social-btn:hover { background: #e2e8f0; }

/* ---------- Auth / Admin ---------- */
.auth-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(199, 58, 65, .35), transparent 60%),
    radial-gradient(560px 420px at 85% 85%, rgba(199, 58, 65, .28), transparent 60%),
    linear-gradient(135deg, #272827 0%, #161716 100%);
}
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.auth-card .form-card { box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.auth-logo { display: block; text-align: center; margin-bottom: 22px; }
.auth-logo img { height: 42px; filter: brightness(0) invert(1); }
.auth-eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--brand); }
.auth-title { font-size: 1.5rem; line-height: 1.2; margin: 6px 0 6px; }
.auth-sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 20px; }
.auth-foot { text-align: center; color: var(--ink-soft); font-size: .85rem; margin-top: 16px; }
.auth-card input[type=email],
.auth-card input[type=password],
.auth-card input[type=text] { border-radius: 8px; }

.admin-nav {
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
}
.admin-nav .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-nav .brand { font-weight: 800; color: #fff; text-decoration: none; }
.admin-nav .brand span { color: var(--accent); }
.admin-nav form { display: inline; }
.admin-nav .actions { display: flex; gap: 12px; align-items: center; }
.admin-main { padding: 36px 0 60px; background: var(--bg-soft); min-height: calc(100vh - 60px); }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  position: relative;
  background: #fff;
  border: 1px solid #eee6e6;
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: #ddd6d6; }
.stat-card .stat-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 11px; background: var(--bg-soft); color: var(--ink);
}
.stat-card .stat-ic svg { width: 20px; height: 20px; }
.stat-card .num { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-card .lbl { color: var(--ink-soft); font-size: .88rem; margin-top: 2px; }
.stat-card .stat-meta { margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }

/* Stat card with a breakdown behind it (e.g. countries → per-country counts).
   The card clips its own content, so the host has to hand that back. */
.stat-pop-host { overflow: visible; cursor: default; }
.stat-pop-host:focus { outline: 2px solid rgba(199, 58, 65, .45); outline-offset: 2px; }
.stat-pop {
  position: absolute; z-index: 40; top: calc(100% - 6px); left: 0; min-width: 100%; width: max-content; max-width: 330px;
  /* No gap to the card: the pointer has to be able to travel into the list. */
  padding: 14px 16px; border: 1px solid #eee6e6; border-radius: var(--radius);
  background: #fff; box-shadow: 0 18px 40px rgba(39, 40, 39, .16);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.stat-pop-host:hover .stat-pop,
.stat-pop-host:focus .stat-pop,
.stat-pop-host:focus-within .stat-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.stat-pop-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #f0eaea;
}
.stat-pop-head b { color: var(--ink); font-size: .85rem; letter-spacing: 0; }
/* Scrolls past ~9 countries, with no visible scrollbar — the list is short
   enough that a bar would be more chrome than help. */
.stat-pop-list {
  list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain;
}
.stat-pop-list::-webkit-scrollbar { width: 0; height: 0; display: none; }
.stat-pop-list li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .85rem; }
.stat-pop-list li + li { border-top: 1px solid #f7f3f3; }
.stat-pop-name { flex: 1 1 auto; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-pop-bar { flex: 0 0 56px; height: 6px; border-radius: 4px; background: #f0eaea; overflow: hidden; }
.stat-pop-bar span { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.stat-pop-list b { flex: 0 0 auto; color: var(--ink); font-weight: 700; min-width: 28px; text-align: right; }
/* Last column of cards: flip the panel so it can't run off the page. */
.stat-cards .stat-pop-host:last-child .stat-pop { left: auto; right: 0; }
@media (max-width: 640px) { .stat-pop { max-width: 100%; } }

/* ---------- Dashboard home ---------- */
.dash-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 26px;
  padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, #272827 0%, #161716 100%);
  color: #fff; position: relative; overflow: hidden;
}
.dash-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,58,65,.45), transparent 70%);
  pointer-events: none;
}
.dash-hero-text { position: relative; z-index: 1; }
.dash-hero .dash-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--accent); }
.dash-hero .section-title { color: #fff; margin: 6px 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.dash-hero .section-title::after { display: none; }
.dash-hero-sub { color: rgba(255,255,255,.72); font-size: .95rem; margin: 0; }
.dash-hero-cta { position: relative; z-index: 1; white-space: nowrap; }

.dash-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } }

.dash-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-block-head h2 { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.dash-block-head a { font-size: .85rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.dash-block-head a:hover { text-decoration: underline; }

.dash-recent { padding: 6px; }
.recent-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px; text-decoration: none;
  color: var(--ink); transition: background .15s ease;
}
.recent-row + .recent-row { border-top: 1px solid #f0eaea; }
.recent-row:hover { background: var(--bg-soft); }
.recent-avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--ink); border: 1px solid #eee6e6;
  font-weight: 800; font-size: 1rem;
}
.recent-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.recent-name { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-sub { color: var(--ink-soft); font-size: .82rem; }
.recent-time { color: var(--ink-soft); font-size: .78rem; white-space: nowrap; }
.dash-empty { color: var(--ink-soft); padding: 24px; text-align: center; }

.quick-links { display: grid; gap: 10px; }
.quick-link {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; background: #fff;
  border: 1px solid #eee6e6; border-radius: 12px;
  text-decoration: none; color: var(--ink);
  transition: transform .15s ease, border-color .15s ease;
}
.quick-link:hover { transform: translateX(3px); border-color: #ddd6d6; }
.quick-link .ql-ic {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.quick-link:hover .ql-ic { background: #faeaeb; color: var(--brand); }
.quick-link .ql-ic svg { width: 19px; height: 19px; }
.quick-link span:last-child { display: flex; flex-direction: column; }
.quick-link strong { font-size: .93rem; font-weight: 700; }
.quick-link small { color: var(--ink-soft); font-size: .8rem; }

.toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.toolbar input[type=text] { max-width: 320px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-yes { background: #d1fae5; color: var(--success); }
.badge-no { background: var(--bg-soft); color: var(--ink-soft); }

.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span {
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
  background: #fff; border: 1.5px solid #e2e8f0; color: var(--ink); font-size: .9rem; font-weight: 500; transition: all .15s ease;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active span { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled span { opacity: .4; cursor: not-allowed; }
.jobs-pagination { text-align: center; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.detail-item { background: #fff; border-radius: 10px; padding: 14px 18px; border: 1px solid #e2e8f0; }
.detail-item .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 4px; }
.detail-item .val { font-weight: 600; }

/* Email template editor */
.email-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.email-editor-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.email-editor-side .card { padding: 18px 20px; }
.email-editor-side h3 { font-size: 1rem; }
@media (max-width: 1100px) { .email-editor-grid { grid-template-columns: 1fr; } .email-editor-side { position: static; } }

.placeholder-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.placeholder-list li { display: flex; flex-direction: column; gap: 2px; }
.placeholder-list code {
  background: #faeaeb; color: var(--brand); font-size: .82rem;
  padding: 3px 8px; border-radius: 6px; align-self: flex-start; font-weight: 600;
}
.placeholder-list span { font-size: .82rem; color: var(--ink-soft); }

.email-preview-frame { width: 100%; height: 420px; border: 1px solid #e2e8f0; border-radius: 10px; background: var(--bg-soft); }

/* ============================================================
   PULSE CHECK — public session check-in surveys (/check-in)
   ============================================================ */

.pulse-wrap { background: var(--bg-soft); min-height: calc(100vh - 78px); padding: 60px 0 80px; }
.pulse-narrow { max-width: 680px; }

.pulse-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.pulse-eyebrow svg { width: 18px; height: 18px; color: var(--brand); }

.pulse-title { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 14px; }
.pulse-lead { color: var(--ink-soft); max-width: 460px; margin-bottom: 38px; }

.pulse-cards { display: grid; gap: 16px; }
.pulse-card {
  display: block; text-decoration: none; background: var(--bg);
  border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 24px;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.pulse-card:hover {
  transform: translateY(-2px); border-color: var(--brand);
  box-shadow: 0 10px 26px rgba(199, 58, 65, .15);
}
.pulse-card-eyebrow {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}
.pulse-card-title { font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; }
.pulse-card-desc { font-size: .92rem; color: var(--ink-soft); margin-bottom: 16px; }
.pulse-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 700; color: var(--brand);
}
.pulse-card-cta svg { width: 15px; height: 15px; }
.pulse-empty { padding: 28px; color: var(--ink-soft); }

/* --- progress + chrome --- */
.pulse-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.pulse-back {
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}
.pulse-back:hover { color: var(--brand); }
.pulse-back svg { width: 16px; height: 16px; }

.pulse-bars { display: flex; align-items: flex-end; gap: 4px; }
.pulse-bars span { width: 6px; border-radius: 2px; background: #e2e8f0; transition: background .25s ease; }
.pulse-bars span.on { background: var(--brand); }

.pulse-step-meta {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px;
}

/* --- the question steps --- */
.pulse-form.is-stepped .pulse-step { display: none; }
.pulse-form.is-stepped .pulse-step.active { display: block; }
.pulse-form:not(.is-stepped) .pulse-step + .pulse-step { margin-top: 44px; }

.pulse-question {
  font-size: clamp(1.25rem, 3.4vw, 1.75rem); line-height: 1.25;
  letter-spacing: -.01em; margin-bottom: 24px;
}
.pulse-optional {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--bg-soft); border: 1px solid #e2e8f0;
  border-radius: 999px; padding: 3px 9px;
}

.pulse-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pulse-chip { cursor: pointer; }
.pulse-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.pulse-chip span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid #e2e8f0; background: var(--bg);
  font-size: .9rem; font-weight: 500; color: var(--ink);
  transition: all .15s ease;
}
.pulse-chip:hover span { border-color: var(--brand); }
.pulse-chip input:checked + span { border-color: var(--brand); background: #faeaeb; color: var(--brand); font-weight: 600; }
.pulse-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.pulse-scale { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pulse-dot { cursor: pointer; }
.pulse-dot input { position: absolute; opacity: 0; width: 0; height: 0; }
.pulse-dot span {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid #e2e8f0; background: var(--bg);
  font-weight: 700; font-size: 1rem; color: var(--ink);
  transition: all .15s ease;
}
.pulse-dot:hover span { border-color: var(--brand); }
.pulse-dot input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.pulse-dot input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pulse-scale-ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-soft); }

.pulse-text {
  width: 100%; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 14px 16px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
  resize: vertical; outline: none; transition: border-color .15s ease;
}
.pulse-text:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 58, 65, .15); }

.pulse-actions { display: flex; gap: 10px; align-items: center; margin-top: 34px; }
.pulse-advance { flex: 1; justify-content: center; }

/* --- thank you --- */
.pulse-done { text-align: center; padding-top: 60px; }
.pulse-done-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%; background: #faeaeb;
  color: var(--brand); margin-bottom: 20px;
}
.pulse-done-ic svg { width: 28px; height: 28px; }
.pulse-done-title { font-size: 1.7rem; margin-bottom: 8px; }
.pulse-done-msg { color: var(--ink-soft); margin-bottom: 28px; }

@media (max-width: 560px) {
  .pulse-wrap { padding: 36px 0 60px; }
  .pulse-dot span { width: 44px; height: 44px; }
}

/* ============================================================
   PULSE CHECK — dashboard results
   ============================================================ */

.sv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.sv-tab {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid #e2e8f0;
  background: var(--bg); color: var(--ink-soft); font-size: .85rem; font-weight: 600;
  transition: all .15s ease;
}
.sv-tab:hover { border-color: var(--brand); color: var(--brand); }
.sv-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sv-tab b { font-weight: 700; }
/* A survey that's been switched off still has results worth reading. */
.sv-tab-closed {
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px; background: #faeaeb; color: var(--brand-dark);
}
.sv-tab.active .sv-tab-closed { background: rgba(255, 255, 255, .16); color: #fff; }
.sv-empty-state { text-align: center; padding: 48px 24px; }

/* Results screen: flat surfaces, no outlines — separation comes from spacing
   and a soft shadow, so the numbers are the only thing drawing a line. */
.sv-flat, .card.sv-flat, .stat-card.sv-flat {
  border: 0;
  box-shadow: 0 1px 2px rgba(39, 40, 39, .04), 0 10px 26px rgba(39, 40, 39, .05);
}
.sv-flat:hover { transform: none; border-color: transparent; }

/* A card whose whole body is folded away until asked for. */
.sv-disclose { padding: 0; overflow: hidden; }
.sv-disclose > summary {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 20px 26px; list-style: none;
}
.sv-disclose > summary::-webkit-details-marker { display: none; }
.sv-disclose > summary:hover .sv-disclose-title { color: var(--brand); }
.sv-disclose-title { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.sv-disclose-hint {
  flex: 1 1 auto; min-width: 0; font-size: .82rem; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv-disclose > *:not(summary) { padding: 0 26px 24px; }
.sv-disclose .sv-share { margin-bottom: 0; }

.sv-chevron {
  flex: 0 0 16px; width: 16px; height: 16px; color: var(--ink-soft);
  transition: transform .18s ease;
}
details[open] > summary .sv-chevron { transform: rotate(90deg); color: var(--brand); }

.sv-expand-all {
  margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .82rem; font-weight: 700; color: var(--brand);
}
.sv-expand-all:hover { color: var(--brand-dark); text-decoration: underline; }

/* One question per row: headline visible, distribution on demand. */
.sv-questions { display: grid; }
.sv-q + .sv-q { border-top: 1px solid #f2ecec; }
.sv-q > summary {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 0; list-style: none;
}
.sv-q > summary::-webkit-details-marker { display: none; }
.sv-q > summary:hover .sv-q-title { color: var(--brand); }
.sv-q-head { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sv-q-title { font-size: .95rem; font-weight: 700; color: var(--ink); }
.sv-q-meta { font-size: .76rem; color: var(--ink-soft); }
.sv-q-headline {
  flex: 0 0 auto; max-width: 45%; text-align: right;
  font-size: .82rem; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv-q-headline b { color: var(--ink); font-weight: 700; }
.sv-q-body { padding: 2px 0 18px 30px; }
@media (max-width: 640px) {
  .sv-q-headline { max-width: 38%; }
  .sv-q-body { padding-left: 0; }
  .sv-disclose > summary, .sv-disclose > *:not(summary) { padding-inline: 18px; }
}

.sv-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; }
.sv-bar-label { width: 170px; flex-shrink: 0; font-size: .82rem; color: var(--ink-soft); }
.sv-bar { flex: 1; height: 10px; border-radius: 6px; background: #eef1f5; overflow: hidden; }
.sv-bar-fill { display: block; height: 100%; border-radius: 6px; background: var(--brand); transition: width .3s ease; }
.sv-bar-count { width: 62px; flex-shrink: 0; text-align: right; font-size: .8rem; font-weight: 600; color: var(--ink); }

.sv-quotes { display: grid; gap: 8px; }
.sv-quote {
  background: var(--bg-soft); border-left: 3px solid var(--brand); border-radius: 8px;
  padding: 10px 14px; font-size: .9rem; color: var(--ink);
}
.sv-more { font-size: .78rem; color: var(--ink-soft); }
.sv-empty { color: var(--ink-soft); font-size: .88rem; }

@media (max-width: 640px) {
  .sv-bar-label { width: 110px; font-size: .76rem; }
}

/* Share panel — QR + link for the public check-in form */
.sv-share { display: flex; gap: 24px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.sv-share-qr {
  /* Fixed box: the QR is drawn by a CDN script, and the panel must not
     collapse into nothing when that script can't load. */
  flex: 0 0 auto; width: 188px; height: 188px; padding: 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px solid var(--ink); border-radius: 14px; background: #fff; line-height: 0;
}
.sv-share-qr.is-missing { border-color: var(--brand); background: #faeaeb; }
.sv-qr-fallback { display: flex; flex-direction: column; gap: 4px; line-height: 1.4; padding: 6px; }
.sv-qr-fallback strong { font-size: .85rem; color: var(--brand); }
.sv-qr-fallback span { font-size: .74rem; color: var(--ink-soft); }
.sv-share-body { flex: 1 1 320px; }
.sv-share-body h2 { font-size: 1.05rem; margin-bottom: 6px; }
.sv-share-body p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; max-width: 460px; }
.sv-share-url {
  font-size: .84rem; font-weight: 600; color: var(--brand); background: #faeaeb;
  border-radius: 8px; padding: 8px 12px; display: inline-block; word-break: break-all;
  margin-bottom: 14px;
}
.sv-share-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .sv-share { justify-content: center; text-align: center; } .sv-share-body p { margin-inline: auto; } }

/* ==========================================================================
   Session videos — public grid (landing highlights + /videos page)
   ========================================================================== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  display: flex; flex-direction: column; padding: 0 !important; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.video-card:hover { transform: translateY(-4px); border-color: #eec6c8; }

/* The clickable poster. It is a link to YouTube until the script swaps it for
   an iframe, so it must look like a play surface either way. */
.video-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink); text-decoration: none;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .2s ease; }
.video-thumb:hover img { transform: scale(1.04); opacity: .85; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand); color: #fff;
  box-shadow: 0 10px 26px rgba(199, 58, 65, .45);
  transition: transform .2s ease, background .2s ease;
}
.video-play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-thumb:hover .video-play { transform: scale(1.08); background: var(--brand-dark); }
.video-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(39, 40, 39, .82); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 999px;
}
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink); }

.video-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; flex: 1; }
.video-meta { color: var(--ink-soft); font-size: .8rem; }
.video-body h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.video-desc { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; flex: 1; }
.video-link { color: var(--brand); font-weight: 700; font-size: .88rem; text-decoration: none; margin-top: 4px; }
.video-link:hover { color: var(--brand-dark); }

/* ==========================================================================
   Talent pool — public CV drop, recruiter candidate cards, plan pricing
   ========================================================================== */
.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;
}

/* --- public drop form --- */
.talent-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; max-width: 1060px; margin: 0 auto; }
@media (max-width: 900px) { .talent-wrap { grid-template-columns: 1fr; } }
.talent-note h3 { margin-bottom: 14px; }
.talent-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.talent-steps li { display: flex; gap: 12px; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.talent-steps span {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #faeaeb; color: var(--brand); font-weight: 800; font-size: .82rem;
}
.talent-privacy {
  font-size: .85rem; line-height: 1.6; color: var(--ink-soft);
  background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.talent-stat { font-size: .86rem; color: var(--ink-soft); }
.talent-stat b { color: var(--ink); }

/* --- recruiter candidate cards --- */
.talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.talent-card { display: flex; flex-direction: column; gap: 10px; }
.talent-card.is-unlocked { border-color: #eec6c8; }
.talent-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.talent-card-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.talent-lock {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; background: var(--bg-soft); color: var(--ink-soft);
}
.talent-lock svg { width: 16px; height: 16px; }
.talent-headline { font-size: .9rem; color: var(--ink); font-weight: 600; }
.talent-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.talent-summary { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }
.talent-contact { font-size: .86rem; color: var(--ink-soft); display: grid; gap: 4px; }
.talent-contact b { color: var(--ink); font-weight: 700; margin-right: 6px; }
/* Masked, not blurred: a blur can be undone in devtools, absent data cannot. */
.talent-masked { font-family: monospace; letter-spacing: .04em; color: #bdb5b5; user-select: none; }
.talent-card-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: auto; padding-top: 12px; border-top: 1px solid #f2ecec;
}
.talent-card-foot form { margin: 0; }
.talent-meta { font-size: .78rem; color: var(--ink-soft); }

/* --- plan pricing cards --- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 8px; }
.plan-card.is-featured { border-color: var(--brand); box-shadow: 0 12px 30px rgba(199, 58, 65, .12); }
.plan-flag {
  position: absolute; top: -11px; left: 22px;
  background: var(--brand); color: #fff; font-size: .68rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.plan-name { font-size: 1.05rem; font-weight: 800; margin: 0; }
.plan-price { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.plan-credits { font-size: .9rem; font-weight: 700; color: var(--brand); }
.plan-blurb { font-size: .88rem; color: var(--ink-soft); }
.plan-features { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 7px; }
.plan-features li { position: relative; padding-left: 22px; font-size: .87rem; color: var(--ink-soft); }
.plan-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 800; font-size: .85rem;
}
.plan-card form { margin-top: auto; }

/* ==========================================================================
   Questionnaires — public form pages (/forms/{slug})
   One long, plain form: no stepper, no JS requirement. Same red-on-charcoal
   palette as everything else; the only new shapes here are the field blocks.
   ========================================================================== */
.qform-wrap { background: var(--bg-soft); min-height: calc(100vh - 78px); padding: 56px 0 80px; }
.qform-narrow { max-width: 720px; }

.qform-head { margin-bottom: 26px; }
.qform-title { font-size: clamp(1.7rem, 4.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px; }
.qform-lead { color: var(--ink-soft); margin-bottom: 6px; white-space: pre-line; }
.qform-deadline { font-size: .82rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }

.qform { display: grid; gap: 18px; }
.qform-field {
  background: #fff; border: 1px solid #ece7e7; border-radius: 14px;
  padding: 20px 22px; box-shadow: 0 6px 18px rgba(39, 40, 39, .04);
}
.qform-field.has-error { border-color: var(--danger); }
.qform-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.qform-label .req { color: var(--brand); margin-left: 2px; }
.qform-optional { font-size: .72rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-left: 6px; }
.qform-help { font-size: .84rem; color: var(--ink-soft); margin: 0 0 10px; }

.qform-field input[type=text],
.qform-field input[type=email],
.qform-field input[type=tel],
.qform-field input[type=number],
.qform-field input[type=date],
.qform-field input[type=file],
.qform-field select,
.qform-field textarea {
  width: 100%; margin-top: 8px; padding: 11px 13px;
  border: 1.5px solid #e2ddde; border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.qform-field textarea { resize: vertical; min-height: 110px; }
.qform-field input:focus,
.qform-field select:focus,
.qform-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 58, 65, .15);
}

/* Radio + checkbox lists share one shape — the control tells them apart. */
.qform-choices { display: grid; gap: 8px; margin-top: 10px; }
.qform-choice {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 10px 13px; border: 1.5px solid #e9e4e4; border-radius: 10px;
  font-size: .94rem; transition: border-color .18s ease, background .18s ease;
}
.qform-choice:hover { border-color: rgba(199, 58, 65, .45); background: var(--bg-soft); }
.qform-choice input { accent-color: var(--brand); width: 17px; height: 17px; margin: 1px 0 0; flex-shrink: 0; }
.qform-choice:has(input:checked) { border-color: var(--brand); background: #faeaeb; }

.qform-actions { margin-top: 8px; text-align: center; }
.qform-note { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; }

.qform-done { text-align: center; padding-top: 40px; }
.qform-done-mark {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff;
}
.qform-done-mark svg { width: 28px; height: 28px; }
.qform-reference { font-size: .88rem; color: var(--ink-soft); margin: 14px 0 26px; }
.qform-reference strong { color: var(--ink); font-family: monospace; letter-spacing: .04em; }

@media (max-width: 640px) {
  .qform-wrap { padding: 34px 0 60px; }
  .qform-field { padding: 16px 16px; border-radius: 12px; }
}

/* Conditional-logic panel inside the question modal. Folded away by default:
   most questions are simply always asked, and the panel shouldn't suggest
   otherwise by taking up room. */
.q-cond { border: 1px dashed #ddd6d6; border-radius: 10px; padding: 12px 14px; background: var(--bg-soft); }
.q-cond > summary {
  cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.q-cond > summary::-webkit-details-marker { display: none; }
.q-cond > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: .8rem; font-weight: 800; line-height: 1;
}
.q-cond[open] > summary::before { content: "−"; }
.q-cond > summary:hover { color: var(--brand); }
.q-cond select[multiple] { padding: 6px; }

/* ==========================================================================
   Finance — the books
   Money in reads green, money out reads brand red. Those two are semantic
   (per DESIGN.md rule 5), not decoration: the whole screen is scanned for
   which way the money went, and hue is what carries that at a glance.
   ========================================================================== */
.fin-in { color: var(--success); }
.fin-out { color: var(--brand); }
.fin-in-bg { background: var(--success); }
.fin-out-bg { background: var(--brand); }
.badge-out { background: #faeaeb; color: var(--brand); }

.fin-period {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  margin: -6px 0 22px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid #ece7e7; border-radius: 12px;
}
.fin-period input[type=date] {
  padding: 8px 11px; border: 1.5px solid #e2ddde; border-radius: 9px;
  font-family: inherit; font-size: .9rem; color: var(--ink); background: #fff;
}
.fin-period input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 58, 65, .15); }
.fin-period .field-label { margin-bottom: 4px; }
.fin-period-reset { font-size: .82rem; color: var(--ink-soft); align-self: center; }
.fin-period-reset:hover { color: var(--brand); }

.fin-breakdowns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.fin-breakdown h3 { font-size: .95rem; font-weight: 800; margin-bottom: 14px; }
.fin-bar-row { margin-bottom: 12px; }
.fin-bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: .87rem; margin-bottom: 5px; }
.fin-bar-head b { white-space: nowrap; font-weight: 700; }
.fin-bar { height: 7px; border-radius: 999px; background: #efe9e9; overflow: hidden; }
.fin-bar span { display: block; height: 100%; border-radius: 999px; }
.fin-bar-share { font-size: .74rem; color: var(--ink-soft); margin-top: 3px; }

.fin-docs { color: var(--ink-soft); font-size: .82rem; white-space: nowrap; }
.fin-docs i { color: var(--brand); }

.fin-headline { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.fin-headline-amount { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.fin-headline-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-soft); font-size: .9rem; }

.fin-doc {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid #f2ecec;
}
.fin-doc:last-of-type { border-bottom: 0; }
.fin-doc form { margin: 0 0 0 auto; }
.fin-doc-kind {
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-soft);
}
.fin-doc-invoice { background: #faeaeb; color: var(--brand); }
.fin-doc-receipt { background: #d1fae5; color: var(--success); }
.fin-doc-name { font-weight: 600; word-break: break-all; }
.fin-doc-meta { font-size: .78rem; color: var(--ink-soft); }

.fin-doc-add {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed #ddd6d6;
}
.fin-doc-add select, .fin-doc-add input[type=file] {
  padding: 9px 11px; border: 1.5px solid #e2ddde; border-radius: 9px;
  font-family: inherit; font-size: .9rem; background: #fff; width: 100%;
}
.fin-doc-add select:focus, .fin-doc-add input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 58, 65, .15);
}

/* ==========================================================================
   Floating WhatsApp button (public pages)
   The green is WhatsApp's own mark, supplied as an image — a third-party
   identity rather than site decoration, so the palette rule in DESIGN.md
   still holds for everything drawn here: the label pill is charcoal and the
   focus ring is brand red.
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  /* Under the shared modal (200) and the landing promo bar (60), above
     ordinary page content. */
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 999px;
  line-height: 0;
  filter: drop-shadow(0 8px 18px rgba(39, 40, 39, .28));
  transition: transform .2s ease;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(199, 58, 65, .45);
}
.wa-float img { width: 56px; height: 56px; display: block; border-radius: 50%; }

/* The label slides out on hover, so the resting state is just the mark. */
.wa-float-label {
  order: -1;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  padding: 0;
  border-radius: 999px;
  transition: max-width .28s ease, opacity .2s ease, padding .28s ease;
}
.wa-float:hover .wa-float-label,
.wa-float:focus-visible .wa-float-label {
  max-width: 260px;
  opacity: 1;
  padding: 11px 16px;
}

@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; }
  .wa-float img { width: 52px; height: 52px; }
  /* No hover on a touch screen, so the label would never open — and a
     permanently open one just covers the page. */
  .wa-float-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float-label { transition: none; }
  .wa-float:hover { transform: none; }
}

@media print { .wa-float { display: none; } }

/* Payment-charge breakdown (Paystack fee passed on to the payer) */
.fee-breakdown {
  margin: 4px 0 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid #ece7e7;
  border-radius: 10px;
  font-size: .87rem;
}
.fee-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.fee-row + .fee-row { margin-top: 6px; }
.fee-row-total {
  margin-top: 9px; padding-top: 9px;
  border-top: 1px solid #e3dcdc; color: var(--ink); font-weight: 600;
}
.plan-fee-note { font-size: .78rem; color: var(--ink-soft); margin: -4px 0 4px; }
.plan-fee-note strong { color: var(--ink); }
.tuition-total-sub { font-size: .87rem; color: var(--ink-soft); font-weight: 500; }

/* Impersonation banner — visible on every layout while an admin is viewing as
   somebody else. Charcoal rather than red: it is a state, not an error, and it
   must not read as something having gone wrong. */
.imp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 18px;
  background: var(--ink); color: #fff;
  font-size: .88rem; font-weight: 600;
  box-shadow: 0 -6px 20px rgba(39, 40, 39, .28);
}
.imp-bar form { margin: 0; }
.imp-bar-text strong { color: #fff; }
.imp-bar-stop {
  background: #fff; color: var(--ink); border: 0; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  font-family: inherit; font-size: .82rem; font-weight: 700;
}
.imp-bar-stop:hover { background: var(--accent); color: #fff; }
/* Keep the WhatsApp button clear of the bar while it is up. */
.imp-bar ~ .wa-float, body:has(.imp-bar) .wa-float { bottom: 68px; }
@media print { .imp-bar { display: none; } }

/* ---- Error pages -------------------------------------------------------- */
/* Standalone: an error renders no layout, so these carry their own shell. */
.err-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-soft);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--ink);
}
.err-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
}
.err-code {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.err-title { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.err-lead { margin-top: 12px; color: var(--ink-soft); line-height: 1.6; }
.err-actions { margin-top: 28px; }

/* The impersonation escape. Charcoal so it reads as a system message rather
   than as part of the error itself. */
.err-imp {
  margin-top: 28px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.err-imp-text { font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.err-imp-text strong { color: #fff; }

@media (max-width: 560px) {
  .err-card { padding: 34px 22px; }
  .err-title { font-size: 1.35rem; }
}
/* The typed-address fallback, spelled out on the banner so it is learnable
   before the moment it is needed. */
.imp-bar-hint { font-size: .74rem; opacity: .72; white-space: nowrap; }
.imp-bar-hint code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 700px) { .imp-bar-hint { display: none; } }

/* ---- Mail queue panel (Email Delivery) ---------------------------------- */
.mailq {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #f7f8f7;
  border: 1px solid #e6e7e6;
}
.mailq-item { font-size: .9rem; color: var(--ink-soft); }
.mailq-item strong { color: var(--ink); font-size: 1.05rem; }
.mailq-note { flex-basis: 100%; font-size: .85rem; color: var(--ink-soft); }
.mailq-warn {
  flex-basis: 100%;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: #fdf1f2;
  border-radius: 8px;
  padding: 10px 12px;
}
