/* Thư Viện Quy Hoạch – hệ thống thiết kế tông CAM: cam đậm (hành động), cam sáng (nhấn), nâu đậm (chữ), vàng đất (lưu ý), đỏ trầm (cảnh báo).
   Tên biến cũ (--navy/--teal) được giữ để không phải sửa toàn bộ CSS – giá trị đã đổi sang tông cam. */
:root {
  --navy: #2B1A10; --navy-2: #4A2B17; --ink: #2B1A10; --muted: #6B5646; --line: #F0DECF; --bg: #FFF8F2; --surface: #FFFFFF;
  --teal: #C2410C; --teal-2: #9A3412; --teal-soft: #FFEDD5; --brand: #F97316; --brand-2: #EA580C; --earth: #B7791F; --earth-soft: #FBF2E2; --red: #A23B3B; --red-soft: #F8E7E7;
  --violet: #6B4FA0; --radius: 14px; --shadow: 0 1px 2px rgba(124,45,18,.06), 0 6px 24px rgba(124,45,18,.07);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
a { color: var(--teal-2); }
a:hover { color: var(--navy); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #FDBA74; outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mb1 { margin-bottom: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.announce { background: var(--earth); color: #fff; font-size: .9rem; padding: 6px 0; text-align: center; }
.site-header { background: #fff; color: var(--ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(124,45,18,.03); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand svg { flex: none; }
.brand small { display: block; font-weight: 600; font-size: .7rem; color: var(--brand-2); letter-spacing: .06em; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a, .nav button.linklike { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .94rem; background: none; border: 0; font: inherit; cursor: pointer; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-2); }
.nav a.btn, .nav a.btn:hover { color: #fff; background: var(--teal); }
.nav .btn { margin-left: 6px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 10px; font: inherit; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(124,45,18,.08); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .96rem; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; background: var(--teal); color: #fff; text-decoration: none; cursor: pointer; min-height: 44px; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--teal-2); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-2); }
.btn-dark { background: var(--navy); } .btn-dark:hover { background: var(--navy-2); }
.btn-earth { background: var(--earth); } .btn-earth:hover { background: #9A6519; }
.btn-danger { background: var(--red); } .btn-danger:hover { background: #862F2F; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .86rem; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Cards & sections */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.section { padding: 56px 0; }
.page { padding-top: 28px; padding-bottom: 64px; }
.page-head { margin-bottom: 20px; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--teal-2); }

/* Callouts */
.note { border-radius: 12px; padding: 14px 16px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.note svg { flex: none; margin-top: 2px; }
.note-info { background: var(--teal-soft); border-color: #FED7AA; }
.note-warn { background: var(--earth-soft); border-color: #EBCF9F; }
.note-danger { background: var(--red-soft); border-color: #E6BDBD; }
.note p:last-child { margin-bottom: 0; }

/* Chips trạng thái dữ liệu: luôn có chữ + biểu tượng, không chỉ màu */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px 3px 7px; border-radius: 99px; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 9%, transparent); white-space: nowrap; line-height: 1.5; }
.chip::before { content: ''; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.chip-co_nguon { color: #C2410C; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.6-4.8' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.chip-nguoi_dung { color: #3D5A80; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='5' r='3.2'/%3E%3Cpath d='M1.5 15a6.5 5.5 0 0 1 13 0z'/%3E%3C/svg%3E"); }
.chip-chua_xac_minh, .chip-tham_khao { color: #8A5A00; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3Cpath d='M6 6a2 2 0 1 1 2 2v1.5' stroke='white' stroke-width='1.8' fill='none'/%3E%3Ccircle cx='8' cy='12' r='1' fill='white'/%3E%3C/svg%3E"); }
.chip-tham_khao { color: #6B5646; }
.chip-du_lieu_cu { color: #9A5B00; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 4v4.5l3 1.5' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.chip-khong_du { color: #6B5646; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3Crect x='4' y='7' width='8' height='2' fill='white'/%3E%3C/svg%3E"); }
.chip-mau_thuan { color: var(--red); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l7.5 13.5H.5z'/%3E%3Crect x='7.1' y='5.5' width='1.8' height='5' fill='white'/%3E%3Ccircle cx='8' cy='12.3' r='1' fill='white'/%3E%3C/svg%3E"); }
.chip-minh_hoa { color: var(--violet); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0l8 8-8 8-8-8z'/%3E%3C/svg%3E"); }
.conf { display: inline-block; font-weight: 700; font-size: .84rem; padding: 4px 12px; border-radius: 99px; color: #fff; }
.conf-cao { background: #C2410C; } .conf-trung_binh { background: #A86B00; } .conf-thap { background: var(--red); } .conf-khong_du { background: #6B5646; }
.layer-tag { font-size: .68rem; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; }
.layer-fact { background: var(--teal-soft); color: var(--teal-2); }
.layer-interpretation { background: #FBEBDD; color: #2C4A6E; }
.layer-recommendation { background: var(--earth-soft); color: #8A5A13; }
.badge { display: inline-block; font-size: .76rem; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: #F6EBE1; color: var(--navy); }
.badge-ok { background: var(--teal-soft); color: var(--teal-2); } .badge-warn { background: var(--earth-soft); color: #8A5A13; } .badge-bad { background: var(--red-soft); color: var(--red); }

/* Forms */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.req::after { content: ' *'; color: var(--red); }
.opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #E3CDBB; border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(249,115,22,.22); outline: none; }
.field { margin-bottom: 16px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: .84rem; color: var(--red); margin-top: 4px; font-weight: 600; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.form-error { background: var(--red-soft); color: var(--red); border: 1px solid #E6BDBD; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-weight: 600; }
.form-ok { background: var(--teal-soft); color: var(--teal-2); border: 1px solid #FED7AA; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-weight: 600; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
legend { font-weight: 800; color: var(--navy); padding: 0 6px; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.suffix { position: relative; } .suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.suffix input { padding-right: 46px; }

/* Hero */
.hero { background: radial-gradient(900px 480px at 90% 0%, #FDBA74 0%, transparent 62%), radial-gradient(700px 400px at 0% 100%, #FFE4CC 0%, transparent 70%), #FFF3E8; color: var(--ink); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero h1 { color: var(--navy); max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero p.lead { font-size: 1.12rem; color: #5A4636; max-width: 54ch; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-search { background: #fff; border-radius: 14px; padding: 8px; display: flex; gap: 8px; max-width: 580px; box-shadow: 0 12px 40px rgba(194,65,12,.18); border: 1px solid #FED7AA; }
.hero-search input { border: 0; min-height: 48px; font-size: 1.02rem; }
.hero-search input:focus { box-shadow: none; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: .92rem; color: #6B5646; font-weight: 600; }
.hero-meta span::first-letter { color: var(--brand-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-art { position: relative; justify-self: center; }
.hero-art img { width: min(380px, 80vw); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); transform: rotate(2deg); background: #fff; }
.hero-art .tag { position: absolute; left: -18px; bottom: 40px; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; }
.steps-h { counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps-h { grid-template-columns: repeat(4, 1fr); } }
.steps-h li { list-style: none; counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps-h li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps-h { padding: 0; margin: 0; }
.three-layers { display: grid; gap: 12px; }
@media (min-width: 760px) { .three-layers { grid-template-columns: repeat(3, 1fr); } }
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin: 6px 0; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border: 2px solid var(--teal); }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq[open] summary { margin-bottom: 8px; }

/* Wizard */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.stepper li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #F6EBE1; font-size: .82rem; }
.stepper li.active { color: var(--navy); border-color: var(--teal); } .stepper li.active .n { background: var(--teal); color: #fff; }
.stepper li.done .n { background: var(--navy); color: #fff; }
.map-layout { display: grid; gap: 16px; }
@media (min-width: 980px) { .map-layout { grid-template-columns: 1fr 380px; } }
#map { height: 62vh; min-height: 380px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
@media (max-width: 979px) { #map { height: 48vh; min-height: 320px; } }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.search-box { position: relative; margin-bottom: 12px; }
.suggest { position: absolute; z-index: 1000; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); list-style: none; padding: 4px; margin: 4px 0 0; max-height: 300px; overflow: auto; }
.suggest li button { width: 100%; text-align: left; background: none; border: 0; padding: 10px; border-radius: 8px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }
.suggest li button:hover, .suggest li button:focus { background: var(--teal-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.sticky-cta { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 16px 0 12px; z-index: 5; }
.progress-steps { list-style: none; padding: 0; margin: 0; }
.progress-steps li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.progress-steps .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.progress-steps li.running .dot { border-color: var(--teal); border-top-color: transparent; animation: spin .9s linear infinite; }
.progress-steps li.done .dot { background: var(--teal); border-color: var(--teal); }
.progress-steps li.done .dot::after { content: ''; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px,-1px); }
.progress-steps li.failed .dot { background: var(--red); border-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress-steps li.running .dot { animation: none; border-style: dashed; } }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos figure { margin: 0; position: relative; }
.photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photos button { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.65); color: #fff; border: 0; border-radius: 6px; font-size: .75rem; padding: 2px 6px; cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.25); }
.legend .ov-name { flex-basis: 100%; font-weight: 600; color: var(--ink, #1d2b3a); }

/* Studio */
.studio { display: grid; gap: 20px; }
@media (min-width: 1040px) { .studio { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .studio-side { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; } }
.canvas { background: repeating-conic-gradient(#F6EEE7 0 25%, #FFFAF6 0 50%) 0 0/24px 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; place-items: center; min-height: 420px; position: relative; }
.canvas img, .canvas video { max-width: min(100%, 520px); max-height: 80vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(15,42,68,.18); background: #fff; }
.canvas .overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,248,242,.8); border-radius: var(--radius); font-weight: 700; color: var(--navy); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; font: inherit; font-weight: 700; color: var(--muted); text-decoration: none; border: 0; background: none; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs [aria-selected="true"], .tabs a.active { color: var(--navy); border-bottom-color: var(--teal); }
.tpl-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl { border: 2px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; background: #fff; font: inherit; text-align: left; font-size: .8rem; }
.tpl[aria-pressed="true"] { border-color: var(--teal); }
.tpl .sw { height: 34px; border-radius: 6px; margin-bottom: 6px; display: flex; overflow: hidden; }
.tpl .sw span { flex: 1; }
.toggles .check { padding: 6px 0; }
.facts { width: 100%; border-collapse: collapse; font-size: .9rem; }
.facts th, .facts td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.src-btn { font-size: .8rem; }
.zone-bar { height: 10px; border-radius: 6px; background: #F6EBE1; overflow: hidden; margin-top: 4px; }
.zone-bar span { display: block; height: 100%; }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th, table.t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: #FBF3EC; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }

/* Library */
.proj { display: grid; grid-template-columns: 1fr; gap: 12px; }
.proj-card { display: flex; flex-direction: column; gap: 8px; }
.proj-card .thumb { aspect-ratio: 9/10; background: #F6EEE7; border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.proj-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 640px) { .proj { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .proj { grid-template-columns: repeat(3, 1fr); } }

/* Order / QR */
.qr-box { display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .qr-box { grid-template-columns: 300px 1fr; } }
.qr-box svg { width: 100%; height: auto; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 8px; }
.copy { cursor: pointer; border: 1px dashed var(--teal); background: var(--teal-soft); border-radius: 6px; padding: 1px 8px; font: inherit; font-weight: 700; color: var(--teal-2); }
.status-big { font-size: 1.3rem; font-weight: 800; }
.opt-list { display: grid; gap: 10px; }
.opt-card { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: #fff; font-weight: 400; }
.opt-card:has(input:checked) { border-color: var(--teal); background: #FFF7F0; }
.opt-card input { margin-top: 4px; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.opt-card .p { margin-left: auto; font-weight: 800; color: var(--navy); white-space: nowrap; }

/* Footer */
.site-footer { background: #2B1A10; color: #D9C3B0; padding: 40px 0 28px; font-size: .9rem; margin-top: 40px; }
.site-footer a { color: #FED7AA; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.legal-line { border-top: 1px solid #1E3650; margin-top: 24px; padding-top: 16px; font-size: .8rem; }

/* Legal pages */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 40px); }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.legal-nav a { font-size: .85rem; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.legal-nav a.active { background: var(--navy); color: #fff; }

/* Admin */
.admin { display: grid; gap: 20px; }
.admin > * { min-width: 0; }
@media (min-width: 980px) { .admin { grid-template-columns: 220px 1fr; } }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 979px) { .admin-nav { flex-direction: row; overflow-x: auto; } }
.admin-nav a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.admin-nav a.active, .admin-nav a:hover { background: #F3E4D7; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.6rem; color: var(--navy); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .84rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.funnel-row { display: grid; grid-template-columns: 220px 1fr 70px; gap: 10px; align-items: center; font-size: .88rem; margin-bottom: 6px; }
.funnel-row .bar { height: 14px; background: #F6EBE1; border-radius: 4px; overflow: hidden; } .funnel-row .bar span { display: block; height: 100%; background: var(--teal); }
@media (max-width: 600px) { .funnel-row { grid-template-columns: 1fr 50px; } .funnel-row .bar { grid-column: 1 / -1; order: 3; } }
.inline-form { display: inline; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 2000; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-weight: 600; max-width: calc(100vw - 32px); }
.toast.err { background: var(--red); }

/* Leaflet tweaks */
.leaflet-container { font-family: var(--font); }
.pin-icon { background: none; border: 0; }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } }
.map-layout > *, .studio > *, .grid > * { min-width: 0; }
@media (max-width: 520px) { .hero-search { flex-direction: column; } .hero-search .btn { width: 100%; } .map-tools .check { margin-left: 0 !important; } }
/* Studio bộ slide */
.viewer { position: relative; background: #0B1C2C; border-radius: var(--radius); padding: 18px 18px 46px; display: grid; place-items: center; min-height: 360px; }
.viewer-stage { position: relative; width: 100%; display: grid; place-items: center; min-height: 320px; }
.viewer-stage img { max-width: 100%; max-height: 74vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.45); display: block; }
.viewer .overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #FED7AA; font-weight: 700; background: rgba(11,28,44,.6); border-radius: 10px; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.nav-btn.prev { left: 10px; } .nav-btn.next { right: 10px; }
.nav-btn:disabled { opacity: .35; cursor: default; }
.viewer-count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.14); color: #fff; font-size: .82rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 6px; scroll-snap-type: x mandatory; }
.thumbs button { flex: none; border: 2px solid transparent; border-radius: 9px; padding: 0; background: none; cursor: pointer; scroll-snap-align: start; position: relative; }
.thumbs button[aria-selected="true"] { border-color: var(--teal); }
.thumbs img { display: block; height: 82px; border-radius: 7px; }
.thumbs span { position: absolute; left: 4px; bottom: 4px; background: rgba(15,42,68,.82); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.viewer:fullscreen { padding: 0; } .viewer:fullscreen .viewer-stage img { max-height: 100vh; }
.insight { border-radius: 12px; padding: 12px 14px; font-size: .86rem; }
.insight ul { margin: 6px 0 0; padding-left: 18px; }
.insight.ok { background: var(--teal-soft); } .insight.ok b { color: var(--teal-2); }
.insight.warn { background: var(--earth-soft); } .insight.warn b { color: #8A5A13; }
.insight.miss { background: #F6EEE7; } .insight.miss b { color: #4A3A2E; }
.scores { display: grid; gap: 12px; }
@media (min-width: 760px) { .scores { grid-template-columns: 1fr 1fr; } }
.share-deck { display: grid; gap: 18px; }
.share-deck figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.share-deck img { width: 100%; border-radius: 8px; display: block; }
.share-deck figcaption { font-size: .84rem; color: var(--muted); padding: 6px 4px 2px; font-weight: 600; }
.proj-card .thumb { aspect-ratio: 16/10; }
.hero-stack { position: relative; height: 360px; justify-self: center; width: min(560px, 92vw); }
.hero-stack img { position: absolute; width: 78%; border-radius: 12px; box-shadow: 0 24px 60px rgba(124,45,18,.30); border: 3px solid rgba(255,255,255,.9); height: auto; }
.hero-stack .s1 { left: 0; top: 120px; z-index: 3; }
.hero-stack .s2 { left: 11%; top: 60px; z-index: 2; transform: rotate(-2deg); opacity: .96; }
.hero-stack .s3 { left: 22%; top: 0; z-index: 1; transform: rotate(-4deg); opacity: .9; }
.hero-stack .tag { position: absolute; left: 4%; bottom: -6px; z-index: 4; background: #fff; color: var(--navy); padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 700; font-size: .82rem; }
@media (max-width: 520px) { .hero-stack { height: 250px; } .hero-stack .s1 { top: 80px; } .hero-stack .s2 { top: 40px; } }
.gallery { display: grid; gap: 16px; }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: auto; border-radius: 8px; display: block; }
.gallery figcaption { font-weight: 700; color: var(--navy); font-size: .9rem; padding: 8px 4px 2px; }
/* Quản trị: kết nối & ảnh quét */
@media (min-width: 760px) { .g5 { grid-template-columns: repeat(5, 1fr); } }
details.conn { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 8px; background: var(--surface, #fff); }
details.conn > summary { cursor: pointer; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.text-bad { color: var(--red); }
.notice-bad { background: var(--red-soft); border-color: var(--red); }
.notice { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--teal-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Thư viện mẫu có ảnh thu nhỏ */
.tpl-gallery { grid-template-columns: 1fr 1fr; }
.tpl b { display: block; font-size: .82rem; }
.tpl img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 6px; background: #F6EEE7; }
.tpl .tpl-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; margin-top: 2px; }
.tpl-list:not(.tpl-gallery) .tpl-desc { display: none; }
/* Quản lý ảnh */
.ph-list { display: grid; gap: 8px; }
.ph-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.ph-item.is-hidden { opacity: .5; }
.ph-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.ph-item input { min-height: 34px; padding: 4px 8px; font-size: .85rem; }
.ph-act { display: flex; gap: 2px; }
.ph-act button { border: 0; background: none; cursor: pointer; font-size: 1rem; padding: 4px 5px; border-radius: 6px; color: var(--ink-2, #445); }
.ph-act button:hover { background: var(--teal-soft); }
.ph-act button[aria-pressed="true"] { color: #D99A00; }

.viewer-stage { position: relative; }
.progress-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(20,20,20,.78); color: #fff; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; z-index: 3; }
.progress-badge::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand, #F26B1D); margin-right: 8px; animation: qpulse 1s infinite alternate; }
@keyframes qpulse { from { opacity: .3; } to { opacity: 1; } }

/* ===== Tông cam: chi tiết bổ sung ===== */
.site-footer { background: #1F140C; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.benefits { display: grid; gap: 14px; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.benefit .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 1.3rem; margin-bottom: 10px; }
.benefit h3 { margin-bottom: 6px; }
.cta-band { background: linear-gradient(120deg, #EA580C, #F97316 55%, #FB923C); color: #fff; border-radius: 20px; padding: 32px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #FFF1E6; }
.cta-band .btn { background: #fff; color: var(--teal-2); }
.cta-band .btn:hover { background: #FFF1E6; color: var(--teal-2); }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.article h2 { margin-top: 1.6em; }
.article ol li, .article ul li { margin-bottom: .45em; }
@media (min-width: 760px) { .steps-h.steps-3 { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================================
   LỚP THIẾT KẾ v2 – "Hồ sơ địa chính cao cấp"
   Quy tắc màu: nền cam ⇒ chữ trắng; nền trắng/kem ⇒ chữ nâu đậm. Không có ngoại lệ.
   ===================================================================== */
:root {
  --ink: #1F140C; --ink-2: #4A3628; --muted: #6E5949; --paper: #FFFAF5; --sand: #F7EDE3; --line: #EEDFD1;
  --o-1: #FB923C; --o-2: #F97316; --o-3: #EA580C; --o-4: #C2410C; --o-5: #9A3412;
  --espresso: #1C120B; --espresso-2: #2A1B11;
  --navy: var(--ink); --teal: var(--o-4); --teal-2: var(--o-5); --brand: var(--o-2); --brand-2: var(--o-3);
  --bg: var(--paper);
  --ease: cubic-bezier(.2,.7,.2,1);
  --sh-1: 0 1px 2px rgba(60,30,10,.06), 0 2px 8px rgba(60,30,10,.05);
  --sh-2: 0 2px 4px rgba(60,30,10,.06), 0 14px 34px rgba(60,30,10,.10);
  --sh-o: 0 8px 22px rgba(234,88,12,.32);
}
body { font-size: 16.5px; letter-spacing: -.003em; font-feature-settings: "tnum" 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.022em; }
h1 { font-weight: 800; line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.12; }
.price, .stat b, .kv dd { font-variant-numeric: tabular-nums; }
::selection { background: #FED7AA; color: var(--ink); }

/* --- Nút: một hệ thống duy nhất --- */
.btn {
  --bg: linear-gradient(180deg, var(--o-2), var(--o-3));
  background: var(--bg); color: #fff; border: 1px solid var(--o-4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 2px rgba(154,52,18,.25);
  border-radius: 12px; font-weight: 700; letter-spacing: -.005em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s, border-color .18s;
}
a.btn, a.btn:visited, .btn:hover, a.btn:hover { color: #fff; }
.btn:hover { background: linear-gradient(180deg, #FF9A4D, var(--o-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), var(--sh-o); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(154,52,18,.35); }
.btn:disabled, .btn[aria-disabled="true"] { transform: none; box-shadow: none; }
.btn-ghost, a.btn-ghost, a.btn-ghost:visited { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover, a.btn-ghost:hover { background: #fff; color: var(--o-4); border-color: #FDBA74; box-shadow: var(--sh-2); }
.btn-dark, a.btn-dark, a.btn-dark:visited { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.btn-dark:hover, a.btn-dark:hover { background: var(--espresso-2); color: #fff; box-shadow: var(--sh-2); }
.btn-danger { background: #B42318; border-color: #912018; color: #fff; } .btn-danger:hover { background: #912018; color: #fff; }
.btn-earth { background: var(--earth); border-color: #9A6519; color: #fff; }
.btn:focus-visible { outline: 3px solid #FDBA74; outline-offset: 2px; }
.text-link { color: var(--o-4); font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease); }
.text-link:hover { background-size: 100% 2px; color: var(--o-5); }

/* --- Thanh đầu trang: kính mờ --- */
.site-header { background: rgba(255,250,245,.82); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(238,223,209,.8); transition: box-shadow .2s, background .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(60,30,10,.08); background: rgba(255,250,245,.94); }
.site-header .container { min-height: 66px; }
.brand { color: var(--ink); }
.brand span { font-size: 1.02rem; letter-spacing: -.01em; }
.brand small { color: var(--o-3); text-transform: none; letter-spacing: .02em; font-weight: 600; }
.nav a, .nav button.linklike { color: var(--ink-2); font-weight: 500; border-radius: 10px; transition: color .15s, background .15s; }
.nav a:hover { background: transparent; color: var(--o-4); }
.nav a[aria-current="page"] { background: #FFEDD5; color: var(--o-5); }
.nav a.btn { color: #fff; padding: 8px 16px; }
.nav a.btn:hover { color: #fff; background: linear-gradient(180deg, #FF9A4D, var(--o-2)); }

/* --- Kicker: không viết hoa toàn bộ --- */
.kicker { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 700; color: var(--o-4); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--o-1), var(--o-4)); }

/* --- Hero: nền đêm, bản đồ địa chính phát sáng --- */
.hero { background: radial-gradient(900px 520px at 78% 30%, rgba(234,88,12,.28), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(251,146,60,.12), transparent 70%), var(--espresso); color: #F5E9DE; padding: 72px 0 84px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(251,146,60,.6), transparent); }
.hero h1 { color: #FFF7F0; font-size: clamp(2.3rem, 5.4vw, 4.1rem); max-width: 13ch; margin-bottom: .45em; }
.hero p.lead { color: #E3CDBA; font-size: 1.14rem; line-height: 1.6; max-width: 50ch; }
.hero-eyebrow { color: #FDBA74; font-weight: 600; font-size: .98rem; margin-bottom: 18px; }
.hero-search { position: relative; background: rgba(255,255,255,.98); border: 1px solid rgba(253,186,116,.5); border-radius: 16px; padding: 8px 8px 8px 44px; box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 6px rgba(249,115,22,.10); max-width: 590px; }
.hero-search .hs-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--o-3); }
.hero-search input { color: var(--ink); }
.hero-search .btn { padding-inline: 22px; }
.hero-proof { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #CDB5A1; font-size: .93rem; }
.hero-proof b { color: #FFF7F0; font-weight: 700; }
.hero-proof li { position: relative; padding-left: 16px; }
.hero-proof li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--o-2); box-shadow: 0 0 0 4px rgba(249,115,22,.18); }
.hero-plate { position: relative; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); border: 1px solid rgba(253,186,116,.22); box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.hero-map { display: block; width: 100%; height: auto; border-radius: 14px; background: #241710; }
.hm-grid { stroke: rgba(253,186,116,.06); stroke-width: 1; fill: none; }
.hm-road { fill: #3A2618; }
.hm-roadline { stroke: rgba(253,186,116,.35); stroke-width: 1.4; stroke-dasharray: 10 8; }
.hm-parcel { fill: rgba(255,237,213,.025); stroke: rgba(253,186,116,.34); stroke-width: 1.1; stroke-dasharray: 260; stroke-dashoffset: 260; animation: hm-draw 1.2s var(--ease) forwards; animation-delay: calc(.2s + var(--d)); }
.hm-sel { fill: rgba(249,115,22,.22); stroke: #FB923C; stroke-width: 2.6; stroke-linejoin: round; opacity: 0; animation: hm-pop .7s var(--ease) 1.9s forwards; filter: drop-shadow(0 0 10px rgba(249,115,22,.7)); }
.hm-row { fill: url(#hm-hatch); opacity: 0; animation: hm-fade .6s ease 2.5s forwards; }
.hm-halo { opacity: 0; animation: hm-fade 1.2s ease 1.9s forwards; }
.hm-dim { opacity: 0; animation: hm-fade .5s ease 2.4s forwards; }
.hm-dim rect { fill: #1F140C; stroke: #FB923C; stroke-width: 1.2; }
.hm-dim text { fill: #FFEDD5; font: 700 12px var(--font); }
.hm-route { fill: none; stroke: #FDBA74; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: hm-draw 1.4s var(--ease) 2.7s forwards; filter: drop-shadow(0 0 6px rgba(251,146,60,.8)); }
.hm-poi { opacity: 0; animation: hm-pop .5s var(--ease) 3.8s forwards; }
.hm-poi circle { fill: #2457D6; stroke: #fff; stroke-width: 2.5; }
.hm-tag { opacity: 0; animation: hm-fade .6s ease 4s forwards; }
.hm-tag-row { animation-delay: 2.9s; }
.hm-tag rect { fill: rgba(255,250,245,.96); }
.hm-tag .t1 { font: 700 12.5px var(--font); fill: #1F140C; }
.hm-tag .t2 { font: 500 11px var(--font); fill: #6E5949; }
.hm-pin { opacity: 0; animation: hm-drop .6s var(--ease) 2.1s forwards; }
.hm-scale path { stroke: #CDB5A1; stroke-width: 1.5; fill: none; }
.hm-scale text { fill: #CDB5A1; font: 600 11px var(--font); }
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
@keyframes hm-fade { to { opacity: 1; } }
@keyframes hm-pop { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
.hm-sel, .hm-poi { transform-box: fill-box; transform-origin: center; }
.hm-pin { transform-box: view-box; }
@keyframes hm-drop { 0% { opacity: 0; translate: 0 -18px; } 100% { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .hm-parcel, .hm-sel, .hm-row, .hm-halo, .hm-dim, .hm-route, .hm-poi, .hm-tag, .hm-pin { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .btn, .card, .gallery figure { transition: none !important; }
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } }

/* --- Khối nội dung --- */
.section { padding: 84px 0; }
.section h2 { max-width: 26ch; }
.benefits { gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--line); grid-gap: 1px; }
.benefit { border: 0; border-radius: 0; padding: 28px; background: #fff; }
.benefit .ic { background: linear-gradient(160deg, #FFF1E4, #FFE0C2); color: var(--o-4); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(234,88,12,.12); }
.steps-h li { border-radius: 18px; padding: 24px; box-shadow: var(--sh-1); position: relative; }
.steps-h li::before { background: linear-gradient(180deg, var(--o-2), var(--o-4)); box-shadow: var(--sh-o); width: 38px; height: 38px; }
.card { border-radius: 18px; box-shadow: var(--sh-1); border-color: var(--line); }
.gallery figure { border-radius: 18px; padding: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.gallery img { border-radius: 10px; }
.price-card { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.price-card.featured { border: 0; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(160deg, var(--o-1), var(--o-4)) border-box; border: 2px solid transparent; box-shadow: 0 20px 50px rgba(234,88,12,.18); }
.price-card .price { color: var(--ink); letter-spacing: -.02em; }
details.faq { border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
details.faq[open] { border-color: #FDBA74; box-shadow: var(--sh-1); }
details.faq summary { list-style: none; position: relative; padding-right: 28px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 2px; top: .45em; width: 9px; height: 9px; border-right: 2px solid var(--o-3); border-bottom: 2px solid var(--o-3); transform: rotate(45deg); transition: transform .2s var(--ease); }
details.faq[open] summary::after { transform: rotate(-135deg); top: .7em; }
.cta-band { background: radial-gradient(600px 260px at 85% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(120deg, var(--o-4), var(--o-3) 50%, var(--o-2)); border-radius: 24px; padding: 40px; box-shadow: 0 30px 60px rgba(194,65,12,.25); }
.cta-band .btn, a.cta-band .btn { background: #fff; color: var(--o-5); border-color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.cta-band .btn:hover { background: #FFF7F0; color: var(--o-5); }
.site-footer { background: var(--espresso); border-top: 3px solid var(--o-3); color: #CDB5A1; }
.site-footer h4 { color: #FFF7F0; }
.site-footer a { color: #FED7AA; }

/* --- Trình tạo hồ sơ & studio --- */
.stepper li { border-radius: 999px; box-shadow: var(--sh-1); }
.stepper li.active { border-color: #FDBA74; color: var(--ink); }
.stepper li.active .n, .stepper li.done .n { background: linear-gradient(180deg, var(--o-2), var(--o-4)); color: #fff; }
#map { border-radius: 18px; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.map-tools .btn-sm { min-height: 38px; }
input, select, textarea { border-radius: 12px; border-color: #E6D3C2; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #D9BCA4; }
.tabs [aria-selected="true"], .tabs a.active { color: var(--ink); border-bottom-color: var(--o-3); }
.tpl { border-radius: 14px; transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.tpl:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.tpl[aria-pressed="true"] { border-color: var(--o-3); box-shadow: 0 0 0 3px rgba(249,115,22,.18); }
.viewer, .viewer-stage { border-radius: 18px; }
.toast { background: var(--ink); border-radius: 12px; }
.admin-nav a.active, .admin-nav a:hover { background: #FFEDD5; color: var(--o-5); }
h1, h2, .hero h1 { text-wrap: balance; }
.lead, .hero p.lead { text-wrap: pretty; }
.hero-search input, .hero-search input:hover, .hero-search input:focus { border: 0; background: transparent; box-shadow: none; padding-left: 4px; }
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.layer-tag { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 520px) {
  .hero { padding: 48px 0 56px; }
  .hero-search { padding: 8px; }
  .hero-search .hs-ic { top: 32px; left: 18px; transform: none; }
  .hero-search input { padding-left: 36px !important; }
}

/* --- Khối "Bạn nhận được gì": nền đêm, bento --- */
.section-dark { background: radial-gradient(800px 400px at 15% 0%, rgba(234,88,12,.20), transparent 60%), radial-gradient(700px 380px at 100% 100%, rgba(251,146,60,.12), transparent 65%), var(--espresso); color: #E3CDBA; }
.section-dark h2 { color: #FFF7F0; max-width: 22ch; }
.section-sub { color: #CDB5A1; max-width: 58ch; font-size: 1.08rem; margin-bottom: 36px; }
.kicker-dark { color: #FDBA74; }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } .bx-hero { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } .bx-hero { grid-column: span 2; grid-row: span 2; } }
.bx { position: relative; border-radius: 22px; padding: 28px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(253,186,116,.16); transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); overflow: hidden; }
.bx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(300px 160px at var(--mx, 80%) 0%, rgba(249,115,22,.16), transparent 70%); opacity: 0; transition: opacity .3s; }
.bx:hover { border-color: rgba(253,186,116,.45); transform: translateY(-2px); }
.bx:hover::after { opacity: 1; }
.bx h3 { color: #FFF7F0; font-size: 1.14rem; margin: 14px 0 8px; }
.bx p { color: #CDB5A1; margin: 0; line-height: 1.6; }
.bx-ic { width: 46px; height: 46px; padding: 11px; border-radius: 14px; fill: none; stroke: #FDBA74; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: rgba(249,115,22,.12); box-shadow: inset 0 0 0 1px rgba(253,186,116,.25); }
.bx-hero { display: grid; gap: 24px; align-items: center; padding: 36px; background: linear-gradient(150deg, rgba(234,88,12,.22), rgba(255,255,255,.03) 55%); border-color: rgba(253,186,116,.30); }
@media (min-width: 700px) { .bx-hero { grid-template-columns: 1.3fr 1fr; } }
.bx-hero h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 0; }
.bx-hero p { font-size: 1.05rem; max-width: 46ch; }
.bx-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bx-facts li { font-size: .88rem; color: #E3CDBA; padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid rgba(253,186,116,.22); }
.bx-facts b { color: #FDBA74; margin-right: 4px; }
.bx-viz svg { width: min(220px, 100%); display: block; margin: 0 auto; filter: drop-shadow(0 0 24px rgba(249,115,22,.35)); }
.bx-big { fill: #FFF7F0; font: 800 30px var(--font); }
.bx-small { fill: #CDB5A1; font: 500 11px var(--font); }
.bx-ring { stroke-dashoffset: 262; transition: stroke-dashoffset 1.4s var(--ease); }
.bx-ring.in { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .bx-ring { stroke-dashoffset: 0; transition: none; } .bx { transition: none; } }

/* --- Nút trắng ⇒ chữ cam (mọi trạng thái) --- */
.btn-ghost, a.btn-ghost, a.btn-ghost:visited, .btn-ghost:hover, a.btn-ghost:hover,
.cta-band .btn, .cta-band a.btn, .cta-band a.btn:visited, .cta-band .btn:hover, .cta-band a.btn:hover { color: var(--o-4); }
.cta-band .btn, .cta-band a.btn { background: #fff; border-color: #fff; }
.cta-band .btn:hover, .cta-band a.btn:hover { background: #FFF7F0; color: var(--o-5); }

/* --- Bộ nút chia sẻ --- */
.share-kit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; position: relative; }
.sb { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 11px; font: 600 .88rem var(--font); color: #fff; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s, filter .15s; }
.sb svg { width: 17px; height: 17px; fill: currentColor; }
.sb:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.15); color: #fff; filter: brightness(1.06); }
.sb-fb { background: #1877F2; } .sb-zalo { background: #0068FF; } .sb-msg { background: linear-gradient(135deg, #0099FF, #A033FF); } .sb-tg { background: #229ED9; }
.sb-mail, .sb-copy, .sb-more { background: #fff; color: var(--o-4); box-shadow: inset 0 0 0 1px var(--line); }
.sb-mail:hover, .sb-copy:hover, .sb-more:hover { color: var(--o-5); }
.sb-mail svg, .sb-copy svg, .sb-more svg { fill: none; stroke: currentColor; }
.sb-more svg circle { fill: currentColor; stroke: none; }
.share-qr { display: none; margin: 6px 0 0; width: 100%; align-items: center; gap: 12px; }
.share-kit.show-qr .share-qr { display: flex; }
.share-qr img { border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.share-qr figcaption { font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) { .share-kit .share-qr { display: flex; } }

/* ---- Lấy vị trí & ranh thửa từ Giấy chứng nhận ---- */
.gcn-cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: #FFF4E8; border: 1px solid #FED7AA; }
.gcn-cta .btn { flex: none; }
.dlg { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 64px rgba(30, 20, 10, .28); background: #fff; color: inherit; }
.dlg::backdrop { background: rgba(30, 20, 10, .45); }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 1.1rem; margin: 0; }
.dlg-body { padding: 16px 20px 20px; overflow: auto; }
.dlg .tabs { margin-bottom: 12px; }
.dlg .note { display: block; margin-bottom: 10px; }
.gcn-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gcn-grid { grid-template-columns: 1.15fr 1fr; } }
.gcn-map { height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gcn-rows input { width: 100%; min-width: 110px; padding: 6px 8px; font: inherit; font-variant-numeric: tabular-nums; }
.gcn-rows td:first-child input { min-width: 48px; width: 56px; }
.gcn-rows tr.bad input { border-color: var(--red, #B4232A); background: #FFF1F1; }
.gcn-label { background: #fff; border: 1px solid #B4232A; color: #B4232A; border-radius: 6px; padding: 0 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .dlg { width: 100vw; max-height: 100vh; border-radius: 0; } .gcn-cta { flex-direction: column; align-items: stretch; } }

.gcn-place { position: relative; z-index: 2; margin-bottom: 10px; padding: 12px 14px; border-radius: 12px; background: #FFF4E8; border: 2px solid #EA580C; box-shadow: 0 6px 18px rgba(234, 88, 12, .18); }
.gcn-place input[type=range] { accent-color: #EA580C; }

.gcn-uploads { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 4px; }
@media (min-width: 700px) { .gcn-uploads { grid-template-columns: 1fr 1fr; } }
.gcn-up { padding: 12px; border: 1px dashed #F0B98A; border-radius: 12px; background: #FFFBF6; display: flex; flex-direction: column; gap: 6px; }
.gcn-up input[type=file] { max-width: 100%; }
#ward-hint { color: #9A3412; }

#gcn-prefill, #gcn-docs { display: block; }

/* ---- Tùy chỉnh video điện ảnh ---- */
.vset { background: linear-gradient(160deg, #0d1118 0%, #161c26 100%); color: #e9edf2; border-radius: 22px; padding: 22px 24px; border: 1px solid rgba(214,178,110,.28); box-shadow: 0 18px 40px -22px rgba(8,11,16,.6); }
.vset .muted, .vset small { color: #9aa5b1; }
.vset b { color: #fff; }
.vset-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.vset-head b { font-size: 1.15rem; }
.vset-kicker { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: #d6b26e; font-weight: 700; }
.vset-row { display: flex; align-items: center; gap: 14px; margin: 12px 0; flex-wrap: wrap; }
.vset-l { width: 86px; font-size: .85rem; color: #9aa5b1; }
.vset .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.vset .seg button { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 14px; padding: 10px 14px; font-weight: 700; cursor: pointer; font-size: .92rem; }
.vset .seg button small { display: block; font-weight: 500; font-size: .72rem; margin-left: 2px; }
.vset .seg svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vset .seg button[aria-checked="true"] { border-color: #d6b26e; background: linear-gradient(135deg, rgba(244,226,176,.18), rgba(162,123,58,.18)); box-shadow: inset 0 0 0 1px #d6b26e; }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: radial-gradient(circle at 30% 30%, #fff8, transparent 55%), var(--c); cursor: pointer; }
.swatches button[aria-checked="true"] { outline: 2px solid #fff; outline-offset: 3px; }
.vset .check { color: #e9edf2; }
.vset-scenes { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 0; margin: 14px 0 10px; list-style: none; counter-reset: sc; }
.vset-scenes li { counter-increment: sc; background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px 10px; }
.vset-scenes li::before { content: counter(sc) " · "; color: #d6b26e; font-weight: 700; }
#vcanvas video { max-height: 70vh; width: auto; max-width: 100%; display: block; margin: 0 auto; border-radius: 18px; background: #080b10; box-shadow: 0 24px 60px -28px rgba(0,0,0,.6); }

/* ---- Ô đã khóa theo giấy tờ ---- */
.field.locked input, .field.locked select, .field.locked textarea { background: linear-gradient(180deg, #fbf7ef, #f6efe2); border-color: #e3cf9f; color: #3b2a12; cursor: not-allowed; font-weight: 600; opacity: 1; -webkit-text-fill-color: #3b2a12; }
.field.locked .suffix span { background: #f1e6cf; border-color: #e3cf9f; }
.lock-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #f4e2b0, #d6b26e); color: #3b2a12; font-size: .7rem; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; white-space: nowrap; }
.lock-badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lock-badge.inline { margin: 0 2px; }
.field.locked .input-group button { opacity: .5; pointer-events: none; }
.gcn-facts { border: 1px solid #ead9b3; background: linear-gradient(160deg, #fffaf0, #fbf3e3); border-radius: 18px; padding: 16px 18px; margin: 4px 0 16px; box-shadow: 0 10px 24px -18px rgba(120,85,20,.5); }
.gcn-facts .gf-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.gcn-facts .gf-ic { font-size: 1.3rem; line-height: 1; }
.gcn-facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: .9rem; }
.gcn-facts dt { color: #7a6340; font-weight: 600; }
.gcn-facts dd { margin: 0; color: #2b1a10; }
.gcn-facts .lt { display: inline-block; min-width: 38px; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: #2b1a10; color: #f4e2b0; font-weight: 800; font-size: .75rem; text-align: center; }
@media (max-width: 560px) { .gcn-facts dl { grid-template-columns: 1fr; } .gcn-facts dt { margin-top: 6px; } }
.vset .seg3 button { flex: 1 1 120px; flex-direction: column; align-items: flex-start; gap: 2px; }
.tier { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin-right: 6px; }
.tier.t1 { background: #EEF0F6; color: #3C4A6B; } .tier.t2 { background: #E7F3EC; color: #17663B; } .tier.t3 { background: #FFF1D6; color: #8A5A13; }
.tier-h { margin: 6px 0 10px; }
.field label .cnt { float: right; font-weight: 500; font-size: .75rem; color: var(--muted); }
