/* =========================================================
   NURAI CONNECT — design tokens
   ========================================================= */
:root {
  --color-primary: #1B3FAE;
  --color-primary-dark: #122C82;
  --color-primary-light: #2EA8E4;
  --color-accent: #F5A623;
  --color-accent-light: #FFCB4D;
  --color-ink: #0B1D3A;
  --color-bg: #F6F8FC;
  --color-surface: #FFFFFF;
  --color-muted: #5B6B84;
  --color-border: #E3E8F2;

  --gradient-brand: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-accent: linear-gradient(120deg, var(--color-accent) 0%, var(--color-accent-light) 100%);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 29, 58, 0.14);

  --topbar-h: 72px;
  --tabbar-h: 64px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); overflow-x: hidden; }

body {
  overflow-x: hidden;
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-primary-light); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-ink); margin: 0; line-height: 1.15; }

/* =========================================================
   Buttons & chips
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--color-primary-light); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary-light); background: rgba(46,168,228,0.06); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.02em;
}
.badge--local { background: rgba(27,63,174,0.08); color: var(--color-primary); }
.badge--global { background: rgba(46,168,228,0.1); color: var(--color-primary); }
.badge--type { background: var(--color-bg); color: var(--color-muted); border: 1px solid var(--color-border); }
.badge--featured { background: rgba(27,63,174,0.1); color: var(--color-primary); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.chip:hover { border-color: var(--color-primary-light); transform: translateY(-1px); }
.chip.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.chip--muted { border-style: dashed; color: var(--color-muted); }
.chip code { font-family: var(--font-mono); font-size: 11px; opacity: 0.65; }

/* =========================================================
   Top navbar
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,252,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--topbar-h);
}
.topbar__inner {
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.topbar__brand { display: flex; align-items: center; flex-shrink: 0; }
.topbar__logo { height: 34px; width: auto; }

.topbar__nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; flex: 1; }
.topbar__link {
  font-size: 14.5px; font-weight: 500; color: var(--color-muted);
  position: relative; padding: 6px 0; transition: color 0.15s ease;
}
.topbar__link:hover { color: var(--color-ink); }
.topbar__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gradient-brand); transition: width 0.2s ease;
}
.topbar__link:hover::after { width: 100%; }

.topbar__actions { display: flex; align-items: center; gap: 10px; position: relative; }

.country-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 8px 12px; font-size: 13.5px; font-weight: 600;
  color: var(--color-ink);
}
.country-pill__chev { color: var(--color-muted); transition: transform 0.2s ease; }
.country-pill[aria-expanded="true"] .country-pill__chev { transform: rotate(180deg); }

.country-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; min-width: 240px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.18s ease; z-index: 60;
}
.country-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.country-menu__title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); padding: 6px 10px; margin: 0; }
.country-menu__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.country-menu__item:hover { background: var(--color-bg); }

/* =========================================================
   Hero + signature "connection map"
   ========================================================= */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--color-primary); background: rgba(27,63,174,0.08);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.audience-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 5px; margin-bottom: 22px;
}
.audience-toggle__label {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--color-muted);
  padding-left: 10px; letter-spacing: 0.02em;
}
.audience-toggle__btn {
  border: none; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  color: var(--color-muted); padding: 8px 16px; border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.audience-toggle__btn.is-active { background: var(--color-primary); color: #fff; }

.employer-cta-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md);
  margin-top: 4px;
}
.employer-cta-card__row { padding: 12px 4px; border-bottom: 1px solid var(--color-border); }
.employer-cta-card__row:last-of-type { border-bottom: none; }
.employer-cta-card__row strong { font-family: var(--font-display); font-size: 14.5px; }
.employer-cta-card__row p { margin: 4px 0 0; color: var(--color-muted); font-size: 13.5px; line-height: 1.5; }
.employer-cta-card .btn { width: 100%; margin-top: 12px; }

.hero__title { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; }
.hero__title span {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__subtitle { color: var(--color-muted); font-size: 17px; line-height: 1.6; max-width: 480px; margin: 18px 0 28px; }

.search-card {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-md);
}
.search-card__field { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--color-muted); flex: 1; min-width: 160px; }
.search-card__field--grow { flex: 2; }
.search-card__field input, .search-card__field select {
  border: none; outline: none; background: transparent; font-size: 14.5px; color: var(--color-ink);
  width: 100%; font-family: var(--font-body);
}
.search-card__field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer;
  padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235B6B84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.search-card__submit { flex-shrink: 0; }

/* =========================================================
   "Popular:" quick-links row (replaces the old stats row)
   ========================================================= */
.popular-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.popular-row__label { font-size: 14px; font-weight: 600; color: var(--color-ink); margin-right: 2px; }
.popular-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 8px 14px 8px 16px; font-size: 13.5px; font-weight: 600;
  color: var(--color-ink); transition: border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.popular-pill svg { color: var(--color-muted); transition: transform 0.18s ease, color 0.18s ease; }
.popular-pill:hover { border-color: var(--color-primary-light); color: var(--color-primary); transform: translateY(-1px); }
.popular-pill--muted { border-style: dashed; color: var(--color-muted); }
.popular-pill:hover svg { color: var(--color-primary); transform: translateX(2px); }

/* =========================================================
   Hero photo — shaped, glowing, auto-rotating (replaces the
   old continents network diagram)
   ========================================================= */
.hero-photo { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }

.hero-photo__glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,168,228,0.22) 0%, rgba(27,63,174,0.08) 55%, transparent 75%);
  animation: glow-pulse 5s ease-in-out infinite;
}
.hero-photo__ring {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  border: 1.5px dashed var(--color-border);
  animation: ring-spin 40s linear infinite;
}

.hero-photo__frame {
  position: relative; width: 300px; height: 400px;
  border-radius: 160px 160px 32px 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: photo-float 5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}
.hero-photo__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-photo__img.is-active { opacity: 1; }

@keyframes photo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes glow-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }
@keyframes ring-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-photo__frame, .hero-photo__glow, .hero-photo__ring { animation: none; }
}

/* =========================================================
   Country strip
   ========================================================= */
.strip { padding: 20px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.strip__inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.strip__label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); flex-shrink: 0; }
.strip__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.strip__empty { color: var(--color-muted); font-size: 14px; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 64px 0; }
.section--muted { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section__title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.section__title--center { text-align: center; }
.section__subtitle { color: var(--color-muted); margin: 10px 0 32px; font-size: 15.5px; max-width: 560px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 0; }
.section__head .section__subtitle { margin-bottom: 0; }
.section__empty { color: var(--color-muted); background: var(--color-bg); border: 1px dashed var(--color-border); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.section__center-cta { display: flex; justify-content: center; margin-top: 24px; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.category-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.category-row .category-card { flex: 0 1 160px; align-items: center; text-align: center; }
.category-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 20px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary-light); }
.category-card__icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); flex-shrink: 0;
}
.category-card__name { font-weight: 600; font-size: 14.5px; line-height: 1.35; overflow-wrap: break-word; word-break: break-word; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.job-card {
  position: relative;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 216px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-primary-light); }
.job-card--featured { border-color: var(--color-primary-light); box-shadow: 0 0 0 1px rgba(46,168,228,0.18) inset; }
.job-card__header { display: flex; align-items: flex-start; gap: 12px; }
.job-card__avatar {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--gradient-brand); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.job-card__title { font-size: 16.5px; line-height: 1.35; font-weight: 700; margin: 0; }
.job-card__company { color: var(--color-muted); font-size: 13px; margin: 3px 0 0; }
.job-card__top { display: flex; gap: 6px; flex-wrap: wrap; }
.job-card__category { font-size: 12.5px; color: var(--color-primary); font-weight: 600; margin: 0; }
.job-card__salary {
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: var(--color-ink);
  margin: 2px 0 0; background: var(--color-bg); border-radius: 6px; padding: 5px 9px; display: inline-block; width: fit-content;
}
.job-card__cta { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 14px; color: var(--color-primary); }
/* Makes the whole card clickable while keeping a real, accessible link
   as the visible CTA text (the "stretched link" pattern). */
.job-card__stretched-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.job-card__stretched-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* =========================================================
   Job carousel ("Now hiring")
   ========================================================= */
.job-carousel { position: relative; }
.job-carousel__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 4px 14px;
  scrollbar-width: none;
}
.job-carousel__track::-webkit-scrollbar { display: none; }
.job-carousel__track .job-card { flex: 0 0 calc((100% - 3 * 20px) / 4); scroll-snap-align: start; }
.job-carousel__arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center; color: var(--color-ink);
  cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-md);
}
.job-carousel__arrow--prev { left: -21px; }
.job-carousel__arrow--next { right: -21px; }
.job-carousel__arrow:hover { border-color: var(--color-primary-light); color: var(--color-primary); }
.job-carousel__arrow:disabled { opacity: 0.35; cursor: default; }
.job-carousel__dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
.job-carousel__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--color-border); border: none; padding: 0; cursor: pointer; transition: background 0.2s ease, width 0.2s ease; }
.job-carousel__dot.is-active { background: var(--color-primary); width: 20px; }

@media (max-width: 960px) {
  .job-carousel__track .job-card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 760px) {
  .job-carousel__arrow { display: none; }
  .job-carousel__track .job-card { flex-basis: 86vw; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; }
.steps__eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.steps__item h3 { font-size: 17px; margin: 10px 0 8px; }
.steps__item p { color: var(--color-muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

.cta-band { background: var(--color-ink); padding: 52px 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.6rem; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 460px; margin: 8px 0 0; font-size: 15px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 48px 0 20px; margin-bottom: var(--tabbar-h); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__logo { height: 26px; margin-bottom: 12px; }
.site-footer__brand p { color: var(--color-muted); font-size: 14px; max-width: 260px; line-height: 1.55; }
.site-footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); margin-bottom: 14px; }
.site-footer__col a, .site-footer__country { display: block; font-size: 14.5px; padding: 5px 0; color: var(--color-ink); }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--color-border); margin-top: 36px; padding-top: 18px;
  font-size: 13px; color: var(--color-muted);
}
.site-footer__legal a:hover { color: var(--color-primary); }

/* =========================================================
   Mobile app-style sticky bottom tab bar
   ========================================================= */
.app-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(11,29,58,0.06);
  align-items: stretch;
  justify-content: space-around;
  width: 100%;
  box-sizing: border-box;
}
.app-tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex: 1; min-width: 0; color: var(--color-muted); font-size: 10.5px; font-weight: 600;
  font-family: var(--font-display); background: none; border: none; padding: 0; cursor: pointer;
}
.app-tabbar__item svg { transition: transform 0.15s ease; flex-shrink: 0; }
.app-tabbar__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.app-tabbar__item.is-active { color: var(--color-primary); }
.app-tabbar__item:active svg { transform: scale(0.88); }

.app-tabbar__item--fab { position: relative; color: var(--color-ink); }
.app-tabbar__fab {
  position: absolute; top: -22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-bg);
  transition: transform 0.2s ease;
}
.app-tabbar__item--fab[aria-expanded="true"] .app-tabbar__fab { transform: rotate(45deg); }
.app-tabbar__item--fab span:last-child { margin-top: 26px; }

/* "More" sheet, opened from the + button — holds secondary nav that doesn't
   fit as its own tab (categories, branches, employers, saved, auth). */
.more-sheet-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 56;
  background: rgba(11,29,58,0.45);
}
.more-sheet-backdrop.is-open { display: block; }

.more-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 57;
  background: var(--color-surface);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 -10px 30px rgba(11,29,58,0.18);
}
.more-sheet.is-open { transform: translateY(0); }
.more-sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: var(--color-border); margin: 4px auto 14px; }
.more-sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.more-sheet__item {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 14px; font-size: 14px; font-weight: 600; color: var(--color-ink);
}
.more-sheet__divider { border: none; border-top: 1px solid var(--color-border); margin: 14px 0; }
.more-sheet__auth { display: flex; gap: 10px; }
.more-sheet__auth .btn { flex: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; min-height: 340px; }
  .hero-photo__frame { width: 220px; height: 300px; border-radius: 120px 120px 24px 24px; }
  .hero-photo__glow { width: 320px; height: 320px; }
  .hero-photo__ring { width: 270px; height: 270px; }
  .steps { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 56px; }
  .topbar__nav, .topbar__actions { display: none; }
  .topbar__inner { position: relative; width: 100%; justify-content: center; }
  .topbar__brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .topbar__logo { height: 26px; }

  .hero { padding: 32px 0 28px; }
  .hero__subtitle { max-width: none; }
  .search-card { flex-direction: column; }
  .search-card__submit { width: 100%; }
  .popular-row { margin-top: 22px; }

  .section { padding: 44px 0; }
  .section__head { flex-direction: column; align-items: flex-start; }

  .cta-band__inner { flex-direction: column; text-align: left; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding-bottom: calc(var(--tabbar-h) + 24px); }

  .app-tabbar { display: flex; }
  body { padding-bottom: var(--tabbar-h); }
}

@media (min-width: 761px) {
  .app-tabbar { display: none; }
}

/* =========================================================
   Inner page header (non-homepage pages)
   ========================================================= */
.page-header { padding: 48px 0 36px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.page-header__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; margin-top: 14px; }
.page-header__subtitle { color: var(--color-muted); font-size: 15.5px; max-width: 620px; margin: 12px 0 0; line-height: 1.6; }

/* =========================================================
   Job list: filter bar
   ========================================================= */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 14px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.filter-bar__field { flex: 1; min-width: 180px; }
.filter-bar__field--grow { flex: 2; }
.filter-bar__field input {
  width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; font-family: var(--font-body); outline: none;
}
.filter-bar__field input:focus { border-color: var(--color-primary-light); }
.filter-bar__select {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; font-family: var(--font-body); background: var(--color-surface);
  outline: none; color: var(--color-ink);
  appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer;
  padding-right: 34px; box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235B6B84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.category-grid--compact { grid-template-columns: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* =========================================================
   Job detail page
   ========================================================= */
.job-detail__grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.job-detail__back { display: inline-block; color: var(--color-muted); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.job-detail__back:hover { color: var(--color-primary); }
.job-detail__header {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 26px 28px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.job-detail__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 14px 0 6px; }
.job-detail__company { color: var(--color-muted); font-size: 15.5px; margin: 0; }
.job-detail__salary-chip {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--color-ink);
  background: var(--color-bg); border-radius: 8px; padding: 8px 14px;
}
.job-detail__salary-chip span { font-size: 13px; font-weight: 600; color: var(--color-muted); }
.job-detail__body { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px 28px; }
.job-detail__body h2 { font-size: 16px; margin-bottom: 8px; }
.job-detail__body p { color: var(--color-ink); line-height: 1.7; font-size: 15px; white-space: pre-line; }

.job-detail__apply-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.job-detail__apply-card h2 { font-size: 16px; margin: 0 0 8px; }
.job-detail__apply-card p { color: var(--color-muted); font-size: 13.5px; margin: 0 0 16px; line-height: 1.5; }

.job-detail__related { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; }
.job-detail__related h3 { font-size: 14px; margin: 0 0 12px; }
.job-detail__related-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--color-border); font-size: 13.5px; font-weight: 600; }
.job-detail__related-item:first-of-type { border-top: none; }
.job-detail__related-company { font-weight: 400; color: var(--color-muted); font-size: 12.5px; }

/* =========================================================
   Branches page
   ========================================================= */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.branch-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 22px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.branch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary-light); }
.branch-card.is-active { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary) inset; }
.branch-card__flag { font-size: 28px; }
.branch-card__name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.branch-card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.branch-card__cta { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--color-primary); }

/* =========================================================
   Employers landing page
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; }
.feature-card h3 { font-size: 16.5px; margin: 0 0 10px; }
.feature-card p { color: var(--color-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

@media (max-width: 760px) {
  .job-detail__grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar__field, .filter-bar__select, .filter-bar button { width: 100%; }
}

/* =========================================================
   Signup wizard
   ========================================================= */
.wizard-container { max-width: 720px; }

.wizard-steps { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.wizard-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1;
  font-size: 12px; color: var(--color-muted); text-align: center;
}
.wizard-step__num {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-surface); border: 1.5px solid var(--color-border);
  font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; color: var(--color-muted);
  transition: all 0.2s ease;
}
.wizard-step__label { font-weight: 600; }
.wizard-step.is-active .wizard-step__num { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.wizard-step.is-active .wizard-step__label { color: var(--color-ink); }
.wizard-step.is-done .wizard-step__num { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.wizard-step.has-error .wizard-step__num { background: #FDECEC; border-color: #E0554F; color: #C0392B; }

.wizard-progress { height: 4px; background: var(--color-border); border-radius: 999px; margin-bottom: 34px; overflow: hidden; }
.wizard-progress__bar { height: 100%; width: 20%; background: var(--gradient-brand); transition: width 0.3s ease; border-radius: 999px; }

.wizard-panel { display: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.wizard-panel.is-active { display: block; }
.wizard-panel__title { font-size: 19px; margin: 0 0 6px; }
.wizard-panel__subtitle { color: var(--color-muted); font-size: 14px; margin: 0 0 22px; line-height: 1.55; }

.wizard-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--color-border); }

.form-alert {
  background: #FDECEC; border: 1px solid #F3B4B0; color: #C0392B; border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 18px; font-size: 14px;
}
.form-alert p { margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--color-ink); }

.input {
  width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14.5px; font-family: var(--font-body); color: var(--color-ink);
  background: var(--color-surface); outline: none; transition: border-color 0.15s ease;
  box-sizing: border-box; line-height: 1.4;
}
.input:focus { border-color: var(--color-primary-light); }
.input--textarea { min-height: 90px; resize: vertical; }
.input--file { padding: 9px 12px; font-size: 13.5px; }
.iti { width: 100%; display: block; }
.iti input.input { width: 100%; }
.input--select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235B6B84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input--select::-ms-expand { display: none; }

.field-hint { font-size: 12.5px; color: var(--color-muted); margin: 0; }
.field-error { font-size: 12.5px; color: #C0392B; margin: 0; font-weight: 600; }
.required-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: #C0392B;
  background: #FDECEC; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
  margin-left: 6px; vertical-align: middle;
}

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.checkbox-card {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
  min-width: 0;
}
.checkbox-card:has(input:checked) { border-color: var(--color-primary); background: rgba(27,63,174,0.05); }
.checkbox-card input { flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--color-primary); }
.checkbox-card span { overflow-wrap: break-word; word-break: break-word; }

.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--color-border); border-radius: 999px; padding: 9px 16px;
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.checkbox-pill:has(input:checked) { border-color: var(--color-primary); background: rgba(27,63,174,0.05); }
.checkbox-pill input { accent-color: var(--color-primary); }
.checkbox-pill--standalone { width: 100%; }

.pending-page__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.pending-page__inner .btn { margin-top: 18px; }

@media (max-width: 760px) {
  .wizard-panel { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .wizard-step__label { display: none; }
  .wizard-steps { margin-bottom: 10px; }
}

/* =========================================================
   Profile page
   ========================================================= */
.profile-layout { max-width: 720px; margin: 0 auto; }
.profile-main { display: flex; flex-direction: column; gap: 20px; }

.status-banner { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.status-banner--pending { background: #FFF6E5; border: 1px solid #F5D48B; color: #92660B; }
.status-banner--approved { background: #E9F7EE; border: 1px solid #A9DDBB; color: #1E7A3E; }
.status-banner--rejected { background: #FDECEC; border: 1px solid #F3B4B0; color: #C0392B; }

.profile-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); }
.profile-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.profile-card__head h2 { font-size: 16.5px; margin: 0; }

.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; }
.profile-summary__full { grid-column: 1 / -1; }
.profile-summary dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); margin-bottom: 4px; }
.profile-summary dd { margin: 0; font-size: 14.5px; color: var(--color-ink); line-height: 1.5; }

.experience-item { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--color-border); }
.experience-item:first-of-type { border-top: none; padding-top: 0; }
.experience-item__main h3 { font-size: 15px; margin: 0 0 2px; }
.experience-item__employer { font-size: 13.5px; color: var(--color-ink); font-weight: 600; margin: 0; }
.experience-item__dates { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); margin: 2px 0 8px; }
.experience-item__desc { font-size: 13.5px; color: var(--color-muted); line-height: 1.55; margin: 0; max-width: 480px; }
.experience-item__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.experience-item__edit { font-size: 12.5px; font-weight: 600; color: var(--color-primary); }
.experience-item__delete { background: none; border: none; padding: 0; font-size: 12.5px; font-weight: 600; color: #C0392B; cursor: pointer; font-family: inherit; }

@media (max-width: 760px) {
  .profile-summary { grid-template-columns: 1fr; }
  .experience-item { flex-direction: column; }
  .experience-item__actions { flex-direction: row; align-items: center; }
}

/* =========================================================
   Password visibility toggle
   ========================================================= */
.password-field { position: relative; display: flex; align-items: center; }
.password-field .input { padding-right: 42px; }
.password-field__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 6px; cursor: pointer;
  color: var(--color-muted); display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.password-field__toggle:hover { color: var(--color-ink); background: var(--color-bg); }
.password-field__toggle.is-visible { color: var(--color-primary); }

/* =========================================================
   Live (AJAX) field validation feedback
   ========================================================= */
.field-live-feedback { font-size: 12.5px; margin: 0; min-height: 16px; }
.field-live-feedback.is-valid { color: #1E7A3E; font-weight: 600; }
.field-live-feedback.is-invalid { color: #C0392B; font-weight: 600; }

/* =========================================================
   Skills tag input
   ========================================================= */
.tag-input { position: relative; }
.tag-input__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(27,63,174,0.08); color: var(--color-primary);
  border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 13px; font-weight: 600;
}
.tag-chip button {
  background: none; border: none; color: var(--color-primary); cursor: pointer;
  font-size: 15px; line-height: 1; padding: 2px; display: flex; opacity: 0.7;
}
.tag-chip button:hover { opacity: 1; }
.tag-input__field {
  width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14.5px; font-family: var(--font-body); outline: none;
  box-sizing: border-box;
}
.tag-input__field:focus { border-color: var(--color-primary-light); }
.tag-input__suggestions {
  display: none; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 10;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); overflow: hidden;
}
.tag-input__suggestions.is-open { display: flex; }
.tag-input__suggestion {
  text-align: left; background: none; border: none; padding: 10px 14px;
  font-size: 13.5px; cursor: pointer; border-bottom: 1px solid var(--color-border);
}
.tag-input__suggestion:last-child { border-bottom: none; }
.tag-input__suggestion:hover { background: var(--color-bg); }

/* =========================================================
   Review summary (step 5)
   ========================================================= */
.review-summary__group {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 14px;
}
.review-summary__group h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted);
  margin: 0 0 10px;
}
.review-summary__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; border-top: 1px solid var(--color-border); font-size: 13.5px;
}
.review-summary__row:first-of-type { border-top: none; }
.review-summary__row span { color: var(--color-muted); flex-shrink: 0; }
.review-summary__row strong { text-align: right; font-weight: 600; color: var(--color-ink); word-break: break-word; }

/* =========================================================
   Select2 theming (country / language pickers)
   ========================================================= */
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single {
  height: 44px !important; border: 1px solid var(--color-border) !important; border-radius: var(--radius-sm) !important;
  display: flex !important; align-items: center; padding: 0 14px !important; background: var(--color-surface);
  box-sizing: border-box;
}
.select2-container .select2-selection__rendered {
  padding: 0 !important; font-size: 14.5px; font-family: var(--font-body); color: var(--color-ink); line-height: 42px !important;
}
.select2-container .select2-selection__arrow { height: 42px !important; right: 10px !important; top: 0 !important; }
.select2-dropdown { border-color: var(--color-border); border-radius: var(--radius-sm); overflow: hidden; font-family: var(--font-body); }
.select2-search--dropdown .select2-search__field {
  border: 1px solid var(--color-border); border-radius: 6px; padding: 8px 10px; outline: none; font-family: var(--font-body); font-size: 14px;
}
.select2-results__option { font-size: 14px; }
.select2-results__option--highlighted[aria-selected] { background: var(--color-primary) !important; }
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--color-primary-light); outline: none;
}
.select2-error-flash .select2-selection--single { border-color: #C0392B !important; box-shadow: 0 0 0 3px rgba(192,57,43,0.15); }

/* =========================================================
   Share profile / slug editing
   ========================================================= */
.share-profile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-profile__url {
  flex: 1; min-width: 200px; background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 10px 14px; font-family: var(--font-mono); font-size: 13px;
  color: var(--color-primary); overflow-x: auto; white-space: nowrap;
}
.slug-field { display: flex; align-items: center; gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.slug-field span { padding: 11px 0 11px 14px; font-family: var(--font-mono); font-size: 13px; color: var(--color-muted); white-space: nowrap; }
.slug-field .input { border: none; border-radius: 0; }

/* =========================================================
   Communication preferences / static language tags
   ========================================================= */
.checkbox-list { display: flex; flex-direction: column; gap: 10px; }
.tag-chip--static { display: inline-flex; align-items: center; gap: 8px; }
.tag-chip--static em { font-style: normal; opacity: 0.75; }
.tag-chip--static a { color: var(--color-primary); text-decoration: none; }
.tag-chip--static button { background: none; border: none; color: var(--color-primary); cursor: pointer; font-size: 15px; opacity: 0.7; }
.tag-chip--static button:hover { opacity: 1; }

@media (max-width: 760px) {
  .share-profile { flex-direction: column; align-items: stretch; }
  .share-profile__url { white-space: normal; word-break: break-all; }
}

/* =========================================================
   Profile hero (photo, name, status)
   ========================================================= */
.profile-hero {
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}
.profile-hero__inner { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.profile-hero__photo {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); border: 3px solid var(--color-surface);
}
.profile-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero__initial { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: #fff; }
.profile-hero__info { flex: 1; min-width: 240px; }
.profile-hero__info h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 10px; }
.profile-hero__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.profile-hero__bio { color: var(--color-muted); font-size: 14.5px; line-height: 1.6; max-width: 600px; margin: 0 0 12px; }
.profile-hero__links { display: flex; gap: 14px; flex-wrap: wrap; }
.profile-hero__links a { font-size: 13.5px; font-weight: 600; color: var(--color-primary); }
.profile-hero__links a:hover { text-decoration: underline; }
.profile-hero__edit { flex-shrink: 0; }

.work-status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.work-status-badge__dot { width: 7px; height: 7px; border-radius: 50%; }
.work-status-badge--open_to_work { background: #E9F7EE; color: #1E7A3E; }
.work-status-badge--open_to_work .work-status-badge__dot { background: #1E7A3E; }
.work-status-badge--employed { background: rgba(27,63,174,0.08); color: var(--color-primary); }
.work-status-badge--employed .work-status-badge__dot { background: var(--color-primary); }
.work-status-badge--temporarily_unavailable { background: #FFF6E5; color: #92660B; }
.work-status-badge--temporarily_unavailable .work-status-badge__dot { background: #92660B; }
.work-status-badge--not_looking { background: var(--color-bg); color: var(--color-muted); }
.work-status-badge--not_looking .work-status-badge__dot { background: var(--color-muted); }

.status-pill { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.status-pill--approved { background: #E9F7EE; color: #1E7A3E; }
.status-pill--pending { background: #FFF6E5; color: #92660B; }
.status-pill--rejected { background: #FDECEC; color: #C0392B; }

.photo-preview { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin-bottom: 10px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Timeline (experience / education)
   ========================================================= */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.timeline-item:not(:last-child)::before {
  content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 1.5px; background: var(--color-border);
}
.timeline-item__marker {
  width: 11px; height: 11px; border-radius: 50%; background: var(--color-primary);
  margin-top: 5px; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(27,63,174,0.12);
}
.timeline-item__marker--edu { background: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(46,168,228,0.14); }
.timeline-item__body { flex: 1; padding-bottom: 4px; }
.timeline-item__top { display: flex; justify-content: space-between; gap: 12px; }
.timeline-item__body h3 { font-size: 15px; margin: 0 0 2px; }
.timeline-item__sub { font-size: 13.5px; color: var(--color-ink); font-weight: 600; margin: 0; }
.timeline-item__dates { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); margin: 3px 0 8px; }
.timeline-item__current { color: #1E7A3E; font-weight: 600; }
.timeline-item__desc { font-size: 13.5px; color: var(--color-muted); line-height: 1.55; margin: 0; max-width: 520px; }
.timeline-item__actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 760px) {
  .profile-hero__inner { flex-direction: column; }
  .profile-hero__edit { width: 100%; }
  .timeline-item__top { flex-direction: column; gap: 6px; }
}

/* =========================================================
   Icon picker (select2 templateResult/templateSelection output)
   ========================================================= */
.icon-option { display: inline-flex; align-items: center; gap: 10px; }
.icon-option__icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; background: var(--color-bg); color: var(--color-primary);
  flex-shrink: 0;
}
.select2-selection__rendered .icon-option { line-height: normal; }

/* =========================================================
   Job application page (Quill editor + CV choice)
   ========================================================= */
.quill-editor .ql-toolbar.ql-snow {
  border-color: var(--color-border); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: var(--font-body);
}
.quill-editor .ql-container.ql-snow {
  border-color: var(--color-border); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-body); font-size: 14.5px;
}
.quill-editor .ql-editor { min-height: 160px; }
.quill-editor .ql-editor.ql-blank::before { color: var(--color-muted); font-style: normal; }

.cv-choice { display: flex; flex-direction: column; gap: 10px; }
.cv-choice .checkbox-pill { width: 100%; box-sizing: border-box; }
.cv-choice .checkbox-pill input { accent-color: var(--color-primary); }
.cv-choice a { color: var(--color-primary); }

.already-applied {
  display: flex; align-items: center; gap: 8px;
  background: #E9F7EE; color: #1E7A3E; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; font-weight: 600; margin: 0;
}

.cover-letter-content {
  background: var(--color-bg); border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 13.5px; line-height: 1.6; color: var(--color-ink);
}
.cover-letter-content p { margin: 0 0 10px; }
.cover-letter-content p:last-child { margin-bottom: 0; }
.cover-letter-content ul, .cover-letter-content ol { margin: 0 0 10px; padding-left: 20px; }
.cover-letter-content blockquote { border-left: 3px solid var(--color-border); margin: 0 0 10px; padding-left: 12px; color: var(--color-muted); }
.cover-letter-content a { color: var(--color-primary); }

/* =========================================================
   Site-wide Django messages (public site — distinct from the
   portal's own .portal-message styling)
   ========================================================= */
.site-messages { padding: 14px 0 0; }
.site-message {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  margin-bottom: 10px;
}
.site-message--success { background: #E9F7EE; color: #1E7A3E; }
.site-message--error { background: #FDECEC; color: #C0392B; }
.site-message--info { background: rgba(46,168,228,0.1); color: var(--color-primary); }
.site-message--warning { background: #FFF6E5; color: #92660B; }
