/* ===== Design tokens ===== */
:root {
  --teal-50: #ecfdf5; --teal-100: #d1fae5; --teal-500: #10b981; --teal-600: #059669; --teal-700: #047857;
  --ink-900: #0f172a; --ink-700: #334155; --ink-500: #64748b; --ink-400: #94a3b8; --ink-300: #cbd5e1; --ink-100: #f1f5f9;
  --line: #e2e8f0; --bg: #f8fafc; --white: #fff;
  --amber: #f59e0b; --rose: #e11d48; --rose-bg: #fff1f2; --blue: #2563eb; --blue-bg: #eff6ff; --violet: #7c3aed; --violet-bg: #f5f3ff;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.07), 0 10px 25px -5px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 45px -15px rgba(15,23,42,.25);
  --radius: 14px; --radius-lg: 20px; --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Be Vietnam Pro", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink-900); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ===== Buttons ===== */
.btn { font-family: inherit; font-weight: 600; font-size: 15px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; cursor: pointer; transition: all .18s ease; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn-xs { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; padding: 13px; font-size: 16px; }
.btn-danger { background: var(--rose); color: #fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-outline { background: #fff; color: var(--teal-700); border-color: var(--teal-500); }
.btn-outline:hover { background: var(--teal-50); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 66px; position: relative; }
.nav-toggle { display: none; background: var(--ink-100); border: none; width: 40px; height: 40px; border-radius: 10px; font-size: 18px; cursor: pointer; color: var(--ink-700); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; letter-spacing: -.5px; }
.brand-mark { font-size: 24px; }
.brand-text span { color: var(--teal-600); }
.main-nav { display: flex; gap: 4px; margin-left: 6px; flex-wrap: wrap; }
.nav-link { padding: 8px 13px; border-radius: 9px; font-weight: 500; font-size: 14.5px; color: var(--ink-700); transition: all .15s; cursor: pointer; }
.nav-link:hover { background: var(--ink-100); }
.nav-link.active { background: var(--teal-50); color: var(--teal-700); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: default; font-family: inherit; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff; font-weight: 700; font-size: 15px; }
.user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.user-name { font-weight: 600; font-size: 14px; }
.user-role { font-size: 12px; color: var(--ink-500); }
.role-pill { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; }
.role-customer { background: var(--teal-50); color: var(--teal-700); }
.role-host { background: var(--blue-bg); color: var(--blue); }
.role-admin { background: var(--violet-bg); color: var(--violet); }

/* ===== Hero / Search ===== */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(16,185,129,.18), transparent), linear-gradient(180deg,#fff,var(--bg)); padding: 52px 0 36px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(28px,4vw,44px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; }
.hero h1 span { color: var(--teal-600); }
.hero-sub { margin-top: 14px; font-size: 17px; color: var(--ink-500); max-width: 640px; }
.hero-hint { margin-top: 14px; font-size: 13.5px; color: var(--ink-500); }
.hero-hint strong { color: var(--ink-700); }
.search-card { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 16px; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; min-width: 130px; }
.field-sm { flex: 0 0 90px; min-width: 80px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.field input, .field select, .field textarea { font-family: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--ink-300); border-radius: 10px; background: #fff; color: var(--ink-900); transition: border-color .15s, box-shadow .15s; width: 100%; }
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100); }
.btn-search { height: 45px; padding: 0 24px; }

/* ===== Date field (force dd/mm/yyyy display) ===== */
.datebox { position: relative; width: 100%; }
.datebox input[type="date"] { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.datebox .date-display { cursor: pointer; padding-right: 36px; background: #fff; }
.datebox::after { content: "📅"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; opacity: .65; }

/* ===== Section layout ===== */
.section-pad { padding: 32px 0 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.page-head .sub { color: var(--ink-500); font-size: 14.5px; margin-top: 2px; }
.results-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.results-head h2 { font-size: 22px; font-weight: 700; }
.results-count { color: var(--ink-500); font-size: 15px; }

/* ===== Property grid / cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-photo { height: 188px; position: relative; background-size: cover; background-position: center; }
.card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.28)); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.badge { background: rgba(255,255,255,.94); color: var(--ink-700); font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px; backdrop-filter: blur(4px); }
.badge-verified { color: var(--teal-700); }
.card-score { position: absolute; top: 12px; right: 12px; background: rgba(15,23,42,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; z-index: 1; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.card-loc { font-size: 13.5px; color: var(--ink-500); display: flex; align-items: center; gap: 5px; }
.card-meta { display: flex; gap: 14px; font-size: 13px; color: var(--ink-700); flex-wrap: wrap; }
.amenities { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.chip { font-size: 12px; background: var(--ink-100); color: var(--ink-700); padding: 3px 9px; border-radius: 99px; }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price-amt { font-size: 19px; font-weight: 800; }
.price-lbl { font-size: 12px; color: var(--ink-500); }
.rating { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.rating .star { color: var(--amber); }

/* ===== Stat cards (dashboards) ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat .ic { font-size: 22px; }
.stat .val { font-size: 28px; font-weight: 800; letter-spacing: -.6px; margin-top: 8px; line-height: 1; }
.stat .lbl { font-size: 13.5px; color: var(--ink-500); margin-top: 6px; }
.stat .sub { font-size: 12px; color: var(--ink-400); margin-top: 3px; }
.stat.accent-teal { border-top: 3px solid var(--teal-500); }
.stat.accent-blue { border-top: 3px solid var(--blue); }
.stat.accent-violet { border-top: 3px solid var(--violet); }
.stat.accent-amber { border-top: 3px solid var(--amber); }

/* ===== Dashboard panels ===== */
.panel-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.panel-body { padding: 18px 20px; }

/* ===== Bar chart (CSS) ===== */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.bar-track { background: var(--ink-100); border-radius: 99px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-500), var(--teal-700)); }
.bar-val { text-align: right; font-weight: 600; color: var(--ink-700); }

/* ===== Tables ===== */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.data th { text-align: left; padding: 13px 16px; background: var(--ink-100); color: var(--ink-700); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
table.data td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #fafbfc; }
.t-strong { font-weight: 600; }
.t-muted { color: var(--ink-500); font-size: 13px; }
.t-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Booking list ===== */
.booking-list { display: flex; flex-direction: column; gap: 14px; }
.booking { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; cursor: pointer; transition: box-shadow .15s; }
.booking:hover { box-shadow: var(--shadow-md); }
.booking-thumb { width: 64px; height: 64px; border-radius: 12px; background-size: cover; background-position: center; flex: 0 0 64px; }
.booking-main { flex: 1; min-width: 200px; }
.booking-code { font-size: 12.5px; color: var(--ink-500); font-weight: 600; letter-spacing: .3px; }
.booking-name { font-size: 16.5px; font-weight: 700; margin-top: 1px; }
.booking-sub { font-size: 13px; color: var(--ink-500); margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.booking-amt { text-align: right; min-width: 140px; }
.booking-amt .total { font-size: 17px; font-weight: 800; }
.booking-amt .dep { font-size: 12.5px; color: var(--ink-500); }
.booking-actions { display: flex; gap: 8px; }

/* ===== Status pills ===== */
.status { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; white-space: nowrap; display: inline-block; }
.status-pending_deposit { background: #fef3c7; color: #92400e; }
.status-pending_host_confirmation, .status-pending_admin_confirmation { background: var(--blue-bg); color: #1e40af; }
.status-confirmed { background: var(--teal-100); color: var(--teal-700); }
.status-checked_in, .status-completed { background: #e0e7ff; color: #3730a3; }
.status-cancelled, .status-refunded { background: var(--rose-bg); color: var(--rose); }
.status-draft, .status-disputed, .status-pending_review, .status-inactive { background: var(--ink-100); color: var(--ink-700); }
.status-active, .status-verified { background: var(--teal-100); color: var(--teal-700); }
.status-blocked, .status-suspended, .status-rejected { background: var(--rose-bg); color: var(--rose); }
.status-pending, .status-unverified { background: #fef3c7; color: #92400e; }

/* ===== Empty / skeleton ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.empty .ico { font-size: 48px; }
.empty h3 { margin-top: 12px; color: var(--ink-700); font-weight: 700; }
.empty p { margin-top: 6px; font-size: 14.5px; }
.skeleton { background: linear-gradient(90deg,#eef2f6 25%,#e2e8f0 37%,#eef2f6 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
.sk-card { height: 340px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ===== Modal ===== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); z-index: 60; display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 540px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow: auto; animation: pop .2s ease; }
.modal-sm { max-width: 430px; }
.modal-lg { max-width: 760px; }
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { font-size: 19px; font-weight: 700; }
.modal-close { background: var(--ink-100); border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink-700); }
.modal-close:hover { background: var(--ink-300); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }

/* ===== Auth ===== */
.auth-tabs { display: flex; gap: 6px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.auth-tab { flex: 1; background: none; border: none; border-bottom: 2px solid transparent; padding: 13px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink-500); cursor: pointer; }
.auth-tab.active { color: var(--teal-700); border-bottom-color: var(--teal-600); }
.form-error { background: var(--rose-bg); color: var(--rose); padding: 10px 13px; border-radius: 9px; font-size: 14px; }
.role-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; text-align: center; transition: all .15s; }
.role-opt .ic { font-size: 24px; }
.role-opt .t { font-weight: 700; margin-top: 6px; font-size: 15px; }
.role-opt .d { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.role-opt.sel { border-color: var(--teal-500); background: var(--teal-50); }
.demo-accounts { border-top: 1px solid var(--line); padding-top: 16px; }
.demo-accounts p { font-size: 13px; color: var(--ink-500); margin-bottom: 10px; }
.demo-accounts code { background: var(--ink-100); padding: 2px 6px; border-radius: 5px; font-size: 12.5px; }
.demo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.demo-acc { font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; color: var(--ink-700); transition: all .15s; }
.demo-acc:hover { border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-700); }

/* ===== Detail (property/booking) ===== */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; height: 280px; }
.gallery .g0 { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.detail-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.detail-loc { color: var(--ink-500); font-size: 14px; margin-top: 3px; }
.detail-facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink-700); margin: 4px 0; }
.detail-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.kv { display: flex; flex-direction: column; gap: 7px; }
.kv-row { display: flex; justify-content: space-between; font-size: 14px; }
.kv-row .lbl { color: var(--ink-500); }
.kv-row.total { border-top: 1px dashed var(--ink-300); padding-top: 9px; margin-top: 3px; font-weight: 700; font-size: 16px; }
.cal { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-day { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 12.5px; text-align: center; min-width: 76px; }
.cal-day .d { font-weight: 600; }
.cal-day .p { color: var(--teal-700); font-weight: 600; margin-top: 2px; }
.review { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.review:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.review .r-head { display: flex; justify-content: space-between; font-size: 13.5px; }
.review .r-name { font-weight: 600; }
.bk-success { text-align: center; padding: 8px 0; }
.bk-success .ico { font-size: 52px; }
.bk-success h4 { font-size: 20px; font-weight: 700; margin-top: 8px; }
.bk-success .code { display: inline-block; margin-top: 10px; background: var(--teal-50); color: var(--teal-700); font-weight: 700; padding: 8px 16px; border-radius: 10px; letter-spacing: .5px; }
.note { font-size: 13px; color: var(--ink-500); }
.alert-info { background: var(--blue-bg); color: #1e40af; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; }

/* ===== Toast ===== */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink-900); color: #fff; padding: 13px 18px; border-radius: 11px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; animation: slidein .25s ease; max-width: 360px; }
.toast.ok { background: var(--teal-700); }
.toast.err { background: var(--rose); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px; font-size: 14px; color: var(--ink-500); flex-wrap: wrap; gap: 8px; }
.footer-inner a { color: var(--teal-700); font-weight: 600; }

/* ===== Visit stats band (homepage) ===== */
.stat.accent-green { border-top: 3px solid var(--teal-500); }
.stat .val.val-live { color: var(--teal-600); }
.visit-band { background: linear-gradient(120deg, #0f172a 0%, #134e4a 55%, #047857 100%); color: #fff; }
.visit-inner { display: flex; flex-wrap: wrap; gap: 14px; padding: 16px 20px; justify-content: space-between; }
.visit-item { display: flex; flex-direction: column; gap: 3px; min-width: 130px; flex: 1 1 130px; }
.visit-lbl { font-size: 12.5px; color: rgba(255,255,255,.72); font-weight: 500; }
.visit-live { font-size: 12.5px; color: #bbf7d0; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.visit-live i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.7); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.visit-num { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.05; }

/* ===== Guide page ===== */
.g-hero { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.g-hero-badge { display: inline-block; background: var(--teal-50); color: var(--teal-700); font-weight: 700; font-size: 12.5px; padding: 5px 13px; border-radius: 99px; letter-spacing: .3px; }
.g-hero h2 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin-top: 12px; }
.g-hero h2 span { color: var(--teal-600); }
.g-hero .sub { color: var(--ink-500); font-size: 16px; margin-top: 10px; }
.g-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.g-tab { font-family: inherit; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink-700); font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 99px; transition: all .15s; }
.g-tab:hover { border-color: var(--teal-500); }
.g-tab.active { background: var(--teal-600); color: #fff; border-color: var(--teal-600); box-shadow: var(--shadow-md); }
.g-lead { text-align: center; color: var(--ink-500); font-size: 15px; margin-bottom: 22px; }
.g-steps { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.g-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px 20px 70px; transition: transform .16s, box-shadow .16s; }
.g-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.g-step-n { position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; box-shadow: var(--shadow-sm); }
.g-step-ic { position: absolute; left: 24px; bottom: 18px; font-size: 22px; opacity: .9; }
.g-step-body h4 { font-size: 16.5px; font-weight: 700; }
.g-step-body p { color: var(--ink-700); font-size: 14.5px; margin-top: 5px; line-height: 1.6; }
.g-step-body b { color: var(--ink-900); }
.g-lookup { max-width: 820px; margin: 30px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.g-lookup-head { display: flex; gap: 14px; align-items: flex-start; }
.g-lookup-ic { font-size: 26px; }
.g-lookup-head h3 { font-size: 18px; font-weight: 700; }
.g-lookup-form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.g-lookup-form input { flex: 1 1 220px; font-family: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--ink-300); border-radius: 10px; }
.g-lookup-form input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100); }
.g-faq { max-width: 820px; margin: 30px auto 0; }
.g-faq h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.g-faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 10px; overflow: hidden; }
.g-faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.g-faq-item summary::-webkit-details-marker { display: none; }
.g-faq-item summary::after { content: "+"; color: var(--teal-600); font-size: 20px; font-weight: 700; }
.g-faq-item[open] summary::after { content: "−"; }
.g-faq-a { padding: 0 18px 16px; color: var(--ink-700); font-size: 14.5px; line-height: 1.6; }
.g-faq-a code, .g-lookup code { background: var(--ink-100); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.g-cta { max-width: 820px; margin: 26px auto 0; text-align: center; background: var(--teal-50); color: var(--teal-700); border-radius: var(--radius); padding: 16px 20px; font-size: 14.5px; }

/* ===== Chatbot widget (giao diện lấy từ HTKT) ===== */
#cbRoot { position: fixed; z-index: 90; }
.cb-hidden { display: none !important; }
.cb-fab { position: fixed; bottom: 24px; right: 24px; width: 64px; height: 64px; border: none; background: none; cursor: pointer; padding: 0; filter: drop-shadow(0 8px 24px rgba(16,185,129,.5)); }
.cb-fab-ping { position: absolute; inset: 0; border-radius: 50%; background: var(--teal-500); opacity: .25; animation: cbPing 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes cbPing { 75%, 100% { transform: scale(1.7); opacity: 0; } }
.cb-fab-img { position: absolute; inset: 0; border-radius: 50%; background-size: cover; background-position: center; border: 2px solid rgba(255,255,255,.8); transition: transform .25s; }
.cb-fab:hover .cb-fab-img { transform: scale(1.1) rotate(-4deg); }
.cb-fab-badge { position: absolute; top: -2px; right: -2px; background: var(--teal-600); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 99px; border: 2px solid #fff; }
.cb-panel { position: fixed; bottom: 24px; right: 24px; width: 380px; max-width: calc(100vw - 32px); height: 600px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: cbIn .22s ease; }
@keyframes cbIn { from { transform: translateY(20px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cb-head { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: linear-gradient(135deg, #047857 0%, #10b981 60%, #2563eb 130%); color: #fff; }
.cb-head-ava { position: relative; width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; border: 2px solid rgba(255,255,255,.6); flex-shrink: 0; }
.cb-head-ava .cb-dot { position: absolute; bottom: 0; right: 0; width: 11px; height: 11px; background: #34d399; border: 2px solid #fff; border-radius: 50%; }
.cb-head-txt { flex: 1; min-width: 0; }
.cb-head-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.cb-head-sub { font-size: 11.5px; color: rgba(255,255,255,.85); line-height: 1.3; }
.cb-head-act { display: flex; gap: 4px; }
.cb-iconbtn { background: rgba(255,255,255,.15); border: none; color: #fff; width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 15px; transition: background .15s; }
.cb-iconbtn:hover { background: rgba(255,255,255,.3); }
.cb-list { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%); }
.cb-row { display: flex; align-items: flex-end; gap: 8px; }
.cb-row.cb-user { justify-content: flex-end; }
.cb-ava { width: 28px; height: 28px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; border: 1px solid var(--teal-100); }
.cb-msg { max-width: 80%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.55; box-shadow: var(--shadow-sm); }
.cb-msg-bot { background: #fff; color: var(--ink-900); border: 1px solid var(--teal-100); border-bottom-left-radius: 5px; }
.cb-msg-user { background: linear-gradient(135deg, var(--teal-600), #2563eb); color: #fff; border-bottom-right-radius: 5px; }
.cb-msg-bot strong { color: var(--teal-700); }
.cb-msg code { background: var(--ink-100); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.cb-typing { display: flex; gap: 4px; align-items: center; }
.cb-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); animation: cbBounce 1s infinite; }
.cb-typing span:nth-child(2) { animation-delay: .15s; }
.cb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cbBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.cb-quick { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 2px; }
.cb-chip { font-family: inherit; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--teal-700); background: #fff; border: 1px solid var(--teal-100); padding: 7px 12px; border-radius: 99px; transition: all .15s; }
.cb-chip:hover { background: var(--teal-50); border-color: var(--teal-500); }
.cb-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.cb-input input { flex: 1; font-family: inherit; font-size: 14px; padding: 11px 14px; border: 1px solid var(--ink-300); border-radius: 12px; background: var(--ink-100); }
.cb-input input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100); background: #fff; }
.cb-sendbtn { border: none; cursor: pointer; width: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-600), #2563eb); color: #fff; font-size: 16px; transition: transform .1s; }
.cb-sendbtn:active { transform: scale(.94); }
@media (max-width: 480px) {
  .cb-panel { bottom: 0; right: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .cb-fab { bottom: 18px; right: 18px; }
}

/* ===== Responsive ===== */
/* Tablet */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  .header-inner { gap: 14px; }
  .main-nav { gap: 2px; }
  .nav-link { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; } }

/* Phone & small tablet: hamburger menu */
@media (max-width: 720px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; z-index: 50;
    flex-direction: column; gap: 2px; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 12px; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding: 13px 14px; font-size: 15px; border-radius: 10px; }
  .hero { padding: 34px 0 24px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .search-card { flex-direction: column; align-items: stretch; gap: 10px; }
  .field, .field-sm { flex: 1 1 auto; min-width: 0; }
  .btn-search { width: 100%; justify-content: center; }
  .booking { gap: 12px; }
  .booking-amt { text-align: left; min-width: 0; }
  .user-meta { display: none; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery .g0 { grid-row: auto; }
  .gallery img { height: 200px; }
  .gallery img:not(.g0) { display: none; }
  .demo-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat .val { font-size: 24px; }
  .modal-head { padding: 16px; }
  .modal-body { padding: 16px; }
  .bar-row { grid-template-columns: 96px 1fr 36px; }
}

/* Small phone */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  #registerBtn { display: none; }
  .brand { font-size: 18px; }
  .brand-mark { font-size: 20px; }
  .role-pill { display: none; }
  .header-actions { gap: 8px; }
  .stat-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .page-head h2 { font-size: 20px; }
}
