/* ===== SỮA ÁNH NGÂN — APP THEME (Navy #1B2A4A · Gold #C9A227) ===== */
:root {
  --navy: #1B2A4A;
  --navy-2: #24365E;
  --navy-3: #33477A;
  --gold: #C9A227;
  --gold-2: #E3C35A;
  --gold-soft: #F7F0DA;
  --cream: #FBF8F0;
  --bg: #F2F4F8;
  --card: #FFFFFF;
  --ink: #1E2433;
  --mut: #6B7386;
  --line: #E6E9F0;
  --red: #D64545;
  --green: #2E9E5B;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(27, 42, 74, .08), 0 4px 14px rgba(27, 42, 74, .06);
  --font-head: 'Montserrat', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); background: #DDE2EC; color: var(--ink);
  font-size: 14.5px; line-height: 1.5;
}
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

/* ---- Khung app dạng điện thoại ---- */
#app {
  max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg);
  position: relative; box-shadow: 0 0 40px rgba(27,42,74,.25);
  display: flex; flex-direction: column;
}
#view { flex: 1; padding-bottom: 76px; }

/* ---- Header ---- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, #3A5087 100%);
  padding: 12px 12px 10px; color: #fff;
}
.hdr .row { display: flex; align-items: center; gap: 10px; }
.hdr.sub { display: flex; align-items: center; gap: 10px; }
.hdr .ttl { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; flex: 1; text-align: center; }
.hdr .spacer { width: 34px; }
.brandline { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.brandline .bname { font-family: var(--font-head); font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.brandline .bsub { font-size: 10.5px; color: #D9E0F0; margin-top: -2px; }
.iconbtn {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; flex: none; position: relative;
}
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; }
.iconbtn .dot {
  position: absolute; top: 2px; right: 2px; width: 9px; height: 9px;
  background: var(--gold-2); border-radius: 50%; border: 1.5px solid var(--navy);
}
.searchpill {
  flex: 1; background: #fff; border-radius: 999px; height: 38px;
  display: flex; align-items: center; padding: 0 6px 0 13px; gap: 8px; color: var(--mut);
  overflow: hidden;
}
.searchpill svg { width: 16px; height: 16px; stroke: var(--gold); stroke-width: 2; fill: none; flex: none; }
.searchpill .hint { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchpill .cam {
  width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
}
.searchpill .cam svg { stroke: var(--navy); width: 15px; height: 15px; }

/* ---- Bottom nav ---- */
.bnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); z-index: 50;
  padding: 6px 0 max(8px, env(safe-area-inset-bottom));
}
.bnav button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: #97A0B3; position: relative; }
.bnav button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.bnav button.on { color: var(--navy); font-weight: 700; }
.bnav button.on svg { stroke-width: 2.2; }
.bnav .cartn { position: absolute; top: -3px; right: calc(50% - 20px); background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---- Thành phần chung ---- */
.sec { margin: 12px 10px 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.sechead { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; }
.sechead h3 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--navy); }
.sechead .more { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px;
  border-radius: 999px; padding: 12px 18px; width: 100%;
}
.btn.gold { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%); color: var(--navy); }
.btn.line { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.sm { padding: 8px 14px; font-size: 13px; width: auto; }
.btn:disabled { opacity: .45; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--ink); white-space: nowrap;
}
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 10px; }
.badge { display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 6px; font-size: 10px; font-weight: 700; }
.badge.gift { background: #FDEDF3; color: #C2447B; }
.badge.top { background: var(--gold-soft); color: #8A6D12; }
.badge.u24 { background: #EEF1F7; color: var(--mut); font-weight: 600; }
.note { font-size: 11.5px; color: var(--mut); }
.toast {
  position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%);
  background: rgba(27,42,74,.94); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; z-index: 99; max-width: 86%; text-align: center; box-shadow: var(--shadow);
  animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }

/* ---- Banner carousel ---- */
.banners { position: relative; margin: 10px 10px 0; }
.banners .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: var(--radius); }
.banner { flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; }
.banner svg { display: block; width: 100%; height: auto; }
.dots { display: flex; gap: 4px; justify-content: center; margin-top: 7px; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: #C3CBDC; transition: .2s; }
.dots i.on { width: 14px; background: var(--gold); }

/* ---- Dải thành viên ---- */
.memberstrip {
  margin: 10px 10px 0; background: linear-gradient(110deg, var(--gold-soft), #FDF6E1 60%, #F8EECB);
  border-radius: var(--radius); padding: 9px 12px; display: flex; align-items: center; gap: 10px;
  border: 1px solid #EFE2B4;
}
.memberstrip .col { flex: 1; min-width: 0; }
.memberstrip .t { font-size: 10.5px; color: #8A6D12; }
.memberstrip .v { font-size: 12.5px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memberstrip .sep { width: 1px; height: 26px; background: #E8D89C; }

/* ---- Ô chức năng nhanh ---- */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 12px 6px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink); text-align: center; line-height: 1.25; }
.quick .qic {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; background: var(--gold-soft); position: relative;
}
.quick .qic.b1 { background: #EAF0FB; } .quick .qic.b2 { background: #FDEEEE; }
.quick .qic.b3 { background: #EDF7F0; } .quick .qic.b4 { background: #FDF3E4; }
.quick .qic .mini { position: absolute; top: -5px; right: -7px; background: var(--red); color: #fff; font-size: 8.5px; font-weight: 700; border-radius: 7px; padding: 1px 5px; }

/* ---- Voucher strip ---- */
.vstrip { padding-bottom: 10px; }
.vcard {
  flex: 0 0 236px; display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
}
.vcard .l {
  width: 74px; background: var(--cream); border-right: 1px dashed #DACD9F;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; text-align: center;
}
.vcard .l .ic { font-size: 20px; }
.vcard .l .t { font-size: 9px; color: var(--mut); line-height: 1.2; }
.vcard .r { flex: 1; padding: 8px 10px; min-width: 0; }
.vcard .r .tt { font-weight: 700; font-size: 13px; color: var(--navy); }
.vcard .r .d { font-size: 10.5px; color: var(--mut); margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .r .act { font-size: 11.5px; color: var(--gold); font-weight: 700; }
.vcard .r .act.got { color: var(--green); }

/* ---- Lưới sản phẩm ---- */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px; }
.pcard { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.pcard .ph { position: relative; }
.pcard .ph svg { width: 100%; height: auto; display: block; }
.pcard .ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.pd-gallery img { width: 100%; max-height: 360px; object-fit: contain; display: block; margin: 0 auto; }
.pcard .off {
  position: absolute; top: 8px; left: 8px;
}
.pcard .body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .nm { font-size: 12.5px; line-height: 1.35; height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--mut); flex-wrap: wrap; }
.pcard .meta .st { color: #E8A13C; font-weight: 700; }
.pcard .rowp { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pcard .pr { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--navy); }
.pcard .pr small { font-size: 10px; font-weight: 600; color: var(--mut); }
.pcard .addbtn {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
}
.pcard .addbtn svg { width: 16px; height: 16px; stroke: var(--navy); stroke-width: 2; fill: none; }
.pcard .unit { font-size: 10px; color: var(--mut); }

/* ---- Card nội dung xen kẽ ---- */
.artcard { background: linear-gradient(160deg, #F6F1DF, #FDFBF4); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.artcard .top { padding: 12px 12px 0; }
.artcard .tag { font-size: 9.5px; font-weight: 800; color: #8A6D12; background: #fff; border-radius: 6px; padding: 3px 7px; display: inline-block; }
.artcard h4 { font-size: 13px; line-height: 1.35; color: var(--navy); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.artcard .foot { padding: 10px 12px 12px; display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.artcard .eye { font-size: 10.5px; color: var(--mut); }
.artcard .go { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ---- Trang danh mục ---- */
.cattabs { display: flex; overflow-x: auto; gap: 2px; background: #fff; padding: 4px 8px 0; position: sticky; top: 58px; z-index: 30; border-bottom: 1px solid var(--line); }
.cattabs button { flex: none; padding: 9px 10px 10px; font-size: 13px; color: var(--mut); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.cattabs button.on { color: var(--navy); font-weight: 800; border-color: var(--gold); }
.brandgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 12px 12px; }
.brandgrid button { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brandgrid .bl { font-family: var(--font-head); font-weight: 800; font-size: 11px; color: var(--navy); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brandgrid .bc { font-size: 9.5px; color: var(--mut); }
.seggrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0 12px 12px; }
.seggrid button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ink); }
.seggrid .ic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--bg); border: 1.5px solid var(--line); }
.seggrid button.on .ic { border-color: var(--gold); background: var(--gold-soft); }
.seggrid button.on { font-weight: 700; color: var(--navy); }
.sortbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; position: sticky; top: 101px; z-index: 29; background: var(--bg); }
.sortbar .chip { font-size: 12px; }

/* ---- Trang sản phẩm ---- */
.pd-gallery { background: #fff; }
.pd-gallery svg { width: 100%; height: auto; }
.pd-gmain img { width: 100%; max-height: 380px; object-fit: contain; display: block; margin: 0 auto; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; }
.pd-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); flex: none; cursor: pointer; opacity: .75; }
.pd-thumbs img.on { border-color: var(--gold); opacity: 1; }
.pd-main { background: #fff; padding: 12px 14px; }
.pd-price { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--navy); }
.pd-price small { font-size: 12px; color: var(--mut); font-weight: 600; }
.pd-name { font-size: 15.5px; line-height: 1.4; font-weight: 600; margin-top: 4px; }
.pd-meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--mut); flex-wrap: wrap; }
.pd-sec { background: #fff; margin-top: 8px; padding: 12px 14px; }
.pd-sec h4 { font-family: var(--font-head); font-size: 13.5px; color: var(--navy); margin-bottom: 8px; }
.polrow { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; font-size: 12.5px; }
.polrow .ic { flex: none; font-size: 15px; }
.pd-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line);
  display: flex; gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); z-index: 60;
}
.pd-bar .ghost { flex: none; width: 46px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9px; color: var(--mut); gap: 1px; }
.pd-bar .ghost svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; font-size: 17px; font-weight: 700; color: var(--navy); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }

/* ---- Cảnh báo pháp lý ---- */
.lawnote {
  margin-top: 8px; background: #F4F6FB; border: 1px solid #E2E7F2; border-radius: 10px;
  padding: 9px 11px; font-size: 11.5px; color: #55607A; line-height: 1.5;
}

/* ---- Giỏ hàng ---- */
.carttabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); }
.carttabs button { flex: 1; padding: 11px; font-size: 13.5px; color: var(--mut); border-bottom: 2.5px solid transparent; }
.carttabs button.on { color: var(--navy); font-weight: 800; border-color: var(--gold); }
.promoline {
  margin: 10px 10px 0; background: linear-gradient(100deg, var(--navy), var(--navy-3));
  color: #fff; border-radius: 10px; padding: 9px 12px; font-size: 12px; display: flex; gap: 8px; align-items: center;
}
.promoline b { color: var(--gold-2); }
.citem { display: flex; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.citem .th { flex: none; width: 64px; }
.citem .th svg { border-radius: 8px; width: 64px; height: 64px; }
.citem .inf { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.citem .nm { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem .pr { font-weight: 800; color: var(--navy); font-size: 14px; font-family: var(--font-head); }
.citem .rm { color: var(--mut); font-size: 11px; align-self: flex-start; }
.progressbox { background: #fff; margin: 10px 10px 0; border-radius: var(--radius); padding: 11px 13px; box-shadow: var(--shadow); }
.progressbox .t { font-size: 12px; display: flex; justify-content: space-between; margin-bottom: 6px; }
.pbar { height: 7px; border-radius: 4px; background: #ECEFF5; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .3s; }
.sumrow { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.sumrow.b { font-weight: 800; font-size: 15px; color: var(--navy); }
.cart-bar {
  position: fixed; bottom: 62px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; z-index: 45;
}
.cart-bar .tot { flex: 1; }
.cart-bar .tot .l { font-size: 10.5px; color: var(--mut); }
.cart-bar .tot .v { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--navy); }

/* ---- Form ---- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.radiorow { display: flex; gap: 9px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; font-size: 13px; }
.radiorow.on { border-color: var(--gold); background: var(--gold-soft); }
.radiorow .rd { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #B9C1D2; flex: none; }
.radiorow.on .rd { border: 5px solid var(--gold); }
.radiorow .fee { margin-left: auto; font-weight: 700; color: var(--navy); font-size: 12.5px; white-space: nowrap; }

/* ---- Tài khoản ---- */
.acc-hero { background: linear-gradient(150deg, var(--navy), #3A5087); color: #fff; padding: 16px 14px 42px; }
.acc-hero .row { display: flex; align-items: center; gap: 11px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 25px; flex: none; border: 2px solid var(--gold-2); }
.acc-hero .nm { font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.acc-hero .ph { font-size: 12px; color: #C9D2E6; }
.acc-card { margin: -30px 10px 0; position: relative; z-index: 2; }
.ordstrip { display: grid; grid-template-columns: repeat(5, 1fr); padding: 12px 4px; }
.ordstrip button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; color: var(--ink); position: relative; }
.ordstrip .ic { font-size: 20px; }
.ordstrip .n { position: absolute; top: -4px; right: 16%; background: var(--red); color: #fff; border-radius: 8px; min-width: 15px; height: 15px; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.menugrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 10px 6px; }
.menugrid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; font-size: 10.5px; text-align: center; color: var(--ink); line-height: 1.25; }
.menugrid .ic { font-size: 22px; }
.listrow { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.listrow .ic { font-size: 17px; width: 24px; text-align: center; }
.listrow .ar { margin-left: auto; color: #B9C1D2; }
.ordcard { background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin: 0 10px 10px; padding: 12px; }
.ordcard .top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.stt { font-weight: 700; }
.stt.cho { color: #C77F13; } .stt.giao { color: #2B6CB0; } .stt.xong { color: var(--green); } .stt.huy { color: var(--mut); }

/* ---- Live & Video ---- */
.livetabs { display: flex; justify-content: center; gap: 22px; background: linear-gradient(120deg, var(--navy), #3A5087); color: #C9D2E6; padding: 12px 0 10px; position: sticky; top: 0; z-index: 40; }
.livetabs button { font-size: 15px; font-weight: 600; color: inherit; padding-bottom: 4px; border-bottom: 2.5px solid transparent; }
.livetabs button.on { color: #fff; font-weight: 800; border-color: var(--gold-2); }
.livecard { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); margin: 0 10px 12px; }
.livecard .poster { position: relative; }
.livecard .when { background: var(--navy); color: #fff; display: flex; justify-content: space-between; padding: 9px 12px; font-size: 12.5px; }
.livecard .foot { padding: 10px 12px; display: flex; gap: 8px; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.vcell { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.vcell .t { padding: 8px 10px 10px; font-size: 12px; line-height: 1.35; }
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; margin: 10px; }
.player iframe { width: 100%; aspect-ratio: 9/14; border: 0; display: block; }

/* ---- Chat Bé Mầm ---- */
.chatwrap { display: flex; flex-direction: column; min-height: calc(100dvh - 130px); }
.chatlog { flex: 1; padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; white-space: pre-line; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: var(--shadow); }
.msg.me { background: var(--navy); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.chatopts { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 12px 14px; }
.chatopts .chip { border-color: var(--gold); color: var(--navy); background: #fff; font-weight: 600; }

/* ---- Sheet / modal ---- */
.sheetbg { position: fixed; inset: 0; background: rgba(15,22,40,.5); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 480px; background: var(--bg); border-radius: 18px 18px 0 0;
  max-height: 82dvh; overflow-y: auto; animation: up .22s ease;
}
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet .shead { position: sticky; top: 0; background: var(--bg); display: flex; align-items: center; padding: 14px 14px 10px; z-index: 2; }
.sheet .shead h3 { flex: 1; text-align: center; font-family: var(--font-head); font-size: 15.5px; color: var(--navy); }
.sheet .shead .x { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.sheet .sbody { padding: 0 14px 20px; }

/* ---- Trang giới thiệu / timeline ---- */
.tl { padding: 4px 0 4px 6px; }
.tlrow { display: flex; gap: 12px; padding: 0 0 18px; position: relative; }
.tlrow::before { content: ''; position: absolute; left: 26px; top: 24px; bottom: -2px; width: 2px; background: var(--gold-soft); }
.tlrow:last-child::before { display: none; }
.tlrow .y { flex: none; width: 52px; height: 24px; border-radius: 8px; background: var(--navy); color: var(--gold-2); font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); z-index: 1; }
.tlrow .tx { font-size: 13px; padding-top: 2px; }

.empty { text-align: center; padding: 42px 24px; color: var(--mut); }
.empty .big { font-size: 46px; margin-bottom: 10px; }
.empty b { color: var(--navy); }

.footco { padding: 18px 16px 26px; font-size: 11.5px; color: var(--mut); line-height: 1.65; }
.footco b { color: var(--navy); font-size: 12.5px; }

@media (min-width: 520px) {
  body { padding: 0; }
}
