/* =============================================================
   City Skills Talent Hub — Design System v2
   Author: Chukwuemeka Princewill
   Aesthetic: Refined Editorial — navy/white/emerald, Fraunces + Outfit
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,400&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --ink:       #0F172A;
  --ink-lt:    #1E293B;
  --slate:     #475569;
  --muted:     #94A3B8;
  --border:    #E2E8F0;
  --surface:   #F8FAFC;
  --white:     #FFFFFF;
  --blue:      #1D4ED8;
  --blue-lt:   #2563EB;
  --blue-xlt:  #EFF6FF;
  --emerald:   #059669;
  --emerald-lt:#D1FAE5;
  --amber:     #D97706;
  --amber-lt:  #FEF3C7;
  --red:       #DC2626;
  --red-lt:    #FEE2E2;

  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-xl: 0 24px 64px rgba(15,23,42,0.16);

  --f-display: 'Fraunces', Georgia, serif;
  --f-body:    'Outfit', system-ui, sans-serif;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  200ms;
}

/* ── Reset / Base ─────────────────────────────────────────── */
.csth-root *,
.csth-root *::before,
.csth-root *::after { box-sizing: border-box; margin: 0; padding: 0; }

.csth-root {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.csth-root a { color: var(--blue); text-decoration: none; }
.csth-root a:hover { text-decoration: underline; }

/* ── Container ─────────────────────────────────────────────── */
.csth-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ============== JOB BOARD ============== ── */

/* Hero */
.csth-board-hero {
  background: var(--ink);
  border-radius: var(--r-2xl);
  padding: 80px 64px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.csth-board-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(29,78,216,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(5,150,105,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.csth-board-hero__inner { position: relative; z-index: 1; max-width: 620px; }
.csth-board-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}
.csth-board-hero__kicker span { color: #34D399; }
.csth-board-hero__title {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.csth-board-hero__title em {
  font-style: italic;
  color: #34D399;
}
.csth-board-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.csth-board-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Filter bar */
.csth-filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  align-items: end;
}
@media (max-width: 880px) {
  .csth-filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .csth-filter-bar { grid-template-columns: 1fr; }
}

.csth-filter-group { display: flex; flex-direction: column; gap: 5px; }
.csth-filter-group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Field base */
.csth-select,
.csth-input,
.csth-textarea {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
  line-height: 1.5;
}
.csth-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.csth-select:focus,
.csth-input:focus,
.csth-textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.csth-select.is-error,
.csth-input.is-error { border-color: var(--red); }

.csth-textarea { min-height: 96px; resize: vertical; }

/* Vacancy grid */
.csth-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}
.csth-results-meta strong { color: var(--ink); font-weight: 600; }

.csth-vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
@media (max-width: 560px) { .csth-vacancy-grid { grid-template-columns: 1fr; } }

/* Vacancy card */
.csth-vcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
  cursor: pointer;
  position: relative;
}
.csth-vcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29,78,216,0.25);
}
.csth-vcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.csth-vcard__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--blue-xlt);
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.csth-vcard__title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 5px;
}
.csth-vcard__company {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.csth-vcard__attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.csth-attr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--slate);
}
.csth-attr svg { color: var(--muted); flex-shrink: 0; }
.csth-vcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.csth-vcard__salary {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

/* Badges */
.csth-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.csth-badge--office     { background: var(--blue-xlt);   color: var(--blue); }
.csth-badge--hybrid     { background: var(--amber-lt);   color: var(--amber); }
.csth-badge--remote     { background: var(--emerald-lt); color: var(--emerald); }
.csth-badge--open       { background: var(--emerald-lt); color: var(--emerald); }
.csth-badge--closed     { background: var(--border);     color: var(--muted); }
.csth-badge--pending    { background: var(--amber-lt);   color: var(--amber); }
.csth-badge--applied    { background: var(--blue-xlt);   color: var(--blue); }
.csth-badge--shortlisted{ background: var(--amber-lt);   color: var(--amber); }
.csth-badge--interviewed{ background: #EDE9FE;           color: #6D28D9; }
.csth-badge--offered    { background: var(--amber-lt);   color: var(--amber); }
.csth-badge--hired      { background: var(--emerald-lt); color: var(--emerald); }
.csth-badge--rejected   { background: var(--red-lt);     color: var(--red); }
.csth-badge--active     { background: var(--emerald-lt); color: var(--emerald); }
.csth-badge--deactivated{ background: var(--border);     color: var(--muted); }
.csth-badge--archived   { background: var(--border);     color: var(--muted); }

/* Buttons */
a.csth-btn, button.csth-btn, .csth-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--r-md);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  line-height: 1.3;
  box-sizing: border-box;
}
.csth-btn--primary,
.csth-btn--primary:hover,
.csth-btn--primary:focus,
.csth-btn--primary:active,
.csth-btn--primary:visited,
a.csth-btn--primary,
a.csth-btn--primary:hover,
a.csth-btn--primary:visited {
  color: #ffffff !important;
}
.csth-btn--primary { background: var(--blue); }
.csth-btn--primary:hover {
  background: var(--blue-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,78,216,0.3);
  text-decoration: none !important;
}
.csth-btn--outline {
  background: transparent;
  color: var(--blue) !important;
  border: 1.5px solid var(--blue);
}
.csth-btn--outline:hover {
  background: var(--blue-xlt);
  text-decoration: none !important;
}
.csth-btn--ghost-white,
.csth-btn--ghost-white:hover,
.csth-btn--ghost-white:focus,
.csth-btn--ghost-white:active,
.csth-btn--ghost-white:visited,
a.csth-btn--ghost-white,
a.csth-btn--ghost-white:hover,
a.csth-btn--ghost-white:visited {
  color: #ffffff !important;
}
.csth-btn--ghost-white {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.csth-btn--ghost-white:hover {
  background: rgba(255,255,255,0.22);
  text-decoration: none !important;
}
.csth-btn--neutral {
  background: var(--surface);
  color: var(--slate) !important;
  border: 1.5px solid var(--border);
}
.csth-btn--neutral:hover { background: var(--border); text-decoration: none !important; color: var(--ink) !important; }
.csth-btn--ghost { background: transparent; color: var(--slate) !important; border: 1.5px solid transparent; }
.csth-btn--ghost:hover { background: var(--surface); border-color: var(--border); color: var(--ink) !important; }
.csth-btn--ghost.is-saved { color: var(--blue) !important; }
.csth-btn--danger { background: var(--red); color: #ffffff !important; }
.csth-btn--danger:hover { background: #B91C1C; color: #ffffff !important; text-decoration: none !important; }
.csth-btn--success { background: var(--emerald); color: #ffffff !important; }
.csth-btn--success:hover { background: #047857; color: #ffffff !important; text-decoration: none !important; }
.csth-btn--sm { padding: 7px 14px; font-size: 13px; border-radius: var(--r-sm); }
.csth-btn--lg { padding: 14px 28px; font-size: 16px; border-radius: var(--r-lg); }
.csth-btn--full { width: 100%; }
.csth-btn:disabled, .csth-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.csth-btn .csth-spinner { display: none; }
.csth-btn.is-loading .csth-spinner { display: inline-block; }
.csth-btn.is-loading .csth-btn-label { opacity: 0; }

/* Spinner */
.csth-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: csth-spin 0.65s linear infinite;
  position: absolute;
}
@keyframes csth-spin { to { transform: rotate(360deg); } }

/* Modal */
.csth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px) saturate(1.4);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.csth-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.csth-modal {
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(12px) scale(0.98);
  transition: transform 280ms var(--ease);
}
.csth-modal-overlay.is-open .csth-modal { transform: none; }
.csth-modal--wide { max-width: 800px; }
.csth-modal__header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.csth-modal__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.csth-modal__subtitle { font-size: 13px; color: var(--muted); margin-top: 3px; }
.csth-modal__close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--slate);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background var(--dur), color var(--dur);
}
.csth-modal__close:hover { background: var(--border); color: var(--ink); }
.csth-modal__body { padding: 28px 32px 32px; }

/* ── Forms ─────────────────────────────────────────────────── */
.csth-form { display: flex; flex-direction: column; gap: 18px; }
.csth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .csth-form-row { grid-template-columns: 1fr; } }

.csth-field { display: flex; flex-direction: column; gap: 6px; }
.csth-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-lt);
}
.csth-field__label em { color: var(--red); font-style: normal; margin-left: 2px; }
.csth-field__hint { font-size: 12px; color: var(--muted); }

/* Checkbox */
.csth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.csth-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.csth-check__text { font-size: 13px; color: var(--slate); line-height: 1.5; }
.csth-check__text a { color: var(--blue); }

/* File upload */
.csth-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
}
.csth-upload-zone:hover { border-color: var(--blue); background: var(--blue-xlt); }
.csth-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.csth-upload-zone__icon { font-size: 32px; margin-bottom: 8px; }
.csth-upload-zone__label { font-size: 14px; color: var(--slate); }
.csth-upload-zone__label strong { color: var(--blue); }
.csth-upload-zone__hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.csth-upload-zone__filename { font-size: 13px; color: var(--blue); font-weight: 500; margin-top: 8px; }

/* Step indicator */
.csth-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.csth-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.csth-step-item:not(:last-child) {
  flex: 1;
}
.csth-step-item:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin: 0 8px;
}
.csth-step-item.is-done:not(:last-child)::after { background: var(--blue); }
.csth-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.csth-step-item.is-active .csth-step-num { background: var(--blue); color: var(--white); }
.csth-step-item.is-done   .csth-step-num { background: var(--emerald); color: var(--white); }
.csth-step-label { font-size: 12px; font-weight: 500; color: var(--muted); display: none; }
@media (min-width: 480px) { .csth-step-label { display: block; } }
.csth-step-item.is-active .csth-step-label { color: var(--blue); font-weight: 600; }
.csth-step-item.is-done   .csth-step-label { color: var(--emerald); }

/* Section divider label */
.csth-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

/* ── Inline alert ─────────────────────────────────────────── */
.csth-alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  display: none;
  line-height: 1.5;
}
.csth-alert.is-visible { display: block; }
.csth-alert--success { background: var(--emerald-lt); color: #065F46; border: 1px solid #A7F3D0; }
.csth-alert--error   { background: var(--red-lt);     color: #991B1B; border: 1px solid #FECACA; }
.csth-alert--info    { background: var(--blue-xlt);   color: #1E3A8A; border: 1px solid #BFDBFE; }

/* ── Dashboard layout ─────────────────────────────────────── */
.csth-dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  min-height: 80vh;
  padding: 32px 0 60px;
}
@media (max-width: 800px) { .csth-dash { grid-template-columns: 1fr; } }

/* Sidebar */
.csth-sidebar {
  background: #0F172A;
  border: none;
  border-radius: var(--r-xl);
  padding: 24px;
  position: sticky;
  top: 24px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.18);
}
.csth-sidebar__user { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.csth-sidebar__avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1D4ED8 0%, #059669 100%);
  color: #fff;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.csth-sidebar__name { font-weight: 700; font-size: 15px; color: #ffffff !important; }
.csth-sidebar__role { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }

.csth-nav { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.csth-root .csth-nav__link,
.csth-nav__link {
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  transition: all var(--dur);
  background: transparent;
}
.csth-root .csth-nav__link:hover,
.csth-nav__link:hover { background: rgba(255,255,255,0.08) !important; color: #ffffff !important; text-decoration: none !important; }
.csth-root .csth-nav__link.is-active,
.csth-nav__link.is-active { background: rgba(29,78,216,0.35) !important; color: #ffffff !important; font-weight: 600; }
.csth-nav__link svg { flex-shrink: 0; opacity: 0.5; color: rgba(255,255,255,0.75); }
.csth-nav__link:hover svg { opacity: 0.9; }
.csth-nav__link.is-active svg { opacity: 1; color: #fff; }
.csth-nav__divider { height: 1px; background: rgba(255,255,255,0.10); margin: 8px 0; }

.csth-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* Stats row */
.csth-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.csth-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.csth-stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--blue);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.csth-stat:hover::after { transform: scaleX(1); }
.csth-stat__label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.csth-stat__value { font-family: var(--f-display); font-size: 36px; font-weight: 700; color: var(--ink); line-height: 1; }
.csth-stat__value--blue    { color: var(--blue); }
.csth-stat__value--green   { color: var(--emerald); }
.csth-stat__value--amber   { color: var(--amber); }

/* Panel / Card */
.csth-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.csth-panel__head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.csth-panel__title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.csth-panel__body { padding: 24px; }
.csth-panel__body--np { padding: 0; }

/* Table */
.csth-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.csth-table th {
  background: var(--surface);
  padding: 11px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.csth-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
  vertical-align: middle;
}
.csth-table td strong { color: var(--ink); }
.csth-table tr:last-child td { border-bottom: none; }
.csth-table tr:hover td { background: var(--surface); }
.csth-table__empty { text-align: center; padding: 48px 24px; color: var(--muted); }

/* Profile preview card */
.csth-profile-preview {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.csth-profile-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 95% 10%, rgba(29,78,216,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 5% 90%, rgba(5,150,105,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.csth-profile-preview__inner { position: relative; z-index: 1; }
.csth-profile-preview__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #34D399; margin-bottom: 6px; }
.csth-profile-preview__title { font-family: var(--f-display); font-size: 22px; font-weight: 700; margin-bottom: 14px; line-height: 1.2; }
.csth-profile-preview__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.csth-profile-preview__tag { padding: 4px 12px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); border-radius: 100px; font-size: 12px; font-weight: 500; }

/* Funnel progress */
.csth-funnel { display: flex; flex-direction: column; gap: 16px; }
.csth-funnel__row {}
.csth-funnel__meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.csth-funnel__label { font-size: 14px; font-weight: 500; color: var(--slate); }
.csth-funnel__value { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--ink); }
.csth-progress { background: var(--border); border-radius: 100px; height: 7px; overflow: hidden; }
.csth-progress__bar { height: 100%; border-radius: 100px; transition: width 0.7s var(--ease); }

/* Conversion select */
.csth-conv-select {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  outline: none;
}
.csth-conv-select:focus { border-color: var(--blue); }

/* Disclaimer bar */
.csth-disclaimer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

/* Auth wall */
.csth-auth-wall {
  max-width: 440px;
  margin: 60px auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.csth-auth-wall__icon { font-size: 40px; margin-bottom: 16px; }
.csth-auth-wall__title { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.csth-auth-wall__sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.csth-auth-wall__actions { display: flex; flex-direction: column; gap: 10px; }

/* Empty state */
.csth-empty {
  text-align: center;
  padding: 56px 24px;
}
.csth-empty__icon { font-size: 44px; margin-bottom: 12px; opacity: 0.5; }
.csth-empty__title { font-family: var(--f-display); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.csth-empty__text { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* Register page wrap */
.csth-register-page {
  max-width: 660px;
  margin: 0 auto;
  padding: 48px 0 80px;
}
.csth-register-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 520px) { .csth-register-card { padding: 28px 20px; } }

.csth-register-header { text-align: center; margin-bottom: 36px; }
.csth-register-header__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px;
}
.csth-register-header__title {
  font-family: var(--f-display);
  font-size: 30px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px;
}
.csth-register-header__sub { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* GDPR box */
.csth-gdpr-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
}

/* Responsive table scroll */
.csth-table-scroll { overflow-x: auto; }

/* Toasts */
.csth-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.csth-toast {
  padding: 14px 18px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: 360px;
  opacity: 0;
  transform: translateX(20px);
  animation: csth-toast-in 0.3s var(--ease) forwards;
  pointer-events: all;
}
.csth-toast--success { background: var(--emerald); color: var(--white); }
.csth-toast--error   { background: var(--red);     color: var(--white); }
.csth-toast--info    { background: var(--blue);    color: var(--white); }
@keyframes csth-toast-in {
  to { opacity: 1; transform: none; }
}

/* Already-auth notice */
.csth-already-auth {
  text-align: center;
  padding: 24px;
  font-size: 15px;
  color: var(--slate);
}
