/* ===============================================
   آیولب — پلتفرم کاریابی تخصصی آزمایشگاه
   Design System — Minimal / Lab-inspired
   =============================================== */

:root {
  --teal-900: #0f3d3e;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-600: #475569;
  --navy-500: #64748b;
  --navy-400: #94a3b8;
  --navy-200: #e2e8f0;
  --navy-100: #f1f5f9;
  --navy-50:  #f8fafc;
  --amber-500:#f59e0b;
  --amber-100:#fef3c7;
  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;
  --violet-500:#8b5cf6;
  --violet-100:#ede9fe;
  --sky-500:  #0ea5e9;
  --sky-100:  #e0f2fe;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 24px -6px rgba(15, 61, 62, .12);
  --shadow-lg: 0 16px 48px -12px rgba(15, 61, 62, .18);
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  direction: rtl;
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; border: none;
  transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--teal-700); border: 1.5px solid var(--teal-600); }
.btn-outline:hover { background: var(--teal-50); }
.btn-ghost { background: transparent; color: var(--navy-600); }
.btn-ghost:hover { color: var(--teal-700); background: var(--teal-50); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }
.btn-amber { background: var(--amber-500); color: var(--navy-900); }
.btn-amber:hover { filter: brightness(1.06); }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--rose-100); color: var(--rose-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-100);
}
.site-header .container { max-width: 1360px; }
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--navy-900); flex-shrink: 0; }
.logo .logo-mark { width: 34px; height: 34px; }
.logo span b { color: var(--teal-600); }
.main-nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.main-nav a {
  padding: 7px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: var(--navy-600); transition: all .15s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--teal-700); background: var(--teal-50); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-actions .btn { font-size: 12.8px; padding: 8px 13px; }
.menu-toggle { display: none; background: none; border: none; padding: 6px; }
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--navy-800); }

/* messages icon + dropdown */
.msg-wrap { position: relative; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-50); border: 1px solid var(--navy-100);
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.icon-btn:hover { background: var(--teal-50); border-color: var(--teal-100); }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--navy-600); }
.badge-count {
  position: absolute; top: -5px; left: -5px; min-width: 18px; height: 18px;
  background: var(--rose-500); color: #fff; border-radius: 99px;
  font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.msg-menu {
  position: absolute; top: calc(100% + 12px); left: 0; width: 320px;
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none; overflow: hidden; z-index: 150;
}
.msg-menu.open { display: block; }
.msg-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; font-weight: 700; font-size: 14px; color: var(--navy-900);
  border-bottom: 1px solid var(--navy-100); background: var(--navy-50);
}
.msg-head a { font-size: 12px; font-weight: 600; color: var(--teal-700); }
.msg-item { padding: 12px 18px; border-bottom: 1px solid var(--navy-100); }
.msg-item:last-child { border-bottom: none; }
.msg-item.unread { background: var(--teal-50); }
.msg-item b { display: block; font-size: 13px; color: var(--navy-900); }
.msg-item p { font-size: 12.5px; color: var(--navy-600); margin-top: 3px; line-height: 1.9; }
.msg-item span { font-size: 11px; color: var(--navy-400); }

/* user chip */
.user-chip { position: relative; }
.user-chip > button {
  display: flex; align-items: center; gap: 9px; background: var(--teal-50);
  border: 1px solid var(--teal-100); border-radius: 99px; padding: 5px 14px 5px 7px;
  font-weight: 600; font-size: 14px; color: var(--teal-800);
}
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--teal-600);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.user-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: none;
}
.user-menu.open { display: block; }
.user-menu a, .user-menu button {
  display: block; width: 100%; text-align: right; padding: 9px 13px;
  border-radius: 8px; font-size: 14px; color: var(--navy-800); background: none; border: none;
}
.user-menu a:hover, .user-menu button:hover { background: var(--navy-50); }
.user-menu .danger { color: var(--rose-500); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--teal-50) 0%, #fff 100%);
  padding: 64px 0 80px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.5; color: var(--navy-900); }
.hero h1 em { font-style: normal; color: var(--teal-600); position: relative; }
.hero .sub { margin-top: 18px; font-size: 17px; color: var(--navy-500); max-width: 480px; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 420px; filter: drop-shadow(0 24px 40px rgba(13,148,136,.18)); }

/* --- centered minimal hero (karboom-style) --- */
.hero-center { text-align: center; padding: 76px 0 96px; position: relative; }
.hero-center .hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.hero-center h1 { font-size: 42px; }
.hero-center .sub { margin: 18px auto 0; max-width: 560px; }
.hero-center .search-box { margin: 36px auto 0; max-width: 760px; }
.hero-center .hero-tags { justify-content: center; }
.hero-bg-art {
  position: absolute; bottom: -10px; pointer-events: none; z-index: 1;
  opacity: .5; width: 270px;
}
.hero-bg-art.right { right: 1.5%; }
.hero-bg-art.left { left: 1.5%; transform: scaleX(-1); opacity: .35; width: 220px; }

/* journey strip (start flow) */
.journey {
  margin-top: 38px; display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.journey .j-step {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--navy-200); border-radius: 99px;
  padding: 8px 18px 8px 20px; font-size: 13.5px; font-weight: 600; color: var(--navy-600);
}
.journey .j-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--teal-100);
  color: var(--teal-800); font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.journey .j-arrow { color: var(--teal-500); font-size: 18px; font-weight: 800; }
.journey .btn { margin-inline-start: 8px; }

/* search box */
.search-box {
  margin-top: 34px; background: #fff; border: 1px solid var(--navy-200);
  border-radius: 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: stretch; overflow: hidden; max-width: 640px;
}
.search-box .field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.search-box .field + .field { border-right: 1px solid var(--navy-100); }
.search-box .field svg { width: 19px; height: 19px; stroke: var(--navy-400); flex-shrink: 0; }
.search-box input, .search-box select {
  border: none; outline: none; width: 100%; padding: 15px 0; font-size: 14.5px; background: transparent; color: var(--navy-800);
}
.search-box .btn { border-radius: 0; padding: 0 28px; font-size: 15px; }
.hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--navy-500); }
.hero-tags a {
  background: #fff; border: 1px solid var(--navy-200); border-radius: 99px;
  padding: 4px 13px; font-size: 12.5px; color: var(--navy-600); transition: all .15s;
}
.hero-tags a:hover { border-color: var(--teal-500); color: var(--teal-700); }

/* stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -38px; position: relative; z-index: 2; }
.stat-card {
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 14px;
}
.stat-card .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card .ic svg { width: 22px; height: 22px; }
.stat-card b { font-size: 21px; color: var(--navy-900); display: block; line-height: 1.4; }
.stat-card span { font-size: 13px; color: var(--navy-500); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--navy-50); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 16px; }
.section-head h2 { font-size: 27px; font-weight: 800; color: var(--navy-900); }
.section-head p { color: var(--navy-500); margin-top: 6px; font-size: 15px; }
.section-head .more { color: var(--teal-700); font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.section-head .more:hover { gap: 9px; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; transition: all .2s;
}
.cat-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-card .ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.cat-card .ic svg { width: 26px; height: 26px; }
.cat-card b { display: block; font-size: 15.5px; color: var(--navy-900); }
.cat-card span { font-size: 12.5px; color: var(--navy-500); }

/* job cards */
.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.job-card {
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 20px 22px; transition: all .2s; position: relative; display: block;
}
.job-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.job-card .top { display: flex; gap: 14px; align-items: flex-start; }
.job-logo {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; color: #fff;
}
.job-card h3 { font-size: 16.5px; font-weight: 700; color: var(--navy-900); }
.job-card .org { font-size: 13.5px; color: var(--navy-500); margin-top: 2px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chip {
  font-size: 12px; padding: 3px 11px; border-radius: 99px;
  background: var(--navy-100); color: var(--navy-600); font-weight: 500;
}
.chip.teal { background: var(--teal-100); color: var(--teal-800); }
.chip.amber { background: var(--amber-100); color: #92400e; }
.chip.rose { background: var(--rose-100); color: #be123c; }
.chip.violet { background: var(--violet-100); color: #6d28d9; }
.chip.sky { background: var(--sky-100); color: #0369a1; }
.job-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--navy-100); }
.job-card .salary { font-weight: 700; font-size: 14px; color: var(--teal-700); }
.job-card .time { font-size: 12.5px; color: var(--navy-400); }
.badge-urgent {
  position: absolute; top: 16px; left: 16px; background: var(--rose-100); color: var(--rose-500);
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
}
.badge-featured {
  position: absolute; top: 16px; left: 16px; background: var(--amber-100); color: #92400e;
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
}

/* lab cards */
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lab-card {
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; transition: all .2s; display: block;
}
.lab-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.lab-card .job-logo { margin: 0 auto 14px; width: 62px; height: 62px; font-size: 23px; border-radius: 16px; }
.lab-card h3 { font-size: 16px; color: var(--navy-900); }
.lab-card p { font-size: 13px; color: var(--navy-500); margin-top: 4px; }
.lab-card .open-jobs { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--teal-700); background: var(--teal-50); border-radius: 99px; padding: 4px 14px; }

/* how it works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { text-align: center; padding: 10px 18px; }
.step-card .num {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--teal-600); color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -6px rgba(13,148,136,.5);
}
.step-card h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--navy-500); }

/* content cards (magazine/courses) */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.content-card {
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  overflow: hidden; transition: all .2s; display: block;
}
.content-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.content-card .thumb { height: 150px; display: flex; align-items: center; justify-content: center; }
.content-card .thumb svg { width: 56px; height: 56px; opacity: .9; }
.content-card .body { padding: 18px 20px 20px; }
.content-card .cat { font-size: 12px; font-weight: 700; color: var(--teal-700); }
.content-card h3 { font-size: 15.5px; color: var(--navy-900); margin-top: 6px; line-height: 1.7; }
.content-card .meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--navy-400); }
.content-card .price { font-weight: 700; color: var(--teal-700); font-size: 14px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
  border-radius: 22px; padding: 52px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; left: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.cta-band h2 { font-size: 26px; font-weight: 800; }
.cta-band p { margin-top: 8px; opacity: .85; font-size: 15px; max-width: 520px; }
.cta-band .btn { background: #fff; color: var(--teal-800); flex-shrink: 0; }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--navy-400); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: 13.5px; line-height: 2; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { font-size: 13.5px; transition: color .15s; }
.site-footer ul a:hover { color: var(--teal-500); }
.footer-bottom { border-top: 1px solid var(--navy-800); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: linear-gradient(180deg, var(--teal-50), #fff); padding: 44px 0 36px; border-bottom: 1px solid var(--navy-100); }
.page-head h1 { font-size: 28px; font-weight: 800; color: var(--navy-900); }
.page-head p { color: var(--navy-500); margin-top: 8px; font-size: 15px; }
.breadcrumb { font-size: 12.5px; color: var(--navy-400); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--teal-700); }

/* ---------- Listing layout (jobs page) ---------- */
.listing-layout { display: grid; grid-template-columns: 285px 1fr; gap: 26px; padding: 40px 0 72px; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 88px;
}
.filters h3 { font-size: 16px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.filters h3 button { background: none; border: none; color: var(--rose-500); font-size: 12.5px; font-weight: 600; }
.filter-group { margin-bottom: 20px; }
.filter-group > label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-800); margin-bottom: 9px; }
.filter-group select, .filter-group input[type="text"] {
  width: 100%; padding: 9px 12px; border: 1px solid var(--navy-200); border-radius: var(--radius-sm);
  font-size: 13.5px; outline: none; background: #fff;
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--teal-500); }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--navy-600); margin-bottom: 7px; cursor: pointer; }
.check-item input { accent-color: var(--teal-600); width: 16px; height: 16px; }
.listing-main .toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.listing-main .toolbar .count { font-size: 14px; color: var(--navy-500); }
.listing-main .toolbar .count b { color: var(--teal-700); }
.listing-main .toolbar select { padding: 8px 12px; border: 1px solid var(--navy-200); border-radius: var(--radius-sm); font-size: 13px; }
.job-list { display: flex; flex-direction: column; gap: 14px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--navy-400); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 18px; stroke: var(--navy-200); }
.empty-state b { display: block; font-size: 17px; color: var(--navy-600); margin-bottom: 6px; }

/* ---------- Job detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 330px; gap: 26px; padding: 40px 0 72px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 26px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 18px; margin-bottom: 14px; color: var(--navy-900); }
.panel h3 { font-size: 15.5px; margin: 18px 0 8px; color: var(--navy-900); }
.panel p, .panel li { font-size: 14.5px; color: var(--navy-600); }
.panel ul.bullets li { position: relative; padding-right: 20px; margin-bottom: 7px; }
.panel ul.bullets li::before {
  content: ""; position: absolute; right: 0; top: 11px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--teal-500); transform: rotate(45deg);
}
.side-card { background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; }
.side-card .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--navy-100); font-size: 13.5px; }
.side-card .row:last-of-type { border: none; }
.side-card .row span { color: var(--navy-500); }
.side-card .row b { color: var(--navy-800); font-weight: 600; }
.match-ring { display: flex; align-items: center; gap: 14px; background: var(--teal-50); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; }
.match-ring .ring { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: var(--teal-800); background: conic-gradient(var(--teal-500) calc(var(--p) * 1%), var(--teal-100) 0); position: relative; }
.match-ring .ring::before { content: ""; position: absolute; inset: 6px; background: var(--teal-50); border-radius: 50%; }
.match-ring .ring i { position: relative; font-style: normal; }
.match-ring small { font-size: 12.5px; color: var(--navy-500); display: block; }
.match-ring b { font-size: 13.5px; color: var(--navy-900); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-600));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px; color: #fff; text-align: center;
}
.auth-art svg { width: 250px; margin-bottom: 30px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.2)); }
.auth-art h2 { font-size: 24px; font-weight: 800; }
.auth-art p { margin-top: 10px; opacity: .85; max-width: 380px; font-size: 14.5px; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 24px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
.auth-form .sub { color: var(--navy-500); font-size: 14px; margin-bottom: 26px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--navy-800); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--navy-200); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; transition: border .15s; background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--teal-500); }
.form-field .hint { font-size: 12px; color: var(--navy-400); margin-top: 5px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.role-switch button {
  padding: 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--navy-200);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--navy-600); transition: all .15s;
}
.role-switch button.active { border-color: var(--teal-600); background: var(--teal-50); color: var(--teal-800); }
.auth-form .alt-link { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--navy-500); }
.auth-form .alt-link a { color: var(--teal-700); font-weight: 700; }
.demo-note {
  background: var(--amber-100); border: 1px solid #fde68a; color: #92400e;
  font-size: 12.5px; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 20px; line-height: 1.9;
}

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 32px 0 64px; align-items: start; }
.dash-side { background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 18px; position: sticky; top: 88px; }
.dash-profile { text-align: center; padding: 14px 8px 18px; border-bottom: 1px solid var(--navy-100); margin-bottom: 12px; }
.dash-profile .avatar {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--teal-600); color: #fff; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.dash-profile b { display: block; font-size: 16px; color: var(--navy-900); }
.dash-profile span { font-size: 12.5px; color: var(--navy-500); }
.otw-toggle {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 99px;
  padding: 5px 14px; font-size: 12.5px; font-weight: 700; color: var(--teal-800); cursor: pointer;
}
.otw-toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100); }
.otw-toggle.off { background: var(--navy-100); border-color: var(--navy-200); color: var(--navy-500); }
.otw-toggle.off .dot { background: var(--navy-400); box-shadow: none; }
.dash-nav a, .dash-nav button {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 13px;
  border-radius: var(--radius-sm); font-size: 14px; color: var(--navy-600);
  background: none; border: none; text-align: right; transition: all .15s;
}
.dash-nav a svg, .dash-nav button svg { width: 19px; height: 19px; stroke: currentColor; flex-shrink: 0; }
.dash-nav a:hover, .dash-nav a.active { background: var(--teal-50); color: var(--teal-800); font-weight: 600; }
.dash-nav .danger { color: var(--rose-500); }
.dash-nav .danger:hover { background: var(--rose-100); }

.dash-main > section { display: none; }
.dash-main > section.active { display: block; }
.dash-title { font-size: 21px; font-weight: 800; color: var(--navy-900); margin-bottom: 18px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.dash-stat { background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 18px 20px; }
.dash-stat b { font-size: 24px; color: var(--navy-900); display: block; }
.dash-stat span { font-size: 12.5px; color: var(--navy-500); }
.dash-stat .trend { font-size: 11.5px; color: var(--teal-600); font-weight: 700; }

.table-wrap { background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.data th { text-align: right; padding: 13px 18px; background: var(--navy-50); color: var(--navy-500); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--navy-100); }
table.data td { padding: 13px 18px; border-bottom: 1px solid var(--navy-100); color: var(--navy-800); }
table.data tr:last-child td { border-bottom: none; }
.status { font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 99px; white-space: nowrap; }
.status.review { background: var(--sky-100); color: #0369a1; }
.status.interview { background: var(--violet-100); color: #6d28d9; }
.status.accepted { background: var(--teal-100); color: var(--teal-800); }
.status.rejected { background: var(--rose-100); color: #be123c; }
.status.active { background: var(--teal-100); color: var(--teal-800); }
.status.expired { background: var(--navy-100); color: var(--navy-500); }
.status.pending { background: var(--amber-100); color: #92400e; }

/* progress bar */
.progress-card { background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.progress-card .bar { height: 9px; background: rgba(255,255,255,.25); border-radius: 99px; margin: 14px 0 8px; overflow: hidden; }
.progress-card .bar i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.progress-card small { opacity: .9; font-size: 12.5px; }

/* skill tags editor */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list .tag {
  background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800);
  font-size: 13px; padding: 5px 14px; border-radius: 99px; display: flex; align-items: center; gap: 7px;
}
.tag-list .tag button { background: none; border: none; color: var(--rose-500); font-size: 15px; line-height: 1; }

/* form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Magazine / community ---------- */
.feed-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; padding: 40px 0 72px; align-items: start; }
.post-card { background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.post-card .author { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-card .author .avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.post-card .author b { font-size: 14.5px; color: var(--navy-900); display: block; }
.post-card .author span { font-size: 12px; color: var(--navy-400); }
.post-card .body p { font-size: 14.5px; color: var(--navy-600); }
.post-card .actions { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--navy-100); }
.post-card .actions button {
  background: none; border: none; display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--navy-500); transition: color .15s;
}
.post-card .actions button:hover { color: var(--teal-700); }
.post-card .actions button svg { width: 17px; height: 17px; stroke: currentColor; }
.post-card .actions button.liked { color: var(--rose-500); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { background: #fff; border: 1.5px solid var(--navy-100); border-radius: var(--radius); padding: 30px 26px; text-align: center; position: relative; transition: all .2s; }
.price-card.featured { border-color: var(--teal-600); box-shadow: var(--shadow-lg); }
.price-card .plan-badge { position: absolute; top: -13px; right: 50%; transform: translateX(50%); background: var(--teal-600); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 16px; border-radius: 99px; }
.price-card h3 { font-size: 17px; color: var(--navy-900); }
.price-card .price { font-size: 30px; font-weight: 800; color: var(--teal-700); margin: 14px 0 2px; }
.price-card .per { font-size: 12.5px; color: var(--navy-400); margin-bottom: 20px; }
.price-card ul { text-align: right; margin-bottom: 24px; }
.price-card ul li { font-size: 13.5px; color: var(--navy-600); padding: 7px 24px 7px 0; position: relative; }
.price-card ul li::before { content: "✓"; position: absolute; right: 0; color: var(--teal-600); font-weight: 800; }

/* toast */
.toast {
  position: fixed; bottom: 26px; right: 50%; transform: translateX(50%) translateY(80px);
  background: var(--navy-900); color: #fff; padding: 13px 26px; border-radius: 99px;
  font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: all .3s; z-index: 999; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(50%) translateY(0); }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px);
}
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 18px; max-width: 460px; width: 100%; padding: 30px; position: relative; max-height: 88vh; overflow-y: auto; }
.modal .close { position: absolute; top: 16px; left: 16px; background: var(--navy-100); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; color: var(--navy-600); }
.modal h3 { font-size: 19px; color: var(--navy-900); margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .main-nav {
    display: none; position: absolute; top: 68px; right: 0; left: 0;
    background: #fff; flex-direction: column; padding: 14px; border-bottom: 1px solid var(--navy-100); box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 14.5px; padding: 10px 14px; }
  .menu-toggle { display: block; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-inline: auto; }
  .search-box { margin-inline: auto; }
  .hero-tags { justify-content: center; }
  .hero-art { display: none; }
  .hero-bg-art { display: none; }
  .hero-center h1 { font-size: 32px; }
  .cat-grid, .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .lab-grid, .content-grid, .steps-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-layout, .feed-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}
@media (max-width: 720px) {
  .header-actions .btn-outline { display: none; }
  .hero h1 { font-size: 29px; }
  .hero-center h1 { font-size: 27px; }
  .journey .j-arrow { display: none; }
  .journey { flex-direction: column; }
  .search-box { flex-direction: column; }
  .search-box .field + .field { border-right: none; border-top: 1px solid var(--navy-100); }
  .search-box .btn { padding: 14px; }
  .job-grid { grid-template-columns: 1fr; }
  .cat-grid, .lab-grid, .content-grid, .steps-grid, .pricing-grid, .dash-cards, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .section { padding: 52px 0; }
}
