/* ============================================================
   ĐĂNG LÊ - Kết Nối Việc Làm Bao Ăn Ở TP.HCM
   Thiết kế: Flat Design, tông xanh dương tin cậy
   ============================================================ */

:root {
  /* Màu sắc (Design System) */
  --primary: #0369a1;
  --primary-dark: #075985;
  --primary-darker: #0c4a6e;
  --on-primary: #ffffff;
  --secondary: #0ea5e9;
  --secondary-light: #38bdf8;
  --accent: #16a34a;
  --accent-dark: #15803d;
  --accent-light: #22c55e;
  --bg: #f0f9ff;
  --surface: #ffffff;
  --fg: #062a43;          /* xanh navy đậm cho tiêu đề */
  --text: #0c3b5e;        /* xanh đậm cho body (đậm hơn trước) */
  --text-muted: #4a6786;  /* xanh xám cho phụ */
  --muted: #e7eff5;
  --border: #bae6fd;
  --border-soft: #e2e8f0;
  --destructive: #dc2626;
  --warning: #f59e0b;
  --hot: #ef4444;
  --salary: #e11d48;

  /* Kích thước & bo góc */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 71, 0.06);
  --shadow: 0 4px 16px rgba(3, 105, 161, 0.08);
  --shadow-lg: 0 12px 32px rgba(3, 105, 161, 0.12);

  --container: 1200px;
  --header-h: 72px;

  --font-head: 'Lexend', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

/* ===== Chế độ Đêm ===== */
html.dark {
  --bg: #0b1a26;
  --surface: #11293b;
  --fg: #eaf4fc;
  --text: #d5e6f3;
  --text-muted: #92b3cc;
  --muted: #16324a;
  --border: #285171;
  --border-soft: #21415a;
  --salary: #fb7185;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}
html.dark .search-box { background: var(--surface); }
html.dark .search-field input, html.dark .search-field select { color: var(--text); }
html.dark .btn-white { background: var(--muted); color: var(--fg); }
html { transition: none; }
body, .header, .job-card, .content-block, .sidebar-card, .form-card, .cat-card, .feature { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: rgba(3, 105, 161, .12); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Mượt trên cảm ứng: cuộn quán tính + chống tràn ngang toàn cục (an toàn) */
img, svg, video { max-width: 100%; }
.table-wrap, .bulk-list, .nav.open { -webkit-overflow-scrolling: touch; }
body { overflow-x: clip; overscroll-behavior-y: contain; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--fg); line-height: 1.25; font-weight: 600; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

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

.main { flex: 1; }

/* ---------- Utilities ---------- */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-head);
}
.badge-hot { background: #fee2e2; color: var(--hot); }
.badge-urgent { background: #fef3c7; color: #b45309; }
.badge-food { background: #dcfce7; color: var(--accent-dark); }
.badge-filled { background: #e2e8f0; color: #475569; }

/* Thông báo tin đã tuyển đủ ở khung ứng tuyển (trang chi tiết) */
.filled-notice { text-align: center; padding: 8px 4px; }
.filled-notice-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e2e8f0; color: #475569; margin-bottom: 12px; }
.filled-notice-icon .icon { width: 32px; height: 32px; }
.filled-notice h3 { margin-bottom: 8px; color: var(--fg); }
.filled-notice p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }

.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 8px; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.section-alt { background: var(--surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 12px 24px; border-radius: var(--radius-sm); min-height: 48px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer; white-space: nowrap; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--border); }
.btn-outline:hover { background: var(--muted); border-color: var(--secondary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--muted); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 17px; min-height: 54px; }
.btn-sm { padding: 8px 16px; min-height: 40px; font-size: 14px; }
.btn-admin { background: transparent; color: var(--text-muted); border: 1px solid var(--border-soft); gap: 6px; }
.btn-admin:hover { background: var(--muted); color: var(--primary); border-color: var(--secondary); }
.btn-admin .icon-sm { width: 18px; height: 18px; }

/* Banner nhấn mạnh ở trang Liên hệ */
.contact-notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(2,132,199,.10), rgba(56,189,248,.10));
  border: 1px solid var(--secondary); border-left: 5px solid var(--primary);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.contact-notice-icon { flex: 0 0 auto; color: var(--primary); line-height: 0; }
.contact-notice-icon .icon { width: 30px; height: 30px; }
.contact-notice p { margin: 0; color: var(--text); line-height: 1.6; font-size: 15.5px; }
.contact-notice b { color: var(--primary-dark); }

/* Honeypot chống bot: ẩn hoàn toàn khỏi người dùng */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Mục Hợp tác cùng Đăng Lê */
.coop-section { background: var(--muted); }
.coop-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; margin: 0 auto 28px; }
.coop-role {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px 12px; transition: transform .18s ease, border-color .2s, box-shadow .2s;
}
.coop-role:hover { transform: translateY(-3px); border-color: var(--secondary); box-shadow: var(--shadow); }
.coop-role b { font-family: var(--font-head); font-size: 15px; color: var(--fg); }
.coop-role small { color: var(--text-muted); font-size: 12.5px; }
.coop-role-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--muted); color: var(--primary); margin-bottom: 8px; transition: all .2s; }
.coop-role-ic .icon { width: 26px; height: 26px; }
.coop-role.active { border-color: var(--primary); box-shadow: 0 8px 20px rgba(3,105,161,.18); }
.coop-role.active .coop-role-ic { background: var(--primary); color: #fff; }
.coop-role.active b { color: var(--primary); }

.coop-panel { display: none; max-width: 680px; margin: 0 auto; }
.coop-panel.active { display: block; animation: coopFade .28s ease; }
@keyframes coopFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.coop-desc { text-align: center; margin-bottom: 16px; font-size: 15.5px; line-height: 1.6; }

/* Thẻ CTA Zalo cho Trung tâm tuyển dụng */
.coop-cta-card { text-align: center; }
.coop-cta-ic { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--muted); color: var(--primary); margin-bottom: 12px; }
.coop-cta-ic .icon { width: 34px; height: 34px; }
.coop-cta-card h3 { color: var(--fg); margin-bottom: 8px; }
.coop-cta-card p { color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.coop-zalo-btn { width: 100%; margin-bottom: 10px; }

/* Banner thưởng giới thiệu */
.reward-banner {
  display: flex; gap: 14px; align-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(225,29,72,.10), rgba(251,113,133,.12));
  border: 1px solid var(--salary); border-radius: var(--radius); padding: 14px 16px;
}
.reward-ic { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--salary); color: #fff; }
.reward-ic .icon { width: 24px; height: 24px; }
.reward-banner b { color: var(--salary); font-size: 16px; }
.reward-banner small { color: var(--text-muted); line-height: 1.5; }

@media (max-width: 768px) {
  .coop-roles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Khối Hợp tác ở trang chủ */
.home-coop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.home-coop-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 24px 16px; transition: transform .18s ease, border-color .2s, box-shadow .2s; color: var(--fg);
}
.home-coop-card:hover { transform: translateY(-4px); border-color: var(--secondary); box-shadow: var(--shadow); }
.home-coop-card b { font-family: var(--font-head); font-size: 16px; }
.home-coop-card small { color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.home-coop-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg,#38bdf8,#0284c7); color: #fff; margin-bottom: 8px; }
.home-coop-ic .icon { width: 28px; height: 28px; }
.home-coop-card--reward .home-coop-ic { background: linear-gradient(135deg,#fb7185,#e11d48); }
.home-coop-card--reward b { color: var(--salary); }
@media (max-width: 768px) { .home-coop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ===== Trang Giới thiệu: khối intro + thống kê ===== */
.intro-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
}
.intro-lead h2 { font-size: 26px; margin-bottom: 10px; }
.intro-lead p { color: var(--text-muted); line-height: 1.75; font-size: 16px; }
.intro-lead .hl { color: var(--primary); }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.intro-stat { display: flex; align-items: center; gap: 12px; background: var(--muted); border-radius: var(--radius-sm); padding: 14px 16px; }
.intro-stat-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(3,105,161,.12); color: var(--primary); }
.intro-stat b { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--primary); display: block; line-height: 1.1; }
.intro-stat span { font-size: 13px; color: var(--text-muted); }
@media (max-width: 820px) { .intro-card { grid-template-columns: 1fr; gap: 20px; } }

/* ===== Nội dung biên tập + expander ===== */
.editorial h2 { font-size: 24px; margin-bottom: 14px; }
.editorial h3 { font-size: 18px; margin: 18px 0 8px; color: var(--fg); }
.editorial p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.editorial ul { margin: 8px 0 12px 22px; color: var(--text-muted); line-height: 1.9; }
.editorial-more { display: none; }
.editorial-more.open { display: block; animation: coopFade .3s ease; }

/* ===== Lưới bài viết + thẻ bài ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; color: var(--fg); transition: transform .18s ease, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--secondary); }
.post-thumb { position: relative; aspect-ratio: 16/9; background: var(--muted); display: grid; place-items: center; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-ph { color: var(--border); } .post-thumb-ph .icon { width: 40px; height: 40px; }
.post-cat { position: absolute; top: 10px; left: 10px; background: rgba(3,105,161,.92); color: #fff; font-size: 12px; font-weight: 600; font-family: var(--font-head); padding: 4px 10px; border-radius: 999px; }
.post-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-body h3 { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.post-excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ===== Trang đọc bài viết ===== */
.article { max-width: 820px; margin: 0 auto; }
.article-head { margin-bottom: 18px; }
.article-head h1 { font-size: 30px; line-height: 1.25; margin: 10px 0 8px; }
.article-meta { color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.article-meta .dot { opacity: .5; }
.article-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.article-content { font-size: 17px; line-height: 1.85; color: var(--text); }
.article-content h2 { font-size: 23px; margin: 26px 0 10px; color: var(--fg); }
.article-content h3 { font-size: 19px; margin: 22px 0 8px; color: var(--fg); }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 10px 0 16px 24px; }
.article-content li { margin-bottom: 6px; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 14px 0; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content blockquote { border-left: 4px solid var(--secondary); background: var(--muted); margin: 16px 0; padding: 10px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-muted); }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 28px; padding: 20px; background: var(--muted); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.article-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Nút ứng tuyển ở cuối nội dung tin */
.apply-cta-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(2,132,199,.10), rgba(56,189,248,.12));
  border: 1px solid var(--secondary); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px;
}
.apply-cta-text b { display: block; color: var(--fg); font-family: var(--font-head); font-size: 17px; }
.apply-cta-text span { color: var(--text-muted); font-size: 14.5px; }
.apply-cta-inline .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .apply-cta-inline { flex-direction: column; align-items: stretch; text-align: center; } .apply-cta-inline .btn { width: 100%; } }

/* Logo mạng xã hội (ảnh gốc, bo góc kiểu app icon) */
.social-img { object-fit: contain; display: inline-block; border-radius: 22%; }
.social-badge { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; overflow: hidden; }
.social-badge .social-img { width: 44px; height: 44px; border-radius: 12px; }

/* Nút lưu tin (tim) */
.job-card .fav-btn { position: absolute; top: 10px; right: 10px; z-index: 4; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-soft); color: var(--text-muted); box-shadow: var(--shadow-sm); cursor: pointer; transition: color .15s, border-color .15s, transform .15s; }
.job-card .fav-btn:hover { color: var(--salary); border-color: var(--salary); transform: scale(1.08); }
.job-card .fav-btn.saved { color: var(--salary); border-color: var(--salary); }
.job-card .fav-btn.saved .icon-sm { fill: var(--salary); }
.job-card--filled .fav-btn { display: none; }

/* Toolbar danh sách + sắp xếp */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.list-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-check, .tool-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.tool-sort select { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 6px 10px; background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 14px; }
.js-fav-toggle { display: inline-flex; align-items: center; gap: 6px; }
.js-fav-toggle.active { background: var(--salary); color: #fff; border-color: var(--salary); }
.js-fav-toggle .icon-sm { width: 16px; height: 16px; }

/* Quy trình 4 bước */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px 18px 20px; text-align: center; }
.step-no { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; font-size: 15px; box-shadow: 0 4px 10px rgba(3, 105, 161, .35); }
.step-ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 6px auto 12px; border-radius: 16px; background: rgba(3, 105, 161, .1); color: var(--primary); }
.step-ic .icon { width: 28px; height: 28px; }
.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 820px) { .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; } }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; font-family: var(--font-head); font-weight: 600; color: var(--fg); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--primary); font-size: 22px; font-weight: 400; transition: transform .2s; flex: 0 0 auto; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-a { padding: 0 18px 16px; color: var(--text-muted); line-height: 1.7; }

/* Editor ngành nghề trong Admin */
.cat-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.cat-row .cat-name { flex: 2 1 160px; }
.cat-row .cat-slug { flex: 1 1 110px; }
.cat-row .cat-icon, .cat-row .cat-grad { flex: 1 1 120px; }
.cat-row .cat-del { flex: 0 0 auto; }
.grad-swatch { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; border: 1px solid var(--border-soft); }
.icon-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.icon-legend-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; text-align: center; }
.icon-legend-item small { color: var(--text-muted); font-size: 11px; word-break: break-all; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-sm { width: 16px; height: 16px; }

/* Nút Zalo */
.btn-zalo { background: #0068ff; color: #fff; }
.btn-zalo:hover { background: #0052cc; color: #fff; }

/* Ô kết quả sau khi gửi (sao chép + mở Zalo) */
.zalo-result { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.zalo-steps { margin: 0 0 12px 18px; padding: 0; color: var(--text); font-size: 15px; line-height: 1.7; }
.zalo-steps li { margin-bottom: 4px; }
.zalo-msg-box { font-family: var(--font-body); font-size: 14px; background: var(--muted); resize: vertical; }
.zalo-result-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.zalo-result-actions .btn { flex: 1; min-width: 160px; }

/* Ảnh chi tiết 3:4 */
.detail-thumb {
  flex: 0 0 auto; width: 150px; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--muted);
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Chọn nhu cầu chỗ ở */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card span {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 14px 12px; border: 2px solid var(--border-soft); border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 500; color: var(--text); transition: all .2s; min-height: 52px;
}
.radio-card span .icon { color: var(--primary); }
.radio-card:hover span { border-color: var(--secondary); }
.radio-card input:checked + span { border-color: var(--primary); background: var(--muted); color: var(--primary); font-weight: 600; }
.radio-card input:focus-visible + span { outline: 3px solid var(--secondary); outline-offset: 2px; }

/* Upload ảnh (admin) */
.image-upload-row { display: flex; gap: 16px; align-items: flex-start; }
.image-preview {
  width: 120px; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; flex: 0 0 auto;
  background: var(--muted); border: 1px dashed var(--border); display: grid; place-items: center; text-align: center;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-empty { color: var(--text-muted); font-size: 12px; }
.image-preview-empty .icon { width: 28px; height: 28px; margin: 0 auto; opacity: .5; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark { width: 46px; height: 46px; flex: 0 0 auto; line-height: 0; }
.logo-mark-svg { width: 100%; height: 100%; display: block; }

/* Wordmark chữ: "Đăng Lê / VIỆC LÀM SÀI GÒN" */
.brand { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line1 {
  font-family: var(--font-head); font-weight: 800; font-size: 23px; letter-spacing: -0.5px;
  color: var(--primary); background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-line2 {
  font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: 2.5px;
  color: var(--text-muted); margin-top: 4px; display: inline-flex; align-items: center; gap: 5px;
}
.brand-accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important;
  padding: 1px 7px; border-radius: 6px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.28);
}
/* Footer (nền tối) */
.brand--footer .brand-line1 { color: #fff; background: none; -webkit-text-fill-color: #fff; }
.brand--footer .brand-line2 { color: #94a3b8; }
/* Chế độ đêm */
html.dark .brand-line1 { -webkit-text-fill-color: transparent; }
@media (max-width: 420px) { .brand-line1 { font-size: 20px; } .brand-line2 { font-size: 9.5px; letter-spacing: 2px; } }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-family: var(--font-head); font-size: 19px; color: var(--primary); font-weight: 700; }
.logo-text span { font-size: 11px; color: var(--text-muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--text);
  padding: 10px 14px; border-radius: var(--radius-sm); transition: background .2s, color .2s;
}
.nav a:hover { background: var(--muted); color: var(--primary); }
.nav a.active { color: var(--primary); background: var(--muted); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); }
.nav-toggle:hover { background: var(--muted); }
.nav-toggle .icon { width: 26px; height: 26px; color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 55%, var(--secondary) 100%);
  color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.12) 0 60px, transparent 62px),
    radial-gradient(circle at 10% 85%, rgba(255,255,255,.08) 0 90px, transparent 92px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(28px, 5vw, 46px); font-weight: 700; margin-bottom: 14px; }
.hero p.lead { font-size: clamp(16px, 2.5vw, 20px); color: #e0f2fe; max-width: 640px; margin: 0 auto 32px; }

/* Search box */
.search-box {
  background: #fff; border-radius: var(--radius-lg); padding: 12px;
  box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px;
}
.search-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.search-field .icon { color: var(--text-muted); }
.search-field input, .search-field select {
  border: none; outline: none; font-family: var(--font-body); font-size: 16px;
  width: 100%; padding: 12px 0; background: transparent; color: var(--text);
}
.search-field select { cursor: pointer; }
.search-divider { width: 1px; background: var(--border-soft); align-self: stretch; margin: 8px 0; }

.hero-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-tags a {
  background: rgba(255,255,255,.15); color: #fff; font-size: 14px; padding: 7px 14px;
  border-radius: 999px; font-family: var(--font-head); font-weight: 500; backdrop-filter: blur(4px);
  transition: background .2s;
}
.hero-tags a:hover { background: rgba(255,255,255,.28); color: #fff; }

/* Stats bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 800px; margin: 36px auto 0; position: relative; z-index: 1;
}
.stat { text-align: center; color: #fff; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(22px, 4vw, 30px); font-weight: 700; }
.stat span { font-size: 13px; color: #bae6fd; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; transition: transform .15s ease, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--secondary); box-shadow: var(--shadow); }
.cat-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: var(--muted); color: var(--primary);
}
.cat-icon .icon { width: 32px; height: 32px; }
/* Icon ngành nghề nhiều màu, có chiều sâu (3D-ish) */
.cat-icon-3d {
  color: #fff !important; position: relative; overflow: hidden;
  box-shadow: 0 8px 18px rgba(2, 62, 105, 0.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.cat-icon-3d::after {
  content: ''; position: absolute; top: -30%; left: -20%; width: 90%; height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 60%);
  border-radius: 50%; pointer-events: none;
}
.cat-icon-3d .icon { position: relative; z-index: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); stroke-width: 2; }
.cat-card:hover .cat-icon-3d { transform: scale(1.06); transition: transform .2s ease; }
.cat-illus-wrap { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--muted); box-shadow: 0 6px 14px rgba(2,62,105,.15); }
.cat-illus { width: 100%; height: 100%; object-fit: cover; }
.cat-card:hover .cat-illus-wrap { transform: scale(1.05); transition: transform .2s ease; }
.cat-card b { font-family: var(--font-head); font-size: 15px; color: var(--fg); font-weight: 600; }
.cat-card small { color: var(--text-muted); font-size: 13px; }

/* ============================================================
   JOB CARDS
   ============================================================ */
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.job-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 16px; transition: transform .15s ease, border-color .2s, box-shadow .2s;
  display: flex; gap: 16px; position: relative; align-items: flex-start; min-width: 0;
}
.job-card h3 a { overflow-wrap: anywhere; }
.job-card:hover { transform: translateY(-3px); border-color: var(--secondary); box-shadow: var(--shadow); }

/* Tin đã tuyển đủ: làm mờ chuyên nghiệp, giữ nguyên vị trí */
.job-card--filled { background: var(--muted); border-style: dashed; overflow: hidden; }
.job-card--filled .job-thumb, .job-card--filled .job-content { opacity: .5; filter: grayscale(0.9); }
.job-card--filled:hover { transform: none; border-color: var(--border); box-shadow: none; }
.filled-ribbon {
  position: absolute; top: 14px; right: -36px; transform: rotate(45deg);
  background: #64748b; color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: .3px; padding: 4px 42px; z-index: 3; box-shadow: var(--shadow-sm);
}
.job-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Anh minh hoa ti le 3:4 */
.job-thumb {
  flex: 0 0 auto; width: 116px; aspect-ratio: 3 / 4; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--muted); box-shadow: 0 4px 12px rgba(2, 62, 105, 0.15); position: relative;
}
.job-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-align: center; padding: 8px; position: relative; overflow: hidden;
}
.thumb-placeholder::after {
  content: ''; position: absolute; top: -20%; left: -10%; width: 80%; height: 60%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 60%); pointer-events: none;
}
.thumb-ph-icon { width: 42%; height: auto; opacity: .98; position: relative; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.22)); }
.thumb-ph-text { font-family: var(--font-head); font-weight: 700; font-size: 12px; line-height: 1.2; position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

.job-card-top { display: flex; gap: 14px; align-items: flex-start; }
.job-logo {
  width: 56px; height: 56px; border-radius: var(--radius-sm); flex: 0 0 auto;
  background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px;
}
.job-card h3 { font-size: 17px; margin-bottom: 2px; font-weight: 800; line-height: 1.3; }
.job-card h3 a { color: var(--fg); }
.job-card h3 a:hover { color: var(--primary); }
.job-company { font-size: 14px; color: var(--text-muted); }
.job-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.job-salary { font-family: var(--font-head); font-weight: 800; color: var(--salary); font-size: 17px; }
.job-foot-meta { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job-foot-meta .dot { opacity: .5; }
.job-views { display: inline-flex; align-items: center; gap: 4px; }
.job-views .icon-sm { color: var(--secondary); }
.job-views .views-num { color: var(--fg); font-weight: 700; transition: color .3s ease; }
.job-views.views-bump .views-num { color: var(--salary); }
.job-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-muted); }
.job-meta div { display: flex; align-items: center; gap: 6px; }
.job-meta .icon-sm { color: var(--secondary); }
.job-perks { display: flex; gap: 8px; flex-wrap: wrap; }
.job-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border-soft); padding-top: 12px; margin-top: auto; font-size: 13px;
}

.section-foot { text-align: center; margin-top: 36px; }

/* ============================================================
   JOB LISTING PAGE
   ============================================================ */
.page-hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 40px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(24px, 4vw, 34px); }
.page-hero .breadcrumb { font-size: 14px; color: #bae6fd; margin-bottom: 8px; }
.page-hero .breadcrumb a { color: #e0f2fe; }

.filter-bar {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin: -32px auto 32px; position: sticky; top: calc(var(--header-h) + 10px); z-index: 50;
  display: grid; grid-template-columns: 1fr 200px 200px auto; gap: 12px;
  border: 1px solid var(--border-soft);
}
.filter-bar .field {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0 12px; background: var(--bg);
}
.filter-bar .field:focus-within { border-color: var(--secondary); }
.filter-bar .field .icon { color: var(--text-muted); }
.filter-bar input, .filter-bar select {
  border: none; background: transparent; outline: none; font-family: var(--font-body);
  font-size: 15px; width: 100%; padding: 12px 0; color: var(--text);
}

.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.layout-2col--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .layout-2col--even { grid-template-columns: 1fr; } }
.result-count { margin-bottom: 16px; font-size: 15px; color: var(--text-muted); }
.result-count b { color: var(--fg); }

.jobs-list { display: flex; flex-direction: column; gap: 16px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border-soft); font-family: var(--font-head);
  font-weight: 600; color: var(--text); background: var(--surface);
}
.pagination a:hover { border-color: var(--secondary); background: var(--muted); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* Sidebar */
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 17px; margin-bottom: 14px; }
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.sidebar-cta h3 { color: #fff; margin-bottom: 8px; }
.sidebar-cta p { color: #e0f2fe; font-size: 14px; margin-bottom: 16px; }
.cat-list li a {
  display: flex; justify-content: space-between; padding: 9px 0; color: var(--text); font-size: 15px;
  border-bottom: 1px dashed var(--border-soft);
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list li a:hover { color: var(--primary); }
.cat-list .count { color: var(--text-muted); font-size: 13px; }

/* ============================================================
   JOB DETAIL PAGE
   ============================================================ */
.detail-head {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 28px; margin: -32px 0 24px; box-shadow: var(--shadow-sm); position: relative; z-index: 2;
}
.detail-head h1 { font-size: clamp(22px, 3.5vw, 30px); margin-bottom: 12px; }
.detail-head-top { display: flex; gap: 18px; align-items: flex-start; }
.detail-head .job-logo { width: 72px; height: 72px; font-size: 28px; }
.detail-salary-row {
  display: flex; flex-wrap: wrap; gap: 24px; margin: 20px 0; padding: 18px;
  background: var(--bg); border-radius: var(--radius-sm);
}
.detail-salary-row .item small { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 2px; }
.detail-salary-row .item b { font-family: var(--font-head); color: var(--fg); font-size: 17px; }
.detail-salary-row .item .salary { color: var(--salary); }

/* Thanh chia sẻ tin */
.share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.share-label { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-muted); font-family: var(--font-head); font-weight: 600; }
.share-label .icon-sm { color: var(--primary); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-soft); background: var(--surface); color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: 13px; cursor: pointer; transition: all .2s; }
.share-btn:hover { border-color: var(--secondary); color: var(--primary); }
.share-fb { color: #1877f2; border-color: #dbe7fb; }
.share-fb:hover { background: #eff6ff; color: #1877f2; }
.share-zalo { color: #0068ff; border-color: #d6e4ff; }
.share-zalo:hover { background: #eff6ff; color: #0068ff; }
.share-status { font-size: 13px; font-weight: 600; }

.content-block { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.content-block h2 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.content-block h2 .icon { color: var(--primary); }
.content-block p { white-space: pre-line; color: var(--text); }

.apply-card {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: sticky; top: calc(var(--header-h) + 16px);
}
.apply-card h3 { font-size: 19px; margin-bottom: 6px; }
.apply-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--fg); }
.form-group label .req { color: var(--destructive); }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 16px; color: var(--text); background: var(--surface);
  transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.checkbox-row label { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 15px; }

.form-page-wrap { max-width: 720px; margin: 0 auto; }
.form-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.alert .icon { flex: 0 0 auto; margin-top: 2px; }
.alert-success { background: #dcfce7; color: var(--accent-dark); border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: var(--destructive); border: 1px solid #fca5a5; }

/* ============================================================
   FEATURE / WHY US
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--secondary); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--muted); color: var(--primary);
}
.feature-icon .icon { width: 32px; height: 32px; }
/* Icon giá trị cốt lõi - nhiều màu, chiều sâu */
.feature-icon.feature-3d { color: #fff !important; position: relative; overflow: hidden;
  box-shadow: 0 8px 18px rgba(2, 62, 105, 0.25), inset 0 1px 0 rgba(255,255,255,.35); }
.feature-icon.feature-3d::after { content: ''; position: absolute; top: -30%; left: -20%; width: 90%; height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 60%); border-radius: 50%; }
.feature-icon.feature-3d .icon { position: relative; z-index: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* ABOUT - phần đầu nhấn mạnh bao ăn ở */
.about-hero { max-width: 820px; margin: 0 auto; text-align: center; }
.about-badge {
  display: inline-flex; align-items: center; gap: 6px; background: #dcfce7; color: var(--accent-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.about-hero h2 { font-size: clamp(26px, 4.5vw, 40px); line-height: 1.25; margin-bottom: 18px; }
.about-hero .hl { color: var(--salary); }
.about-lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--text); line-height: 1.85; margin-bottom: 28px; }
.about-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.about-cta .btn-accent { color: #fff; }
.about-owner { margin-top: 18px; color: var(--text-muted); font-size: 15px; }
.about-stats { margin-top: 44px; }
.about-stats .stat b { color: var(--primary); }
.about-stats .stat span { color: var(--text-muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff; border-radius: var(--radius-xl); padding: 48px 32px; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 4vw, 32px); margin-bottom: 12px; }
.cta-band p { color: #dcfce7; font-size: 18px; margin-bottom: 28px; max-width: 560px; margin-inline: auto; }
.cta-band .btn-white { color: var(--accent-dark); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--primary-darker); color: #cbd5e1; padding: 48px 0 24px; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 10px; }
.footer .logo-text b { color: #fff; }
.footer .logo-text span { color: #94a3b8; }
.footer-about p { font-size: 14px; margin-top: 12px; color: #94a3b8; line-height: 1.7; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; align-items: flex-start; }
.footer-contact .icon-sm { color: var(--secondary-light); flex: 0 0 auto; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; color: #94a3b8; }

/* ============================================================
   FLOATING CONTACT BUTTONS
   ============================================================ */
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); color: #fff; transition: transform .15s ease; position: relative;
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-btn .icon { width: 28px; height: 28px; }
.float-zalo { background: #fff; }
.float-zalo .social-img { width: 42px; height: 42px; border-radius: 0; }
.float-phone { background: var(--accent); }
.float-btn::after {
  content: attr(data-label); position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--fg); color: #fff; font-size: 13px; font-family: var(--font-head); font-weight: 500;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s; box-shadow: var(--shadow);
}
.float-btn:hover::after { opacity: 1; }
.float-pulse { animation: pulse 2s infinite; }

/* Logo ảnh (khi admin upload) */
.logo-img { height: 48px; width: auto; max-width: 210px; object-fit: contain; display: block; border-radius: 8px; }

/* Nút Ngày / Đêm - góc dưới bên trái */
.theme-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-soft);
  color: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow-lg);
  cursor: pointer; transition: transform .15s ease, background .2s;
}
.theme-toggle:hover { transform: scale(1.08); }
.theme-toggle .icon { width: 26px; height: 26px; }
.theme-icon { display: none; line-height: 0; }
.theme-toggle .theme-icon-moon { display: block; }
html.dark .theme-toggle .theme-icon-sun { display: block; color: #fbbf24; }
html.dark .theme-toggle .theme-icon-moon { display: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); }
  70% { box-shadow: 0 0 0 14px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* ============================================================
   404 / EMPTY
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { width: 64px; height: 64px; color: var(--border); margin: 0 auto 20px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .apply-card { position: static; }
}

@media (max-width: 768px) {
  .nav, .header-cta .btn-outline, .header-cta .btn-admin { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--surface);
    padding: 12px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border-soft); gap: 4px;
  }
  .nav.open a { padding: 14px 16px; }

  .search-box { grid-template-columns: 1fr; padding: 14px; gap: 8px; }
  .search-divider { display: none; }
  .search-field { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 2px 12px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .filter-bar { grid-template-columns: 1fr; margin-top: -20px; position: relative; top: 0; }
  .detail-head-top { flex-direction: column; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .detail-salary-row { gap: 16px; }
}

@media (max-width: 560px) {
  .hero { padding: 36px 0 44px; }
  .section { padding: 32px 0; }
  .about-cta, .cta-actions { flex-direction: column; align-items: stretch; }
  .about-cta .btn, .cta-actions .btn { width: 100%; }
  .coop-cta-card .coop-zalo-btn { width: 100%; }
}

@media (max-width: 420px) {
  .logo-text span { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .container { padding-left: 14px; padding-right: 14px; }
  .job-thumb { width: 92px; }
  .job-card { gap: 12px; padding: 13px; }
  .job-card h3 { font-size: 16px; }
  .stats-bar, .about-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .btn-lg { padding: 13px 22px; font-size: 16px; min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-login-wrap {
  min-height: 100dvh; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(135deg, var(--primary-darker), var(--primary));
}
.admin-login-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.admin-login-card .logo { justify-content: center; margin-bottom: 8px; }
.admin-login-card h1 { text-align: center; font-size: 22px; margin-bottom: 6px; }
.admin-login-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }

.admin-body { display: grid; grid-template-columns: 240px 1fr; min-height: 100dvh; }
.admin-sidebar { background: var(--primary-darker); color: #cbd5e1; padding: 24px 16px; }
.admin-sidebar .logo { margin-bottom: 28px; }
.admin-sidebar .logo-text b { color: #fff; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm);
  color: #cbd5e1; font-family: var(--font-head); font-weight: 500; margin-bottom: 4px; transition: background .2s;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-nav .icon { width: 20px; height: 20px; }
.admin-nav .badge-count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }

.admin-main { padding: 28px; background: var(--bg); }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 24px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.stat-card b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--primary); }
.stat-card span { color: var(--text-muted); font-size: 14px; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 14px; vertical-align: top; }
.admin-table th { background: var(--muted); font-family: var(--font-head); font-weight: 600; color: var(--fg); font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fbfe; }
.admin-table .actions { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border-soft); background: #fff; color: var(--text-muted); transition: all .2s; }
.icon-btn:hover { border-color: var(--secondary); color: var(--primary); }
.icon-btn.danger:hover { border-color: var(--destructive); color: var(--destructive); }
.icon-btn .icon { width: 18px; height: 18px; }

.status-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-family: var(--font-head); }
.status-active { background: #dcfce7; color: var(--accent-dark); }
.status-hidden { background: #f1f5f9; color: var(--text-muted); }
.status-filled { background: #e2e8f0; color: #475569; }
.icon-btn.success:hover { border-color: var(--accent); color: var(--accent); }

/* Xem trước thêm tin hàng loạt (RAW) */
.bulk-preview { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px; }
.bulk-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bulk-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.bulk-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--bg); }
.bulk-item-no { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.bulk-item-body b { color: var(--fg); font-family: var(--font-head); }
.bulk-item-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.bulk-warn { font-size: 12.5px; color: #b45309; margin-top: 3px; }
.status-new { background: #fef3c7; color: #b45309; }

/* Admin: quản lý ảnh ngành nghề */
.cat-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.cat-img-item { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px; text-align: center; background: var(--bg); }
.cat-img-item b { display: block; margin: 10px 0; font-family: var(--font-head); font-size: 14px; color: var(--fg); }
.cat-img-preview { width: 100%; height: 120px; display: grid; place-items: center; }
.cat-img-preview img { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-sm); }
.cat-img-form .form-control { font-size: 13px; padding: 8px; min-height: auto; }
.cat-img-actions { display: flex; gap: 6px; margin-top: 8px; justify-content: center; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
.admin-form-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px; max-width: 820px; }
.admin-form-card h2 { margin-bottom: 20px; }

@media (max-width: 900px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; align-items: center; gap: 16px; padding: 14px 16px; overflow-x: auto; }
  .admin-sidebar .logo { margin-bottom: 0; flex: 0 0 auto; }
  .admin-nav { display: flex; gap: 6px; }
  .admin-nav a { margin-bottom: 0; white-space: nowrap; padding: 10px 12px; }
  .admin-nav .badge-count { margin-left: 6px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
