/* =========================================================
   TRANG CHỦ — mobile-first, lề 16px, không cuộn ngang
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #fbf6f0; --bg2: #f4ebe1; --card: #fffdfa; --ink: #2a1d1f; --muted: #6f5e59;
  --wine: #7a1f2b; --rose: #c4876b; --rose-t: #98563b; /* --rose-t: chữ nhỏ trên nền sáng (≥4.5:1) */ --gold: #d6a756; --line: #eadfd3;
  --serif: "Playfair Display", Georgia, serif; --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --r: 18px; --maxw: 1180px; --gut: 16px;
}
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: hidden; }
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button { font: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
.ink { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid var(--wine); min-height: 44px; transition: transform .2s, box-shadow .2s, background .2s; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn--main { background: var(--wine); color: #fff; box-shadow: 0 10px 24px rgba(122,31,43,.25); }
.btn--line { color: var(--wine); background: transparent; }
.btn--line:hover { background: rgba(122,31,43,.06); }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Đầu trang ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(var(--gut), calc((100% - var(--maxw)) / 2)); background: rgba(251,246,240,.85); backdrop-filter: blur(12px); transition: box-shadow .3s; }
.top.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(42,29,31,.05); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 22px var(--serif); color: var(--wine); }
.logo svg { width: 34px; height: 34px; }
.logo span { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--wine); }
.nav .nav-cta { color: #fff; background: var(--wine); padding: 9px 18px; border-radius: 999px; }
.nav-acc { font-weight: 600; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.burger i { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: fixed; top: 66px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: var(--card); border-radius: var(--r); box-shadow: 0 20px 50px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .25s; }
  .nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav .nav-cta { text-align: center; margin-top: 6px; }
  .burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Ảnh bìa ---------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gut) 56px; position: relative; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -80px -20vw auto auto; width: 60vw; height: 600px; z-index: -1; background: radial-gradient(closest-side, rgba(196,135,107,.22), transparent); }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--wine); }
.hero h1 { font: 500 clamp(32px, 5.2vw, 58px)/1.18 var(--serif); margin: 16px 0; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 em { color: var(--wine); font-style: italic; }
.lead { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto 24px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; flex-direction: column; align-items: center; }
.hero-cta .btn { width: min(100%, 300px); }
.hero-note { margin: 18px auto 0; font-size: 14px; color: var(--muted); max-width: 460px; }
.hero-phone { display: grid; justify-items: center; gap: 16px; }
.phone { position: relative; width: min(270px, 70vw); aspect-ratio: 9/19.2; border-radius: 42px; padding: 11px; background: #1d1719; box-shadow: 0 40px 80px rgba(42,29,31,.3), inset 0 0 0 2px #3a3033; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; position: relative; }
.phone-screen iframe { position: absolute; top: 0; left: 0; width: 390px; height: calc(100% / var(--k, .64)); border: 0; transform: scale(var(--k, .64)); transform-origin: 0 0; }
.notch { position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 20px; background: #1d1719; }
.phone--sm { width: min(230px, 62vw); border-radius: 36px; padding: 9px; }
.phone--sm .phone-screen { border-radius: 28px; }
.phone--sm .notch { top: 14px; width: 70px; height: 18px; margin-left: -35px; }
.phone-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 380px; }
.phone-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.phone-chips button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.phone-chips button.on { border-color: var(--c); color: var(--ink); font-weight: 600; }
@media (min-width: 901px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 40px var(--gut) 70px; text-align: left; }
  .lead { margin-inline: 0; }
  .hero-cta { flex-direction: row; justify-content: flex-start; }
  .hero-cta .btn { width: auto; }
  .hero-note { margin-inline: 0; }
  .phone { width: min(320px, 78vw); border-radius: 46px; padding: 12px; }
  .phone-screen { border-radius: 35px; }
}

/* ---------- Khối chung ---------- */
.sec { padding: clamp(56px, 8vw, 100px) var(--gut); }
.sec > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.sec--tint { background: var(--bg2); }
.sec-head { text-align: center; margin-bottom: 36px; }
.kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-t); margin-bottom: 10px; padding-left: .22em; }
.sec-head h2, .order-info h2 { font: 500 clamp(26px, 4vw, 42px)/1.2 var(--serif); text-wrap: balance; }
.sec-head p { color: var(--muted); margin: 12px auto 0; max-width: 600px; text-wrap: pretty; }
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Điểm đặc biệt ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feat { background: var(--card); border-radius: var(--r); padding: 22px 20px; border: 1px solid var(--line); }
/* Đợt 20 (Impeccable: tránh "ô icon vuông bo góc đặt trên tiêu đề"): icon đứng cạnh tiêu đề, không có ô riêng */
.feat:not(.feat--env) { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
.feat:not(.feat--env) .feat-ic { grid-row: 1 / span 3; margin-top: 2px; }
.feat-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 0; background: none; color: var(--wine); margin-bottom: 0; }
.feat-ic svg { width: 36px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font: 500 20px/1.3 var(--serif); margin-bottom: 6px; text-wrap: balance; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.feat > a { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--wine); font-size: 14px; }
.feat--env { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.feat--env .feat-ic { width: 50px; height: 50px; }
.feat--env .feat-ic svg { width: 26px; height: 26px; }
.feat--env h3 { font-size: 24px; }
.feat-env-phone { display: grid; justify-items: center; }
.env-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 16px; }
.env-chips button, .mix-chips--env button { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; min-height: 64px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.2; position: relative; text-align: center; }
.env-chips svg, .mix-chips--env svg { width: 34px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--wine); }
.env-chips button i, .mix-chips button i { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 11px; color: #9a6a12; }
.env-chips button.on, .mix-chips--env button.on { border-color: var(--wine); background: rgba(122,31,43,.06); box-shadow: 0 0 0 2px rgba(122,31,43,.12); font-weight: 600; }
.env-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.env-note b { color: var(--wine); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; gap: 16px; } .feat { padding: 26px; } }
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feat--env { grid-template-columns: 1fr 250px; gap: 32px; padding: 32px; }
  .feat--env .phone--sm { width: 230px; }
  .feat--env.feat--env > :first-child { grid-column: auto; }
}
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } .feat--env { grid-column: 1 / -1; } }

/* ---------- Thử phối ngay ---------- */
.mixer { display: grid; grid-template-columns: 1fr; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px 16px; box-shadow: 0 24px 50px rgba(42,29,31,.06); }
/* điện thoại: khung xem trước lên đầu, 3 nút hành động xuống cuối (sau phần chọn) */
.mix-view { display: contents; }
.mix-view .phone { justify-self: center; order: -2; }
.mix-cur { order: -1; justify-self: center; }
.mix-btns { order: 1; justify-self: center; }
.mix-ctl { display: grid; gap: 18px; min-width: 0; }
.mix-g { border: 0; padding: 0; margin: 0; min-width: 0; }
.mix-g legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.mix-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mix-chips button, .mix-found button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 13px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; position: relative; }
.mix-chips button i { position: static; margin-left: 2px; }
.mix-chips button.on { border-color: var(--wine); background: rgba(122,31,43,.07); font-weight: 600; box-shadow: 0 0 0 2px rgba(122,31,43,.12); }
#mixTpls button::before, .mix-found button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.mix-chips--env { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.mix-chips--env button { display: grid; border-radius: 12px; }
.mix-search { display: grid; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 500; }
.mix-search input, .mix-sel select { width: 100%; font: inherit; padding: 11px 14px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.mix-search input:focus, .mix-sel select:focus { outline: 2px solid var(--wine); outline-offset: 2px; border-color: var(--wine); }
.mix-found { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mix-found:empty { display: none; }
.mix-sel { display: block; }
.mix-prem { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff7e8; border: 1px solid #f0d9a8; font-size: 14px; line-height: 1.5; }
.mix-cur { margin: 0; font-size: 14px; color: var(--muted); text-align: center; max-width: 320px; text-wrap: balance; }
.mix-cur b { color: var(--ink); }
.mix-btns { display: grid; gap: 8px; width: min(100%, 320px); }
.mix-btns .btn { width: 100%; }
@media (min-width: 900px) {
  .mixer { grid-template-columns: 1fr 360px; gap: 36px; padding: 32px; align-items: start; }
  .mix-view { display: grid; justify-items: center; gap: 14px; position: sticky; top: 84px; }
  .mix-view .phone, .mix-cur, .mix-btns { order: 0; }
}

/* ---------- Kho mẫu ---------- */
.tier-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 900px !important; margin-bottom: 16px; }
.tier-tabs button { display: grid; justify-items: center; gap: 2px; padding: 10px 8px; min-height: 44px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.tier-tabs button small { font-weight: 500; color: var(--muted); }
.tier-tabs button em { display: none; font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.tier-tabs button.on { border-color: var(--wine); background: rgba(122,31,43,.05); box-shadow: 0 0 0 3px rgba(122,31,43,.08); }
.tier-tabs .tt-cao-cap { background: linear-gradient(135deg, #2a1d1f, #4a2a2e); color: #f6e4c8; border-color: #2a1d1f; }
.tier-tabs .tt-cao-cap small, .tier-tabs .tt-cao-cap em { color: #d9c3a8; }
.tier-tabs .tt-cao-cap.on { box-shadow: 0 0 0 3px rgba(214,167,86,.5); }
@media (min-width: 701px) { .tier-tabs { grid-template-columns: repeat(4, 1fr); gap: 10px; } .tier-tabs button { padding: 14px 10px; font-size: 15px; } .tier-tabs button em { display: block; } }
.tools { display: grid; gap: 12px; margin-bottom: 10px; }
.tools-search { display: block; width: min(520px, 100%); margin: 0 auto; }
.tools input { width: 100%; font: inherit; padding: 12px 18px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.tools input:focus { outline: 2px solid var(--wine); outline-offset: 2px; border-color: var(--wine); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filters button { display: inline-flex; align-items: baseline; gap: 4px; border: 1px solid var(--line); background: #fff; padding: 9px 16px; min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: .2s; }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.result-count { text-align: center; color: var(--muted); font-size: 14px; margin: 6px auto 18px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 561px) { .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; } }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(42,29,31,.12); }
.card-img { display: block; position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bgc); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.06); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(10,6,8,.18) 55%, color-mix(in srgb, var(--p) 40%, #140b0e) 100%); }
.card-names { position: absolute; z-index: 1; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font-size: 30px; line-height: 1.15; padding: 0 12px; text-wrap: balance; text-shadow: 0 2px 4px rgba(0,0,0,.45), 0 0 18px rgba(0,0,0,.35); }
.card-names i { font-style: normal; color: color-mix(in srgb, var(--a) 55%, #fff); font-size: .7em; }
.tier { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.tier--co-ban { background: rgba(255,255,255,.94); color: #2a1d1f; }
.tier--trung-binh { background: #f6e4c8; color: #6b3f0d; }
.tier--cao-cap { background: #1d1719; color: #e8cf96; }
.card--vip { border-color: #d6c19a; box-shadow: 0 0 0 1px rgba(214,167,86,.35); }
.card-hover { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -30%); opacity: 0; padding: 10px 20px; border-radius: 999px; background: rgba(255,255,255,.95); font-weight: 600; font-size: 14px; transition: .3s; }
.card:hover .card-hover { opacity: 1; transform: translate(-50%, -50%); }
.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card h3 { font: 500 21px var(--serif); }
.card h3 small { font: 600 12px var(--sans); color: var(--rose-t); margin-right: 4px; vertical-align: middle; }
.dots { display: flex; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; box-shadow: 0 0 0 1px var(--line); }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.card .card-tags { font-size: 12px; color: var(--rose-t); font-weight: 500; }
.price-tag { color: var(--wine); }
.card-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.card-btns .btn { flex: 1; }
.more { text-align: center; margin-top: 30px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }
@media (max-width: 560px) {
  .card { border-radius: 14px; }
  .card-names { font-size: 20px; bottom: 10px; padding: 0 6px; }
  .tier { top: 8px; left: 8px; font-size: 9px; padding: 3px 7px; }
  .card-body { padding: 10px 10px 12px; }
  .card-top .dots { display: none; }
  .card h3 { font-size: 16px; }
  .card h3 small { display: none; }
  .card p { font-size: 12px; line-height: 1.45; }
  .card .card-tags { display: none; }
  .card-btns { flex-direction: column; gap: 6px; padding-top: 10px; }
  .card-btns .btn { padding: 10px 8px; font-size: 13px; min-height: 44px; }
  .card-hover { display: none; }
}

/* ---------- Chi phí ---------- */
.cost { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 1000px !important; }
.cost-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 24px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 50px rgba(42,29,31,.06); }
.cost-card > b { font: 600 44px/1 var(--serif); color: var(--wine); }
.cost-card h3 { font: 500 22px/1.25 var(--serif); text-wrap: balance; }
.cost-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; text-wrap: pretty; }
.cost-card .btn { align-self: flex-start; margin-top: 8px; }
.cost-card--prem { color: #f6e4c8; background: linear-gradient(150deg, #3a1d24, #1d1316); /* bỏ quầng vàng loang (Impeccable: radial-spotlight-glow) */ border-color: rgba(214,167,86,.45); }
.cost-card--prem > b { color: var(--gold); }
.cost-card--prem p { color: #e8d6bf; }
.cost-card--prem .btn--line { color: var(--gold); border-color: var(--gold); }
.cost-card--prem .btn--line:hover { background: rgba(214,167,86,.12); }
.cost-card--dom > b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-t); font-family: var(--sans); }
@media (min-width: 760px) { .cost { grid-template-columns: 1.1fr 1fr; } .cost-card--dom { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .cost { grid-template-columns: 1.1fr 1fr .9fr; } .cost-card--dom { grid-column: auto; } }

/* ---------- Quy trình ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; position: relative; }
.steps li { text-align: center; padding: 0 4px; position: relative; }
.steps b { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #fff; border: 2px solid var(--rose); font: 600 22px var(--serif); color: var(--wine); }
.steps h3 { font: 500 19px var(--serif); }
.steps p { color: var(--muted); font-size: 14px; margin: 6px 0 0; text-wrap: pretty; }
@media (min-width: 761px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(50% + 40px); right: calc(-50% + 40px); border-top: 2px dashed var(--line); }
}

/* ---------- Đặt thiệp ---------- */
.order { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.order-info p { color: var(--muted); text-wrap: pretty; }
.contact { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact a { display: flex; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.contact b { min-width: 86px; color: var(--wine); }
.order-form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(42,29,31,.06); }
.order-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.order-form input, .order-form select, .order-form textarea { width: 100%; font: inherit; font-weight: 400; padding: 12px 14px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: 2px solid var(--wine); outline-offset: 2px; border-color: var(--wine); }
.row2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.order-sum { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg2); font-size: 14px; }
.order-sum img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.order-sum span { color: var(--muted); }
.form-msg { margin: 0; font-size: 14px; color: #2f6b3a; }
.form-msg pre { white-space: pre-wrap; background: var(--bg2); padding: 12px; border-radius: 10px; color: var(--ink); }
.order-form .hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; margin: -1px !important; overflow: hidden; clip-path: inset(50%); }
.form-msg .saved { display: block; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: #eaf5ec; color: #24563a; line-height: 1.5; }
.form-msg .saved a { color: inherit; font-weight: 700; }
.form-msg .saved.warn { background: #fdf0ec; color: #8a2f1c; }
.pay-box { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 14px; background: #fff7e8; border: 1px solid #f0d9a8; color: var(--ink); text-align: left; font-size: 14px; line-height: 1.5; }
.pay-qr { flex: 0 0 112px; background: #fff; padding: 4px; border-radius: 8px; }
.pay-qr svg { width: 100%; height: auto; display: block; }
.thanks-donate { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--bg2); color: var(--ink); text-align: left; }
.thanks-donate img { flex: 0 0 72px; border-radius: 8px; background: #fff; padding: 4px; }
.linkish { border: 0; background: none; padding: 0; color: var(--wine); font-weight: 700; text-decoration: underline; font-size: inherit; }
/* thiết kế riêng đi kèm đơn */
.mix-link { display: inline-block; margin: -4px 0 10px; font-size: 14px; font-weight: 600; color: var(--wine); }
.mix { margin: -2px 0 10px; padding: 10px 12px; border-radius: 12px; background: #fbf1e3; font-size: 14px; line-height: 1.5; }
.mix a, .mix .linkish { color: inherit; font-weight: 600; }
/* kiểm tra tên miền riêng */
.dom { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.dom-row { display: flex; gap: 8px; }
.dom-row input { flex: 1; min-width: 0; }
.dom-btn { flex: 0 0 auto; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--wine); }
.dom-res ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.dom-res li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--bg2); font-weight: 400; }
.dom-res li b { font-weight: 600; overflow-wrap: anywhere; }
.dom-st { grid-column: 1; font-size: 12px; color: var(--muted); }
.dom-price { grid-column: 1; font-size: 12px; color: var(--ink); }
.dom-res li > .dom-pick, .dom-res li > .dom-links { grid-column: 2; grid-row: 1 / span 3; }
.is-ok .dom-st { color: #24563a; font-weight: 600; }
.is-taken { opacity: .7; } .is-taken b { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.dom-pick { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--wine); color: #fff; font: 600 13px var(--sans); cursor: pointer; }
.picked { outline: 2px solid var(--wine); } .picked .dom-pick { background: #24563a; }
.dom-links { font-size: 12px; text-align: right; } .dom-links a, .dom-price a, .dom-note a { color: var(--wine); font-weight: 600; }
.dom-note, .dom-wait { margin: 6px 0 0; font-size: 12px; font-weight: 400; color: var(--muted); }
@media (min-width: 481px) { .row2 { grid-template-columns: 1fr 1fr; } .order-form { padding: 28px; } }
@media (min-width: 861px) { .order { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
@media (max-width: 480px) { .pay-box { flex-direction: column; text-align: center; } .pay-qr { flex-basis: auto; width: 180px; } }

/* ---------- Hỏi đáp ---------- */
.faq { max-width: 780px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--rose); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); text-wrap: pretty; }

/* ---------- Ủng hộ tác giả ---------- */
.donate { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 48px); box-shadow: 0 30px 60px rgba(42,29,31,.06); text-align: center; }
.donate h2 { font: 500 clamp(24px, 3.4vw, 36px)/1.2 var(--serif); margin-bottom: 12px; text-wrap: balance; }
.donate-txt p { color: var(--muted); margin: 0 0 20px; text-wrap: pretty; }
.donate-txt p b { color: var(--wine); }
.donate-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; }
.donate-info li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--bg2); font-size: 15px; }
.donate-info li span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.donate-info b { font-weight: 600; word-break: break-all; }
.donate-info button { border: 1px solid var(--wine); color: var(--wine); background: #fff; border-radius: 999px; padding: 10px 14px; min-height: 44px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.donate-qr { margin: 0; text-align: center; order: -1; }
.donate-qr img { width: 100%; max-width: 240px; height: auto; margin: 0 auto; padding: 14px; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 16px 36px rgba(42,29,31,.1); }
.donate-qr figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (min-width: 761px) {
  .donate { grid-template-columns: 1.3fr .7fr; gap: 48px; text-align: left; }
  .donate-qr { order: 0; }
  .donate-info li { grid-template-columns: 110px 1fr auto; }
  .donate-info li span { grid-column: auto; }
}
.donate-float { position: fixed; right: 84px; bottom: 25px; z-index: 40; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--gold); color: #2a1a00; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 10px 24px rgba(214,167,86,.45); }
.donate-float span { color: var(--wine); font-size: 16px; }
.zalo-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #0068ff; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 26px rgba(0,104,255,.4); animation: ring 2.5s ease-in-out 3; }
@keyframes ring { 0%, 100% { box-shadow: 0 10px 26px rgba(0,104,255,.4), 0 0 0 0 rgba(0,104,255,.4); } 50% { box-shadow: 0 10px 26px rgba(0,104,255,.4), 0 0 0 12px rgba(0,104,255,0); } }
.donate-dlg { border: 0; border-radius: 24px; padding: 28px 24px 24px; width: min(380px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; text-align: center; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.donate-dlg::backdrop { background: rgba(42,29,31,.55); backdrop-filter: blur(3px); }
.donate-dlg h2 { font: 500 26px var(--serif); margin-bottom: 6px; }
.donate-dlg > p { margin: 0 0 14px; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.donate-dlg > p b { color: var(--wine); }
.donate-dlg img { width: 200px; height: 200px; margin: 0 auto 14px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.donate-dlg .donate-info { text-align: left; }
.donate-dlg .donate-info li { grid-template-columns: 1fr auto; padding: 8px 12px; font-size: 14px; }
.donate-dlg .donate-info li span { grid-column: 1 / -1; font-size: 12px; }
.dlg-x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg2); font-size: 24px; line-height: 1; color: var(--ink); }
.dlg-save { margin-top: 14px; }
@media (max-height: 760px) { .donate-dlg img { width: 170px; height: 170px; } .donate-dlg > p { margin-bottom: 10px; } }

/* ---------- Chân trang ---------- */
.foot { background: var(--ink); color: #d9cbc4; padding: 56px var(--gut) 30px; }
.foot-in { max-width: var(--maxw); margin: 0 auto 30px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot .logo { color: var(--gold); }
.foot .logo span { color: #fff; }
.foot .contact { margin: 0; grid-template-columns: 1fr; }
.foot .contact a { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.foot .contact b { color: var(--gold); }
.foot > small { display: block; max-width: var(--maxw); margin: 0 auto; font-size: 13px; opacity: .7; }
.foot-author { margin: 6px 0 0; font-size: 14px; }
.foot-author b { color: var(--gold); }
@media (min-width: 601px) { .foot .contact { grid-template-columns: 1fr 1fr; } }

/* ===== Căn chữ giữa nút (bù theo font, xem applyFontNudge) ===== */
.btn, .btn--sm, .nav .nav-cta, .filters button, .phone-chips button, .donate-info button, .card-btns .btn, .pill, .tier, .mix-chips button, .mix-found button {
  line-height: 1.25; white-space: nowrap;
  padding-top: calc(var(--py, 14px) + var(--nudge, 0em));
  padding-bottom: calc(var(--py, 14px) - var(--nudge, 0em));
}
.btn--sm, .nav .nav-cta, .filters button { --py: 10px; }
.phone-chips button, .mix-chips button, .mix-found button { --py: 8px; }
.donate-info button { --py: 9px; }
.pill { --py: 7px; }
.tier { --py: 4px; }
.env-chips button, .mix-chips--env button { white-space: normal; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 560px) { .card-btns .btn { --py: 10px; } .tier { --py: 3px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } .rv { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Đợt 20: đoạn văn không dài quá ~70 ký tự mỗi dòng (Impeccable: line-length) */
.feat p, .feat-env-txt p, .faq p, .cost-card p, .order-info p, .hero > p, .sec > p { max-width: 560px; } /* ≈ 75 ký tự Be Vietnam Pro 15px (đơn vị ch của font này rộng, 70ch = 710px) */

/* Đợt 20 — theo phê bình thiết kế */
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
@media (max-width: 560px) {
  .donate-float { display: none; } /* vẫn còn mục #ung-ho + chân trang; không tranh chỗ ngón cái với nút đặt thiệp */
  .foot { padding-bottom: 96px; }
  .env-chips { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; grid-template-columns: none; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .env-chips button { scroll-snap-align: start; }
}
.donate-float { display: none !important; } /* Đợt 23: bán 99k, không còn kêu gọi ủng hộ; mã QR ủng hộ in sẵn tên cũ */

/* ========== Đợt 26 — màn đầu trang chủ làm lại ==========
   Tiêu đề ngắn 2 dòng, một câu phụ, 3 điểm tin cậy, 2 nút gọn; điện thoại: khung thiệp lên ngay trong màn đầu. */
.hero { padding-top: 12px; gap: 22px; }
.hero h1 { font-size: clamp(36px, 10vw, 68px); line-height: 1.08; margin: 6px 0 14px; }
.hero h1 em { display: block; }
.lead { font-size: 16.5px; line-height: 1.55; color: color-mix(in srgb, var(--muted) 70%, var(--ink)); margin-bottom: 18px; max-width: 470px; }
.trust { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.trust li { display: inline-block; padding: 7px 12px 7px 32px; position: relative; line-height: 1.3; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.trust li::before { content: ""; position: absolute; left: 11px; top: 50%; margin-top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.6 7.2l2.2 2.1 4.6-4.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.trust li b { color: var(--wine); }
.hero-cta { flex-direction: row; justify-content: center; gap: 10px; }
.hero-cta .btn { width: auto; flex: 1 1 0; max-width: 220px; min-height: 50px; padding: 0 14px; white-space: nowrap; }
.hero-phone { gap: 14px; }
@media (max-width: 900px) {
  .phone { width: min(250px, 64vw); border-radius: 38px; padding: 10px; }
  .phone-screen { border-radius: 29px; }
}
@media (max-width: 380px) { .hero-cta .btn { font-size: 14px; padding: 0 10px; } .trust li { font-size: 12.5px; padding: 6px 10px; } }
@media (min-width: 901px) {
  .hero { min-height: calc(100svh - 72px); padding-top: 24px; padding-bottom: 48px; align-content: center; }
  .hero h1 { font-size: clamp(54px, 5.2vw, 76px); margin-top: 0; }
  .lead { font-size: 18px; max-width: 500px; }
  .trust { justify-content: flex-start; }
  .hero-cta { justify-content: flex-start; }
  .hero-cta .btn { flex: 0 0 auto; padding: 0 26px; }
}

/* Đợt 26 — thanh cuộn trang mảnh, cùng tông rượu vang (khung điện thoại bên trong đã ẩn hẳn, xem invite.css) */
html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--wine) 35%, transparent) transparent; }
