/* plan.27biggroup.com — 27BigPlan. Xanh ngọc đậm + kem + nhấn hồng cưới; chữ Be Vietnam Pro, tiêu đề Playfair Display. */
:root {
  --bg: #f7faf9;
  --bg-2: #eef5f3;
  --card: #ffffff;
  --ink: #16241f;
  --ink-2: #44554f;
  --muted: #7d8b86;
  --line: #e2ece8;
  --brand: #0e7a62;
  --brand-2: #119c7d;
  --brand-soft: #e6f4f0;
  --rose: #c2566e;
  --rose-soft: #fdeef1;
  --gold: #b9842c;
  --gold-soft: #fdf4e3;
  --ok: #2f8a5b;
  --warn: #b9720f;
  --danger: #c0392b;
  --r-s: 9px;
  --r-m: 14px;
  --r-l: 22px;
  --shadow: 0 10px 30px rgba(14, 60, 50, .09);
  --shadow-sm: 0 4px 14px rgba(14, 60, 50, .07);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(27px, 4.6vw, 42px); }
h2 { font-size: clamp(21px, 3vw, 29px); }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0; }
.center { text-align: center; }
.ic { flex: none; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 10px 14px; border-radius: 8px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ── Nút ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 999px; padding: 11px 20px; font: 600 15px/1.2 var(--sans); cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 8px 20px rgba(14, 122, 98, .26); }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(14, 122, 98, .36); }
.btn--rose { background: linear-gradient(135deg, #d7748a, var(--rose)); color: #fff; box-shadow: 0 8px 20px rgba(194, 86, 110, .26); }
.btn--ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand-2); color: var(--brand); }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.btn--soft:hover { background: #d8ece7; }
.btn--danger { background: #fdf0ee; color: var(--danger); border-color: #f6d6d1; }
.btn--danger:hover { background: #fbe3df; }
.btn--sm { padding: 7px 14px; font-size: 13.5px; }
.btn--lg { padding: 14px 26px; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row--end { justify-content: flex-end; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--brand); font: 600 13.5px var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; }
.link-btn--danger { color: var(--danger); }
.link-btn:hover { text-decoration: underline; }

/* ── Đầu trang ── */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(247, 250, 249, .93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand__logo { display: block; height: 42px; width: auto; color: #000; }  /* logo SVG chèn thẳng: chữ tô currentColor */
.brand--foot .brand__logo { color: #fff; }
.brand__word { font: 700 19px var(--serif); color: var(--brand); letter-spacing: -.01em; }
.brand--foot .brand__word { color: #fff; }
.site-nav { display: flex; gap: 2px; margin-right: auto; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-weight: 500; position: relative; }
.site-nav a:hover { background: var(--bg-2); color: var(--ink); }
.site-nav a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.site-nav .dot { background: var(--rose); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 4px; }
.site-head__acc { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; width: 42px; height: 42px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.acc-menu { position: relative; }
.acc-menu > summary { list-style: none; cursor: pointer; width: 36px; height: 36px; border-radius: 999px; overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); }
.acc-menu > summary::-webkit-details-marker { display: none; }
.acc-menu img { width: 100%; height: 100%; object-fit: cover; }
.acc-menu__ini { font-weight: 700; color: var(--brand); }
.acc-menu__pop { position: absolute; right: 0; top: calc(100% + 8px); width: 252px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.acc-menu__name { margin: 6px 10px 8px; font-weight: 700; }
.acc-menu__pop a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; text-decoration: none;
  color: var(--ink-2); font-size: 14px; }
.acc-menu__pop a:hover { background: var(--bg-2); color: var(--ink); }

@media (max-width: 1000px) {
  .hide-sm { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; background: var(--card);
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 10px; border-radius: 10px; }
}

/* ── Khối chung ── */
#main { min-height: 50vh; }
.sec { padding: 34px 0; }
.sec--tight { padding: 20px 0; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec__head h2 { margin: 0 0 4px; }
.sec__head p { margin: 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.card--pad { padding: 22px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 14px; }

/* ── Thông báo ── */
.alert { border-radius: var(--r-m); padding: 12px 16px; margin: 0 0 16px; font-size: 14.5px; border: 1px solid; display: flex; gap: 9px; align-items: flex-start; }
.alert--ok { background: #eefaf3; border-color: #c6ead8; color: #1c6e46; }
.alert--err { background: #fdf0ee; border-color: #f6d6d1; color: #9e2b1c; }
.alert--info { background: var(--brand-soft); border-color: #cfe7e1; color: #0c5f4d; }
.alert--warn { background: var(--gold-soft); border-color: #f0e0bb; color: #8a5c0b; }
.alert a { color: inherit; font-weight: 600; }

/* ── Trang chủ ── */
.hero { background: linear-gradient(170deg, #ffffff 0%, var(--bg-2) 60%, #e6f1ee 100%); border-bottom: 1px solid var(--line); }
.hero__in { padding: 44px 0 38px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 34px; align-items: center; }
@media (max-width: 900px) { .hero__in { grid-template-columns: minmax(0, 1fr); padding: 30px 0 26px; } }
.hero h1 { margin: 0 0 12px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { font-size: 16.5px; color: var(--ink-2); max-width: 54ch; }
.hero__chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.hero__stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.hero__stats b { display: block; font: 700 24px var(--sans); color: var(--brand); }
.hero__stats span { font-size: 13px; color: var(--muted); }
.hero__cards { display: grid; gap: 12px; }
.hero-card { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s; }
.hero-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-card__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--brand-soft); color: var(--brand); }
.hero-card--rose .hero-card__ic { background: var(--rose-soft); color: var(--rose); }
.hero-card--gold .hero-card__ic { background: var(--gold-soft); color: var(--gold); }
.hero-card b { display: block; margin-bottom: 2px; }
.hero-card span { color: var(--muted); font-size: 13.5px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--brand-2); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip b { font-weight: 700; }
.chip__n { color: var(--muted); font-size: 12px; }
.chip.is-on .chip__n { color: rgba(255, 255, 255, .8); }

/* ── Thẻ tin tuyển ── */
.jobs { display: grid; gap: 14px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: start; box-shadow: var(--shadow-sm); }
.job:hover { border-color: #cfe3dd; }
.job__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.job__role { font-size: 12.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 3px; }
.job__title { margin: 0 0 6px; font-size: 17px; font-family: var(--sans); font-weight: 700; }
.job__title a { color: inherit; text-decoration: none; }
.job__title a:hover { color: var(--brand); }
.job__meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-2); font-size: 13.5px; margin: 0 0 6px; }
.job__meta span { display: inline-flex; align-items: center; gap: 5px; }
.job__note { color: var(--muted); font-size: 13.5px; margin: 0; }
.job__side { text-align: right; display: grid; gap: 8px; justify-items: end; }
.job__fee { font: 700 18px var(--sans); color: var(--rose); white-space: nowrap; }
.job__fee small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
@media (max-width: 680px) {
  .job { grid-template-columns: 42px minmax(0, 1fr); }
  .job__side { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .job__ic { width: 38px; height: 38px; border-radius: 11px; }
}

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--bg-2); color: var(--ink-2); }
.tag--ok { background: #eafaf2; color: var(--ok); }
.tag--warn { background: var(--gold-soft); color: var(--warn); }
.tag--err { background: #fdf0ee; color: var(--danger); }
.tag--rose { background: var(--rose-soft); color: var(--rose); }
.tag--brand { background: var(--brand-soft); color: var(--brand); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Thẻ hồ sơ người nhận việc ── */
.people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; box-shadow: var(--shadow-sm); }
.person__top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid;
  place-items: center; font: 700 18px var(--sans); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 68px; height: 68px; font-size: 26px; }
.person__name { margin: 0; font: 700 16px var(--sans); }
.person__name a { color: inherit; text-decoration: none; }
.person__name a:hover { color: var(--brand); }
.person__sub { color: var(--muted); font-size: 13px; }
.person__intro { color: var(--ink-2); font-size: 13.5px; margin: 10px 0 0; }
.person__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px;
  padding-top: 12px; border-top: 1px dashed var(--line); }

/* ── Bộ lọc ── */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; margin-bottom: 18px; }
.filters__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.filters__row--btn { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) auto; }
.filters label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.rolebar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.rolebar .chip { flex: none; }

/* ── Form ── */
.field { margin-bottom: 14px; }
.field > label, .flabel { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field__hint { color: var(--muted); font-size: 12.5px; margin: 5px 0 0; }
input[type=text], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; color: var(--ink);
  font: 15px var(--sans); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(17, 156, 125, .35); outline-offset: 1px; border-color: var(--brand-2); }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 54%, calc(100% - 12px) 54%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 8px; }
.check { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: #fff; cursor: pointer; font-size: 14px; }
.check:hover { border-color: var(--brand-2); }
.check input { margin: 2px 0 0; accent-color: var(--brand); width: 17px; height: 17px; }
.check span b { display: block; }
.check span small { color: var(--muted); }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.switch { display: inline-flex; gap: 9px; align-items: center; font-size: 14px; cursor: pointer; }
.switch input { accent-color: var(--brand); width: 18px; height: 18px; }
.money-in { position: relative; }
.money-in input { padding-right: 34px; }
.money-in::after { content: 'đ'; position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.form-foot { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line); }
.form-foot__left { margin-right: auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; margin: 0 0 18px; }
legend { padding: 0 8px; font: 700 14px var(--sans); color: var(--brand); }

/* ── Danh sách lời ứng tuyển ── */
.appl { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; background: #fff; display: grid; gap: 10px; }
.appl__top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.appl__top > div:not(.tags) { flex: 1 1 200px; min-width: 0; }
.person__foot .link-btn { white-space: nowrap; }
.appl__msg { background: var(--bg-2); border-radius: var(--r-s); padding: 10px 12px; font-size: 14px; color: var(--ink-2); margin: 0; }
.contact { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: #eefaf3; border: 1px solid #c6ead8;
  border-radius: var(--r-s); padding: 10px 12px; }
.contact a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: #1c6e46; }
.contact--lock { background: var(--bg-2); border-color: var(--line); color: var(--muted); }

/* ── Bảng chi tiêu ── */
.sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sum__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.sum__item span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.sum__item b { font: 700 21px var(--sans); font-variant-numeric: tabular-nums; }
.sum__item small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.sum__item--out b { color: var(--rose); }
.sum__item--in b { color: var(--ok); }
.sum__item--left b { color: var(--warn); }
.bar { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.bar--over > i { background: linear-gradient(90deg, #e08a7d, var(--danger)); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.tbl th, table.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.tbl th { background: var(--bg-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tbody tr:hover { background: #fbfdfc; }
table.tbl tr.is-paid td.ttl { color: var(--muted); }
table.tbl tfoot td { font-weight: 700; background: var(--bg-2); border-bottom: 0; }
.cat-head td { background: #f3f8f7; font-weight: 700; color: var(--brand); font-size: 13px; }
.row-act { display: flex; gap: 6px; justify-content: flex-end; }
.iconbtn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { border-color: var(--brand-2); color: var(--brand); }
.iconbtn--danger:hover { border-color: #f0c4bd; color: var(--danger); background: #fdf3f1; }
.paid-box { width: 22px; height: 22px; accent-color: var(--ok); cursor: pointer; }
.catbars { display: grid; gap: 9px; }
.catbar span { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 3px; }
.catbar i { display: block; height: 8px; border-radius: 999px; background: var(--brand-2); }

/* ── Ô quảng cáo ── */
.ads { margin: 26px 0; }
.ads__head { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.ads__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.ad { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.ad:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ad__img { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; flex: none; background: var(--bg-2); }
.ad__img img { width: 100%; height: 100%; object-fit: cover; }
.ad__body { display: grid; gap: 3px; align-content: start; min-width: 0; }
.ad__badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.ad__title { font-size: 15px; }
.ad__lead { font-size: 13px; color: var(--muted); }
.ad__cta { font-size: 13px; font-weight: 700; color: var(--brand); margin-top: 3px; }
.ad--offer { border-style: dashed; background: var(--gold-soft); }

/* ── Quảng cáo chéo ── */
.xpromo__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.xcard { display: grid; gap: 6px; align-content: start; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.xcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.xcard__ic { width: 42px; height: 42px; border-radius: 12px; background: var(--rose-soft); color: var(--rose); display: grid; place-items: center; margin-bottom: 4px; }
.xcard__lead { font-size: 13.5px; color: var(--muted); }
.xcard__cta { font-size: 13.5px; font-weight: 700; color: var(--brand); margin-top: 4px; }

/* ── Trang chi tiết ── */
.detail__head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; }
.detail__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin: 18px 0; }
.fact { background: var(--bg-2); border-radius: var(--r-m); padding: 12px 14px; }
.fact span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.fact b { font-size: 15px; }
.prose { color: var(--ink-2); }
.prose h2 { font-size: 20px; margin-top: 26px; }
.prose h3 { font-size: 16.5px; margin-top: 20px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 16px 0 10px; flex-wrap: wrap; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); }

/* ── Phân trang ── */
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 24px 0 0; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.pager a:hover { border-color: var(--brand-2); color: var(--brand); }
.pager .is-now { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Trạng thái rỗng ── */
.empty { text-align: center; padding: 42px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-l); }
.empty__ic { width: 56px; height: 56px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid;
  place-items: center; margin: 0 auto 14px; }
.empty h3 { margin: 0 0 6px; }
.empty p { color: var(--muted); max-width: 48ch; margin: 0 auto 16px; }

/* ── Hộp thoại ── */
dialog.modal { width: min(520px, 94vw); border: 0; border-radius: var(--r-l); padding: 0; box-shadow: 0 30px 80px rgba(10, 40, 34, .28); }
dialog.modal::backdrop { background: rgba(14, 36, 31, .5); }
.modal__in { padding: 22px; display: grid; gap: 14px; }
.modal__in h3 { margin: 0; }
.modal__in p { margin: 0; color: var(--ink-2); }

/* ── Chân trang ── */
.site-foot { background: #10342c; color: #cfe3dd; margin-top: 44px; padding: 34px 0 18px; }
.site-foot__in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 820px) { .site-foot__in { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.site-foot__tag { font-size: 13.5px; color: #a8c5bd; max-width: 56ch; }
.site-foot__tag a { color: #8fe3c9; }
.site-foot__links { display: grid; gap: 7px; align-content: start; }
.site-foot__links b { color: #fff; font-size: 14px; margin-bottom: 2px; }
.site-foot__links a { color: #cfe3dd; text-decoration: none; font-size: 14px; }
.site-foot__links a:hover { color: #fff; text-decoration: underline; }
.site-foot__copy { border-top: 1px solid rgba(255, 255, 255, .12); margin: 22px auto 0; padding-top: 14px; font-size: 13px; color: #8aa9a1; }

/* ── Bảng gợi ý xã / phường ── */
.sugg-wrap { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-s); box-shadow: var(--shadow); max-height: 240px; overflow: auto; z-index: 30; display: none; }
.sugg.is-open { display: block; }
.sugg button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; cursor: pointer;
  font: 14px var(--sans); color: var(--ink); }
.sugg button:hover, .sugg button.is-cur { background: var(--brand-soft); }

/* ── Khối giải thích 2 nửa ở trang chủ ── */
.how { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.how__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.how__item::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.how__item b { display: block; margin-bottom: 4px; }
.how__item span { color: var(--muted); font-size: 13.5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #10342c; color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: 14.5px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 90; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--err { background: #8e2a1d; }

/* ── Hướng dẫn theo vai trò (lib/guide.php) ── */
.help-btn span { white-space: nowrap; }
@media (max-width: 560px) { .help-btn span { display: none; } .help-btn { padding: 7px 9px; } }

/* Hộp hỏi lần đầu */
dialog.onboard { width: min(640px, 94vw); }
.onboard .modal__in { position: relative; padding: 26px 24px 22px; }
.onboard__x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 999px; border: 0;
  background: var(--bg-2); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.onboard__x:hover { background: #e3eeeb; }
.onboard [hidden] { display: none !important; }
.onboard h3 { font-size: 22px; padding-right: 30px; }
.ob-step { margin: 0; font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.ob-choices { display: grid; gap: 10px; margin-top: 4px; }
.ob-choice { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; border-radius: var(--r-m);
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ob-choice:hover { border-color: var(--brand-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ob-choice.is-on { border-color: var(--brand); background: var(--brand-soft); }
.ob-choice b { display: block; font-size: 15.5px; }
.ob-choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ob-choice--rose .hero-card__ic { background: var(--rose-soft); color: var(--rose); }
.ob-choice--plain .hero-card__ic { background: var(--bg-2); color: var(--muted); }
.ob-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ob-role { cursor: pointer; }
.ob-role input { position: absolute; opacity: 0; pointer-events: none; }
.ob-role span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 11px; border: 1.5px solid var(--line);
  border-radius: var(--r-s); background: #fff; font-size: 14px; font-weight: 600; }
.ob-role span small { flex-basis: 100%; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ob-role:hover span { border-color: var(--brand-2); }
.ob-role input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.ob-role input:focus-visible + span { outline: 2px solid rgba(17, 156, 125, .45); outline-offset: 1px; }
.onboard[data-type="couple"] [data-ob-q-worker], .onboard[data-type="worker"] [data-ob-q-couple] { display: none !important; }
.ob-err { margin: 8px 0 0; color: var(--danger); font-size: 13.5px; font-weight: 600; }

/* Lộ trình ở trang chủ */
.guide { margin-top: 26px; margin-bottom: 8px; background: var(--card); border: 1px solid #cfe7e1; border-radius: var(--r-l);
  padding: 22px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.guide__head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.guide__head h2 { margin: 4px 0 4px; }
.guide__head p { margin: 0; }
.guide__who { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.guide__bar { margin: 14px 0 4px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.step__no { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-weight: 700;
  background: var(--bg-2); color: var(--ink-2); }
.step__title { display: block; margin-bottom: 3px; }
.step__body p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.step__body p:last-child { margin-bottom: 0; }
.step--now { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17, 156, 125, .12); }
.step--now .step__no { background: var(--brand); color: #fff; }
.step--done { background: #f8fcfa; }
.step--done .step__no { background: var(--ok); color: #fff; }
.step--done .step__title { color: var(--muted); }
.chip.is-done { background: #eafaf2; border-color: #c6ead8; color: var(--ok); }
@media (max-width: 680px) {
  .step { grid-template-columns: 32px minmax(0, 1fr); }
  .step__cta { grid-column: 2; justify-self: start; }
}
.tips { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 18px; }
.tip { border: 1px dashed #cfe3dd; border-radius: var(--r-m); padding: 14px 16px; background: #fbfdfc; }
.tip__head { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; }
.tip__head .hero-card__ic { width: 36px; height: 36px; border-radius: 10px; }
.tip__head small { display: block; color: var(--gold); font-weight: 600; font-size: 12.5px; }
.tip ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.tip li { margin-bottom: 4px; }

/* Thanh "Bước x/y" trên trang con */
.gbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 14px 0 0; padding: 11px 14px;
  background: var(--brand-soft); border: 1px solid #cfe7e1; border-radius: var(--r-m); }
.gbar__no { width: 28px; height: 28px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; flex: none; }
.gbar__body { flex: 1 1 260px; min-width: 0; font-size: 13.5px; color: #0c5f4d; }
.gbar__body b { display: block; color: var(--ink); font-size: 14px; }
.gbar__act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 560px) {
  .ob-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ob-role span { padding: 8px 9px; font-size: 13.5px; }
  .onboard .modal__in { padding: 22px 16px 18px; }
  .onboard h3 { font-size: 19px; }
}

/* ── Trang chủ (2026-10-27 lượt 3): 3 trụ cột Tìm người ăn cưới · Nhận ăn cưới · Quản lý đám cưới ── */
.btn--gold { background: linear-gradient(135deg, #d4a24b, var(--gold)); color: #fff; box-shadow: 0 8px 20px rgba(185, 132, 44, .28); }
.btn--gold:hover { box-shadow: 0 10px 26px rgba(185, 132, 44, .38); }
.btn--rose:hover { box-shadow: 0 10px 26px rgba(194, 86, 110, .36); }
.ob-choice--gold .hero-card__ic { background: var(--gold-soft); color: var(--gold); }

.h-hero { position: relative; overflow: hidden; padding: 46px 0 34px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f4faf8 55%, var(--bg) 100%); }
.h-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.h-hero__bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.h-hero__bg i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -140px; background: #bfe6da; }
.h-hero__bg i:nth-child(2) { width: 380px; height: 380px; right: -100px; top: -60px; background: #f8d3dc; }
.h-hero__bg i:nth-child(3) { width: 340px; height: 340px; left: 45%; top: 160px; background: #f5e3bd; opacity: .4; }
.h-hero .wrap { position: relative; }
.h-hero__head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.h-kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid #cfe7e1; color: var(--brand); font-size: 13px; font-weight: 600; }
.h-hero h1 { font-size: clamp(30px, 5.4vw, 52px); margin: 0 0 14px; letter-spacing: -.01em; }
.h-hero h1 em { font-style: italic; color: var(--brand); }
.h-hero h1 em.is-gold { color: var(--gold); }
.h-hero__lead { font-size: 17px; color: var(--ink-2); margin: 0 auto; max-width: 62ch; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .pillars { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }
.pillar { --c: var(--brand); --c-soft: var(--brand-soft); --c-art: linear-gradient(135deg, #dff3ec, #c4e7dc);
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar--work { --c: var(--rose); --c-soft: var(--rose-soft); --c-art: linear-gradient(135deg, #fdeaee, #f6cbd5); }
.pillar--plan { --c: var(--gold); --c-soft: var(--gold-soft); --c-art: linear-gradient(135deg, #fdf3df, #f3dcae); }
.pillar__art { position: relative; height: 128px; background: var(--c-art); display: grid; place-items: center; }
.pillar__big { width: 74px; height: 74px; border-radius: 22px; background: #fff; color: var(--c); display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .1); transform: rotate(-4deg); }
.pillar__mini { position: absolute; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .88); color: var(--c);
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .07); animation: plFloat 5s ease-in-out infinite; }
.pillar__mini--1 { left: 18%; top: 22px; }
.pillar__mini--2 { right: 17%; top: 16px; animation-delay: -1.6s; }
.pillar__mini--3 { right: 26%; bottom: 14px; animation-delay: -3.2s; }
@keyframes plFloat { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .pillar__mini { animation: none; } .pillar:hover { transform: none; } }
.pillar__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pillar__who { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.pillar h2 { font-size: 25px; margin: 0 0 8px; }
.pillar__body > p { color: var(--ink-2); font-size: 14.5px; }
.pillar__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); }
.pillar__list li { display: flex; gap: 8px; align-items: flex-start; }
.pillar__list .ic { color: var(--c, var(--brand)); margin-top: 3px; }
.pillar__act { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pillar__act .btn { width: 100%; }
.pillar__act .link-btn { color: var(--c); }

.h-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding: 16px 20px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: var(--r-m); text-align: center; }
.h-stats b { display: block; font: 700 24px var(--sans); color: var(--brand); }
.h-stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .h-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } }

.feat { --c: var(--brand); --c-soft: var(--brand-soft); padding: 40px 0 18px; }
.feat--work { --c: var(--rose); --c-soft: var(--rose-soft); }
.feat--plan { --c: var(--gold); --c-soft: var(--gold-soft); }
.feat__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.feat__head > div { flex: 1; min-width: 220px; }
.feat__head h2 { margin: 0 0 2px; }
.feat__head p { margin: 0; color: var(--muted); }
.feat__no { width: 54px; height: 54px; border-radius: 16px; background: var(--c-soft); color: var(--c); display: grid; place-items: center;
  font: 700 21px var(--serif); flex: none; }
.feat__sub { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.feat__sub h3 { margin: 0; }
.feat .link-btn { color: var(--c); }
.feat .chip:hover { border-color: var(--c); }

.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.role-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: var(--r-m);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.role-tile:hover { transform: translateY(-2px); border-color: var(--brand-2); box-shadow: var(--shadow-sm); }
.role-tile__ic { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.role-tile b { font-size: 14.5px; line-height: 1.3; }
.role-tile small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.plan-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 30px; align-items: center;
  background: linear-gradient(135deg, #fffaf0, #fdf4e3); border: 1px solid #f0e0bb; border-radius: var(--r-l); padding: 28px; }
@media (max-width: 900px) { .plan-demo { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.pillar__list--lg { font-size: 15px; gap: 12px; margin-bottom: 22px; }
.pillar__list--lg b { color: var(--ink); }
.plan-demo__card { background: var(--card); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 18px; border: 1px solid #f0e0bb; }
.plan-demo__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.plan-demo__top b { display: block; font: 700 17px var(--serif); }
.plan-demo__top small { color: var(--muted); font-size: 12.5px; }
.plan-demo__bar { height: 9px; border-radius: 999px; background: #f3ead6; margin: 14px 0 6px; overflow: hidden; }
.plan-demo__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d4a24b, var(--gold)); }
.plan-demo__cap { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; flex-wrap: wrap; }
.plan-demo__cap b { color: var(--ink); }
.plan-demo__rows { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.plan-demo__rows li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px dashed var(--line); }
.plan-demo__rows li span { flex: 1; min-width: 0; }
.plan-demo__rows li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.plan-demo__rows li > i, .plan-demo__rows li > .ic { width: 18px; height: 18px; flex: none; border-radius: 5px; }
.plan-demo__rows li > i { border: 1.5px solid #cdd8d4; }
.plan-demo__rows li > .ic { background: var(--ok); color: #fff; padding: 2px; }
.plan-demo__rows li.is-paid span { color: var(--muted); text-decoration: line-through; }
.plan-demo__sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.plan-demo__sum div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.plan-demo__sum small { display: block; font-size: 12px; color: var(--muted); }
.plan-demo__sum b { font: 700 17px var(--sans); font-variant-numeric: tabular-nums; }
.plan-demo__sum .is-in { color: var(--ok); }
.plan-demo__sum .is-left { color: var(--warn); }
.h-hero__head { max-width: 920px; }
.h-hero h1 em { white-space: nowrap; }
@media (max-width: 560px) {
  .h-hero { padding: 30px 0 26px; }
  .h-hero__lead { font-size: 15.5px; }
  .role-tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 9px; padding: 10px 11px; }
  .role-tile__ic { width: 32px; height: 32px; margin: 0; }
  .role-tile small { flex-basis: 100%; }
  .feat { padding-top: 30px; }
  .feat__no { width: 44px; height: 44px; font-size: 18px; border-radius: 13px; }
  .feat__head > div { min-width: 0; flex-basis: calc(100% - 60px); }
}
