/* ============================================================
   Digital Onboarding System — app.css
   Palette: Navy #0d1b3e | Gold #c9a84c | Cream #fefdf8
   Fonts: Cinzel (display) + Raleway (body)
   ============================================================ */

:root {
  --navy:        #0d1b3e;
  --navy-light:  #152550;
  --navy-mid:    #1e3a6e;
  --navy-dark:   #08102a;
  --gold:        #c9a84c;
  --gold-light:  #e8c96e;
  --gold-pale:   rgba(201,168,76,0.12);
  --gold-border: rgba(201,168,76,0.25);
  --cream:       #fefdf8;
  --cream-dark:  #f4f2eb;
  --success:     #16a34a;
  --danger:      #dc2626;
  --warning:     #d97706;
  --info:        #0284c7;
  --text-dark:   #0d1b3e;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --shadow-sm:   0 2px 8px rgba(13,27,62,0.08);
  --shadow-md:   0 4px 20px rgba(13,27,62,0.12);
  --shadow-lg:   0 8px 40px rgba(13,27,62,0.16);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --trans:       all 0.25s cubic-bezier(0.4,0,0.2,1);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.dos-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.dos-logo-mark{
    width:60px;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    border:none;
    box-shadow:none;
}

.agency-logo{
    width:60px;
    height:60px;
    object-fit:contain;
}
.dos-agency-name {
  font-family: 'Cinzel', serif;
  font-size: 11px; font-weight: 600;
  color: var(--gold); letter-spacing: 1.5px;
  text-transform: uppercase; line-height: 1;
}

.dos-system-name {
  font-size: 13px; color: rgba(255,255,255,0.6);
  font-weight: 400; line-height: 1.4; margin-top: 2px;
}

.dos-user-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
}

.dos-avatar-sm {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 13px; font-weight: 700;
  color: var(--navy); flex-shrink: 0;
}

.dos-user-name {
  font-size: 13px; font-weight: 600;
  color: white; line-height: 1.2;
}

.dos-user-role {
  font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1;
}

.dos-logout-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  border-radius: 8px;
  font-size: 13px;
  transition: var(--trans);
}
.dos-logout-btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold-border);
  color: var(--gold);
}

/* ============================================================
   MAIN & FOOTER
   ============================================================ */
.dos-main { min-height: calc(100vh - 64px - 48px); }

.dos-footer {
  height: 48px; background: var(--navy-dark);
  display: flex; align-items: center; padding: 0 28px;
  font-size: 12px; color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(201,168,76,0.1);
}

/* ============================================================
   DASHBOARD — EMPLOYEE
   ============================================================ */
.dos-dashboard { background: var(--cream); min-height: 100%; }

.dash-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 40px 36px;
  position: relative; overflow: hidden;
}

.dash-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.dash-hero-pattern {
  position: absolute; right: -60px; top: -60px;
  width: 400px; height: 400px;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.dash-greeting {
  font-size: 14px; color: var(--gold);
  font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 6px;
}

.dash-name {
  font-family: 'Cinzel', serif;
  font-size: 32px; font-weight: 700;
  color: white; margin-bottom: 8px;
}

.dash-subtitle {
  font-size: 14px; color: rgba(255,255,255,0.55);
}

/* Progress bar in hero */
.dash-progress-bar-wrap {
  background: rgba(255,255,255,0.1);
  border-radius: 100px; height: 10px;
  overflow: hidden; margin-top: 8px;
}

.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.dash-progress-fill::after {
  content: '';
  position: absolute; right: -2px; top: -3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold);
}

/* Step cards */
.step-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 24px;
  cursor: pointer;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.step-card::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--border);
  transition: var(--trans);
}

.step-card.completed::before { background: var(--success); }
.step-card.current::before { background: var(--gold); }
.step-card.locked::before { background: var(--border); }

.step-card:hover:not(.locked) {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-card.current {
  border-color: var(--gold-border);
  background: linear-gradient(135deg, #fffef7, white);
  box-shadow: 0 4px 20px rgba(201,168,76,0.15);
}

.step-card.locked { opacity: 0.55; cursor: not-allowed; }

.step-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.step-card.completed .step-icon { background: rgba(22,163,74,0.1); color: var(--success); }
.step-card.current .step-icon { background: var(--gold-pale); color: var(--gold); }
.step-card.locked .step-icon { background: var(--cream-dark); color: var(--text-muted); }
.step-card.pending .step-icon { background: var(--cream-dark); color: var(--text-muted); }

.step-title { font-weight: 700; font-size: 15px; color: var(--text-dark); }
.step-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.step-badge {
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
  letter-spacing: 0.5px;
}
.step-badge.completed { background: rgba(22,163,74,0.1); color: var(--success); }
.step-badge.current { background: var(--gold-pale); color: var(--gold); }
.step-badge.locked { background: var(--cream-dark); color: var(--text-muted); }

/* ============================================================
   ONBOARDING STEP — SHARED
   ============================================================ */
.step-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 32px 36px;
  position: relative; overflow: hidden;
}

.step-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.step-breadcrumb a { color: var(--gold); text-decoration: none; }
.step-breadcrumb a:hover { text-decoration: underline; }

.step-number-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px; font-weight: 700;
  color: var(--gold); letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step-title-large {
  font-family: 'Cinzel', serif;
  font-size: 30px; font-weight: 700;
  color: white; margin-bottom: 8px;
}

.step-desc {
  font-size: 14px; color: rgba(255,255,255,0.6);
  max-width: 600px;
}

/* Step progress indicator */
.step-progress-dots {
  display: flex; align-items: center; gap: 6px;
  margin-top: 24px;
}

.step-dot {
  height: 6px; border-radius: 100px;
  transition: var(--trans);
  cursor: default;
}

.step-dot.done { width: 24px; background: var(--success); }
.step-dot.active { width: 36px; background: var(--gold); }
.step-dot.todo { width: 24px; background: rgba(255,255,255,0.2); }

/* Content area */
.step-content { padding: 32px 36px; }

.dos-card {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dos-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}

.dos-card-header h5 {
  font-family: 'Cinzel', serif;
  font-size: 16px; font-weight: 600;
  color: var(--navy); margin: 0;
}

.dos-card-header-icon {
  width: 36px; height: 36px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--gold);
}

.dos-card-body { padding: 24px; }

/* ============================================================
   TIMELINE — Step 1
   ============================================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute;
  left: 14px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--navy-mid));
}

.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute; left: -32px; top: 4px;
  width: 28px; height: 28px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}

.timeline-year {
  font-family: 'Cinzel', serif;
  font-size: 18px; font-weight: 700;
  color: var(--navy); margin-bottom: 4px;
}

.timeline-event {
  font-size: 14px; color: var(--text-muted);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
}

/* ============================================================
   VIDEO PLAYER — Custom Secure
   ============================================================ */
.video-wrapper {
  position: relative; background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-wrapper video {
  width: 100%; display: block;
  border-radius: var(--radius-md);
}

.video-overlay {
  position: absolute; inset: 0;
  background: transparent;
  z-index: 5; pointer-events: none;
  /* Prevent right-click drag */
}

.video-controls-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  padding: 20px 16px 14px;
  z-index: 10;
  display: flex; align-items: center; gap: 12px;
}

.vid-btn {
  background: none; border: none;
  color: white; font-size: 20px;
  cursor: pointer; padding: 4px;
  transition: var(--trans);
  flex-shrink: 0;
}
.vid-btn:hover { color: var(--gold); transform: scale(1.1); }

.vid-progress {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 100px; cursor: pointer;
  position: relative; overflow: hidden;
}

.vid-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--gold); border-radius: 100px;
  transition: width 0.2s linear;
}

.vid-time {
  font-size: 12px; color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.video-locked-overlay {
  position: absolute; inset: 0;
  background: rgba(13,27,62,0.7);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 20; color: white; text-align: center;
}

.video-locked-overlay i { font-size: 48px; color: var(--gold); margin-bottom: 16px; }

.vid-complete-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(22,163,74,0.1);
  border: 1px solid rgba(22,163,74,0.3);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 13px; font-weight: 600; color: var(--success);
}

/* ============================================================
   QUIZ COMPONENT
   ============================================================ */
.quiz-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.quiz-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 24px;
  color: white;
}

.quiz-header h4 {
  font-family: 'Cinzel', serif;
  font-size: 18px; margin-bottom: 4px;
}

.quiz-progress-bar-wrap {
  background: rgba(255,255,255,0.15);
  border-radius: 100px; height: 6px;
  overflow: hidden; margin-top: 14px;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px; transition: width 0.4s ease;
}

.quiz-body { padding: 0; }

.quiz-question-slide {
  padding: 28px;
  display: none;
}
.quiz-question-slide.active { display: block; }

.question-number {
  font-size: 11px; font-weight: 700;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 12px;
}

.question-text {
  font-size: 17px; font-weight: 600;
  color: var(--navy); line-height: 1.5;
  margin-bottom: 24px;
}

.quiz-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer; margin-bottom: 10px;
  transition: var(--trans); background: white;
  font-size: 14px; font-weight: 500; color: var(--text-dark);
}

.quiz-option:hover {
  border-color: var(--gold-border);
  background: var(--gold-pale);
}

.quiz-option.selected {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--navy);
}

.quiz-option.correct-reveal {
  border-color: var(--success);
  background: rgba(22,163,74,0.08);
  color: var(--success);
}

.quiz-option.wrong-reveal {
  border-color: var(--danger);
  background: rgba(220,38,38,0.06);
  color: var(--danger);
}

.option-letter {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 13px; font-weight: 700;
  transition: var(--trans);
}

.quiz-option.selected .option-letter,
.quiz-option:hover .option-letter {
  background: var(--gold); border-color: var(--gold); color: white;
}

.quiz-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.dos-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: 'Raleway', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--trans);
  border: none; text-decoration: none;
}

.dos-btn-primary {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: white;
  box-shadow: 0 2px 12px rgba(13,27,62,0.2);
}
.dos-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,27,62,0.3); color: white; }

.dos-btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.dos-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.35); }

.dos-btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
}
.dos-btn-outline:hover { border-color: var(--gold-border); color: var(--navy); background: var(--gold-pale); }

.dos-btn:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}

/* Quiz Result Modal */
.quiz-result-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(13,27,62,0.7); backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center; justify-content: center;
}
.quiz-result-overlay.show { display: flex; }

.quiz-result-box {
  background: white; border-radius: var(--radius-xl);
  padding: 40px; max-width: 480px; width: 90%;
  text-align: center;
  animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes pop-in {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.result-score-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--pct, 0%), var(--cream-dark) 0%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  position: relative;
}

.result-score-ring::before {
  content: '';
  position: absolute; inset: 10px;
  background: white; border-radius: 50%;
}

.result-score-text {
  position: relative; z-index: 1;
  font-family: 'Cinzel', serif;
  font-size: 28px; font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   MISSION & VISION CARDS — Step 2
   ============================================================ */
.mv-card {
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative; overflow: hidden;
  color: white;
  min-height: 260px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
}

.mv-card.mission {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
}

.mv-card.vision {
  background: linear-gradient(135deg, #1a4a2e 0%, #0d2b1a 100%);
} 

.mv-card::before {
  content: attr(data-label);
  position: absolute; top: 28px; right: 28px;
  font-family: 'Cinzel', serif;
  font-size: 72px; font-weight: 700;
  color: rgba(255,255,255,0.05); line-height: 1;
}

.mv-card-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.mv-card-label {
  font-family: 'Cinzel', serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}

.mv-card-text {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

/* Core values */
.core-value-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 24px 20px; text-align: center;
  transition: var(--trans);
}

.core-value-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cv-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}

.cv-name {
  font-family: 'Cinzel', serif;
  font-size: 16px; font-weight: 600;
  color: var(--navy); margin-bottom: 8px;
}

.cv-desc { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   ORG CHART — Step 3
   ============================================================ */
.orgchart-container {
  overflow-x: auto; padding: 24px;
  min-height: 300px;
}

/* ============================================================
   AVP VIDEO GRID — Step 4
   ============================================================ */
.avp-video-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden; transition: var(--trans);
  cursor: pointer;
}

.avp-video-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.avp-video-card.completed-vid {
  border-color: rgba(22,163,74,0.3);
}

.avp-thumb {
  background: var(--navy);
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.avp-thumb-icon {
  font-size: 48px; color: rgba(255,255,255,0.2);
  transition: var(--trans);
}

.avp-video-card:hover .avp-thumb-icon { color: var(--gold); transform: scale(1.1); }

.avp-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,27,62,0.5);
}

.avp-play-circle {
  width: 56px; height: 56px;
  background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--navy);
  transition: var(--trans);
}

.avp-video-card:hover .avp-play-circle {
  background: var(--gold); color: var(--navy);
  transform: scale(1.1);
}

.avp-completed-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--success); color: white;
  border-radius: 100px; padding: 4px 12px;
  font-size: 11px; font-weight: 700;
}

.avp-card-body { padding: 16px 18px; }
.avp-category {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}

.avp-title { font-size: 14px; font-weight: 700; color: var(--navy); }
.avp-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.avp-progress-mini {
  height: 3px; background: var(--border); border-radius: 100px;
  margin-top: 12px; overflow: hidden;
}

.avp-progress-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px; transition: width 0.5s ease;
}

/* AVP Modal */
.avp-modal-video { width: 100%; max-height: 70vh; background: #000; }

/* ============================================================
   HANDBOOK PDF VIEWER — Step 5
   ============================================================ */
.handbook-viewer {
  background: #525659;
  border-radius: var(--radius-lg);
  overflow: hidden; min-height: 600px;
  display: flex; flex-direction: column;
}

.handbook-toolbar {
  background: #3d4043;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

.handbook-toolbar .btn {
  font-size: 13px;
}

.pdf-canvas-wrap {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  align-items: center; padding: 20px;
  gap: 16px;
}

.pdf-page-wrap {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border-radius: 4px; overflow: hidden;
  max-width: 100%;
}

.handbook-read-progress {
  background: #2c2f32;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}

.acknowledge-box {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  padding: 24px; margin-top: 20px;
  transition: var(--trans);
}

.acknowledge-box.unlocked {
  border-color: var(--gold-border);
  background: linear-gradient(135deg, #fffef7, white);
}

.dos-checkbox {
  width: 22px; height: 22px; flex-shrink: 0;
  accent-color: var(--gold); cursor: pointer;
}

/* ============================================================
   SIGNATURE PAD — Step 6
   ============================================================ */
.sig-pad-wrap {
  background: white;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}

.sig-pad-wrap:hover { border-color: var(--gold-border); }

#signatureCanvas {
  display: block; width: 100%;
  cursor: crosshair; touch-action: none;
}

.sig-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; flex-direction: column; gap: 8px;
  color: var(--text-muted);
}

.oath-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 14px; line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
}

/* ============================================================
   COMPLETION PAGE
   ============================================================ */
.completion-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2a14 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 40px;
}

.completion-card {
  background: white; border-radius: var(--radius-xl);
  padding: 60px 50px; text-align: center;
  max-width: 600px; width: 100%;
  position: relative; z-index: 2;
  animation: pop-in 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.completion-icon {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--navy);
  margin: 0 auto 28px;
  box-shadow: 0 0 0 16px rgba(201,168,76,0.15);
}

.confetti-piece {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 2px;
  animation: confetti-fall linear infinite;
}

@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-body {
  display: flex; min-height: 100vh;
  background: #f1f5f9;
}

.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--navy);
  min-height: 100vh;
  position: sticky; top: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-sidebar-logo {
  display: flex; align-items: center; gap: 12px;
}

.admin-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--navy); flex-shrink: 0;
}

.admin-logo-name {
  font-family: 'Cinzel', serif;
  font-size: 13px; font-weight: 700;
  color: white; line-height: 1.3;
}

.admin-logo-sub { font-size: 10px; color: rgba(255,255,255,0.4); }

.admin-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }

.admin-nav-section {
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 12px 12px 6px;
  margin-top: 8px;
}

.admin-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: var(--trans); margin-bottom: 2px;
}

.admin-nav-link i { font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }

.admin-nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.admin-nav-link.active {
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.admin-nav-link.active i { color: var(--gold); }

.admin-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.admin-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.admin-topbar {
  background: white;
  padding: 0 28px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 100;
}

.admin-page-title {
  font-family: 'Cinzel', serif;
  font-size: 17px; font-weight: 700;
  color: var(--navy);
}

.admin-main { flex: 1; padding: 28px; overflow-y: auto; }

/* Admin stat cards */
.stat-card {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 24px;
  display: flex; align-items: center; gap: 18px;
  transition: var(--trans);
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

.stat-icon.blue  { background: rgba(2,132,199,0.1);  color: var(--info); }
.stat-icon.green { background: rgba(22,163,74,0.1);   color: var(--success); }
.stat-icon.gold  { background: var(--gold-pale);       color: var(--gold); }
.stat-icon.red   { background: rgba(220,38,38,0.08);  color: var(--danger); }

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 28px; font-weight: 700;
  color: var(--navy); line-height: 1;
}

.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Admin table */
.dos-table { width: 100%; border-collapse: collapse; }
.dos-table th {
  background: var(--cream); padding: 12px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.dos-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 14px; vertical-align: middle;
}
.dos-table tbody tr:hover { background: var(--cream); }

/* Status badges */
.badge-active   { background: rgba(22,163,74,0.1);  color: var(--success); border: 1px solid rgba(22,163,74,0.2);  border-radius: 100px; padding: 4px 12px; font-size: 11px; font-weight: 700; }
.badge-inactive { background: rgba(220,38,38,0.08); color: var(--danger);  border: 1px solid rgba(220,38,38,0.15); border-radius: 100px; padding: 4px 12px; font-size: 11px; font-weight: 700; }
.badge-pending  { background: rgba(217,119,6,0.1);  color: var(--warning); border: 1px solid rgba(217,119,6,0.2);  border-radius: 100px; padding: 4px 12px; font-size: 11px; font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .admin-sidebar { display: none; }
  .step-content { padding: 20px 16px; }
  .step-hero { padding: 24px 16px; }
  .dash-hero { padding: 28px 16px; }
  .dos-dashboard { }
}

@media (max-width: 576px) {
  .dash-name { font-size: 22px; }
  .step-title-large { font-size: 22px; }
  .mv-card { min-height: auto; }
}

/* ============================================================
   UTILITIES & HELPERS
   ============================================================ */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none; opacity: 0.4;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 22px; font-weight: 700;
  color: var(--navy);
}

.locked-section {
  opacity: 0.4; pointer-events: none;
  filter: blur(1px);
}

.requirement-check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  margin-bottom: 8px;
}

.requirement-check.done   { background: rgba(22,163,74,0.07);  color: var(--success); }
.requirement-check.needed { background: rgba(201,168,76,0.08); color: #92610a; }
.requirement-check.locked { background: var(--cream-dark);     color: var(--text-muted); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(13,27,62,0.15); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13,27,62,0.3); } 
