/* ==========================================================================
   QUICKLY — Unified Professional Stylesheet
   ----------------------------------------------------------------------------
   MERGED from:
     • styles-merged.css  (Glassdoor-inspired forest-green system)
     • public/styles.css  (Talent Hub navy/slate + emerald system, v2–v4)
   Reconciled design tokens, combined components, improved mobile view,
   enhanced Landing "Create Profile" section and Sign-in / Create-account CTAs.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS  (collected professional specs)
   ========================================================================== */

:root {
  /* ---- Brand A: Glassdoor-inspired deep forest green ---- */
  --forest-950: #0c2d1b;
  --forest-900: #164430;
  --forest-800: #1e5c42;
  --forest-700: #267454;
  --forest-600: #2e8c66;
  --forest-500: #36a478;
  --forest-400: #5bbf94;
  --forest-300: #8dd4b8;
  --forest-200: #bbe9d9;
  --forest-100: #e0f5ec;
  --forest-050: #f0faf5;

  /* ---- Brand B: Talent Hub navy / slate + emerald ---- */
  --navy-950: #0b1320;
  --navy-900: #0f1b2d;
  --navy-800: #16263d;
  --navy-700: #1f3350;
  --navy-600: #2c4768;
  --slate-500: #5a6b85;
  --slate-300: #aab6c8;
  --slate-100: #e7ecf3;

  --emerald-600: #0f9d6e;
  --emerald-500: #14b687;
  --emerald-400: #2fd19c;
  --emerald-050: #e7faf2;

  /* ---- Shared neutrals ---- */
  --gray-950: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e2e8f0;
  --gray-200: #f1f5f9;
  --gray-100: #f8fafc;
  --gray-050: #fbfcfd;
  --white: #ffffff;

  /* ---- Accent: warm amber for ratings / highlights ---- */
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-050: #fffbeb;
  --amber-600: #d99a2b;

  /* ---- Semantic tokens (unified: forest = primary brand) ---- */
  --bg-page: #f4f7fb;
  --bg-card: var(--white);
  --bg-elevated: var(--white);
  --text-primary: var(--navy-950);
  --text-secondary: var(--slate-500);
  --text-tertiary: var(--gray-500);
  --text-inverse: var(--white);
  --border-subtle: #dde4ee;
  --border-light: var(--gray-200);

  /* Accent alias used across both systems */
  --accent: var(--forest-600);
  --accent-strong: var(--forest-700);

  /* ---- Radii (merged) ---- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ---- Shadows (merged) ---- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 45, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 45, 0.06), 0 2px 4px -2px rgba(15, 23, 45, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 45, 0.08), 0 4px 6px -4px rgba(15, 23, 45, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 45, 0.1), 0 8px 10px -6px rgba(15, 23, 45, 0.04);
  --shadow-card: 0 1px 2px rgba(15, 27, 45, 0.04), 0 8px 24px rgba(15, 27, 45, 0.06);
  --shadow-card-lg: 0 4px 10px rgba(15, 27, 45, 0.06), 0 24px 48px rgba(15, 27, 45, 0.10);
  --shadow-glow: 0 0 20px rgba(57, 170, 117, 0.2);
  --shadow-focus: 0 0 0 3px rgba(54, 164, 120, 0.25);

  /* ---- Layout: shared content width so topbar aligns with page bodies ---- */
  --content-max: 1180px;

  /* ---- Typography ---- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --bubble: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  /* Transparent so the fixed .bg-robot-art photo (z-index:-2) shows through.
     The base colour lives on <html> as the canvas fallback. An opaque body
     background would paint over the negative-z-index background image. */
  background: transparent;
  overflow-x: hidden;
  padding-top: 64px;
}

h1, h2, h3, h4 { font-family: inherit; margin: 0; letter-spacing: -0.02em; }

img, picture, video, svg { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; border: none; background: none; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

::selection { background: var(--forest-200); color: var(--forest-950); }

/* Background ambient glow (Talent Hub) */
.bg-glow {
  position: fixed;
  inset: -20% -10% auto auto;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 30% 30%, rgba(20, 182, 135, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Particle dot canvas — disabled: the background is now the photos plus the
   transparent haze only. Kept hidden so no dots render over the imagery. */
#bgAnimation, canvas {
  display: none !important;
}

.app-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* Global fix: [hidden] must always beat component display rules */
[hidden] { display: none !important; }

/* The fixed topbar offset is supplied by the inline critical CSS on .main-area.
   Reset it here so it doesn't stack on top of body's own padding-top (avoids a
   128px gap beneath the topbar once this stylesheet loads). */
.main-area { padding-top: 0 !important; }

/* ==========================================================================
   3. TOPBAR  (merged: glassmorphism forest base + Talent Hub nav/dropdown)
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(12, 45, 27, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(54, 164, 120, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  transition: all var(--transition-base);
}

.topbar-scrolled { box-shadow: var(--shadow-lg); background: rgba(12, 45, 27, 0.98); }

.topbar-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--forest-950) 0%, var(--forest-800) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.topbar-brand:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); border-color: var(--forest-400); }
.topbar-brand img, .brand-wordmark, .brand-mark-img { height: 28px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: var(--white); font-weight: 700; font-size: 13px;
}
.brand-name { color: var(--white); font-size: 16px; font-weight: 400; }
.brand-name strong { font-weight: 700; }

.topbar-nav { display: flex; align-items: center; gap: 0.375rem; }

.topbar-nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.topbar-nav-link:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); transform: translateY(-2px); }
.topbar-nav-link.is-active { background: var(--forest-600); color: var(--white); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }

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

.nav-link {
  color: var(--slate-300); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--forest-500) 0%, var(--forest-600) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(54, 164, 120, 0.3);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.nav-cta:hover { background: linear-gradient(180deg, var(--forest-400) 0%, var(--forest-500) 100%); box-shadow: 0 8px 24px rgba(54, 164, 120, 0.35); transform: translateY(-2px) scale(1.03); }

.topbar-menu-toggle { display: none; padding: 0.5rem; border-radius: var(--radius-md); color: var(--forest-200); background: transparent; }
.topbar-menu-toggle:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

/* Primary nav (dashboard / browse jobs) */
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: 32px; flex: 1; }
.primary-nav-link {
  color: var(--slate-300); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.primary-nav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.primary-nav-link.is-active { color: var(--white); background: rgba(255,255,255,0.1); font-weight: 600; }

/* User menu + dropdown */
.user-menu { position: relative; display: flex; align-items: center; gap: 10px; }
.user-menu-name { color: var(--white); font-size: 14px; font-weight: 500; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(255,255,255,0.14);
  color: var(--white); padding: 6px 12px 6px 6px;
  border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.user-menu-trigger:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.26); }
.user-menu-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: var(--navy-950); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; overflow: hidden; flex-shrink: 0;
}
.user-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu-caret { color: var(--slate-300); transition: transform 0.15s var(--ease); }
.user-menu.is-open .user-menu-caret { transform: rotate(180deg); }
.user-menu-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 200px; background: var(--white);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-lg); padding: 8px; display: none; z-index: 40;
}
.user-menu.is-open .user-menu-dropdown { display: block; animation: dropdownIn 0.15s var(--ease); }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; font-size: 13.5px; font-weight: 500;
  color: var(--navy-800); padding: 9px 12px; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit;
}
.dropdown-item:hover { background: #f3f5f9; }
.dropdown-item.danger { color: #b3261e; }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 6px 4px; }

.btn-logout {
  background: transparent; border: 1px solid rgba(255,255,255,0.18);
  color: var(--slate-300); font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-logout:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

/* Notification bell */
.icon-btn {
  position: relative; background: none; border: none; font-size: 17px; cursor: pointer;
  color: var(--slate-300); padding: 6px; border-radius: var(--radius-sm); transition: background 0.15s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.icon-badge {
  position: absolute; top: 0; right: 0;
  background: #e0473e; color: var(--white); font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px; line-height: 1;
}

/* ==========================================================================
   4. BUTTONS  (merged: bubble physics + spinner/loading + ghost)
   ========================================================================== */

/* Shared base shape for every button-like element. IMPORTANT: none of the
   buttons in index.html actually combine class="btn btn-primary" etc — they
   only ever use class="btn-primary" / "btn-secondary" / "btn-ghost" on their
   own. That meant .btn-primary/.btn-secondary had no padding, sizing, or
   consistent radius of their own, and .btn-ghost carried a slightly
   different padding/radius than the rest — the root cause of buttons
   looking mismatched, unevenly rounded, and misaligned next to each other.
   Listing them all together here guarantees one consistent, bubbly pill
   shape everywhere, with line-height:1 so <a> and <button> line up evenly. */
.btn, .btn-primary, .btn-primary--navy, .btn-secondary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600; line-height: 1; font-family: inherit;
  border-radius: var(--radius-full);
  white-space: nowrap; user-select: none; cursor: pointer;
  border: 1px solid transparent;
  min-height: 44px; box-sizing: border-box;
  transition: transform 250ms var(--bubble), background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--forest-600) 0%, var(--forest-700) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(54, 164, 120, 0.3), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.1);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--forest-500) 0%, var(--forest-600) 100%); transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 24px rgba(54, 164, 120, 0.35), 0 0 0 1px rgba(54,164,120,0.15), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:active { transform: translateY(1px) scale(0.98); box-shadow: inset 0 2px 6px rgba(0,0,0,0.2), 0 2px 8px rgba(54,164,120,0.2); }

/* Alternate primary (Talent Hub navy) kept available — now pill-shaped like every other button */
.btn-primary--navy { background: var(--navy-950); color: var(--white); box-shadow: none; }
.btn-primary--navy:hover { background: var(--navy-800); transform: translateY(-1px); }

.btn-secondary {
  background: var(--white); color: var(--forest-700);
  border: 1.5px solid var(--forest-200); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--forest-050); border-color: var(--forest-400); box-shadow: var(--shadow-md); transform: translateY(-2px) scale(1.02); }
.btn-secondary:active { transform: translateY(1px) scale(0.98); }

.btn-ghost {
  background: transparent; color: var(--navy-800);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover { background: #f3f5f9; border-color: #c9d2e0; }
.btn-ghost-sm { background: transparent; border: none; color: var(--slate-500); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 6px 4px; }
.btn-ghost-sm:hover { color: #b3261e; }

.btn-danger { background: #fef2f2; color: #dc2626; border: 1.5px solid #fecaca; }
.btn-danger:hover { background: #dc2626; color: var(--white); border-color: #dc2626; transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 16px rgba(220,38,38,0.2); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; min-height: 36px; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-full, .btn-block { width: 100%; }
.btn-block { margin-top: 22px; }

.btn:disabled, .btn-primary:disabled, .btn-secondary:disabled, .btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Action links (approve / decline) from original merged system */
.action-link-approve {
  display: inline-flex; align-items: center; padding: 0.375rem 0.875rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--forest-800);
  background-color: var(--forest-100); border: 1px solid var(--forest-200);
  border-radius: var(--radius-full); transition: all var(--transition-fast); cursor: pointer;
}
.action-link-approve:hover { background-color: var(--forest-600); border-color: var(--forest-700); color: var(--white); transform: scale(1.05) translateY(-1px); box-shadow: 0 4px 12px rgba(54, 164, 120, 0.25); }
.action-link-approve:active { transform: scale(0.98); }

.action-link-decline {
  display: inline-flex; align-items: center; padding: 0.375rem 0.875rem;
  font-size: 0.8125rem; font-weight: 600; color: #b91c1c;
  background-color: #fee2e2; border: 1px solid #fca5a5;
  border-radius: var(--radius-sm); transition: all var(--transition-fast); cursor: pointer;
}
.action-link-decline:hover { background-color: #dc2626; border-color: #dc2626; color: var(--white); transform: scale(1.03); }
.action-link-decline:active { transform: scale(0.98); }

/* Spinner (loading state) from Talent Hub */
.btn-label { display: inline-flex; align-items: center; gap: 8px; }
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: none;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   5. FORMS
   ========================================================================== */

.form-group { margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }

.field-label, .form-label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--navy-800);
  margin: 16px 0 6px;
}
.field-label:first-child, .form-label:first-child { margin-top: 0; }

.field-label .required, .form-label .required { color: #dc2626; margin-left: 0.25rem; }

.field-input, .field-select, .field-textarea, .form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; color: var(--text-primary);
  background: #fbfcfe;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.field-input::placeholder, .field-textarea::placeholder, .form-control::placeholder { color: #a7b2c3; }
.field-input:hover, .field-select:hover, .field-textarea:hover, .form-control:hover { border-color: var(--gray-400); }
.field-input:focus, .field-select:focus, .field-textarea:focus, .form-control:focus {
  outline: none; border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(54, 164, 120, 0.14); background: var(--white);
}
.field-input:focus-visible { outline: 2px solid var(--forest-600); outline-offset: 1px; }
.field-input:disabled, .field-select:disabled, .field-textarea:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }
.field-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

.field-hint { margin-top: 0.375rem; font-size: 0.8125rem; color: var(--text-tertiary); }
.field-error { margin-top: 0.375rem; font-size: 0.8125rem; color: #dc2626; display: flex; align-items: center; gap: 0.375rem; }
.field-error::before { content: '\26A0'; font-size: 0.875rem; }

.checkbox-label, .checkbox-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; line-height: 1.4; color: var(--text-secondary); cursor: pointer; margin: 10px 0 0;
}
.checkbox-label input[type="checkbox"], .checkbox-row input[type="checkbox"] {
  width: 1.125rem; height: 1.125rem; flex-shrink: 0; margin: 0;
  accent-color: var(--forest-600); cursor: pointer; position: relative; top: 0;
}

.file-input-label { cursor: pointer; padding: 8px 16px; font-size: 13px; }

/* Form alerts (merged) */
.form-alert {
  font-size: 13.5px; font-weight: 500; padding: 11px 14px;
  border-radius: var(--radius-sm); margin-bottom: 18px;
  background: #fdeceb; color: #b3261e; border: 1px solid #f6c9c5;
  display: flex; align-items: center; gap: 0.5rem;
}
.form-alert[hidden] { display: none; }
.form-alert-success, .form-alert.success { background: var(--forest-050); color: var(--forest-900); border-color: rgba(15,157,110,0.25); }

/* ==========================================================================
   6. CARDS / TAGS / BADGES
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--gray-300); }
.card-interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--forest-200); }

.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); background: var(--gray-100); }

.tag { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-full); white-space: nowrap; }
.tag-green { background: var(--forest-100); color: var(--forest-800); }
.tag-amber { background: var(--amber-100); color: #92400e; }
.tag-red { background: #fee2e2; color: #991b1b; }
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-gray { background: var(--gray-200); color: var(--gray-700); }

.status-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.875rem; font-size: 0.8125rem; font-weight: 700; border-radius: var(--radius-full); }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--amber-100); color: #92400e; }
.status-pending::before { background: var(--amber-500); }
.status-eligible { background: var(--forest-100); color: var(--forest-800); }
.status-eligible::before { background: var(--forest-500); }
.status-declined { background: #fee2e2; color: #991b1b; }
.status-declined::before { background: #dc2626; }

.status-pill {
  flex-shrink: 0; background: rgba(20, 182, 135, 0.18); color: var(--emerald-400);
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em; padding: 6px 12px;
  border-radius: 999px; border: 1px solid rgba(47, 209, 156, 0.35); white-space: nowrap;
}
.status-pill-sm {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.status-pill-sm.status-eligible { background: var(--emerald-050); color: var(--emerald-600); }
.status-pill-sm.status-pending { background: var(--amber-050); color: var(--amber-600); }
.status-pill-sm.status-declined { background: #fdeceb; color: #b3261e; }

/* ==========================================================================
   7. AUTH VIEWS  (Sign in / Create account + IMPROVED CTAs)
   ========================================================================== */

.auth-view {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 28px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  min-height: 100vh;
  animation: viewFadeIn 0.35s var(--ease);
}
@keyframes viewFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Small brand mark shown in place of the (hidden) shared topbar, so people
   can still get back to the homepage from the sign-in / create-account pages. */
.auth-brand {
  display: inline-flex; margin-bottom: 32px; position: relative; z-index: 1;
}
.auth-brand::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 160px; height: 160px; margin-left: -80px; margin-top: -80px;
  background: radial-gradient(circle, rgba(54, 164, 120, 0.38) 0%, rgba(54, 164, 120, 0.16) 45%, rgba(54, 164, 120, 0) 72%);
  filter: blur(6px); z-index: -1; pointer-events: none;
  animation: authBrandFog 4.5s ease-in-out infinite;
}
.auth-brand img { height: 26px; width: auto; position: relative; z-index: 1; }
@keyframes authBrandFog {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; }
  50% { transform: translateY(-8px) scale(1.12); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-brand::before { animation: none; }
}

.auth-layout {
  max-width: var(--content-max); width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px;
  align-items: center;
}

.auth-pitch { padding-right: 8px; position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 600; color: var(--forest-600); margin: 0 0 14px; }
.auth-pitch h1, .auth-pitch h2 {
  font-size: 38px; line-height: 1.15; font-weight: 700; color: var(--forest-900); margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.pitch-copy, .auth-pitch p { font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 28px; max-width: 440px; }
.pitch-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pitch-points li { font-size: 14.5px; color: var(--navy-800); font-weight: 500; padding-left: 26px; position: relative; }
.pitch-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--emerald-050); border: 1.5px solid var(--emerald-500); }
.pitch-points li::after { content: ""; position: absolute; left: 5px; top: 8.5px; width: 6px; height: 3px; border-left: 1.5px solid var(--emerald-600); border-bottom: 1.5px solid var(--emerald-600); transform: rotate(-45deg); }

.auth-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 38px 32px;
  box-shadow: var(--shadow-card-lg);
  position: relative; z-index: 1;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.auth-card h2, .auth-card h3 { font-size: 22px; font-weight: 700; color: var(--navy-950); margin-bottom: 6px; }
.auth-subtitle, .auth-card .subtitle { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 24px; }

.auth-card .auth-header { text-align: center; margin-bottom: 2rem; }
.auth-card .auth-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.auth-card .auth-header p { font-size: 0.875rem; color: var(--text-secondary); }

.auth-card .divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--text-tertiary); font-size: 0.875rem; }
.auth-card .divider::before, .auth-card .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }

.auth-card .social-login-group { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.auth-card .social-login-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem; font-size: 0.8125rem; font-weight: 600;
  border: 1.5px solid var(--border-subtle); border-radius: var(--radius-md);
  background: var(--white); color: var(--text-primary); cursor: pointer;
  transition: all var(--transition-fast);
}
.auth-card .social-login-btn:hover { border-color: var(--gray-400); background: var(--gray-050); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.auth-card .switch-link, .auth-switch { text-align: center; margin-top: 1.25rem; font-size: 13.5px; color: var(--text-secondary); }
.auth-card .switch-link a, .auth-switch a { color: var(--forest-700); font-weight: 600; text-decoration: none; }
.auth-card .switch-link a:hover, .auth-switch a:hover { text-decoration: underline; }

/* ---- IMPROVED SIGN-IN / CREATE-ACCOUNT CTAs ---- */
.auth-card .btn-primary { width: 100%; padding: 0.875rem 1.5rem; font-size: 1rem; letter-spacing: 0.01em; }
.auth-card .btn-primary:focus-visible { outline: 2px solid var(--forest-500); outline-offset: 2px; }

/* Hero level CTA used on the landing page "Create Profile" */
.cta-create-profile {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem; font-weight: 700;
  color: var(--white);
  background: linear-gradient(180deg, var(--forest-500) 0%, var(--forest-700) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(54, 164, 120, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  text-decoration: none;
  transition: transform 250ms var(--bubble), box-shadow 250ms ease, background 250ms ease;
}
.cta-create-profile:hover { background: linear-gradient(180deg, var(--forest-400) 0%, var(--forest-600) 100%); transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 40px rgba(54, 164, 120, 0.42), 0 0 0 2px rgba(54,164,120,0.18); }
.cta-create-profile:active { transform: translateY(1px) scale(0.99); }
.cta-create-profile:focus-visible { outline: 3px solid var(--forest-300); outline-offset: 3px; }

.cta-create-profile--secondary {
  background: var(--white); color: var(--forest-700);
  border: 1.5px solid var(--forest-300); box-shadow: var(--shadow-md);
}
.cta-create-profile--secondary:hover { background: var(--forest-050); box-shadow: var(--shadow-lg); }

/* Landing page create-profile section wrapper */
.landing-create-profile {
  position: relative;
  max-width: 880px; margin: 0 auto;
  padding: 56px 28px;
  text-align: center;
}
.landing-create-profile h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; color: var(--forest-900); margin-bottom: 0.75rem; }
.landing-create-profile p { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.6; max-width: 560px; margin: 0 auto 1.75rem; }
.landing-create-profile-actions { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   8. SCENIC BACKGROUND (2D paper plane + social diagram)  — kept from file 1
   ========================================================================== */

.scenic-bg-container { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.paper-plane-canvas-scene { position: absolute; top: 15%; left: 8%; width: 140px; height: 140px; opacity: 0.7; animation: planeDriftPattern 14s ease-in-out infinite alternate; }
.paper-plane-shape { width: 0; height: 0; border-left: 35px solid transparent; border-right: 85px solid transparent; border-bottom: 38px solid var(--forest-300); transform: rotate(-22deg); position: relative; }
.paper-plane-shape::after { content: ''; position: absolute; top: 38px; left: -35px; width: 0; height: 0; border-left: 22px solid transparent; border-right: 55px solid transparent; border-top: 16px solid var(--forest-600); }
@keyframes planeDriftPattern { 0% { transform: translate(0,0) rotate(0deg);} 25% { transform: translate(30px,-15px) rotate(2deg);} 50% { transform: translate(50px,-25px) rotate(4deg);} 75% { transform: translate(20px,10px) rotate(1deg);} 100% { transform: translate(-15px,35px) rotate(-3deg);} }

.paper-mail-scene { position: absolute; top: 30%; right: 12%; width: 120px; height: 100px; opacity: 0.55; animation: mailFlyPath 16s ease-in-out infinite alternate; }
.paper-mail-body { width: 80px; height: 50px; background: var(--white); border: 2px solid var(--forest-300); border-radius: 4px; position: relative; box-shadow: 0 2px 8px rgba(12,45,27,0.1); }
.paper-mail-body::before { content: ''; position: absolute; top: 0; left: 0; right: 0; border-left: 38px solid transparent; border-right: 38px solid transparent; border-top: 25px solid var(--forest-200); }
.paper-mail-body::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; border-left: 38px solid transparent; border-right: 38px solid transparent; border-bottom: 25px solid var(--forest-100); }
.paper-mail-trail { position: absolute; top: 50%; left: -20px; width: 25px; height: 2px; background: linear-gradient(90deg, transparent, var(--forest-300)); transform: translateY(-50%); animation: trailPulse 2s ease-in-out infinite; }
.paper-mail-trail::before, .paper-mail-trail::after { content: ''; position: absolute; height: 1.5px; background: linear-gradient(90deg, transparent, var(--forest-400)); left: -5px; }
.paper-mail-trail::before { top: -5px; width: 18px; animation: trailPulse 2s ease-in-out 0.3s infinite; }
.paper-mail-trail::after { top: 5px; width: 15px; animation: trailPulse 2s ease-in-out 0.6s infinite; }
@keyframes mailFlyPath { 0% { transform: translate(0,0) rotate(0deg) scale(0.9); opacity:0.4;} 25% { transform: translate(-40px,-30px) rotate(-5deg) scale(1); opacity:0.6;} 50% { transform: translate(-80px,-10px) rotate(-8deg) scale(1.05); opacity:0.7;} 75% { transform: translate(-30px,20px) rotate(-3deg) scale(0.95); opacity:0.5;} 100% { transform: translate(20px,-15px) rotate(2deg) scale(0.9); opacity:0.45;} }
@keyframes trailPulse { 0%,100% { opacity:0.3; width:15px;} 50% { opacity:0.7; width:25px;} }

.social-diagram-canvas { position: absolute; bottom: 8%; right: 5%; width: 280px; height: 280px; display: flex; align-items: center; justify-content: center; }
.diagram-hub-email { width: 72px; height: 72px; background: linear-gradient(135deg, var(--forest-800) 0%, var(--forest-950) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 0.75rem; box-shadow: 0 8px 24px rgba(12,45,27,0.35); z-index: 3; border: 2px solid var(--forest-400); animation: hubPulse 3s ease-in-out infinite alternate; }
@keyframes hubPulse { 0% { box-shadow: 0 8px 24px rgba(12,45,27,0.35);} 100% { box-shadow: 0 8px 32px rgba(12,45,27,0.5), 0 0 20px rgba(54,164,120,0.2);} }
.diagram-social-satellite { position: absolute; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.6875rem; font-weight: 800; box-shadow: var(--shadow-md); z-index: 3; animation: floatNodesEffect 4.5s ease-in-out infinite alternate; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.diagram-social-satellite:hover { transform: scale(1.2) !important; box-shadow: 0 8px 20px rgba(0,0,0,0.3); z-index: 5; }
.node-facebook { background: #1877f2; top: 20px; left: 20px; }
.node-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); top: 20px; right: 20px; }
.node-linkedin { background: #0077b5; bottom: 20px; left: 20px; }
.node-x { background: #000; bottom: 20px; right: 20px; border: 1px solid rgba(255,255,255,0.2); }
.social-diagram-canvas::before, .social-diagram-canvas::after { content: ''; position: absolute; background: rgba(148,163,184,0.35); z-index: 2; }
.social-diagram-canvas::before { width: 190px; height: 2px; transform: rotate(45deg); }
.social-diagram-canvas::after { width: 190px; height: 2px; transform: rotate(-45deg); }
@keyframes floatNodesEffect { 0% { transform: translateY(0);} 100% { transform: translateY(-8px);} }
.social-diagram-canvas .connector-h { position: absolute; width: 100%; height: 1px; background: rgba(148,163,184,0.2); top: 50%; z-index: 1; }
.social-diagram-canvas .connector-v { position: absolute; width: 1px; height: 100%; background: rgba(148,163,184,0.2); left: 50%; z-index: 1; }

/* ==========================================================================
   9. SEARCH / HERO / JOBS
   ========================================================================== */

.search-hero { background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-800) 100%); padding: 3rem 1.5rem; position: relative; overflow: hidden; }
.search-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(54,164,120,0.15) 0%, transparent 70%); border-radius: 50%; }
.search-hero-title { text-align: center; color: var(--white); margin-bottom: 1.5rem; position: relative; z-index: 1; }
.search-hero-title h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.search-hero-title p { font-size: 1.125rem; opacity: 0.85; max-width: 500px; margin: 0 auto; }

.search-bar { display: flex; gap: 0; max-width: 800px; margin: 0 auto; background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; position: relative; z-index: 1; }
.search-bar-input-group { flex: 1; display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.25rem; border-right: 1px solid var(--border-light); }
.search-bar-input-group svg { width: 20px; height: 20px; color: var(--gray-400); flex-shrink: 0; }
.search-bar-input { flex: 1; border: none; padding: 0; font-size: 1rem; background: transparent; color: var(--text-primary); }
.search-bar-input:focus { outline: none; }
.search-bar-btn { padding: 0.875rem 2rem; background: var(--forest-600); color: var(--white); font-weight: 600; font-size: 1rem; transition: all var(--transition-fast); }
.search-bar-btn:hover { background: var(--forest-700); transform: scale(1.02); }

/* Jobs board (Talent Hub) */
.jobs-view { flex: 1; padding: 40px 28px 60px; }
.jobs-inner { max-width: var(--content-max); margin: 0 auto; }
.jobs-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; color: var(--forest-900); }
/* Hide the filters toggle on the browse jobs page */
.jobs-view .filters-toggle { display: none !important; }
.jobs-subtitle { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 24px; }

.jobs-search-bar { display: flex; gap: 10px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px; box-shadow: var(--shadow-card); margin-bottom: 28px; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-right: 1px solid var(--border-subtle); color: var(--slate-500); }
.search-field:last-of-type { border-right: none; }
.search-field input { flex: 1; border: none; outline: none; font-size: 14px; font-family: inherit; color: var(--text-primary); background: transparent; }
.jobs-search-bar .btn-primary { margin-top: 0; flex-shrink: 0; border-radius: var(--radius-sm); }

.jobs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.jobs-filters { position: sticky; top: 24px; align-self: start; }

/* Original merged filter-panel / filter-option (hover animations) */
.filter-panel {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.filter-panel-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-light); }
.filter-group { margin-bottom: 1.25rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group-label { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.625rem; }
.filter-option { display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0; font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; transition: color var(--transition-fast); }
.filter-option:hover { color: var(--text-primary); }
.filter-option input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--forest-600); }
.filter-option-count { margin-left: auto; font-size: 0.75rem; color: var(--text-tertiary); background: var(--gray-100); padding: 0.125rem 0.5rem; border-radius: var(--radius-full); }
.filter-group { margin-bottom: 22px; }
.filter-group h4 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-500); margin-bottom: 10px; }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-chip { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--navy-800); cursor: pointer; padding: 5px 0; }
.filter-chip input { accent-color: var(--forest-500); width: 15px; height: 15px; cursor: pointer; }
.filter-chip.is-active { color: var(--forest-700); font-weight: 600; }

.jobs-result-count { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 16px; }
.jobs-list { display: flex; flex-direction: column; gap: 14px; }
.no-results { text-align: center; padding: 48px 0; color: var(--text-secondary); font-size: 14px; }

/* Job cards (merged: Talent Hub base + forest hover) */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.1s var(--ease);
  animation: jobCardIn 0.4s var(--ease) both;
}
@keyframes jobCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.job-card { position: relative; }
.job-card:hover { border-color: var(--forest-300); box-shadow: var(--shadow-xl); transform: translateY(-2px); }
/* Left accent bar on hover (original merged animation) */
.job-card::after {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gray-300); transition: all var(--transition-base);
}
.job-card:hover::after { background: var(--forest-500); }
.job-card.is-featured::after { background: var(--amber-500); width: 5px; }
.job-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }
.job-card-date { font-size: 0.75rem; color: var(--text-tertiary); }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.job-card-title, .job-title { font-size: 16px; font-weight: 700; color: var(--navy-950); margin: 0; }
.job-card-company, .job-company { font-size: 13.5px; color: var(--forest-700); font-weight: 600; margin: 3px 0 0; }
.job-card-type { flex-shrink: 0; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--navy-700); background: var(--slate-100); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.job-card-meta, .job-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.job-card-meta-item { display: flex; align-items: center; gap: 0.375rem; }
.job-card-meta-item svg { width: 16px; height: 16px; opacity: 0.6; }
.job-card-salary, .salary-pill { font-size: 0.9375rem; font-weight: 600; color: var(--forest-700); margin-top: 0.5rem; }
.job-card-snippet { font-size: 13.5px; color: var(--slate-500); line-height: 1.55; margin: 0; }

/* Job detail */
.job-detail-view { flex: 1; padding: 36px 28px 60px; }
.job-detail-inner { max-width: 720px; margin: 0 auto; }
.job-detail-header h1, .job-detail-title { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.job-detail-company, .job-detail-company-name { font-size: 14.5px; color: var(--emerald-600); font-weight: 600; margin: 0 0 18px; }
.job-detail-meta, .job-detail-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.job-detail-section { margin-top: 28px; }
.job-detail-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.job-detail-section p { font-size: 14.5px; line-height: 1.65; color: var(--navy-800); }
.job-detail-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
#jobDetailApplyBtn { margin-top: 4px; }

.back-link { background: none; border: none; color: var(--text-secondary); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 18px; font-family: inherit; display: inline-block; text-decoration: none; }
.back-link:hover { color: var(--navy-950); }

/* Company cards / reviews */
.company-card { display: flex; gap: 1rem; padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: all var(--transition-base); }
.company-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.company-logo { width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: var(--forest-700); flex-shrink: 0; }
.company-body { flex: 1; }
.company-name { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.company-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.company-rating-score { font-size: 1rem; font-weight: 700; color: var(--forest-700); }
.company-rating-stars { display: flex; gap: 0.125rem; color: var(--amber-400); }
.company-rating-count { font-size: 0.875rem; color: var(--text-tertiary); }
.company-meta { font-size: 0.875rem; color: var(--text-tertiary); }
.review-snippet { padding: 1rem; background: var(--gray-100); border-radius: var(--radius-md); margin-top: 0.75rem; }
.review-snippet-text { font-size: 0.875rem; color: var(--text-secondary); font-style: italic; line-height: 1.5; }
.review-snippet-author { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 0.5rem; }
.salary-range { font-size: 1.125rem; font-weight: 700; color: var(--forest-700); }
.salary-range-unit { font-size: 0.875rem; font-weight: 500; color: var(--text-tertiary); }

/* Popular jobs row */
.home-popular { max-width: var(--content-max); margin: 0 auto; padding: 0 28px 56px; }
.home-popular h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.jobs-popular-section { margin-bottom: 28px; }
.jobs-popular-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.jobs-list-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.jobs-list-row .job-card { min-width: 260px; flex-shrink: 0; }

/* ==========================================================================
   10. LAYOUT / DASHBOARD / PROFILE
   ========================================================================== */

.layout-two-col { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; max-width: var(--content-max); margin: 0 auto; padding: 1.5rem; }
.layout-sidebar { position: sticky; top: 80px; height: fit-content; }
.layout-main { min-width: 0; }

.dashboard-view { flex: 1; padding: 40px 28px 60px; animation: viewFadeIn 0.4s var(--ease); }
.dashboard-inner { max-width: var(--content-max); margin: 0 auto; }

.status-banner { display: flex; align-items: flex-start; gap: 16px; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: var(--white); border-radius: var(--radius-lg); padding: 22px 26px; margin-bottom: 28px; box-shadow: var(--shadow-card-lg); position: relative; overflow: hidden; }
.status-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(20,182,135,0.22), transparent 55%); pointer-events: none; }
.status-icon { color: var(--emerald-400); flex-shrink: 0; margin-top: 2px; }
.status-text { flex: 1; }
.status-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--emerald-400); margin: 0 0 4px; }
.status-message { font-size: 15px; font-weight: 500; line-height: 1.5; margin: 0; max-width: 620px; color: #eef2f7; }

.dashboard-header { background: var(--white); border-bottom: 1px solid var(--border-light); padding: 2rem 1.5rem; }
.dashboard-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.dashboard-header p { color: var(--text-secondary); }

.dashboard-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; }

.card.profile-header-card, .card.profile-card, .card.checklist-card { padding: 28px; }
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar, .avatar-lg { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; overflow: hidden; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.avatar img, .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-header h2 { font-size: 19px; font-weight: 700; color: var(--navy-950); }
.profile-role { font-size: 13.5px; color: var(--forest-600); font-weight: 600; margin: 3px 0 0; }
.profile-details { margin: 0 0 22px; }
.detail-row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--border-subtle); gap: 16px; }
.detail-row:last-child { border-bottom: none; }
.detail-row dt { font-size: 12.5px; color: var(--text-secondary); font-weight: 500; flex-shrink: 0; }
.detail-row dd { margin: 0; font-size: 13.5px; color: var(--navy-950); font-weight: 600; text-align: right; word-break: break-word; }
.profile-bio { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: -10px 0 18px; }
.no-link-note { font-size: 13px; color: var(--text-secondary); font-style: italic; margin: 4px 0 0; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.skill-tag { background: var(--emerald-050); color: var(--emerald-600); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(15,157,110,0.2); }
.link-arrow { color: var(--emerald-600); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.recommended-jobs-teaser { margin-top: 16px; background: var(--emerald-050); border-color: rgba(15,157,110,0.2); }
.recommended-jobs-teaser .next-step-label { color: var(--emerald-600); }

/* ---- Profile page micro-interactions (hover + entrance) ---- */
.card.profile-card, .info-block {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card.profile-card:hover, .info-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--forest-200);
}
.application-row {
  transition: transform var(--transition-fast), box-shadow var(--transition-base), border-color var(--transition-base);
}
.application-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest-200);
}
.skill-tag { transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast); }
.skill-tag:hover { transform: translateY(-2px); background: var(--emerald-100); color: var(--emerald-600); }
.link-arrow { transition: gap var(--transition-fast), color var(--transition-fast); }
.link-arrow:hover { gap: 0.375rem; }
.status-pill-sm { transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.status-pill-sm:hover { transform: translateY(-1px); }
.profile-details .detail-row { transition: background var(--transition-fast); }
.profile-details .detail-row:hover { background: var(--forest-050); }

.checklist-card h3 { font-size: 16px; font-weight: 700; color: var(--navy-950); }
.checklist-subtitle { font-size: 13px; color: var(--text-secondary); margin: 4px 0 20px; }
.checklist { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--navy-800); font-weight: 500; }
.checklist-item.pending { color: var(--text-secondary); }
.check-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.checklist-item.done .check-icon { background: var(--emerald-050); color: var(--emerald-600); font-weight: 700; }
.checklist-item.pending .check-icon { background: var(--amber-050); color: var(--amber-600); }
.next-step { background: #f7f9fc; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 18px; }
.next-step-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin: 0 0 6px; }
.next-step-copy { font-size: 13.5px; color: var(--navy-800); line-height: 1.55; margin: 0; }

/* My applications */
.my-applications-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.no-applications-note { font-size: 13.5px; color: var(--text-secondary); padding: 8px 0; }
.application-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #f7f9fc; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.application-row-info p { margin: 0; }
.application-row-title { font-size: 13.5px; font-weight: 600; color: var(--navy-950); }
.application-row-company { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); transition: all var(--transition-base); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--forest-700); margin-bottom: 0.25rem; }
.stat-label { font-size: 0.875rem; color: var(--text-tertiary); }
.stat-change { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; margin-top: 0.5rem; padding: 0.25rem 0.5rem; border-radius: var(--radius-full); }
.stat-change.positive { background: var(--forest-100); color: var(--forest-800); }
.stat-change.negative { background: #fee2e2; color: #991b1b; }

/* Dashboard info section (how it works / ethics / legal / social) */
.dashboard-info-section { max-width: var(--content-max); margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-block { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 24px 26px; }
.info-block h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.info-block p { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.legal-links-row { display: flex; gap: 16px; }
.legal-links-row a { font-size: 13.5px; font-weight: 600; color: var(--emerald-600); text-decoration: none; }
.legal-links-row a:hover { text-decoration: underline; }
.social-handles-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-handles-row a { font-size: 13px; font-weight: 600; color: var(--navy-800); text-decoration: none; background: var(--slate-100); padding: 6px 14px; border-radius: 999px; }
.social-handles-row a:hover { background: var(--emerald-050); color: var(--emerald-600); }

/* ==========================================================================
   11. HOMEPAGE
   ========================================================================== */

.home-view { flex: 1; }
.home-hero { max-width: var(--content-max); margin: 0 auto; padding: 64px 28px 48px; text-align: center; }
.home-hero h1 { font-size: 40px; font-weight: 700; line-height: 1.15; margin: 14px 0 18px; color: var(--navy-950); }
.home-subheading { font-size: 16px; color: var(--text-secondary); line-height: 1.6; max-width: 640px; margin: 0 auto 32px; }
.home-cta-row { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.home-cta-row .btn-primary, .home-cta-row .btn-ghost, .home-cta-row .cta-create-profile { margin-top: 0; text-decoration: none; }
.home-cta-row .btn-ghost { border-radius: var(--radius-full); }
.home-countries { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.home-countries-label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-500); margin: 0; }
.country-pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 600px; }
.country-pill { font-size: 12.5px; font-weight: 600; color: var(--navy-800); background: var(--slate-100); padding: 5px 12px; border-radius: 999px; }
.home-jobs-teaser { max-width: var(--content-max); margin: 0 auto; padding: 0 28px 56px; }
.home-jobs-teaser-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.home-jobs-teaser-header h2 { font-size: 22px; font-weight: 700; }
.home-jobs-teaser-footer { text-align: center; margin-top: 20px; }
.home-jobs-teaser-footer .btn-secondary, .home-contact .btn-secondary { text-decoration: none; display: inline-flex; }
.home-contact { max-width: var(--content-max); margin: 0 auto; padding: 0 28px 72px; text-align: center; }
.home-contact h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.home-contact-copy { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 20px; line-height: 1.6; }

.site-footer { text-align: center; padding: 24px 28px; border-top: 1px solid var(--border-subtle); background: var(--bg-page); }
.site-footer p { font-size: 12.5px; color: var(--slate-500); margin: 0; }
.footer-links { display: flex; gap: 14px; justify-content: center; margin-top: 8px; }
.footer-links a { font-size: 12.5px; color: var(--slate-500); text-decoration: none; }
.footer-links a:hover { color: var(--navy-950); text-decoration: underline; }

/* ==========================================================================
   12. ONBOARDING — CREDENTIAL VERIFICATION ANIMATION
   ========================================================================== */

.onboarding-view { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.onboarding-card { width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 36px 38px; box-shadow: var(--shadow-card-lg); text-align: center; }
.onboarding-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.onboarding-subtitle { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 28px; }
.credential-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.credential-row { display: flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 500; color: var(--slate-500); transition: color 0.3s var(--ease); }
.credential-spinner { position: relative; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2.5px solid var(--border-subtle); border-top-color: var(--emerald-500); animation: credSpin 0.7s linear infinite; }
.credential-row.is-verified .credential-spinner { animation: none; border: none; background: var(--emerald-050); display: inline-flex; align-items: center; justify-content: center; }
.credential-row.is-verified .credential-spinner::after { content: "✓"; color: var(--emerald-600); font-size: 13px; font-weight: 700; animation: checkPop 0.3s var(--ease); }
.credential-row.is-verified .credential-label { color: var(--navy-950); font-weight: 600; }
@keyframes credSpin { to { transform: rotate(360deg); } }
@keyframes checkPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   13. MODALS
   ========================================================================== */

.modal-overlay, .modal-overlay-legacy {
  position: fixed; inset: 0;
  background: rgba(11, 19, 32, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 200; animation: overlayIn 0.18s var(--ease);
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal, .modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-lg);
  max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.2s var(--ease);
}
.modal { animation: slideUp 300ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { padding: 1.5rem 1.5rem 0; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.modal-header h2, .modal-header h3 { font-size: 19px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 16px; color: var(--slate-500); cursor: pointer; padding: 4px; line-height: 1; }
.modal-close:hover { color: var(--navy-950); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem 1.5rem; display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.modal-actions .btn-primary, .modal-actions .btn-ghost, .modal-footer .btn { margin-top: 0; }

.avatar-edit-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar-edit-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.job-modal-card { max-width: 560px; }
.job-modal-company { font-size: 13.5px; color: var(--emerald-600); font-weight: 600; margin: 4px 0 16px; }
.job-modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.job-modal-description { font-size: 14px; line-height: 1.65; color: var(--navy-800); margin: 0 0 24px; }

/* ==========================================================================
   14. TOASTS / NOTIFICATIONS / DROPDOWN PANEL
   ========================================================================== */

.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300; display: flex; flex-direction: column; gap: 0.75rem; pointer-events: none; }
.toast { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 500; pointer-events: auto; animation: toastIn 300ms cubic-bezier(0.16, 1, 0.3, 1); max-width: 400px; }
.toast.success { border-left: 3px solid var(--forest-500); }
.toast.error { border-left: 3px solid #dc2626; }
.toast.info { border-left: 3px solid #3b82f6; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.dropdown-panel { position: absolute; top: 60px; right: 24px; width: 340px; max-height: 420px; background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-card-lg); z-index: 90; overflow: hidden; display: flex; flex-direction: column; }
.dropdown-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); }
.dropdown-panel-header h3 { font-size: 14px; font-weight: 700; margin: 0; }
.link-btn { background: none; border: none; color: var(--emerald-600); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.notification-list { overflow-y: auto; flex: 1; }
.notification-item { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); cursor: pointer; }
.notification-item:hover { background: #f7f9fc; }
.notification-item.is-unread { background: var(--emerald-050); }
.notification-item-title { font-size: 13px; font-weight: 700; color: var(--navy-950); margin: 0 0 3px; }
.notification-item-body { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 4px; line-height: 1.4; }
.notification-item-time { font-size: 11px; color: var(--slate-500); }
.notification-empty { padding: 30px 16px; text-align: center; font-size: 13px; color: var(--text-secondary); }

/* ==========================================================================
   15. ADMIN SHELL / DASHBOARD
   ========================================================================== */

.admin-shell { display: flex; min-height: 100vh; background: #f4f6fa; overflow-x: hidden; }

/* Admin shell owns the full viewport — no global top bar on admin pages.
   NOTE: we key off the `.page-admin` body class (kept in sync by the
   MutationObserver in index.html that watches #adminShell's `hidden`
   attribute) rather than `:has(.admin-shell)`. #adminShell is always
   present in the DOM — just toggled with the `hidden` attribute — so
   `:has(.admin-shell)` matched on every page and hid the topbar site-wide. */
body.page-admin { padding-top: 0; }
body.page-admin .topbar { display: none !important; }

/* Sign-in and create-account pages get their own focused, full-screen layout
   with no shared topbar (they already carry their own "Sign in"/"Create one"
   switch link and a small brand mark in .auth-layout). */
body.page-login, body.page-signup { padding-top: 0; }
body.page-login .topbar, body.page-signup .topbar { display: none !important; }

/* Top nav bar is restored on every other user-facing page, including the landing page */
body:not(.page-admin):not(.page-login):not(.page-signup) .topbar { display: flex !important; }

/* Sign-in CTA lives inside the admin sidebar (shown on mobile nav bar) */
.admin-sidebar .nav-cta { display: none; margin-left: auto; }
@media (max-width: 880px) {
  .admin-sidebar .nav-cta { display: inline-flex; padding: 7px 16px; font-size: 13px; flex-shrink: 0; }
}
.admin-sidebar { width: 240px; flex-shrink: 0; background: var(--navy-950); color: var(--white); display: flex; flex-direction: column; padding: 22px 0; }
.admin-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 20px 24px; font-size: 14px; font-weight: 600; }
.admin-sidebar-brand img { height: 24px; width: auto; }
.admin-sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.admin-sidebar-link { display: flex; align-items: center; justify-content: space-between; background: none; border: none; color: var(--slate-300); font-size: 13.5px; font-weight: 500; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; }
.admin-sidebar-link:hover { background: rgba(255,255,255,0.06); color: var(--white); transform: translateX(3px); }
.admin-sidebar-link.is-active { background: var(--emerald-500); color: var(--navy-950); font-weight: 700; }
.admin-badge-count { background: #e0473e; color: var(--white); font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.admin-sidebar-link.is-active .admin-badge-count { background: var(--navy-950); color: var(--white); }
.admin-sidebar-footer { padding: 16px 20px 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--slate-300); }
.admin-sidebar-footer .btn-ghost-sm { color: var(--slate-300); }
.admin-sidebar-footer .btn-ghost-sm:hover { color: var(--white); }

.admin-main { flex: 1; min-width: 0; padding: 28px 36px 60px; max-width: 1100px; overflow-x: hidden; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 24px; font-weight: 700; }
.admin-topbar-icons { display: flex; gap: 8px; }
.admin-topbar-icons .icon-btn { color: var(--slate-500); }
.admin-topbar-icons .icon-btn:hover { background: #e9edf3; }

.admin-view { flex: 1; padding: 40px 28px 60px; }
.admin-inner { max-width: var(--content-max); margin: 0 auto; }
.admin-inner h1 { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 24px; overflow-x: auto; }
.admin-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); cursor: pointer; font-family: inherit; white-space: nowrap; }
.admin-tab:hover { color: var(--navy-950); }
.admin-tab.is-active { color: var(--emerald-600); border-bottom-color: var(--emerald-600); }

.admin-panel { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 1.5rem; min-width: 0; max-width: 100%; overflow-x: hidden; }
.admin-panel-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }

.admin-table { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.admin-table table, .admin-table-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.05em; background: var(--gray-050); border-bottom: 2px solid var(--border-light); }
.admin-table td { padding: 1rem; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
.admin-table tr:hover td { background: var(--forest-050); }
.admin-table tr:last-child td { border-bottom: none; }

.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 18px; max-width: 100%; }
.admin-row-main { flex: 1; min-width: 200px; overflow-wrap: break-word; word-break: break-word; }
.admin-row-title { font-size: 14px; font-weight: 700; color: var(--navy-950); margin: 0; overflow-wrap: break-word; }
.admin-row-sub { font-size: 12.5px; color: var(--text-secondary); margin: 3px 0 0; overflow-wrap: break-word; }
.admin-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.admin-row-actions .btn-ghost, .admin-row-actions .btn-secondary, .admin-row-actions .btn-primary { padding: 7px 14px; font-size: 12.5px; margin-top: 0; min-height: 32px; }
.admin-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-badge.is-admin { background: var(--navy-950); color: var(--white); }
.admin-empty-note { font-size: 13.5px; color: var(--text-secondary); padding: 20px 0; text-align: center; }
.admin-settings-form { max-width: 480px; }
.admin-settings-form .btn-primary { margin-top: 18px; }

.admin-messages-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; height: 560px; }
.admin-conversations-list { overflow-y: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); }
.admin-conversation-item { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); cursor: pointer; }
.admin-conversation-item:hover { background: #f7f9fc; }
.admin-conversation-item.is-active { background: var(--emerald-050); }
.admin-conversation-name { font-size: 13.5px; font-weight: 700; color: var(--navy-950); margin: 0 0 2px; }
.admin-conversation-preview { font-size: 12px; color: var(--text-secondary); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-conversation-thread { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); display: flex; flex-direction: column; padding: 16px; overflow-y: auto; }
.admin-thread-input-row { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.admin-thread-input-row input { flex: 1; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13.5px; font-family: inherit; }

/* ==========================================================================
   16. SETTINGS / LEGAL PAGES
   ========================================================================== */

.settings-view { flex: 1; padding: 36px 28px 60px; }
.settings-inner { max-width: 560px; margin: 0 auto; }
.settings-inner h1 { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.settings-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 24px; }
.settings-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); cursor: pointer; font-family: inherit; }
.settings-tab.is-active { color: var(--emerald-600); border-bottom-color: var(--emerald-600); }
.settings-panel { margin-top: 8px; }

.legal-view { flex: 1; padding: 36px 28px 60px; }
.legal-inner { max-width: 680px; margin: 0 auto; }
.legal-inner h1 { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.legal-body h3 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; color: var(--navy-950); }
.legal-body p { font-size: 14px; line-height: 1.65; color: var(--navy-800); margin: 0 0 10px; }
.legal-note { font-size: 12.5px; color: var(--slate-500); font-style: italic; margin-top: 24px; }

/* ==========================================================================
   17. CHAT WIDGET
   ========================================================================== */

.chat-fab { position: fixed; bottom: 24px; right: 24px; width: 54px; height: 54px; border-radius: 50%; background: var(--navy-950); color: var(--white); border: none; font-size: 22px; cursor: pointer; box-shadow: var(--shadow-card-lg); z-index: 80; display: flex; align-items: center; justify-content: center; }
.chat-fab:hover { background: var(--navy-800); }
.chat-widget { position: fixed; bottom: 90px; right: 24px; width: 340px; height: 440px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card-lg); z-index: 81; display: flex; flex-direction: column; overflow: hidden; }
.chat-widget-header { background: var(--navy-950); color: var(--white); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.chat-widget-header .modal-close { color: var(--slate-300); }
.chat-widget-header .modal-close:hover { color: var(--white); }
.chat-widget-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.chat-bubble.from-user { align-self: flex-end; background: var(--navy-950); color: var(--white); border-bottom-right-radius: 4px; }
.chat-bubble.from-admin { align-self: flex-start; background: #f1f3f7; color: var(--navy-950); border-bottom-left-radius: 4px; }
.chat-empty { font-size: 13px; color: var(--text-secondary); text-align: center; padding: 30px 10px; }
.chat-widget-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border-subtle); }
.chat-widget-input-row input { flex: 1; border: 1px solid var(--border-subtle); border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-family: inherit; outline: none; }
.chat-widget-input-row input:focus { border-color: var(--emerald-500); }
.chat-send-btn { margin-top: 0; padding: 9px 18px; font-size: 13px; }

/* ==========================================================================
   18. GEO-BLOCK SCREEN
   ========================================================================== */

.geo-block-screen { position: fixed; inset: 0; z-index: 200; background: var(--navy-950); display: flex; align-items: center; justify-content: center; padding: 24px; }
.geo-block-card { max-width: 460px; text-align: center; color: var(--white); }
.geo-block-logo { width: 300px; height: auto; margin: 0 auto 20px auto; }
.geo-block-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.geo-block-card p { font-size: 14px; color: var(--slate-300); line-height: 1.6; margin-bottom: 22px; }
.geo-block-reasons { text-align: left; list-style: disc; margin: -10px 0 22px 20px; padding: 0; }
.geo-block-reasons li { font-size: 13px; color: var(--slate-300); line-height: 1.6; }
.geo-block-retry { margin-top: 18px; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.geo-block-retry:hover { background: rgba(255,255,255,0.08); }

/* ==========================================================================
   19. ANIMATIONS / KEYFRAMES
   ========================================================================== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Ambient radial glow (file1 main::before) */
.auth-view::before, main::before,
.jobs-view::before, .home-view::before, .dashboard-view::before {
  content: ""; position: absolute; width: 600px; height: 600px;
  top: 10%; right: 5%;
  background: radial-gradient(circle, rgba(54, 164, 120, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: var(--radius-full); z-index: -1; pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

/* Browse-jobs / landing 2D scenic animation layer (file1 scenic-bg-container).
   Place <div class="scenic-bg-container">…</div> as the FIRST child of
   .jobs-view or .home-view so the paper plane + social diagram render behind
   the page content, exactly as in the merged script. */
.jobs-view, .home-view { position: relative; }
.jobs-view .scenic-bg-container,
.home-view .scenic-bg-container {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.jobs-view > :not(.scenic-bg-container),
.home-view > :not(.scenic-bg-container) { position: relative; z-index: 1; }
@keyframes pulseGlow { 0% { transform: scale(1) translate(0,0); opacity: 0.8; } 100% { transform: scale(1.15) translate(-30px,20px); opacity: 1; } }

/* Content layers sit above the photo/haze/dots */
.auth-view, .search-hero, .layout-two-col, .dashboard-header, .main, main, .jobs-view, .dashboard-view, .home-view, .admin-view {
  position: relative; z-index: 1;
}

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%); background-size: 200% 100%; animation: skeletonRun 1.5s ease-in-out infinite; border-radius: var(--radius-md); }
@keyframes skeletonRun { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* ==========================================================================
   20. UTILITIES
   ========================================================================== */

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }

/* ==========================================================================
   21b. PAGE BACKGROUNDS — per-page photographic artwork
   ----------------------------------------------------------------------------
   A single <div class="bg-robot-art"> is reused as the page background.
   app.js tags <body> with page-landing / page-login / page-signup, etc.
   Drop the three photos at the site root using these exact filenames (or
   change the URLs below):
     /landing-bg.jpg   (home)
     /signup-bg.jpg    (create account)
     /signin-bg.jpg    (sign in)
   !important is used so this always wins over background-theme.css.
   ========================================================================== */

.bg-robot-art {
  position: fixed !important;
  inset: 0 !important;
  z-index: -2 !important;
  opacity: 1 !important;
  pointer-events: none !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Fog / haze layer — soft drifting radial gradients that sit over the photo
   and under the particle dots. Replaces the old blueprint grid. */
.bg-haze {
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(55% 45% at 18% 20%, rgba(54, 164, 120, 0.12), transparent 70%),
    radial-gradient(50% 50% at 82% 28%, rgba(20, 182, 135, 0.12), transparent 72%),
    radial-gradient(65% 55% at 50% 92%, rgba(43, 140, 102, 0.10), transparent 70%);
  filter: blur(42px);
  animation: hazeDrift 20s ease-in-out infinite alternate;
}
@keyframes hazeDrift {
  0%   { transform: scale(1) translate(0, 0); opacity: 0.85; }
  50%  { transform: scale(1.12) translate(-2%, 1.5%); opacity: 1; }
  100% { transform: scale(1.05) translate(2%, -1.5%); opacity: 0.9; }
}

body.page-landing .bg-robot-art { background-image: url('/landing-bg.jpg') !important; }
body.page-signup  .bg-robot-art { background-image: url('/signup-bg.jpg') !important; }
body.page-login   .bg-robot-art { background-image: url('/signin-bg.jpg') !important; }

/* Browse-jobs page reuses the landing photo */
body.page-jobs .bg-robot-art { background-image: url('/landing-bg.jpg') !important; }

/* Soft white scrim over the landing + jobs photos so dark text stays legible */
body.page-landing .bg-robot-art::after,
body.page-jobs .bg-robot-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.55) 100%);
}

/* Remaining user pages (dashboard, settings, terms, privacy, job-detail,
   onboarding, eligibility) reuse the landing photo so every user page has a
   background image. */
body.page-dashboard .bg-robot-art { background-image: url('/landing-bg.jpg') !important; }
body.page-settings .bg-robot-art { background-image: url('/landing-bg.jpg') !important; }

/* Light scrim so card text stays crisp over the photo */
body.page-dashboard .bg-robot-art::after,
body.page-settings .bg-robot-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.55) 100%);
}

/* Work ID tab (inside Settings) reuses the sign-in photo. Defined AFTER the
   generic settings/dashboard rules so it wins while the tab is active. */
body.page-workid .bg-robot-art { background-image: url('/signin-bg.jpg') !important; }
body.page-workid .bg-robot-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.72) 100%);
}

/* Landing photo reads cleaner without the blueprint grid behind it */
body.page-landing .home-view { background-image: none !important; }

/* On auth pages, drop the opaque gradient so the photo shows through */
body.page-login  .auth-view,
body.page-signup .auth-view { background: transparent !important; }

/* White scrim behind auth content for contrast on top of the photo */
body.page-login  .auth-view::before,
body.page-signup .auth-view::before {
  top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
  width: auto !important; height: auto !important; transform: none !important;
  animation: none !important; border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.80) 100%) !important;
}

/* ==========================================================================
   21. MOBILE RESPONSIVE  (IMPROVED across all breakpoints)
   ========================================================================== */

/* Tablet */
@media (max-width: 880px) {
  .topbar { padding: 0 1rem; }
  .topbar-inner { padding: 0; }
  .topbar-nav { display: none; }
  .topbar-menu-toggle { display: flex; }
  .primary-nav { display: none; }

  .auth-layout { grid-template-columns: 1fr; gap: 36px; }
  .auth-pitch { text-align: center; padding-right: 0; }
  .auth-pitch h1, .auth-pitch h2 { font-size: 30px; }
  .pitch-points { align-items: center; }

  .layout-two-col { grid-template-columns: 1fr; padding: 1rem; }
  .layout-sidebar { position: static; }

  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 12px; align-items: center; gap: 4px; }
  .admin-sidebar-brand { padding: 0 12px 0 4px; border-right: 1px solid rgba(255,255,255,0.12); margin-right: 4px; flex-shrink: 0; }
  .admin-sidebar-nav { flex-direction: row; flex: none; padding: 0; gap: 4px; }
  .admin-sidebar-link { flex-shrink: 0; white-space: nowrap; }
  .admin-sidebar-footer { flex-shrink: 0; border-top: none; border-left: 1px solid rgba(255,255,255,0.12); padding: 0 0 0 12px; margin-left: 4px; }
  .admin-sidebar-footer span { display: none; }
  .admin-main { padding: 1rem; }

  .search-bar { flex-direction: column; border-radius: var(--radius-lg); }
  .search-bar-input-group { border-right: none; border-bottom: 1px solid var(--border-light); }
  .search-bar-btn { width: 100%; justify-content: center; }

  .job-card { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .job-card-actions { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .card.profile-header-card, .card.profile-card, .card.checklist-card { padding: 20px; }
  .profile-header { gap: 12px; }
  .detail-row { flex-wrap: wrap; }
  .detail-row dd { text-align: left; }
  .status-banner { flex-direction: column; }
  .status-pill { align-self: flex-start; }
  .dashboard-info-section { grid-template-columns: 1fr; }

  .jobs-layout { grid-template-columns: 1fr; }
  .jobs-filters { position: static; display: flex; flex-wrap: wrap; gap: 20px; overflow-x: visible; }
  .filter-group { flex: 1; min-width: 140px; margin-bottom: 0; }
  .jobs-search-bar { flex-direction: column; }
  .search-field { border-right: none; border-bottom: 1px solid var(--border-subtle); }

  .admin-messages-layout { grid-template-columns: 1fr; height: auto; }

  .social-diagram-canvas, .paper-plane-canvas-scene, .paper-mail-scene { display: none; }
  .search-hero { padding: 2rem 1rem; }
  .search-hero-title h1 { font-size: 1.5rem; }
  .home-hero h1 { font-size: 30px; }
  .home-cta-row { flex-direction: column; align-items: stretch; }

  .modal, .modal-card { margin: 0.5rem; max-height: 95vh; }
  .auth-card .social-login-group { flex-direction: column; }
  .toast-container { left: 1rem; right: 1rem; }
  .toast { max-width: 100%; }
  .container { padding: 0 1rem; }
  body { padding-top: 56px; }
  .topbar { height: 56px; }
  .dashboard-header, .dashboard-view, .jobs-view, .admin-view { padding: 1.25rem 1rem; }
  .dashboard-header h1 { font-size: 1.375rem; }
  .admin-row { flex-direction: column; align-items: stretch; }
  .admin-row-actions { width: 100%; }
}

/* Small phones */
@media (max-width: 640px) {
  .topbar-inner { padding: 0 16px; }
  .brand-name { font-size: 14px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .nav-link { font-size: 13px; padding: 6px 8px; }
  .user-menu-trigger span:nth-child(2) { display: none; }
  /* Keep a clean, always-visible Create account button on the mobile nav bar */
  .topbar-actions .nav-cta { display: inline-flex; padding: 0.5rem 1rem; font-size: 0.8125rem; }

  .auth-layout { padding: 0; }
  .auth-pitch { display: none; }
  .auth-view { padding: 24px 16px; }
  .auth-card { padding: 24px 20px 22px; border-radius: var(--radius-lg); }
  .auth-card h2, .auth-card h3 { font-size: 20px; }
  .auth-card .btn-primary { padding: 0.875rem 1rem; font-size: 1rem; }

  .landing-create-profile { padding: 40px 16px; }
  .landing-create-profile-actions { flex-direction: column; align-items: stretch; }
  .cta-create-profile { width: 100%; padding: 0.7rem 1.25rem; font-size: 0.9rem; }

  .home-hero { padding: 36px 18px 32px; }
  .home-hero h1 { font-size: 24px; }
  .home-subheading { font-size: 14px; }
  .home-jobs-teaser, .home-contact, .home-popular { padding-left: 16px; padding-right: 16px; }

  .stats-grid { grid-template-columns: 1fr; }
  .job-card { padding: 16px; }
  .job-card-top { flex-direction: column; gap: 8px; }
  .job-card-type { align-self: flex-start; }
  .job-card-meta { flex-direction: column; align-items: flex-start; gap: 0.375rem; }

  .modal, .modal-card { border-radius: var(--radius-lg); margin: 0.25rem; padding: 20px 18px 22px; max-height: 92vh; }
  .modal-overlay { padding: 12px; }
  .modal-header { padding: 1rem 1rem 0; }
  .modal-body { padding: 1rem; }
  .modal-footer { padding: 0.75rem 1rem 1rem; flex-direction: column; }
  .modal-footer .btn, .modal-actions { width: 100%; flex-direction: column; }
  .modal-actions .btn { width: 100%; }

  .filter-panel { padding: 1rem; }
  .company-card { flex-direction: column; align-items: center; text-align: center; }
  .company-rating { justify-content: center; }
  .job-detail-meta { flex-direction: column; gap: 0.5rem; }
  .job-detail-view, .settings-view, .legal-view { padding: 20px 16px 40px; }
  .job-detail-header { padding: 1.25rem 1rem; }
  .job-detail-title { font-size: 1.375rem; }
  .job-detail-actions { flex-direction: column; align-items: stretch; }
  #jobDetailApplyBtn { width: 100%; }

  .scenic-bg-container { display: none; }
  .bg-robot-art { background-attachment: scroll !important; }

  .country-pill-row { gap: 6px; }
  .country-pill { font-size: 11.5px; padding: 4px 10px; }

  .application-row { flex-direction: column; align-items: stretch; }
  .status-pill-sm { align-self: flex-start; }

  .admin-sidebar { padding: 8px 10px; gap: 2px; }
  .admin-sidebar-link { padding: 8px 10px; font-size: 12.5px; }
  .admin-main { padding: 20px 16px 50px; }
  .admin-panel { padding: 1rem; border-radius: var(--radius-lg); }
  .admin-table { font-size: 0.75rem; }
  .admin-table th, .admin-table td { padding: 0.625rem 0.5rem; }
  .admin-tabs { gap: 0; }
  .admin-tab { padding: 8px 10px; font-size: 12.5px; }

  .chat-widget { width: calc(100vw - 32px); right: 16px; height: 60vh; }
  .chat-fab { right: 16px; bottom: 16px; }
  .dropdown-panel { right: 12px; left: 12px; width: auto; }
}

/* Large screens */
@media (min-width: 1200px) {
  .social-diagram-canvas { width: 320px; height: 320px; }
  .paper-plane-canvas-scene { top: 12%; left: 10%; width: 160px; height: 160px; }
  .paper-mail-scene { top: 25%; right: 15%; width: 140px; height: 120px; }
}

/* Print */
@media print {
  .topbar, .scenic-bg-container, .paper-plane-canvas-scene, .paper-mail-scene, .social-diagram-canvas, .toast-container, .chat-fab, .chat-widget, .dropdown-panel, .bg-haze, #bgAnimation, canvas { display: none !important; }
  body { padding-top: 0; }
  .auth-view, .admin-shell, .search-hero, .layout-two-col, .dashboard-header, main, .home-view, .jobs-view, .dashboard-view, .admin-view { background-image: none; }
  .auth-view::before, main::before,
  .jobs-view::before, .home-view::before, .dashboard-view::before { display: none; }
  * { box-shadow: none !important; text-shadow: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .credential-spinner { animation: none; border-top-color: var(--border-subtle); }
}

/* High contrast */
@media (forced-colors: active) {
  .btn-primary, .btn-secondary, .nav-cta { border: 1px solid ButtonText; }
  .topbar { border-bottom: 1px solid ButtonText; }
  .card, .job-card, .filter-panel { border: 1px solid ButtonText; }
}

/* ==========================================================================
   16. WORK ID DASHBOARD OVERVIEW + ADMIN WIDE MODAL + TOPBAR SIGN-OUT CTA
   ========================================================================== */

.modal-card-wide { max-width: 880px; }

.nav-cta.nav-cta-signout { background: var(--white); color: var(--forest-700); border: 1px solid var(--forest-300); }
.nav-cta.nav-cta-signout:hover { background: var(--forest-050); }

.workid-dashboard { margin-top: 28px; }
.workid-note {
  background: var(--forest-050); border: 1px solid var(--forest-200); border-radius: var(--radius-lg);
  padding: 14px 16px; font-size: 13.5px; color: var(--forest-900); line-height: 1.55; margin-bottom: 22px;
}
.workid-note strong { color: var(--forest-800); }

.workid-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px;
}
.workid-stat-card {
  background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.workid-stat-card .workid-stat-value { font-size: 24px; font-weight: 700; color: var(--navy-950); line-height: 1.1; }
.workid-stat-card .workid-stat-label { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }

.workid-section-title { font-size: 15px; font-weight: 700; color: var(--navy-950); margin: 0 0 12px; }

.workid-chart-wrap { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 26px; }
.workid-chart-toggle { display: flex; gap: 6px; margin-bottom: 12px; }
.workid-chart-toggle button {
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-subtle);
  background: var(--white); color: var(--text-secondary); cursor: pointer; transition: all var(--transition-base);
}
.workid-chart-toggle button.is-active { background: var(--forest-600); border-color: var(--forest-600); color: var(--white); }

.workid-active-jobs, .workid-platforms, .workid-recommended { margin-bottom: 26px; }
.workid-active-job-row, .workid-platform-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: 8px; font-size: 13.5px;
}
.workid-platform-row button { background: none; border: none; color: var(--slate-500); cursor: pointer; font-size: 13px; }
.workid-platform-row button:hover { color: #c0392b; }
.workid-add-platform-form { display: flex; gap: 8px; margin-top: 10px; }
.workid-add-platform-form input { flex: 1; }

.workid-recommended-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

.chat-live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-400);
  margin-right: 5px; animation: chatLivePulse 1.6s ease-in-out infinite;
}
@keyframes chatLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (max-width: 640px) {
  .workid-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
