/* kaj. — styled with the biye.bd member design language (rose & plum, soft gradients, rounded panels). */
@font-face { font-family: 'Noto Sans Bengali'; src: url('assets/noto-bengali-regular.ttf') format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Noto Sans Bengali'; src: url('assets/noto-bengali-bold.ttf') format('truetype'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Noto Sans Bengali'; src: url('assets/noto-bengali-extrabold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --rose: #a13966;
  --rose-dark: #843157;
  --rose-hover: #8f3159;
  --rose-soft: #f7e7ef;
  --rose-tint: #f1dce7;
  --rose-text: #963b66;
  --ink: #402b3d;
  --heading: #4c2f44;
  --title: #49303f;
  --body: #624b5b;
  --muted: #806d7b;
  --faint: #947d8c;
  --line: #eadfe8;
  --line-soft: #f1e9ef;
  --field: #fdfbfd;
  --field-line: #e5d8e2;
  --page: #faf7fa;
  --lavender: #f2edf7;
  --gold-bg: #fff0d2;
  --gold-line: #efd4a1;
  --gold-text: #73451b;
  --blue: #2584df;
  --green: #21966c;
  --shadow-sm: 0 5px 22px #43233805;
  --shadow-md: 0 8px 24px #4323380b;
  --sans: 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Noto Serif Bengali', 'Noto Sans Bengali', ui-serif, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .65; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #ad5a82; outline-offset: 3px; }
svg { display: block; }
i[data-icon], .icon { display: inline-flex; flex: none; width: 18px; height: 18px; vertical-align: middle; }
.icon svg { width: 100%; height: 100%; }
button .icon, a .icon { pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--rose); color: #fff; padding: 12px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: #ffffffed; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1184px; height: 76px; margin: auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-symbol { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; box-shadow: 0 4px 12px #84315726; }
.brand-symbol svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; font-size: 21px; font-weight: 700; line-height: 1.25; color: #302334; }
.brand-text small { font-size: 10px; font-weight: 400; color: #847586; margin-top: 3px; white-space: nowrap; }
/* A site with its own logo (html.has-brand-logo, set by /kaj-env.js): the logo replaces the default symbol and name. */
.brand-logo { display: block; height: 38px; width: auto; max-width: 100%; }
html.has-brand-logo .brand > .brand-symbol, html.has-brand-logo .brand > .brand-text { display: none; }
.desktop-nav { display: flex; gap: 2px; padding: 5px; border: 1px solid #f0e6ee; border-radius: 30px; background: #fcf9fc; }
.desktop-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 24px; color: var(--muted); font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.desktop-nav a:hover { color: var(--rose-text); }
.desktop-nav a[aria-current=page] { background: var(--rose-tint); color: var(--rose-text); }
.nav-count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 10px; line-height: 1; color: var(--rose-text); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.preview-pill { padding: 3px 10px; border: 1px solid var(--gold-line); border-radius: 20px; background: var(--gold-bg); color: var(--gold-text); font-size: 10px; font-weight: 700; white-space: nowrap; }
.icon-button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #74586a; transition: background .15s; }
.icon-button:hover { background: #f7eef4; }
.icon-button .icon { width: 20px; height: 20px; }
.notification-dot { position: absolute; top: 11px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); border: 2px solid #fff; }
.user-button { display: flex; align-items: center; gap: 9px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 30px; background: #fff; transition: border-color .15s; }
.user-button:hover { border-color: #d6b8cb; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #f2e8ef, #e3d4e1); color: #88617b; font-weight: 700; font-size: 14px; }
.user-label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; color: #5a3f52; }

/* ---------- Page ---------- */
.page { min-height: calc(100dvh - 76px); outline: none; }
.container { max-width: 1184px; margin: auto; padding: 32px 24px 48px; }

/* Hero banner, from biye.bd member-heading */
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; border: 1px solid #efdee9; border-radius: 24px; background: linear-gradient(115deg, #f9edf3, #f2edf7); overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, #ffffff80, #ffffff00 70%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; min-width: 0; max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #945b7c; font-size: 11px; font-weight: 500; }
.eyebrow .icon { width: 14px; height: 14px; }
.hero h1 { margin: 10px 0 8px; color: var(--heading); font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; line-height: 1.5; letter-spacing: -.03em; }
.hero h1 em { display: block; font-style: normal; color: #a03d69; }
.hero p { max-width: 480px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; list-style: none; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6f566a; }
.hero-trust .icon { width: 16px; height: 16px; color: var(--green); }
.hero-art { position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0; width: 120px; height: 120px; margin-right: 18px; color: #b57596; border: 1px solid #ffffffc9; background: #ffffff4d; border-radius: 50%; box-shadow: 0 0 0 16px #ffffff25, 0 0 0 34px #ffffff14; transform: rotate(-13deg); }
.hero-art .icon { width: 56px; height: 56px; }

/* Search panel, from biye.bd member-search-filters */
.search-panel { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: end; gap: 16px; margin: -26px 28px 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px #50334710; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12px; font-weight: 500; color: #71546a; }
.field-control { position: relative; display: flex; align-items: center; }
.field-control > .icon { position: absolute; left: 14px; color: #a88b9d; pointer-events: none; }
.field-control :is(input, select) { width: 100%; min-height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--field); color: #4d3948; font-size: 15px; appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s; }
.field-control select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88b9d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 38px; }
.field-control :is(input, select):focus { outline: none; border-color: #b86990; box-shadow: 0 0 0 3px #ad5a8226; }
.field-control input::placeholder { color: #aa98a5; }
.search-submit { min-height: 48px; min-width: 140px; }
.popular-searches { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--faint); }
.popular-searches button { padding: 4px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fcf9fc; color: #7c5f73; font-size: 12px; transition: border-color .15s, color .15s; }
.popular-searches button:hover { border-color: #c586a4; color: var(--rose-text); }

/* Buttons */
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 12px; background: var(--rose); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 4px 12px #a1396624; transition: background .15s; }
.primary-button:hover:not(:disabled) { background: var(--rose-hover); }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 1px solid #e8dbe4; border-radius: 12px; background: #fff; color: #835c73; font-size: 14px; font-weight: 500; transition: background .15s; }
.secondary-button:hover { background: #fcf6fa; }
.full-width { width: 100%; }
.text-button { display: inline-flex; align-items: center; gap: 6px; color: var(--rose); font-size: 13px; font-weight: 600; }
.text-button:hover { color: var(--rose-dark); }

/* Categories */
.category-strip { display: flex; gap: 10px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.category-strip::-webkit-scrollbar { display: none; }
.category-button { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #7c6375; font-size: 13px; font-weight: 500; transition: border-color .15s, background .15s, color .15s; }
.category-button:hover { border-color: #d6b8cb; }
.category-button .icon { width: 17px; height: 17px; color: #b07898; }
.category-button.active { background: var(--rose-soft); border-color: #c586a4; color: #91345f; }
.category-button.active .icon { color: var(--rose); }
.category-count { padding: 0 7px; border-radius: 10px; background: #fff; font-size: 10px; color: var(--rose-text); }

/* Layout */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 28px; }
.jobs-section { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 4px; }
.section-heading-copy { min-width: 0; }
.section-kicker { color: #945b7c; font-size: 11px; font-weight: 500; }
.section-heading h2 { margin-top: 2px; color: var(--heading); font-size: 24px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.heading-dot { color: var(--rose); }
#result-description { color: #71546a; font-size: 13px; font-weight: 500; }
.filter-button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid #e8dce5; border-radius: 12px; background: #fff; color: #7c5f73; font-size: 13px; font-weight: 500; }
.filter-button:hover { border-color: #c586a4; }
#filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose); color: #fff; font-size: 10px; line-height: 1; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.toggle-label { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: #6f566a; }
.toggle-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #e9dee6; transition: background .2s; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #40233a30; transition: transform .2s; }
.toggle-label input:checked + .toggle-track { background: var(--rose); }
.toggle-label input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle-label input:focus-visible + .toggle-track { outline: 3px solid #ad5a82; outline-offset: 3px; }
.sort-label { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.sort-label select { min-height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); color: #5a3f52; font-size: 13px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sort-label > .icon { position: absolute; right: 9px; width: 15px; height: 15px; color: #a88b9d; pointer-events: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.active-filters:empty { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border: 1px solid #e3c8d6; border-radius: 20px; background: var(--rose-soft); color: #91345f; font-size: 12px; }
.filter-chip .icon { width: 14px; height: 14px; }
.clear-filters { padding: 5px 10px; font-size: 12px; color: var(--rose); font-weight: 600; }

/* Job cards, from biye.bd member-profile-card */
.job-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.job-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; background: linear-gradient(145deg, #fff 65%, #fdf8fb); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.job-card:hover { border-color: #d6b8cb; box-shadow: var(--shadow-md); }
.job-card.featured { border-color: #e6cbd9; background: linear-gradient(145deg, #fff 55%, #fbf0f6); }
.job-top { display: flex; align-items: flex-start; gap: 14px; }
.company-logo { display: grid; place-items: center; flex-shrink: 0; width: 64px; aspect-ratio: 4 / 5; border-radius: 15px; border: 1px solid #ffffff99; box-shadow: 0 2px 6px #43233809; font-size: 26px; font-weight: 700; background: linear-gradient(145deg, #f2e8ef, #e3d4e1); color: #88617b; }
.company-logo.orbit { background: linear-gradient(145deg, #f6e3ec, #e9c9d9); color: #a13966; }
.company-logo.shapla { background: linear-gradient(145deg, #fbe9ef, #f2cfdc); color: #b0456f; }
.company-logo.north { background: linear-gradient(145deg, #ece8f8, #d9d1ef); color: #6c5aa3; }
.company-logo.forma { background: linear-gradient(145deg, #fdf0e3, #f3dcc2); color: #9a5a28; }
.company-logo.nobo { background: linear-gradient(145deg, #e6f3ee, #cde6db); color: #2e7d5f; }
.company-logo.weave { background: linear-gradient(145deg, #e8eef9, #cfdaf0); color: #3d63a8; }
.company-logo.mono { background: linear-gradient(145deg, #efeaee, #ddd3db); color: #5c4757; }
.company-logo.loop { background: linear-gradient(145deg, #f8e8f5, #ebcde6); color: #924083; }
.job-title-block { flex: 1; min-width: 0; padding-top: 1px; }
.company-name { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #896a7c; font-size: 12px; font-weight: 500; }
.verified-tick { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); color: #fff; }
.verified-tick .icon { width: 10px; height: 10px; }
.verified-tick svg { stroke-width: 3; }
.featured-label { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding: 0 7px; border: 1px solid var(--gold-line); border-radius: 20px; background: var(--gold-bg); color: var(--gold-text); font-size: 9px; font-weight: 700; line-height: 1.8; }
.featured-label .icon { width: 10px; height: 10px; }
.job-title { display: block; margin-top: 1px; text-align: left; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.55; color: var(--title); overflow-wrap: anywhere; }
.job-title:hover { color: var(--rose); }
a.job-title { text-decoration: none; }
.post-job-link { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rose); color: var(--rose); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.post-job-link:hover { background: var(--rose); color: #fff; }
.rail-footer nav a { color: inherit; font: inherit; text-decoration: none; }
@media (max-width: 560px) { .post-job-link { height: 30px; padding: 0 10px; font-size: 11px; } .post-job-link .long { display: none; } }
a.job-title:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 4px; }

/* Server-rendered first view (server/src/seo.js): what crawlers, link previews and slow phones see before the app
   draws. The app hides the job copy once it is ready (it opens the same job in the sheet); the links stay. */
.hero .hero-title { margin: 10px 0 8px; color: var(--heading); font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; line-height: 1.5; letter-spacing: -.03em; }
.hero .hero-title em { display: block; font-style: normal; color: #a03d69; }
.app-ready .seo-job:not(.seo-keep) { display: none; }
.seo-job { margin: 18px 0 6px; padding: 22px 24px; border: 1px solid var(--line, #e7e1e4); border-radius: 20px; background: #fff; line-height: 1.85; }
.seo-job h1 { margin: 6px 0 14px; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.45; color: var(--heading); }
.seo-job h2 { margin: 18px 0 6px; font-size: 16px; color: var(--heading); }
.seo-job p, .seo-job li { color: var(--muted); font-size: 14px; }
.seo-company { margin: 0; font-weight: 600; color: var(--rose); }
.seo-breadcrumb { font-size: 12px; color: var(--muted); }
.seo-breadcrumb a, .seo-job a { color: var(--rose); }
.seo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0; }
.seo-facts div { padding: 10px 12px; border-radius: 12px; background: var(--rose-soft, #f8eef3); }
.seo-facts dt { font-size: 11px; color: var(--muted); }
.seo-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--heading); }
.seo-actions .primary-button { display: inline-flex; text-decoration: none; }
.seo-card { padding: 16px 18px; border: 1px solid var(--line, #e7e1e4); border-radius: 16px; background: #fff; }
.seo-card h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.seo-card h3 a { color: var(--title, inherit); text-decoration: none; }
.seo-card p { margin: 0; font-size: 13px; color: var(--muted); }
.seo-pager { display: flex; gap: 16px; align-items: center; justify-content: center; padding: 14px 0; font-size: 13px; }
.seo-pager a { color: var(--rose); }
.seo-browse { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 10px; }
.seo-browse a { padding: 6px 12px; border: 1px solid var(--line, #e7e1e4); border-radius: 999px; background: #fff; color: var(--heading); font-size: 12px; text-decoration: none; }
.seo-browse a:hover { border-color: var(--rose); color: var(--rose); }
.seo-browse small { color: var(--muted); }
.seo-sitemap section { margin-top: 14px; }
.seo-sitemap h2 small { font-weight: 400; color: var(--muted); }
.seo-sitemap ul { margin: 4px 0 0; padding-left: 18px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 2px; color: #896a7c; font-size: 12px; line-height: 1.8; }
.job-meta > span + span::before { content: '·'; margin-right: 8px; color: #ba9bad; }
.job-location { display: flex; align-items: flex-start; gap: 5px; margin-top: 3px; color: #897381; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.job-location .icon { width: 14px; height: 14px; margin-top: 3px; }
.job-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding: 11px 14px; background: #f9f5f8; border: 1px solid #f2eaf0; border-radius: 12px; }
.job-facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; line-height: 1.7; color: #634b5c; overflow-wrap: anywhere; }
.job-facts > div + div { border-left: 1px solid #e8dde5; padding-left: 16px; }
.fact-label { color: #8f7b89; font-size: 10px; }
.job-facts .salary { color: var(--rose); font-weight: 700; font-size: 13px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 2px 10px; border: 1px solid #efe4ec; border-radius: 20px; background: #fff; color: #7a6273; font-size: 11px; line-height: 1.9; }
.tag-peach { border-color: #cfe7dc; background: #edf7f2; color: #2d7a5c; }
.tag-green { border-color: #cfe7dc; background: #edf7f2; color: #2d7a5c; }
.job-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 16px; }
.job-bottom-right { display: flex; gap: 8px; }
.view-job { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1px solid #e8dbe4; border-radius: 12px; background: #fff; color: #835c73; font-size: 13px; font-weight: 500; transition: background .15s, border-color .15s; }
.view-job:hover { background: #fcf6fa; border-color: #d6b8cb; }
.view-job .icon { width: 16px; height: 16px; }
.bookmark-button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #e8dbe4; border-radius: 12px; background: #fff; color: #a07890; transition: background .15s, color .15s, border-color .15s; }
.bookmark-button:hover { border-color: #c586a4; color: var(--rose); }
.bookmark-button.saved { background: var(--rose); border-color: var(--rose); color: #fff; }
.bookmark-button.saved svg { fill: currentColor; }
.application-status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: #edf7f2; color: #2d7a5c; font-size: 12px; font-weight: 500; }
.application-status .icon { width: 16px; height: 16px; }
.job-age { font-size: 11px; color: var(--faint); }
.load-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 18px; border: 1px dashed #dcc4d2; border-radius: 14px; background: #fff; color: var(--rose-text); font-size: 13px; font-weight: 600; }
.load-more:hover { background: #fcf6fa; }

/* Empty state */
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; border: 1px dashed #e3cfdb; border-radius: 22px; background: #fff; }
.empty-state > .icon { width: 64px; height: 64px; padding: 16px; margin-bottom: 6px; border-radius: 50%; background: var(--rose-soft); color: var(--rose); }
.empty-state h2, .empty-state h3 { color: var(--heading); font-size: 19px; font-weight: 600; }
.empty-state p { max-width: 380px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }

/* Right rail */
.right-rail { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.panel { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 4px 20px #53364e04; }
.rail-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #945b7c; font-size: 11px; font-weight: 500; }
.rail-eyebrow .icon { width: 14px; height: 14px; }
.panel h3 { margin-top: 6px; color: #53354a; font-size: 17px; font-weight: 600; line-height: 1.6; }
.panel p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.profile-card { background: linear-gradient(115deg, #fff 40%, #fcf1f7); }
.profile-progress-label { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; font-size: 12px; color: #71546a; }
.profile-progress-label strong { color: var(--rose); font-size: 14px; }
.progress-track { height: 8px; border-radius: 6px; background: #f1e6ed; overflow: hidden; margin-bottom: 18px; }
.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #c06d95, var(--rose)); transition: width .4s ease; }
.time-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: var(--faint); font-size: 11px; }
.time-note .icon { width: 14px; height: 14px; }
.career-card { background: linear-gradient(125deg, #f8edf4, #f5f0f8); border-color: #f0e2eb; }
.career-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; background: #fff; color: var(--rose); box-shadow: 0 3px 10px #a1396614; }
.career-icon .icon { width: 22px; height: 22px; }
.article-label { color: #945b7c; font-size: 11px; font-weight: 500; }
.career-card .text-button { margin-top: 12px; }
.rail-footer { padding: 4px 8px; color: var(--faint); font-size: 11px; }
.rail-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rail-footer button { font-size: 11px; color: #8e7d8d; }
.rail-footer button:hover { color: var(--rose); }
.rail-footer p { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.rail-footer p .icon { width: 13px; height: 13px; color: var(--rose); }

/* Profile page (in job list) */
.jobs-section.profile-page .job-list { grid-template-columns: 1fr; }
.mobile-profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 28px; background: linear-gradient(115deg, #fff 40%, #fcf1f7); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.mobile-profile-card .primary-button { width: 100%; max-width: 360px; }
.profile-avatar { display: grid; place-items: center; width: 96px; aspect-ratio: 4 / 5; margin-bottom: 14px; border-radius: 18px; background: linear-gradient(145deg, #f2e8ef, #e3d4e1); color: #88617b; font-size: 34px; font-weight: 700; box-shadow: 0 3px 12px #5033470a; }
.mobile-profile-card h3 { font-family: var(--serif); color: var(--title); font-size: 24px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.mobile-profile-card > p { max-width: 420px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.profile-details-list { display: grid; gap: 1px; width: 100%; max-width: 420px; margin-top: 20px; background: #ede3eb; border: 1px solid #ede3eb; border-radius: 16px; overflow: hidden; text-align: left; }
.profile-details-list > div { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--field); color: #503c49; font-size: 13px; overflow-wrap: anywhere; }
.profile-details-list .icon { color: #b07898; }
.mobile-profile-card .profile-progress-label, .mobile-profile-card .progress-track { width: 100%; max-width: 420px; }
.demo-notice { margin-top: 18px; padding: 11px 14px; border: 1px solid var(--gold-line); border-radius: 12px; background: #fff8ea; color: #7a5326; font-size: 11px; line-height: 1.8; text-align: left; }
.delete-button { margin-top: 14px; color: #b23a4f; font-size: 12px; font-weight: 600; }
.delete-button:hover { text-decoration: underline; }

/* ---------- Dialog / sheet, from biye.bd member-profile-dialog ---------- */
#sheet { width: min(600px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0 24px 24px; border: 1px solid #ffffffb3; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 25px 100px #2e142a33; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d8c5d2 transparent; }
#sheet::backdrop { background: #35242f80; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
#sheet[open] { animation: sheet-in .22s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 -24px 6px; padding: 10px 14px 6px 24px; background: #fffffff2; backdrop-filter: blur(10px); }
.sheet-brand { color: #927687; font-size: 12px; font-weight: 600; }
#sheet h2 { color: var(--heading); font-size: 24px; font-weight: 600; line-height: 1.55; letter-spacing: -.02em; margin-top: 2px; }
.sheet-subtitle { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.back-button { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--rose-text); font-size: 12px; font-weight: 600; }

.detail-company { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 18px; background: linear-gradient(125deg, #f8edf4, #f5f0f8); border: 1px solid #f0e2eb; border-radius: 20px; }
.detail-company .company-logo { width: 72px; font-size: 28px; }
.detail-company strong { display: block; font-family: var(--serif); color: var(--title); font-size: 20px; font-weight: 600; line-height: 1.5; }
.detail-company small { color: #896a7c; font-size: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: #ede3eb; border: 1px solid #ede3eb; border-radius: 16px; overflow: hidden; }
.detail-facts > div { display: flex; flex-direction: column; padding: 13px 16px; background: var(--field); min-width: 0; }
.detail-facts small { color: var(--faint); font-size: 11px; line-height: 1.8; }
.detail-facts strong { color: #503c49; font-size: 14px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.detail-facts > div:first-child strong { color: var(--rose); }
.detail-section { margin-top: 22px; }
.detail-section h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #67465d; font-size: 15px; font-weight: 600; }
.detail-section h3::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: #c88ba9; }
.detail-section p, .detail-section li { color: #796170; font-size: 14px; line-height: 2; }
.detail-section ul { padding-left: 20px; }
.detail-section li::marker { color: #c88ba9; }
#sheet .application-status { margin-top: 16px; }
.detail-actions { position: sticky; bottom: -24px; display: flex; gap: 10px; margin: 20px -24px -24px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #f0e6ed; box-shadow: 0 -4px 16px #50334706; }
.detail-actions .primary-button { flex: 1; min-height: 50px; border-radius: 14px; }
.detail-actions > :is(.primary-button, .secondary-button) { flex: 1; min-width: 0; white-space: nowrap; padding-inline: 12px; }
.detail-actions .bookmark-button { width: 50px; height: 50px; border-radius: 14px; }

/* Forms in sheets */
#sheet form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; color: #71546a; font-size: 12px; font-weight: 500; }
.form-field :is(input:not([type=file]):not([type=checkbox]), select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: 12px; background-color: var(--field); color: #4d3948; font-size: 16px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.form-field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.form-field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88b9d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 38px; }
.form-field :is(input, select, textarea):focus { outline: none; border-color: #b86990; box-shadow: 0 0 0 3px #ad5a8226; }
.form-field small { color: var(--faint); font-size: 11px; font-weight: 400; }
.file-label { flex-direction: column; }
.file-label > .icon { display: none; }
.file-picker { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px; border: 1px dashed #dcc4d2; border-radius: 12px; background: #fdfafd; cursor: pointer; }
.file-label:focus-within .file-picker { outline: 3px solid #ad5a82; outline-offset: 3px; }
.file-picker-button { flex-shrink: 0; padding: 7px 14px; border-radius: 9px; background: #f4e2ec; color: #9c406b; font-size: 12px; font-weight: 600; }
.file-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6f566a; font-size: 13px; font-weight: 400; }
.form-error { padding: 10px 14px; border: 1px solid #f1c6cf; border-radius: 12px; background: #fdf1f3; color: #a8324a; font-size: 12px; }
.form-error:empty { display: none; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-actions .primary-button { flex: 1; }
#sheet > #sheet-content > .form-actions { margin-top: 22px; }
.filter-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.filter-group legend { padding: 0; margin-bottom: 10px; color: #67465d; font-size: 14px; font-weight: 600; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-option { position: relative; cursor: pointer; }
.filter-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-option span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid #e5d8e2; border-radius: 12px; background: #fff; color: #6f566a; font-size: 13px; transition: background .15s, border-color .15s, color .15s; }
.filter-option input:checked + span { background: #f7e7ef; border-color: #c586a4; color: #91345f; font-weight: 600; }
.filter-option input:focus-visible + span { outline: 3px solid #ad5a82; outline-offset: 2px; }
.check-label { display: flex; align-items: center; gap: 10px; color: #6f566a; font-size: 13px; cursor: pointer; }
.check-label input { width: 18px; height: 18px; accent-color: var(--rose); }

/* Guide / notifications */
.guide-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; counter-reset: tip; }
.guide-tip { position: relative; padding: 16px 16px 16px 58px; border: 1px solid var(--line); border-radius: 16px; background: #fdfbfd; counter-increment: tip; }
.guide-tip::before { content: counter(tip, bengali); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rose); color: #fff; font-size: 13px; font-weight: 700; }
.guide-tip h3 { color: #53354a; font-size: 14px; font-weight: 600; }
.guide-tip p { margin-top: 3px; color: #796170; font-size: 13px; line-height: 1.85; }
.notification-item { display: flex; gap: 14px; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fdfbfd; }
.notification-item:first-of-type { margin-top: 20px; }
.notification-item > .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--rose-soft); color: var(--rose); }
.notification-item strong { display: block; color: #53354a; font-size: 14px; font-weight: 600; }
.notification-item p { margin-top: 2px; color: #796170; font-size: 12px; line-height: 1.85; }
#sheet .empty-state { background: transparent; }
#sheet .empty-state .section-kicker { margin-top: 4px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; max-width: min(440px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: #3b2636; color: #fff; font-size: 13px; box-shadow: 0 12px 30px #2e142a33; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }


/* ---------- AI features ---------- */
.search-mode { grid-column: 1 / -1; display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border: 1px solid #f0e6ee; border-radius: 14px; background: #fcf9fc; }
.search-mode button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.search-mode button .icon { width: 15px; height: 15px; }
.search-mode button[aria-pressed=true] { background: #fff; color: var(--rose-text); box-shadow: 0 2px 8px #5033470f; }
.search-mode button[data-search-mode=ai][aria-pressed=true] { background: linear-gradient(145deg, #ac4777, #843157); color: #fff; }
.search-panel[data-mode=ai] .location-field, .search-panel[data-mode=ai] .classic-examples, .search-panel[data-mode=classic] .ai-examples { display: none; }
.search-panel[data-mode=ai] { grid-template-columns: minmax(0, 1fr) auto; }
.search-panel[data-mode=ai] .field-control input { border-color: #dcbfd0; background: linear-gradient(90deg, #fff, #fdf6fa); }
.ai-summary { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 14px; border: 1px solid #ecd3e0; border-radius: 14px; background: linear-gradient(115deg, #f9edf3, #f2edf7); color: #6f566a; font-size: 12px; line-height: 1.8; }
.ai-summary .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--rose); }
.ai-summary strong { color: var(--rose-text); font-weight: 600; }

.job-top { position: relative; }
.match-badge { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: 4px 8px; border-radius: 12px; background: #f6eef3; color: #8c6d81; font-size: 14px; font-weight: 700; line-height: 1.3; }
.match-badge small { font-size: 9px; font-weight: 500; }
.match-badge.mid { background: #fff4e0; color: #8a5a1c; }
.match-badge.high { background: #e7f5ee; color: #1f7c58; }
.job-card:has(.match-badge) .job-title-block { padding-right: 56px; }
.source-badge { display: inline-flex; align-items: center; gap: 3px; padding: 0 7px; border: 1px solid #d9d1ef; border-radius: 20px; background: #f1eefa; color: #5d4f96; font-size: 9px; font-weight: 700; line-height: 1.8; }
.source-badge .icon { width: 10px; height: 10px; }

.match-card { background: linear-gradient(125deg, #fdf8fb, #f7f2fa); }
.rail-match-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rail-match { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; transition: border-color .15s; }
.rail-match:hover { border-color: #d6b8cb; }
.rail-match .company-logo { width: 36px; font-size: 15px; border-radius: 10px; }
.rail-match > span:nth-child(2) { flex: 1; min-width: 0; }
.rail-match strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #53354a; font-size: 12px; font-weight: 600; }
.rail-match small { color: var(--faint); font-size: 11px; }
.rail-match b { color: #1f7c58; font-size: 13px; }

.match-box { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #e3efe8; border-radius: 16px; background: #f5fbf8; text-align: left; color: #5d6f66; font-size: 12px; line-height: 1.8; }
.match-box strong { display: block; color: #2b5a46; font-size: 13px; font-weight: 600; }
.match-box--empty { border-color: var(--line); background: #fdfbfd; color: var(--muted); }
.match-box--empty strong { color: #53354a; }
.match-box--empty > .icon:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--rose-soft); color: var(--rose); }
.match-box > span:nth-child(2) { flex: 1; }
.match-ring { --value: 0; --ring: #21966c; position: relative; display: grid; place-items: center; flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--ring) calc(var(--value) * 1%), #e7e0e5 0); }
.match-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.match-ring b { position: relative; color: #2b4a3d; font-size: 13px; }

.ai-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 10px 16px; border: 1px solid #e3c8d6; border-radius: 12px; background: linear-gradient(115deg, #fbeff5, #f3eef9); color: #8b305b; font-size: 13px; font-weight: 600; white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
.ai-button:hover { border-color: #c586a4; box-shadow: 0 4px 12px #a1396614; }
.ai-button .icon { width: 17px; height: 17px; color: var(--rose); }
.ai-button--wide { width: 100%; justify-content: flex-start; gap: 12px; padding: 12px 14px; text-align: left; white-space: normal; }
.ai-button--wide > span { flex: 1; }
.ai-button--wide strong { display: block; font-size: 13px; }
.ai-button--wide small { display: block; color: #8c6d81; font-size: 11px; font-weight: 400; }
.ai-button--wide > .icon:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #fff; }
.detail-actions .ai-button { min-height: 50px; border-radius: 14px; }
.resume-attached { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #cfe7dc; border-radius: 14px; background: #edf7f2; color: #3e6a57; font-size: 11px; }
.resume-attached > .icon { width: 22px; height: 22px; color: var(--green); }
.resume-attached span { flex: 1; }
.resume-attached strong { display: block; color: #2b5a46; font-size: 13px; }

/* Profile editor */
.autofill-box { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; padding: 16px; border: 1px dashed #d8b6c9; border-radius: 18px; background: linear-gradient(115deg, #fbf1f6, #f5f1fa); }
.autofill-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--rose); box-shadow: 0 3px 10px #a1396614; }
.autofill-box > div { flex: 1; min-width: 0; }
.autofill-box strong { color: #53354a; font-size: 14px; }
.autofill-box p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.autofill-button { flex-shrink: 0; min-height: 42px; cursor: pointer; }
.autofill-button:focus-within { outline: 3px solid #ad5a82; outline-offset: 3px; }
.autofill-status:empty { display: none; }
.autofill-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; color: #6f566a !important; font-size: 12px !important; }
.autofill-status[data-tone=success] { background: #edf7f2; color: #2d7a5c !important; }
.autofill-status[data-tone=error] { background: #fdf1f3; color: #a8324a !important; }
.spinner { width: 14px; height: 14px; border: 2px solid #ecd3e0; border-top-color: var(--rose); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-section { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px 0 2px; border: 0; border-top: 1px solid #f1e9ef; min-width: 0; }
.form-section legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; color: #67465d; font-size: 15px; font-weight: 600; }
.form-section legend + * { clear: both; }
.repeat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.repeat-list { display: flex; flex-direction: column; gap: 12px; }
.repeat-item { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fdfbfd; }
.remove-item { display: inline-flex; align-items: center; gap: 5px; align-self: flex-end; color: #b23a4f; font-size: 12px; font-weight: 500; }
.remove-item .icon { width: 15px; height: 15px; }
.add-item { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1px dashed #dcc4d2; border-radius: 12px; color: var(--rose-text); font-size: 13px; font-weight: 600; }
.add-item:hover { background: #fcf6fa; }
.skill-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--faint); font-size: 11px; }
.skill-suggestions button { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px 3px 7px; border: 1px solid #efe4ec; border-radius: 20px; background: #fff; color: #7a6273; font-size: 11px; }
.skill-suggestions button:hover { border-color: #c586a4; color: var(--rose-text); }
.skill-suggestions .icon { width: 12px; height: 12px; }
.sticky-actions { position: sticky; bottom: -24px; margin: 4px -24px -24px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #f0e6ed; }

.profile-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; margin-top: 18px; }
.profile-cta-row .primary-button { width: auto; max-width: none; }
.profile-missing { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 420px; margin-top: -6px; color: var(--faint); font-size: 11px; }
.profile-missing span { padding: 0 8px; border-radius: 20px; background: #fff4e0; color: #8a5a1c; }
.profile-block { width: 100%; max-width: 420px; margin-top: 18px; text-align: left; }
.profile-block h4 { margin: 0 0 8px; color: #67465d; font-size: 13px; font-weight: 600; }
.profile-line { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1e9ef; color: var(--muted); font-size: 12px; }
.profile-line .icon { margin-top: 2px; color: #b07898; }
.profile-line strong { display: block; color: #503c49; font-size: 13px; font-weight: 600; }

/* Resume builder */
#sheet:has(.resume-body) { width: min(760px, calc(100vw - 48px)); }
#sheet .section-kicker .icon { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.resume-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0 30px; color: var(--muted); font-size: 13px; }
.resume-loading > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--rose-soft); color: var(--rose); animation: pulse 1.2s ease-in-out infinite; }
.resume-loading i { display: block; width: 100%; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #f4ecf1 25%, #fbf6f9 50%, #f4ecf1 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.resume-loading i:nth-of-type(2) { width: 80%; } .resume-loading i:nth-of-type(3) { width: 60%; }
@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes shimmer { to { background-position: -200% 0; } }
.ats-card { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 16px; border: 1px solid #e3efe8; border-radius: 18px; background: #f5fbf8; }
.ats-card.mid { border-color: #f3e2c2; background: #fffaf0; } .ats-card.mid .match-ring { --ring: #d48a2c; }
.ats-card.low { border-color: #f1d3db; background: #fdf5f7; } .ats-card.low .match-ring { --ring: #c0455f; }
.ats-card .match-ring { width: 68px; height: 68px; }
.ats-card .match-ring b { font-size: 15px; }
.ats-card strong { color: #3f3340; font-size: 14px; }
.ats-card p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.keyword-block h3, .resume-tips h3 { display: flex; align-items: center; gap: 6px; margin: 16px 0 8px; color: #67465d; font-size: 13px; font-weight: 600; }
.muted-note { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-size: 11px; }
.muted-note .icon { width: 13px; height: 13px; }
p.muted-note { display: block; margin: -4px 0 8px; }
.tag-match { display: inline-flex; align-items: center; gap: 3px; border-color: #cfe7dc; background: #edf7f2; color: #2d7a5c; }
.tag-match .icon, .tag-toggle .icon { width: 12px; height: 12px; }
.tag-toggle { display: inline-flex; align-items: center; gap: 3px; border-style: dashed; cursor: pointer; }
.tag-toggle:hover { border-color: #c586a4; color: var(--rose-text); }
.tag-toggle[aria-pressed=true] { border-style: solid; border-color: var(--rose); background: var(--rose); color: #fff; }
.resume-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.resume-lang-note { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--rose-soft, #f7e7ef); color: var(--rose, #a13966); font-size: 12px; font-weight: 600; }
.resume-lang-note .icon { width: 14px; height: 14px; }
.reset-profile-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--line, #e7d7df); border-radius: 16px; }
.reset-profile-row > div { flex: 1 1 220px; text-align: left; }
.reset-profile-row strong { display: block; font-size: 14px; }
.reset-profile-row small { display: block; margin-top: 2px; color: var(--muted, #6f6470); font-size: 12px; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #fcf9fc; }
.segmented button { min-height: 34px; padding: 4px 16px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 600; }
.segmented button[aria-pressed=true] { background: var(--rose); color: #fff; }
.resume-paper { padding: 28px 30px; border: 1px solid #e6dce3; border-radius: 6px; background: #fff; box-shadow: 0 10px 30px #4323380f, 0 1px 3px #43233810; outline: none; }
.resume-paper:focus-visible { box-shadow: 0 0 0 3px #ad5a8233, 0 10px 30px #4323380f; }
.resume-doc { color: #1f1f1f; font-family: Arial, 'Noto Sans Bengali', sans-serif; font-size: 12.5px; line-height: 1.55; }
.resume-doc[lang=bn] { font-family: 'Noto Sans Bengali', Arial, sans-serif; line-height: 1.75; }
.resume-doc h1 { margin: 0; color: #111; font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.resume-headline { margin-top: 2px; color: #333; font-size: 14px; font-weight: 600; }
.resume-contact { margin-top: 4px; color: #444; font-size: 11.5px; overflow-wrap: anywhere; }
.resume-doc section { margin-top: 14px; }
.resume-doc h2 { margin: 0 0 6px; padding-bottom: 3px; border-bottom: 1.5px solid #222; color: #111; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.resume-doc[lang=bn] h2 { letter-spacing: 0; }
.resume-doc p { margin: 0; }
.resume-entry + .resume-entry { margin-top: 10px; }
.resume-entry-head { display: flex; justify-content: space-between; gap: 12px; }
.resume-entry-head span { flex-shrink: 0; color: #444; }
.resume-doc ul { margin: 4px 0 0; padding-left: 18px; }
.resume-doc li + li { margin-top: 2px; }
.resume-tips { margin-top: 16px; padding: 4px 16px 14px; border: 1px solid var(--gold-line); border-radius: 16px; background: #fffaf0; }
.resume-tips h3 .icon { width: 15px; height: 15px; color: #b07a2c; }
.resume-tips ul { padding-left: 18px; color: #6f5a3a; font-size: 12px; }
#print-root { display: none; }

@media (max-width: 767px) {
  .search-panel[data-mode=ai] { grid-template-columns: 1fr; }
  .search-mode { justify-self: stretch; } .search-mode button { flex: 1; justify-content: center; }
  .repeat-grid { grid-template-columns: 1fr; }
  .autofill-box { flex-wrap: wrap; }
  .autofill-button { width: 100%; }
  .sticky-actions { bottom: -20px; margin: 4px -20px -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  #sheet:has(.resume-body) { width: 100%; }
  .resume-paper { margin-inline: -8px; padding: 20px 16px; }
  .resume-doc { font-size: 11.5px; }
  .resume-entry-head { flex-direction: column; gap: 0; }
  .detail-actions .ai-button span { display: none; }
  .detail-actions .ai-button { width: 50px; padding: 0; flex-shrink: 0; }
}

@media print {
  @page { size: A4; margin: 14mm 15mm; }
  body { background: #fff !important; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .resume-doc { font-size: 10.5pt; }
  #print-root .resume-entry { break-inside: avoid; }
  #print-root h2 { break-after: avoid; }
}


/* ---------- Login & onboarding ---------- */
.auth-sheet { padding: 6px 0 4px; }
.auth-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 16px; background: var(--rose-soft); color: var(--rose); }
.auth-icon .icon { width: 24px; height: 24px; }
.auth-form { margin-top: 18px !important; }
.phone-field { display: flex; align-items: stretch; border: 1px solid var(--field-line); border-radius: 12px; background: var(--field); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.phone-field:focus-within { border-color: #b86990; box-shadow: 0 0 0 3px #ad5a8226; }
.phone-field > span { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--field-line); background: #f7f0f4; color: #6f566a; font-size: 14px; font-weight: 600; }
.form-field .phone-field input { border: 0 !important; box-shadow: none !important; background: transparent; letter-spacing: .04em; font-size: 18px !important; }
.form-field .otp-input { text-align: center; font-size: 28px !important; font-weight: 700; letter-spacing: .5em; padding-left: .5em !important; min-height: 60px !important; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; }
.auth-links .text-button:disabled { color: var(--faint); }
.auth-fine { margin-top: 18px; color: var(--faint); font-size: 11px; line-height: 1.8; }
#captcha-box:empty { display: none; }
.wizard-steps { display: flex; gap: 6px; margin: 16px 0 6px; padding: 0; list-style: none; }
.wizard-steps li { flex: 1; min-width: 0; }
.wizard-steps button { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 8px 2px; border: 1px solid transparent; border-radius: 12px; color: #a3909e; font-size: 10px; }
.wizard-steps button span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eee6ec; font-size: 12px; font-weight: 700; }
.wizard-steps small { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.wizard-steps li[data-done=true] button { color: #8c4268; }
.wizard-steps li[data-done=true] button span { background: #efdae5; }
.wizard-steps li[aria-current=step] button { border-color: var(--rose-tint); background: var(--rose-soft); color: var(--rose-text); font-weight: 600; }
.wizard-steps li[aria-current=step] button span { background: var(--rose); color: #fff; }
.wizard-steps button:disabled { cursor: default; opacity: .7; }
.wizard-form { margin-top: 16px !important; }
.wizard .autofill-box { margin-top: 14px; }
.wizard > .autofill-status { margin-top: 10px; }
.wizard-review { margin-top: 16px; }
.wizard-review > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wizard .form-actions .secondary-button { flex: 0 0 auto; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; }
.danger-button { background: #b23a4f; box-shadow: none; }
.danger-button:hover:not(:disabled) { background: #962c40; }

.applying-as { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fdfbfd; color: var(--muted); font-size: 12px; }
.applying-as .profile-avatar { width: 44px; margin: 0; font-size: 16px; border-radius: 12px; }
.applying-as > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.applying-as small { display: block; color: var(--faint); font-size: 10px; }
.applying-as strong { display: block; color: #503c49; font-size: 14px; }
.ai-resume-status { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: linear-gradient(115deg, #fbeff5, #f3eef9); color: #6f566a; font-size: 12px; }
.ai-resume-status .icon { width: 16px; height: 16px; color: var(--rose); }
.ai-resume-status[data-state=failed] { background: #fffaf0; color: #7a5326; }
.ai-resume-status .text-button { font-size: 12px; }
.search-submit .spinner { border-color: #ffffff55; border-top-color: #fff; }

/* Paid sites: subscription card on the profile page */
.subscription-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 420px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fdfbfd; text-align: left; }
.subscription-card small { display: block; color: var(--faint); font-size: 10px; }
.subscription-card strong { display: block; color: #503c49; font-size: 15px; }
.subscription-card span { display: block; color: var(--muted); font-size: 11px; }
.subscription-card.is-active { border-color: #cfe7dc; background: #f5fbf8; }
.subscription-card.is-active strong { color: #1f7c58; }
.subscription-card .text-button { flex-shrink: 0; }
/* An application whose job was closed */
.job-card--closed { opacity: .85; }
.job-card--closed .company-logo .icon { width: 26px; height: 26px; }
/* Mobile bottom nav, from biye.bd member-mobile-nav */
.bottom-nav { display: none; }
/* Site info sheets (privacy, terms, support) and their links */
.inline-link { display: inline; color: var(--rose-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--rose-dark); }
.demo-notice .inline-link { font-size: inherit; }
.info-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-list { display: grid; gap: 10px; margin-top: 10px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fdfbfd; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-row:hover { border-color: #c586a4; }
.contact-row > .icon { flex: none; width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: var(--rose-soft); color: var(--rose); }
.contact-row small { display: block; color: var(--faint); font-size: 11px; font-weight: 500; }
.notification-item .text-button { margin-top: 6px; font-size: 12px; }
.notification-more { margin-top: 12px; }
.application-status[data-status=viewed] { background: #eef3fb; color: #2f5a8a; }
.application-status[data-status=rejected] { background: #f5f1f4; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .content-layout { grid-template-columns: 1fr; }
  .right-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .rail-footer { grid-column: 1 / -1; }
  .preview-pill { display: none; }
}
@media (max-width: 900px) {
  .desktop-nav a { padding: 8px 12px; }
  .user-label { display: none; }
  .user-button { padding: 3px; }
}
@media (max-width: 767px) {
  body { background: #fff; }
  .topbar-inner { height: 68px; padding: 0 18px; gap: 8px; }
  .brand-symbol { width: 36px; height: 36px; }
  .brand-logo { height: 32px; }
  .brand-text { font-size: 19px; }
  .brand-text small { font-size: 9px; }
  .desktop-nav { display: none; }
  .page { min-height: calc(100dvh - 68px); padding-bottom: calc(88px + env(safe-area-inset-bottom)); background: var(--page); }
  .container { padding: 18px 16px 28px; }
  .hero { display: block; padding: 24px 22px 54px; border-radius: 20px; }
  .hero h1 { font-size: 25px; line-height: 1.55; }
  .hero p { font-size: 12px; }
  .hero-art { position: absolute; right: -26px; top: -28px; width: 110px; height: 110px; margin: 0; opacity: .35; }
  .search-panel { grid-template-columns: 1fr; gap: 12px; margin: -36px 10px 0; padding: 18px; }
  .search-submit { width: 100%; }
  .category-strip { margin-top: 22px; margin-inline: -16px; padding-inline: 16px; }
  .content-layout { margin-top: 22px; }
  .section-heading h2 { font-size: 21px; }
  .job-list { grid-template-columns: 1fr; gap: 14px; }
  .results-toolbar { padding: 8px 12px; }
  .right-rail { grid-template-columns: 1fr; }
  .bottom-nav { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; border-top: 1px solid var(--line); background: #fffffff2; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 24px #53364b08; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .bottom-nav > div { display: flex; gap: 6px; padding: 9px 12px; }
  .nav-item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding: 8px 4px; border-radius: 14px; color: #97808f; font-size: 11px; font-weight: 500; }
  .nav-item .icon { width: 21px; height: 21px; }
  .nav-item[aria-current=page] { background: var(--rose-soft); color: var(--rose-text); }
  .nav-item--feature, .nav-item--feature[aria-current=page] { background: linear-gradient(145deg, #ac4777, #843157); color: #fff; border: 1px solid #ffffffb3; border-radius: 17px; box-shadow: 0 5px 14px #84315730; transform: translateY(-6px); padding-top: 12px; }
  .nav-badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 7px; border: 1px solid var(--gold-line); border-radius: 20px; background: var(--gold-bg); color: var(--gold-text); font-size: 9px; font-weight: 700; line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 5px #73451b0d; }
  #mobile-saved-count { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; background: var(--rose); color: #fff; font-size: 9px; line-height: 1; border: 2px solid #fff; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  #sheet { width: 100%; max-width: none; max-height: calc(100dvh - 16px); margin: auto 0 0; padding: 0 20px 20px; border-radius: 26px 26px 0 0; border-bottom: 0; }
  #sheet[open] { animation: sheet-up .26s ease-out; }
  .sheet-top { margin: 0 -20px 4px; padding: 8px 10px 4px 20px; }
  .detail-actions { bottom: -20px; margin: 20px -20px -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  #sheet h2 { font-size: 22px; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (max-width: 359px) {
  .container { padding-inline: 12px; }
  .brand-text small { display: none; }
  .job-card { padding: 14px; border-radius: 18px; }
  .company-logo { width: 54px; font-size: 22px; }
  .job-title { font-size: 16px; }
  .detail-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
