/*
 * NuTalent — Candidate Portal — Design System
 * Source of truth: nutalent-dashboard-v12.html (visual prototype)
 * Mobile-first: SA applicants are majority mobile (CLAUDE.md §8).
 * Shares design tokens with Web.Recruiter — do not diverge the palette.
 * Cache-bust stylesheet link in App.razor with ?v=N after every deploy (TMA §7.5).
 */

/* =============================================================================
   1. DESIGN TOKENS (identical palette to Recruiter portal)
   ============================================================================= */
:root {
  /* Colour palette */
  --bg:          #001e2c;
  --bg2:         #00243a;
  --bg3:         #002d47;
  --border:      rgba(0, 180, 149, 0.18);
  --border2:     rgba(0, 180, 149, 0.38);
  --txt:         #e0f5f0;
  --txt2:        #8fcfbf;
  --txt3:        #4a9080;
  --teal:        #00b495;
  --teal2:       #008263;
  --teal3:       #00ffd2;
  --green:       #13b400;
  --green2:      #1ee600;
  --amber:       #ba7517;
  --amber-l:     #fac775;
  --red:         #e24b4a;
  --red-l:       #f09595;

  /* Candidate-specific extras */
  --hero-grad-start: #001428;
  --hero-grad-end:   #002d47;
  --card-shadow:     0 4px 24px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 8px 32px rgba(0, 255, 210, 0.08);

  /* Radius */
  --r:  8px;
  --rl: 12px;
  --rxl: 16px;
}

/* =============================================================================
   2. RESET & BASE (mobile-first)
   ============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Prevent iOS font-size bump on orientation change */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--txt);
  background: var(--bg);
  min-height: 100vh;
  /* Smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
}

a {
  color: var(--teal3);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* =============================================================================
   3. CANDIDATE SHELL LAYOUT
   ============================================================================= */
/* Root wrapper — no sidebar on candidate portal */
.candidate-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top navigation bar */
.c-topbar {
  background: rgba(0, 20, 40, 0.92);
  border-bottom: 0.5px solid var(--border);
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(8px);
}

/* Nutun | NuRecruit lockup (2026-11-03). Both images are white-on-transparent, made for the
   dark theme: the NuRecruit artwork's "nu" was recoloured from navy to white for this, so do not
   swap in the original file or it disappears on the dark background. */
.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.brand-lockup img { display: block; width: auto; }
.brand-lockup .brand-nutun { height: 26px; }
.brand-lockup .brand-nurecruit { height: 22px; }

.brand-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* Topbar size */
.brand-lockup-sm { gap: 9px; justify-content: flex-start; }
.brand-lockup-sm .brand-nutun { height: 18px; }
.brand-lockup-sm .brand-nurecruit { height: 15px; }
.brand-lockup-sm .brand-divider { height: 18px; }

/* Topbar right: avatar pill or login link */
.c-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal2), var(--green));
  color: #001e2c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Main page body — centered, constrained width */
.c-page {
  flex: 1;
  padding: 20px 16px 60px;
}

/* Standard content wrapper — centered, max 700px */
.candidate-wrap {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* Wide wrapper for job listings (cards benefit from more width) */
.candidate-wrap-wide {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* =============================================================================
   4. PORTAL HERO (Jobs discovery / landing page)
   ============================================================================= */
.portal-hero {
  background: linear-gradient(160deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
  border: 0.5px solid var(--border);
  border-radius: var(--rxl);
  padding: 28px 20px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* Decorative teal glow blob */
.portal-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0,255,210,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 9px;
  color: var(--teal3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal3);
  line-height: 1;
}

.hero-stat-label {
  font-size: 9px;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 2px;
}

/* =============================================================================
   5. JOB CARDS
   ============================================================================= */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.job-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
  position: relative;
  text-decoration: none;
  display: block;
  color: inherit;
}

.job-card:hover {
  border-color: rgba(0, 255, 210, 0.35);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.job-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--txt3);
}

.job-desc {
  font-size: 12px;
  color: var(--txt2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Job-board pager */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.pager-status {
  font-size: 13px;
  color: var(--c-text-muted, #64748b);
  white-space: nowrap;
}

/* Hot / featured badge on job cards */
.hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: linear-gradient(90deg, rgba(0,255,210,0.15), rgba(30,230,0,0.12));
  color: var(--teal3);
  border: 0.5px solid rgba(0,255,210,0.3);
  flex-shrink: 0;
}

/* =============================================================================
   6. AUTH CARD (OTP login / registration)
   ============================================================================= */
.auth-wrap {
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.auth-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--rxl);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--card-shadow);
}

/* Sign-in footer: Nutun's social channels + copyright (2026-11-03). */
.auth-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.social-links a {
  display: inline-flex;
  color: var(--txt2);
  transition: color 0.15s;
}

.social-links a:hover,
.social-links a:focus-visible { color: #fff; }

.social-links svg { width: 20px; height: 20px; fill: currentColor; }

.auth-copyright {
  font-size: 11px;
  color: var(--txt3);
  margin: 0;
}

.auth-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 12px;
  color: var(--txt2);
  line-height: 1.5;
  margin-bottom: 22px;
}

/* OTP PIN input row — 6 boxes */
.otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.otp-digit {
  width: 42px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg3);
  color: var(--teal3);
  outline: none;
  font-family: 'Sora', monospace;
  caret-color: var(--teal3);
  transition: border-color 0.15s;
  /* Large tap target for mobile */
  touch-action: manipulation;
}

.otp-digit:focus {
  border-color: var(--teal3);
  box-shadow: 0 0 0 3px rgba(0, 255, 210, 0.12);
}

/* Resend link + countdown */
.otp-resend {
  text-align: center;
  font-size: 11px;
  color: var(--txt3);
  margin-top: 12px;
}

.otp-resend a,
.otp-resend button {
  color: var(--teal3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  padding: 0;
  text-decoration: underline;
}

.otp-resend button:disabled {
  color: var(--txt3);
  cursor: default;
  text-decoration: none;
}

/* Phone number display in OTP verify step */
.otp-phone-display {
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: var(--r);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* =============================================================================
   7. APPLICATION WIZARD STEPS
   ============================================================================= */
.wiz-bar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 4px;
}

.wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 0;
}

/* Connector line between steps */
.wiz-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 1.5px;
  background: var(--border);
  z-index: 0;
}

.wiz-step.done:not(:last-child)::after {
  background: linear-gradient(90deg, rgba(0,180,149,0.5), var(--border));
}

.wiz-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  z-index: 1;
  flex-shrink: 0;
  transition: all 0.2s;
}

.wiz-circle.done {
  background: linear-gradient(135deg, var(--teal2), var(--green));
  border-color: transparent;
  color: #001e2c;
}

.wiz-circle.current {
  border-color: var(--teal3);
  color: var(--teal3);
  background: rgba(0, 255, 210, 0.07);
  box-shadow: 0 0 0 4px rgba(0, 255, 210, 0.1);
}

.wiz-label {
  font-size: 8px;
  color: var(--txt3);
  margin-top: 5px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

.wiz-label.current {
  color: var(--teal3);
  font-weight: 600;
}

/* =============================================================================
   8. APPLICATION STATUS TIMELINE
   ============================================================================= */
.status-timeline {
  position: relative;
}

/* Vertical connector track */
.status-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 22px;
  bottom: 10px;
  width: 1.5px;
  background: var(--border);
}

.status-step {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}

.status-step:last-child {
  padding-bottom: 0;
}

.status-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  z-index: 1;
  transition: all 0.2s;
}

.status-icon.done {
  background: linear-gradient(135deg, var(--teal2), var(--green));
  border-color: transparent;
}

.status-icon.active {
  background: rgba(0, 255, 210, 0.1);
  border-color: var(--teal3);
  box-shadow: 0 0 0 4px rgba(0, 255, 210, 0.1);
  animation: pulse-ring 1.8s ease-in-out infinite;
}

.status-icon.failed {
  background: rgba(226, 75, 74, 0.12);
  border-color: rgba(226, 75, 74, 0.4);
}

.status-icon.pending {
  opacity: 0.4;
}

.status-body {
  flex: 1;
  padding-top: 6px;
  min-width: 0;
}

.status-stage {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.status-desc {
  font-size: 11px;
  color: var(--txt2);
  line-height: 1.5;
}

.status-time {
  font-size: 10px;
  color: var(--txt3);
  margin-top: 3px;
}

/* Overall application progress card */
.app-status-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.app-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.app-status-role {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.app-status-ref {
  font-size: 10px;
  color: var(--txt3);
  margin-top: 2px;
  font-family: monospace;
  letter-spacing: 0.05em;
}

/* =============================================================================
   9. CV / DOCUMENT UPLOAD ZONE
   ============================================================================= */
.upload-zone {
  border: 1.5px dashed var(--border2);
  border-radius: var(--rl);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  background: rgba(0, 180, 149, 0.03);
  /* Large, easy to tap on mobile */
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--teal3);
  background: rgba(0, 255, 210, 0.06);
}

.upload-icon {
  font-size: 28px;
  color: var(--txt3);
}

.upload-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt2);
}

.upload-hint {
  font-size: 10px;
  color: var(--txt3);
  line-height: 1.5;
}

.upload-hint span {
  color: var(--teal3);
}

/* File selected state */
.upload-file-selected {
  background: rgba(0, 255, 210, 0.05);
  border: 0.5px solid rgba(0, 255, 210, 0.3);
  border-radius: var(--rl);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-file-icon {
  width: 38px;
  height: 38px;
  background: rgba(0, 255, 210, 0.1);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.upload-file-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-size {
  font-size: 10px;
  color: var(--txt3);
  margin-top: 2px;
}

.upload-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--txt3);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  flex-shrink: 0;
}

.upload-remove:hover {
  color: var(--red-l);
}

/* Invisible file input layered over the drop zone — enables click + native
   drag-and-drop without JS interop (Blazor InputFile). */
.upload-input-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ── CV journey: congrats / confirm centred cards ── */
.cv-centred {
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cv-big-emoji   { font-size: 52px; line-height: 1; margin-bottom: 8px; }
.cv-big-title   { font-size: 17px; font-weight: 700; color: var(--txt); margin-bottom: 6px; }
.cv-big-msg     { font-size: 12px; color: var(--txt2); line-height: 1.8; max-width: 420px; margin: 0 auto 20px; }

/* ── CV journey: step banner ── */
.cv-step-banner {
  background: rgba(0, 180, 149, 0.07);
  border: 0.5px solid rgba(0, 180, 149, 0.22);
  border-radius: var(--rl);
  padding: 14px 18px;
}
.cv-step-eyebrow { font-size: 9px;  color: var(--teal3); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
.cv-step-title   { font-size: 14px; font-weight: 700; color: var(--txt); }
.cv-step-sub     { font-size: 10px; color: var(--txt3); margin-top: 2px; }

/* ── CV journey: upload progress (indeterminate) ── */
.cv-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--txt3);
  margin-bottom: 5px;
}
.cv-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}
.cv-progress-bar {
  height: 100%;
  width: 40%;
  background: var(--teal);
  border-radius: 2px;
  animation: cvIndeterminate 1.1s ease-in-out infinite;
}
@keyframes cvIndeterminate {
  0%   { margin-left: -40%; }
  100% { margin-left: 100%; }
}

.cv-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.cv-note {
  background: rgba(186, 117, 23, 0.07);
  border-color: rgba(186, 117, 23, 0.2);
  font-size: 10px;
  color: var(--amber-l);
  line-height: 1.7;
}

/* ── CV journey: confirmation summary ── */
.cv-summary {
  background: rgba(0, 180, 149, 0.07);
  border: 0.5px solid rgba(0, 180, 149, 0.2);
  border-radius: var(--r);
  padding: 14px 16px;
  text-align: left;
  max-width: 360px;
  margin: 0 auto 20px;
  font-size: 11px;
  color: var(--txt3);
  line-height: 1.9;
}
.cv-summary span        { color: var(--txt2); font-weight: 600; }
.cv-summary-status      { color: var(--teal3); font-weight: 600; }
.cv-track-link          { display: block; margin-top: 14px; }

/* =============================================================================
   10. SCREENING QUESTION CARD
   ============================================================================= */
.screening-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.screening-question-num {
  font-size: 10px;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 10px;
}

.screening-question-text {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 20px;
}

.screening-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screening-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13px;
  color: var(--txt2);
  background: var(--bg3);
  /* Large tap target for mobile */
  min-height: 48px;
}

.screening-option:hover {
  border-color: rgba(0, 255, 210, 0.4);
  color: var(--txt);
  background: rgba(0, 255, 210, 0.04);
}

.screening-option.selected {
  border-color: var(--teal3);
  color: var(--teal3);
  background: rgba(0, 255, 210, 0.07);
  font-weight: 600;
}

/* Lettered option badge (A / B / C / D) */
.screening-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 180, 149, 0.12);
  border: 0.5px solid rgba(0, 180, 149, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal3);
  flex-shrink: 0;
}

.screening-option.selected .screening-letter {
  background: var(--teal3);
  color: var(--bg);
  border-color: var(--teal3);
}

/* Screening progress */
.screening-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.screening-progress-pct {
  font-size: 10px;
  color: var(--teal3);
  font-weight: 600;
}
.screening-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}
.screening-progress-bar {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.screening-eyebrow {
  font-size: 9px;
  color: var(--teal3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* In-card question number resets the standalone bottom margin */
.screening-progress-head .screening-question-num {
  margin-bottom: 0;
}

/* Screening fail full-screen */
.screening-fail-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 500;
}

.screening-fail-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.screening-fail-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(226, 75, 74, 0.12);
  border: 1.5px solid rgba(226, 75, 74, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.screening-fail-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.screening-fail-msg {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* =============================================================================
   11. POPIA CONSENT BLOCK
   ============================================================================= */
.popia-block {
  background: rgba(0, 255, 210, 0.03);
  border: 0.5px solid rgba(0, 255, 210, 0.15);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.popia-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.popia-text {
  font-size: 11px;
  color: var(--txt2);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Checkbox + label */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--teal3);
  cursor: pointer;
  margin-top: 1px;
}

.consent-label {
  font-size: 12px;
  color: var(--txt);
  line-height: 1.5;
  cursor: pointer;
}

/* =============================================================================
   12. PROFILE SUMMARY CARD
   ============================================================================= */
.profile-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal2), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #001e2c;
  flex-shrink: 0;
}

.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.profile-detail {
  font-size: 11px;
  color: var(--txt3);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-returning-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0,255,210,0.1);
  color: var(--teal3);
  border: 0.5px solid rgba(0,255,210,0.3);
  margin-top: 6px;
}

/* =============================================================================
   13. FORM CONTROLS (Candidate)
   ============================================================================= */
.input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
  width: 100%;
  /* Larger padding on mobile — easier to tap */
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  background: var(--bg3);
  color: var(--txt);
  outline: none;
  font-family: 'Sora', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
  /* Prevent iOS zoom on focus (requires font-size ≥ 16px or explicit disable) */
  -webkit-text-size-adjust: none;
}

/* iOS requires font-size 16px on inputs to prevent auto-zoom */
@media (max-width: 600px) {
  .input,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px;
  }
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 180, 149, 0.12);
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--txt3);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%234a9080' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.form-row {
  margin-bottom: 16px;
}

.form-label {
  font-size: 11px;
  color: var(--txt3);
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.form-label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-hint {
  font-size: 10px;
  color: var(--txt3);
  margin-top: 4px;
  line-height: 1.5;
}

.form-error {
  font-size: 11px;
  color: var(--red-l);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================================================
   14. BUTTONS (Candidate — larger tap targets)
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--r);
  border: 1px solid var(--border2);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--txt2);
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  /* Minimum tap target 44px height (Apple HIG / WCAG) */
  min-height: 44px;
  touch-action: manipulation;
}

.btn:hover {
  background: rgba(0, 180, 149, 0.12);
  color: var(--txt);
  border-color: var(--teal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--teal2), var(--green));
  color: #001e2c;
  border: none;
  font-weight: 700;
}

.btn-primary:hover {
  opacity: 0.88;
  color: #001e2c;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border2);
  color: var(--txt2);
}

.btn-danger {
  border-color: rgba(226, 75, 74, 0.4);
  color: var(--red-l);
}

.btn-danger:hover {
  background: rgba(226, 75, 74, 0.12);
  border-color: var(--red);
}

/* Cloudflare Turnstile widget on the auth cards — a fixed-width iframe; centred so it lines
   up with the centred submit button below it. */
.auth-card .cf-turnstile {
  display: flex;
  justify-content: center;
}

/* Full-width button — common on mobile forms */
.btn-block {
  width: 100%;
  display: flex;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* =============================================================================
   15. CARDS (general)
   ============================================================================= */
.card {
  background: var(--bg2);
  border-radius: var(--rl);
  border: 0.5px solid var(--border);
  padding: 16px 18px;
}

.card-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal3);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* =============================================================================
   16. BADGES
   ============================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-teal  { background: rgba(0,180,149,0.15);  color: var(--teal);   border: 0.5px solid rgba(0,180,149,0.3);  }
.badge-green { background: rgba(30,230,0,0.10);   color: var(--green2); border: 0.5px solid rgba(30,230,0,0.25); }
.badge-amber { background: rgba(186,117,23,0.14); color: var(--amber-l);border: 0.5px solid rgba(186,117,23,0.3);}
.badge-red   { background: rgba(226,75,74,0.10);  color: var(--red-l);  border: 0.5px solid rgba(226,75,74,0.25);}
.badge-blue  { background: rgba(55,138,221,0.10); color: #85b7eb;       border: 0.5px solid rgba(55,138,221,0.25);}
.badge-gray  { background: rgba(255,255,255,0.05);color: var(--txt2);   border: 0.5px solid var(--border); }

/* =============================================================================
   17. MODALS
   ============================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 4, 8, 0.82);
  display: flex;
  align-items: flex-end;  /* Bottom-sheet on mobile */
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--rxl) var(--rxl) 0 0; /* Bottom-sheet rounded top */
  width: 100%;
  max-width: 100vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 20px 32px;
  position: relative;
  /* Bottom sheet drag handle */
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

/* Drag handle bar */
.modal::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  font-size: 20px;
  color: var(--txt3);
  background: none;
  border: none;
  line-height: 1;
  padding: 4px;
  /* Tap target */
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--txt);
}

/* =============================================================================
   18. INFORMATION / ALERT BANNERS
   ============================================================================= */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 0.5px solid;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.alert-info    { background: rgba(55,138,221,0.08); border-color: rgba(55,138,221,0.25); color: #85b7eb; }
.alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); color: #34d399; }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); color: #fbbf24; }
.alert-error   { background: rgba(226,75,74,0.08);  border-color: rgba(226,75,74,0.25);  color: var(--red-l); }

/* =============================================================================
   19. UTILITY CLASSES
   ============================================================================= */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.flex           { display: flex; }
.flex-col       { display: flex; flex-direction: column; }
.items-center   { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.text-xs    { font-size: 10px; }
.text-sm    { font-size: 12px; }
.text-md    { font-size: 14px; }
.text-muted { color: var(--txt3); }
.text-white { color: #fff; }
.text-teal  { color: var(--teal3); }
.text-green { color: var(--green2); }
.text-red   { color: var(--red-l); }
.text-center{ text-align: center; }
.font-bold  { font-weight: 700; }
.uppercase  { text-transform: uppercase; letter-spacing: 0.07em; }

.w-full   { width: 100%; }
.divider  { height: 0.5px; background: var(--border); margin: 16px 0; }

/* Truncate text */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================================
   20. ANIMATIONS
   ============================================================================= */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(0, 255, 210, 0.25); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 255, 210, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(0, 255, 210, 0);    }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in   { animation: fade-in  0.22s ease both; }
.slide-up  { animation: slide-up 0.25s ease both; }

/* =============================================================================
   21. LOADING / SKELETON
   ============================================================================= */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg2) 50%, var(--bg3) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--r);
}

/* Spinner (inline loading indicator) */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 255, 210, 0.2);
  border-top-color: var(--teal3);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

.spinner-sm {
  width: 14px;
  height: 14px;
  border-width: 1.5px;
}

/* =============================================================================
   22. BLAZOR FRAMEWORK (preserve, themed to match design system)
   ============================================================================= */
h1:focus {
  outline: none;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid var(--teal);
}

.invalid {
  outline: 1px solid var(--red);
}

.validation-message {
  color: var(--red-l);
  font-size: 11px;
  margin-top: 4px;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
  border-color: rgba(0, 180, 149, 0.4);
}

/* =============================================================================
   Job spec — the About the Role card on the job detail page (JobSpecView.razor).
   The spec is stored as Markdown; JobSpecMarkdown turns it into these elements.
   ============================================================================= */
.job-spec {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.7;
}

.job-spec p { margin: 0 0 10px; }

.job-spec ul,
.job-spec ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.job-spec li { margin-bottom: 4px; }

.job-spec-h {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  margin: 16px 0 6px;
}

.job-spec-h:first-child { margin-top: 0; }

.job-spec-h-sub { font-size: 13px; }

/* =============================================================================
   23. RESPONSIVE — MOBILE-FIRST BREAKPOINTS
   ============================================================================= */

/* Small mobile (≤360px) — very narrow phones */
@media (max-width: 360px) {
  .hero-title { font-size: 19px; }
  .otp-digit  { width: 36px; height: 44px; font-size: 18px; }
  .wiz-circle { width: 24px; height: 24px; font-size: 9px; }
  .wiz-label  { max-width: 48px; }
}

/* Tablet (≥600px) — modals go centre-screen (not bottom sheet) */
@media (min-width: 600px) {
  .c-page {
    padding: 24px 24px 60px;
  }

  .modal-overlay {
    align-items: center; /* Centre on tablet/desktop */
  }

  .modal {
    border-radius: var(--rxl);
    max-width: 520px;
    max-height: 86vh;
  }

  .modal::before {
    display: none; /* No drag handle when centred */
  }

  .modal-footer {
    flex-direction: row;
    justify-content: flex-end;
  }

  .btn-block {
    width: auto;
  }

  /* Sign-in, register and verify cards: a <button> with width:auto shrinks to its text and
     sat flush left under the full-width field (the links, being block-level flex, still fill
     the row). Centre it, with enough width to read as the primary action. */
  .auth-card .btn-block {
    margin-left: auto;
    margin-right: auto;
    min-width: 220px;
  }

  .jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-title { font-size: 26px; }
  .hero-stats { gap: 24px; }
}

/* Desktop (≥960px) — wider layout, 3-column job grid */
@media (min-width: 960px) {
  .c-page {
    padding: 28px 32px 60px;
  }

  .jobs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-hero {
    padding: 36px 32px 32px;
  }
}
