:root {
  --ink: #1e2b3a;
  --ink-soft: #55657a;
  --bean: #2f7d4f;
  --bean-deep: #1f5a38;
  --bean-pale: #e6f2ea;
  --paper: #f7faf7;
  --line: #d9e3dc;
  --sky: #4a90c2;
  --sun: #e8a317;
  --coral: #d9604a;
  --plum: #7a5aa6;
  --st-available: #2f7d4f;
  --st-held: #b07a06;
  --st-deposited: #2b6cb0;
  --st-sold: #7b8794;
  --bs-body-font-family: "Be Vietnam Pro", system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--bean-deep);
  --bs-link-hover-color: var(--bean);
}
html { scroll-padding-top: 5rem; }
body { background: var(--paper); color: var(--ink); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, h4, .brand { font-family: "Baloo 2", "Be Vietnam Pro", sans-serif; line-height: 1.15; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
a,a:hover {
  text-decoration: none;
}
/* ---- Nút ---- */
.btn-bean { background: var(--bean); border-color: var(--bean); color: #fff; font-weight: 600; border-radius: 10px; }
.btn-bean:hover, .btn-bean:focus { background: var(--bean-deep); border-color: var(--bean-deep); color: #fff; }
.btn-line { border: 1.5px solid var(--bean); color: var(--bean-deep); font-weight: 600; border-radius: 10px; background: transparent; }
.btn-line:hover { background: var(--bean-pale); color: var(--bean-deep); }

/* ---- Thanh trên cùng + Header ---- */
.topbar { background: var(--bean-deep); color: #e6f2ea; font-size: .82rem; padding: .35rem 0; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; box-shadow: 0 1px 8px rgba(30,43,58,.04); }
.header-main { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; }
.brand { font-size: 1.6rem; font-weight: 800; color: var(--bean-deep); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.brand:hover { color: var(--bean); }
.brand svg { width: 30px; height: 30px; flex: none; }
.search-box { flex: 1 1 auto; max-width: 560px; margin: 0 auto; }
.search-box .form-control { border: 1.5px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: .55rem 1rem; background: var(--paper); }
.search-box .form-control:focus { box-shadow: none; border-color: var(--bean); background: #fff; }
.search-box .btn { border-radius: 0 999px 999px 0; padding: 0 1.2rem; }
.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.action-btn { display: flex; align-items: center; gap: .55rem; background: none; border: 0; color: var(--ink); text-decoration: none; padding: .3rem .55rem; border-radius: 12px; cursor: pointer; }
.action-btn:hover { background: var(--bean-pale); color: var(--bean-deep); }
.action-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--bean-pale); color: var(--bean-deep); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.action-icon.is-on { background: var(--bean); color: #fff; }
.action-text { text-align: left; line-height: 1.15; }
.action-text small { display: block; color: var(--ink-soft); font-size: .72rem; }
.action-text strong { font-size: .92rem; font-weight: 600; white-space: nowrap; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--coral); color: #fff; border-radius: 999px; font-size: .68rem; min-width: 1.15rem; height: 1.15rem; display: grid; place-items: center; padding: 0 .25rem; font-weight: 700; border: 2px solid #fff; }
.navbar-toggler { border: 0; font-size: 1.3rem; padding: .4rem .6rem; color: var(--ink); background: none; }
.account-menu { min-width: 250px; border-radius: 14px; border-color: var(--line); padding: .5rem 0; box-shadow: 0 12px 32px rgba(30,43,58,.12); }
.account-menu .dropdown-item { padding: .5rem 1rem; font-size: .94rem; }
.account-menu .dropdown-item i { width: 1.4rem; color: var(--bean); }
.account-menu .dropdown-item:active, .account-menu .dropdown-item:hover { background: var(--bean-pale); color: var(--bean-deep); }
.account-menu-head { padding: .25rem 1rem .5rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem; }
.account-menu-head strong { display: block; }
.account-menu-head small { color: var(--ink-soft); }

.nav-row { border-top: 1px solid var(--line); background: #fff; }
.nav-links { list-style: none; margin: 0; padding: .35rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.nav-links .nav-link { color: var(--ink); font-weight: 500; padding: .45rem .9rem; border-radius: 8px; font-size: .95rem; }
.nav-links .nav-link:hover, .nav-links .nav-link.active { background: var(--bean-pale); color: var(--bean-deep); }
.cat-trigger { background: var(--bean); color: #fff; border: 0; border-radius: 10px; padding: .45rem 1rem; font-weight: 600; font-size: .95rem; margin-right: .5rem; }
.cat-trigger:hover { background: var(--bean-deep); }
.cat-menu { border-radius: 14px; border-color: var(--line); padding: .5rem; min-width: 320px; box-shadow: 0 12px 32px rgba(30,43,58,.12); }
.cat-menu .dropdown-item { display: flex; align-items: center; gap: .75rem; border-radius: 10px; padding: .5rem .6rem; white-space: normal; }
.cat-menu .dropdown-item small { display: block; color: var(--ink-soft); font-size: .78rem; }
.cat-menu .dropdown-item:hover { background: var(--bean-pale); }
.cat-dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); flex: none; }
@media (max-width: 991.98px) {
  .nav-links { flex-direction: column; align-items: stretch; padding: .5rem 0 .75rem; }
  .nav-links .nav-link, .cat-trigger { width: 100%; text-align: left; margin: 0 0 .15rem; }
}

/* ---- Màu theo danh mục (dùng ở header, trang chủ) ---- */
.tone-green { --tone: var(--bean); --tone-bg: #e6f2ea; }
.tone-sky { --tone: #2f78ab; --tone-bg: #e3f0f9; }
.tone-plum { --tone: var(--plum); --tone-bg: #eee8f6; }
.tone-sun { --tone: #b57f0a; --tone-bg: #fcf1d3; }
.tone-coral { --tone: #c24a35; --tone-bg: #fbe6e1; }

/* ---- Hero: kệ sách theo độ tuổi ---- */
.hero { padding: 3rem 0 2rem; background: linear-gradient(180deg, #eaf4ed 0%, var(--paper) 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--bean-deep); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .85rem; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; max-width: 15ch; }
.hero p.lead { color: var(--ink-soft); max-width: 46ch; font-size: 1.05rem; }
.shelf-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem 1.25rem 0; box-shadow: 0 10px 30px rgba(31,90,56,.08); overflow: hidden; }
.shelf-title { font-weight: 600; color: var(--ink-soft); font-size: .92rem; margin-bottom: 1rem; }
.shelf { display: flex; align-items: flex-end; gap: .55rem; padding: 0 .25rem; border-bottom: 12px solid #c9a46c; min-height: 215px; }
.spine { flex: 1 1 0; min-width: 0; text-decoration: none; color: #fff; border-radius: 8px 8px 0 0; padding: .9rem .7rem; height: var(--h); background: var(--c); display: flex; flex-direction: column; justify-content: space-between; transition: transform .15s ease; }
.spine:hover, .spine:focus-visible { transform: translateY(-8px); color: #fff; }
.spine strong { font-family: "Baloo 2", sans-serif; font-size: 1.6rem; line-height: 1; }
.spine span { font-size: .78rem; opacity: .95; line-height: 1.3; }
.spine:nth-child(1) { --h: 150px; --c: var(--bean); }
.spine:nth-child(2) { --h: 190px; --c: var(--sky); }
.spine:nth-child(3) { --h: 165px; --c: var(--sun); color: var(--ink); }
.spine:nth-child(4) { --h: 205px; --c: var(--coral); }
.spine:nth-child(5) { --h: 175px; --c: var(--plum); }
.spine:nth-child(3):hover { color: var(--ink); }

/* ---- Dải cam kết ---- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: -1rem; position: relative; box-shadow: 0 6px 20px rgba(30,43,58,.05); }
.trust-item { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item > i { width: 42px; height: 42px; border-radius: 12px; background: var(--bean-pale); color: var(--bean-deep); display: grid; place-items: center; font-size: 1.05rem; flex: none; }
.trust-item strong { display: block; font-size: .95rem; line-height: 1.3; }
.trust-item span { color: var(--ink-soft); font-size: .8rem; line-height: 1.3; display: block; }
@media (max-width: 991.98px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } .trust-item:nth-child(3) { border-left: 0; } .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 575.98px) { .trust-strip { grid-template-columns: 1fr; } .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); } }

/* ---- Khối trang chủ ---- */
.home-section { margin-top: 3rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.1rem; gap: 1rem; }
.section-head .section-title { margin: 0; }
.see-all { font-weight: 600; text-decoration: none; white-space: nowrap; }
.see-all i { font-size: .8rem; transition: transform .15s; }
.see-all:hover i { transform: translateX(3px); }

.cat-card { display: flex; flex-direction: column; gap: .15rem; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.1rem 1rem; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cat-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tone); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(30,43,58,.1); border-color: var(--tone); color: var(--ink); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--tone-bg); color: var(--tone); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .7rem; }
.cat-name { font-family: "Baloo 2", sans-serif; font-size: 1.12rem; line-height: 1.25; }
.cat-en { color: var(--ink-soft); font-size: .8rem; line-height: 1.35; }
.cat-count { margin-top: auto; padding-top: .8rem; font-size: .85rem; font-weight: 600; color: var(--tone); }
.cat-count i { font-size: .75rem; margin-left: .2rem; transition: transform .15s; }
.cat-card:hover .cat-count i { transform: translateX(4px); }

.step-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; height: 100%; }
.step-card h3 { font-size: 1.2rem; margin: .7rem 0 .3rem; }
.step-card p { color: var(--ink-soft); margin: 0; font-size: .93rem; }
.step-no { width: 34px; height: 34px; border-radius: 50%; background: var(--bean); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: "Baloo 2", sans-serif; }
.hunt-banner { background: linear-gradient(120deg, var(--bean-deep), var(--bean)); color: #fff; border-radius: 22px; padding: 2rem 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.hunt-banner h2 { font-size: 1.7rem; color: #fff; margin-bottom: .35rem; }
.hunt-banner p { color: #dcefe3; max-width: 52ch; }
.hunt-banner .btn-light { font-weight: 600; color: var(--bean-deep); border-radius: 10px; }

/* ---- Thẻ sách ---- */
.section-title { font-size: 1.7rem; font-weight: 700; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease; }
.book-card:hover { box-shadow: 0 10px 26px rgba(30,43,58,.1); transform: translateY(-3px); }
.book-cover { aspect-ratio: 4 / 5; display: grid; place-items: center; color: #fff; font-family: "Baloo 2", sans-serif; font-size: 3.2rem; font-weight: 800; text-decoration: none; position: relative; background: var(--bean); }
.book-grid .book-card:nth-child(4n+2) .book-cover { background: var(--sky); }
.book-grid .book-card:nth-child(4n+3) .book-cover { background: var(--plum); }
.book-grid .book-card:nth-child(4n+4) .book-cover { background: var(--coral); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-grid .book-card .book-cover.has-img { background: #eef3ef; }
.discount-badge { position: absolute; top: .6rem; right: .6rem; background: var(--coral); color: #fff; font-size: .76rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; font-family: "Be Vietnam Pro", sans-serif; }
.book-cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--bean); }
.book-cond { font-size: .8rem; }
.book-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.book-title { font-size: 1.05rem; font-weight: 600; font-family: "Be Vietnam Pro", sans-serif; margin: 0; }
.book-title a { color: var(--ink); text-decoration: none; }
.book-meta { color: var(--ink-soft); font-size: .85rem; }
.book-price { font-weight: 700; font-size: 1.1rem; margin-top: auto; padding-top: .5rem; color: var(--bean-deep); }
.book-price s { color: var(--ink-soft); font-weight: 400; font-size: .82rem; margin-left: .45rem; }
.book-card.is-sold { opacity: .72; }
.book-card.is-sold .book-cover { filter: grayscale(1); }
.book-card.is-sold .book-price { text-decoration: none; color: var(--ink-soft); }

/* ---- Nhãn trạng thái (dùng chung mọi trang: còn / đang giữ / đã bán) ---- */
.status-badge { position: absolute; top: .6rem; left: .6rem; font-family: "Be Vietnam Pro", sans-serif; font-size: .78rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: #fff; color: var(--st-available); display: inline-flex; align-items: center; gap: .35rem; }
.status-badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-badge.is-held { color: var(--st-held); }
.status-badge.is-deposited { color: var(--st-deposited); }
.status-badge.is-sold { color: var(--st-sold); }
.status-inline { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.status-inline.is-available { color: var(--st-available); }
.status-inline.is-held { color: var(--st-held); }
.status-inline.is-deposited { color: var(--st-deposited); }
.status-inline.is-sold { color: var(--st-sold); }

/* ---- Footer ---- */
.site-footer { background: #17402a; color: #c6dccf; padding: 2.5rem 0 1rem; font-size: .93rem; margin-top: 4rem; }
.site-footer a { color: #c6dccf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer h4 { font-size: 1.05rem; color: #fff; margin-bottom: .75rem; }
.site-footer li { margin-bottom: .35rem; }
.footer-brand { font-family: "Baloo 2", sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 1.8rem; padding-top: 1rem; font-size: .82rem; color: #9fbfae; }

/* ---- Trang tạm ---- */
.stub-box { background: #fff; border: 1.5px dashed var(--line); border-radius: 14px; padding: 2rem; max-width: 640px; }

@media (max-width: 575px) {
  .spine { padding: .6rem .45rem; }
  .spine strong { font-size: 1.2rem; }
  .spine span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spine { transition: none; }
}

/* ---- Chi tiết sách, giỏ hàng, đặt hàng ---- */
.detail-cover { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: 6rem; }
.detail-cover img { object-fit: contain; background: #fff; }
.detail-cover.is-sold img { filter: grayscale(1); }
.price-now { font-size: 1.8rem; font-weight: 800; font-family: "Baloo 2", sans-serif; color: var(--bean-deep); }
.price-old { color: var(--ink-soft); margin: 0 .5rem; text-decoration: none; }
.spec-list dt { color: var(--ink-soft); font-weight: 500; }
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-left: 0; margin-right: 0; }
.cart-thumb { width: 56px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.cart-thumb-empty { display: grid; place-items: center; background: var(--bean); color: #fff; font-family: "Baloo 2", sans-serif; font-size: 1.6rem; }
.kind-option { border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .6rem; background: #fff; cursor: pointer; }
.kind-option:has(input:checked) { border-color: var(--bean); background: var(--bean-pale); }

.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.cat-chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; text-decoration: none; }
.cat-chip:hover { border-color: var(--bean); color: var(--bean-deep); }
.cat-chip.active { background: var(--bean); border-color: var(--bean); color: #fff; }
.cat-tile { display: block; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); height: 100%; }
.cat-tile:hover { border-color: var(--bean); }
.cat-tile strong { display: block; font-size: 1rem; }
.cat-tile span { color: var(--ink-soft); font-size: .82rem; }
.qr-box { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 1.2rem; text-align: center; }
.qr-box img { max-width: 320px; width: 100%; height: auto; }
.countdown { font-family: "Baloo 2", sans-serif; font-size: 2rem; font-weight: 800; color: var(--st-held); }


/* ---- Trang lọc sách ---- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--ink-soft); margin-bottom: .75rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--bean-deep); text-decoration: none; }
.crumbs i { font-size: .6rem; }
.crumbs span { color: var(--ink); font-weight: 500; }
.catalog-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.1rem 1.2rem; width: 100%; }
@media (min-width: 992px) { .filter-panel { position: sticky; top: 9.5rem; } }
.filter-group { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; margin-bottom: .5rem; padding-bottom: 0; }
.filter-label { display: block; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.02rem; margin-bottom: .5rem; }
.filter-panel .form-control { border-color: var(--line); }
.filter-panel .form-control:focus { border-color: var(--bean); box-shadow: 0 0 0 3px rgba(47,125,79,.15); }
.opt { display: flex; align-items: center; gap: .55rem; padding: .3rem .35rem; border-radius: 8px; cursor: pointer; font-size: .92rem; margin: 0; }
.opt:hover { background: var(--bean-pale); }
.opt input { accent-color: var(--bean); width: 1rem; height: 1rem; flex: none; margin: 0; }
.opt span { flex: 1; line-height: 1.35; }
.opt em { font-style: normal; font-size: .76rem; color: var(--ink-soft); background: var(--paper); border-radius: 999px; padding: 0 .5rem; }
.opt:has(input:checked) span { font-weight: 600; color: var(--bean-deep); }
.age-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.age-chip { margin: 0; cursor: pointer; }
.age-chip input { position: absolute; opacity: 0; pointer-events: none; }
.age-chip span { display: block; border: 1.5px solid var(--line); border-radius: 999px; padding: .2rem .8rem; font-size: .88rem; background: #fff; }
.age-chip:hover span { border-color: var(--bean); }
.age-chip:has(input:checked) span { background: var(--bean); border-color: var(--bean); color: #fff; font-weight: 600; }
.age-chip:has(input:focus-visible) span { outline: 3px solid var(--sun); outline-offset: 2px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.result-count { color: var(--ink-soft); }
.result-count strong { color: var(--ink); }
.sort-box { display: flex; align-items: center; gap: .5rem; }
.sort-box label { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; margin: 0; }
.sort-box .form-select { border-color: var(--line); border-radius: 10px; min-width: 150px; }
.active-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1rem; }
.active-chip { background: var(--bean-pale); color: var(--bean-deep); border-radius: 999px; padding: .2rem .75rem; font-size: .84rem; font-weight: 500; text-decoration: none; }
.active-chip i { font-size: .72rem; margin-left: .3rem; }
.active-chip:hover { background: #d3e8da; }
.clear-all { font-size: .84rem; color: var(--ink-soft); margin-left: .25rem; }
.empty-state { grid-column: 1 / -1; text-align: center; background: #fff; border: 1.5px dashed var(--line); border-radius: 18px; padding: 2.5rem 1.5rem; }
.empty-state > i { font-size: 2.2rem; color: var(--bean); margin-bottom: .6rem; }
.empty-state h2 { font-size: 1.3rem; }
.empty-state p { color: var(--ink-soft); }
.pagination { --bs-pagination-active-bg: var(--bean); --bs-pagination-active-border-color: var(--bean); --bs-pagination-color: var(--bean-deep); }

/* ---- Đăng nhập / đăng ký / tài khoản ---- */
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: 0 10px 30px rgba(31,90,56,.07); }
.auth-card .form-control { padding: .6rem .85rem; border-color: var(--line); border-radius: 10px; }
.auth-card .form-control:focus { border-color: var(--bean); box-shadow: 0 0 0 3px rgba(47,125,79,.15); }
.account-head { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--bean); color: #fff; display: grid; place-items: center; font-family: "Baloo 2", sans-serif; font-size: 1.6rem; font-weight: 800; flex: none; }
.acc-tabs { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.acc-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.acc-tab span { background: var(--paper); border-radius: 999px; padding: 0 .55rem; font-size: .8rem; color: var(--ink-soft); }
.acc-tab:hover { border-color: var(--bean); color: var(--bean-deep); }
.acc-tab.active { background: var(--bean); border-color: var(--bean); color: #fff; }
.acc-tab.active span { background: rgba(255,255,255,.22); color: #fff; }
.acc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.acc-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .6rem; }
.acc-code { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; margin-right: .6rem; }
.acc-date { color: var(--ink-soft); font-size: .82rem; }
.acc-pill { border-radius: 999px; padding: .15rem .75rem; font-size: .8rem; font-weight: 600; background: var(--paper); color: var(--ink-soft); white-space: nowrap; }
.acc-pill.is-holding { background: #fcf1d3; color: var(--st-held); }
.acc-pill.is-deposited { background: #e3eefa; color: var(--st-deposited); }
.acc-pill.is-pending { background: #e3f0f9; color: #2f78ab; }
.acc-pill.is-paid { background: #dff3e6; color: #1f7a45; }
.acc-pill.is-completed { background: var(--bean-pale); color: var(--bean-deep); }
.acc-items { list-style: none; padding: 0; margin: 0 0 .75rem; }
.acc-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.acc-note { border-radius: 10px; padding: .6rem .85rem; font-size: .9rem; margin-bottom: .75rem; }
.acc-note i { margin-right: .35rem; }
.acc-note.is-warn { background: #fdf5e0; color: #7a5604; }
.acc-note.is-info { background: #e8f1fb; color: #1f4f85; }
.acc-note.is-ok { background: var(--bean-pale); color: var(--bean-deep); }
.acc-card-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.acc-total strong { font-size: 1.1rem; color: var(--bean-deep); }
.acc-closed { margin-top: 1.5rem; }
.acc-closed summary { cursor: pointer; color: var(--ink-soft); font-weight: 600; margin-bottom: .75rem; }
.acc-closed .acc-card { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .cat-card, .book-card, .see-all i, .cat-count i, .cat-card::after { transition: none; } }

/* ---------- Khung "Chương trình khuyến mãi hôm nay" (Book Rescue) ---------- */
.promo-frame { background: linear-gradient(135deg, #fff4e0 0%, #ffe3dc 100%); border: 2px solid #f2b8a8; border-radius: 22px; padding: 1.6rem 1.6rem 1.8rem; }
.promo-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.promo-title { font-size: 1.7rem; font-weight: 700; color: #b23a25; margin: 0; }
.promo-title i { color: var(--sun); }
.promo-sub { margin: .25rem 0 0; color: var(--ink-soft); }
.promo-sub strong { color: var(--coral); font-size: 1.15em; }
.promo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }  /* 5 cuốn / hàng */
.promo-grid-more { margin-top: 1.1rem; }
#promoToggle[aria-expanded="false"] .promo-when-open, #promoToggle[aria-expanded="true"] .promo-when-closed { display: none; }
@media (max-width: 991.98px) { .promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promo-card { border-color: #f2b8a8; }
.promo-card .book-cover { background: var(--coral); }
.promo-card .book-cover.has-img { background: #eef3ef; }
.promo-badge { font-size: .9rem; padding: .2rem .65rem; background: #c93a22; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.promo-headline { font-size: .8rem; font-weight: 700; color: #c24a35; margin-bottom: .25rem; }
.promo-card .book-price { color: #c93a22; }
.promo-save { font-size: .78rem; font-weight: 600; color: var(--bean-deep); }
@media (max-width: 575.98px) {
  .promo-frame { padding: 1rem .75rem 1.1rem; border-radius: 18px; }
  .promo-title { font-size: 1.3rem; }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .promo-card .book-title { font-size: .92rem; }
  .promo-card .book-price { font-size: .98rem; }
  .promo-card .book-price s { display: block; margin-left: 0; }
}

/* ---- Trang Nhờ săn sách ---- */
.hunt-hero { background: var(--bean-pale); border-radius: 20px; padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; }
.hunt-hero h1 { color: var(--bean-deep); font-size: 1.9rem; font-weight: 800; margin: 0 0 .35rem; }
.hunt-hero p { color: var(--ink-soft); margin: 0 0 1rem; }
.hunt-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.hunt-flow > div { background: #fff; border-radius: 14px; padding: .7rem .9rem; display: flex; gap: .7rem; align-items: center; font-size: .9rem; line-height: 1.3; }
.hunt-flow i { font-size: 1.15rem; width: 1.4rem; text-align: center; }
.hunt-flow small { display: block; color: var(--ink-soft); }
.hunt-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.hunt-step-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.hunt-step-head h2 { font-size: 1.15rem; margin: 0; }
.hunt-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--tone-bg); color: var(--tone); flex: none; font-family: "Baloo 2", sans-serif; }
.hunt-sub { font-size: .85rem; color: var(--ink-soft); margin: .9rem 0 .5rem; }
.hunt-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hunt-chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; cursor: pointer; }
.hunt-chip:hover { background: var(--bean-pale); }
.hunt-chip.is-on { background: var(--bean); border-color: var(--bean); color: #fff; }
.hunt-ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: .5rem; }
.hunt-age { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: .5rem .4rem; text-align: center; cursor: pointer; line-height: 1.25; }
.hunt-age b { display: block; font-size: 1.05rem; }
.hunt-age small { display: block; color: var(--ink-soft); font-size: .72rem; }
.hunt-age:hover { background: #f1f7fc; }
.hunt-age.is-on { background: #e3f0f9; border-color: var(--sky); }
.hunt-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem; }
.hunt-cat { display: flex; align-items: center; gap: .65rem; text-align: left; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: .55rem .7rem; cursor: pointer; }
.hunt-cat:hover { background: var(--paper); }
.hunt-cat.is-on { background: var(--bean-pale); border-color: var(--bean); }
.hunt-cat .t { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.hunt-cat .ck { margin-left: auto; color: var(--bean); opacity: 0; }
.hunt-cat.is-on .ck { opacity: 1; }
.hunt-side { position: sticky; top: 6.5rem; background: #fff; border: 1px solid #b9d7c4; border-radius: 16px; padding: 1.1rem 1.25rem; }
.hunt-side h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.hunt-book { display: flex; gap: .7rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hunt-book:hover { color: var(--bean-deep); }
.hunt-book-cover { width: 40px; height: 54px; border-radius: 6px; background: var(--bean-pale); color: var(--bean); display: grid; place-items: center; flex: none; overflow: hidden; font-weight: 700; }
.hunt-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.hunt-book b { display: block; font-size: .92rem; line-height: 1.3; }
.hunt-book small { color: var(--ink-soft); }
.hunt-book .pr { margin-left: auto; font-weight: 700; color: var(--bean-deep); white-space: nowrap; font-size: .9rem; }
.hunt-done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--bean-pale); color: var(--bean); display: inline-grid; place-items: center; font-size: 2rem; margin-bottom: .6rem; }
.hunt-tag { background: var(--tone-bg); color: var(--tone); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; font-weight: 500; }
.hunt-next { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .7rem; line-height: 1.5; }
.hunt-next i { margin-top: .25rem; width: 1.2rem; text-align: center; }

/* Footer 4 cột */
.site-footer h4 { text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .55rem; }
.footer-contact i { width: 1rem; margin-top: .25rem; color: #8fc7a6; text-align: center; }
.footer-linkbtn { background: none; border: 0; padding: 0; color: #c6dccf; font: inherit; cursor: pointer; }
.footer-linkbtn:hover { color: #fff; text-decoration: underline; }
.legal-page h2 { color: var(--bean-deep); }
.legal-page ul { padding-left: 1.2rem; }
