/*
 * CSS cho markup do CODE SERVER sinh ra ma prototype khong co.
 *
 * Prototype la HTML tinh, khong chay PagerHelper hay cac helper PHP khac. Khi port
 * sang view that, cac markup do (vd phan trang kieu Bootstrap `ul.pagination`) di
 * vao trang DS nhung layout DS khong nap Bootstrap -> khong co style, hien tho
 * (dau cham bullet, khong khoang cach). File nay bu style theo tone DS.
 *
 * Nap SAU cac css DS khac de de dang de bat.
 */

/* Phan trang — PagerHelper::generateHtml sinh `ul.pagination > li.page-item > a.page-link` */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.pagination .page-item {
    list-style: none;
    margin: 0;
}
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border-default, #cbd5e1);
    border-radius: var(--radius-md, 4px);
    background: var(--surface-card, #fff);
    color: var(--text-link, #1F5D8C);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.pagination .page-link:hover {
    background: var(--amber-50, #FFF8E4);
    border-color: var(--amber-300, #FFCD1C);
}
.pagination .page-item.active .page-link,
.pagination .page-item.active > .page-link {
    background: var(--amber-300, #FFCD1C);
    border-color: var(--amber-300, #FFCD1C);
    color: var(--ink-900, #0E1B26);
}
.pagination .page-item.disabled .page-link {
    opacity: .45;
    pointer-events: none;
}

/* ===========================================================================
   Hop nhap mat khau giai. Dung o ca trang danh sach su kien va trang anh giai
   nen dat o day thay vi lap lai trong tung view.
   =========================================================================== */
.bx-pwdlg { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.bx-pwdlg[hidden] { display: none; }
.bx-pwdlg__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.bx-pwdlg__box { position: relative; background: #fff; border-radius: 12px; padding: 24px; width: min(420px, 92vw); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.bx-pwdlg__box h3 { margin: 0 0 14px; font-size: 1.05rem; }
.bx-pwdlg__box input { width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; }
.bx-pwdlg__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ===========================================================================
   Trang anh cua mot giai (site_views_ds/photo.blade.php).
   =========================================================================== */

/* Banner dau trang do BTC/doi tac cung cap - kich thuoc bat ky, chi ep chieu ngang. */
.ph-banner img { width: 100%; display: block; border-radius: var(--radius-md, 10px); }

.ph-hero__title { margin: 0; }
.ph-hero__title a { color: inherit; text-decoration: none; }
.ph-hero__title a:hover { text-decoration: underline; }

.ph-tabs { margin-bottom: 14px; flex-wrap: wrap; }

.ph-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.ph-form__field { flex: 1; min-width: 220px; max-width: 420px; margin: 0; }
.ph-form__file { max-width: 100%; }

.ph-cert { margin-bottom: 10px; }

.ph-note { color: var(--text-muted, #64748b); font-size: var(--fs-body-sm, 14px); margin: 0 0 8px; }
.ph-note[hidden] { display: none; }

.ph-info { border: 1px solid var(--border-subtle, #e2e8f0); border-radius: 8px; padding: 10px 14px;
    margin-bottom: 10px; color: var(--blue-700, #1d4ed8); font-weight: 600; }

.ph-alert { border-radius: 8px; padding: 10px 14px; margin-bottom: 10px;
    background: var(--ink-50, #f1f5f9); font-size: var(--fs-body-sm, 14px); }
.ph-alert--warn { background: #fef3c7; }

.ph-uploaded img { max-width: 240px; border-radius: 8px; margin: 6px 0 12px; }

.ph-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }

.ph-results { padding-top: 16px; }

.ph-resulthead, .ph-resultfoot { display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ph-resultfoot { margin: 16px 0 0; }
.ph-resulthead__side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* So cot co dinh la uoc cua 48 (so anh/trang o che do Tat ca anh): 6 / 4 / 3 / 2 cot ->
   hang cuoi luon kin. auto-fill cu ra 5 cot o man 1280px, 48 anh le 3 o hang cuoi. */
.ph-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .ph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ph-photo { display: block; }
.ph-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ph-empty { min-height: 320px; padding: 20px 0; color: var(--text-muted, #64748b); }
.ph-empty--notice { background: var(--amber-300, #ffcd1c); color: var(--ink-900, #0f1c2e);
    border-radius: 10px; padding: 20px; text-align: center; }
.ph-empty--blank { min-height: 200px; }

.ph-video { text-align: center; margin: 0 auto 24px; max-width: 560px; }
.ph-video__title { font-size: 22px; border-bottom: 1px solid var(--amber-300, #ffcd1c); margin-bottom: 10px; }
.ph-video__msg { margin-bottom: 10px; }
.ph-video video { width: 500px; height: 315px; max-width: 100%; }

/* Nut Zalo noi. Ban cu dat goc phai duoi, nhung ban DS da co nut "Giao dien cu" o do
   nen doi sang goc trai; tren mobile nang len khoi thanh tab. */
.ph-zalo { position: fixed; bottom: 16px; left: 16px; opacity: .8; z-index: 900; }
.ph-zalo img { width: 48px; display: block; }

/* Nut "Anh xung quanh" chen vao toolbar Fancybox (markup do JS sinh). */
.bx-nearby-tb { width: auto; min-width: 0; height: 34px; padding: 0 11px; gap: 6px; margin: auto 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #ffcd1c; color: #1c3a5c; border-radius: 8px; font-weight: 700; }
.bx-nearby-tb span { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* ===========================================================================
   Trang BAN ANH cua mot giai (site_views_ds/photo-sell.blade.php).
   =========================================================================== */
.ph-debug { background: #ffe; border: 2px solid red; padding: 10px; overflow-x: auto; font-size: 12px; }
.ph-sellmsg { color: var(--blue-700, #1d4ed8); background: var(--amber-300, #ffcd1c); padding: 10px 14px;
    font-size: 14px; margin-bottom: 12px; border-radius: 8px; }
.ph-sell__promo { max-width: 100%; margin-bottom: 12px; border-radius: 8px; }
.ph-sell__h4 { margin: 6px 0 10px; font-weight: 700; }

.ph-sell__box { border: 1px solid var(--border-subtle, #e2e8f0); border-radius: 12px; padding: 18px;
    margin: 8px 0 18px; background: var(--surface-card, #fff); }
.ph-sell__pkgtitle { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--text-strong, #0f1c2e); }

/* Bang gia goi anh. */
.bx-pkg { width: 100%; border-collapse: collapse; font-size: var(--fs-body-sm, 14px); }
.bx-pkg th { background: var(--ink-50, #f1f5f9); text-align: left; padding: 10px 14px; font-weight: 700;
    color: var(--text-strong, #0f1c2e); border: 1px solid var(--border-subtle, #e2e8f0); }
.bx-pkg td { padding: 10px 14px; border: 1px solid var(--border-subtle, #e2e8f0); vertical-align: middle; line-height: 1.3em; }
.bx-pkg td.r { text-align: right; white-space: nowrap; }
.bx-pkg tr:has(input:checked) { background: var(--blue-50, #eff6ff); }
.ph-radio input { accent-color: var(--blue-500, #3b82f6); margin-left: 10px; transform: scale(1.15); vertical-align: middle; }

.ph-sell__order { margin-top: 14px; text-align: center; }
.ph-sell__sum { font-size: 15px; text-align: left; margin-bottom: 4px; }
.ph-sell__cap { text-align: left; font-size: 13px; }
.ph-sell__hint { font-size: 12px; text-align: left; margin-bottom: 6px; color: var(--text-muted, #64748b); }
.ph-sell__tot { text-align: left; font-size: 13px; margin-bottom: 10px; }
.ph-sell__tot span { font-weight: 700; }
.ph-sell__order .bx-btn { margin-top: 6px; }
.ph-sell__help { display: block; margin-top: 8px; font-style: italic; font-size: 14px; color: var(--blue-700, #1d4ed8); }

/* Anh chon mua: thumbnail + o tick "chon anh". */
.ph-sellitem { display: flex; flex-direction: column; }
.ph-sellitem__pick { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; cursor: pointer; }
.ph-sellitem__pick--paid { color: var(--text-muted, #64748b); cursor: default; }
.ph-sellitem__pick input { accent-color: var(--blue-500, #3b82f6); }

.ph-sell__paid { text-align: center; border-bottom: 1px solid var(--amber-300, #ffcd1c);
    margin: 0 auto 16px; max-width: 560px; padding-bottom: 12px; }
.ph-sell__paid-title { font-size: 22px; margin-bottom: 10px; }
.ph-sell__paid .bx-btn { margin-bottom: 10px; }

.ph-sell__vpromo { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; text-align: center; }
.ph-sell__vpromo img { width: 480px; max-width: 100%; border: 1px solid var(--amber-300, #ffcd1c); border-radius: 7px; padding: 3px; margin-bottom: 5px; }

.ph-sell__fallback { padding: 10px 0; }

/* Custom clip (dnim2025) - mang lai style filmstrip/play-icon tu style.css cu. */
.ph-clip__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 12px; }
.ph-clip__mid { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 18px; text-align: center; }
.ph-clip__thumb { max-height: 180px; border-radius: 6px; }
.ph-clip__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.ph-clip__pick { display: flex; align-items: center; gap: 10px; }
.ph-clip__meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.video-thumbnail { padding: 10px; margin: 10px; position: relative; max-width: 100%; width: 400px; height: 225px;
    cursor: pointer; overflow: hidden; border-radius: 7px; box-shadow: 0 4px 8px rgba(0,0,0,.2); }
.video-thumbnail img { width: 100%; height: 100%; display: block; transition: transform .3s ease; }
.play-icon { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; background: rgba(255,255,255,.5);
    border-radius: 50%; transform: translate(-50%,-50%); display: flex; justify-content: center; align-items: center; }
.play-icon::before { content: ''; border-style: solid; border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #000; margin-left: 4px; }
.filmstrip { margin-top: 15px; display: flex; background: #000; padding: 5px 5px 10px; border: 8px solid #000;
    border-radius: 6px; gap: 6px; overflow-x: auto; white-space: nowrap; overflow-y: hidden; flex: 1; min-width: 0; }
.frame { width: 100px; height: 70px; background: #222; border: 2px solid #555; flex: 0 0 auto; }
.frame img { min-width: 100px; width: 100%; height: 100%; object-fit: cover; }

/* ===========================================================================
   Trang VIDEO ca nhan (site_views_ds/video-personal.blade.php + video-personal-paid).
   =========================================================================== */
.ph-vid__msg { font-size: 18px; padding: 10px 0 16px; }
.ph-vid__grid { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.ph-vid__col { flex: 1; min-width: 200px; }
.ph-vid__col h5 { margin: 0 0 8px; font-weight: 700; }
.ph-vid__thumb { max-height: 180px; border-radius: 6px; border: 1px solid var(--border-subtle, #e2e8f0); }
.ph-vid__poster { max-width: 100%; border-radius: 6px; margin-bottom: 10px; }
.ph-vid__result { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 14px; }
.ph-vid__result td { border: 1px solid var(--border-subtle, #e2e8f0); padding: 6px 10px; }
.ph-vid__regen { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 8px; text-align: center; }
.ph-vid__dl { text-align: center; }
.ph-vid__uploaded { margin-bottom: 12px; }
.ph-vid__cliptitle { margin: 20px 0 4px; }
.ph-vid__product ul { padding-left: 20px; }
.ph-vid__browseitem { width: 100%; aspect-ratio: 16/9; height: auto; }

/* Thanh tien trinh gia lap khi cho ghep video. */
.bar-chassis { width: 100%; background-color: #e0e0e0; border-radius: 12px; overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,.1); margin-bottom: 16px; height: 35px; }
.level-indicator { height: 100%; width: 0%; background-color: var(--blue-500, #4A83BA); display: block;
    transition: width 5s cubic-bezier(.25,.46,.45,.94); box-shadow: 2px 0 5px rgba(74,131,186,.5); }

/* ===========================================================================
   Trang chung chi hoan thanh (site_views_ds/cert/info.blade.php).
   =========================================================================== */
.cert-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.cert-form__field { flex: 1; min-width: 220px; margin: 0; }
.cert-race-link { margin-top: 12px; }
.cert-result { margin-top: 20px; text-align: center; }
.cert-result__frame { border-radius: var(--radius-md, 10px); overflow: hidden;
    border: 1px solid var(--border-subtle, #e2e8f0); box-shadow: var(--shadow-md, 0 5px 15px rgba(0,0,0,.1)); }
.cert-result__frame img { width: 100%; display: block; }
.cert-result__dl { margin-top: 14px; }

/* Nhung ?iframe=1 tren site doi tac: giong ban cu, bo banner dau trang, khoi ten giai
   va nut Zalo - trang cha cua doi tac da co nhan dien rieng. */
.is-embed .ph-banner,
.is-embed .ph-hero,
.is-embed .ph-zalo { display: none !important; }

/* Thuoc tinh hidden phai thang moi luat display cua component (vd .bx-field la flex):
   thieu dong nay o BIB van hien khi dang o tab tim theo mat. */
[hidden] { display: none !important; }

/* O chon anh khuon mat: nut chon file theo kieu nut outline cua DS thay vi nut mac dinh. */
.ph-form__file { font: inherit; font-size: var(--fs-body-sm, 14px); color: var(--text-muted, #64748b); }
.ph-form__file::file-selector-button {
    font: inherit; font-weight: 600; margin-right: 10px; padding: 9px 16px; cursor: pointer;
    border: 1px solid var(--border-default, #cbd5e1); border-radius: 4px; background: #fff;
    color: var(--blue-600, #1F5D8C);
}
.ph-form__file::file-selector-button:hover { border-color: var(--blue-400, #60a5fa); }

/* Phan trang: SitePaginationHelper sinh o "." (href="#") cho khoang bi luoc - hien thanh
   dau "…" khong bam duoc thay vi mot nut rong. */
.pagination .page-link[href="#"] { font-size: 0; border-color: transparent; background: transparent;
    pointer-events: none; min-width: 24px; }
.pagination .page-link[href="#"]::after { content: "\2026"; font-size: 16px; color: var(--text-muted, #64748b); }

/* Dien thoai: luoi anh 2 cot nhu mockup (site.css), luat .ph-grid o tren lam roi ve 1 cot. */
@media (max-width: 560px) {
    .ph-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Select nam trong khung .bx-inputwrap (o chon giai trang chu): components.css chi bo vien
   cho input, select giu vien mac dinh cua trinh duyet -> thanh hai vien long nhau. */
.bx-inputwrap > select { flex: 1; min-width: 0; height: 100%; border: none; outline: none;
    background: transparent; font-family: var(--font-sans); font-size: var(--fs-body);
    color: var(--text-strong); cursor: pointer; }

/* The giai: anh bia doc (poster) keo cao ca the vi img van chiem cho theo chieu cao that
   du khung da dat aspect-ratio 3/2. Cho anh nam tuyet doi trong khung -> khung luon 3:2,
   anh cat vua khung, moi the trong hang cao bang nhau. */
.bx-racecard__media { overflow: hidden; }
.bx-racecard__media > img { position: absolute; inset: 0; }
.bx-racecard__meta { font-size: var(--fs-caption, 12px); }
.bx-racecard__meta .bx-ic--sm { width: 13px; height: 13px; }

/* O nhap/chon trong khung .bx-inputwrap: khung da co vong sang :focus-within, bo vong sang
   rieng cua input (luat :focus chung) de khong thanh hai vong long nhau. */
.bx-inputwrap > input:focus, .bx-inputwrap > select:focus { box-shadow: none; outline: none; }

/* Khung noi dung 1360px (noi dung 1280px): man Full HD 1920 pho bien nhat bot trong hai ben,
   laptop 1366-1536 van du le. Dat o day chu khong sua tokens/spacing.css: tokens nap qua
   @import khong kem ?v= nen bi cache 10 nam o trinh duyet va Cloudflare, sua se khong toi khach.
   Hop tim giai o trang chu rong het khung de thang mep voi hang the ben duoi. */
:root { --container-max: 1360px; }
.hp-finder { max-width: none; }

/* Phan trang cuoi trang chu: dem ben trai, nut trang ben phai cung mot hang, cach luoi the. */
.hp-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
    flex-wrap: wrap; margin-top: 24px; color: var(--text-muted, #64748b); font-size: var(--fs-body-sm, 14px); }
.hp-pager .pagination { margin: 0; }

/* Thanh tim trang Su kien chi con mot o: luoi 3 cot cu (1fr auto auto) de lai 2 cot trong
   + 2 khoang gap lam o tim hut 20px so voi mep khung. */
.ev-searchbar__in { grid-template-columns: minmax(0, 1fr); }

/* Loc trang Su kien tren dien thoai: hai o chon cung mot hang, bo chu "Loc", nut xoa loc gon
   ben duoi - truoc day moi thu mot hang, day danh sach su kien xuong qua thap. */
@media (max-width: 560px) {
    .hp-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding-block: 12px; }
    .hp-filters__lbl { display: none; }
    .hp-filters .bx-select { min-width: 0; padding-inline: 10px; gap: 6px; }
    .hp-filters .bx-select__native { min-width: 0; width: 100%; font-size: 14px; text-overflow: ellipsis; }
    .hp-filters .hp-chip--clear { grid-column: 1 / -1; justify-self: start; }
}

/* Nut "Chia se" tren hero trang giai: cung hang voi nut quay lai Su kien, day ve ben phai. */
.ph-herotop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ph-share { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.ph-share:hover { background: rgba(255,255,255,.24); color: #fff; }
.vbuy-band .ph-share { margin-left: 8px; vertical-align: middle; }

/* Trang chia se su kien + ma QR */
.rs-wrap { padding-block: 28px 56px; }
.rs-back { color: var(--blue-600, #1F5D8C); background: var(--ink-50, #f1f5f9); margin-bottom: 18px; }
.rs-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.rs-head__img { width: 132px; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.rs-head__eyebrow { font-size: var(--fs-caption, 13px); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-700, #b45309); }
.rs-head__title { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; margin: 4px 0 6px; color: var(--blue-800, #173f63); }
.rs-head__lead { color: var(--text-muted, #64748b); margin: 0; }
.rs-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rs-card { background: #fff; border: 1px solid var(--border-subtle, #e2e8f0); border-radius: 10px; padding: 20px; box-shadow: var(--shadow-sm); }
.rs-label { display: block; font-weight: 700; color: var(--text-strong, #0f172a); margin-bottom: 10px; }
.rs-label--sm { font-size: var(--fs-body-sm, 14px); margin: 14px 0 6px; }
.rs-linkrow { display: flex; gap: 8px; }
.rs-link { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1.5px solid var(--border-default, #cbd5e1); border-radius: 4px; font: inherit; color: var(--text-strong); background: var(--ink-50, #f8fafc); }
.rs-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rs-qr__canvas { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; border: 1px solid var(--border-subtle, #e2e8f0); border-radius: 8px; }
.rs-select { width: 100%; height: 42px; padding: 0 10px; border: 1.5px solid var(--border-default, #cbd5e1); border-radius: 4px; font: inherit; background: #fff; }
.rs-check { display: flex; align-items: center; gap: 8px; margin: 12px 0; cursor: pointer; }
.rs-qr__url { font-size: 12px; color: var(--text-muted, #64748b); word-break: break-all; margin-bottom: 14px; }
.rs-hint { font-size: var(--fs-caption, 13px); color: var(--text-muted, #64748b); margin: 10px 0 0; }
@media (max-width: 800px) {
    .rs-grid { grid-template-columns: minmax(0, 1fr); }
    .rs-head { flex-direction: column; align-items: flex-start; }
}

/* Doi tac to chuc & media dang logo (thay o chu): o trang cao deu, logo gioi han trong
   khung de logo ngang dai (VTS) va logo vuong (Pulse Active) nhin can nhau. */
.ep-orgs:has(.ep-org--logo) { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ep-org--logo { padding: 10px 14px; height: 68px; background: #fff; justify-content: center; border-radius: 10px; }
.ep-org--logo::before { display: none; }
/* Logo chu trang (Topas Travel) thiet ke cho nen xanh navy: giu nguyen mau goc. */
.ep-org--dark { background: #22317a; border-color: #22317a; }
.ep-org--logo { min-width: 0; overflow: hidden; }
.ep-org--logo img { max-height: 38px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 560px) {
    .ep-orgs:has(.ep-org--logo) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ep-org--logo { height: 56px; padding: 8px 10px; }
    .ep-org--logo img { max-height: 30px; }
}

/* Bo chuyen ngon ngu: 10 ngon ngu khong vua hang nut EN/VI/KR cu nen thanh menu tha
   xuong bang <details>. Ghi de .bx-langswitch cua site.css (flex nhieu nut). */
.bx-langswitch { display: block; position: relative; background: none; padding: 0; }
.bx-langswitch > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 10px; border-radius: var(--radius-md); background: var(--ink-50); font-size: 12px; font-weight: 700; color: var(--ink-600); }
.bx-langswitch > summary::-webkit-details-marker { display: none; }
.bx-langswitch[open] > summary { color: var(--blue-700); }
.bx-langswitch__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 168px;
  max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--ink-100, #e6e8ee);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, .12)); padding: 4px; }
.bx-langswitch__menu a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px;
  color: var(--ink-700, #333); text-decoration: none; white-space: nowrap; }
.bx-langswitch__menu a:hover { background: var(--ink-50); text-decoration: none; }
.bx-langswitch__menu a.is-active { color: var(--blue-700); font-weight: 700; }
@media (max-width: 860px) {
  .bx-langswitch { display: block; }
  .bx-langswitch__menu { right: -8px; }
}
/* Ten su kien noi bat trang chu: nho lai, toi da 2 dong de doc het ten dai. */
.hp-hl__title { font-size: var(--fs-body-sm, 14px); line-height: 1.35; -webkit-line-clamp: 2; min-height: 2.7em; }

/* Select2 o chon giai trang chu: nam trong khung .bx-inputwrap, bo vien rieng cua Select2. */
.hp-finder .select2-container { flex: 1; min-width: 0; }
.hp-finder .select2-container--default .select2-selection--single { border: 0; background: transparent; height: 100%; display: flex; align-items: center; }
.hp-finder .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 0; font-size: var(--fs-body, 16px); color: var(--text-strong, #0f172a); line-height: 1.4; }
.hp-finder .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--text-subtle, #94a3b8); }
.hp-finder .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.select2-container--open .select2-dropdown { border-color: var(--border-default, #cbd5e1); border-radius: 6px; box-shadow: var(--shadow-md); font-size: 15px; }
.select2-container--open .select2-search__field { border-radius: 4px; padding: 8px 10px !important; }
.select2-container--open .select2-results__group { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #64748b); }
.select2-container--open .select2-results__option--highlighted[aria-selected] { background: var(--blue-600, #1F5D8C) !important; }
.select2-container--open .select2-results > .select2-results__options { max-height: 360px; }

/* Tab tim (BIB / mat / tat ca) tren dien thoai: luon mot hang, chia deu, chu nho lai -
   truoc day "Tat ca anh" roi xuong dong thu hai. Nhan dai (fr, id, ru...) xuong dong
   ben trong o tab thay vi tran de len tab ben canh. */
@media (max-width: 560px) {
    .ph-tabs { display: flex; flex-wrap: nowrap; width: 100%; }
    .ph-tabs .ph-tab { flex: 1 1 0; min-width: 0; justify-content: center; padding: 4px 6px;
        font-size: 13px; white-space: normal; text-align: center; line-height: 1.2;
        height: auto; min-height: 36px; overflow-wrap: break-word; gap: 5px; }
    /* Tieng Han mac dinh ngat giua am tiet ("검 / 색"); giu tron tu, chi ngat o dau cach. */
    .ph-tabs .ph-tab:lang(ko) { word-break: keep-all; }
    .ph-tabs .ph-tab .bx-ic { width: 14px; height: 14px; flex: 0 0 auto; }
}

/* Logo header to hon (32 -> 42px); dien thoai 36px de van du cho nut ngon ngu + menu. */
.bx-header__logo img { height: 42px; }
@media (max-width: 560px) { .bx-header__logo img { height: 36px; } }

/* Tieu de hero trang giai: dau tieng Viet chong (Ễ, Ệ) cua dong dau trom len nut "Su kien"
   voi line-height 1.02 -> gian dong va chua khoang duoi hang nut. */
.ph-herotop { margin-bottom: 14px; }
.ph-hero__title { line-height: 1.16; padding-top: .08em; }
/* Minh hoa quy trinh (thay anh IMG-07 chu tieng Viet o cac ngon ngu khac). */
.bx-proc { margin-top: 28px; padding: 24px; border: 1px solid var(--ink-100, #e6e8ee); border-radius: 16px; background: #fff; }
.bx-proc__head { text-align: center; max-width: 680px; margin: 0 auto 20px; }
.bx-proc__title { margin: 0 0 6px; font-size: clamp(18px, 2vw, 22px); }
.bx-proc__lead { margin: 0; color: var(--text-muted, #64748b); }
.bx-proc__flow { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.bx-proc__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 10px; border-radius: 12px; background: var(--ink-50, #f5f7fb); }
.bx-proc__step + .bx-proc__step::before { content: "→"; position: absolute; left: -12px; top: 30px; transform: translateX(-50%); color: var(--blue-600, #2563eb); font-weight: 700; }
.bx-proc__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-50, #eaf2ff); color: var(--blue-700, #1d4ed8); }
.bx-proc__icon .bx-ic { width: 24px; height: 24px; }
.bx-proc__icon--sm { width: 38px; height: 38px; flex: 0 0 38px; }
.bx-proc__icon--sm .bx-ic { width: 20px; height: 20px; }
.bx-proc__n { font-size: 12px; font-weight: 700; color: var(--text-muted, #64748b); }
.bx-proc__label { font-weight: 700; line-height: 1.35; }
.bx-proc__values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bx-proc__value { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px dashed var(--ink-200, #d5dae3); }
.bx-proc__value b { display: block; margin-bottom: 2px; }
.bx-proc__value span { color: var(--text-muted, #64748b); font-size: 14px; }
@media (max-width: 640px) {
  .bx-proc { padding: 16px; }
  .bx-proc__flow, .bx-proc__values { grid-template-columns: minmax(0, 1fr); }
  .bx-proc__step + .bx-proc__step::before { content: "↓"; left: 50%; top: -14px; }
}

/* Phan trang tren dien thoai: toi da 9 o (« … 2 3 4 5 6 7 … ») phai nam mot hang - truoc
   o 38px + gap 6px tran dong o man 390-430px, nut "»" roi xuong duoi. */
@media (max-width: 560px) {
    .pagination { flex-wrap: nowrap; gap: 4px; max-width: 100%; }
    .pagination .page-link { min-width: 32px; height: 34px; padding: 0 6px; font-size: 13px; }
    .pagination .page-link[href="#"] { min-width: 16px; padding: 0; }
}

/* Form tim (BIB / khuon mat) tren dien thoai: o nhap hoac o chon file cung hang voi nut
   "Tim anh". Truoc o BIB bi ep toi thieu 220px, cong nut > be ngang 358px (man 390) nen
   nut roi xuong dong. O phu bib_check (vai giai) hien ra thi cho xuong dong nhu cu. */
@media (max-width: 560px) {
    .ph-form { flex-wrap: nowrap; gap: 8px; }
    .ph-form:has([data-bibcheck]:not([hidden])) { flex-wrap: wrap; }
    .ph-form__field { min-width: 0; flex: 1 1 auto; max-width: none; }
    .ph-form__file { min-width: 0; flex: 1 1 auto; font-size: 13px; }
    .ph-form__file::file-selector-button { padding: 8px 10px; margin-right: 6px; }
    .ph-form > .bx-btn { flex: 0 0 auto; padding-inline: 14px; white-space: nowrap; }
}
