:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #ffffff;
  --bg-page: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --brand-yellow: #f59e0b;
  --brand-yellow-hover: #d97706;
  --brand-yellow-light: #fef3c7;
  --brand-blue: #0284c7;
  --brand-blue-dark: #0369a1;
  --brand-blue-light: #e0f2fe;
  --accent-green: #10b981;
  --accent-green-light: #d1fae5;
  --accent-purple: #8b5cf6;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.header {
  background: var(--bg-primary);
  color: white;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  background: linear-gradient(135deg, var(--brand-yellow), #b45309);
  color: #0f172a;
  font-weight: 900;
  font-size: 1.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.logo-text h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #ffffff;
}

.logo-text p {
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.view-switcher {
  display: flex;
  background: var(--bg-secondary);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  gap: 0.25rem;
}

.view-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.view-btn.active {
  background: var(--brand-yellow);
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

/* Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* ========================================================
   WORKER REGISTRATION (Mobile First)
   ======================================================== */
.worker-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.worker-hero {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  color: white;
  border: 1px solid #334155;
  box-shadow: var(--shadow-md);
}

.worker-hero h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-yellow);
  margin-bottom: 0.4rem;
}

.worker-hero p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.worker-badge-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-yellow);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-top: 0.75rem;
}

/* Stepper Progress */
.stepper-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 0.5rem;
}

.stepper-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.step-indicator {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #64748b;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.step-indicator.active .step-circle {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
  color: #0f172a;
}

.step-indicator.completed .step-circle {
  border-color: var(--accent-green);
  background: var(--accent-green);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.step-indicator.active .step-label {
  color: #0f172a;
  font-weight: 700;
}

/* Form Cards */
.form-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.form-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-step-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Choice Cards (Area selector: Operacion / Mantenimiento / Supervision) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.choice-card {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all 0.2s;
  user-select: none;
}

.choice-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.choice-card.selected {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow-light);
}

.choice-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.25rem;
}

.choice-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
}

/* Chips / Tag Selector */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.chip {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.chip:hover {
  background: #e2e8f0;
}

.chip.selected {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
  font-weight: 600;
}

/* Checklist Cards */
.check-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.check-card:hover {
  border-color: #cbd5e1;
}

.check-card.checked {
  border-color: var(--accent-green);
  background: var(--accent-green-light);
}

.check-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-green);
  cursor: pointer;
}

/* Navigation Buttons */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--brand-yellow);
  color: #0f172a;
}

.btn-primary:hover {
  background: var(--brand-yellow-hover);
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-success {
  background: var(--accent-green);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-blue {
  background: var(--brand-blue);
  color: white;
}

.btn-blue:hover {
  background: var(--brand-blue-dark);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent-green-light);
  color: var(--accent-green);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-code {
  display: inline-block;
  background: #f1f5f9;
  border: 2px dashed #94a3b8;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  letter-spacing: 1px;
}

/* ========================================================
   ADMIN DASHBOARD
   ======================================================== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-title h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.admin-title p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: white;
  border: 1px solid var(--border-color);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kpi-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.kpi-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.kpi-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Filter Box */
.filter-box {
  background: white;
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

/* Candidates Grid */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

.candidate-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.candidate-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.cand-code {
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.status-nuevo { background: #e2e8f0; color: #334155; }
.status-evaluacion { background: #fef3c7; color: #92400e; }
.status-listo { background: #d1fae5; color: #065f46; }
.status-presentado { background: #e0f2fe; color: #0369a1; }
.status-faena { background: #ede9fe; color: #5b21b6; }

.cand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.cand-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.level-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #0f172a;
  color: var(--brand-yellow);
  margin-bottom: 0.75rem;
}

.cand-details {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cand-detail-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cand-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.cand-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #334155;
}

.card-actions {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-action-row {
  display: flex;
  gap: 0.5rem;
}

/* Status selector inside card */
.status-select {
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-weight: 600;
  width: 100%;
}

/* ========================================================
   MODAL: FICHA TÉCNICA CIEGA (PARA MINERAS)
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-bar {
  background: #1e293b;
  color: white;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-bar-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
}

/* BLIND PROFILE SHEET (FICHA PARA CLIENTES) */
.blind-sheet {
  padding: 2.5rem 2.5rem;
  background: white;
  color: #0f172a;
  font-family: var(--font-sans);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--brand-yellow);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.sheet-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sheet-logo-badge {
  background: #0f172a;
  color: var(--brand-yellow);
  font-weight: 900;
  font-size: 1.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.sheet-logo-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.sheet-logo-title p {
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sheet-stamp {
  text-align: right;
}

.sheet-code {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.sheet-confidential {
  font-size: 0.7rem;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.25rem;
}

.sheet-profile-title {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #0284c7;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-role {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.sheet-level {
  background: #0f172a;
  color: var(--brand-yellow);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.sheet-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.sheet-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sheet-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sheet-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.sheet-detail-list {
  list-style: none;
  font-size: 0.88rem;
}

.sheet-detail-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed #f1f5f9;
  display: flex;
  justify-content: space-between;
}

.sheet-detail-list li span.lbl {
  color: #64748b;
  font-weight: 500;
}

.sheet-detail-list li span.val {
  color: #0f172a;
  font-weight: 700;
}

.sheet-footer-notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #78350f;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-agency-contact {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

/* ========================================================
   PRINT STYLES (Generación de PDF Limpio)
   ======================================================== */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  .header,
  .modal-bar,
  .admin-header,
  .kpi-grid,
  .filter-box,
  .candidate-grid,
  .worker-wrapper,
  .view-switcher {
    display: none !important;
  }

  .modal-overlay {
    position: static !important;
    background: white !important;
    padding: 0 !important;
  }

  .modal-content {
    box-shadow: none !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .blind-sheet {
    padding: 0 !important;
  }

  .sheet-header {
    border-bottom: 2px solid #000 !important;
  }

  .sheet-logo-badge {
    background: #000 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sheet-level {
    background: #000 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sheet-profile-title {
    background: #f1f5f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sheet-footer-notice {
    background: #f1f5f9 !important;
    border: 1px solid #ccc !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .sheet-grid {
    grid-template-columns: 1fr;
  }
  .header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .view-switcher {
    width: 100%;
    justify-content: stretch;
  }
  .view-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ========================================================
   AUTHENTICATION & CLIENT PORTAL STYLES
   ======================================================== */
.auth-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.auth-badge-guest {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.auth-badge-client {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.auth-badge-admin {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-auth {
  background: #334155;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-auth:hover {
  background: #475569;
}

/* Client Portal Hero */
.client-hero {
  background: linear-gradient(135deg, #0369a1 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  color: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #0284c7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.client-hero-title h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-hero-title p {
  color: #bae6fd;
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.client-confidential-tag {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fef3c7;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Floating Request Bar for Clients */
.floating-selection-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 90;
  border: 2px solid var(--brand-yellow);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.selection-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.selection-pill {
  background: var(--brand-yellow);
  color: #0f172a;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.85rem;
}

/* Client Candidate Card Enhancements */
.candidate-card.selected-by-client {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.3);
  background: #f0f9ff;
}

.btn-select-profile {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-select-profile:hover {
  background: #e2e8f0;
}

.btn-select-profile.active {
  background: #0284c7;
  border-color: #0284c7;
  color: white;
}

/* Key Management Table */
.keys-section {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.keys-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.keys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.keys-table th {
  background: #f8fafc;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.keys-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.key-code-tag {
  font-family: monospace;
  font-weight: 700;
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  letter-spacing: 0.5px;
}

