/*
 * Khung trang RIGPC (thanh tin + header + ngăn kéo mobile + footer).
 * Số đo lấy từ components/layout/{TopBar,Header,MobileMenu,Footer,BrandLogo}.tsx và app/globals.css của Next.
 * Mọi luật nằm dưới .rg-vo / .rg-*: Tailwind preflight ở Next đã xoá kiểu mặc định, ở đây ta chỉ xoá trong phạm vi khung,
 * không đụng nội dung bài viết hay CSS của plugin.
 */

.rg-tp { display: contents; }   /* để header dính (sticky) được trên toàn trang, không bị gói trong thẻ div cao bằng chính nó */
.rg-vo { display: contents; font-family: var(--wp--preset--font-family--be-vietnam-pro); line-height: 1.65; }
/* Phần đặt lại kiểu dùng :where() để độ đặc hiệu bằng 0: các class rg-* bên dưới luôn thắng, không phải chạy đua */
:where(.rg-vo, .rg-vo *, .rg-vo *::before, .rg-vo *::after) { box-sizing: border-box; }
:where(.rg-vo) :where(p, h1, h2, h3, ul, ol, address, figure) { margin: 0; padding: 0; }
:where(.rg-vo) :where(ul, ol) { list-style: none; }
:where(.rg-vo) a { color: inherit; text-decoration: none; }
:where(.rg-vo) :where(img, svg) { display: block; max-width: 100%; }
:where(.rg-vo) address { font-style: normal; }
:where(.rg-vo) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.rg-vo [hidden] { display: none !important; }
.rg-vo :is(a, button, input, summary):focus-visible { outline: 2px solid #00E5FF; outline-offset: 2px; }

.rg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rg-skip { position: absolute; left: 8px; top: -100px; z-index: 100000; padding: 12px 18px; border-radius: 8px; background: #00AFFF; color: #071527; font-weight: 700; text-decoration: none; }
.rg-skip:focus { top: 8px; }

/* Phông dự phòng chỉnh số đo (như next/font): chữ Arial phóng/thu để cùng bề rộng với Be Vietnam Pro / Archivo, nên lúc phông thật tải xong
   chữ không nhảy dòng (CLS). Số ascent/descent/size-adjust lấy từ bản build của Next. */
@font-face { font-family: 'Be Vietnam Pro Fallback'; src: local('Arial'); ascent-override: 90.61%; descent-override: 24.01%; line-gap-override: 0%; size-adjust: 110.36%; }
@font-face { font-family: 'Archivo Fallback'; src: local('Arial'); ascent-override: 88.96%; descent-override: 21.28%; line-gap-override: 0%; size-adjust: 98.7%; }

/* Khung 1280px (header) / 1320px (footer), lề 16 → 24 → 32 như Tailwind max-w-7xl px-4 sm:px-6 lg:px-8 */
.rg-khung { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.rg-chan .rg-khung { max-width: 1320px; }
@media (min-width: 640px) { .rg-khung { padding-inline: 24px; } }
@media (min-width: 1024px) { .rg-khung { padding-inline: 32px; } }

/* ── Thanh tin (ẩn dưới 640px như bản Next) ─────────────────────────────── */
.rg-thanh-tin { display: none; background: linear-gradient(90deg, #0369A1 0%, #1D4ED8 55%, #6D28D9 100%); }
@media (min-width: 640px) { .rg-thanh-tin { display: block; } }
.rg-thanh-tin__trong { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 4px 24px; }
@media (min-width: 1024px) { .rg-thanh-tin__trong { padding-left: 32px; } }
.rg-thanh-tin__chay { min-width: 0; flex: 1; overflow: hidden; }
.rg-marquee { display: flex; width: max-content; align-items: center; white-space: nowrap; animation: rg-chay 32s linear infinite; }
.rg-marquee:hover { animation-play-state: paused; }
.rg-marquee__nhom { display: flex; align-items: center; }
@keyframes rg-chay { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rg-tin { display: flex; align-items: center; }
.rg-tin__chu { font-size: 13.5px; font-weight: 500; color: #fff; }
.rg-tin__icon { margin-right: 4px; }
.rg-tin__phu { font-weight: 400; color: rgba(255, 255, 255, .85); }
.rg-tin__cach { margin: 0 20px; flex-shrink: 0; color: rgba(255, 255, 255, .4); }
.rg-thanh-tin__cta { display: flex; flex-shrink: 0; align-items: center; padding-right: 24px; }
@media (min-width: 1024px) { .rg-thanh-tin__cta { padding-right: 32px; } }
.rg-thanh-tin__cta a { white-space: nowrap; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .15); padding: 2px 10px; font-size: 13.5px; font-weight: 600; color: #fff; transition: background-color .2s; }
.rg-thanh-tin__cta a:hover { background: rgba(255, 255, 255, .25); }
/* Người dùng giảm chuyển động: chữ đứng yên, xuống dòng đủ đọc, không bản sao */
@media (prefers-reduced-motion: reduce) {
	.rg-marquee { animation: none; width: auto; white-space: normal; flex-wrap: wrap; }
	.rg-marquee__nhom { flex-wrap: wrap; row-gap: 2px; }
	.rg-marquee__nhom ~ * { display: none; }
	.rg-tin__cach { margin: 0 12px; }
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.rg-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 40; background: #071527; }
@media (min-width: 768px) {
	.rg-header { background: rgba(7, 21, 39, .86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
}
.rg-hang1 { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
@media (min-width: 1024px) { .rg-hang1 { gap: 20px; } }

.rg-logo { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; height: 44px; }
.rg-logo__icon { display: none; width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
@media (min-width: 640px) { .rg-logo__icon { display: block; } }
.rg-logo__chu { font-family: var(--wp--preset--font-family--be-vietnam-pro); font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.015em; }
.rg-logo__rig { color: #fff; text-shadow: 0 1px 0 rgba(255, 255, 255, .18), 0 3px 10px rgba(0, 0, 0, .55); }
.rg-logo__pc {
	background: linear-gradient(135deg, #00AFFF, #0080CC); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)) drop-shadow(0 0 14px rgba(0, 213, 255, .45));
}
.rg-logo--chan { height: auto; }
.rg-logo__icon--chan { display: block; width: 34px; height: 34px; }
.rg-logo__chu--chan { font-size: 21px; }

.rg-tim {
	display: flex; flex: 1 1 0; min-width: 0; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 8px;
	background: #10243A; border: 1px solid rgba(0, 175, 255, .55); transition: border-color .15s;
}
.rg-tim:focus-within { border-color: rgba(0, 175, 255, .55); box-shadow: 0 0 0 2px rgba(0, 175, 255, .3); }
.rg-tim svg { flex-shrink: 0; color: #93A9C0; }
.rg-tim input {
	width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; outline: none; box-shadow: none;
	color: #fff; font: inherit; font-size: 16px; line-height: 1.5;   /* 16px để iOS không tự phóng to khi chạm vào */
}
.rg-tim input::placeholder { color: #93A9C0; opacity: 1; }
.rg-tim input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
@media (min-width: 768px) { .rg-tim input { font-size: 14px; } }

.rg-hotline { display: none; flex-shrink: 0; align-items: center; gap: 10px; }
@media (min-width: 1024px) { .rg-hotline { display: flex; } }
.rg-hotline__icon { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(255, 159, 28, .12); border: 1px solid rgba(255, 159, 28, .35); color: #FF9F1C; }
.rg-hotline__nhan, .rg-hotline__so, .rg-hotline__gio { display: block; }
.rg-hotline__nhan { font-size: 14px; line-height: 1; color: rgba(255, 255, 255, .6); }
.rg-hotline__so { margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 800; color: #FFB300; }
.rg-hotline__gio { font-size: 14px; line-height: 1; color: rgba(255, 255, 255, .5); }

.rg-dinh-gia {
	display: none; flex-shrink: 0; border-radius: 8px; padding: 10px 20px; font-size: 14px; line-height: 20px; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, #0369A1 0%, #1D4ED8 45%, #6D28D9 100%); box-shadow: 0 0 18px rgba(0, 200, 255, .35); border: 1px solid rgba(0, 200, 255, .35);
	transition: transform .2s;
}
@media (min-width: 640px) { .rg-dinh-gia { display: block; } }
.rg-dinh-gia:hover { transform: translateY(-2px); }

.rg-gio {
	position: relative; display: flex; flex-shrink: 0; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px;
	color: #5CD2FF; background: rgba(0, 175, 255, .12); border: 1px solid rgba(0, 175, 255, .4); transition: filter .15s;
}
.rg-gio:hover { filter: brightness(1.25); }
@media (min-width: 1024px) and (pointer: fine) { .rg-gio { width: 36px; height: 36px; } }   /* kích thước gốc trên desktop; cảm ứng & mobile giữ 44px */
.rg-gio__so {
	position: absolute; top: -6px; right: -6px; display: flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; padding: 0 4px;
	border-radius: 9999px; background: linear-gradient(135deg, #F43F5E, #BE123C); color: #fff; font-size: 12.5px; font-weight: 900; line-height: 1;
}

.rg-zalo { display: none; flex-shrink: 0; width: 44px; height: 44px; align-items: center; justify-content: center; }
@media (min-width: 640px) and (max-width: 767.98px) { .rg-zalo { display: flex; } }
.rg-zalo img { width: 19px; height: 19px; border-radius: 6px; box-shadow: 0 0 8px rgba(0, 104, 255, .55), 0 1px 3px rgba(0, 0, 0, .4); }

.rg-hamburger { display: flex; flex-shrink: 0; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; color: #CBD5E1; transition: color .15s; }
.rg-hamburger:hover { color: #fff; }
@media (min-width: 1024px) { .rg-hamburger { display: none; } }

/* Hàng 2: menu desktop */
.rg-hang2 { display: none; }
@media (min-width: 1024px) { .rg-hang2 { display: block; } }
.rg-nav { position: relative; }
.rg-nav__ds { display: flex; align-items: center; gap: 4px; padding: 4px 0 12px; }
@media (min-width: 1280px) { .rg-nav__ds { gap: 6px; } }
.rg-nav__muc { position: relative; flex-shrink: 0; }
.rg-nav__muc--xl { display: none; }
@media (min-width: 1280px) { .rg-nav__muc--xl { display: block; } .rg-vo .rg-chi-duoi-xl { display: none; } }

.rg-chip {
	position: relative; display: block; overflow: hidden; border-radius: 8px; padding: 8px 5px; font-size: 12.5px; font-weight: 600; line-height: 1.65; color: #E8F1FB; white-space: nowrap;
	border: 1px solid transparent;
	background: linear-gradient(rgba(13, 32, 56, .95), rgba(11, 29, 51, .95)) padding-box, linear-gradient(90deg, rgba(0, 175, 255, .55), rgba(139, 92, 246, .55)) border-box;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3), 0 0 8px rgba(0, 175, 255, .1);
	transition: transform .2s ease, color .2s ease, box-shadow .2s ease, text-shadow .2s ease;
}
@media (min-width: 1280px) { .rg-chip { padding-inline: 10px; font-size: 14px; line-height: 20px; } }
.rg-chip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-20deg); pointer-events: none; }
.rg-chip:hover {
	transform: translateY(-2px); color: #fff; text-shadow: 0 0 8px rgba(0, 229, 255, .45);
	background: linear-gradient(rgba(11, 29, 51, .9), rgba(11, 29, 51, .9)) padding-box, linear-gradient(90deg, #00AFFF, #8B5CF6, #E879F9, #00AFFF) border-box;
	background-size: 100% 100%, 300% 100%; animation: rg-rgb 3s linear infinite; box-shadow: 0 4px 14px rgba(0, 175, 255, .2);
}
.rg-chip:hover::after { animation: rg-quet .65s ease; }
.rg-chip--dang {
	color: #00E5FF;
	background: linear-gradient(rgba(11, 29, 51, .92), rgba(11, 29, 51, .92)) padding-box, linear-gradient(90deg, #00AFFF, #8B5CF6) border-box;
	box-shadow: 0 0 10px rgba(0, 175, 255, .14);
}
.rg-chip--nut { display: flex; align-items: center; gap: 6px; font-family: inherit; }
.rg-chip--nut svg { transition: transform .2s; }
.is-mo > .rg-chip--nut svg { transform: rotate(180deg); }
@keyframes rg-rgb { to { background-position: 0 0, 300% 0; } }
@keyframes rg-quet { from { left: -70%; } to { left: 135%; } }
@media (prefers-reduced-motion: reduce) { .rg-chip:hover, .rg-chip:hover::after { animation: none; } .rg-chip:hover { transform: none; } }

.rg-nav__bang { position: absolute; left: 0; top: 100%; z-index: 50; min-width: 200px; padding-top: 6px; visibility: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s; }
.is-mo > .rg-nav__bang { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
@media (scripting: none) { :is(.rg-nav__muc--con, .rg-nav__muc--mega):is(:hover, :focus-within) > .rg-nav__bang { visibility: visible; opacity: 1; transform: none; pointer-events: auto; } }
.rg-nav__bang > ul {
	padding: 4px 0; border-radius: 8px; background: rgba(7, 21, 39, .98); border: 1px solid rgba(0, 175, 255, .35);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .35), 0 8px 10px -6px rgba(0, 0, 0, .35);
}
.rg-nav__bang > ul a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; font-size: 14px; color: #CBD5E1; transition: background-color .15s, color .15s; }
.rg-nav__bang > ul a:hover { background: rgba(255, 255, 255, .05); color: #00AFFF; }
.rg-nav__bang > ul .rg-xem-het { min-height: 44px; margin: 4px 8px; padding: 0 8px; border-radius: 4px; font-weight: 600; color: #00AFFF; }
.rg-nav__bang > ul .rg-xem-het:hover { text-decoration: underline; }
.rg-cham { display: block; flex-shrink: 0; width: 4px; height: 4px; border-radius: 9999px; background: rgba(0, 175, 255, .6); }

/* ── Ngăn kéo mobile ──────────────────────────────────────────────────────── */
.rg-drawer { position: fixed; inset: 0; z-index: 100000; }
@media (min-width: 1024px) { .rg-drawer { display: none !important; } }
.rg-drawer__nen { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.rg-drawer__bang {
	position: absolute; left: 0; top: 0; display: flex; flex-direction: column; width: 320px; max-width: 85vw; height: 100%;
	background: #0A1B2F; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); transform: translateX(-100%); transition: transform .3s ease-in-out;
}
.rg-drawer.is-hien .rg-drawer__nen { opacity: 1; }
.rg-drawer.is-hien .rg-drawer__bang { transform: none; }
@media (prefers-reduced-motion: reduce) { .rg-drawer__nen, .rg-drawer__bang { transition: none; } }
.rg-drawer__dau { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #1A3352; }
.rg-drawer__logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; line-height: 28px; font-weight: 800; color: #fff; }
.rg-drawer__logo span { color: #00AFFF; }
.rg-drawer__logo i { font-style: normal; color: #94A3B8; }
.rg-drawer__dong { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; color: #94A3B8; }
.rg-drawer__dong:hover { background: #10243A; color: #fff; }
.rg-drawer__tim { display: flex; align-items: center; gap: 8px; margin: 16px 20px; padding: 0 12px; min-height: 44px; border-radius: 8px; border: 1px solid rgba(0, 175, 255, .55); background: #10243A; }
.rg-drawer__tim svg { flex-shrink: 0; color: #93A9C0; }
.rg-drawer__tim input { width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; outline: none; box-shadow: none; color: #fff; font: inherit; font-size: 16px; }
.rg-drawer__tim input::placeholder { color: #93A9C0; opacity: 1; }
.rg-drawer__tim:focus-within { border-color: rgba(0, 175, 255, .55); }
.rg-drawer__nav { flex: 1; overflow-y: auto; padding: 0 12px 16px; overscroll-behavior: contain; }
.rg-m-hang { display: flex; align-items: stretch; }
.rg-m-link { display: flex; flex: 1; align-items: center; min-height: 44px; border-radius: 8px; padding: 12px 16px; font-size: 16px; font-weight: 500; color: #CBD5E1; transition: background-color .15s, color .15s; }
.rg-m-link:hover, .rg-m-link.is-dang { background: #10243A; color: #00AFFF; }
.rg-m-mo { display: flex; width: 44px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 8px; color: #94A3B8; }
.rg-m-mo:hover { background: #10243A; color: #00AFFF; }
.rg-m-mo svg { transition: transform .2s; }
.rg-m-mo[aria-expanded='true'] svg { transform: rotate(180deg); }
.rg-m-con { margin: 0 0 4px 16px; padding-left: 12px; border-left: 1px solid rgba(0, 175, 255, .2); }
.rg-m-con__link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #94A3B8; }
.rg-m-con__link:hover { background: #10243A; color: #00AFFF; }
.rg-drawer__chan { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-top: 1px solid #1A3352; }
.rg-drawer__dinh-gia {
	display: flex; align-items: center; justify-content: center; border-radius: 8px; padding: 12px 16px; font-size: 16px; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, #0369A1 0%, #1D4ED8 45%, #6D28D9 100%); border: 1px solid rgba(0, 200, 255, .35); box-shadow: 0 0 18px rgba(0, 200, 255, .35), 0 0 28px rgba(139, 92, 246, .25);
}
.rg-drawer__hotline { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid #1A3352; font-size: 14px; font-weight: 800; color: #FFB300; }
.rg-drawer__hotline:hover { background: #10243A; }
body.rg-khoa-cuon { overflow: hidden; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.rg-chan { display: block; background: #071527; color: #fff; }
.rg-chan__than { padding-top: 40px; padding-bottom: 40px; }
.rg-chan__luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.rg-chan__thuong-hieu { grid-column: span 2; }
@media (min-width: 1024px) {
	.rg-chan__thuong-hieu { grid-column: span 1; }
	.rg-chan__luoi--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rg-chan__luoi--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.rg-chan__luoi--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.rg-chan__mo-ta { margin-top: 16px; font-size: 14px; line-height: 1.625; color: #91A7C0; }
.rg-chan__lien-he { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-size: 14px; color: #91A7C0; }
.rg-chan__dong { display: flex; align-items: flex-start; gap: 8px; }
.rg-chan__bieu-tuong { margin-top: 2px; flex-shrink: 0; color: #00B8FF; }
.rg-chan__dong svg { flex-shrink: 0; }
.rg-chan__lien-he a.rg-chan__dong { align-items: center; transition: filter .15s; }
.rg-chan__lien-he a.rg-chan__dong:hover { filter: brightness(1.25); }
.rg-chan__lien-he a.rg-chan__dien-thoai { color: #FFB300; font-weight: 800; }
.rg-chan__mxh { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.rg-mxh { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; background: #081A2F; border: 1px solid rgba(0, 180, 255, .18); transition: transform .2s, border-color .2s; }
.rg-mxh:hover { transform: translateY(-2px); border-color: rgba(0, 180, 255, .55); }
.rg-mxh img { width: 16px; height: 16px; object-fit: contain; }
@media (pointer: coarse) { .rg-mxh { width: 44px; height: 44px; } }
.rg-vo .rg-chan__tieu-de { margin-bottom: 16px; font-family: var(--wp--preset--font-family--archivo); font-size: 13.5px; line-height: 1.4; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #EAF4FF; }
.rg-chan__ds { display: flex; flex-direction: column; gap: 8px; }
.rg-chan__ds a { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #91A7C0; transition: filter .15s; }
.rg-chan__ds a:hover { filter: brightness(1.25); }
@media (max-width: 1023px), (pointer: coarse) { .rg-chan__ds a, .rg-chan__lien-he a.rg-chan__dong { min-height: 44px; } .rg-chan__ds { gap: 0; } .rg-logo--chan { min-height: 44px; } }
.rg-chan__ds .rg-cham { width: 4px; height: 4px; }
.rg-chan__gio { margin-top: 24px; padding: 16px; border-radius: 12px; background: rgba(0, 180, 255, .05); border: 1px solid rgba(0, 180, 255, .15); }
.rg-chan__gio-so { font-size: 18px; line-height: 28px; font-weight: 800; color: #EAF4FF; }
.rg-chan__gio-ngay { font-size: 13.5px; color: #91A7C0; }
.rg-chan__trang-thai { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.rg-chan__trang-thai:empty { display: none; }
.rg-chan__trang-thai::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
.rg-chan__trang-thai[data-mo='1'] { color: #4ADE80; }
.rg-chan__trang-thai[data-mo='1']::before { animation: rg-nhap-nhay 2s ease-in-out infinite; }
.rg-chan__trang-thai[data-mo='0'] { color: #FCA5A5; }
.rg-chan__trang-thai[data-mo='0']::before { background: #F87171; }
@keyframes rg-nhap-nhay { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .rg-chan__trang-thai::before { animation: none !important; } }
.rg-chan__day { padding-top: 16px; padding-bottom: 16px; }
.rg-chan__phap-ly { margin-bottom: 8px; font-size: 13.5px; line-height: 1.625; text-align: center; color: #8AA0BA; }
.rg-chan__phap-ly a { color: #8AA0BA; }
.rg-chan__phap-ly a:last-child { text-decoration: underline; }
@media (min-width: 640px) { .rg-chan__phap-ly { text-align: left; } }
.rg-chan__ban-quyen { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13.5px; color: #8AA0BA; }
@media (min-width: 640px) { .rg-chan__ban-quyen { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ── Thanh nhanh đáy (mobile, ≤767px) — số đo theo MobileBottomNav của Next ───────────────────────── */
.rg-vo.rg-nav-duoi { display: none; }
.rg-chan__cho-nav { display: none; }
@media (max-width: 767.98px) {
	.rg-vo.rg-nav-duoi {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		height: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
		background: rgba(8, 14, 24, .97); border-top: 1px solid rgba(255, 255, 255, .08);
		-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
		transition: transform .3s cubic-bezier(.22, 1, .36, 1);
	}
	.rg-nav-duoi.is-an { transform: translateY(110%); pointer-events: none; }
	/* Chừa chỗ cho thanh: cùng công thức với thanh, nên footer không bị che và không dịch chuyển khi thanh trượt */
	.rg-chan__cho-nav { display: block; height: calc(56px + env(safe-area-inset-bottom, 0px)); }
}
.rg-nav-duoi__hang { display: flex; align-items: flex-end; justify-content: space-around; height: 56px; padding: 6px 4px 4px; }
.rg-o {
	display: flex; flex: 1; min-width: 0; min-height: 44px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 4px 0 2px;
	color: #9FB0C7; text-decoration: none; transition: transform .15s;
}
.rg-o:active { transform: scale(.95); }
.rg-o span { font-size: 11px; font-weight: 600; line-height: 1.2; }
.rg-o img { width: 22px; height: 22px; object-fit: contain; }
.rg-o.is-dang { color: #38BDF8; }
.rg-o.is-dang span { font-weight: 800; }
.rg-o i { display: block; width: 22px; height: 2px; border-radius: 2px; background: #38BDF8; }
.rg-o:not(.is-dang) { padding-bottom: 4px; }
.rg-o[aria-expanded='true'] { color: #38BDF8; }
@media (prefers-reduced-motion: reduce) { .rg-vo.rg-nav-duoi, .rg-o { transition: none; } }

/* ── Cụm liên hệ nổi (desktop ≥768px) — số đo theo FloatingCTA ───────────────────────────────────── */
.rg-vo.rg-noi { display: none; }
@media (min-width: 768px) {
	.rg-vo.rg-noi { display: flex; position: fixed; right: 20px; bottom: 24px; z-index: 49; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
}
.rg-noi__ds { display: flex; flex-direction: column; gap: 8px; width: 200px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.rg-noi.is-mo .rg-noi__ds { opacity: 1; transform: none; pointer-events: auto; }
.rg-noi__nut { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; column-gap: 10px; height: 52px; padding-inline: 14px; border-radius: 16px; color: #fff; transition: transform .2s, filter .2s; }
.rg-noi__nut:hover { transform: translateY(-2px); filter: brightness(1.1); }
.rg-noi__nut--zalo { background: linear-gradient(135deg, #0068FF 0%, #0068FFCC 100%); box-shadow: 0 4px 16px #0068FF55; }
.rg-noi__nut--goi { background: linear-gradient(135deg, #15803D 0%, #15803DCC 100%); box-shadow: 0 4px 16px #15803D55; }
.rg-noi__icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.rg-noi__chu { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.rg-noi__chu strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 900; line-height: 16px; letter-spacing: .025em; text-transform: uppercase; }
.rg-noi__chu small { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 500; line-height: 14px; opacity: .9; }
.rg-noi__mo {
	position: relative; display: flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 9999px; color: #fff; pointer-events: auto;
	background: linear-gradient(135deg, #00AFFF, #2563EB 55%, #8B5CF6); box-shadow: 0 4px 24px rgba(0, 175, 255, .5); transition: transform .2s;
}
.rg-noi__mo:hover { transform: scale(1.05); }
.rg-noi.is-mo .rg-noi__mo { background: linear-gradient(135deg, #4B5563, #374151); box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.rg-noi:not(.is-mo) .rg-noi__mo::before { content: ''; position: absolute; inset: 0; border-radius: 9999px; background: rgba(0, 175, 255, .35); animation: rg-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.rg-noi__mo svg { position: relative; }
@keyframes rg-ping { 75%, 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rg-noi__mo::before { animation: none !important; } .rg-noi__ds { transition: none; } }

/* ── Mega-menu (desktop) — theo MegaNavItem của Next ───────────────────────────────────────────── */
.rg-nav__muc--mega { position: static; }   /* panel rộng neo vào khung menu (.rg-nav), không neo vào chip */
.rg-nav__bang--rong { right: 0; }
.rg-mega { padding: 20px; border-radius: 12px; background: rgba(7, 21, 39, .98); border: 1px solid rgba(0, 175, 255, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); }
.rg-mega__luoi { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 16px; }
.rg-mega__luoi--lk { column-gap: 20px; }
@media (min-width: 1280px) { .rg-mega__luoi--lk { column-gap: 24px; } }
.rg-mega__cot { min-width: 0; }
.rg-mega__cot--3 { grid-column: span 3; }
.rg-mega__cot--4 { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.rg-mega__cot--5 { grid-column: span 5; }
.rg-mega__tieu-de { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; line-height: 1.5; letter-spacing: .025em; text-transform: uppercase; color: #93A9C0; }
.rg-mega__tieu-de em { font-style: normal; font-weight: 600; text-transform: none; color: #00AFFF; }
.rg-mega__dang-tai { font-size: 12.5px; font-weight: 400; text-transform: none; color: #00AFFF; }
.rg-cay { display: flex; flex-direction: column; gap: 2px; }
.rg-cay--con { margin: 2px 0 0 12px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .1); }
.rg-cay__link { display: block; padding: 6px 10px; border-radius: 4px; font-size: 14px; font-weight: 500; line-height: 1.65; color: #E2E8F0; transition: background-color .15s, color .15s; }
.rg-cay--con .rg-cay__link { font-size: 13.5px; font-weight: 400; color: #94A3B8; }
a.rg-cay__link:hover, .rg-cay__link[data-dang-xem='true'] { background: rgba(255, 255, 255, .05); color: #00AFFF; }
.rg-mega__luoi--lk .rg-cay__link[data-dang-xem='true'] { background: rgba(0, 175, 255, .15); box-shadow: inset 2px 0 0 0 currentColor; }
.rg-mega__xem-het { display: inline-flex; align-items: center; margin-top: 8px; padding: 6px 10px; border-radius: 4px; font-size: 14px; font-weight: 600; color: #00AFFF; }
.rg-mega__xem-het:hover { text-decoration: underline; }
@media (pointer: coarse) { .rg-cay__link, .rg-mega__xem-het, .rg-mega-chip, .rg-lk-loai, .rg-lk-hang { min-height: 44px; display: flex; align-items: center; } }
.rg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-mega-chip { display: block; padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; line-height: 1.65; color: #CBD5E1; transition: border-color .15s, color .15s, background-color .15s; }
.rg-mega-chip span { color: #93A9C0; }
.rg-mega-chip:hover { border-color: rgba(0, 175, 255, .5); color: #00AFFF; }
.rg-mega-chip[data-dang-xem='true'] { border-color: rgba(0, 175, 255, .7); background: rgba(0, 175, 255, .1); color: #00AFFF; }
.rg-mega__sp { min-height: 252px; }
.rg-mega__sp-ds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; transition: opacity .15s; }
.rg-mega__sp-ds.is-tai { opacity: .6; }
.rg-sp { display: flex; gap: 12px; height: 120px; overflow: hidden; padding: 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); transition: border-color .15s; }
.rg-sp:hover { border-color: rgba(0, 175, 255, .5); }
.rg-sp__anh { position: relative; flex-shrink: 0; width: 72px; height: 72px; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.rg-sp__anh img { width: 100%; height: 100%; object-fit: contain; }
.rg-sp__chu { min-width: 0; }
.rg-sp__ten, .rg-sp__cau-hinh { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rg-sp__ten { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #F1F5F9; }
.rg-sp__cau-hinh { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #94A3B8; }
.rg-sp__gia { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; line-height: 20px; color: #FACC15; }
.rg-sp__gia--lh { color: #9FB3C8; }
.rg-sp-xuong { height: 120px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); animation: rg-xung 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes rg-xung { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .rg-sp-xuong { animation: none; } }
.rg-mega__rong { padding: 16px; border-radius: 8px; border: 1px dashed rgba(255, 255, 255, .15); font-size: 14px; color: #94A3B8; }

/* Mega Linh kiện: cột Loại · Thương hiệu (JS vẽ) và ô Tìm theo thiết bị */
.rg-lk-ds { display: flex; flex-direction: column; gap: 2px; }
.rg-lk-loai { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 4px; font-size: 13.5px; line-height: 1.65; color: #E2E8F0; transition: background-color .15s, color .15s; }
.rg-lk-loai:hover { background: rgba(255, 255, 255, .05); color: #00AFFF; }
.rg-lk-loai span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-lk-loai span:last-child, .rg-lk-hang span { flex-shrink: 0; font-size: 12.5px; color: #93A9C0; }
.rg-lk-xem { display: inline-flex; align-items: center; margin-top: 6px; padding: 6px 8px; border-radius: 4px; font-size: 13.5px; font-weight: 600; color: #00AFFF; }
.rg-lk-xem:hover { text-decoration: underline; }
.rg-lk-hang { display: block; padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; line-height: 1.65; color: #CBD5E1; transition: border-color .15s, color .15s; }
.rg-lk-hang:hover { border-color: rgba(0, 175, 255, .5); color: #00AFFF; }
.rg-lk-them { margin-top: 8px; font-size: 12.5px; color: #93A9C0; }
.rg-lk-thieu { font-size: 13.5px; line-height: 1.45; color: #94A3B8; }
.rg-lk-tim label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: #E2E8F0; }
.rg-lk-tim__hang { display: flex; gap: 8px; }
.rg-lk-tim input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); color: #F1F5F9; font: inherit; font-size: 16px; }
@media (min-width: 768px) { .rg-lk-tim input { font-size: 14px; } }
.rg-lk-tim input::placeholder { color: #93A9C0; opacity: 1; }
.rg-lk-tim input:focus { border-color: #00AFFF; outline: 2px solid transparent; box-shadow: 0 0 0 2px rgba(0, 175, 255, .4); }
.rg-lk-tim button { flex-shrink: 0; height: 44px; padding: 0 16px; border-radius: 8px; background: #00AFFF; color: #04121F; font-size: 14px; font-weight: 700; }
.rg-lk-tim__ghi-chu { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.45; color: #94A3B8; }
.rg-lk-tim p { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: #93A9C0; }

/* Mobile drawer: chip thương hiệu/nhu cầu + Linh kiện */
.rg-m-con__tieu-de { margin: 8px 0 4px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; color: #93A9C0; }
.rg-chips--m { gap: 8px; padding: 0 0 8px 12px; }
.rg-chips--m .rg-mega-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; }
.rg-m-lk { padding: 4px 0 4px 12px; }
.rg-m-lk-tim { padding: 0 0 12px 12px; }
.rg-m-lk .rg-lk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
.rg-m-lk .rg-lk-loai, .rg-m-lk .rg-lk-hang, .rg-m-lk .rg-lk-xem { min-height: 44px; align-items: center; }
.rg-m-lk .rg-lk-hang { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; }
.rg-m-lk .rg-lk-hangs { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-lk-pham-vi { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-lk-pham-vi button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; border: 1px solid #1A3352; font-size: 13.5px; color: #CBD5E1; }
.rg-lk-pham-vi button[aria-pressed='true'] { border-color: rgba(0, 175, 255, .7); background: rgba(0, 175, 255, .1); color: #00AFFF; }
.rg-m-lk .rg-mega__tieu-de { margin-top: 8px; }
.rg-m-lk-tim .rg-lk-tim { padding-right: 8px; }

/* ── Gợi ý tìm kiếm (header) — theo HeaderSearch của Next ─────────────────────────────────────── */
.rg-tim { position: relative; }
.rg-tim-ds {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 60; margin-top: 6px; max-height: 70vh; overflow-y: auto; border-radius: 12px;
	background: rgba(7, 21, 39, .98); border: 1px solid rgba(0, 175, 255, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}
.rg-tim-nhom + .rg-tim-nhom { border-top: 1px solid rgba(255, 255, 255, .06); }
.rg-tim-nhom__tieu-de { margin: 0; padding: 12px 16px 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #93A9C0; }
.rg-tim-dong { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 16px; transition: background-color .15s; }
.rg-tim-dong:hover, .rg-tim-dong:focus-visible { background: rgba(255, 255, 255, .05); }
.rg-tim-dong__anh { flex-shrink: 0; width: 44px; height: 44px; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.rg-tim-dong__anh img { width: 100%; height: 100%; object-fit: cover; }
.rg-tim-dong__chu { min-width: 0; flex: 1; }
.rg-tim-dong__ten { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; font-weight: 500; line-height: 1.4; color: #fff; }
.rg-tim-dong__phu { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: #9FB3C8; }
.rg-tim-dong__gia { margin-top: 2px; font-size: 15px; font-weight: 700; color: #4CC4FF; }
.rg-tim-tat-ca { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13.5px; font-weight: 600; color: #4CC4FF; }
.rg-tim-tat-ca:hover { opacity: .8; }
.rg-tim-rong { padding: 24px 16px; text-align: center; }
.rg-tim-rong strong { display: block; font-size: 14px; color: #fff; }
.rg-tim-rong p { margin: 6px auto 0; max-width: 20rem; font-size: 13.5px; line-height: 1.6; color: #9FB3C8; }
.rg-tim-rong a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 14px; padding: 0 16px; border-radius: 8px; background: linear-gradient(90deg, #007BC2, #00669F); color: #fff; font-size: 14px; font-weight: 700; }

/* 10/11/2026 — Next (app/fx.css) khai chuyển cảnh native giữa các trang cùng origin rigpc.vn. Tin tức WordPress cùng origin mà không khai
   thì chuyển trang Next ⇄ Tin tức bị trình duyệt huỷ chuyển cảnh và ném lỗi "Transition was skipped" ra console. Khai giống hệt Next. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}
