/* ===== Rà soát giao diện public: nạp cuối cùng,ghi đè các quy tắc cũ ===== */

/* 1. Footer dính đáy trang ngắn */
body:not(.bare){min-height:100vh;display:flex;flex-direction:column}
body:not(.bare)>*{flex:0 0 auto}
body:not(.bare)>.container{flex:1 0 auto;width:100%}
body:not(.bare)>.site-footer{margin-top:auto}


/* 2. Thanh điều hướng: logo | menu căn trái có khoảng thở | tiện ích;nhóm có menu con */
.nav-group{position:relative}
.nav-top{display:inline-flex;align-items:center;gap:4px;border:0;background:none;font:inherit;font-size:13px;font-weight:500;padding:20px 0;color:var(--navy);cursor:pointer;white-space:nowrap}
.nav-top .icon{width:14px;height:14px;transition:transform .15s}
.nav-group:hover .nav-top,.nav-group.open .nav-top,.nav-group.active .nav-top{color:var(--g)}
.nav-group.active .nav-top{font-weight:700}
.nav-group:hover .nav-top .icon,.nav-group.open .nav-top .icon{transform:rotate(180deg)}
.nav-sub{position:absolute;left:-14px;top:calc(100% - 6px);min-width:300px;background:#fff;border:1px solid #e1ebe7;border-radius:14px;box-shadow:0 16px 36px #0a2a3a2e;padding:8px;z-index:60;display:none;flex-direction:column;gap:2px}
.nav-sub:before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
.nav-group:hover .nav-sub,.nav-group:focus-within .nav-sub,.nav-group.open .nav-sub{display:flex}
.nav-sub a{display:flex!important;gap:12px;align-items:center;padding:9px 12px!important;border-radius:10px;font-size:13px!important;white-space:normal}
.nav-sub a:after{display:none!important}
.nav-sub a:hover{background:#eef8f3}
.nav-sub a.active{background:#e1f4ea}
.nsi{width:34px;height:34px;border-radius:10px;background:#eaf6ef;color:#0b8a5c;display:flex;align-items:center;justify-content:center;flex:0 0 34px}
.nsi .icon{width:18px;height:18px}
.nst strong{display:block;font-size:13px;font-weight:600;color:var(--navy);line-height:1.3}
.nst small{display:block;font-size:11.5px;font-weight:400;color:#6a8177;line-height:1.35}
.header-actions .un{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-actions .language{gap:5px}
.header-actions .language .icon{width:16px;height:16px}
@media(min-width:1181px){.site-header{height:64px!important;padding:0 28px!important;gap:0!important}
.brand{min-width:0!important;margin-right:36px}
.brand img{height:46px!important}
.mobile-menu{display:none!important}
.main-nav{display:flex!important;position:static;flex:1;justify-content:flex-start!important;align-items:center;flex-wrap:nowrap;box-shadow:none;padding:0;background:none;gap:26px;max-height:none;overflow:visible;border-top:0}
.main-nav>a{white-space:nowrap;font-size:13.5px;padding:21px 0;background:none;border-radius:0;flex:0 0 auto}
.main-nav>a.active{background:none;color:var(--g)}
.main-nav>a.active:after{display:block}
.nav-top{font-size:13.5px;padding:21px 0}
.header-actions{margin-left:24px!important;gap:20px!important}

}
@media(min-width:1181px) and (max-width:1420px){.main-nav{gap:18px}
.main-nav>a,.nav-top{font-size:13px}
.brand{margin-right:24px}
.site-header{padding:0 20px!important}
}
/* Menu thu gọn (<1181px): trải phẳng các mục con thành nút */
@media(max-width:1180px){
  .nav-group{display:contents}
  .nav-top{display:none}
  .nav-sub{display:contents}
  .nav-sub a{display:block!important;padding:10px 16px!important;font-size:14px!important;background:#f4f8f6;flex:0 0 auto;border-radius:8px}
  .nav-sub a.active{background:#d9f0e3}
  .nsi,.nst small{display:none}
  .nst strong{font-weight:500}
}
@media(max-width:650px){.nav-sub a{flex:1 1 calc(50% - 6px);text-align:center}
}
/* 3. Thẻ: ô "chưa có ảnh" gọn,chiều cao đều{flex-direction:row!important;gap:8px;min-height:0!important;height:100%!important;font-size:11.5px}
.subject-card2{display:flex;flex-direction:column}
.subject-card2 .sc-body{display:flex;flex-direction:column;flex:1}
.subject-card2 .sc-body>.button{margin-top:auto}
.subject-card2 .thumbs{margin-bottom:10px}
.product-card{display:flex;flex-direction:column}
.product-card .product-info{display:flex;flex-direction:column;flex:1}
.product-card .card-bottom{margin-top:auto;padding-top:6px}
.category-pill{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:calc(100% - 36px)!important;font-size:10.5px!important;padding:2px 9px!important;line-height:1.4!important;border-radius:10px!important}
/* 4. Sidebar trang Chủ thể: donut + chủ thể tiêu biểu */
.side-stack .donut-row{display:grid!important;grid-template-columns:auto 1fr;gap:14px 18px;align-items:center;justify-content:stretch}
.side-stack .donut-total{grid-column:2;grid-row:1;text-align:left}
.side-stack .donut{grid-column:1;grid-row:1;width:112px!important;height:112px!important;margin:0}
.side-stack .donut i{inset:24px!important}
.side-stack .donut:before{display:none}
.side-stack .donut-legend{grid-column:1/-1!important;font-size:12px}
.side-stack .donut-legend li{gap:8px}
.side-stack .donut-legend b{font-size:12px}
.feat-subjects{grid-template-columns:repeat(auto-fit,minmax(88px,1fr))!important;gap:10px!important}
.feat-subjects a{font-size:11.5px!important}
/* 6. Đăng nhập: chữ dễ đọc trên ảnh nền,nút mạng xã hội rõ là "sắp ra mắt" */
.auth-stage .auth-intro{background:linear-gradient(90deg,#ffffffe6,#ffffffcc);padding:14px 22px;border-radius:14px;box-shadow:0 6px 24px #0a2a3a1c;max-width:560px}
.auth-stage .auth-intro.center{max-width:720px}
.auth-intro p{color:#2c4a5e}
.auth-feats{right:8%!important}
.social button{opacity:.65}
.social button:after{content:"Sắp ra mắt";display:block;font-size:9.5px;font-weight:500;color:#8a99a2;line-height:1.2}
.auth-card{margin-top:16px!important}
/* 7. Trang nội dung: hộp cảnh báo,tin tức,văn bản */
.content-page{padding:28px 32px!important;min-height:0!important}
.content-page>p.notice,.content-page>.notice{max-width:none;margin:0 0 18px}
.notice{padding:12px 16px;font-size:13px;line-height:1.55}
.ref-card .eyebrow{font-size:11px!important;letter-spacing:.04em;text-transform:none;color:#a86a00}
.ref-card h2{font-size:16px}
.table-wrap{overflow-x:auto}
/* 8. Liên hệ */
.contact-grid{align-items:start;gap:28px}
.contact-grid .btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.contact-steps{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:10px;grid-template-columns:repeat(3,1fr)}
.contact-steps li{display:flex;gap:10px;background:#f1f8f4;border-radius:10px;padding:12px}
.contact-steps b{width:26px;height:26px;border-radius:50%;background:var(--g);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;flex:0 0 26px}
.contact-steps strong{display:block;font-size:13px}
.contact-steps small{color:#587468;font-size:12px;line-height:1.45;display:block}
.contact-side .panel h3{margin:14px 0 4px;font-size:15px}
.contact-side .panel h3:first-child{margin-top:0}
@media(max-width:800px){.contact-steps{grid-template-columns:1fr}
}
/* 9. Phản ánh */
.fb-side{display:grid;gap:18px}
.fb-help ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px;font-size:13px;color:#2c4a5e}
.fb-help li{display:flex;gap:8px;align-items:flex-start}
.fb-help .icon{width:16px;height:16px;color:var(--g);flex:0 0 16px;margin-top:3px}
.fb-help h3{margin:4px 0 0;font-size:16px}
/* 10. Thống kê */
.stat-grid{align-items:start}
.reported-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important}
.stat-donut{display:flex;align-items:center;gap:22px;margin:4px 0 14px}
.stat-donut .donut{width:104px!important;height:104px!important;flex:0 0 104px;display:flex;align-items:center;justify-content:center}
.stat-donut .donut:before{display:none}
.stat-donut .donut i{inset:22px}
.stat-donut .donut strong{position:relative;font-size:22px;color:#13334a}
.stat-donut .donut-legend{flex:1;font-size:12.5px}
.stat-donut .donut-legend b{font-size:12.5px}
/* 11. Trang chủ */
.feature-band{background:linear-gradient(90deg,#fffffffa,#fffffff0 55%,#fffdf3f0),url('/assets/banners-clean/home-footer-1536.webp') center 75%/cover!important}
.feature-band small{color:#2f4d40!important}
/* Bổ sung sau kiểm tra */
.stat-donut+.bars{display:none}
/* Bộ lọc: cặp nút Áp dụng / Xóa bộ lọc dùng chung cho Sản phẩm,Chủ thể,Điểm bán */
.filter-actions{display:grid;gap:10px;margin-top:8px}
.filter-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin:0}
.filter-actions .button .icon{width:16px;height:16px}
.reset-btn{border-color:#cfdad6!important;color:#566a73!important;background:#fff!important;font-weight:600}
.reset-btn:hover{border-color:#e08a84!important;color:#b3372f!important;background:#fff6f5!important}
.sc-desc{font-size:12px;color:#587468;line-height:1.5;margin:2px 0 10px}
/* Đăng nhập / quên mật khẩu: hai cột — giới thiệu bên trái,thẻ đăng nhập bên phải */
.auth-stage:not(.register-stage){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(360px,440px);gap:56px;align-items:center;justify-content:space-between;min-height:calc(100vh - 64px - 250px);padding:48px max(6%,28px)!important}
.auth-stage:not(.register-stage) .auth-intro{max-width:600px!important;padding:26px 30px!important;background:linear-gradient(135deg,#ffffffee,#ffffffcc)!important}
.auth-stage:not(.register-stage) .auth-intro h1{font-size:34px;line-height:1.2;margin:0 0 10px}
.auth-stage:not(.register-stage) .auth-feats{position:static!important;flex-direction:row;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.auth-stage:not(.register-stage) .auth-feats li{background:#fff;box-shadow:0 2px 10px #0a2a3a1a;padding:5px 14px 5px 5px}
.auth-stage:not(.register-stage) .auth-card{margin:0!important;width:100%;max-width:440px;justify-self:end;box-shadow:0 18px 50px #0a2a3a38}
@media(max-width:1000px){.auth-stage:not(.register-stage){grid-template-columns:1fr;gap:22px;padding:28px 16px!important}
.auth-stage:not(.register-stage) .auth-card{justify-self:center}
.auth-stage:not(.register-stage) .auth-feats{display:flex!important}
}
.is-default{object-fit:cover}
/* Phân trang cho Tin tức / Văn bản */
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:22px;padding-top:16px;border-top:1px solid #e6eeea}
.pager-info{font-size:12.5px;color:#587468}
.pager>div{display:flex;gap:6px}
.pager a,.pager span.dis,.pager span.gap{min-width:34px;height:34px;padding:0 10px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600}
.pager a{border:1px solid #d3e0dc;background:#fff;color:#17354c}
.pager a:hover{background:#eef8f3}
.pager a.on{background:#0b8a5c;border-color:#0b8a5c;color:#fff}
.pager span.dis{border:1px solid #e6eeea;color:#b3c0ba}
.pager span.gap{color:#7a8d84}

