@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ════════════════════════════════════════════
   BD Overseas — Design System
   Brand: Navy #0C2D6B  |  Gold #E8A020
   ════════════════════════════════════════════ */

:root {
  /* ── Brand ── */
  --primary:        #0C2D6B;
  --primary-dark:   #071d47;
  --primary-light:  #e8eef8;
  --accent:         #E8A020;
  --accent-dark:    #c4831a;
  --accent-light:   #fef3dc;

  /* ── Status Colors ── */
  --success:        #059669;
  --success-light:  #ecfdf5;
  --warning:        #D97706;
  --warning-light:  #fffbeb;
  --danger:         #DC2626;
  --danger-light:   #fef2f2;
  --info:           #2563EB;
  --info-light:     #eff6ff;

  /* ── Stage Colors (pipeline) ── */
  --stage-done:     #059669;
  --stage-active:   #E8A020;
  --stage-pending:  #94a3b8;

  /* ── Surfaces (Light) ── */
  --surface:        #ffffff;
  --surface-2:      #f8fafc;
  --surface-3:      #f1f5f9;

  /* ── Text (Light) ── */
  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;

  /* ── Borders ── */
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;

  /* ── Typography ── */
  --font:           'Inter', system-ui, sans-serif;

  /* ── Layout Metrics ── */
  --header-height:  60px;
  --nav-height:     70px;

  /* ── Radii ── */
  --radius-sm:      6px;
  --radius:         8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;

  /* ── Shadows ── */
  --shadow-sm:      0 1px 2px rgba(0,0,0,.05);
  --shadow:         0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);

  /* ── Transitions ── */
  --transition:      .18s ease;
  --transition-slow: .35s ease;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --surface:        #0f172a;
  --surface-2:      #020617;
  --surface-3:      #1e293b;

  --text-primary:   #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted:     #94a3b8;

  --border:         #334155;
  --border-strong:  #475569;

  --primary-light:  rgba(12,45,107,.25);
  --accent-light:   rgba(232,160,32,.15);
  --success-light:  rgba(5,150,105,.15);
  --warning-light:  rgba(217,119,6,.15);
  --danger-light:   rgba(220,38,38,.15);
  --info-light:     rgba(37,99,235,.15);
}

/* ══════════════════════════════════════════
   BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface-2);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #04102a 0%, #0c2d6b 50%, #061a40 100%);
  z-index: -1;
}

[data-theme="dark"] body::before {
  background: linear-gradient(135deg, #020509 0%, #030d1f 50%, #020812 100%);
}

/* ══════════════════════════════════════════
   MOBILE APP FRAME
══════════════════════════════════════════ */
.app-frame {
  width: 100%;
  max-width: 430px;
  height: 880px;
  margin: 40px auto;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  box-shadow:
    0 0 0 2px var(--border),
    0 0 0 8px var(--surface-3),
    0 30px 80px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.05);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.app-frame::-webkit-scrollbar { display: none; }

[data-theme="dark"] .app-frame {
  box-shadow:
    0 0 0 2px #1a3a6b,
    0 0 0 8px #0a1a3a,
    0 30px 80px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.04);
}

/* ══════════════════════════════════════════
   STATUS BAR
══════════════════════════════════════════ */
.status-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 200;
  color: var(--text-primary);
}
.status-bar .time { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.status-bar .icons { display: flex; gap: 6px; align-items: center; }
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 32px; background: #000;
  border-radius: 0 0 20px 20px; z-index: 201;
}

/* ══════════════════════════════════════════
   APP HEADER
══════════════════════════════════════════ */
.app-header {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 100;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}
.app-header.glass {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
}
[data-theme="dark"] .app-header.glass { background: rgba(15,23,42,.9); }

.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #1a4fa0);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.logo-text { font-size: 17px; font-weight: 900; color: var(--text-primary); letter-spacing: -.3px; }
.logo-text span { color: var(--accent); }

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

.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.icon-btn:active { transform: scale(.93); }
.badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

/* ══════════════════════════════════════════
   PAGE CONTENT
══════════════════════════════════════════ */
.page-content {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--surface-2);
  transition: background var(--transition-slow);
}
.page-content::-webkit-scrollbar { display: none; }
.page-content.no-pad { padding: 0; }

/* ══════════════════════════════════════════
   BOTTOM NAVIGATION
══════════════════════════════════════════ */
.bottom-nav {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  background: transparent; border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  font-family: var(--font);
}
.nav-item.active { color: var(--primary); }
.nav-icon {
  width: 34px; height: 26px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background var(--transition);
}
.nav-item.active .nav-icon { background: var(--primary-light); }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: .2px; }

/* ══════════════════════════════════════════
   SCREEN SYSTEM (SPA)
══════════════════════════════════════════ */
.screen { display: none; }
.screen.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   SECTIONS & LAYOUT
══════════════════════════════════════════ */
.section { padding: 20px 16px; }
.section-title { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; letter-spacing: -.3px; }
.section-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.section-divider { height: 1px; background: var(--border); margin: 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.p-0 { padding: 0; }
.p-4 { padding: 16px; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  background: linear-gradient(145deg, var(--primary) 0%, #1a4fa0 60%, #0f3575 100%);
  padding: 32px 20px 36px;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 200px; height: 200px;
  background: rgba(232,160,32,.1);
  border-radius: 50%;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(232,160,32,.2);
  border: 1px solid rgba(232,160,32,.4);
  color: #fde68a;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.hero-title {
  font-size: 22px; font-weight: 900;
  line-height: 1.25; letter-spacing: -.4px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.hero-subtitle {
  font-size: 13px; opacity: .8; line-height: 1.6;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:active { transform: scale(.99); }
.card.no-pad { padding: 0; }
.card.accent-top { border-top: 3px solid var(--accent); }
.card.primary-top { border-top: 3px solid var(--primary); }

/* Metric cards */
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.metric-card.primary {
  background: linear-gradient(135deg, var(--primary), #1a4fa0);
  border-color: transparent;
  color: white;
}
.metric-icon { font-size: 22px; margin-bottom: 8px; }
.metric-value { font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.metric-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.metric-card.primary .metric-label { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; display: flex; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-lg { padding: 14px 22px; font-size: 15px; font-weight: 700; }
.btn-primary  { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover  { background: var(--primary-dark); }
.btn-accent   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover   { background: var(--accent-dark); }
.btn-outline  { background: transparent; border-color: var(--border); color: var(--text-primary); }
.btn-ghost    { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn-success  { background: var(--success-light); color: var(--success); border-color: var(--success); }
.btn-danger   { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }
.btn-warning  { background: var(--warning-light); color: var(--warning); border-color: var(--warning); }

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}
.badge-success  { background: var(--success-light); color: var(--success); }
.badge-warning  { background: var(--warning-light); color: var(--warning); }
.badge-danger   { background: var(--danger-light);  color: var(--danger);  }
.badge-info     { background: var(--info-light);    color: var(--info);    }
.badge-primary  { background: var(--primary-light); color: var(--primary); }
.badge-accent   { background: var(--accent-light);  color: var(--accent-dark); }
.badge-neutral  { background: var(--surface-3);     color: var(--text-muted); }

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .4px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: none; min-height: 90px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ══════════════════════════════════════════
   PIPELINE / STAGE TRACKER
══════════════════════════════════════════ */
.pipeline { padding: 4px 0; }
.pipeline-step {
  display: flex; align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}
.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px; top: 44px;
  width: 2px; height: calc(100% - 20px);
  background: var(--border);
}
.pipeline-step.done::after { background: var(--success); }
.pipeline-step.active::after { background: linear-gradient(to bottom, var(--accent), var(--border)); }

.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--surface-3);
  color: var(--text-muted);
  transition: all var(--transition);
  z-index: 1;
}
.pipeline-step.done .step-dot {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}
.pipeline-step.active .step-dot {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 0 0 4px rgba(232,160,32,.15);
}
.pipeline-step.rejected .step-dot {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
}

.step-body { flex: 1; padding-top: 6px; }
.step-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.step-meta { font-size: 11px; color: var(--text-muted); }

/* ══════════════════════════════════════════
   DOCUMENT UPLOAD CARDS
══════════════════════════════════════════ */
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.doc-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.doc-icon.verified { background: var(--success-light); }
.doc-icon.rejected { background: var(--danger-light); }
.doc-icon.uploaded { background: var(--accent-light); }
.doc-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.doc-hint { font-size: 11px; color: var(--text-muted); }

/* ══════════════════════════════════════════
   JOB CARDS
══════════════════════════════════════════ */
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.job-card:active { transform: scale(.99); box-shadow: var(--shadow); }
.job-country-flag { font-size: 24px; }
.job-title { font-size: 14px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.job-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.job-meta span { display: flex; align-items: center; gap: 3px; }

/* ══════════════════════════════════════════
   SERVICE CARDS
══════════════════════════════════════════ */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
}
.service-card:active { transform: scale(.98); }
.service-icon { font-size: 32px; margin-bottom: 10px; }
.service-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.service-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* Category chips */
.cat-scroll { display: flex; gap: 10px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-chip:active { background: var(--primary-light); border-color: var(--primary); }
.cat-chip-icon { font-size: 16px; }
.cat-chip-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* ══════════════════════════════════════════
   SMS CHIPS
══════════════════════════════════════════ */
.sms-chip {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.sms-chip.selected { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* ══════════════════════════════════════════
   PROFILE CARD
══════════════════════════════════════════ */
.profile-banner {
  background: linear-gradient(135deg, var(--primary), #1a4fa0);
  padding: 24px 20px 32px;
  color: white;
  text-align: center;
  position: relative;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 3px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 12px;
}
.profile-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.profile-id   { font-size: 12px; opacity: .75; }

/* ══════════════════════════════════════════
   LIST ITEMS
══════════════════════════════════════════ */
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--surface-2); }
.list-item-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  background: var(--surface-3);
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.list-item-sub   { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════
   AI CHAT
══════════════════════════════════════════ */
.chat-container { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.chat-quick-btns {
  display: flex; gap: 6px;
  padding: 10px 12px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-quick-btns::-webkit-scrollbar { display: none; }
.chat-quick-btn {
  flex-shrink: 0;
  padding: 7px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}
.chat-quick-btn:hover { background: var(--primary); color: white; }
.chat-messages {
  flex: 1; overflow-y: auto; scrollbar-width: none;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-2);
}
.chat-messages::-webkit-scrollbar { display: none; }
.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px; line-height: 1.5;
}
.chat-bubble.bot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
  align-self: flex-start;
}
.chat-bubble.user {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-input-area {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-family: var(--font); font-size: 13px;
  color: var(--text-primary);
  outline: none; resize: none;
}
.chat-send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:active { transform: scale(.9); }

/* ══════════════════════════════════════════
   SEARCH BAR
══════════════════════════════════════════ */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font); font-size: 13px; color: var(--text-primary);
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ══════════════════════════════════════════
   ANNOUNCEMENT BANNERS
══════════════════════════════════════════ */
.announcement {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.announcement-icon { font-size: 20px; flex-shrink: 0; }
.announcement-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.announcement-text  { font-size: 11px; line-height: 1.5; opacity: .85; }
.announcement-info    { background: var(--info-light);    color: var(--info);    border-color: #bfdbfe; }
.announcement-success { background: var(--success-light); color: var(--success); border-color: #a7f3d0; }
.announcement-warning { background: var(--warning-light); color: var(--warning); border-color: #fde68a; }
.announcement-accent  { background: var(--accent-light);  color: var(--accent-dark); border-color: #fde68a; }

/* ══════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
}
.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}
.stat-num  { font-size: 18px; font-weight: 900; color: var(--primary); letter-spacing: -.5px; }
.stat-lbl  { font-size: 9px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }

/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */
.progress-bar { height: 6px; background: var(--surface-3); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-full); background: var(--primary); transition: width .5s ease; }

/* ══════════════════════════════════════════
   MODALS
══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  align-items: flex-end;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 0 0 24px;
  width: 100%;
  max-height: 85%;
  overflow-y: auto;
}
.modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: var(--radius-full); margin: 12px auto 8px; }
.modal-header { padding: 12px 20px 0; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.modal-title  { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.modal-body   { padding: 16px 20px 0; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast-container {
  position: absolute; bottom: 90px; left: 50%;
  transform: translateX(-50%);
  z-index: 900; width: 90%;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--primary);
  animation: toast-in .3s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

/* ══════════════════════════════════════════
   SELECTION PROCEDURE STEPS (Public)
══════════════════════════════════════════ */
.proc-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.proc-step:last-child { border-bottom: none; }
.proc-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1a4fa0);
  color: white;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proc-body {}
.proc-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.proc-desc  { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════
   ROLE CHIP
══════════════════════════════════════════ */
.role-chip {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-sm);
}
.role-worker   { background: var(--info-light);    color: var(--info); }
.role-employer { background: var(--accent-light);  color: var(--accent-dark); }
.role-agent    { background: var(--success-light); color: var(--success); }
.role-admin    { background: var(--danger-light);  color: var(--danger); }

/* ══════════════════════════════════════════
   FILTER TABS (horizontal)
══════════════════════════════════════════ */
.filter-tabs {
  display: flex; background: var(--surface-3);
  border-radius: var(--radius-full);
  padding: 3px; gap: 0; margin-bottom: 14px;
  overflow-x: auto; scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0; padding: 7px 14px;
  border-radius: var(--radius-full);
  border: none; font-family: var(--font);
  font-size: 11px; font-weight: 700;
  cursor: pointer; background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}
.filter-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Misc utility */
.divider { height: 1px; background: var(--border); margin: 4px 0; }
.text-muted   { color: var(--text-muted); }
.text-primary-color { color: var(--primary); }
.text-accent  { color: var(--accent-dark); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.text-sm      { font-size: 12px; }
.text-xs      { font-size: 11px; }
.text-base    { font-size: 14px; }
