:root {
  --bg: #f5f2ea;
  --surface: #fffdfa;
  --surface-alt: #f1f6f2;
  --text: #17322c;
  --muted: #65746f;
  --line: #d8e2dd;
  --primary: #123f38;
  --primary-hover: #0b302b;
  --accent: #df684b;
  --accent-soft: #fff0e9;
  --success: #08765a;
  --warning: #9a5700;
  --danger: #b23a2b;
  --shadow: 0 18px 52px rgba(18, 63, 56, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 4%, rgba(223, 104, 75, 0.13), transparent 26rem),
    radial-gradient(circle at 4% 32%, rgba(18, 101, 82, 0.1), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(20px, 6vw, 88px);
  border-bottom: 1px solid rgba(216, 226, 221, 0.88);
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary), #1c6c5d 62%, var(--accent));
  color: white;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 9px 24px rgba(18, 63, 56, 0.24);
}
.brand strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 16px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-alt); }
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b42318;
  color: white;
  font-size: 10px;
  font-weight: 800;
}
.nav-toggle { display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer; }

main { width: 100%; flex: 1; }
.page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.hero > * { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a43f28;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1, h2, h3, .section-title { font-family: "Bricolage Grotesque", sans-serif; }
h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.055em; }
.lead { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.notice-card {
  padding: 22px;
  border: 1px solid #f2c7b9;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fffdfa, #fff0e9);
  box-shadow: var(--shadow);
}
.notice-card strong { display: block; margin-bottom: 8px; }
.notice-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 24px; align-items: start; }
.booking-layout > *,
.content-grid > *,
.admin-grid > * { min-width: 0; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.card-header h2, .section-title { margin: 0; font-size: 22px; letter-spacing: -0.025em; }
.card-header p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.card-body { padding: 24px; }
.meta-pill { white-space: nowrap; padding: 7px 10px; border-radius: 999px; background: var(--surface-alt); color: var(--muted); font-size: 12px; font-weight: 600; }

.date-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 10px; min-width: 0; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.date-button, .time-button {
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  transition: 160ms ease;
}
.date-button { min-height: 82px; padding: 12px 8px; border-radius: 14px; text-align: center; }
.date-button span { display: block; color: var(--muted); font-size: 12px; }
.date-button strong { display: block; margin: 6px 0 2px; font-size: 21px; }
.date-button.today:not(.selected) {
  border-color: #df8d78;
  background: linear-gradient(145deg, #fffdfa, #fff0e9);
  box-shadow: inset 0 0 0 1px rgba(223, 104, 75, 0.1);
}
.date-month { min-height: 17px; }
.today-label {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.date-availability {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.date-button:hover, .time-button:hover { transform: translateY(-1px); border-color: #73aa9d; }
.date-button.selected, .time-button.selected { border-color: var(--primary); background: var(--primary); color: white; }
.date-button.selected span { color: rgba(255, 255, 255, 0.72); }
.date-button.selected .date-availability { color: rgba(255, 255, 255, 0.82); }
.date-button.selected .today-label { color: white; }
.date-button.today.selected { box-shadow: 0 0 0 3px rgba(223, 104, 75, 0.2); }
.date-button.partial:not(.selected) {
  border-color: #f5b94c;
  background: #fff8e8;
}
.date-button.partial:not(.selected) .date-availability {
  color: #a15c00;
}
.date-button.partial.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}
.date-button.partial.selected span,
.date-button.partial.selected .date-availability {
  color: rgba(255, 255, 255, 0.82);
}
.date-button.blocked:not(.selected) {
  border-color: #fecaca;
  background: #fff5f5;
}
.date-button.blocked:not(.selected) strong,
.date-button.blocked:not(.selected) .date-availability {
  color: #b42318;
}
.date-button.blocked.selected {
  border-color: #fda4af;
  background: #fff1f2;
  color: #7f1d1d;
}
.date-button.blocked.selected span,
.date-button.blocked.selected .date-availability {
  color: #9f1239;
}
.date-button:not(.selected):not(.blocked):not(.partial) {
  border-color: #86d3a7;
  background: #f1fbf5;
}
.date-button:not(.selected):not(.blocked):not(.partial) .date-availability { color: #087443; }
.date-button.selected:not(.blocked) { border-color: #166534; background: #166534; }
.slot-heading { margin: 26px 0 12px; font-size: 14px; }
.slot-helper {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.timezone-banner {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.5;
}
.timezone-banner strong { color: #1d4ed8; }
.availability-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-alt); }
.availability-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.legend-swatch { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px white; }
.legend-available { background: #12b76a; }
.legend-pending { background: #f79009; }
.legend-busy { background: #f04438; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.schedule-item { min-width: 0; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; text-align: left; }
.schedule-item strong { display: block; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.schedule-item span { display: block; margin-top: 6px; font-size: 11px; font-weight: 900; }
.schedule-item small { display: block; margin-top: 3px; font-size: 9px; line-height: 1.35; }
.time-button {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  min-height: 76px;
  text-align: left;
}
.schedule-available { border-color: #86d3a7; background: #effbf4; color: #075e3b; }
.schedule-available span { color: #087443; }
.schedule-available:hover { border-color: #12b76a; background: #e3f8eb; }
.schedule-available.selected { border-color: #166534; background: #166534; color: white; box-shadow: 0 0 0 3px rgba(22, 101, 52, .14); }
.schedule-available.selected span { color: #d1fadf; }
.schedule-pending { border-color: #f5b94c; background: #fff8e8; color: #7a4100; }
.schedule-pending span, .schedule-pending small { color: #a15c00; }
.schedule-booked, .schedule-busy { border-color: #fda29b; background: #fff1f0; color: #912018; }
.schedule-booked span, .schedule-booked small,
.schedule-busy span, .schedule-busy small { color: #b42318; }
.empty-state { padding: 22px; border-radius: 14px; background: var(--surface-alt); color: var(--muted); text-align: center; }

.booking-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 12px 13px;
  outline: none;
  transition: 160ms ease;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(223, 104, 75, 0.12); }
.summary-box { display: grid; gap: 8px; padding: 15px; border-radius: 14px; background: var(--surface-alt); color: var(--muted); font-size: 13px; }
.summary-box div { display: flex; justify-content: space-between; gap: 20px; }
.summary-box strong { color: var(--text); text-align: right; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 160ms ease;
}
.button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.button.secondary { border: 1px solid var(--line); background: white; color: var(--text); }
.button.secondary:hover { border-color: #73aa9d; background: var(--surface-alt); }
.button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.helper { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.page-head { margin-bottom: 30px; }
.page-head h1 { max-width: 820px; font-size: clamp(34px, 5vw, 56px); }
.page-head .lead { font-size: 17px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.stack { display: grid; gap: 16px; }
.payment-card, .step-card, .faq-item { padding: 22px; }
.payment-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.payment-card h3, .step-card h3 { margin: 0 0 7px; font-size: 16px; }
.payment-card code { display: inline-block; color: var(--accent); font-family: inherit; font-size: 16px; font-weight: 800; word-break: break-word; }
.payment-card p, .step-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.payment-card .masked-payment-note { color: #8a4b08; font-size: 11px; font-weight: 700; }
.payment-actions { display: grid; flex: 0 0 auto; gap: 8px; min-width: 142px; }
.payment-actions .button { width: 100%; }
.payment-actions [hidden] { display: none; }
.callout { padding: 20px; border: 1px solid #fedf89; border-radius: var(--radius-md); background: #fffaeb; }
.callout strong { display: block; margin-bottom: 7px; color: var(--warning); }
.callout p { margin: 0; color: #7a2e0e; font-size: 13px; line-height: 1.6; }
.side-card { position: sticky; top: 98px; padding: 24px; }
.side-card h2 { margin: 0 0 10px; font-size: 19px; }
.side-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.side-card .button { width: 100%; margin-top: 10px; }
.step-card { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.step-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: #a43f28; font-weight: 800; }
.faq { margin-top: 34px; }
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

.success-panel { padding: 26px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 50%; background: #dcfae6; color: var(--success); font-size: 26px; font-weight: 800; }
.success-panel h2 { margin: 0 0 8px; }
.success-panel p { margin: 0 auto 20px; max-width: 560px; color: var(--muted); line-height: 1.6; }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px clamp(20px, 6vw, 88px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 340px; padding: 13px 16px; border-radius: 12px; background: var(--primary); color: white; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero, .booking-layout, .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .hero { gap: 22px; }
}

@media (max-width: 680px) {
  .topbar { min-height: 68px; padding: 10px 18px; }
  .brand small { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: grid; }
  .page { width: min(100% - 28px, 1180px); padding: 38px 0 54px; }
  h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .card-header, .card-body { padding-left: 18px; padding-right: 18px; }
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-card { align-items: flex-start; flex-direction: column; }
  .payment-card .button { width: 100%; }
  .footer { flex-direction: column; padding: 20px; }
}

/* Interview uploads, confirmation, and local admin */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-field {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}
.upload-field input[type="file"] { padding: 9px; background: white; cursor: pointer; }
.upload-field small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.upload-field small.file-selected { color: var(--success); font-weight: 700; }
.confirmation-box {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  padding: 15px;
  border: 1px solid #fedf89;
  border-radius: 14px;
  background: #fffaeb;
  color: #7a2e0e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
}
.confirmation-box input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 12px 13px;
  outline: none;
}
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(223, 104, 75, 0.12); }
.success-summary { max-width: 680px; margin: 0 auto 20px; text-align: left; }
.centered { justify-content: center; }
.success-helper { margin-top: 18px; }
.admin-page { width: min(1440px, calc(100% - 40px)); }
.admin-page-head { margin-bottom: 28px; }
.admin-page-head h1 { max-width: 920px; font-size: clamp(38px, 5vw, 62px); }
.admin-page-head .lead { max-width: 920px; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.metric-card:hover { transform: translateY(-2px); border-color: #73aa9d; box-shadow: 0 14px 30px rgba(18, 63, 56, .1); }
.metric-card.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 14px 30px rgba(223, 104, 75, .12); }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 800; }
.metric-card strong { font-size: 32px; letter-spacing: -.05em; }
.metric-card small { color: var(--muted); font-size: 11px; }
.admin-tabs {
  position: sticky;
  top: 88px;
  z-index: 8;
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 250, .94);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .07);
  backdrop-filter: blur(16px);
}
.admin-tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; }
.admin-tab:hover, .admin-tab.active { background: var(--primary); color: white; }
.admin-tab span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(17, 24, 39, .08); font-size: 10px; }
.admin-tab.active span { background: rgba(255, 255, 255, .18); }
.admin-tab .notification-count { background: var(--danger); color: white; }
.admin-request-workspace { display: grid; grid-template-columns: minmax(540px, .95fr) minmax(520px, 1.05fr); gap: 18px; align-items: start; }
.request-browser { overflow: hidden; }
.request-browser-header { align-items: center; }
.admin-filters { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(145px, .8fr)); gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-filters .field { min-width: 0; }
.filter-actions { display: flex; gap: 8px; grid-column: 1 / -1; }
.filter-actions .button { min-width: 130px; }
.request-list { display: grid; gap: 10px; }
.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  transition: border-color 150ms ease, background 150ms ease;
}
.request-row:hover { border-color: #73aa9d; }
.request-row.selected { border-color: var(--accent); background: #fff8f4; box-shadow: inset 3px 0 0 var(--accent); }
.request-row-main { min-width: 0; }
.request-row h3 { margin: 8px 0 4px; font-size: 15px; overflow-wrap: anywhere; }
.request-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.request-row-files { display: grid; gap: 6px; }
.file-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.file-indicator::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.file-indicator.ready { color: var(--success); }
.file-indicator.ready::before { background: #12b76a; }
.file-indicator.missing { color: var(--danger); }
.file-indicator.missing::before { background: #f04438; }
.file-indicator.waiting::before { background: #f79009; }
.review-request { padding: 9px 11px; font-size: 11px; white-space: nowrap; }
.request-empty, .request-review-empty { display: grid; gap: 7px; place-items: center; min-height: 180px; }
.request-empty span, .request-review-empty span { color: var(--muted); font-size: 12px; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-pagination > div { display: flex; align-items: center; gap: 10px; }
.admin-pagination .button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.admin-pagination .button:disabled { opacity: .42; cursor: not-allowed; }
.request-review-shell { position: sticky; top: 158px; max-height: calc(100vh - 178px); overflow: auto; }
.request-review { min-width: 0; }
.request-review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px; border-bottom: 1px solid var(--line); }
.candidate-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.candidate-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 18px; font-weight: 900; }
.candidate-identity h2 { margin: 4px 0 2px; font-size: 21px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.candidate-identity p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.review-slot-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.review-slot-summary div { padding: 15px 18px; background: var(--surface-alt); }
.review-slot-summary span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.review-slot-summary strong { display: block; margin-top: 6px; font-size: 12px; line-height: 1.45; }
.review-section { padding: 21px 24px; border-bottom: 1px solid var(--line); }
.review-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.review-section-heading h3 { margin: 4px 0 0; font-size: 16px; }
.review-helper { color: var(--muted); font-size: 10px; }
.review-subheading { margin-top: 16px; }
.document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.document-card { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-alt); }
.document-card.document-ready { border-color: #a7f3d0; background: #f0fdf4; }
.document-card.document-missing { border-style: dashed; }
.document-type { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.document-card strong { min-height: 34px; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.document-card small { min-height: 30px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.document-card .button { margin-top: 4px; padding: 9px 11px; font-size: 11px; }
.request-copy-block { max-height: 220px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-alt); }
.request-copy-block p { margin: 0; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.review-detail-grid div { min-width: 0; padding: 12px; background: white; }
.review-detail-grid dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.review-detail-grid dd { margin: 5px 0 0; font-size: 11px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.request-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.request-timeline li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 9px; min-height: 50px; }
.request-timeline li:not(:last-child)::before { content: ""; position: absolute; top: 15px; bottom: -1px; left: 6px; width: 2px; background: var(--line); }
.timeline-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 2px; border: 3px solid white; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 1px #cbd5e1; }
.timeline-complete .timeline-dot { background: #12b76a; box-shadow: 0 0 0 1px #12b76a; }
.timeline-current .timeline-dot { background: #f79009; box-shadow: 0 0 0 3px #fef0c7; }
.request-timeline strong { display: block; font-size: 11px; }
.request-timeline li div span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.request-review-actions { display: grid; gap: 14px; padding: 21px 24px 24px; background: var(--surface-alt); }
.request-review-actions > div:first-child strong { font-size: 13px; }
.request-review-actions > div:first-child p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.review-action-group { display: flex; flex-wrap: wrap; gap: 8px; }
.review-action-group .button { padding: 10px 12px; font-size: 11px; }
.admin-activity { margin-bottom: 24px; }
.admin-activity-actions { display: flex; align-items: center; gap: 10px; }
.admin-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.admin-list { display: grid; gap: 11px; }
.admin-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.admin-item h3 { margin: 7px 0 4px; font-size: 15px; }
.admin-item p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.status-chip { display: inline-block; max-width: 100%; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: #a43f28; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--danger);
  font-size: 22px;
  cursor: pointer;
}
.icon-button:hover { background: #fff1f3; border-color: #fda4af; }
.button.danger { background: #fff1f3; color: var(--danger); border: 1px solid #fecdd3; }
.button.danger:hover { background: #ffe4e6; }
.activity-item { align-items: flex-start; }
.activity-unread {
  border-color: #bfdbfe;
  background: #f8fbff;
}

@media (max-width: 1180px) {
  .admin-request-workspace { grid-template-columns: 1fr; }
  .request-review-shell { position: static; max-height: none; overflow: visible; }
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media (max-width: 700px) {
  .admin-page { width: min(100% - 24px, 1440px); padding-top: 34px; }
  .admin-page-head h1 { font-size: 38px; }
  .admin-tabs { top: 78px; overflow-x: auto; scrollbar-width: none; }
  .admin-tab { flex: 0 0 auto; }
  .admin-filters { grid-template-columns: 1fr; }
  .filter-actions { flex-direction: column; }
  .filter-actions .button { width: 100%; }
  .request-row { grid-template-columns: 1fr; align-items: start; }
  .request-row-files { grid-template-columns: 1fr 1fr; }
  .review-request { width: 100%; }
  .admin-pagination { align-items: stretch; flex-direction: column; }
  .admin-pagination > div { justify-content: space-between; }
  .request-review-header { align-items: flex-start; flex-direction: column; }
  .review-slot-summary { grid-template-columns: 1fr; }
  .document-grid, .review-detail-grid { grid-template-columns: 1fr; }
  .review-section-heading { align-items: flex-start; flex-direction: column; }
  .review-action-group { flex-direction: column; }
  .review-action-group .button { width: 100%; }
  .admin-activity-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .admin-activity-actions .button { width: 100%; }
  .upload-grid { grid-template-columns: 1fr; }
  .confirmation-box { font-size: 11px; }
  .admin-item { align-items: flex-start; }
}

.service-unavailable { max-width: 760px; margin: 8vh auto 0; padding: clamp(24px, 6vw, 48px); text-align: center; }
.service-unavailable h1 { margin: 18px auto 14px; max-width: 620px; font-size: clamp(30px, 5vw, 48px); }
.service-unavailable p { max-width: 590px; margin: 0 auto 24px; color: var(--muted); line-height: 1.7; }

@media (max-width: 420px) {
  .admin-metrics { grid-template-columns: 1fr; }
  .request-row-files { grid-template-columns: 1fr; }
  .candidate-identity { align-items: flex-start; }
}

.duration-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 6px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-alt);
}
.duration-picker label { font-size: 13px; font-weight: 800; }
.duration-picker select {
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 9px 11px;
  font-weight: 700;
}
@media (max-width: 480px) {
  .duration-picker { align-items: stretch; flex-direction: column; }
  .duration-picker select { width: 100%; }
}


/* Expanded payment and setup pages */
.payment-section { margin-bottom: 28px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading-row.compact { align-items: center; margin: 4px 0 14px; }
.section-heading-row h2 { margin: 4px 0 0; font-size: 23px; letter-spacing: -0.025em; }
.section-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.price-card { padding: 22px; }
.price-label, .payment-method-label { display: inline-block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.price-card h3 { margin: 8px 0 20px; font-size: 17px; }
.price-values { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-values strong { font-size: 29px; letter-spacing: -.04em; }
.price-values span { color: var(--muted); font-size: 15px; font-weight: 700; }
.payment-layout { margin-top: 4px; }
.policy-card { padding: 22px; }
.policy-list, .mini-checklist { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.policy-list li::marker, .mini-checklist li::marker { color: var(--accent); font-weight: 800; }
.detailed-payment-card { align-items: flex-start; }
.payment-card-content { min-width: 0; flex: 1; }
.detail-list { display: grid; gap: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.detail-list div { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; color: var(--text); font-size: 12px; font-weight: 700; word-break: break-word; }
.payment-side-card .mini-checklist { margin: 16px 0 18px; }
.setup-highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.setup-highlight { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; padding: 17px; border: 1px solid #f2c7b9; border-radius: 16px; background: linear-gradient(145deg, #fffdfa, #fff0e9); }
.setup-highlight span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: white; font-size: 12px; font-weight: 800; }
.setup-highlight p { margin: 1px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.resource-section { margin-top: 14px; }
.resource-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; }
.resource-card h3 { margin: 0 0 7px; font-size: 16px; }
.resource-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.resource-card .button { flex: 0 0 auto; }
.security-callout { padding: 20px; border: 1px solid #fecaca; border-radius: var(--radius-md); background: #fff1f2; }
.security-callout strong { display: block; margin-bottom: 7px; color: var(--danger); }
.security-callout p { margin: 0; color: #881337; font-size: 13px; line-height: 1.65; }
.side-card .mini-checklist { margin: 16px 0 18px; }

@media (max-width: 900px) {
  .pricing-grid, .setup-highlight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .price-values { align-items: flex-start; flex-direction: column; }
  .detail-list div { grid-template-columns: 1fr; gap: 4px; }
  .resource-card { align-items: flex-start; flex-direction: column; }
  .resource-card .button { width: 100%; }
}


/* Pending payment-verification flow */
.pending-icon { background: #fff7d6; color: #b54708; }
.status-pending { background: #fff3cd; color: #8a4b08; }
.status-approved, .status-confirmed { background: #dcfae6; color: #087443; }
.status-rejected { background: #ffe4e8; color: #b42318; }
.booking-main { min-width: 0; flex: 1; }
.booking-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.slot-chip { color: var(--muted); font-size: 11px; font-weight: 700; }

.status-payment_pending { background: #fff4ce; color: #7a4b00; }
.status-payment_submitted { background: #e8edff; color: #27368f; }
