/* ==========================================================
   NSHTGHL THEME 2026
   Calm and spacious (large headings, small understated buttons, warm off-white canvas) in the logo colours:
   navy #062B62, sky blue #0FAAC7 (variables still named --mint*), orange #FE7A15 for free / start actions.
   One UI font: IBM Plex Sans Arabic (Arabic + Latin). Loaded after every other sheet: it re-points
   the design tokens used across styles.css and the feature sheets, then restyles the shared components
   (top bar, drawer, buttons, forms, cards, modals, footer, job cards) and the public home (#view-home).
   ========================================================== */

:root,
[data-theme="light"] {
  --navy: #062B62;               /* logo navy */
  --navy-2: #24467A;
  --navy-3: #021B42;
  --mint: #0FAAC7;               /* logo sky blue (kept the old variable name) */
  --mint-2: #0B92AE;
  --mint-ink: #0A7088;           /* sky blue as text on light surfaces (AA) */
  --orange: #FE7A15;             /* logo orange: free / start actions */
  --orange-2: #EA6A08;
  --orange-ink: #A84600;         /* orange as text on light surfaces (AA) */
  --orange-light: rgba(254, 122, 21, 0.13);
  --canvas: #FBFAF6;
  --canvas-2: #F3F1EA;

  --bg-base: var(--canvas);
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F7F6F1;
  --bg-glass: rgba(251, 250, 246, 0.92);
  --bg-input: #FFFFFF;
  --border-subtle: #E8E4DA;
  --border-strong: #D6D1C4;
  --border-active: var(--navy);
  --border-glow: rgba(20, 45, 78, 0.16);

  --primary: var(--navy);
  --primary-hover: var(--navy-3);
  --primary-active: var(--navy-3);
  --primary-gradient: linear-gradient(0deg, var(--navy), var(--navy));
  --primary-gradient-subtle: linear-gradient(0deg, rgba(20, 45, 78, 0.06), rgba(20, 45, 78, 0.06));
  --primary-glow: rgba(20, 45, 78, 0.12);
  --primary-light: rgba(20, 45, 78, 0.07);
  --primary-subtle: rgba(20, 45, 78, 0.04);
  --on-primary: #FFFFFF;
  --accent: var(--mint);
  --on-accent: var(--navy-3);

  --accent-emerald: var(--mint-2);
  --accent-emerald-light: rgba(15, 170, 199, 0.12);
  --accent-cyan: var(--navy-2);
  --accent-indigo: var(--navy);
  --accent-purple: var(--navy-2);

  --text-main: #15263B;
  --text-soft: #2C3E52;
  --text-muted: #5A6878;
  --text-faint: #7A8593;
  --text-inverted: #FFFFFF;
  --tx-primary: var(--navy);
  --tx-indigo: var(--navy);
  --tx-purple: var(--navy-2);
  --tx-cyan: var(--navy-2);
  --tx-emerald: var(--mint-ink);

  --shadow-sm: 0 1px 2px rgba(20, 45, 78, 0.05);
  --shadow-md: 0 6px 18px -8px rgba(20, 45, 78, 0.14);
  --shadow-lg: 0 18px 40px -18px rgba(20, 45, 78, 0.22);
  --shadow-glow: none;
  --shadow-glow-purple: none;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font-arabic: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-latin: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

[data-theme="dark"] {
  --canvas: #0D1828;
  --canvas-2: #112036;
  --bg-base: var(--canvas);
  --bg-surface: #12223A;
  --bg-surface-elevated: #162943;
  --bg-card: #13243C;
  --bg-card-hover: #182C48;
  --bg-glass: rgba(13, 24, 40, 0.92);
  --bg-input: #0F1D31;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-active: var(--mint);
  --border-glow: rgba(15, 170, 199, 0.25);

  --primary: var(--mint);
  --primary-hover: #86D3C0;
  --primary-active: #86D3C0;
  --primary-gradient: linear-gradient(0deg, var(--mint), var(--mint));
  --primary-glow: rgba(15, 170, 199, 0.18);
  --primary-light: rgba(15, 170, 199, 0.12);
  --primary-subtle: rgba(15, 170, 199, 0.06);
  --on-primary: var(--navy-3);
  --on-accent: var(--navy-3);

  --text-main: #EEF2F6;
  --text-soft: #D3DCE6;
  --text-muted: #A3B2C3;
  --text-faint: #8797AA;
  --text-inverted: var(--navy-3);
  --tx-primary: var(--mint);
  --tx-indigo: #B9C8DA;
  --tx-purple: #B9C8DA;
  --tx-cyan: #9CC9E0;
  --tx-emerald: var(--mint);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 22px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 44px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- base ---------- */
html { font-size: 16px; }
body,
[data-theme="light"] body,
[data-theme="dark"] body {
  background: var(--bg-base);
  background-image: none;
  color: var(--text-main);
  font-family: var(--font-arabic);
  line-height: 1.7;
}
[dir="ltr"] { font-family: var(--font-latin); }
body.public-page { font-family: var(--font-arabic); }
button, input, select, textarea { font-family: inherit; }
/* Arabic letters are joined: negative tracking breaks them. */
h1, h2, h3, h4, h5, .page-title, .home-title, .home-h2 { letter-spacing: 0; }
::selection { background: rgba(15, 170, 199, 0.35); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.main-content { padding: 0 0 4rem; }
.page-view:not(.home-view) { padding-top: 2rem; }
.page-view { animation: none; }
.container-standard, .view-container { max-width: 1200px; padding: 0 1.5rem; }
.page-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; color: var(--text-main); line-height: 1.35; }
.page-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.8; max-width: 70ch; }

/* ---------- buttons ---------- */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.15rem;
  min-height: 42px;
  box-shadow: none;
  transform: none !important;
  transition: var(--transition);
}
.btn i, .btn svg { width: 18px; height: 18px; }
.btn-primary, .btn-primary-sm {
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid var(--primary);
  box-shadow: none;
  filter: none !important;
}
.btn-primary:hover, .btn-primary-sm:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: none; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-primary-sm { border-radius: var(--radius-sm); padding: 0.45rem 0.9rem; font-size: 0.88rem; }
.btn-accent {
  background: var(--mint); color: var(--on-accent); border: 1px solid var(--mint); font-weight: 700;
}
.btn-accent:hover { background: var(--mint-2); border-color: var(--mint-2); color: var(--on-accent); }
.btn-ghost, .btn-outline, .btn-outline-sm {
  background: transparent; color: var(--text-main); border: 1px solid var(--border-strong);
}
.btn-ghost:hover, .btn-outline:hover, .btn-outline-sm:hover { background: var(--bg-card-hover); border-color: var(--text-muted); }
.btn-outline-sm { border-radius: var(--radius-sm); font-size: 0.86rem; }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 1.02rem; min-height: 50px; border-radius: 12px; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.86rem; min-height: 36px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--tx-primary); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- forms ---------- */
.form-input, .form-select, .form-textarea,
[data-theme="light"] .form-input, [data-theme="light"] .form-select, [data-theme="light"] .form-textarea {
  background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); box-shadow: none; font-size: 0.98rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus,
[data-theme="light"] .form-input:focus, [data-theme="light"] .form-select:focus, [data-theme="light"] .form-textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 170, 199, 0.3); background: var(--bg-input);
}
[data-theme="dark"] .form-input:focus, [data-theme="dark"] .form-select:focus, [data-theme="dark"] .form-textarea:focus { border-color: var(--mint); }

/* ---------- top bar ---------- */
.top-nav,
[data-theme="light"] .top-nav {
  height: 72px;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: none;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav-container { max-width: 1240px; gap: 1.5rem; }
.brand-logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text-main); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--mint); font-weight: 700; font-size: 1.25rem; line-height: 1;
}
[data-theme="dark"] .brand-mark { background: var(--mint); color: var(--navy-3); }
.logo-title,
[data-theme="light"] .logo-title {
  font-size: 1.3rem; font-weight: 700; color: var(--text-main); letter-spacing: 0;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor;
}
.brand-logo .logo-tagline { display: none !important; }
.logo-icon-wrap, .logo-icon-wrap-sm { display: none; }
.portal-indicator-badge.seeker-badge { display: none !important; }
.portal-indicator-badge.recruiter-badge {
  font-size: 0.72rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--primary-light); color: var(--tx-primary); border: 0;
}
.side-menu-trigger-btn,
[data-theme="light"] .side-menu-trigger-btn {
  width: 40px; height: 40px; border-radius: var(--radius-md); background: transparent; border: 1px solid var(--border-subtle); color: var(--text-main);
}
.side-menu-trigger-btn:hover { background: var(--bg-card-hover); }

.top-links { display: flex; align-items: center; gap: 0.15rem; margin-inline-start: auto; }
.top-link {
  background: none; border: 0; cursor: pointer; padding: 0.5rem 0.8rem; border-radius: 8px;
  font-size: 0.96rem; font-weight: 500; color: var(--text-muted); position: relative; white-space: nowrap;
}
.top-link:hover { color: var(--text-main); background: var(--bg-card-hover); }
.top-link.active { color: var(--text-main); font-weight: 600; }
.top-link.active::after {
  content: ""; position: absolute; inset-inline: 0.8rem; bottom: 0.15rem; height: 2px; border-radius: 2px; background: var(--mint);
}
body.portal-mode-recruiter .top-links { display: none; }

.nav-actions { gap: 0.5rem; }
.icon-btn, .icon-btn-text { border-radius: var(--radius-md); }
.nav-login-btn { min-height: 40px; padding: 0.45rem 1rem; border-color: transparent; }
.nav-login-btn:hover { border-color: var(--border-strong); }
.nav-start-btn { min-height: 40px; padding: 0.45rem 1.1rem; }
.nav-guest-only { display: none !important; }
html.auth-guest .nav-guest-only { display: inline-flex !important; }
html.auth-guest .side-nav-item.nav-guest-only { display: flex !important; }
.user-chip-menu { border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--bg-surface); }
.user-avatar-initials, .popover-avatar-sm, .drawer-user-avatar { background: var(--navy) !important; color: #fff !important; }
[data-theme="dark"] .user-avatar-initials, [data-theme="dark"] .popover-avatar-sm, [data-theme="dark"] .drawer-user-avatar { background: var(--mint) !important; color: var(--navy-3) !important; }

@media (max-width: 1080px) {
  .top-links { display: none; }
  .icon-btn-text #currentLangLabel { display: none; }
}
@media (max-width: 560px) {
  .top-nav, [data-theme="light"] .top-nav { height: 62px; }
  .nav-container { padding: 0 1rem; gap: 0.5rem; }
  .logo-title { font-size: 1.15rem; }
  .nav-actions #langToggleBtn, .nav-actions #themeToggleBtn { display: none !important; }
  .nav-login-btn { padding: 0.4rem 0.6rem; }
  .nav-start-btn { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
  .user-chip-info { display: none; }
}

/* ---------- side drawer ---------- */
.side-drawer,
[data-theme="light"] .side-drawer { background: var(--bg-surface); border-inline-start: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg); }
.drawer-header, [data-theme="light"] .drawer-header { border-bottom: 1px solid var(--border-subtle); background: transparent; }
.drawer-brand { display: flex; align-items: center; gap: 0.6rem; }
.drawer-title { font-size: 1.2rem; font-weight: 700; color: var(--text-main); }
.drawer-auth-card, [data-theme="light"] .drawer-auth-card {
  background: var(--canvas-2); border: 0; border-radius: var(--radius-lg); margin: 1rem; padding: 1rem;
}
.drawer-auth-desc { color: var(--text-soft); font-size: 0.92rem; line-height: 1.7; margin: 0 0 0.75rem; }
.drawer-auth-actions { display: flex; gap: 0.5rem; }
.drawer-auth-actions .btn { flex: 1; }
.drawer-section-title, [data-theme="light"] .drawer-section-title {
  font-size: 0.78rem; font-weight: 600; color: var(--text-faint); text-transform: none; letter-spacing: 0;
  margin: 1.1rem 0.75rem 0.35rem; padding: 0; border: 0;
}
.side-nav-item, [data-theme="light"] .side-nav-item {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  padding: 0.62rem 0.75rem; border-radius: var(--radius-md); border: 0; background: transparent;
  color: var(--text-soft); font-size: 0.97rem; font-weight: 500; text-align: start;
}
.side-nav-item i, .side-nav-item svg { width: 19px; height: 19px; color: var(--text-faint); flex: 0 0 auto; }
.side-nav-item:hover, [data-theme="light"] .side-nav-item:hover { background: var(--bg-card-hover); color: var(--text-main); }
.side-nav-item.active, [data-theme="light"] .side-nav-item.active {
  background: var(--primary-light); color: var(--tx-primary); font-weight: 600; box-shadow: inset -3px 0 0 var(--mint);
}
[dir="ltr"] .side-nav-item.active { box-shadow: inset 3px 0 0 var(--mint); }
.side-nav-item.active i, .side-nav-item.active svg,
[data-theme="light"] .side-nav-item.active i, [data-theme="light"] .side-nav-item.active svg { color: var(--tx-primary); }
.side-nav-item .nav-lock { width: 15px; height: 15px; margin-inline-start: auto; color: var(--text-faint); opacity: 0.8; }
.nav-free-badge {
  margin-inline-start: auto; font-size: 0.72rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 999px;
  background: var(--accent-emerald-light); color: var(--tx-emerald);
}
body.is-paid .nav-lock, body.is-paid .nav-free-badge, body.is-paid .job-lock-icon { display: none !important; }
.side-nav-item.vip-item { background: transparent; }
.drawer-footer, [data-theme="light"] .drawer-footer { border-top: 1px solid var(--border-subtle); background: transparent; }

/* ---------- cards, modals, footer ---------- */
.modal-backdrop { background: rgba(12, 31, 56, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-dialog, [data-theme="light"] .modal-dialog {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.modal-dialog::before { display: none !important; }
.modal-header, [data-theme="light"] .modal-header { border-bottom: 1px solid var(--border-subtle); }

.app-footer {
  background: var(--navy-3); color: #C9D4E0; border-top: 0; margin-top: 0; padding: 2.5rem 0;
}
[data-theme="dark"] .app-footer { background: #081221; }
.app-footer .footer-container { max-width: 1240px; }
.app-footer .footer-logo { color: #fff; font-weight: 700; }
.app-footer .footer-logo i, .app-footer .footer-logo svg { color: var(--mint); }
.app-footer .footer-copy { color: #9FB0C3; }
.app-footer .footer-link { color: #C9D4E0; }
.app-footer .footer-link:hover { color: var(--mint); }

/* ---------- jobs page ---------- */
.jobs-hero-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: none; }
.jobs-hero-card::before, .jobs-hero-card::after { display: none !important; }
.job-card-premium {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: none;
}
.job-card-premium:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: none; }
.job-card-premium::before { display: none !important; }
.job-title-text { font-size: 1.08rem; font-weight: 700; color: var(--text-main); }
.job-desc-snippet { color: var(--text-muted); line-height: 1.8; }
.meta-pill, .job-skill-chip { background: var(--canvas-2); color: var(--text-soft); border: 0; border-radius: 999px; }
.btn-portal-direct {
  background: var(--primary); color: var(--on-primary) !important; border-radius: var(--radius-md); border: 0; box-shadow: none;
}
.btn-portal-direct:hover { background: var(--primary-hover); }
.btn-tailor-job-cv,
.btn-tailor-job-cv[style] {
  background: transparent !important; color: var(--text-soft) !important; border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-md); box-shadow: none;
}
.btn-tailor-job-cv:hover { background: var(--bg-card-hover) !important; }
.btn-easy-apply { background: var(--mint) !important; color: var(--on-accent) !important; border-color: var(--mint) !important; font-weight: 700; }
.job-lock-icon { width: 14px !important; height: 14px !important; opacity: 0.75; margin-inline-start: 0.15rem; }
.jobs-load-more { display: flex; justify-content: center; padding: 1.5rem 0 0.5rem; grid-column: 1 / -1; }
.jobs-load-more .btn { min-width: 240px; gap: 0.5rem; }
.jobs-load-more small { color: var(--text-faint); font-weight: 500; }

/* ---------- pricing view ---------- */
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: none; }
.pricing-card.featured { border: 2px solid var(--navy); }
[data-theme="dark"] .pricing-card.featured { border-color: var(--mint); }
.featured-pill { background: var(--mint) !important; color: var(--navy-3) !important; }

/* ==========================================================
   PUBLIC HOME (#view-home)
   ========================================================== */
.home-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.home-view { padding-top: 0; }

.home-hero { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2.5rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--border-subtle); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--tx-emerald);
  margin-bottom: 1.1rem;
}
.home-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.home-title {
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5rem); line-height: 1.15; font-weight: 700; color: var(--text-main);
  margin: 0 0 1.25rem;
}
.home-lead { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); color: var(--text-muted); line-height: 1.9; max-width: 54ch; margin: 0 0 1.75rem; }

.home-search {
  display: flex; align-items: center; gap: 0.5rem; max-width: 560px;
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 0.35rem;
  padding-inline-start: 0.9rem; margin-bottom: 1.25rem;
}
.home-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 170, 199, 0.3); }
[data-theme="dark"] .home-search:focus-within { border-color: var(--mint); }
.home-search > i, .home-search > svg { width: 20px; height: 20px; color: var(--text-faint); flex: 0 0 auto; }
.home-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1rem; color: var(--text-main); padding: 0.55rem 0; }
.home-search input::placeholder { color: var(--text-faint); }
.home-search .btn { min-height: 44px; padding: 0.5rem 1.4rem; border-radius: 10px; }

.home-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }
.home-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2.5rem; }
.home-facts li { display: flex; flex-direction: column; }
.home-facts strong { font-size: 1.6rem; font-weight: 700; color: var(--text-main); line-height: 1.3; font-variant-numeric: tabular-nums; }
.home-facts span { font-size: 0.88rem; color: var(--text-muted); }

.home-hero-stack { display: flex; flex-direction: column; gap: 0.85rem; }
.home-stack-card {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: start; cursor: pointer;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 1rem 1.1rem;
  box-shadow: var(--shadow-md); color: var(--text-main); font: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.home-stack-card:nth-child(2) { margin-inline-start: 1.75rem; }
.home-stack-card:nth-child(3) { margin-inline-start: 3.5rem; }
.home-stack-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.home-stack-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.home-stack-card, .home-hero-copy, .home-hero-stack { min-width: 0; }
.home-stack-body strong { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-stack-body span { font-size: 0.86rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-stack-time { font-size: 0.78rem; color: var(--text-faint); white-space: nowrap; }
.home-stack-card.is-skeleton, .home-job.is-skeleton { height: 76px; cursor: default; box-shadow: none; background: var(--canvas-2); border-color: transparent; animation: homePulse 1.4s ease-in-out infinite; }
.home-job.is-skeleton { height: 190px; }
@keyframes homePulse { 50% { opacity: 0.55; } }

.home-job-logo {
  position: relative; width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--canvas-2); color: var(--text-main); font-weight: 700; font-size: 1.05rem; border: 1px solid var(--border-subtle);
}
.home-job-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }

.home-section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.home-section-alt { background: var(--canvas-2); }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.home-section-head.is-centered { flex-direction: column; align-items: center; text-align: center; }
.home-kicker { display: block; font-size: 0.9rem; font-weight: 600; color: var(--tx-emerald); margin-bottom: 0.4rem; }
.home-h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); line-height: 1.3; font-weight: 700; color: var(--text-main); margin: 0; }
.home-sub { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; max-width: 60ch; margin: 0.75rem 0 0; }
.home-empty { color: var(--text-muted); padding: 1rem 0; }

.home-jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-job {
  display: flex; flex-direction: column; gap: 0.5rem; text-align: start; cursor: pointer; font: inherit; color: var(--text-main);
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 1.25rem; min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.home-job:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.home-job-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.home-job-time { font-size: 0.8rem; color: var(--text-faint); }
.home-job-title { font-size: 1.06rem; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-job-meta { font-size: 0.88rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-job-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.home-job-chips span { font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--canvas-2); color: var(--text-soft); }
.home-section-alt .home-job-chips span { background: var(--bg-base); }
.home-job-cta { margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; color: var(--tx-primary); }
.home-job-cta i, .home-job-cta svg { width: 16px; height: 16px; }

.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-feature {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; text-align: start; cursor: pointer; font: inherit; color: var(--text-main);
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 1.5rem; min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.home-feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.home-feature strong { font-size: 1.15rem; font-weight: 700; }
.home-feature > span:last-child { color: var(--text-muted); line-height: 1.8; font-size: 0.96rem; }
.home-feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--mint); margin-bottom: 0.5rem;
}
[data-theme="dark"] .home-feature-icon { background: rgba(15, 170, 199, 0.14); }
.home-feature-icon i, .home-feature-icon svg { width: 22px; height: 22px; }
.home-tag {
  position: absolute; top: 1.25rem; inset-inline-end: 1.25rem; font-size: 0.74rem; font-weight: 600;
  padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--canvas-2); color: var(--text-muted);
}
.home-section-alt .home-tag { background: var(--bg-base); }
.home-tag.is-free { background: var(--accent-emerald-light); color: var(--tx-emerald); }
body.is-paid .home-tag { display: none; }
.home-features-more { text-align: center; color: var(--text-muted); margin: 1.75rem auto 0; max-width: 60ch; line-height: 1.8; }

.home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: none; }
.home-steps li { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1.25rem; border-top: 2px solid var(--border-subtle); }
.home-steps strong { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.home-steps li > span:last-child { color: var(--text-muted); line-height: 1.8; }
.home-step-num { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--mint); margin-bottom: 0.4rem; font-variant-numeric: tabular-nums; }

.home-band { background: var(--navy); color: #fff; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0; }
[data-theme="dark"] .home-band { background: #0A1627; border-block: 1px solid var(--border-subtle); }
.home-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.home-band-title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.4; font-weight: 700; color: #fff; margin: 0 0 0.6rem; }
.home-band p { color: #C9D4E0; margin: 0; font-size: 1.02rem; }

.home-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 1.25rem; }
.home-plan {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 1.75rem;
}
.home-plan.is-featured { border: 2px solid var(--navy); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .home-plan.is-featured { border-color: var(--mint); }
.home-plan-pill {
  position: absolute; top: -0.85rem; inset-inline-start: 1.5rem; font-size: 0.78rem; font-weight: 700;
  padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--mint); color: var(--navy-3);
}
.home-plan-name { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.home-plan-price { display: flex; align-items: baseline; gap: 0.5rem; }
.home-plan-price span { font-size: 2.4rem; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.home-plan-price small { color: var(--text-muted); font-size: 0.95rem; }
.home-plan-desc { color: var(--text-muted); margin: 0; line-height: 1.8; }
.home-plan-list { list-style: none; margin: 0.25rem 0 0.75rem; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.home-plan-list li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--text-soft); line-height: 1.7; font-size: 0.95rem; }
.home-plan-list i, .home-plan-list svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 0.3rem; color: var(--mint-2); }
.home-plans-note { text-align: center; margin: 1.5rem 0 0; }

.home-companies { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.home-companies-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.home-faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; align-items: start; }
.home-faq-wrap .home-section-head { flex-direction: column; align-items: flex-start; gap: 0; }
.home-faq { display: flex; flex-direction: column; }
.home-faq details { border-bottom: 1px solid var(--border-subtle); padding: 1.1rem 0; }
.home-faq details:first-child { border-top: 1px solid var(--border-subtle); }
.home-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 1.08rem; font-weight: 600; color: var(--text-main);
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--text-faint); line-height: 1; }
.home-faq details[open] summary::after { content: "−"; }
.home-faq p { color: var(--text-muted); line-height: 1.9; margin: 0.75rem 0 0; }

@media (max-width: 960px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .home-stack-card:nth-child(2), .home-stack-card:nth-child(3) { margin-inline-start: 0; }
  .home-jobs-grid, .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-faq-wrap { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .home-wrap { padding: 0 1rem; }
  .home-jobs-grid, .home-features, .home-steps { grid-template-columns: 1fr; }
  .home-steps { gap: 1.25rem; }
  .home-plans { grid-template-columns: minmax(0, 1fr); }
  .home-facts { gap: 0 1.5rem; }
  .home-facts strong { font-size: 1.3rem; }
  .home-search .btn { padding: 0.5rem 1rem; }
  .home-hero-stack .home-stack-card:nth-child(3) { display: none; }
  .home-companies-actions, .home-companies-actions .btn, .home-band-inner .btn { width: 100%; }
  .container-standard, .view-container { padding: 0 1rem; }
}

/* ==========================================================
   JOBS PAGE (calmer: one header, plain cards, tools under the list)
   ========================================================== */
.jobs-head { padding: 0.5rem 0 1.75rem; }
.jobs-head .page-title { margin: 0.1rem 0 0.5rem; }
.jobs-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; margin-top: 1rem; color: var(--text-muted); font-size: 0.92rem; }
.jobs-head-meta #jobsFoundCount { color: var(--text-main); font-size: 1rem; }
.jobs-head-dot { color: var(--text-faint); }
.jobs-head .job-auto-refresh-clean { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; background: none; border: 0; padding: 0; color: var(--text-muted); font-size: 0.92rem; }
.jobs-head .refresh-action-btn { background: none; border: 0; padding: 0; color: var(--tx-primary); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: underline; text-underline-offset: 3px; }
.jobs-head .refresh-action-btn i, .jobs-head .refresh-action-btn svg { width: 15px; height: 15px; }

.jobs-filter-toolbar { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: none; }
.job-source-filter-btn { border-radius: 999px; background: transparent; border: 1px solid var(--border-subtle); color: var(--text-soft); box-shadow: none; }
.job-source-filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.job-source-filter-btn .source-icon-badge { display: none; }
.pill-select, .form-select-sm { border-radius: var(--radius-md); }

.jobs-subtabs-row { border-bottom: 1px solid var(--border-subtle); }
.jobs-subtab-btn { border-radius: var(--radius-md); }
.jobs-subtab-btn.active { background: var(--primary-light); color: var(--tx-primary); }

/* Cards: no coloured source stripes, plain source label, aligned actions */
.jobs-cards-grid .job-card-premium,
.jobs-cards-grid .job-card-premium[class*="source-"] {
  border: 1px solid var(--border-subtle) !important; border-radius: var(--radius-lg); box-shadow: none; padding: 1.35rem;
}
.jobs-cards-grid .job-card-premium:hover { border-color: var(--border-strong) !important; box-shadow: var(--shadow-md); }
.job-title-link { color: var(--text-main); }
.job-title-link .title-ext-icon { display: none; }
.company-name, .company-name[style] { color: var(--text-soft) !important; text-decoration: none !important; font-weight: 600; }
.job-source-tag-group { align-items: flex-end; gap: 0.35rem; }
.job-source-tag, .job-source-tag[class*="tag-"] {
  background: transparent !important; border: 0 !important; color: var(--text-faint) !important; padding: 0;
  font-size: 0.78rem; white-space: nowrap;
}
.job-source-tag strong { font-weight: 500; }
.job-source-tag .source-icon-badge { display: none; }
.badge-week-fresh, .badge-week-fresh.pulse-glow {
  animation: none !important; box-shadow: none !important; background: var(--accent-emerald-light) !important; color: var(--tx-emerald) !important;
  border: 0 !important; border-radius: 999px; font-size: 0.74rem; padding: 0.1rem 0.55rem;
}
.badge-week-fresh i, .badge-week-fresh svg { display: none; }
.meta-pill, .meta-pill.date-pill, .meta-pill.salary-pill { background: var(--canvas-2) !important; color: var(--text-soft) !important; border: 0 !important; }
.job-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; border-top: 1px solid var(--border-subtle); padding-top: 1rem; }
.job-footer-left, .job-footer-right { display: contents !important; }
.btn-portal-direct, .btn-portal-direct:visited {
  background: var(--primary) !important; color: var(--on-primary) !important; border: 1px solid var(--primary) !important;
  border-radius: var(--radius-md) !important; box-shadow: none !important; font-weight: 600; font-size: 0.9rem;
  min-height: 40px; padding: 0.45rem 1rem; display: inline-flex; align-items: center;
}
.btn-portal-direct:hover { background: var(--primary-hover) !important; }
.btn-tailor-job-cv, .btn-tailor-job-cv[style], .btn-easy-apply, .btn-applied-disabled {
  min-height: 40px; padding: 0.45rem 0.85rem; font-size: 0.88rem; border-radius: var(--radius-md) !important; box-shadow: none !important;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.btn-easy-apply { margin-inline-start: auto; }

/* Tools under the list: CV bank (free) + alerts / auto-apply (paid), compact and quiet */
.jobs-extras { display: grid; gap: 0.75rem; margin: 2rem 0 1rem; }
.jobs-extras .cvb-promo, .jobs-extras .job-alerts-banner, .jobs-extras .aa-banner {
  margin: 0; background: var(--bg-surface) !important; border: 1px solid var(--border-subtle) !important; border-radius: var(--radius-lg) !important;
  box-shadow: none !important; padding: 1rem 1.15rem; color: var(--text-main);
}
.jobs-extras .cvb-promo { background: var(--accent-emerald-light) !important; border-color: transparent !important; }
.jobs-extras .job-alerts-banner::before, .jobs-extras .job-alerts-banner::after, .jobs-extras .aa-banner::before { display: none !important; }
.jobs-extras .job-alerts-title, .jobs-extras .aa-banner-title, .jobs-extras .cvb-promo-text strong { color: var(--text-main) !important; font-size: 1rem; }
.jobs-extras .job-alerts-subtitle, .jobs-extras .aa-banner-sub, .jobs-extras .cvb-promo-text span { color: var(--text-muted) !important; }
.jobs-extras .job-alerts-icon-wrap, .jobs-extras .aa-banner-icon, .jobs-extras .cvb-promo-icon {
  background: var(--navy) !important; color: var(--mint) !important; border: 0 !important; box-shadow: none !important; border-radius: 12px;
}
.jobs-extras .btn-activate-alerts {
  background: transparent !important; color: var(--text-main) !important; border: 1px solid var(--border-strong) !important;
  box-shadow: none !important; border-radius: var(--radius-md) !important; animation: none !important; font-weight: 600;
}
.jobs-extras .btn-activate-alerts:hover { background: var(--bg-card-hover) !important; }
.jobs-extras .aa-pro-chip { background: var(--canvas-2); color: var(--text-muted); border: 0; }
.jobs-linkedin-hint-banner { display: none; }
/* ==========================================================
   AUTH / SUBSCRIBE WINDOW
   ========================================================== */
.modal-auth-box .auth-header-title { display: flex; align-items: center; gap: 0.75rem; }
.modal-auth-box .auth-header-title h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-main); margin: 0; }
.modal-auth-box .auth-badge-50 { background: none !important; border: 0 !important; padding: 0 !important; color: var(--text-muted) !important; font-size: 0.9rem; font-weight: 400; }
.auth-notice-banner {
  background: var(--accent-emerald-light) !important; color: var(--text-main) !important; border: 0 !important;
  border-radius: var(--radius-md) !important; margin: 0.75rem 1.25rem 0 !important; font-size: 0.93rem;
}
.portal-role-selector { gap: 0.6rem; border-bottom: 0 !important; background: transparent !important; }
.portal-role-card {
  background: var(--bg-surface) !important; border: 1px solid var(--border-subtle) !important; border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}
.portal-role-card.active { border-color: var(--navy) !important; background: var(--primary-light) !important; }
[data-theme="dark"] .portal-role-card.active { border-color: var(--mint) !important; }
.portal-role-icon, .portal-role-icon.icon-seeker, .portal-role-icon.icon-recruiter {
  background: var(--navy) !important; color: var(--mint) !important; box-shadow: none !important; border: 0 !important;
}
.portal-role-title { color: var(--text-main) !important; font-weight: 600; }
.portal-role-desc { color: var(--text-muted) !important; }
.portal-role-check { color: var(--mint-2) !important; }
.auth-tabs-segmented, .portal-subtabs {
  background: var(--canvas-2) !important; border: 0 !important; border-radius: 12px !important; padding: 4px !important; gap: 4px;
}
.portal-tab-pill {
  background: transparent !important; color: var(--text-muted) !important; border: 0 !important; box-shadow: none !important;
  border-radius: 9px !important; font-weight: 600; min-height: 40px;
}
.portal-tab-pill.active { background: var(--bg-surface) !important; color: var(--text-main) !important; box-shadow: var(--shadow-sm) !important; }
.portal-tab-pill i, .portal-tab-pill svg { display: none; }
.auth-switch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin: 1.1rem 0 0.25rem; color: var(--text-muted); font-size: 0.92rem; }
#authPane_subscription > .auth-switch-row { justify-content: flex-start; margin: 0 0 1rem; }
.auth-switch-sep { color: var(--text-faint); }
.sub-pricing-banner {
  background: var(--canvas-2) !important; border: 1px solid var(--border-subtle) !important; border-radius: var(--radius-lg) !important;
  box-shadow: none !important; color: var(--text-main) !important;
}
.sub-pricing-banner::before, .sub-pricing-banner::after { display: none !important; }
.sub-plan-badge { background: var(--navy) !important; color: #fff !important; border: 0 !important; }
[data-theme="dark"] .sub-plan-badge { background: var(--mint) !important; color: var(--navy-3) !important; }
.sub-plan-price-row .amount, .sub-plan-price-row .currency { color: var(--text-main) !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
.sub-plan-price-row .period { color: var(--text-muted) !important; }
.sub-features-check-list li { color: var(--text-soft) !important; }
.sub-features-check-list i, .sub-features-check-list svg { color: var(--mint-2) !important; }
.guest-banner-box {
  display: block !important; background: var(--accent-emerald-light) !important; border: 0 !important; border-radius: var(--radius-lg) !important;
  padding: 1rem 1.1rem !important; margin-bottom: 1.1rem; color: var(--text-main) !important;
}
.guest-banner-box > strong { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.guest-limits-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.guest-limits-list li { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--text-soft); }
.guest-limits-list i, .guest-limits-list svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 0.3rem; color: var(--mint-ink); }
[data-theme="dark"] .guest-limits-list i, [data-theme="dark"] .guest-limits-list svg { color: var(--mint); }
.guest-limits-note { display: block; margin-top: 0.6rem; color: var(--text-muted); font-size: 0.88rem; }
.auth-register-title { display: block; font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--text-main); }
.payment-method-card { border-radius: var(--radius-md) !important; box-shadow: none !important; }
.payment-method-card.selected { border-color: var(--navy) !important; background: var(--primary-light) !important; }
.payment-instructions-box, .receipt-dropzone { border-radius: var(--radius-md) !important; }
.sub-approval-note, .sub-approval-note[style] { background: var(--canvas-2) !important; border: 0 !important; color: var(--text-soft) !important; }
.sub-pricing-banner .sub-plan-price-row .amount, .sub-pricing-banner .sub-plan-price-row .currency { color: var(--text-main) !important; }
.modal-auth-box .auth-notice-banner, [data-theme="light"] .modal-auth-box .auth-notice-banner { background: var(--accent-emerald-light) !important; color: var(--text-main) !important; border: 0 !important; }

/* ==========================================================
   BUTTON HIERARCHY (one main action per block, the rest quieter)
   ========================================================== */
/* Job cards: main button + small icon tools on one line */
.jobs-cards-grid .job-card-footer {
  display: flex !important; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid var(--border-subtle); padding-top: 1rem; margin-top: auto; flex-wrap: nowrap;
}
.job-actions-main { display: flex; align-items: center; gap: 0.9rem; min-width: 0; flex-wrap: wrap; }
.job-main-btn, a.job-main-btn { min-height: 40px; padding: 0.45rem 1.1rem; gap: 0.35rem; text-decoration: none; }
.job-main-btn i, .job-main-btn svg { width: 16px; height: 16px; }
.job-text-link { color: var(--tx-primary); font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; }
.job-status-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; font-weight: 600;
  color: var(--tx-emerald); background: var(--accent-emerald-light); border-radius: 999px; padding: 0.3rem 0.75rem;
}
.job-status-chip i, .job-status-chip svg { width: 15px; height: 15px; }
.job-actions-tools { display: flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; }
.job-icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: transparent; color: var(--text-muted); border: 1px solid var(--border-subtle); border-radius: 10px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.job-icon-btn:hover { background: var(--bg-card-hover); color: var(--text-main); border-color: var(--border-strong); }
.job-icon-btn i, .job-icon-btn svg { width: 18px; height: 18px; }

/* Home hero: search is the main element; under it one button + one text link */
.home-hero-actions { align-items: center; gap: 1.25rem; }
.home-hero-actions .btn { flex: 0 0 auto; width: auto; }
.home-text-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 1rem;
  color: var(--text-main); display: inline-flex; align-items: center; gap: 0.35rem;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--mint);
}
.home-text-link i, .home-text-link svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .home-facts strong { font-size: 1.2rem; }
  .home-facts span { font-size: 0.8rem; line-height: 1.5; }
  .home-hero-actions { gap: 1rem; }
}

/* Top bar: language + theme are quiet icon buttons, the account buttons stand out */
.nav-actions .icon-btn, .nav-actions .icon-btn-text { border-color: transparent; background: transparent; }
.nav-actions .icon-btn:hover, .nav-actions .icon-btn-text:hover { background: var(--bg-card-hover); }
.nav-actions .nav-login-btn { margin-inline-start: 0.35rem; }

/* Jobs filters: two columns of selects on phones, reset as a text link */
.btn-reset-filters { border: 0 !important; background: none !important; color: var(--tx-primary) !important; text-decoration: underline; text-underline-offset: 4px; padding-inline: 0.25rem !important; }
@media (max-width: 640px) {
  .jobs-filter-dropdowns-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .jobs-filter-dropdowns-row .filter-select-wrap { min-width: 0; width: 100%; }
  .jobs-filter-dropdowns-row .pill-select { width: 100%; min-width: 0; font-size: 0.85rem; text-overflow: ellipsis; }
  .jobs-filter-dropdowns-row .btn-reset-filters { grid-column: 1 / -1; justify-self: start; }
}
/* Phones: keep the card's main button and its tools on one line (older mobile rules stacked them) */
.jobs-cards-grid .job-card-footer { flex-direction: row !important; align-items: center !important; text-align: start; }
.jobs-cards-grid .job-card-footer > * { width: auto !important; margin: 0 !important; }
.nav-container { flex-wrap: nowrap; }
.brand-logo, .logo-text, .logo-title-row { min-width: 0; }
.logo-title { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) {
  .job-icon-btn { width: 34px; height: 34px; }
  .job-main-btn, a.job-main-btn { padding: 0.4rem 0.85rem; }
}
.brand-group { flex-shrink: 1; min-width: 0; }
.nav-actions { flex-shrink: 0; }
@media (max-width: 640px) {
  .jobs-filter-dropdowns-row .select-icon { display: none; }
  .jobs-filter-dropdowns-row .pill-select { padding-inline-start: 0.75rem !important; }
}
.brand-logo { overflow: hidden; flex-shrink: 1; }
.logo-text, .logo-title-row { flex-shrink: 1 !important; min-width: 0 !important; overflow: hidden; }
.logo-title { flex-shrink: 1 !important; min-width: 0; display: block; }

/* ==========================================================
   APP SHELL (js/app-shell.js)
   1) Wide screens + signed in: the drawer is a pinned sidebar (shrinkable to icons).
   2) Phones: bottom tab bar + sheets, no hamburger.
   ========================================================== */
:root { --sidebar-w: 256px; --sidebar-w-collapsed: 76px; --tabbar-h: 64px; }
.drawer-collapse-btn, .m-tabbar, .m-sheet, .m-sheet-backdrop { display: none; }

/* ---------- 1) pinned sidebar ---------- */
@media (min-width: 1280px) {
  body.sidebar-pinned .side-drawer {
    transform: none !important; top: 72px !important; bottom: 0; width: var(--sidebar-w) !important; max-width: none;
    z-index: 900; box-shadow: none !important; border-inline-start: 0 !important; border-inline-end: 1px solid var(--border-subtle) !important;
    background: var(--bg-surface) !important; transition: width 0.2s ease;
  }
  body.sidebar-pinned .side-drawer-backdrop { display: none !important; }
  body.sidebar-pinned #sideNavToggleBtn, body.sidebar-pinned .drawer-close-btn,
  body.sidebar-pinned .top-links, body.sidebar-pinned .side-drawer .drawer-header .drawer-brand { display: none !important; }
  body.sidebar-pinned .side-drawer .drawer-header { justify-content: flex-end; padding: 0.6rem 0.75rem; min-height: 0; border-bottom: 0; }
  body.sidebar-pinned .drawer-collapse-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; cursor: pointer;
    border: 1px solid var(--border-subtle); border-radius: 10px; background: transparent; color: var(--text-muted);
  }
  body.sidebar-pinned .drawer-collapse-btn:hover { background: var(--bg-card-hover); color: var(--text-main); }
  [dir="ltr"] body.sidebar-pinned .drawer-collapse-btn i, [dir="ltr"] body.sidebar-pinned .drawer-collapse-btn svg { transform: scaleX(-1); }
  body.sidebar-pinned .drawer-auth-card { margin: 0 0.75rem 0.5rem; padding: 0.75rem; }
  body.sidebar-pinned .drawer-nav-container { padding: 0 0.6rem 1rem; overflow-y: auto; flex: 1; }
  body.sidebar-pinned .main-content, body.sidebar-pinned .app-footer { padding-inline-start: var(--sidebar-w); transition: padding 0.2s ease; box-sizing: border-box; }
  body.sidebar-pinned .nav-container { max-width: none; padding-inline: 1.5rem; }

  /* shrunk to icons */
  body.sidebar-pinned.sidebar-collapsed .side-drawer { width: var(--sidebar-w-collapsed) !important; }
  body.sidebar-pinned.sidebar-collapsed .main-content, body.sidebar-pinned.sidebar-collapsed .app-footer { padding-inline-start: var(--sidebar-w-collapsed); }
  body.sidebar-pinned.sidebar-collapsed .side-drawer .drawer-header { justify-content: center; padding-inline: 0; }
  body.sidebar-pinned.sidebar-collapsed .drawer-auth-card,
  body.sidebar-pinned.sidebar-collapsed .side-nav-item > span,
  body.sidebar-pinned.sidebar-collapsed .side-nav-item .nav-lock,
  body.sidebar-pinned.sidebar-collapsed .drawer-footer-actions span { display: none !important; }
  body.sidebar-pinned.sidebar-collapsed .drawer-section-title { font-size: 0; height: 1px; margin: 0.6rem 0.9rem; background: var(--border-subtle); }
  body.sidebar-pinned.sidebar-collapsed .drawer-nav-container { padding: 0 0.5rem 1rem; }
  body.sidebar-pinned.sidebar-collapsed .side-nav-item { justify-content: center; padding: 0.7rem 0 !important; gap: 0 !important; }
  body.sidebar-pinned.sidebar-collapsed .side-nav-item > i, body.sidebar-pinned.sidebar-collapsed .side-nav-item > svg { width: 21px !important; height: 21px !important; min-width: 21px; }
  body.sidebar-pinned.sidebar-collapsed .side-nav-item .nav-free-badge { display: none !important; }
  body.sidebar-pinned.sidebar-collapsed .drawer-footer-actions { flex-direction: column; gap: 0.35rem; }
  body.sidebar-pinned.sidebar-collapsed .drawer-action-btn { justify-content: center; padding: 0.5rem 0; }
}

/* ---------- 2) phones ---------- */
@media (max-width: 760px) {
  body:not(.admin-app-body) { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  #sideNavToggleBtn, #sideDrawer, #sideDrawerBackdrop, .top-links, .user-chip-menu, .user-dropdown-popover,
  .nav-actions #langToggleBtn, .nav-actions #themeToggleBtn, .nav-actions .nav-login-btn { display: none !important; }
  .top-nav, [data-theme="light"] .top-nav { height: 58px; }
  .nav-container { padding: 0 1rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 1.1rem; border-radius: 9px; }
  .toast-stack { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)) !important; }
  .app-footer { padding: 1.5rem 0 1.25rem; }
  .app-footer .footer-container { gap: 0.75rem; }

  .m-tabbar {
    display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 950;
    background: var(--bg-glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--border-subtle); padding-bottom: env(safe-area-inset-bottom);
  }
  .m-tabbar-set { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: var(--tabbar-h); }
  .m-tabbar-recruiter { display: none; }
  body.portal-mode-recruiter .m-tabbar-seeker { display: none; }
  body.portal-mode-recruiter .m-tabbar-recruiter { display: grid; }
  .m-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; min-width: 0;
    background: none; border: 0; cursor: pointer; color: var(--text-faint); font: inherit; font-size: 0.72rem; font-weight: 600; padding: 0.35rem 0.15rem;
    -webkit-tap-highlight-color: transparent;
  }
  .m-tab > i, .m-tab > svg { width: 22px; height: 22px; }
  .m-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .m-tab.active { color: var(--text-main); }
  .m-tab.active > i, .m-tab.active > svg { color: var(--tx-primary); }
  .m-tab-tools-icon {
    width: 42px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy); color: var(--mint);
  }
  [data-theme="dark"] .m-tab-tools-icon { background: var(--mint); color: var(--navy-3); }
  .m-tab-tools-icon i, .m-tab-tools-icon svg { width: 20px; height: 20px; }

  .m-sheet-backdrop {
    display: block; position: fixed; inset: 0; z-index: 960; background: rgba(12, 31, 56, 0.45);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
  }
  .m-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
  .m-sheet {
    display: flex; flex-direction: column; position: fixed; inset-inline: 0; bottom: 0; z-index: 970;
    max-height: 86vh; background: var(--bg-surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform 0.22s ease;
  }
  .m-sheet[hidden] { display: none; }
  .m-sheet.open { transform: translateY(0); }
  body.m-sheet-open { overflow: hidden; }
  .m-sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 0.6rem auto 0.25rem; }
  .m-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 1.1rem 0.6rem; }
  .m-sheet-head > strong { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
  .m-sheet-close { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--canvas-2); color: var(--text-main); display: inline-flex; align-items: center; justify-content: center; }
  .m-sheet-close i, .m-sheet-close svg { width: 18px; height: 18px; }
  .m-sheet-body { overflow-y: auto; padding: 0 1rem 1rem; -webkit-overflow-scrolling: touch; }
  .m-sheet-group { margin: 0.9rem 0.2rem 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--text-faint); }
  .m-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
  .m-tile {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; min-height: 92px;
    padding: 0.8rem 0.4rem; border-radius: 16px; border: 1px solid var(--border-subtle); background: var(--bg-base);
    color: var(--text-main); font: inherit; font-size: 0.82rem; font-weight: 600; text-align: center; line-height: 1.35; cursor: pointer;
  }
  .m-tile > i, .m-tile > svg { width: 24px; height: 24px; color: var(--tx-primary); }
  .m-tile:active { background: var(--bg-card-hover); }
  .m-tile em { position: absolute; top: 6px; inset-inline-end: 6px; font-style: normal; }
  .m-free { font-size: 0.62rem; font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--accent-emerald-light); color: var(--tx-emerald); }
  .nav-lock-badge { color: var(--text-faint); display: inline-flex; }
  .nav-lock-badge i, .nav-lock-badge svg { width: 13px; height: 13px; }
  body.is-paid .m-free, body.is-paid .nav-lock-badge, body.is-paid .m-upgrade { display: none !important; }
  .m-upgrade {
    display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 1rem; padding: 0.9rem 1rem;
    border: 0; border-radius: 16px; background: var(--navy); color: #fff; font: inherit; text-align: start; cursor: pointer;
  }
  [data-theme="dark"] .m-upgrade { background: var(--mint); color: var(--navy-3); }
  .m-upgrade span { display: flex; flex-direction: column; }
  .m-upgrade strong { font-size: 1rem; }
  .m-upgrade small { opacity: 0.8; font-size: 0.82rem; }
  .m-upgrade i, .m-upgrade svg { width: 20px; height: 20px; }
  #mSheetAccount .m-upgrade { margin: 0 0 0.75rem; }
  body.portal-mode-recruiter .m-upgrade, body.portal-mode-recruiter .m-seeker-only { display: none !important; }
  .m-recruiter-only { display: none !important; }
  body.portal-mode-recruiter .m-recruiter-only { display: flex !important; }

  .m-account-id { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
  .m-account-avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.1rem; flex: 0 0 auto; }
  [data-theme="dark"] .m-account-avatar { background: var(--mint); color: var(--navy-3); }
  .m-account-meta { display: flex; flex-direction: column; min-width: 0; }
  .m-account-meta strong { font-size: 1.05rem; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-account-meta small { color: var(--text-muted); }
  .m-list { display: flex; flex-direction: column; border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; }
  .m-row {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; border: 0; border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface); color: var(--text-main); font: inherit; font-size: 0.95rem; font-weight: 500; text-align: start; cursor: pointer;
  }
  .m-row:last-child { border-bottom: 0; }
  .m-row i, .m-row svg { width: 20px; height: 20px; color: var(--text-muted); }
  .m-row.m-danger, .m-row.m-danger i, .m-row.m-danger svg { color: var(--tx-danger); }

  /* Pages read like an app: tighter gutters and titles */
  .page-view:not(.home-view) { padding-top: 1.25rem; }
  .page-title { font-size: 1.55rem; }
}
.home-stack-card { width: auto; align-self: stretch; }

/* Printing / "Save as PDF" of the CV: only the CV page, none of the app shell around it */
@media print {
  .side-drawer, .side-drawer-backdrop, .m-tabbar, .m-sheet, .m-sheet-backdrop,
  .cvb-promo, .page-view:not(.active), .guest-nudge { display: none !important; }
  body { padding: 0 !important; }
}
/* The CV's own <header> (name, title, contact) must print: the generic "header { display: none }" print rule
   that hides the site's top bar also removed it, so saved PDFs had no name or contact details. */
@media print {
  #resumeCanvas header.cv-header {
    display: flex !important; visibility: visible !important; width: auto !important; height: auto !important; overflow: visible !important;
  }
}
/* Direct PDF download (html2canvas): Arabic letters only stay joined when no letter-spacing is applied */
.resume-paper.pdf-export, .resume-paper.pdf-export * { letter-spacing: normal !important; }

/* Print-only copy (cover letter "Save as PDF", js/cover-letter.js): hidden on screen, the only thing printed */
#printOnlyHost { display: none; }
@media print {
  body.print-only-host > *:not(#printOnlyHost) { display: none !important; }
  body.print-only-host #printOnlyHost { display: block !important; }
  #printOnlyHost .cl-paper-sheet {
    box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; min-height: 0 !important;
    background: #fff !important; color: #111 !important; font-size: 12pt; line-height: 1.75;
  }
}

/* Jobs: country scope chips (all / inside the country / remote open to it) */
.jobs-scope-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.25rem; }
.jobs-scope-btn {
  border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-soft); border-radius: 999px;
  padding: 0.45rem 0.95rem; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.jobs-scope-btn:hover { border-color: var(--border-strong); }
.jobs-scope-btn.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.jobs-scope-btn:disabled { opacity: 0.45; cursor: default; }

/* ==========================================================
   LOGO (public/assets/brand): navy-text version on light surfaces, white-text version on dark ones
   ========================================================== */
.sr-only, .brand-logo .logo-title {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.brand-logo-img { display: block; height: 42px; width: auto; max-width: none; flex: 0 0 auto; }
.brand-on-dark { display: none !important; }
[data-theme="dark"] .brand-on-light { display: none !important; }
[data-theme="dark"] .brand-on-dark { display: block !important; }
.brand-logo { gap: 0.5rem; }
.drawer-brand .brand-logo-img { height: 36px; }
.brand-mark-img { display: block; height: 38px; width: auto; flex: 0 0 auto; }
.app-footer .footer-logo { display: flex; align-items: center; }
.footer-logo-img { display: block; height: 46px; width: auto; }
.public-brand { display: inline-flex; align-items: center; }
.public-brand .brand-logo-img { height: 38px; }
@media (max-width: 760px) {
  .brand-logo-img { height: 34px; }
  .footer-logo-img { height: 40px; }
}

/* ==========================================================
   LOGO ORANGE: free / start actions ("ارفع سيرتك مجاناً", "مجاناً" tags, "الأكثر اختياراً")
   Dark navy text on orange (white on this orange is hard to read).
   ========================================================== */
.btn-accent { background: var(--orange); border-color: var(--orange); color: var(--navy-3); }
.btn-accent:hover { background: var(--orange-2); border-color: var(--orange-2); color: var(--navy-3); }
.home-tag.is-free, .nav-free-badge, .m-free { background: var(--orange-light) !important; color: var(--orange-ink) !important; }
.featured-pill, .home-plan-pill { background: var(--orange) !important; color: var(--navy-3) !important; }
.home-eyebrow::before { background: var(--orange); }
[data-theme="dark"] { --orange-ink: #FFB57D; --orange-light: rgba(254, 122, 21, 0.18); }

/* Messages inside the sign-in / subscribe window (auth-modal.js showInlineAuthNotice) */
.auth-inline-alert {
  margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: var(--radius-md); font-size: 0.93rem; line-height: 1.7; font-weight: 500;
  border: 1px solid transparent; animation: authAlertIn 0.18s ease;
}
.auth-inline-alert.is-error { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.3); color: var(--tx-danger); }
.auth-inline-alert.is-warning { background: var(--orange-light); border-color: rgba(254, 122, 21, 0.35); color: var(--orange-ink); }
.auth-inline-alert.is-info { background: var(--accent-emerald-light); border-color: rgba(15, 170, 199, 0.3); color: var(--text-main); }
@keyframes authAlertIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Notifications always above any open window */
.toast-stack { z-index: 100010 !important; }

/* ==========================================================
   DAILY PANEL "النهارده ليك" (#dailyHub, js/daily-hub.js): top of #view-home for signed-in job seekers.
   ========================================================== */
.daily-hub { padding: clamp(1.75rem, 1.25rem + 2vw, 3rem) 0; border-bottom: 1px solid var(--border-subtle); background: var(--canvas-2); }
.dh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.dh-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; color: var(--text-main); margin: 0; line-height: 1.3; }

.dh-streak {
  display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 0.7rem 1rem;
}
.dh-streak-flame {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--canvas-2); color: var(--text-faint); flex: 0 0 auto;
}
.dh-streak.is-active .dh-streak-flame { background: var(--orange-light); color: var(--orange-ink); }
.dh-streak-flame i, .dh-streak-flame svg { width: 22px; height: 22px; }
.dh-streak-body { display: flex; flex-direction: column; min-width: 0; }
.dh-streak-body strong { font-size: 1.15rem; font-weight: 700; color: var(--text-main); line-height: 1.3; font-variant-numeric: tabular-nums; }
.dh-streak-body span { font-size: 0.82rem; color: var(--text-muted); }
.dh-dots { display: flex; gap: 0.3rem; }
.dh-dot {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--canvas-2); border: 1px solid var(--border-subtle); color: var(--text-faint);
}
.dh-dot i, .dh-dot svg { width: 12px; height: 12px; }
.dh-dot.is-on { background: var(--orange); border-color: var(--orange); color: #fff; }
.dh-dot.is-today { border: 2px dashed var(--orange); }

.dh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dh-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; min-width: 0;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 1.35rem;
}
.dh-label { font-size: 0.82rem; font-weight: 600; color: var(--tx-emerald); }
.dh-card-title { font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin: 0; line-height: 1.5; }
.dh-card-text { font-size: 0.93rem; color: var(--text-muted); line-height: 1.8; margin: 0; }
.dh-task-btn { margin-top: 0.25rem; }
.dh-done { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--tx-emerald); }
.dh-done i, .dh-done svg { width: 18px; height: 18px; }
.dh-reward, .dh-note, .dh-warn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.86rem; color: var(--text-soft); }
.dh-reward i, .dh-reward svg, .dh-note i, .dh-note svg, .dh-warn i, .dh-warn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.dh-reward { color: var(--orange-ink); font-weight: 600; margin-top: auto; padding-top: 0.25rem; }
.dh-warn { color: var(--orange-ink); margin: 0; }
.dh-task.is-done { border-color: var(--accent-emerald-light); }

.dh-big { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.dh-big strong { font-size: 2.4rem; font-weight: 700; color: var(--text-main); line-height: 1.1; font-variant-numeric: tabular-nums; }
.dh-big span { color: var(--text-muted); font-size: 0.95rem; }
.dh-companies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.dh-companies li { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.dh-co-mark {
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--mint); font-weight: 700; font-size: 0.9rem;
}
[data-theme="dark"] .dh-co-mark { background: rgba(15, 170, 199, 0.14); }
.dh-co-body { display: flex; flex-direction: column; min-width: 0; }
.dh-co-body strong { font-size: 0.94rem; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-co-body span { font-size: 0.8rem; color: var(--text-muted); }

.dh-jobs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dh-jobs-title { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin: 0 0 0.2rem; }
.dh-jobs-title strong { color: var(--tx-emerald); font-variant-numeric: tabular-nums; }
.dh-score {
  font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px; white-space: nowrap;
  background: var(--canvas-2); color: var(--text-soft); font-variant-numeric: tabular-nums;
}
.dh-score.is-mid { background: var(--accent-emerald-light); color: var(--tx-emerald); }
.dh-score.is-high { background: var(--navy); color: #fff; }
[data-theme="dark"] .dh-score.is-high { background: var(--mint); color: var(--navy-3); }

@media (max-width: 760px) {
  .dh-grid { grid-template-columns: minmax(0, 1fr); }
  .dh-streak { width: 100%; }
  .dh-dots { margin-inline-start: auto; }
}
@media (max-width: 380px) {
  .dh-dot { width: 18px; height: 18px; }
}

/* ==========================================================
   HOME: "جديد" pill in the hero + COMMUNITY section (#homeCommunity -> view-network)
   ========================================================== */
.home-new-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; margin-bottom: 1rem; cursor: pointer; font: inherit;
  border: 1px solid var(--border-strong); background: var(--bg-surface); color: var(--text-soft); border-radius: 999px;
  padding: 0.25rem 0.85rem 0.25rem 0.3rem; font-size: 0.86rem; font-weight: 600;
}
[dir="rtl"] .home-new-pill { padding: 0.25rem 0.3rem 0.25rem 0.85rem; }
.home-new-pill:hover { border-color: var(--navy); color: var(--text-main); }
[data-theme="dark"] .home-new-pill:hover { border-color: var(--mint); }
.home-new-pill > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.home-new-pill svg { width: 15px; height: 15px; flex: 0 0 auto; }
.home-new-tag { background: var(--orange); color: #fff; border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.74rem; font-weight: 700; flex: 0 0 auto; }

.home-community { border-top: 1px solid var(--border-subtle); }
.home-community-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.home-community-copy .home-sub { margin-bottom: 1.5rem; }
.home-community-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.home-community-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.home-community-list strong { display: block; color: var(--text-main); font-size: 1rem; margin-bottom: 0.1rem; }
.home-community-list li span:not(.home-community-icon) { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }
.home-community-icon { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-emerald-light); color: var(--tx-emerald); }
.home-community-icon svg { width: 20px; height: 20px; }

.home-community-preview { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding: 1.5rem; border-radius: 24px;
  background: radial-gradient(circle at 85% 10%, rgba(15, 170, 199, 0.22), transparent 45%), linear-gradient(140deg, var(--navy-3), var(--navy) 60%, var(--navy-2)); }
.hc-card { background: var(--bg-surface); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 10px 30px -12px rgba(2, 27, 66, 0.45); color: var(--text-main); }
.hc-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.6rem; }
.hc-head strong { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.95rem; }
.hc-head strong svg { width: 15px; height: 15px; color: var(--mint-2); }
.hc-head small, .hc-request small { display: block; color: var(--text-muted); font-size: 0.78rem; }
.hc-post p { margin: 0 0 0.75rem; line-height: 1.8; font-size: 0.93rem; }
.hc-actions { display: flex; justify-content: space-around; border-top: 1px solid var(--border-subtle); padding-top: 0.55rem; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }
.hc-actions span { display: inline-flex; align-items: center; gap: 0.3rem; }
.hc-actions svg { width: 16px; height: 16px; }
.hc-av { --av: var(--navy); width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: var(--av); color: #fff; font-weight: 700; }
.hc-av.is-official { background: #fff; border: 1px solid var(--border-subtle); }
.hc-av img { width: 100%; height: 100%; object-fit: cover; }
.hc-request { display: flex; align-items: center; gap: 0.7rem; margin-inline-start: 2.5rem; }
.hc-request > div { flex: 1; min-width: 0; }
.hc-request strong { font-size: 0.9rem; }
.hc-btn { background: var(--navy); color: #fff; border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.8rem; font-weight: 700; }
[data-theme="dark"] .hc-btn { background: var(--mint); color: var(--navy-3); }
.hc-chat { display: flex; flex-direction: column; gap: 0.4rem; margin-inline-end: 2.5rem; background: var(--canvas); }
.hc-bubble { align-self: flex-start; max-width: 85%; background: var(--navy); color: #fff; border-radius: 14px; border-end-start-radius: 4px; padding: 0.45rem 0.8rem; font-size: 0.86rem; line-height: 1.6; }
.hc-bubble.is-them { align-self: flex-end; background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-subtle); border-radius: 14px; border-end-end-radius: 4px; }

@media (max-width: 960px) {
  .home-community-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .home-community-preview { padding: 1rem; border-radius: 18px; }
  .hc-request { margin-inline-start: 0; }
  .hc-chat { margin-inline-end: 0; }
  .home-new-pill { font-size: 0.8rem; }
}
