:root {
  --g: #115830;        /* xanh thương hiệu (nút / nhãn trong bảng giá) */
  --g-dark: #0b3f22;
  --g-soft: #e8f1ec;
  --g-line: #cfe0d6;
  --ink: #1d2a23;
  --muted: #5d6b63;
  --bg: #fbfcfb;
  --card: #ffffff;
  --serif: "Times New Roman", Times, serif;
  --sans: "Times New Roman", Times, serif;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-size: 17px; font-variant-numeric: lining-nums; margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; } h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--g); line-height: 1.12; margin: 0; letter-spacing: .2px; }
h2 { font-size: clamp(32px, 4.2vw, 46px); }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--g); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.light { color: #cfe6d8; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; background: var(--g); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; border: 1.5px solid var(--g); cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { background: var(--g-dark); border-color: var(--g-dark); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(17, 88, 48, .6); }
.btn-line { background: transparent; color: var(--g); }
.btn-line:hover { background: var(--g-soft); color: var(--g); border-color: var(--g); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* Đầu trang */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 251, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(17, 88, 48, .08); }
.top-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--g); transition: width .25s; }
.nav a:hover::after { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f3f7f4 100%); }
.hero::before { content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 10px; background: linear-gradient(90deg, var(--g) 0%, rgba(17, 88, 48, .55) 45%, rgba(17, 88, 48, 0) 100%); opacity: .95; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 0 84px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 600; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--g-dark); }
.lead { font-size: 17px; color: var(--muted); max-width: 540px; margin: 22px 0 30px; font-weight: 300; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-facts li { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; }
.hero-facts b { font-family: var(--serif); font-size: 30px; color: var(--g); font-weight: 600; line-height: 1.1; }
.hero-img { position: relative; }
.hero-img img { border-radius: 220px 220px var(--r) var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 40px 80px -40px rgba(11, 63, 34, .45); }
.hero-badge { position: absolute; left: -26px; bottom: 40px; background: #fff; border-radius: 16px; padding: 14px 20px; box-shadow: 0 20px 40px -18px rgba(11, 63, 34, .35); display: flex; flex-direction: column; line-height: 1.2; }
.hero-badge span { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.hero-badge b { font-family: var(--serif); font-size: 24px; color: var(--g); }

/* Giá trị */
.values { background: var(--g); color: #e3efe8; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { padding: 38px 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.value:first-child { border-left: 0; padding-left: 0; }
.value .vi { font-family: var(--serif); font-size: 15px; color: #9cc5ad; letter-spacing: .1em; }
.value h3 { color: #fff; font-size: 24px; margin: 6px 0 8px; }
.value p { margin: 0; font-size: 14px; font-weight: 300; color: #cfe3d7; }

/* Khối chung */
.section { padding: 96px 0; }
.section.alt { background: linear-gradient(180deg, #f3f7f4, #fbfcfb); }
.head { max-width: 820px; margin-bottom: 44px; }
.sub { color: var(--muted); margin: 12px 0 0; font-weight: 300; }

/* Thẻ dịch vụ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; border: 1px solid rgba(17, 88, 48, .08); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(11, 63, 34, .45); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--g-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 26px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); font-weight: 300; flex: 1; }
.card .from { font-size: 13px; color: var(--muted); margin-top: 6px; }
.card .from b { color: var(--g); font-size: 16px; font-weight: 600; }

/* Bảng giá */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab { border: 1px solid var(--g-line); background: #fff; color: var(--g); padding: 10px 18px; border-radius: 999px; font-family: inherit; font-size: 14px; cursor: pointer; transition: all .2s; }
.tab:hover { border-color: var(--g); }
.tab[aria-selected="true"] { background: var(--g); color: #fff; border-color: var(--g); font-style: italic; }
.price-panel { display: grid; grid-template-columns: 360px 1fr; gap: 40px; background: #fff; border-radius: 26px; padding: 26px; border: 1px solid rgba(17, 88, 48, .08); box-shadow: 0 30px 70px -50px rgba(11, 63, 34, .5); }
.pp-img { border-radius: 18px; overflow: hidden; align-self: start; position: sticky; top: 100px; }
.pp-img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pp-title { font-size: 40px; margin-bottom: 6px; }
.pp-intro { color: var(--muted); margin: 0 0 18px; font-weight: 300; }
.plist { list-style: none; margin: 0; padding: 0; }
.pitem { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--g-line); align-items: baseline; }
.pitem:last-child { border-bottom: 0; }
.pitem h4 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.pitem .price { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--g); white-space: nowrap; text-align: right; }
.pitem p { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); font-weight: 300; }
.pitem .book-it { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 0; color: var(--g); font: 500 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Đặt lịch */
.booking { background: var(--g) url("assets/hero-room.jpg") center / cover no-repeat; position: relative; color: #e3efe8; }
.booking::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 63, 34, .97) 0%, rgba(17, 88, 48, .93) 45%, rgba(17, 88, 48, .78) 100%); }
.book-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.booking h2 { color: #fff; }
.book-text p { color: #cfe3d7; font-weight: 300; max-width: 460px; }
.book-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.book-points li { padding-left: 28px; position: relative; }
.book-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid #9cc5ad; border-bottom: 2px solid #9cc5ad; transform: rotate(-45deg); }
.book-points a { color: #fff; font-weight: 600; text-decoration: none; }
.book-form { background: #fff; color: var(--ink); border-radius: 26px; padding: 30px; display: grid; gap: 16px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.book-form label, .lbl { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea { font: 400 15px var(--sans); color: var(--ink); border: 1px solid var(--g-line); border-radius: 12px; padding: 12px 14px; background: #fbfdfc; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(17, 88, 48, .12); }
.slots-wrap { display: grid; gap: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; align-items: center; }
.slot { border: 1px solid var(--g-line); background: #fff; border-radius: 10px; padding: 8px 12px; font: 500 14px var(--sans); color: var(--g); cursor: pointer; }
.slot:hover { border-color: var(--g); }
.slot[aria-pressed="true"] { background: var(--g); color: #fff; border-color: var(--g); }
.muted { color: var(--muted); font-size: 14px; font-weight: 300; }
.msg { margin: 0; font-size: 14px; min-height: 1px; }
.msg.err { color: #b42318; }
.msg.ok { color: var(--g); background: var(--g-soft); padding: 12px 14px; border-radius: 12px; }

/* Liên hệ */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.info { display: grid; grid-template-columns: 110px 1fr; gap: 12px 16px; margin: 26px 0 30px; }
.info dt { color: var(--muted); font-size: 14px; }
.info dd { margin: 0; font-weight: 500; }
.info a { color: var(--g); text-decoration: none; }
.map { border-radius: 26px; overflow: hidden; border: 1px solid rgba(17, 88, 48, .1); aspect-ratio: 4 / 3; background: var(--g-soft); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Chân trang */
.foot { background: var(--g-dark); color: #b8d3c3; padding: 64px 0 0; font-size: 14px; }
.foot a { color: #e3efe8; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .8fr; gap: 40px; }
.foot-logo { height: 66px; width: auto; margin-bottom: 16px; }
.foot-brand p { margin: 0 0 18px; font-weight: 300; max-width: 300px; line-height: 1.7; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background .2s, border-color .2s; }
.social a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); text-decoration: none; }
.foot h4 { margin: 4px 0 16px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-col li span { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #86ad97; margin-bottom: 2px; }
.foot-links { gap: 9px; }
.foot-bottom { margin-top: 48px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-bottom p { margin: 0; font-size: 12.5px; }
.foot-bottom .note { opacity: .7; max-width: 560px; }

/* Thanh dưới trên điện thoại */
.mbar { display: none; }

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .price-panel { grid-template-columns: 1fr; }
  .pp-img { position: static; }
  .pp-img img { aspect-ratio: 16 / 8; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; height: 66px; }
  .brand img { height: 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 56px; }
  .hero::before { display: none; }
  .hero-img img { aspect-ratio: 1 / 1; border-radius: 160px 160px var(--r) var(--r); }
  .hero-badge { left: 14px; bottom: 18px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .value, .value:first-child { padding: 26px 16px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .section { padding: 64px 0; }
  .book-in, .contact { grid-template-columns: 1fr; gap: 32px; }
  body { padding-bottom: 72px; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-top: 1px solid rgba(17, 88, 48, .1); }
  .mbar a { text-align: center; padding: 13px; border-radius: 999px; text-decoration: none; font-weight: 500; }
  .mbar-call { border: 1.5px solid var(--g); color: var(--g); }
  .mbar-book { background: var(--g); color: #fff; }
}
/* Điện thoại: gọn chiều dọc, chạm dễ, ưu tiên đặt lịch */
@media (max-width: 520px) {
  html { scroll-padding-top: 64px; }
  .wrap { width: calc(100% - 32px); }
  h2 { font-size: 31px; }
  .eyebrow { letter-spacing: .14em; font-size: 11.5px; margin-bottom: 8px; }
  .eyebrow::before { width: 22px; }
  .section { padding: 48px 0; }
  .head { margin-bottom: 24px; }
  .sub { font-size: 14px; }

  /* Đầu trang: thanh dưới đã có Đặt lịch nên nút trên chuyển thành nút gọi nhỏ */
  .top-in { height: 60px; }
  .brand img { height: 36px; }
  .top .btn-sm { padding: 8px 14px; font-size: 13px; }

  /* Hero: ảnh lên trước, thấp hơn; chữ gọn; 2 nút cùng hàng */
  .hero-in { gap: 22px; padding: 16px 0 36px; }
  .hero-img { order: -1; }
  .hero-img img { aspect-ratio: 5 / 4; border-radius: 120px 120px 18px 18px; object-position: center 30%; }
  .hero-badge { left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 12px; }
  .hero-badge span { font-size: 10px; }
  .hero-badge b { font-size: 19px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 15px; margin: 14px 0 20px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-cta .btn { padding: 13px 10px; font-size: 14px; }
  .hero-facts { margin-top: 24px; gap: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--g-line); padding-top: 16px; }
  .hero-facts li { font-size: 11.5px; line-height: 1.35; padding-right: 8px; }
  .hero-facts b { font-size: 24px; }

  /* 4 điểm mạnh: lưới 2x2 nhỏ gọn */
  .grid4 { grid-template-columns: 1fr 1fr; }
  .value, .value:first-child { padding: 20px 12px 20px 0; border-left: 0; border-top: 0; }
  .value:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .12); }
  .value:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .value .vi { font-size: 13px; }
  .value h3 { font-size: 19px; margin: 2px 0 4px; }
  .value p { font-size: 12.5px; line-height: 1.5; }

  /* Thẻ dịch vụ: 2 cột, bỏ đoạn mô tả */
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { border-radius: 14px; }
  .card-img { aspect-ratio: 1 / 1; }
  .card-body { padding: 10px 12px 12px; gap: 2px; }
  .card h3 { font-size: 19px; }
  .card p { display: none; }
  .card .from { font-size: 11.5px; margin-top: 2px; }
  .card .from b { font-size: 14px; }

  /* Bảng giá: thanh nhóm dính dưới đầu trang, bỏ ảnh lớn, dòng gọn */
  .tabs { position: sticky; top: 60px; z-index: 20; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 10px 16px; background: rgba(243, 247, 244, .96); backdrop-filter: blur(10px); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 9px 15px; font-size: 13.5px; }
  .price-panel { padding: 18px 16px 6px; border-radius: 18px; gap: 0; }
  .pp-img { display: none; }
  .pp-title { font-size: 28px; }
  .pp-intro { font-size: 13.5px; margin-bottom: 6px; }
  .pitem { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; }
  .pitem h4 { font-size: 18.5px; }
  .pitem .price { font-size: 18.5px; }
  .pitem p { font-size: 13px; line-height: 1.5; }
  .pitem .book-it { font-size: 12.5px; margin-top: 4px; padding: 4px 0; }

  /* Đặt lịch */
  .book-in { gap: 22px; }
  .book-text p { font-size: 14px; margin: 8px 0 0; }
  .book-points { margin-top: 14px; gap: 8px; font-size: 14px; }
  .book-form { padding: 20px 16px; border-radius: 20px; gap: 14px; }
  .row2 { grid-template-columns: 1fr; gap: 14px; }
  input, select, textarea { font-size: 16px; padding: 12px; } /* 16px để iPhone không tự phóng to khi nhập */
  .slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .slots .muted { grid-column: 1 / -1; }
  .slot { padding: 10px 0; text-align: center; font-size: 14px; }

  /* Liên hệ */
  .contact { gap: 22px; }
  .info { grid-template-columns: 84px 1fr; gap: 8px 12px; margin: 16px 0 20px; font-size: 14px; }
  .contact .hero-cta { grid-template-columns: 1fr 1fr; }
  .map { border-radius: 18px; aspect-ratio: 4 / 3; }

  .foot { padding: 40px 0 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-logo { height: 52px; margin-bottom: 12px; }
  .foot-brand p { font-size: 13.5px; max-width: none; margin-bottom: 14px; }
  .foot h4 { font-size: 19px; margin-bottom: 10px; }
  .foot-col:nth-of-type(2) { grid-column: 1 / -1; }
  .foot ul { gap: 9px; font-size: 13.5px; }
  .foot-bottom { margin-top: 30px; padding: 16px 0 20px; flex-direction: column; gap: 6px; }
  .mbar a { padding: 12px; font-size: 15px; }
}
.top-call { display: none; }
@media (max-width: 520px) {
  .top-book { display: none; }
  .top-call { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--g); font-weight: 600; font-size: 14px; border: 1.5px solid var(--g-line); border-radius: 999px; padding: 7px 12px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 35px; }
  .hero .hero-cta { grid-template-columns: 1fr; }
  .hero .hero-cta .btn-line { display: none; }
}
@media (max-width: 520px) {
  .hero-facts b { font-size: 21px; white-space: nowrap; }
}
@media (min-width: 521px) and (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Nút chat trợ lý AI */
.ai-chat { position: fixed; right: 22px; bottom: 22px; z-index: 80; font-family: var(--sans); }
.ai-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: radial-gradient(circle at 30% 25%, #2a8a55, var(--g) 55%, var(--g-dark)); box-shadow: 0 16px 34px -12px rgba(11, 63, 34, .7), 0 0 0 6px rgba(17, 88, 48, .12); display: grid; place-items: center; transition: transform .25s; }
.ai-fab:hover { transform: translateY(-2px) scale(1.04); }
.ai-fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(17, 88, 48, .35); animation: ai-ring 2.4s ease-out infinite; }
.ai-chat.open .ai-fab::after { display: none; }
@keyframes ai-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.ai-fab-tag { position: absolute; top: -4px; right: -4px; background: #fff; color: var(--g); font: 700 10.5px var(--sans); padding: 2px 6px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); letter-spacing: .04em; }
.ai-panel { position: absolute; right: 0; bottom: 74px; width: 370px; height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(11, 63, 34, .45), 0 0 0 1px rgba(17, 88, 48, .08); display: flex; flex-direction: column; overflow: hidden; animation: ai-in .22s ease-out; }
.ai-panel[hidden] { display: none; }
@keyframes ai-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(120deg, var(--g-dark), var(--g)); color: #fff; }
.ai-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--g); display: grid; place-items: center; font: 600 22px var(--serif); flex: 0 0 auto; }
.ai-title { flex: 1; display: grid; line-height: 1.3; }
.ai-title b { font-size: 15px; font-weight: 600; }
.ai-title span { font-size: 12px; color: #cfe3d7; display: flex; align-items: center; gap: 6px; }
.ai-title i { width: 7px; height: 7px; border-radius: 50%; background: #6ee7a0; box-shadow: 0 0 0 3px rgba(110, 231, 160, .25); }
.ai-x { background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ai-x:hover { background: rgba(255, 255, 255, .22); }
.ai-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: #f6f9f7; overscroll-behavior: contain; }
.ai-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.55; word-wrap: break-word; }
.ai-msg.bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid rgba(17, 88, 48, .08); border-bottom-left-radius: 6px; }
.ai-msg.me { align-self: flex-end; background: var(--g); color: #fff; border-bottom-right-radius: 6px; }
.ai-msg a { color: var(--g); font-weight: 600; }
.ai-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9cc5ad; animation: ai-dot 1s infinite ease-in-out; }
.ai-dots i:nth-child(2) { animation-delay: .15s; } .ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px 0; background: #f6f9f7; }
.ai-chips:empty { display: none; }
.ai-chips button { border: 1px solid var(--g-line); background: #fff; color: var(--g); border-radius: 999px; padding: 7px 12px; font: 500 12.5px var(--sans); cursor: pointer; }
.ai-chips button:hover { border-color: var(--g); }
.ai-form { display: flex; gap: 8px; padding: 10px 12px; background: #f6f9f7; border-top: 1px solid rgba(17, 88, 48, .06); }
.ai-form input { flex: 1; border-radius: 999px; padding: 11px 16px; font-size: 14px; background: #fff; }
.ai-form button { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; border: 0; background: var(--g); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ai-form button:disabled { opacity: .5; }
.ai-foot { margin: 0; padding: 0 14px 10px; background: #f6f9f7; font-size: 11px; color: var(--muted); text-align: center; }

@media (max-width: 860px) {
  .ai-chat { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .ai-fab { width: 54px; height: 54px; }
}
@media (max-width: 520px) {
  .ai-chat.open { inset: 0; }
  .ai-chat.open .ai-fab { display: none; }
  .ai-panel { position: fixed; inset: 0; width: auto; height: 100%; border-radius: 0; bottom: auto; }
  .ai-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .ai-form { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .ai-form input { font-size: 16px; }
}
/* Robot */
.ai-fab { background: radial-gradient(circle at 30% 25%, #2f9a60, var(--g) 58%, var(--g-dark)); }
.ai-fab-ic { display: grid; place-items: center; transform: translateY(2px); }
.ai-bot-eyes { transform-origin: 32px 31px; animation: ai-blink 4s infinite; }
@keyframes ai-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.ai-fab:hover .ai-bot { animation: ai-wiggle .6s ease-in-out; }
@keyframes ai-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.ai-bot-ant { animation: ai-glow 1.6s ease-in-out infinite; }
@keyframes ai-glow { 50% { fill: #ffe38a; } }
.ai-avatar { background: rgba(255, 255, 255, .14); }
.ai-fab-tag { background: #f7c948; color: #0b3f22; }
/* Times New Roman hiển thị nhỏ hơn chữ không chân: tăng nhẹ cỡ chữ phụ */
.lead { font-size: 18.5px; }
.card p, .pitem p, .value p, .sub, .pp-intro, .book-text p { font-size: 15.5px; }
.nav a, .tab, .btn { font-size: 16px; }
.btn-sm { font-size: 15px; }
.foot { font-size: 15px; }
.ai-msg { font-size: 15.5px; }
@media (max-width: 520px) {
  .lead { font-size: 16.5px; }
  .card p, .pitem p, .value p, .sub, .pp-intro, .book-text p { font-size: 14.5px; }
  .tab { font-size: 14.5px; }
}
/* Chân trang trên điện thoại: gọn, căn giữa */
@media (max-width: 520px) {
  .foot { padding: 34px 0 0; text-align: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .foot-brand { display: flex; flex-direction: column; align-items: center; }
  .foot-logo { height: 46px; margin: 0 auto 10px; }
  .foot-brand p { font-size: 14px; max-width: 300px; margin: 0 auto 14px; line-height: 1.55; }
  .social { justify-content: center; }
  .social a { width: 38px; height: 38px; }
  .foot h4 { display: none; }
  .foot-col:nth-of-type(3) { display: none; } /* Facebook / Instagram đã có ở nút tròn */
  .foot-col:nth-of-type(2) ul { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 6px 14px; gap: 0; text-align: left; }
  .foot-col:nth-of-type(2) li { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 14px; line-height: 1.45; }
  .foot-col:nth-of-type(2) li:first-child { border-top: 0; }
  .foot-col li span { margin: 0; font-size: 11px; letter-spacing: .08em; }
  .foot-links { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px !important; }
  .foot-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; }
  .foot-links a:hover { text-decoration: none; background: rgba(255, 255, 255, .08); }
  .foot-bottom { margin-top: 24px; padding: 14px 0 18px; align-items: center; text-align: center; gap: 4px; }
  .foot-bottom p { font-size: 12px; }
}
@media (max-width: 520px) { .foot-bottom { padding-bottom: 78px; } } /* chừa chỗ nút robot AI */
/* Biểu tượng trong chân trang */
.fi-row { display: flex !important; gap: 12px; align-items: flex-start; text-align: left; }
.fi { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #9fdcb8; font-style: normal; }
.fi-row > div { min-width: 0; padding-top: 1px; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .foot-col:nth-of-type(2) li.fi-row { display: flex !important; grid-template-columns: none; align-items: center; padding: 10px 0; }
  .fi { width: 32px; height: 32px; }
  .foot-col li span { font-size: 10.5px; }
}
.foot-links a::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-top: 1.5px solid #9fdcb8; border-right: 1.5px solid #9fdcb8; transform: rotate(45deg); }
@media (max-width: 520px) { .foot-links a::before { display: none; } }
