/* =========================================================
   KhonKaenJobs — Design system
   พื้นขาว · เหลือง #FFC928 เป็นสีหลัก (ปุ่มหลัก / สถานะที่เลือก / จุดเน้น) · ตัวอักษรกรมท่า #142B4A · พื้นเทาอ่อน #F5F7FA
   ชื่อ token เดิม (--gold-*, --ink-*) คงไว้ — หน้า PHP / resume.css ที่อ้าง token เดิมได้สีใหม่อัตโนมัติ
   ========================================================= */
:root {
  /* เหลือง (แบรนด์) */
  --gold-50: #FFFBEB;
  --gold-100: #FFF4CC;
  --gold-200: #FFE899;
  --gold-300: #FFDB66;
  --gold-400: #FFD23F;
  --gold-500: #FFC928;
  --gold-600: #F2B900;
  --gold-700: #B88900;
  --gold-800: #7A5B00;
  /* กรมท่า / ตัวอักษร */
  --ink-900: #142B4A;
  --ink-800: #253247;
  --ink-700: #3D4B5F;
  --ink-500: #697586;
  --ink-400: #98A2B3;
  /* พื้น / เส้น */
  --line: #E5EAF0;
  --line-2: #F1F4F8;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --surface: #FFFFFF;
  /* สถานะ */
  --green: #16856B;
  --green-bg: #E8F6F1;
  --red: #DC4545;
  --red-bg: #FDEEEE;
  --warn: #D97706;
  --warn-bg: #FFF6E5;
  --blue: #2563EB;
  --blue-bg: #EDF3FF;
  --purple: #7C3AED;
  --purple-bg: #F3EEFF;
  /* รูปทรง */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 43, 74, .05);
  --shadow: 0 4px 18px rgba(20, 43, 74, .06);
  --shadow-lg: 0 14px 36px rgba(20, 43, 74, .10);
  --ring: 0 0 0 4px rgba(255, 201, 40, .28);
  /* ตัวอักษร */
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: var(--font);
  /* ระยะ */
  --header-h: 72px;
  --gap: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink-800); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--ink-900); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.35; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-200); color: var(--ink-900); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 880px; }
.muted { color: var(--ink-500); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 1.25rem; }
.hide { display: none !important; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.pre { white-space: pre-line; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; color: #fff; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.hl { color: var(--gold-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1.2 var(--font); padding: .72em 1.25em; border-radius: 10px; min-height: 44px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--gold-500); color: var(--ink-900); }
.btn-primary:hover { background: var(--gold-600); color: var(--ink-900); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: #0E2038; color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink-900); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--ink-900); background: var(--gold-50); }
.btn-ghost { background: transparent; color: var(--ink-800); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink-900); }
.btn-lg { font-size: 1rem; padding: .85em 1.6em; min-height: 50px; }
.btn-sm { font-size: .85rem; padding: .45em .9em; min-height: 36px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-fb { background: #1877F2; color: #fff; }
.btn-fb:hover { background: #166FE5; color: #fff; }
.btn-google { background: #fff; color: var(--ink-800); border-color: var(--line); }
.btn-google:hover { border-color: #C9D1DC; color: var(--ink-900); }
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { background: #05B34C; color: #fff; }
.btn-approve { background: var(--green-bg); color: var(--green); }
.btn-approve:hover { background: var(--green); color: #fff; }
.btn-reject { background: var(--red-bg); color: var(--red); }
.btn-reject:hover { background: var(--red); color: #fff; }
.btn-done { background: var(--green-bg); color: var(--green); border-color: #BDE5D7; }
.btn-done:hover { color: var(--green); border-color: var(--green); }
.btn.is-active { background: var(--gold-100); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-row.center { justify-content: center; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.05rem; cursor: pointer; color: var(--ink-700); display: inline-grid; place-items: center; }
.icon-btn:hover { border-color: var(--gold-500); color: var(--ink-900); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-900); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 3px; }
.link-btn:disabled { color: var(--ink-400); cursor: not-allowed; text-decoration: none; }
.reveal { color: var(--ink-900); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); flex-shrink: 0; }
.brand:hover { color: var(--ink-900); }
.brand__mark { width: 38px; height: 38px; }
.brand__text { font: 700 1.2rem/1 var(--font-head); letter-spacing: -.01em; }
.brand__text b { color: var(--gold-600); font-weight: 700; }
.brand__tag { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--gold-100); color: var(--gold-800); font: 600 .7rem/1.2 var(--font); vertical-align: middle; }
.brand--light, .brand--light:hover { color: var(--ink-900); }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.main-nav > a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; color: var(--ink-700); font-weight: 500; font-size: .95rem; white-space: nowrap; border-radius: 8px; }
.main-nav > a:hover { color: var(--ink-900); background: var(--bg-soft); }
.main-nav > a.active { color: var(--ink-900); font-weight: 600; }
.main-nav > a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold-500); }
.main-nav > a.main-nav__emp { margin-left: auto; }
.main-nav__mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-login { font-weight: 500; color: var(--ink-800); padding: 8px 10px; display: inline-flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-500); color: var(--ink-900); display: grid; place-items: center; font: 700 .85rem var(--font-head); }
.emp-topbar { background: var(--ink-900); color: #DCE3EC; font-size: .84rem; }
.emp-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.emp-topbar a { color: #DCE3EC; }
.emp-topbar a:hover { color: var(--gold-400); }
.emp-topbar a.line { color: #4CD964; }
.emp-topbar__contact { display: flex; gap: 18px; flex-wrap: wrap; }

/* user menu */
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.user-menu summary:hover { border-color: var(--gold-500); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu__name { font-size: .88rem; font-weight: 600; color: var(--ink-900); line-height: 1.2; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__name small { display: block; font-size: .74rem; color: var(--ink-500); font-weight: 400; }
.user-menu .avatar { width: 32px; height: 32px; font-size: .85rem; }
.user-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.user-menu__panel a, .user-menu__panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 0; background: none; font: inherit; font-size: .93rem; color: var(--ink-700); cursor: pointer; text-align: left; }
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--bg-soft); color: var(--ink-900); }
.user-menu__panel i { color: var(--ink-500); }
.user-menu__panel form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }

/* ---------- Sections / headings ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--ink-500); }
.section-head .link { font-weight: 600; font-size: .92rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.section-head .link i { transition: transform .15s; }
.section-head .link:hover i { transform: translateX(3px); }
.section-head.center { justify-content: center; text-align: center; }
.kicker { display: inline-block; font: 600 .78rem var(--font); color: var(--gold-700); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.h2-sm { font-size: 1.3rem; margin: 0; }

/* page head (หน้ารายการ / หน้าข้อมูล) */
.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFCF2 0%, #FFFFFF 100%); border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.page-head::after { content: ""; position: absolute; right: -90px; top: -110px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 40, .26), rgba(255, 201, 40, 0) 68%); pointer-events: none; }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { margin: 10px 0 6px; }
.page-head p { margin: 0; color: var(--ink-500); max-width: 760px; }
.page-head--slim { padding: 14px 0; background: #fff; }
.page-head--slim::after { display: none; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--ink-500); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-400); }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--ink-900); }

/* ---------- Hero (หน้าแรก) ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 40px; background: linear-gradient(180deg, #FFFBEF 0%, #FFFFFF 92%); }
.hero::before { content: ""; position: absolute; right: -140px; top: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 40, .30), rgba(255, 201, 40, 0) 66%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "text art" "search search"; gap: 8px 40px; align-items: center; }
.hero__inner > div:first-child { grid-area: text; }
.hero__search { grid-area: search; position: relative; z-index: 2; max-width: 980px; }
.hero__art { grid-area: art; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--gold-200); color: var(--ink-800); font-size: .85rem; font-weight: 500; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.hero__eyebrow i { color: var(--gold-600); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--gold-600); }
.hero__lead { font-size: 1.08rem; color: var(--ink-500); max-width: 560px; margin-bottom: 8px; }
.hero__lead b { color: var(--ink-900); }
.hero__art { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero__art img { display: block; width: 100%; height: auto; }
.hero__chip { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: .82rem; color: var(--ink-500); line-height: 1.3; }
.hero__chip b { display: block; font-size: 1.1rem; color: var(--ink-900); }
.hero__chip i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-800); font-size: 1.05rem; }
.hero__chip--a { left: -8px; top: 18%; }
.hero__chip--b { right: -6px; bottom: 14%; }

/* search box (หน้าแรก + หน้ารายการ) */
.search-box { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.search-box .field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; }
.search-box .field + .field { border-left: 1px solid var(--line); }
.search-box .field i { color: var(--ink-400); font-size: 1.05rem; }
.search-box input, .search-box select { border: 0; outline: 0; background: transparent; width: 100%; font: 400 .98rem var(--font); color: var(--ink-900); padding: 12px 0; min-width: 0; }
.search-box input::placeholder { color: var(--ink-400); }
.search-box select { cursor: pointer; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23697586' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 2px center; padding-right: 20px; }
.search-box .field:focus-within i { color: var(--gold-600); }
.search-box .btn { border-radius: 10px; padding: 0 28px; margin-left: 6px; }
.search-inline { margin-top: 20px; box-shadow: var(--shadow); }
.popular:not(.price) { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; }
.popular span { color: var(--ink-500); font-weight: 500; margin-right: 2px; }
.popular a { padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ink-700); border: 1px solid var(--line); }
.popular a:hover { border-color: var(--gold-500); color: var(--ink-900); background: var(--gold-50); }

/* ทำไมต้องใช้เรา / ขั้นตอน */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why { display: grid; gap: 6px; align-content: start; }
.why__ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-800); font-size: 1.35rem; margin-bottom: 8px; }
.why h3 { margin: 0; font-size: 1.02rem; }
.why p { margin: 0; color: var(--ink-500); font-size: .92rem; }

/* work type */
.type-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink-900); transition: border-color .15s, box-shadow .15s; }
.type-card:hover { border-color: var(--gold-500); box-shadow: var(--shadow); color: var(--ink-900); }
.type-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: var(--gold-100); color: var(--gold-800); flex-shrink: 0; }
.type-card b { display: block; font-weight: 600; }
.type-card span { font-size: .85rem; color: var(--ink-500); }

/* ---------- Job cards ---------- */
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.job-list { display: grid; gap: 14px; }
.job-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 12px; transition: border-color .15s, box-shadow .15s; }
.job-card:hover { border-color: var(--gold-400); box-shadow: var(--shadow); }
.job-card.is-boost { border-color: var(--gold-300); background: linear-gradient(180deg, #FFFCF0, #fff 55%); }
.job-card .ribbon { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--gold-500); color: var(--ink-900); }
.job-card__head { display: flex; gap: 14px; align-items: flex-start; }
.job-card.is-boost .job-card__head { padding-right: 76px; }
.job-card__title { min-width: 0; }
.job-card__title h3 { font-size: 1.02rem; margin: 0 0 2px; line-height: 1.45; }
.job-card__title h3 a { color: var(--ink-900); }
.job-card__title h3 a:hover { color: var(--gold-700); }
.job-card__title .company { margin: 0; color: var(--ink-500); font-size: .9rem; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.verified { color: var(--blue); }
.job-card__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-500); }
.job-card__meta i { color: var(--ink-400); }
.job-card__meta .salary { color: var(--ink-800); font-weight: 600; }
.job-card__meta .salary i { color: var(--gold-600); }
.job-card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.job-card__foot .time { margin-left: auto; font-size: .8rem; color: var(--ink-400); }
/* แบบตาราง (grid) — โลโก้ด้านบน */
.job-card--grid .job-card__head, .job-card--grid.is-boost .job-card__head { flex-direction: column; gap: 12px; padding-right: 0; }
.job-card--grid .job-card__meta { flex-direction: column; gap: 4px; }
.job-card--grid .job-card__foot .time { margin-left: auto; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-700); border: 1px solid var(--line); line-height: 1.5; }
.tag--full-time { background: var(--gold-50); color: var(--gold-800); border-color: var(--gold-200); }
.tag--part-time { background: var(--blue-bg); color: var(--blue); border-color: #D6E3FF; }
.tag--internship { background: var(--purple-bg); color: var(--purple); border-color: #E3D8FF; }
.tag--freelance { background: #E8F7F8; color: #0E7490; border-color: #C9ECEF; }
.tag--urgent { background: var(--red-bg); color: var(--red); border-color: #F8D2D2; }
.tag--gold { background: var(--gold-100); color: var(--gold-800); border-color: var(--gold-200); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.soon { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-500); margin-left: 6px; vertical-align: middle; }

/* โลโก้บริษัท */
.logo { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 12px; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); font: 700 1.2rem var(--font-head); border: 1px solid var(--line); }
.logo-sm { width: 36px; height: 36px; font-size: .95rem; border-radius: 10px; }
.logo-md { width: 56px; height: 56px; }
.logo-lg { width: 96px; height: 96px; font-size: 2.3rem; border-radius: 18px; border: 4px solid #fff; box-shadow: var(--shadow); }
.logo--img { object-fit: contain; background: #fff; padding: 3px; }
.logo-img { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }

/* ---------- หมวดงาน ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 12px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); color: var(--ink-900); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: var(--gold-500); box-shadow: var(--shadow); color: var(--ink-900); transform: translateY(-2px); }
.cat-card .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-100); color: var(--gold-800); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; transition: background .15s; }
.cat-card:hover .ic { background: var(--gold-500); color: var(--ink-900); }
.cat-card b { display: block; font-weight: 600; font-size: .9rem; line-height: 1.4; }
.cat-card span { font-size: .8rem; color: var(--ink-500); }

/* ---------- อำเภอ ---------- */
.district-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.district-feature { background: var(--gold-50); border: 1px solid var(--gold-200); color: var(--ink-800); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.district-feature h3 { color: var(--ink-900); font-size: 1.25rem; }
.district-feature p { color: var(--ink-500); }
.district-feature .big { font: 700 3rem/1 var(--font-head); color: var(--gold-600); margin: 10px 0 4px; }
.district-feature svg { position: absolute; right: -24px; bottom: -24px; width: 170px; opacity: .25; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-800); font-size: .9rem; transition: all .15s; }
.chip:hover, .chip.active { border-color: var(--gold-500); background: var(--gold-50); color: var(--ink-900); }
.chip small { color: var(--ink-400); font-size: .78rem; }

/* ---------- บริษัท ---------- */
.company-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.company-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px; text-align: center; display: grid; justify-items: center; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.company-card:hover { border-color: var(--gold-400); box-shadow: var(--shadow); }
.company-card h3 { margin: 6px 0 0; font-size: .98rem; }
.company-card h3 a { color: var(--ink-900); }
.company-card p { margin: 0; font-size: .84rem; color: var(--ink-500); }
.company-card .tag { margin-top: 6px; }

/* ---------- ขั้นตอน ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 22px; font: 700 2.4rem/1 var(--font-head); color: var(--gold-100); }
.step .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-100); display: grid; place-items: center; font-size: 1.35rem; color: var(--gold-800); margin-bottom: 14px; }
.step p { color: var(--ink-500); margin: 0; }

/* ---------- แถบชวนสมัคร (CTA) ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(110deg, #FFF3C7 0%, #FFF8E1 60%, #FFFCF2 100%); border: 1px solid var(--gold-200); border-radius: 20px; padding: 32px 40px; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0 0 16px; color: var(--ink-500); }
.cta-band__art { width: 220px; margin: -18px 0 -36px; }
.cta-band--slim { grid-template-columns: auto 1fr auto; padding: 20px 26px; border-radius: 16px; }
.cta-band--slim h2 { font-size: 1.08rem; }
.cta-band--slim p { margin: 0; }
.cta-band__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--gold-700); font-size: 1.35rem; box-shadow: var(--shadow-sm); }

/* employer band (หน้าแรก) */
.employer-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; color: var(--ink-800); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.employer-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold-500); }
.employer-band h2 { color: var(--ink-900); }
.employer-band h2 span { color: var(--gold-600); }
.employer-band ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.employer-band li i { color: var(--green); margin-right: 8px; }
.employer-band .flow { display: grid; gap: 10px; }
.flow-item { display: flex; gap: 14px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.flow-item .n { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); color: var(--ink-900); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.flow-item b { color: var(--ink-900); display: block; font-weight: 600; }
.flow-item span { font-size: .85rem; color: var(--ink-500); }

/* ---------- SEO content + FAQ ---------- */
.seo-content { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; }
.prose { color: var(--ink-700); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold-400); text-underline-offset: 3px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; margin-bottom: 10px; }
.faq details[open] { border-color: var(--gold-400); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--ink-900); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.3rem/1 var(--font-head); color: var(--gold-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-500); padding-bottom: 16px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #fff; border-top: 1px solid var(--line); color: var(--ink-500); margin-top: 0; }
.site-footer::after { content: ""; position: absolute; right: 0; bottom: 0; width: 360px; height: 190px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 190'%3E%3Cpath d='M360 0C312 70 236 92 168 118 95 146 52 168 18 190H360Z' fill='%23FFC928'/%3E%3Cpath d='M360 52C318 104 262 124 210 146 168 164 140 176 112 190H360Z' fill='%23FFDB66' opacity='.7'/%3E%3C/svg%3E") no-repeat right bottom / contain; }
.footer-cta-wrap { padding-top: 8px; padding-bottom: 48px; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(110deg, #FFF3C7, #FFFAE8); border: 1px solid var(--gold-200); border-radius: 20px; padding: 28px 36px; }
.footer-cta h2 { margin: 0 0 4px; font-size: 1.35rem; }
.footer-cta p { margin: 0; color: var(--ink-500); }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.footer-grid h3 { color: var(--ink-900); font-size: .95rem; margin-bottom: 12px; }
.footer-grid h3.mt { margin-top: 18px; }
.footer-grid nav a { display: block; color: var(--ink-500); font-size: .9rem; padding: 4px 0; }
.footer-grid nav a:hover { color: var(--ink-900); }
.footer-about p { margin: 14px 0 16px; font-size: .9rem; max-width: 340px; }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-900); border: 1px solid var(--line); }
.social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-900); }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 18px 0 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink-500); }
.footer-bottom a:hover { color: var(--ink-900); }

/* ---------- Listing page ---------- */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 6px; }
.filters h2 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.filters h2 a { font: 500 .82rem var(--font); color: var(--ink-500); }
.filters h2 a:hover { color: var(--ink-900); }
.filter-group { border-top: 1px solid var(--line); padding: 14px 0; }
.filter-group h3 { font-size: .9rem; margin-bottom: 6px; }
.filter-links { display: grid; gap: 1px; }
.filter-links a { display: flex; align-items: center; gap: 10px; padding: 5px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink-700); font-size: .9rem; line-height: 1.45; }
.filter-links a::before { content: ""; flex: 0 0 18px; height: 18px; border-radius: 5px; border: 1.5px solid #C5CEDA; background: #fff; transition: all .15s; }
.filter-links a:hover { background: var(--bg-soft); color: var(--ink-900); }
.filter-links a:hover::before { border-color: var(--gold-500); }
.filter-links a.active { color: var(--ink-900); font-weight: 600; }
.filter-links a.active::before { border-color: var(--gold-500); background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23142B4A' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.filter-links a small { margin-left: auto; color: var(--ink-400); font-weight: 400; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .92rem; color: var(--ink-700); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-500); flex-shrink: 0; }
.check small { margin-left: auto; color: var(--ink-400); }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.result-bar p { margin: 0; color: var(--ink-500); }
.result-bar b { color: var(--ink-900); }
.sort-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; }
.sort-links a { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-700); }
.sort-links a:hover, .sort-links a.active { border-color: var(--gold-500); background: var(--gold-50); color: var(--ink-900); font-weight: 600; }
.select { font: 400 .92rem var(--font); padding: 9px 34px 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23697586' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; color: var(--ink-800); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-700); font-weight: 500; }
.pagination a:hover { border-color: var(--gold-500); color: var(--ink-900); }
.pagination .current { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-900); font-weight: 700; }
.empty { text-align: center; background: #fff; border: 1px dashed #CDD5DF; border-radius: var(--radius-lg); padding: 48px 20px; }
.empty > i { font-size: 2.2rem; color: var(--gold-600); display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--gold-50); }
.empty h2 { margin-top: 12px; }
.alert-box { display: flex; gap: 14px; align-items: center; background: linear-gradient(110deg, #FFF6D6, #FFFBEC); border: 1px solid var(--gold-200); border-radius: var(--radius-lg); padding: 18px 22px; margin-top: 24px; }
.alert-box > i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 1.25rem; color: var(--gold-700); }
.alert-box p { margin: 0; }
.alert-box .btn { margin-left: auto; }
.filter-toggle { display: none; }

/* ---------- Card ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; }
.card h2 i { color: var(--gold-600); }

/* ---------- Job detail ---------- */
.job-cover { height: 150px; background: linear-gradient(110deg, #FFE899 0%, #FFF4CC 45%, #F5F7FA 100%); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.job-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 120%, rgba(255, 201, 40, .55), transparent 45%), radial-gradient(circle at 88% -30%, rgba(255, 255, 255, .9), transparent 40%); }
.job-cover .container { position: relative; padding-top: 16px; }
.job-cover .breadcrumb a, .job-cover .breadcrumb ol { color: var(--ink-700); }
.job-head { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; margin-top: -70px; box-shadow: var(--shadow); }
.job-head h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin: 6px 0 4px; }
.job-head .company { margin: 0 0 8px; font-weight: 500; }
.job-head .company a { color: var(--ink-700); }
.job-head__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-500); font-size: .92rem; }
.job-head__meta i { color: var(--ink-400); }
.job-head__meta .salary { color: var(--ink-900); font-weight: 600; }
.job-head__meta .salary i { color: var(--gold-600); }
.job-head__actions { display: grid; gap: 8px; min-width: 190px; }
.job-head__actions form { margin: 0; }
.job-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 26px 0 0; overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--header-h); z-index: 5; background: #fff; }
.job-tabs::-webkit-scrollbar { display: none; }
.job-tabs a { padding: 12px 16px; color: var(--ink-500); font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.job-tabs a:hover, .job-tabs a.active { color: var(--ink-900); border-bottom-color: var(--gold-500); }
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 24px 0 64px; align-items: start; }
/* คอลัมน์ grid ไม่ขยายตามคำยาว ๆ ที่ตัดไม่ได้ (URL / ข้อความต่อกันยาวในประกาศ) */
.detail > *, .listing > *, .two-col > *, .checkout > *, .seo-content > *, .district-wrap > * { min-width: 0; }
.list-check li, .detail-section p, .prose p, .applicant__note, .welfare span { overflow-wrap: anywhere; }
.detail-section { padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 60px); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.detail-section h2 i { color: var(--gold-600); }
.job-hero { display: flex; gap: 18px; align-items: flex-start; }
.job-hero h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: 6px; }
.job-hero .company { font-size: 1rem; margin: 0 0 10px; }
.job-hero .company a { color: var(--ink-700); font-weight: 500; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 4px; }
.info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.info span { display: block; font-size: .8rem; color: var(--ink-500); }
.info b { font-weight: 600; color: var(--ink-900); font-size: .98rem; }
.info.salary b { color: var(--ink-900); }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-check li { position: relative; padding-left: 26px; }
.list-check li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.welfare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; } /* ยืดเต็มแถวตามจำนวนรายการ (1 รายการ = เต็มความกว้าง) */
.welfare span { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; line-height: 1.45; }
.welfare i { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-800); font-size: 1.15rem; }
.apply-card { position: relative; }
.apply-card .salary-big { font: 700 1.4rem/1.3 var(--font-head); color: var(--ink-900); margin: 2px 0 16px; }
.apply-card .btn { margin-bottom: 10px; }
.side-card + .side-card { margin-top: 18px; }
.side-card h2 { font-size: 1.02rem; margin-bottom: 14px; }
.company-box { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.company-box b { display: block; color: var(--ink-900); line-height: 1.4; }
.company-box p { margin: 2px 0 0; font-size: .85rem; color: var(--ink-500); }
.mini-jobs { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-jobs li + li { border-top: 1px solid var(--line); }
.mini-jobs a { display: flex; gap: 12px; align-items: center; padding: 12px 0; color: var(--ink-800); }
.mini-jobs a:hover b { color: var(--gold-700); }
.mini-jobs b { display: block; color: var(--ink-900); font-size: .93rem; line-height: 1.4; }
.mini-jobs small { display: block; color: var(--ink-500); font-size: .8rem; }
.mini-jobs .arrow { margin-left: auto; color: var(--ink-400); }
.contact-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.contact-list i { color: var(--gold-600); font-size: 1.05rem; margin-top: 2px; }
.contact-list span { display: block; color: var(--ink-500); font-size: .8rem; }
.share { display: flex; gap: 8px; margin-top: 16px; }
.share a { flex: 1; text-align: center; padding: 9px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-700); }
.share a:hover { background: var(--gold-50); border-color: var(--gold-400); color: var(--ink-900); }
[data-copy].copied { color: var(--green); }
.keywords a { display: inline-block; margin: 0 6px 8px 0; font-size: .85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-700); background: #fff; }
.keywords a:hover { border-color: var(--gold-500); background: var(--gold-50); color: var(--ink-900); }
.warn-note { position: relative; font-size: .85rem; color: var(--ink-500); background: var(--bg-soft); border-radius: 10px; padding: 12px 14px 12px 38px; margin-top: 18px; } /* ข้อความ + ลิงก์ไหลต่อกันเป็นย่อหน้า (ไม่แยกคอลัมน์) */
.warn-note i { position: absolute; left: 14px; top: 13px; color: var(--green); }
.mobile-apply { display: none; }
.apply-form { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 10px; }
.apply-form > summary { list-style: none; cursor: pointer; margin: 0; border-radius: var(--radius); }
.apply-form > summary::-webkit-details-marker { display: none; }
.apply-form[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
.apply-form form { padding: 16px; display: grid; gap: 12px; }
.apply-form textarea { width: 100%; min-height: 110px; }

/* ---------- Company page ---------- */
.company-cover { height: 170px; background: linear-gradient(110deg, #FFE899, #FFF4CC 50%, #F5F7FA); position: relative; overflow: hidden; }
.company-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .06; }
.company-head { display: flex; gap: 22px; align-items: flex-end; margin-top: -48px; position: relative; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.company-head h1 { margin: 0 0 4px; font-size: 1.65rem; }
.company-head .actions { margin-left: auto; display: flex; gap: 8px; }
.kv { display: grid; gap: 12px; }
.kv div { display: flex; gap: 12px; font-size: .93rem; }
.kv i { color: var(--gold-600); }
.map-ph { height: 200px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink-500); border: 1px solid var(--line); margin-top: 16px; }

/* ---------- Auth ---------- */
.layout-auth { background: var(--bg-soft); }
.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth__side { position: relative; overflow: hidden; background: linear-gradient(160deg, #FFE27A 0%, #FFC928 60%, #F5BC12 100%); padding: 56px 48px 40px; display: flex; flex-direction: column; gap: 28px; }
.auth__side::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.auth__side > * { position: relative; z-index: 1; }
.auth__side .brand { margin-bottom: 4px; }
.auth__side h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.25; max-width: 460px; margin: 0; }
.auth__side p { color: var(--ink-800); max-width: 420px; margin: 0; }
.auth__side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth__side li { display: flex; gap: 12px; align-items: center; font-weight: 500; color: var(--ink-900); }
.auth__side li i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .65); display: grid; place-items: center; }
.auth__art { margin-top: auto; width: 100%; max-width: 360px; align-self: center; }
.auth__side .quote { background: rgba(255, 255, 255, .7); border-radius: 16px; padding: 18px; font-size: .95rem; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth__box { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px; box-shadow: var(--shadow); }
.auth__box.wide { max-width: 680px; }
.auth__box h1 { font-size: 1.65rem; margin-bottom: 4px; }
.auth__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--gold-800); background: var(--gold-50); border: 1px solid var(--gold-200); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.auth__switch { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-500); text-align: center; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 20px 0; }
.tabs button, .tabs a { border: 0; background: transparent; padding: 10px; border-radius: 9px; font: 500 .95rem var(--font); color: var(--ink-500); cursor: pointer; text-align: center; }
.tabs .active { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); font-weight: 600; }
.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-400); font-size: .85rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.recaptcha-note { font-size: .78rem; color: var(--ink-400); margin: 14px 0 0; text-align: center; }
.account-wrap { max-width: 920px; margin: 0 auto; padding: 32px 16px 64px; }
.dev-note { border: 1.5px dashed var(--gold-400); background: var(--gold-50); border-radius: 12px; padding: 12px 14px; font-size: .85rem; color: var(--ink-700); margin-top: 16px; }
.otp-form .otp-inputs { margin: 18px 0; }
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 22px 0; }
.otp-inputs input { width: 52px; height: 60px; text-align: center; font: 600 1.5rem var(--font-head); color: var(--ink-900); border: 1px solid #D3DAE3; border-radius: 12px; }
.otp-inputs input:focus { outline: 0; border-color: var(--gold-500); box-shadow: var(--ring); }
.linked { display: flex; flex-wrap: wrap; gap: 8px; }
.linked span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; background: var(--bg-soft); color: var(--ink-500); }
.linked span.on { background: var(--green-bg); color: var(--green); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fg { min-width: 0; }
.fg label, .fg .label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.fg label .req, .req { color: var(--red); }
.fg .hint, .hint { font-size: .8rem; color: var(--ink-500); margin-top: 4px; }
.input, .fg select, .fg textarea {
  width: 100%; min-height: 46px; font: 400 .97rem var(--font); color: var(--ink-900); background: #fff;
  border: 1px solid #D3DAE3; border-radius: 10px; padding: 10px 14px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .fg textarea::placeholder { color: var(--ink-400); }
.input:hover, .fg select:hover, .fg textarea:hover { border-color: #B9C3D0; }
.fg select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23697586' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.fg textarea, textarea.input { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .fg select:focus, .fg textarea:focus { outline: 0; border-color: var(--gold-500); box-shadow: var(--ring); }
.input:disabled, .fg select:disabled { background: var(--bg-soft); color: var(--ink-500); }
.input-group { display: flex; }
.input-group .addon { display: grid; place-items: center; padding: 0 14px; border: 1px solid #D3DAE3; border-right: 0; border-radius: 10px 0 0 10px; background: var(--bg-soft); color: var(--ink-500); font-size: .92rem; }
.input-group .input { border-radius: 0 10px 10px 0; }
.pw { position: relative; }
.pw .input { padding-right: 44px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-400); font-size: 1.1rem; cursor: pointer; padding: 6px; }
.pw button:hover { color: var(--ink-900); }
.field-error { color: var(--red); font-size: .8rem; margin-top: 4px; }
.input.is-invalid, .fg select.is-invalid { border-color: #EFA3A3; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #D3DAE3; border-radius: 10px; cursor: pointer; font-size: .93rem; background: #fff; transition: all .15s; height: 100%; }
.choice > span:hover { border-color: var(--gold-400); }
.choice > span > i { color: var(--gold-700); font-size: 1.15rem; }
.choice input:checked + span { border-color: var(--gold-500); background: var(--gold-50); box-shadow: 0 0 0 3px rgba(255, 201, 40, .22); }
.choice input:focus-visible + span { outline: 3px solid var(--gold-400); }
.choice small { display: block; color: var(--ink-500); font-size: .78rem; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px; }
.form-section > h2 { font-size: 1.1rem; display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.form-section > h2 > i { color: var(--gold-600); }
.form-section > h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-500); color: var(--ink-900); display: grid; place-items: center; font-size: .88rem; }
.form-section > p.muted { margin-bottom: 18px; font-size: .9rem; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
input[type="file"] { font: 400 .9rem var(--font); color: var(--ink-500); max-width: 100%; }
input[type="file"]::file-selector-button { font: 600 .88rem var(--font); color: var(--ink-900); background: #fff; border: 1px solid #D3DAE3; border-radius: 8px; padding: 8px 14px; margin-right: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
input[type="file"]::file-selector-button:hover { border-color: var(--gold-500); background: var(--gold-50); }
.upload { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 16px; border: 1.5px dashed #CDD5DF; border-radius: 12px; background: var(--bg-soft); }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #D3DAE3; border-radius: 999px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--gold-500); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:disabled + span { opacity: .45; cursor: not-allowed; }

/* ---------- Flash / notice ---------- */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; border: 1px solid; font-size: .93rem; text-align: left; }
.flash i { font-size: 1.1rem; margin-top: 1px; }
.flash--ok { background: var(--green-bg); border-color: #BDE5D7; color: #0E5A48; }
.flash--ok i { color: var(--green); }
.flash--error { background: var(--red-bg); border-color: #F6C7C7; color: #8E2222; }
.flash--error i { color: var(--red); }
.flash--warn, .flash--info { background: var(--warn-bg); border-color: #FBDDA8; color: #7A4304; }
.flash--warn i, .flash--info i { color: var(--warn); }
.panel__main > .flash, .container > .flash { margin-top: 0; }
.notice { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; border: 1px solid; }
.notice > i { font-size: 1.3rem; }
.notice p { margin: 0; }
.notice b { color: var(--ink-900); }
.notice--warn { background: var(--warn-bg); border-color: #FBDDA8; }
.notice--warn > i { color: var(--warn); }
.notice--info { background: var(--blue-bg); border-color: #D6E3FF; }
.notice--info > i { color: var(--blue); }
.notice--ok { background: var(--green-bg); border-color: #BDE5D7; }
.notice--ok > i { color: var(--green); }
.notice--error { background: var(--red-bg); border-color: #F6C7C7; }
.notice--error > i { color: var(--red); }
.notice .btn { margin-left: auto; flex-shrink: 0; }
.card-error { color: var(--red); background: var(--red-bg); border-radius: 10px; padding: 10px 12px; margin: 0; font-size: .9rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.price:hover { box-shadow: var(--shadow); }
.price.popular { border: 2px solid var(--gold-500); box-shadow: var(--shadow-lg); }
.price.popular .badge-top { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold-500); color: var(--ink-900); padding: 4px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.price.disabled { opacity: .72; }
.price h3 { font-size: 1.12rem; }
.price .amount { font: 700 2.1rem/1 var(--font-head); color: var(--ink-900); margin: 6px 0; }
.price .amount small { font: 400 .9rem var(--font); color: var(--ink-500); }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; font-size: .92rem; flex: 1; }
.price li { display: flex; gap: 10px; }
.price li i { color: var(--green); }
.price li.no { color: var(--ink-400); }
.price li.no i { color: var(--ink-400); }
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.addon { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.addon .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-100); color: var(--gold-800); display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.addon b { font-size: 1.02rem; display: block; color: var(--ink-900); }
.addon .p { margin-left: auto; text-align: right; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pay { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.pay .ic { font-size: 1.5rem; color: var(--gold-700); }
.pay h3 { margin: 8px 0 4px; }
.pay p { font-size: .9rem; color: var(--ink-500); margin: 0; }
.pay .speed { display: inline-block; margin-top: 10px; font-size: .78rem; }

/* ---------- Panel (ผู้ประกอบการ / ผู้หางาน) ---------- */
.layout-panel { background: var(--bg-soft); }
.site-header.is-panel .container { max-width: none; }
.panel { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - var(--header-h)); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.sidebar__label { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); padding: 0 12px; margin: 0 0 6px; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-700); font-size: .93rem; }
.sidebar nav a:hover { background: var(--bg-soft); color: var(--ink-900); }
.sidebar nav a.active { background: var(--gold-50); color: var(--ink-900); font-weight: 600; }
.sidebar nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold-500); }
.sidebar nav a i { font-size: 1.05rem; color: var(--ink-400); }
.sidebar nav a.active i, .sidebar nav a:hover i { color: var(--gold-700); }
.sidebar nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: .72rem; padding: 1px 8px; border-radius: 999px; }
.sidebar__plan { margin-top: auto; background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 14px; padding: 14px; }
.sidebar__plan p { margin: 0 0 6px; }
.plan-name { font-weight: 600; color: var(--ink-900); }
.meter { height: 8px; background: #fff; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.meter span { display: block; height: 100%; background: var(--gold-500); border-radius: inherit; }
.meter--lg { height: 10px; background: var(--line-2); margin: 12px 0 14px; }
.sidebar__logout { color: var(--ink-500); padding: 10px 12px; font-size: .9rem; display: flex; gap: 10px; align-items: center; }
button.sidebar__logout { background: none; border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; border-radius: 10px; }
button.sidebar__logout:hover { background: var(--red-bg); color: var(--red); }
.panel__main { padding: 28px 32px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-head h1 { font-size: 1.5rem; margin: 0; }
.panel-head p { margin: 2px 0 0; color: var(--ink-500); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpis--3 { grid-template-columns: repeat(3, 1fr); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.kpi span { font-size: .85rem; color: var(--ink-500); display: flex; align-items: center; gap: 8px; }
.kpi span i { width: 32px; height: 32px; border-radius: 10px; background: var(--gold-100); color: var(--gold-800); display: grid; place-items: center; }
.kpi b { display: block; font: 700 1.65rem/1.2 var(--font-head); color: var(--ink-900); margin-top: 8px; }
.kpi small { color: var(--green); font-size: .8rem; }
.progress-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 18px 0 6px; }
.ps { position: relative; text-align: center; font-size: .82rem; color: var(--ink-500); }
.ps::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.ps:first-child::before { display: none; }
.ps.done::before, .ps.current::before { background: var(--gold-500); }
.ps .dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); color: var(--ink-400); font-weight: 600; }
.ps.done .dot { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-900); }
.ps.current .dot { border-color: var(--gold-500); color: var(--gold-800); box-shadow: 0 0 0 5px rgba(255, 201, 40, .22); }
.ps.current { color: var(--ink-900); font-weight: 600; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.table th { text-align: left; font-weight: 600; color: var(--ink-500); font-size: .8rem; background: var(--bg-soft); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFDFE; }
.table td b { color: var(--ink-900); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--green-bg); color: var(--green); }
.status--pending { background: var(--warn-bg); color: var(--warn); }
.status--rejected { background: var(--red-bg); color: var(--red); }
.status--expired { background: var(--bg-soft); color: var(--ink-500); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions .btn { padding: .4em .8em; font-size: .82rem; min-height: 34px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.settings-nav a { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink-700); font-size: .9rem; }
.settings-nav a.active, .settings-nav a:hover { background: var(--gold-50); color: var(--ink-900); border-color: var(--gold-500); font-weight: 600; }
.secret { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ink-900); color: var(--gold-400); font: 600 .9rem ui-monospace, Consolas, monospace; letter-spacing: .02em; white-space: nowrap; }
.checklist-card { margin-bottom: 18px; }
.checklist-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.checklist-head h2 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; }
.checklist-head .pct { font: 700 1.4rem var(--font-head); color: var(--gold-700); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; font-size: .92rem; color: var(--ink-500); }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist li i { color: var(--ink-400); }
.checklist li.ok { color: var(--ink-800); }
.checklist li.ok i { color: var(--green); }
.map-box { height: 280px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); }

/* checkout / ชำระเงิน */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.pay-option { display: block; position: relative; margin-bottom: 10px; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option .box { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid #D3DAE3; border-radius: var(--radius); background: #fff; cursor: pointer; transition: all .15s; }
.pay-option .box:hover { border-color: var(--gold-400); }
.pay-option .box i.main { font-size: 1.5rem; color: var(--gold-700); width: 46px; height: 46px; display: grid; place-items: center; background: var(--gold-50); border-radius: 12px; }
.pay-option input:checked + .box { border-color: var(--gold-500); background: #FFFDF5; box-shadow: 0 0 0 3px rgba(255, 201, 40, .22); }
.pay-option .box b { display: block; color: var(--ink-900); font-weight: 600; }
.pay-option .box span { font-size: .84rem; color: var(--ink-500); }
.pay-option .box .tag { margin-left: auto; }
.pay-option.is-disabled .box { opacity: .55; cursor: not-allowed; background: var(--bg-soft); }
.pay-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 4px; }
.qr { width: 200px; height: 200px; margin: 10px auto; border-radius: 14px; border: 1px solid var(--line); padding: 12px; background: #fff; }
.qr-img { display: block; width: 280px; max-width: 100%; height: auto; margin: 14px auto; border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: #fff; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .94rem; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.12rem; color: var(--ink-900); }
.pay-result h2 { margin: 10px 0 6px; }
.pay-result__ic { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 2rem; }
.pay-result__ic.ok { background: var(--green-bg); color: var(--green); }
.pay-result__ic.warn { background: var(--warn-bg); color: var(--warn); }
.pay-result__ic.err { background: var(--red-bg); color: var(--red); }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); vertical-align: middle; animation: kkj-pulse 1.4s ease-in-out infinite; }
@keyframes kkj-pulse { 50% { opacity: .25; } }
.steps-mini { margin: 0 0 16px; padding-left: 20px; line-height: 1.9; }
.mini-list { list-style: none; margin: 0 0 12px; padding: 0; font-size: .88rem; color: var(--ink-700); }
.mini-list li { padding: 2px 0; }
.mini-list i { color: var(--green); }
.plan-meter { margin: 6px 0 2px; }

/* ---------- หน้าหลักผู้ประกอบการ ---------- */
.emp-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFBEF, #fff); border-bottom: 1px solid var(--line); padding: 56px 0 60px; }
.emp-hero::before { content: ""; position: absolute; right: -140px; top: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 40, .28), rgba(255, 201, 40, 0) 66%); pointer-events: none; }
.emp-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.emp-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); line-height: 1.25; margin: 14px 0 12px; }
.emp-hero h1 em { font-style: normal; color: var(--gold-600); }
.emp-hero__sub { display: inline-block; font-size: .42em; vertical-align: middle; background: var(--gold-500); color: var(--ink-900); padding: 6px 14px; border-radius: 999px; }
.emp-hero .small a { color: var(--ink-900); font-weight: 600; }
.emp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; }
.stat b, .emp-stats .stat b { display: block; font: 700 1.5rem/1.2 var(--font-head); color: var(--ink-900); }
.stat span, .emp-stats .stat span { font-size: .82rem; color: var(--ink-500); }
.hero__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.hero__card h2 { font-size: 1.02rem; margin: 0; }
.mini-job { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.mini-job:hover { border-color: var(--gold-400); background: var(--gold-50); }
.mini-job p { margin: 0; line-height: 1.35; }
.mini-job .t { font-weight: 600; color: var(--ink-900); font-size: .92rem; }
.mini-job .s { font-size: .8rem; color: var(--ink-500); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.benefit h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.benefit p { margin: 0; color: var(--ink-500); font-size: .93rem; }
.benefit__ic { width: 50px; height: 50px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--gold-100); color: var(--gold-800); font-size: 1.3rem; }
.emp-step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.emp-step-head h2 { margin: 2px 0 4px; }
.emp-step-head p { margin: 0; }
.emp-step-no { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--ink-900); font: 700 1.25rem/1 var(--font-head); }
.pay-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pay-way { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.pay-way h3 { font-size: 1.06rem; margin: 0 0 10px; }
.pay-way__no { display: block; font-size: .8rem; color: var(--gold-700); font-weight: 700; margin-bottom: 4px; }
.bank-box { display: flex; gap: 14px; align-items: flex-start; background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; line-height: 1.7; }
.bank-box > i { font-size: 1.5rem; color: var(--gold-700); }
.notify-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.notify { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.notify p { margin: 0; color: var(--ink-500); font-size: .9rem; word-break: break-word; }
.emp-verify { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: v; display: grid; gap: 10px; max-width: 820px; }
.emp-verify li { counter-increment: v; position: relative; padding: 14px 16px 14px 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.emp-verify li::before { content: counter(v); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-100); color: var(--gold-800); display: grid; place-items: center; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.form-card { padding: 26px; }
.side-contact h2 { font-size: 1.08rem; margin-top: 0; }
.side-contact p { margin: 0 0 10px; }
.pkg-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.pkg-pick legend { font-weight: 600; font-size: .9rem; color: var(--ink-900); margin-bottom: 8px; display: flex; justify-content: space-between; width: 100%; gap: 8px; }
.pkg-pick__list { display: grid; gap: 8px; }
.pkg-pick .choice > span { align-items: center; }
.pkg-pick__name { flex: 1; min-width: 0; line-height: 1.35; }
.pkg-pick__name b { display: block; color: var(--ink-900); font-weight: 600; }
.pkg-pick__price { font-weight: 700; color: var(--ink-900); white-space: nowrap; }

/* ---------- ผู้สมัครงาน / เรซูเม่ ---------- */
.applicant { margin-bottom: 14px; }
.applicant__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.applicant__status { display: flex; gap: 8px; align-items: center; }
.applicant__body { padding-top: 12px; }
.applicant__note { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 14px; }
.applicant__dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.applicant__dl dt { color: var(--ink-500); }
.applicant__dl dd { margin: 0; }
.resume-nav { margin: 0 0 16px; }
.photo-field { display: flex; gap: 16px; align-items: flex-start; }
.resume-photo { display: block; width: 110px; height: 147px; flex: 0 0 auto; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.resume-photo--sm { width: 84px; height: 112px; }
.resume-photo--empty { display: grid; place-items: center; background: var(--gold-100); color: var(--gold-800); font: 600 2.2rem var(--font-head); }
.inline-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wh-row { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 6px; margin: 0 0 14px; background: #fff; }
.wh-row legend { font-weight: 600; color: var(--ink-900); padding: 0 6px; }
.wh-remove { position: absolute; top: -4px; right: 12px; border: 0; background: none; color: var(--red); cursor: pointer; font: inherit; font-size: .85rem; }
.lang-table td { min-width: 110px; }
.rsc { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 16px 18px; margin-bottom: 16px; }
.rsc__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.rsc__label { display: flex; gap: 10px; align-items: center; }
.rsc__label > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-100); color: var(--gold-800); }
.rsc__label b, .rsc__label small, .rsc__num small { display: block; }
.rsc__label small, .rsc__num small { color: var(--ink-500); font-size: .8rem; }
.rsc__num { text-align: right; }
.rsc__num b { font: 700 1.55rem var(--font-head); color: var(--ink-900); }
.rsc__num span { color: var(--ink-500); margin-left: 4px; }
.rsc.is-warning .meter span { background: var(--warn); }
.rsc.is-exhausted { border-color: #F6C7C7; background: var(--red-bg); }
.rsc.is-exhausted .rsc__num b { color: var(--red); }
.rsearch { margin-bottom: 4px; }
.rcard { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; margin-bottom: 12px; }
.rcard__pos { font-size: 1.05rem; margin: 0; }
.rcard__name { margin: 2px 0 6px; }
.rcard__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--ink-500); }
.rcard__meta i { color: var(--ink-400); }
.rcard__actions { display: flex; flex-direction: column; gap: 8px; min-width: 170px; }
.rcard__actions .btn, .rcard__actions form { width: 100%; }

/* ---------- ยืนยันตัวตนผู้ประกอบการ ---------- */
.verify-banner { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--radius-lg); margin-bottom: 18px; background: linear-gradient(110deg, #FFF6D6, #FFFDF5); border: 1px solid var(--gold-200); }
.verify-banner__ic { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-500); color: var(--ink-900); font-size: 1.5rem; }
.verify-banner h1 { font-size: 1.2rem; margin: 0 0 4px; }
.verify-banner p { margin: 0; color: var(--ink-700); font-size: .92rem; }
.verify-lock { text-align: center; padding: 32px 20px; }
.verify-lock > i { font-size: 2.4rem; color: var(--ink-400); }
.verify-lock h2 { font-size: 1.1rem; margin: 10px 0 6px; justify-content: center; }
.vcard h2 .req { margin-right: 4px; }
.vfiles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.vfile { margin: 0; width: 140px; }
.vfile__thumb { display: grid; place-items: center; width: 140px; height: 110px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); color: var(--ink-500); font-size: 2rem; text-decoration: none; }
.vfile__thumb span { font-size: .8rem; font-weight: 600; margin-top: -18px; }
.vfile__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vfile figcaption { font-size: .8rem; color: var(--ink-500); margin: 4px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* แอดมินเข้าสู่ระบบแทนผู้ประกอบการ */
.impersonate-bar { position: sticky; top: 0; z-index: 200; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 8px 16px; background: #8E2222; color: #fff; font-size: .9rem; }
.impersonate-bar form { margin: 0; }
.impersonate-bar button { font: inherit; font-size: .85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; cursor: pointer; }
.impersonate-bar button:hover { background: rgba(255, 255, 255, .15); }

/* ---------- นโยบาย / ข้อตกลง / ลบข้อมูล ---------- */
.legal { line-height: 1.8; }
.legal + .legal { margin-top: 18px; }
.legal h2 { font-size: 1.15rem; margin: 1.8em 0 .5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1rem; margin: 1.2em 0 .4em; }
.legal ul, .legal ol { padding-left: 1.3em; margin: .4em 0 1em; }
.legal li { margin: .3em 0; }
.legal-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 18px 0 8px; font-size: .92rem; }
.legal-toc ol { columns: 2; column-gap: 28px; margin: 6px 0 0; }
.legal-contact { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.legal-contact li { display: flex; gap: 8px; align-items: flex-start; }
.legal-contact i { color: var(--gold-600); }
.legal-status { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 10px; }
.legal-status dt { color: var(--ink-500); }
.legal-status dd { margin: 0; }
.delete-account { display: grid; gap: 12px; max-width: 520px; padding: 18px; border: 1px solid #F6C7C7; background: #FFF8F8; border-radius: 12px; margin: 10px 0 6px; }
.delete-account p { margin: 0; }
.delete-account .btn { justify-self: start; }
.code-check { display: flex; gap: 8px; max-width: 460px; }
.code-check .input { flex: 1; }

/* ค้นหาตำแหน่งบนแผนที่ (ข้อมูลบริษัท) */
.map-search { display: flex; gap: 8px; margin-bottom: 8px; }
.map-search input { flex: 1; min-width: 0; }
.map-search .btn { flex: none; }
.map-results { list-style: none; margin: 0 0 10px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-height: 260px; overflow: auto; box-shadow: var(--shadow); }
.map-results button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: inherit; color: var(--ink-800); cursor: pointer; }
.map-results button:hover, .map-results button:focus-visible { background: var(--bg-soft); }
.map-results small { color: var(--ink-500); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: #fff; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
  .nav-open .main-nav { display: flex; }
  .main-nav > a { padding: 12px 14px; }
  .main-nav > a.active { background: var(--gold-50); }
  .main-nav > a.active::after { display: none; }
  .main-nav > a.main-nav__emp { margin-left: 0; }
  .main-nav__mobile { display: grid; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-toggle:not(.panel-toggle) { display: inline-flex; }
  .nav-guest { display: none; }
}
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "text" "search"; }
  .hero__art { display: none; }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .detail, .checkout { grid-template-columns: 1fr; }
  .notify-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hide-sm { display: none !important; }
  .type-row { grid-template-columns: repeat(2, 1fr); }
  .district-wrap, .seo-content, .employer-band, .emp-hero__inner, .pay-ways, .two-col { grid-template-columns: 1fr; }
  .company-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .listing { grid-template-columns: 1fr; padding-top: 20px; }
  .filters { position: fixed; inset: 0; z-index: 80; border-radius: 0; overflow-y: auto; display: none; padding: 18px; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .panel { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: var(--header-h); left: 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .sidebar-open .sidebar { transform: none; }
  .panel-toggle { display: inline-flex; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .addon-grid, .pay-methods, .grid-2 { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .job-head { grid-template-columns: auto 1fr; }
  .job-head__actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; min-width: 0; }
  .job-head__actions > :first-child { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; padding: 28px; }
  .cta-band__art { display: none; }
  .cta-band--slim { grid-template-columns: auto 1fr; }
  .cta-band--slim .btn { grid-column: 1 / -1; justify-self: start; }
  .emp-topbar > .container > span:first-child { display: none; }
  .mobile-apply { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(20, 43, 74, .18); }
  .mobile-apply .btn { flex: 1; }
  body:has(.mobile-apply) .site-footer { padding-bottom: 70px; }
  .site-footer::after { width: 240px; height: 126px; }
}
@media (max-width: 720px) {
  .rcard { grid-template-columns: auto 1fr; }
  .rcard__actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .photo-field { flex-direction: column; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  :root { --header-h: 64px; }
  .brand__text { font-size: 1.08rem; }
  .brand__tag { display: none; }
  .hero { padding: 36px 0 44px; }
  .search-box { grid-template-columns: 1fr; padding: 8px; }
  .search-box .field + .field { border-left: 0; border-top: 1px solid var(--line); }
  .search-box .btn { padding: 14px; margin: 6px 0 0; }
  .job-grid, .price-grid, .form-grid, .form-grid.cols-3, .why-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .type-card { padding: 14px; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .employer-band { padding: 28px 22px; border-radius: 16px; }
  .footer-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .company-row { grid-template-columns: 1fr 1fr; }
  .company-head { flex-direction: column; align-items: flex-start; }
  .company-head .actions { margin-left: 0; }
  .card, .form-section { padding: 20px; }
  .welfare { grid-template-columns: 1fr; }
  .social-login { grid-template-columns: 1fr; }
  .panel__main { padding: 18px 16px; }
  .ps { font-size: .7rem; }
  .notice { flex-wrap: wrap; }
  .notice .btn { margin-left: 0; }
  .otp-inputs input { width: 44px; height: 54px; }
  .job-hero { flex-direction: column; }
  .job-head { grid-template-columns: 1fr; padding: 20px; margin-top: -60px; }
  .job-head .logo-lg { width: 72px; height: 72px; font-size: 1.8rem; }
  .job-head__actions { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .benefit-grid, .notify-grid { grid-template-columns: 1fr; }
  .emp-hero { padding: 32px 0 36px; }
  .form-card { padding: 18px; }
  .auth__main { padding: 24px 12px; }
  .auth__box { padding: 26px 20px; border-radius: 16px; }
  .alert-box { flex-wrap: wrap; }
  .alert-box .btn { margin-left: 0; }
  .applicant__dl { grid-template-columns: 1fr; }
  .applicant__dl dd { margin-bottom: 6px; }
  .legal-toc ol { columns: 1; }
  .legal-status { grid-template-columns: 1fr; gap: 2px; }
  .legal-status dd { margin-bottom: 8px; }
  .map-search { flex-direction: column; }
}
@media (max-width: 360px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .otp-inputs { gap: 6px; }
  .otp-inputs input { width: 38px; height: 48px; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
