/* ==========================================================================
   VuiSoDep v2 — Liquid Glass (phong cach kinh trong suot kieu iOS)
   --------------------------------------------------------------------------
   Nguyen tac: kinh phai TRONG nhung chu phai DOC DUOC.
   - Nen kinh sang: trang 72-80% + blur 18px + vien trang mo -> chu xam dam.
   - Nen kinh toi: xanh navy 62% + blur 18px -> chu trang/vang.
   - Neu trinh duyet khong ho tro backdrop-filter: nen van du trang de doc.
   ========================================================================== */

/* Chan trinh duyet tu ep che do toi (Coc Coc/Chrome tren PC): giao dien
   thiet ke SANG, khong co ban toi — ep sang de nen kinh khong bi xam/den. */
:root { color-scheme: light; }
html { color-scheme: light; background-color: #e6eef7; forced-color-adjust: none; }
body { background-color: #e6eef7; }

/* Nen trang: TRANG TINH (#fff) theo yeu cau cua user — cac muc hien
   tren lop kinh trong suot kieu anh mau (phim tron kinh: nen trang,
   vet bong sang, bong do mem, mau tint nhe hien xuyen qua kinh).
   Khong con gradient xanh/tim/cam nen sau — nen trang sach. */
.vsd-bg {
    /* HINH NEN kieu iOS (man hinh khoa, image-13.png): cac mang mau
       sang, mo, nhe — xanh da troi / xanh la / tim oai huong / dao —
       co dinh, de moi tam kinh co thu de lam mo xuyen qua, nhin thay
       ngay hieu ung kinh. KHONG de nen trang phang (kinh se vo hinh). */
    background-color: #e6eef7;
    background-image:
        radial-gradient(ellipse 60% 45% at 8% 0%, rgba(147, 197, 253, .85), transparent 70%),
        radial-gradient(ellipse 55% 50% at 95% 8%, rgba(167, 243, 208, .8), transparent 70%),
        radial-gradient(ellipse 50% 45% at 85% 55%, rgba(221, 214, 254, .75), transparent 70%),
        radial-gradient(ellipse 60% 50% at 5% 75%, rgba(253, 230, 138, .55), transparent 70%),
        radial-gradient(ellipse 45% 40% at 55% 100%, rgba(186, 230, 253, .7), transparent 70%),
        linear-gradient(180deg, #eef4fb 0%, #e6f0f7 45%, #eef2f7 100%);
    background-attachment: scroll;
}
.vsd-bg::before { /* tat lop bong sang tron cu */
    display: none;
}

/* --- Tam kinh sang (dung cho the, bang, bo loc, sidebar, modal) ---
   iOS 27 Liquid Glass: phai NHIN THAY bong kinh — vet sang tren, vet
   sang cheo, vien sang trong, va BONG DO mem lon phia duoi. Chu van doc
   duoc nho nen kinh du trang va chu dam. */
.glass, .glass-soft, .glass-dark { position: relative; }
/* Vet sang tren + vet sang cheo + VET BONG TRON kieu phim kinh trong
   anh mau: mot elip sang o goc tren trai (nhu vet bong tren phim tron
   1/2/5/6), nhin thay ngay tren nen trang. */
.glass::before, .glass-soft::before, .glass-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 58% 42% at 28% 4%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .28) 55%, transparent 78%),
        linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 34%, transparent 55%);
}
.glass::after, .glass-soft::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 43%, rgba(255, 255, 255, .06) 52%, transparent 64%);
}
.glass > *, .glass-soft > *, .glass-dark > * { position: relative; z-index: 1; }
.glass {
    /* Kinh man hinh khoa (image-13): TRONG — trang chi ~45%, nen hinh
       mo xuyen qua ro rang; blur 24px; bo goc LON 1.75rem nhu the
       thong bao tren man hinh khoa; vien sang mong; bong do mem. */
    background: linear-gradient(135deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .34));
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 22px 48px rgba(13, 42, 90, .20), 0 5px 14px rgba(13, 42, 90, .14), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .3);
    border-radius: 1.75rem;
}
.glass-soft {
    background: linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .28));
    -webkit-backdrop-filter: blur(22px) saturate(1.7);
    backdrop-filter: blur(22px) saturate(1.7);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 14px 32px rgba(13, 42, 90, .16), 0 3px 10px rgba(13, 42, 90, .10), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .25);
    border-radius: 1.5rem;
}
/* --- Tam kinh SANG cho thanh tren / header (nen trang) ---
   Tren nen trang tinh, thanh tren khong con la kinh toi xanh navy nua
   ma la kinh TRANG trong suot: trang mo + blur + vet bong + bong do
   mem; chu trong template doi sang mau dam (text-slate-800). */
.glass-dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .40));
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid rgba(13, 42, 90, .10);
    box-shadow: 0 10px 28px rgba(13, 42, 90, .12), 0 2px 8px rgba(13, 42, 90, .08), inset 0 1px 0 rgba(255, 255, 255, 1);
}
/* --- Nut kinh --- */
.glass-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .85));
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    backdrop-filter: blur(16px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 10px 24px rgba(13, 42, 90, .18), 0 2px 6px rgba(13, 42, 90, .12), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, .4);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    forced-color-adjust: none;
}
/* vet bong tren nut kinh: them elip bong sang tron kieu phim trong anh */
.glass-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 55% at 26% 0%, rgba(255, 255, 255, .85), rgba(255, 255, 255, .2) 55%, transparent 80%),
        linear-gradient(180deg, rgba(255, 255, 255, .6), transparent 45%);
}
.glass-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(13, 42, 90, .24), 0 4px 10px rgba(13, 42, 90, .14), inset 0 1px 0 rgba(255, 255, 255, 1); }
.glass-btn:active { transform: translateY(0) scale(.98); }
/* Vien thuoc kinh cho muc dang chon trong thanh dieu huong (TRANG CHU):
   cung kieu .glass-btn + rounded-full, chi them tint xanh de phan biet muc hien tai. */
.glass-pill-active {
    background: linear-gradient(180deg, rgba(219, 234, 254, .85), rgba(191, 219, 254, .6));
    border-color: rgba(11, 79, 179, .45);
}
/* Tat ca nut theo kieu nut "Chi tiết": kinh trong suot (nen cua .glass-btn)
   + chu xanh v1 #0b4fb3. Khong con nen vang/cam hay nen xanh dac. */
.glass-btn-primary,
.glass-btn-amber,
.glass-btn-v1blue,
.btn-glass-blue {
    color: #0b4fb3;
}
/* ==========================================================================
   PHIM / NUT TRON KINH — dung theo anh mau image-11.png cua user:
   phim tron (so 1/2/5/6) tren NEN TRANG: dia kinh tron trong suot,
   tint xanh luc / xanh duong / xanh la mo hien xuyen qua kinh,
   VET BONG SANG elip o goc tren (nhu vet bong tren phim), vien sang
   trong, BONG DO mem duoi dia. Chu trang dam, doc duoc.
   Dung cho: nut tron, icon tron, huy hieu tron; the sim chu nhat
   KHONG doi thanh tron — chi lay cung kieu bong kinh / bong do.
   ========================================================================== */
.glass-key {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    background: linear-gradient(145deg, rgba(45, 212, 191, .55), rgba(13, 148, 136, .5) 55%, rgba(15, 118, 110, .55));
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 14px 30px rgba(13, 42, 90, .22), 0 3px 8px rgba(13, 42, 90, .14), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(255, 255, 255, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}
.glass-key::before { /* vet bong sang elip o goc tren — dau hieu cua phim kinh trong anh */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(ellipse 62% 42% at 30% 8%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .25) 55%, transparent 78%),
        linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 62%);
}
.glass-key > * { position: relative; z-index: 1; }
.glass-key:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(13, 42, 90, .28), 0 4px 10px rgba(13, 42, 90, .16), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.glass-key:active { transform: translateY(0) scale(.97); }
.glass-key--blue { background: linear-gradient(145deg, rgba(96, 165, 250, .55), rgba(37, 99, 235, .5) 55%, rgba(30, 64, 175, .55)); }

/* --- O nhap kinh --- */
.glass-input {
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .40));
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 10px 26px rgba(13, 42, 90, .16), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 2px 5px rgba(13, 42, 90, .08);
}
.glass-input:focus { outline: none; border-color: #1877F2; box-shadow: 0 0 0 3px rgba(24, 119, 242, .22); background: rgba(255, 255, 255, .95); }
/* --- The sim kinh --- */
.sim-card {
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease;
    content-visibility: auto;
    contain-intrinsic-size: auto 210px;
    background-color: transparent;
    forced-color-adjust: none;
}
#simCardGrid { background-color: transparent; forced-color-adjust: none; }
/* O sim so dep: KINH TRONG SUOT — khung trong (trang 16%/8%, blur 10px)
   de nen pastel lot qua o 4 goc the + khe giua cac nut; vet sang chi o
   mep tren (khong phu toan khung) de khong rua xam o khe. */
#simListSection > .glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08));
    -webkit-backdrop-filter: blur(10px) saturate(1.8);
    backdrop-filter: blur(10px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 22px 48px rgba(13, 42, 90, .18), 0 5px 14px rgba(13, 42, 90, .12),
        inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .3);
    forced-color-adjust: none;
}
#simListSection > .glass::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .08) 25%, transparent 45%);
}
#simListSection > .glass::after {
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 43%, rgba(255, 255, 255, .04) 52%, transparent 64%);
}
/* Nut sim (the + hang bang + the mobile): kinh trong suot nhu thiet ke
   goc (vien thuoc), khong bong do ngoai — nut nam bep tren nen trang,
   khong loi bong xuong the dong duoi. Nen sau nut da trang dac nen
   kinh trong van sach, khong lo nen den. Chi ap cho nut sim, khong
   dong nut header/nav/hero/admin (nam tren nen gradient). */
.sim-card .glass-btn,
#simTableWrap .glass-btn,
.vsd-tcard .glass-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .38));
    border: 1px solid rgba(100, 116, 139, .5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, .4);
}
.sim-card .glass-btn:hover,
#simTableWrap .glass-btn:hover,
.vsd-tcard .glass-btn:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, .4);
}
/* Chi the co lop .vsd-anim moi chay hieu ung vao (tai trang / chuyen trang);
   lop bi go sau ~400ms nen the ngoai man hinh (content-visibility) khong
   tu mo dan khi cuon toi. */
.sim-card.vsd-anim { animation: vsdCardIn .35s ease both; }
/* The mobile (<=640px): luoi 2 cot, the thap hon — giu kich thuoc du tru
   sat thuc te de thanh cuon khong nhay khi cuon. */
@media (max-width: 640px) { .sim-card { contain-intrinsic-size: auto 180px; } }
/* Man hinh rat rong (>=1920px): the du rong de giu dung ti le
   1.586:1 nhu anh mau ma khong chong chu. He hon thi the cao theo
   noi dung (khong ti le co dinh) de khong bao gio chong/cat chu. */
@media (min-width: 1920px) { .simcard { aspect-ratio: 1.586 / 1; } }
.sim-card:hover { transform: translateY(-4px); }
.sim-card[role="link"] { cursor: pointer; }
.sim-card:hover .simcard { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .3); }
@keyframes vsdCardIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* --- Hero: KINH TRANG trong suot tren nen trang (khong con xanh navy
   dac) — trang mo + tint xanh/teal rat nhe + vet bong kinh + bong do
   mem; chu trong template doi sang mau dam (text-slate-900). --- */
.vsd-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, .48), rgba(224, 242, 254, .38) 50%, rgba(204, 251, 241, .34));
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 22px 48px rgba(13, 42, 90, .16), 0 5px 14px rgba(13, 42, 90, .10), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, .4);
}
.vsd-hero::before { /* vet bong tren kieu kinh iOS */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 24% 2%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .3) 55%, transparent 78%),
        linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .08) 30%, transparent 55%);
}
.vsd-hero::after { /* vet sang cheo kieu kinh */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .3) 42%, rgba(255, 255, 255, .08) 50%, transparent 58%);
}
.vsd-float { animation: vsdFloat 5s ease-in-out infinite; }
@keyframes vsdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) {
    .vsd-float, .sim-card, .sim-card.vsd-anim { animation: none; }
    .sim-card { transition: none; }
}

/* ==========================================================================
   THE SIM v2 — Y HET ANH MAU THE VIETTEL 5G THAT CUA USER (image-6.png).
   KHONG doi form nua. Bo cuc, vi tri, ti le y nhu anh:
   - The NHO, HINH CHU NHAT NAM NGANG, ti le chuan 1.586:1, bo goc tron.
   - KINH TRONG SUOT mau nha mang (mo, trong, backdrop-filter manh
     nhu the thong bao man hinh khoa): Viettel do kinh rgba(230,0,18,.62).
   - TRAI TREN: thuong hieu "wordmark 5G / slogan" VIET NGANG, dat o
     cho chip vang + chu doc cu (da xoa han) — Viettel: viettel 5G /
     CUOC SONG MOI; Mobifone: KET NOI GIA TRI; Vinaphone: KHONG NGUNG
     VUON XA; cac mang khac: SIM GIA RE. Goc tren-phai DE TRONG.
   - GOC DUOI TRAI: ma QR Zalo trong O VUONG TRANG, dung vi tri va co
     nhu anh mau (rong ~15% chieu rong the).
   - Van toc do mo: cac vach ngang mo o giua-ben phai the.
   - Khong co gi khac tren mat the. Thong tin sim nam TREN MAT THE, o
     vung duoi-ben phai (khung XANH user khoanh), ben phai ma QR:
     so sim, gia, loai, diem phong thuy, tong nut, trang thai.
   - Thuong hieu "wordmark 5G / slogan" o goc tren-trai (cho chip cu,
     khung DEN user khoanh truoc day da dich len tren). Ma QR Zalo o
     goc duoi trai (khung TRANG).
   - Phoi the (bo cuc, logo ngang, van toc do, bo goc, ti le
     1.586:1) GIU NGUYEN Y NHU ANH, KHONG sua — chi chat lieu la kinh. 
   Phan con lai cua site (header, bo loc, panel, modal) van kinh. */
.simcard {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    /* KINH TRONG SUOT (theo yeu cau moi): mau nha mang HIEN QUA lop
       kinh mo — trong, khong dac; blur manh lam mo hinh nen phia sau
       the nhu the thong bao man hinh khoa (image-13). Bo cuc, logo
       ngang, chu 5G, QR, thong tin sim GIU NGUYEN Y NHU ANH MAU. */
    background: rgba(29, 78, 216, .62);
    -webkit-backdrop-filter: blur(8px) saturate(1.7);
    backdrop-filter: blur(8px) saturate(1.7);
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
    isolation: isolate;
}
.simcard > * { position: relative; z-index: 1; }
/* Mau nha mang DAC (nen dac, khong alpha, khong gradient mo).
   Viettel do kinh nhu anh mau: rgba(230,0,18,.62). */
.simcard--viettel { background: rgba(230, 0, 18, .62); }
.simcard--mobifone { background: rgba(0, 102, 179, .62); }
.simcard--vinaphone { background: rgba(0, 144, 201, .62); }
.simcard--vietnamobile { background: rgba(245, 130, 32, .62); }
.simcard--gmobile { background: rgba(230, 81, 0, .62); }
.simcard--itel { background: rgba(157, 2, 8, .62); }
.simcard--wintel { background: rgba(123, 31, 162, .62); }
.simcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .4rem; padding: .28rem .7rem 0; flex: 0 0 auto; }
/* Thuong hieu "viettel 5G CUOC SONG MOI" o GOC TREN-TRAI cua the,
   THAY VAO CHO CHIP VANG + chu doc da xoa han theo yeu cau cuoi cua
   user — viet NGANG binh thuong, khong doc, khong chip. Goc tren-phai
   cua the: ten mien "Vuisodep.com" + "sim số đẹp" (theo yeu cau user). */
/* Ten mien o GOC TREN-PHAI cua the — trang, can phai, 2 dong. */
/* THUONG HIEU TREN CUNG BEN TRAI — wordmark viet thuong o tren,
   chu 5G TRANG LON nghieng o giua, slogan viet hoa o duoi. */
.simcard-brand { text-align: left; line-height: 1; flex: 0 0 auto; }
.simcard-site { margin-left: auto; text-align: right; line-height: 1.15; color: #fff; flex: 0 0 auto; }
.simcard-site-name { display: block; font-weight: 900; font-size: .72rem; letter-spacing: .01em; }
.simcard-site-sub { display: block; font-weight: 700; font-size: .55rem; opacity: .92; }
.simcard-lg .simcard-site-name { font-size: 1.05rem; }
.simcard-lg .simcard-site-sub { font-size: .72rem; }
.simcard-brand-name {
    font-weight: 900;
    font-size: .95rem;
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.simcard-brand--mobifone .simcard-brand-name, .simcard-brand--vinaphone .simcard-brand-name { text-transform: lowercase; }
.simcard-5g {
    display: block;
    font-weight: 900;
    font-style: italic;
    font-size: 2rem;
    line-height: .95;
    letter-spacing: -.03em;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.simcard-slogan {
    margin-top: .14rem;
    font-weight: 800;
    font-size: .52rem;
    letter-spacing: .14em;
    color: #fff;
    opacity: .95;
    white-space: nowrap;
}
/* MA QR ZALO — GOC DUOI TRAI, Y NHU ANH MAU: o vuong TRANG, TO HON
   truoc (rong ~24% chieu rong the, truoc day chi ~15%), sat goc duoi
   trai. Anh QR that cua admin, DA LAM SACH: chi lay dung ma QR
   (static/zalo-admin-qr.png, 824x824 — cat dung khung ma 340x340 tu
   anh goc, bo het nen xam anh chup + diem den thua o mep, dem vung
   trang sach 36px moi ben, phong 2x khong mo), logo Zalo o giua giu
   nguyen, nen trang, KHONG blur/filter tren ma, hien TO va SAC NET
   de quet duoc. */
.simcard-qr {
    flex: 0 0 24%;
    width: 24%;
    aspect-ratio: 1 / 1;
    padding: 3px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    z-index: 2;
}
.simcard-qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    backdrop-filter: none;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}
/* THONG TIN SIM — TREN MAT THE, VUNG DUOI-BEN PHAI (khung XANH user
   khoanh): ben phai ma QR, chiem tu ~27% chieu rong the tro sang phai,
   sat day the. Chu TRANG tren nen dac mau nha mang, doc ro nho
   text-shadow cua .simcard. Day la cho duy nhat hien thong tin sim. */
/* HANG DUOI THE — QR + thong tin sim nam trong LUONG flex binh
   thuong (khong absolute nua): the cao theo noi dung, khong bao gio
   chong len thuong hieu o tren, o moi chieu rong. */
.simcard-bottom {
    display: flex;
    align-items: flex-end;
    gap: .45rem;
    padding: .35rem .65rem .55rem;
    margin-top: auto;
    min-width: 0;
}
.simcard-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.simcard-num {
    display: block;
    font-weight: 900;
    font-size: clamp(.92rem, 2.4vw, 1.18rem);
    letter-spacing: .02em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    text-decoration: none;
}
a.simcard-num:hover { text-decoration: underline; color: #fff; }
/* Doan dep trong so sim (sanh/lap) to mau vang noi bat tren nen kinh nha mang */
.sim-num-hl { color: #FFD60A; font-weight: 900; text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 0 10px rgba(255, 214, 10, .55); }
/* === BANG SIM (che do "Dang bang") — cung ngon ngu kinh nhu the sim ===
   Panel ngoai da la .glass nen bang khong dung nen xam dac nua:
   header trong mo, hang xen ke mo nhat, hover trang mo. */
.sim-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.sim-table thead th {
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .30));
    border-bottom: 1px solid rgba(255, 255, 255, .75);
    padding: .65rem .75rem;
    font-size: 11px; font-weight: 800; color: #334155;
    text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.sim-table tbody td { padding: .65rem .75rem; border-bottom: 1px solid rgba(148, 163, 184, .22); vertical-align: middle; }
.sim-table tbody tr { transition: background .15s ease; content-visibility: auto; contain-intrinsic-size: auto 40px; }
.sim-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .22); }
.sim-table tbody tr:hover { background: rgba(255, 255, 255, .55); }
.sim-table tbody tr:last-child td { border-bottom: 0; }
/* So sim trong bang: chu dam xanh navy; doan dep dung cung class
   .sim-num-hl + cung logic nhu tren the, chi dam mau vang hon
   (vang hổ phách) de doc duoc tren nen kinh sang — tren the sim
   nen kinh nha mang toi nen vang sang #FFD60A moi hop. */
.sim-table .sim-table-num { color: #0f172a; font-weight: 800; letter-spacing: .02em; }
.sim-table .sim-num-hl { color: #d97706; text-shadow: 0 0 10px rgba(217, 119, 6, .28); }
.sim-table .sim-price { font-weight: 900; color: #0f172a; white-space: nowrap; }
.sim-table .sim-score-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2rem; padding: .15rem .5rem; border-radius: 9999px;
    background: rgba(255, 255, 255, .65); border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 2px 6px rgba(13, 42, 90, .10), inset 0 1px 0 rgba(255, 255, 255, 1);
    font-weight: 800; color: #334155;
}
/* The luoi 2x3 khung kinh cua "Dang bang" tren mobile (Ban 4c) — an mac
   dinh (desktop); chi hien trong @media (max-width: 640px) o muc 12. */
#simTableCards { display: none; }
.simcard-sub { padding-top: .05rem; font-size: .6rem; font-weight: 700; color: rgba(255, 255, 255, .93); line-height: 1.35; }
.simcard-price { font-weight: 900; font-size: .92rem; line-height: 1.15; white-space: nowrap; color: #fff; }
.simcard-meta { font-size: .58rem; font-weight: 600; color: rgba(255, 255, 255, .88); line-height: 1.35; }
/* MA QR ZALO THAT cua admin — tren the sim (goc duoi trai, o vuong trang):
   anh den-trang sac net (824x824, da lam sach chi lay ma QR), logo
   Zalo o giua — nen trang, KHONG blur/filter tren ma. */
/* Man hinh hep (dien thoai, the chi ~170px rong): thu nho moi thu de
   van vua trong khung chu nhat 1.586:1, khong tran, khong cat. */
@media (max-width: 640px) {
    .simcard-top { padding: .4rem .5rem 0; }
    .simcard-brand-name { font-size: .68rem; }
    .simcard-5g { font-size: 1.5rem; }
    .simcard-slogan { font-size: .42rem; letter-spacing: .1em; }
    .simcard-num { font-size: .8rem; }
    .simcard-sub { font-size: .5rem; }
    .simcard-price { font-size: .78rem; }
    .simcard-meta { font-size: .48rem; }
    .simcard-status { font-size: .55rem; padding: .05rem .35rem; }
}
.simcard-status {
    display: inline-block;
    font-size: .62rem;
    font-weight: 800;
    padding: .1rem .45rem;
    border-radius: 999px;
    color: #15803d;
    background: rgba(255, 255, 255, .95);
}
/* the lon o trang chi tiet: van chu nhat 1.586:1, chi to hon the luoi
   mot chut va gioi han chieu rong de khong thanh khoi vuong khong lo */
.simcard-lg { width: 100%; max-width: 540px; border-radius: 1.1rem; aspect-ratio: 1.586 / 1; }
.simcard-lg .simcard-brand-name { font-size: 1.35rem; }
.simcard-lg .simcard-5g { font-size: 3rem; }
.simcard-lg .simcard-slogan { font-size: .72rem; }
.simcard-lg .simcard-num { font-size: clamp(1.35rem, 4vw, 1.9rem); }
.simcard-lg .simcard-sub { font-size: .72rem; }
.simcard-lg .simcard-price { font-size: 1.25rem; }
.simcard-lg .simcard-meta { font-size: .66rem; }
@media (prefers-reduced-motion: reduce) { .simcard { transition: none; } }

/* ==========================================================================
   POPUP / MODAL / DROPDOWN — tat ca deu kinh trong suot kieu iOS 27
   Ap dung cho: cart/order modal, pricing, phong thuy, info modal (gioi
   thieu / thanh toan / tra gop / tai khoan), admin modal, toast, confirm
   (admin dung toast + undo thay cho confirm() goc), dropdown loc.
   Nguyen tac: nen mo (backdrop) mo + blur, panel kinh co vet bong tren,
   vet sang cheo, vien sang trong, BONG DO mem lon; chu dam de doc.
   ========================================================================== */
/* Lop mo sau popup: toi dan + mo + blur — nhin thay ngay */
.glass-backdrop {
    background: linear-gradient(180deg, rgba(8, 20, 45, .55), rgba(8, 20, 45, .68));
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
}
/* Panel popup: bong do manh hon panel thuong de noi khoi nen mo */
.glass-modal-panel {
    box-shadow: 0 32px 80px rgba(8, 25, 60, .45), 0 8px 24px rgba(8, 25, 60, .28), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, .35);
}
/* The xem truoc sim trong hero: the rong 400px, can giua trong khoang
   trong ben phai o tim sim (wrapper flex-1), mobile thi full chieu ngang. */
#heroSimPreview > article {
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
}
/* Tieu de popup: KINH TRANG tren nen trang (khong con xanh navy dac);
   chu trong template doi sang mau dam (text-slate-800). */
.glass-modal-head {
    color: #0b4fb3;
    background: linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(219, 234, 254, .45));
    -webkit-backdrop-filter: blur(22px) saturate(1.7);
    backdrop-filter: blur(22px) saturate(1.7);
    border-bottom: 1px solid rgba(13, 42, 90, .10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
    border-radius: 1.25rem 1.25rem 0 0;
}
/* Dropdown loc (select goc cua trinh duyet): nen kinh + bong do */
.glass-select {
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .40));
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    backdrop-filter: blur(16px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 8px 20px rgba(13, 42, 90, .14), inset 0 1px 0 rgba(255, 255, 255, 1);
    /* FIX 2026-11-06 bo loc bi le nhau: select khong bao gio tran o sang o ben canh */
    min-width: 0;
    max-width: 100%;
}
/* Select "Sap xep": rong co dinh du de hien tron ca option dai nhat
   ("Diem phong thuy cao nhat"), padding phai du cho mui ten dropdown
   khong de len chu "Ngau nhien" — truoc day p-1 qua hep nen chu bi le. */
.sort-select {
    min-width: 12.5rem;
    padding-right: 1.75rem;
    white-space: nowrap;
}
/* Toast: them bong do mem cua kinh (lop glass-soft da co vet bong) */
.vsd-toast {
    box-shadow: 0 18px 40px rgba(13, 42, 90, .22), 0 4px 12px rgba(13, 42, 90, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* ==========================================================================
   HANG KHOANG GIA NHANH — FULL CHIEU NGANG
   1 hang rieng, rong 100%, 11 chip trai deu het be ngang cua trang
   (flex:1 moi chip), LUON hien tat ca cac khoang gia — KHONG co nut
   "Xem them..." / "Thu gon". Chip giu kieu kinh trong suot.
   Man hep: chip tu xuong hang (flex-wrap) nhung van trai deu be ngang.
   ========================================================================== */
.price-chips-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
}
.price-chip {
    flex: 1 1 0;
    min-width: max-content;
    text-align: center;
    white-space: nowrap;
    padding: .4rem .25rem;
    font-weight: 600;
    border-radius: .5rem;
    color: #334155;
    background: rgba(255, 255, 255, .45);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 2px 6px rgba(13, 42, 90, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.price-chip:hover {
    background: rgba(231, 243, 255, .85);
    color: #1877F2;
    box-shadow: 0 4px 10px rgba(13, 42, 90, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}
@media (max-width: 640px) {
    .price-chip { flex: 1 1 30%; padding: .4rem .2rem; }
}

/* ==========================================================================
   TRANG ADMIN — cung ngon ngu kinh nhu trang chu (CHI ap dung cho admin)
   Cac class .admin-* / .vsd-new-order chi co trong templates/admin.html
   nen trang chu khong thay doi. Mau chu dao: xanh v1 #0b4fb3.
   ========================================================================== */
/* Khung chua cac tab (trang thai don / nha mang): kinh mo thay cho nen xam dac */
.admin-tabs {
    background: linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .30));
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 8px 20px rgba(13, 42, 90, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
}
/* Bang admin: header kinh mo, hang xen ke mo nhat, hover trang mo —
   giong .sim-table o trang chu. Vien bang mo (border-white/70 trong HTML). */
.admin-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.admin-table thead th {
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .30));
    border-bottom: 1px solid rgba(255, 255, 255, .75);
}
.admin-table tbody td { border-bottom: 1px solid rgba(148, 163, 184, .22); }
.admin-table tbody tr { transition: background .15s ease; }
.admin-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .22); }
/* Don moi (chu duyet): giu highlight vang nhat de nhan biet — dat sau
   quy tac xen ke de thang khi trung do uu tien, truoc hover. */
.admin-table tbody tr.vsd-new-order { background: rgba(254, 243, 199, .5); }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, .55); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
/* Nút kính chữ đỏ (nút xóa / hủy): cùng nền kính .glass-btn, chỉ khác màu chữ */
.btn-glass-red { color: #dc2626; }
/* Khung admin chữ nhật nhỏ gọn (ô tìm kiếm nhanh + bảng đơn hàng):
   bo góc nhỏ thay cho rounded-3xl mềm; vẫn giữ nền kính .glass. */
.glass.admin-frame-compact { border-radius: .5rem; }
/* Tiêu đề trang admin ở hàng đầu (link QUẢN TRỊ dời từ menu lên):
   chữ đậm in hoa màu xanh #0b4fb3, căn giữa khoảng trống; không dùng
   nền xanh đặc của .admin-nav-link.is-active. */
.admin-title-link { color: #0b4fb3; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; line-height: 1.2; padding: .5rem .75rem; border-radius: .5rem; transition: color .15s ease, background-color .15s ease; white-space: nowrap; }
.admin-title-link:hover { color: #08408f; background-color: rgba(11, 79, 179, .08); }
.admin-title-link.is-active { color: #0b4fb3; }
/* Nút kính trong thanh menu (Thêm SIM / Lịch sử giao dịch): trạng thái
   đang mở chỉ viền xanh đậm thay vì nền xanh đặc. */
.admin-glass-nav.is-active { box-shadow: 0 0 0 2px #0b4fb3, 0 10px 24px rgba(13, 42, 90, .18), 0 2px 6px rgba(13, 42, 90, .12), inset 0 1px 0 rgba(255, 255, 255, 1); }
/* Khung sim theo nhà mạng (trang admin): mỗi nhà mạng một khung riêng,
   các khung xếp ngang thành một hàng, đúng thứ tự tab. */
/* Khung kho sim: mỗi nhà mạng một khung NGANG full-width, 7 khung xếp chồng dọc */
.sims-frames { display: flex; flex-direction: column; gap: 12px; }
.glass-soft.sim-telco-frame { flex: none; width: 100%; max-width: none; display: flex; flex-direction: column; background: linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .28)), var(--telco-soft, rgba(71, 85, 105, .10)); }
.sim-telco-frame__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--telco-soft, rgba(71, 85, 105, .10)); border-bottom: 1px solid rgba(255, 255, 255, .65); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: #0f172a; }
.sim-telco-frame__dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 9999px; background: var(--telco, #475569); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.sim-telco-frame__count { font-size: 11px; font-weight: 800; color: var(--telco, #475569); background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); padding: 2px 8px; border-radius: 9999px; white-space: nowrap; }
/* Phân trang riêng từng khung: nút ‹ › + số trang, nằm bên phải tiêu đề khung */
.sim-telco-frame__pager { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #0b4fb3; white-space: nowrap; }
.sim-telco-frame__pager button { min-width: 26px; padding: 2px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .95); background: linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .45)); box-shadow: 0 4px 10px rgba(13, 42, 90, .12), inset 0 1px 0 rgba(255, 255, 255, 1); font-weight: 800; font-size: 13px; line-height: 1.4; color: #0b4fb3; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.sim-telco-frame__pager button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(13, 42, 90, .18), inset 0 1px 0 rgba(255, 255, 255, 1); }
.sim-telco-frame__pager button:disabled { opacity: .35; cursor: default; }
/* Thẻ sim trong khung ngang: xếp thành hàng ngang, tự xuống dòng */
.sim-telco-frame__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
@media (min-width: 640px) { .sim-telco-frame__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .sim-telco-frame__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sim-telco-frame__list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 639px) { .sim-frame-card .flex { flex-wrap: wrap; } }
.sim-frame-card { min-width: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .42)); border: 1px solid rgba(255, 255, 255, .85); border-radius: .75rem; padding: .6rem .7rem; box-shadow: 0 6px 16px rgba(13, 42, 90, .10), inset 0 1px 0 rgba(255, 255, 255, .9); }

/* Hang 2 the sim (loai + Sua/Xoa + select trang thai): xuong dong khi the hep de khong tran (o desktop 1920px the ~300px van 1 hang) */
.sim-card-row2 { flex-wrap: wrap; }

/* BANG DON HANG TREN DIEN THOAI: thu nho chu + padding de hien het 7 cot trong khung, khong vuot ngang.
   Chi bang don hang (.orders-table), KHONG doi bang lich su. Desktop giu nguyen. */
@media (max-width: 767px) {
    .orders-scroll { padding: 2px !important; }
    .orders-table { min-width: 0 !important; font-size: 9px !important; }
    .orders-table th, .orders-table td { padding: 2px 1px !important; }
    .orders-table th { font-size: 8px; }
    .orders-table td:first-child { white-space: normal; }
    .orders-table .text-base { font-size: 11px !important; }
    .orders-table .text-xs { font-size: 9px !important; }
    .orders-table .text-\[11px\] { font-size: 9px !important; }
    .orders-table .text-\[10px\] { font-size: 9px !important; }
    .orders-table td .max-w-\[220px\] { max-width: 56px; }
    .orders-table td .min-w-\[150px\] { min-width: 0; }
    .orders-table td .flex.gap-1 { flex-direction: column; }
    /* Huy hieu trang thai duoc xuong 2 dong: "Dang giao dich" nowrap doi cot Trang Thai len ~85px, lam bang tran 390px. */
    .orders-table td.text-center .whitespace-nowrap { white-space: normal !important; }
}

/* BANG DON HANG + LICH SU TREN DESKTOP: thu nho de vua khit khung, khong con thanh cuon ngang.
   Chi ap dung >=768px; mobile 390px giu nguyen khoi @media (max-width:767px) o tren.
   Goc van de: bang don hang min-w 920px + padding khung 24px > rong khung ~908px o 1920px;
   bang lich su tuy min-w 860px nhung noi dung tu nhien ~904px, chi can du lieu that dai hon chut la tran. */
@media (min-width: 768px) {
    .orders-scroll, .history-frame-scroll { padding: 8px !important; }
    .orders-table, .history-frame-table { min-width: 0 !important; font-size: 12px; }
    .orders-table th, .orders-table td,
    .history-frame-table th, .history-frame-table td { padding: 6px 5px !important; }
    .orders-table thead th, .history-frame-table thead th { font-size: 10px; }
    /* Cot Thoi gian: cho xuong 2 dong (ngay + gio) thay vi 1 dong dai */
    .orders-table td:first-child { white-space: normal !important; }
    .history-frame-table td:nth-child(2) { white-space: normal !important; }
    /* So SIM tren bang don hang nho lai chut */
    .orders-table .text-base { font-size: 13px !important; }
    /* Dia chi / Ghi chu hep lai (220px -> 140px) */
    .orders-table td .max-w-\[220px\] { max-width: 140px; }
    /* Nut Goi/Zalo xep doc (chi o co lien he, khong phai o thao tac) */
    .orders-table td .flex.gap-1:not(.flex-wrap) { flex-direction: column; align-items: flex-start; }
    /* Nut thao tac don hang: hep lai, nut nho hon chut de xuong dong gon */
    .orders-table td .min-w-\[150px\] { min-width: 108px; }
    .orders-table td .flex.flex-wrap button { padding-left: 6px !important; padding-right: 6px !important; font-size: 10px !important; }
    /* Lich su: cot Chi tiet hep lai (320px -> 120px), email Nguoi thuc hien cho ngat dong */
    .history-frame-table td .max-w-xs { max-width: 120px; }
    .history-frame-table td:nth-child(7) { min-width: 85px; overflow-wrap: break-word; }
}

/* Nut "Xoa loc" trong thanh Bo loc (mobile): AN mac dinh (desktop);
   chi hien trong @media (max-width: 640px) o duoi. */
.vsd-hero-clearfilter { display: none; }

/* Hang chua nut "Bo loc" + nut "Xoa loc" trong thanh Bo loc (mobile):
   AN mac dinh (desktop); chi hien (flex) trong @media (max-width: 640px).
   Dung class rieng (khong dung sm:hidden cua Tailwind) de kiem tra duoc
   o sandbox (CDN Tailwind bi chan o day). */
.vsd-filterbar-row { display: none; }

/* ==========================================================================
   MOBILE (<=640px) — GON GIAO DIEN DIEN THOAI (2026-11-08, theo phan hoi
   cua user tren iPhone 390px: chu bi cat tren vien thuoc, trang dai
   ngoang, sim bi chon sau duoi cung).
   CHI ap dung <=640px — desktop (>=641px) giu nguyen y het: khong doi
   mau sac, chu, noi dung, bo cuc desktop, khong doi logic JS.
   ========================================================================== */
@media (max-width: 640px) {
    /* 1. Header tren mobile: dung 2 dong can doi (logo o tren rieng).
       Dong 1: badge thang + Gioi thieu + Thanh toan + Tai khoan (4 vien
       rong bang nhau, cao bang nhau, chu can giua). Dong 2
       (.vsd-top-links-row2): Zalo + Gmail (2 vien rong bang nhau) +
       nut gio hang co dinh o cuoi. */
    .vsd-top-links {
        overflow-x: visible !important;
        flex-wrap: wrap;
        align-items: stretch !important;
        gap: .375rem;
        font-size: 10px !important;
    }
    .vsd-top-links > * {
        padding: .35rem .45rem !important;
        white-space: normal !important;
    }
    /* Dong 1: 4 vien rong bang nhau (flex 1 1 0), cao bang nhau nho
       stretch, chu can giua doc + ngang. Badge thang va ten tai khoan
       duoc xuong 2 dong de vua vien thay vi cat chu. */
    .vsd-top-links > .glass-btn {
        flex: 1 1 0 !important;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
        padding: .3rem .45rem !important;
    }
    /* Ten tai khoan: cho xuong dong thay vi cat "..." (vien hep). */
    #accountMenuName {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
    }
    /* 2. Nav sticky gon lai: pill nho + hep hon, do cao thanh nav giam. */
    .vsd-mainnav { gap: .375rem !important; }
    .vsd-mainnav div { gap: .375rem !important; }
    .vsd-mainnav .glass-btn { padding: .4rem .65rem !important; font-size: 11px; }
    /* 3. Hero gon: bo khoang trong giu cho cua the xem truoc dang AN
       (invisible) — chi ton cho khi user go so sim va the hien ra;
       tieu de/phu de/search/chip nho + gon; o tim kiem + nut Tim sim
       nam chung 1 hang. */
    #heroSimPreview.invisible { display: none; }
    .vsd-hero { padding: 1rem 1.25rem !important; }
    .vsd-hero h1 { font-size: 1.35rem !important; line-height: 1.25 !important; }
    .vsd-hero p { font-size: .85rem !important; line-height: 1.45 !important; margin-top: .35rem !important; }
    .vsd-hero-search { flex-direction: row !important; }
    .vsd-hero-search .glass-input { padding-top: .65rem !important; padding-bottom: .65rem !important; font-size: .95rem !important; }
    .vsd-hero-search > button { min-height: 44px !important; padding: .6rem .9rem !important; font-size: .95rem !important; white-space: nowrap; }
    .vsd-hero-chips { gap: .375rem !important; margin-top: .6rem !important; }
    .vsd-hero-chips .glass-btn { padding: .35rem .6rem !important; font-size: 11px; }
    /* Nut "Xoa loc": chi hien tren mobile, nam trong thanh Bo loc o
       dau phai; nut "Bo loc" co khung vien, dich vao giua mot chut. */
    .vsd-hero-clearfilter { display: inline-block !important; }
    /* Hang Bo loc + Xoa loc: flex tren mobile, chia 3 phan — nut Bo loc
       2 phan (xanh dac #0b4fb3, chu trang), nut Xoa loc 1 phan (kinh). */
    .vsd-filterbar-row { display: flex !important; align-items: center; gap: 8px; margin-bottom: .5rem; }
    .vsd-filterbar-row #filterToggleBtn { flex: 2; margin-left: 0; justify-content: center; background: #0b4fb3; color: #fff; border-color: #0b4fb3; }
    .vsd-filterbar-row .vsd-hero-clearfilter { flex: 1; margin-left: 0; text-align: center; }
    /* 4. Bo loc thu gon mac dinh tren mobile (chi an khi co class +
       trong media query nay — desktop luon mo day du). */
    #filterPanel.vsd-filter-collapsed #filterPanelBody { display: none; }
    /* 5. Danh sach sim LEN TREN sidebar tren mobile: dung order cua
       grid (khong doi DOM de JS khong anh huong). */
    #simListSection { order: -1; }
    /* 6. Box phu ben trai (sidebar) GON lai tren mobile (2026-11-08,
       theo phan hoi cua user tren iPhone: cac box to nhung trong box
       trong rat nhieu khoang trang). Chi bot padding doc — khong doi
       chu, mau, noi dung, hanh vi link/loc.
       Compact-2 (2026-11-08): siet them — user thay ban 1 (dong 24px)
       van chua du gon, can nhin la thay ngay. */
    /* Khoang cach giua cac box: 12px -> 8px. */
    /* Tieu de cac box danh sach: 6px -> 4px. */
    .vsd-side-boxes > .glass > .bg-slate-50 {
        padding-top: .25rem !important;
        padding-bottom: .25rem !important;
    }
    /* Dong trong cac box danh sach: 4px -> 2px. */
    .vsd-side-boxes .divide-y > a {
        padding-top: .125rem !important;
        padding-bottom: .125rem !important;
    }
    /* Box SIM NAM SINH (box cuoi cua sidebar trai): bot padding khung
       10px -> 8px + bot khoang cach duoi luoi chon ngay 8px -> 6px +
       nut TIM SIM 6px -> 4px; GIU NGUYEN o chon ngay (31px) va co chu. */
    .vsd-side-boxes > .glass:last-child { padding: .5rem !important; }
    .vsd-side-boxes > .glass:last-child > div.grid { margin-bottom: .375rem !important; }
    .vsd-side-boxes > .glass:last-child > button {
        padding-top: .25rem !important;
        padding-bottom: .25rem !important;
    }
    /* 7. Sidebar trai thanh 2 COT tren mobile — XEP COT (column
       packing, 2026-11-08, theo mockup user duyet
       mock-clean-390-left-v6.png): cot trai GIA -> MAY MAN; cot
       phai DANG CAP -> AN TUONG -> MANG; AN TUONG lap khoang trong
       duoi DANG CAP; GIA keo dai de day bang day AN TUONG; MAY MAN
       day bang day MANG; NAM SINH giu full-width o duoi nhu cu.
       Dung grid placement tuong minh (chi mobile; desktop khong
       phai grid nen khong anh huong). */
    .vsd-side-boxes {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        column-gap: .5rem;
        row-gap: .5rem;
        align-items: start;
    }
    .vsd-side-boxes > * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    /* Xep COT (2026-11-08, mock-clean-390-left-v6.png): cot trai
       GIA -> MAY MAN; cot phai DANG CAP -> AN TUONG (lap khoang
       trong duoi DANG CAP) -> MANG; GIA keo dai (stretch, span 2
       hang) de day bang day AN TUONG (~317px); MAY MAN + MANG
       stretch de day bang nhau (2 cot ket thuc bang deu nhau);
       NAM SINH giu full-width o duoi nhu cu. Dung grid placement
       tuong minh — row-based order KHONG lap duoc khoang trong
       duoi DANG CAP. Chi mobile; desktop giu nguyen. DOM: GIA=1,
       MANG=2, DANG CAP=3, MAY MAN=4, AN TUONG=5, NAM SINH=6. */
    .vsd-side-boxes > .glass:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: stretch !important;
    }
    .vsd-side-boxes > .glass:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }
    .vsd-side-boxes > .glass:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
    }
    .vsd-side-boxes > .glass:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
        align-self: stretch !important;
    }
    .vsd-side-boxes > .glass:nth-child(2) {
        grid-column: 2;
        grid-row: 3;
        align-self: stretch !important;
    }
    .vsd-side-boxes > .glass:nth-child(6) {
        grid-column: 1 / -1;
        grid-row: 4;
    }
    /* 8. Vien thuoc tren cung + thanh dieu huong thanh HANG NGANG DAY
       tren mobile (2026-11-08, user: cac vien thuoc xep lech, de
       khoang trong lon cuoi hang — muon xep ngang tan dung khoang
       trong). Khong doi chu/mau/thu tu; chu van hien day du. */
    /* Top-links: dan deu ra 2 dau hang (space-between) de hang day;
       sau khi badge rut gon ("so dep MM/YYYY"), 4 vien thuoc vua
       1 hang tren 390px. */
    .vsd-top-links {
        justify-content: space-between !important;
    }
    /* Nav: nhom zalo/gmail thanh item truc tiep cua nav (display:
       contents) de cung xep hang voi cac vien thuoc khac; cac vien
       thuoc co gian lap day hang (flex-grow), chu can giua; nut gio
       hang (cartBtnNav) khong bi anh huong. */
    .vsd-mainnav > div .glass-btn {
        justify-content: center !important;
        text-align: center !important;
    }
    /* 9. Giam do bo goc cua cac box sidebar trai tren mobile
       (2026-11-08, user: "vo tron goc qua r" — box hep lai con nua
       chieu rong (2 cot) nen bo goc 1.75rem = 28px cua .glass nhin
       nhu vien thuoc). 28px -> 10px: ro rang it tron hon, van hoi
       mem, khong thanh goc vuong. Chi override tren mobile (<=640px),
       desktop giu nguyen 28px; ::before/::after cua .glass dung
       border-radius: inherit nen tu theo. Khong doi box nao khac. */
    .vsd-side-boxes > .glass {
        border-radius: 10px !important;
    }
    /* 10. Sidebar PHAI tren mobile (2026-11-08, sua lan 2 — user che
       masonry 2 cot "gu" / lech, yeu cau tra o DON HANG MOI ve nhu
       cu NGAY + 2 o kia thanh khuon thang hang):
       - O DON HANG MOI: 1 box kinh duy nhat nhu cu (anh image-92),
         don la hang trong box; thong tin dan NGANG ra (ten/SDT/sim
         chay ngang) de moi hang gon lai, dua duoc nhieu khach len hon.
       - 2 o con lai (Dau so + TONG DAI): giu tach the nho theo tung
         nha mang, NHUNG bo masonry -> GRID 2 cot thang hang; moi the
         la 1 khung kinh ro rang (nen duc, vien ro, bo goc 10px).
       GIU NGUYEN HTML goc (desktop khong doi). Box QUY TRINH MUA SIM
       khong co class .vsd-right-compact nen khong bi anh huong.
       Khoang cach giua cac cum 16px -> 8px. */
    .vsd-right-boxes > * + * { margin-top: .5rem !important; }
    .vsd-right-boxes #telcoPrefixesBox,
    .vsd-right-boxes #hotlineBox {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        border-radius: 0 !important;
    }
    .vsd-right-boxes #telcoPrefixesBox::before,
    .vsd-right-boxes #telcoPrefixesBox::after,
    .vsd-right-boxes #hotlineBox::before,
    .vsd-right-boxes #hotlineBox::after { display: none !important; }
    .vsd-right-boxes #telcoPrefixesBox > .bg-slate-50,
    .vsd-right-boxes #hotlineBox > .bg-slate-50 { display: none !important; }
    /* Luoi 2 cot GRID thang hang cho 2 cum muc (dau so / tong dai)
       — bo masonry (column-count gay "gu", lech/lom); align-items:
       start de the ngan chi cao bang noi dung (khong bi keo dai
       thanh bang to, het trong ben trong the — dac biet the
       VUISODEP.COM chi gom ten + so tong dai, phai that gon).
       Luoi dau so: Viettel (o 1) full-width hang dau, Wintel (o 7)
       nua o; luoi tong dai xep theo mockup rieng (xem ben duoi). */
    .vsd-right-boxes #telcoPrefixesBox > ul,
    .vsd-right-boxes #hotlineBox > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: .5rem !important;
        padding: 0 !important;
        align-items: start !important;
    }
    /* Viettel (o 1) full-width hang dau; Wintel (o 7) chi la nua
       o (cat lam doi, nam o 7 canh iTel) — KHONG full-width nua.
       Thu tu DOM dung thu tu doc nen cac the con lai tu chay vao
       luoi 2 cot: hang 2 Vina+Mobi, hang 3 Vietnamobile+Gmobile,
       hang 4 iTel+Wintel. (2026-11-08, mock-clean-390-prefix-v3.png) */
    .vsd-right-boxes #telcoPrefixesBox > ul > li:nth-child(1) {
        grid-column: 1 / -1 !important;
    }
    /* Sap xep lai cac the TONG DAI theo mockup user duyet
       (2026-11-08, mock-clean-390-hotline-v3.png): hang 1
       [VUISODEP.COM][VIETNAMOBILE], hang 2 [VIETTEL][MOBIFONE]
       (MOBIFONE dua len tu hang 3, stretch de day bang day
       VIETTEL 210px), hang 3 [VINAPHONE full-width]. Khong xoa
       nha mang nao. Dung grid placement tuong minh (chi mobile;
       desktop giu thu tu DOM goc). DOM: 1 VUISODEP.COM,
       2 VIETTEL, 3 MOBIFONE, 4 VINAPHONE, 5 VIETNAMOBILE. */
    .vsd-right-boxes #hotlineBox > div:last-child > div:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    .vsd-right-boxes #hotlineBox > div:last-child > div:nth-child(5) {
        grid-column: 2;
        grid-row: 1;
    }
    .vsd-right-boxes #hotlineBox > div:last-child > div:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    .vsd-right-boxes #hotlineBox > div:last-child > div:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        align-self: stretch !important;
    }
    .vsd-right-boxes #hotlineBox > div:last-child > div:nth-child(4) {
        grid-column: 1 / -1 !important;
        grid-row: 3;
    }
    /* Bo duong ke chia cua divide-y giua cac muc dau so (the da
       tach rieng thi khong can ke) + bo margin space-y-3 cua box
       tong dai (dung gap cua grid thay the). */
    .vsd-right-boxes #telcoPrefixesBox > ul > * + * { border-top-width: 0 !important; }
    .vsd-right-boxes #hotlineBox > div:last-child > * { margin-top: 0 !important; }
    /* The kinh nho dung chung cho tung muc tach ra — khung RO RANG:
       nen duc hon, vien ro, bo goc 10px, noi dung gon trong khung. */
    .vsd-right-boxes #telcoPrefixesBox li.vsd-prefix-row,
    .vsd-right-boxes #hotlineBox > div:last-child > div {
        background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.62)) !important;
        -webkit-backdrop-filter: blur(24px) saturate(1.8);
        backdrop-filter: blur(24px) saturate(1.8);
        border: 1px solid rgba(255,255,255,.9) !important;
        box-shadow: 0 8px 20px rgba(13,42,90,.12), 0 2px 6px rgba(13,42,90,.10), inset 0 1px 0 rgba(255,255,255,.9) !important;
        border-radius: 10px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: .5rem !important;
        min-width: 0;
    }
    /* O DON HANG MOI: tra ve 1 box duy nhat (nhu cu, anh
       image-92.png) — tieu de hien, don la hang trong box, ke
       chia + hang xen ke. Thong tin moi don dan NGANG ra (ten +
       SDT + so sim chay ngang, nut cam + ngay ben phai) de moi
       hang gon lai (2 dong thay vi 3), dua duoc nhieu khach da
       mua len hon trong cung dien tich. */
    .vsd-right-boxes #recentOrdersList {
        display: block !important;
        padding: 0 !important;
    }
    .vsd-right-boxes #recentOrdersList > * + * { border-top-width: 1px !important; }
    .vsd-right-boxes #recentOrdersList > div {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: .5rem !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        padding: .375rem .75rem !important;
    }
    .vsd-right-boxes #recentOrdersList > div:nth-child(even) {
        background: rgba(148,163,184,.12) !important;
    }
    .vsd-right-boxes #recentOrdersList > div > div:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        column-gap: .5rem !important;
        row-gap: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .vsd-right-boxes #recentOrdersList > div > div:last-child {
        display: block !important;
        flex: 0 0 auto !important;
        text-align: right !important;
        margin-top: 0 !important;
    }
    /* Dau so: huy hieu nha mang len tren, ten + danh sach dau so
       xuong duoi lay tron chieu rong the (it wrap hon so voi de
       huy hieu ben trai). */
    .vsd-right-boxes #telcoPrefixesBox li.vsd-prefix-row {
        flex-direction: column !important;
        gap: .25rem !important;
        align-items: flex-start !important;
    }
    /* Thu tu 2 box phai tren mobile (2026-11-08, user: dua so tong
       dai + cac nha mang len truoc, muc nhan biet dau so xuong sau):
       TONG DAI len truoc, Danh sach dau so xuong sau. Dung order
       (chi mobile; desktop giu thu tu DOM goc). DON HANG MOI van
       tren cung, QUY TRINH van cuoi cung. Dat display: flex ro rang
       cho aside (khong phu thuoc class flex cua Tailwind) de order
       co tac dung. */
    .vsd-right-boxes {
        display: flex !important;
        flex-direction: column !important;
    }
    .vsd-right-boxes > :first-child { order: 1; }
    .vsd-right-boxes > #hotlineBox { order: 2; }
    .vsd-right-boxes > #telcoPrefixesBox { order: 3; }
    .vsd-right-boxes > :last-child { order: 4; }
    /* 11. Header mobile: hang 2 tren cung = zalo + gmail + gio hang
       (2026-11-08, user: thu nho 2 muc zalo/gmail thanh 1 hang ngang
       roi dua len ghep vao cho khoanh do, them ca nut gio hang — thu
       tu tu trai sang phai: zalo, gmail, gio hang). Ban sao o hang 2
       chi hien tren mobile; ban goc zalo/gmail trong nav + nut gio
       hang goc duoc AN tren mobile; desktop giu nguyen (ban sao an
       mac dinh, ban goc hien). Nut gio hang van mo popup gio hang;
       badge so luong duoc dong bo ca 2 ban qua class
       .cart-count-badge (xem refreshCartCount). */
    /* Hang 2: chiem tron 1 hang duoi hang badge/Gioi thieu/Thanh
       toan/Tai khoan; 3 muc xep ngang, zalo + gmail co gian lap day
       hang, chu can giua; nut gio hang co dinh (icon). Co chu 9px +
       padding hep de ca 3 muc vua 1 hang ke ca khi badge gio hang
       hien so (khong cat chu). */
    .vsd-top-links-row2 {
        display: flex !important;
        flex: 1 1 100%;
        align-items: center;
        gap: .375rem;
        width: 100%;
        padding: 0 !important;
    }
    /* Zalo + Gmail rong bang nhau (flex 1 1 0), chu can giua; nut Gio
       hang TO giu nguyen, co dinh o cuoi hang (khong day lech 2 vien).
       Thu tu Zalo -> Gmail -> Gio hang giu nguyen; chu so/email
       khong cat (white-space: nowrap + flex-shrink: 0). */
    .vsd-top-links-row2 > .glass-btn {
        flex: 1 1 0;
        justify-content: center !important;
        min-width: 0;
        padding: .22rem .3rem !important;
        font-size: 8.5px;
    }
    .vsd-top-links-row2 > button.glass-btn {
        flex: 0 0 auto;
        padding: .5rem .85rem !important;
        font-size: 15px;
    }
    /* An ban goc zalo/gmail trong nav + nut gio hang goc tren mobile
       (ghi de display: contents cua muc 8 — cung do dac hieu, quy tac
       sau thang). */
    .vsd-mainnav > div > div { display: none !important; }
    #cartBtnNav { display: none !important; }
    /* Thanh dieu huong chi con 4 vien thuoc (zalo/gmail + gio hang da
       chuyen len tren): ep 2 vien/hang cho can doi (truoc day 3+1 vi
       3 vien vua 1 hang). Ghi de flex: 1 0 auto cua muc 8. */
    .vsd-mainnav > div .glass-btn {
        flex: 1 1 calc(50% - .25rem) !important;
    }
    /* 12. DANG BANG tren mobile thanh the luoi 2x3 khung kinh (Ban 4c,
       2026-11-08, user chot: moi sim 1 the kinh trong suot, luoi
       2 hang x 3 cot — hang 1: So sim | Gia ban | Them gio; hang 2:
       Loai sim | Diem/Mang | MUA NGAY; bo STT + Hinh thuc). Bang 8 cot
       chi hien tren desktop; mobile an bang, hien the. Desktop khong
       doi (the an mac dinh, bang giu nguyen). */
    #simTableWrap { overflow: visible !important; }
    #simTableWrap table.sim-table { display: none !important; }
    #simTableCards { display: block !important; padding: .625rem; }
    .vsd-tcard {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr) 96px;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 4px;
        align-items: center;
        padding: 6px 10px;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, .55);
        border: 1px solid rgba(255, 255, 255, .8);
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(13, 42, 90, .10);
        content-visibility: auto;
        contain-intrinsic-size: auto 64px;
    }
    .vsd-tcard:last-child { margin-bottom: 0; }
    .vsd-tcard-num { grid-column: 1; grid-row: 1; font-size: 14px; font-weight: 800; color: #0f172a; letter-spacing: .02em; white-space: nowrap; }
    .vsd-tcard-num .sim-num-hl { color: #d97706; text-shadow: 0 0 10px rgba(217, 119, 6, .28); }
    .vsd-tcard-price { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 900; color: #0f172a; white-space: nowrap; }
    .vsd-tcard-cart { grid-column: 3; grid-row: 1; }
    .vsd-tcard-type { grid-column: 1; grid-row: 2; font-size: 11px; color: #475569; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .vsd-tcard-score { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 5px; }
    .vsd-tcard-buy { grid-column: 3; grid-row: 2; }
    .vsd-tcard-cart, .vsd-tcard-buy {
        font-size: 10px !important;
        padding: 4px !important;
        width: 100%;
        height: 23px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    /* Vien diem trong the: nen xam nhu mockup de doc duoc tren nen
       kinh (vien trang cua bang se chim vao khung). */
    .vsd-tcard .sim-score-pill {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 1.6rem; padding: .05rem .35rem; border-radius: 9999px;
        background: #e2e8f0; border: 1px solid #94a3b8;
        font-size: 10px; font-weight: 800; color: #0f172a;
    }
    /* 13. DOI THU TU FOOTER tren mobile — LUOI 2x2 (2026-11-08,
       theo mockup user duyet mock-clean-390-footer-v3.png):
       tren-trai CHINH SACH BAN HANG, tren-phai TONG DAI HO TRO
       BAN HANG (len cho cu LIEN HE), duoi-trai LIEN HE & HO TRO
       (xuong duoi CHINH SACH), duoi-phai VUI SO DEP (len cho cu
       TONG DAI). align-items: stretch de 2 o cung hang cao bang
       nhau (LIEN HE keo dai de day bang VUI SO DEP).
       Chi CSS trong @media (max-width:640px); desktop giu nguyen
       md:grid-cols-4, thu tu DOM goc. Khong doi noi dung/link. */
    #footer-section > div.grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        align-items: stretch;
    }
    #footer-section > div.grid > div:nth-child(1) { grid-column: 1; grid-row: 1; } /* CHINH SACH BAN HANG — tren trai */
    #footer-section > div.grid > div:nth-child(3) { grid-column: 2; grid-row: 1; } /* TONG DAI HO TRO BAN HANG — tren phai */
    #footer-section > div.grid > div:nth-child(2) { grid-column: 1; grid-row: 2; } /* LIEN HE & HO TRO — duoi trai (stretch de day bang VUI SO DEP) */
    #footer-section > div.grid > div:nth-child(4) { grid-column: 2; grid-row: 2; } /* VUI SO DEP — duoi phai */
}

/* Hang 2 tren cung (zalo + gmail + gio hang): an mac dinh (desktop);
   chi hien trong @media (max-width: 640px) o muc 11. */
.vsd-top-links-row2 { display: none; }
