/**
 * EDGEWATER ASSOCIATES — CLIENT & CANDIDATE OPERATING PORTAL
 * Luxury Executive Styling Engine (Pure Vanilla CSS)
 * WCAG AAA Compliant · Responsive Dashboard & Pipeline OS
 */

:root {
  --navy-darkest: #040914;
  --navy-dark: #060e1d;
  --navy-card: #0b1528;
  --navy-border: #16243e;
  
  --gold-primary: #d4af37;
  --gold-hover: #b8860b;
  --gold-light: #fef9c3;
  --gold-bg: #fffbeb;
  --gold-border: #fef08a;

  --emerald-primary: #10b981;
  --emerald-dark: #065f46;
  --emerald-light: #d1fae5;
  --emerald-border: #a7f3d0;

  --blue-primary: #0284c7;
  --blue-dark: #0369a1;
  --blue-light: #e0f2fe;

  --coral-primary: #ef4444;
  --coral-light: #fee2e2;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #f8fafc;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.25);
}

*, *::before, *::after {
  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;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   AMBIENT GLOW BACKGROUND
   ========================================================================== */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}

.orb-primary {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.orb-secondary {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #0f172a 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.orb-gold {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #d4af37 0%, transparent 70%);
  top: 35%;
  left: 25%;
  opacity: 0.12;
}

/* ==========================================================================
   1. GATEWAY SCREEN (PRESIDENTIAL LOGIN & INTAKE)
   ========================================================================== */
.gateway-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  z-index: 2;
  background: radial-gradient(circle at 50% 20%, #0d1a33 0%, #060e1d 100%);
}

.gateway-card {
  width: 100%;
  max-width: 680px;
  background: rgba(11, 21, 40, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 1px rgba(212, 175, 55, 0.3);
  text-align: center;
  color: var(--text-white);
}

.gateway-crest {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #060e1d;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 26px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  border: 1px solid #fef08a;
}

.gateway-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 4px;
}

.gateway-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 12px;
}

.gateway-ethos {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 18px;
}

.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Gateway Tabs */
.gateway-tabs {
  display: flex;
  background: rgba(6, 14, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.gateway-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gateway-tab-btn:hover {
  color: #ffffff;
}

.gateway-tab-btn.active {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #060e1d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-content {
  text-align: left;
}

/* Login Form */
.gateway-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
}

.input-field-box {
  display: flex;
  align-items: center;
  background: rgba(6, 14, 29, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 14px;
  transition: all 0.25s ease;
}

.input-field-box:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

.input-icon {
  font-size: 16px;
  margin-right: 10px;
}

.access-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.access-input::placeholder {
  color: #475569;
}

.access-btn {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #060e1d;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.access-btn:hover {
  background: linear-gradient(135deg, #e5c158 0%, #c9971c 100%);
  transform: translateY(-1px);
}

/* Quick Access Chips */
.quick-access-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
}

.quick-access-label {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.chips-category-label {
  font-size: 11px;
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chips-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 620px) {
  .chips-container {
    grid-template-columns: 1fr;
  }
  .gateway-card {
    padding: 28px 18px;
  }
}

.access-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
}

.access-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.access-chip strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #ffffff;
}

.access-chip .chip-meta {
  font-size: 10px;
  color: #94a3b8;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  position: absolute;
  top: 9px;
  right: 9px;
}

.chip-dot.dot-amber { background: #f59e0b; }
.chip-dot.dot-blue { background: #0284c7; }
.chip-dot.dot-emerald { background: #10b981; }
.chip-dot.dot-gold { background: #d4af37; box-shadow: 0 0 6px #d4af37; }

.access-chip.chip-master {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(212, 175, 55, 0.4);
}

.access-chip.chip-master:hover {
  border-color: #fef08a;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.gateway-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.founder-direct a {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 700;
}

.back-home-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 11px;
}

.back-home-link:hover {
  color: #ffffff;
}

/* Registration Forms */
.registration-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-align: left;
}

.form-label {
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.form-input,
.form-select {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(6, 14, 29, 0.85);
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
  color: #8090a8;
  opacity: 1;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(6, 14, 29, 0.98);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-select {
  color-scheme: dark;
  padding-right: 36px;
}

.form-select option {
  background: var(--navy-card);
  color: var(--text-white);
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.resume-dropzone {
  border: 2px dashed rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: rgba(6, 14, 29, 0.5);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}

.resume-dropzone:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

.drop-icon {
  font-size: 24px;
}

.drop-sub {
  font-size: 11px;
  color: #94a3b8;
}

.submit-register-btn {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #060e1d;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.submit-register-btn:hover {
  background: linear-gradient(135deg, #e5c158 0%, #c9971c 100%);
  transform: translateY(-1px);
}

/* ==========================================================================
   2. TOP NAVIGATION BAR
   ========================================================================== */
.workspace-screen {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-crest-sm {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #060e1d;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 17px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy-dark);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gold-hover);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-center-mandate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.mandate-institution {
  font-weight: 800;
  color: var(--navy-dark);
}

.mandate-divider {
  color: #cbd5e1;
}

.mandate-role {
  color: var(--text-muted);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.status-live {
  background: var(--emerald-light);
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-border);
}

.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--navy-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.nav-lock-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-lock-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Master Control Bar */
.master-control-bar {
  background: #060e1d;
  border-bottom: 2px solid var(--gold-primary);
  color: #ffffff;
  padding: 10px 28px;
}

.master-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.master-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  background: var(--gold-primary);
  color: #060e1d;
  padding: 3px 10px;
  border-radius: 4px;
}

.master-mandate-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.switch-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

.mandate-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11.5px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mandate-tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.mandate-tab-btn.active {
  background: var(--gold-primary);
  color: #060e1d;
  font-weight: 800;
  border-color: var(--gold-primary);
}

.master-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.master-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

.master-action-btn.btn-broadcast {
  background: #0284c7;
  border-color: #38bdf8;
}

/* ==========================================================================
   WORKSPACE MAIN LAYOUT
   ========================================================================== */
.workspace-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .workspace-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

/* Sidebar */
.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-hover);
  display: block;
  margin-bottom: 4px;
}

.sidebar-inst-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.25;
}

.sidebar-role-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  margin-bottom: 6px;
}

.sidebar-key-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #334155;
}

.committee-chair-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
}

.chair-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--navy-dark);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #cbd5e1;
}

.chair-info {
  display: flex;
  flex-direction: column;
}

.chair-role-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chair-name {
  font-size: 13.5px;
  color: var(--navy-dark);
  font-weight: 800;
}

.chair-title {
  font-size: 11px;
  color: var(--text-muted);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 14px 0;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.spec-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.spec-value {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 700;
}

.highlight-green { color: #15803d; }
.highlight-gold { color: #b45309; }

.managing-principal-card {
  background: #060e1d;
  border-radius: var(--radius-md);
  padding: 16px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.mp-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #060e1d;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-info {
  display: flex;
  flex-direction: column;
}

.mp-eyebrow {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.mp-name {
  font-size: 14px;
  color: #ffffff;
  font-weight: 800;
}

.mp-sub {
  font-size: 10.5px;
  color: #94a3b8;
}

.mp-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11.5px;
  line-height: 1.5;
  color: #e2e8f0;
}

.mp-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mp-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.mp-btn-call {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #060e1d;
}

.mp-btn-spar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Workspace Main Container */
.workspace-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-hover);
  display: block;
  margin-bottom: 3px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.55;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-gold { background: var(--gold-bg); color: #92400e; border: 1px solid var(--gold-border); }
.badge-emerald { background: var(--emerald-light); color: var(--emerald-dark); border: 1px solid var(--emerald-border); }
.badge-blue { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #bae6fd; }

/* ==========================================================================
   ROLE-SPECIFIC OPERATING PIPELINES & ACTION BUTTONS
   ========================================================================== */

/* Pipeline Candidate & Mandate Cards */
.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
  position: relative;
}

.pipeline-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pipeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.pipeline-entity-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entity-crest {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #060e1d;
  color: var(--gold-primary);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
}

.entity-info {
  display: flex;
  flex-direction: column;
}

.entity-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-dark);
}

.entity-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.pipeline-status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-offer-pending { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-interview-scheduled { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-accepted { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-declined { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Skills Tagging System */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.skill-tag.tag-primary {
  background: #fffbeb;
  color: #b45309;
  border-color: #fef08a;
}

/* Action Controls Toolbar: Accept, Decline, Offer */
.pipeline-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-accept {
  background: #10b981;
  color: #ffffff;
}

.btn-accept:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-offer {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #060e1d;
}

.btn-offer:hover {
  background: linear-gradient(135deg, #e5c158 0%, #c9971c 100%);
  transform: translateY(-1px);
}

.btn-decline {
  background: #f1f5f9;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-decline:hover {
  background: #fee2e2;
}

.btn-view-cv {
  background: #060e1d;
  color: #ffffff;
  margin-left: auto;
}

.btn-view-cv:hover {
  background: #1e293b;
}

/* Resume Hub Box */
.resume-hub-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.resume-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.resume-icon-badge {
  font-size: 28px;
}

.resume-details strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy-dark);
}

.resume-details span {
  font-size: 12px;
  color: var(--text-muted);
}

/* 100-Day Retention Grid */
.retention-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .retention-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .retention-grid { grid-template-columns: 1fr; }
}

.retention-stage-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.retention-stage-card.stage-complete {
  border-top: 5px solid #10b981;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.retention-stage-card.stage-active {
  border-top: 5px solid #0284c7;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.retention-stage-card.stage-upcoming {
  border-top: 5px solid #d4af37;
}

.stage-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stage-day-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--navy-dark);
}

.stage-status-pill {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pill-complete { background: #dcfce7; color: #166534; }
.pill-active { background: #e0f2fe; color: #0369a1; }
.pill-upcoming { background: #f1f5f9; color: #64748b; }

.stage-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy-dark);
}

.stage-desc {
  font-size: 11.5px;
  color: var(--text-muted);
}

.stage-brian-notes {
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  font-size: 11px;
  color: #475569;
  font-style: italic;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 29, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 22px 26px;
  background: #060e1d;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--gold-primary);
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 3px;
}

.modal-candidate-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.modal-cand-current {
  font-size: 12.5px;
  color: #cbd5e1;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-btn {
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
}

.modal-btn-secondary { background: #e2e8f0; color: #334155; }
.modal-btn-primary { background: var(--gold-primary); color: #060e1d; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #060e1d;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  font-weight: 600;
  border-left: 4px solid var(--gold-primary);
  z-index: 9999;
  display: none;
  animation: toastSlide 0.3s ease-out;
}

@keyframes toastSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   DOCUMENT CONTROL ROOM & EXECUTIVE DOCUMENT VIEWER
   ========================================================================== */
.doc-filter-pill-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.doc-filter-pill-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.doc-filter-pill-btn.active {
  background: #060e1d;
  border-color: var(--gold-primary);
  color: #fbe8a6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.document-paper-container {
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-md);
}

.document-paper {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 13.5px;
  max-width: 820px;
  margin: 0 auto;
}

.doc-paper-header {
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.doc-paper-crest {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #060e1d;
}

.doc-section-h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #060e1d;
  margin: 22px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-section-h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 2px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12.5px;
}
.doc-table th {
  background: #f8fafc;
  border-bottom: 2px solid #cbd5e1;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  color: #334155;
}
.doc-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.doc-badge-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-resume { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-mandate { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-archive { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
