/*
 * Page parts of the storefront, loaded after shop-core.css: product, buy,
 * account, home and post pages. Cards, buttons, fields, badges, alerts and
 * tiles come from ui-core.css / shop-core.css; a section here only adds what
 * its pages need on top. Mobile first like the rest: base rules are the
 * phone layout, the min-width queries in section 14 add tablet/desktop.
 *
 * Contents
 *   1. Product notes ..... .shop-note (description / pre-order / rental notes)
 *   2. Category, search .. .category-desc, .category-sort, .search-hero, .search-box, .search-chips, .search-mine, .search-empty, .search-cats
 *   3. Pick an account ... .acc-filter (search bar, .acc-sort pills, .acc-quick chips, .acc-filter-panel), .pill-option, .acc-result, .acc-trust, .acc-grid, .acc, .acc-specs, .acc-sold-block (product-pick)
 *   4. Account detail .... .acc-detail, .acc-gallery, .acc-stock-chip, .acc-price-box, .acc-perks, .acc-info, .rent-box, .buy-sheet (purchase-modal)
 *   5. Blind bag ......... .bag-price, .bag-stage, .bag, .bag-burst (opening), .buy-reveal (after buying), .odds-row, .desc-modal + .desc-list (description popup) (product-random)
 *   6. Service order ..... .pkg-grid, .pkg, .pkg-finder, .pkg-search, .pkg-tabs, .is-list (long lists), .svc-layout, .svc-cart, .notice-tips, .boost-box
 *   7. Buy panel ......... .buy-intro, .buy-layout, .buy-step, .buy-summary, .buy-line, .buy-row, .telco, .pkg-body (card shop; .pkg-body also game top-up)
 *   8. Game top-up ....... .gt-search, .gt-games, .gt-game (list), .gt-layout, .gt-row, .gt-products, .gt-saved, .login-pick (<x-shop.login-choice>), .gt-sum, .gt-checkout, .gt-method, .gt-others (game page)
 *   8b. Gift Card ........ .gc-grid, .gc-tile (list), .pkg-stock, .pkg.is-out (card page; the rest is § 8), .gc-thumb, .gc-codes (order page)
 *   9. Bought cards ...... .cc-line, .cc-cards, .cc-card, .cc-refund (card checkout / purchase, with .od-* from § 10)
 *  10. Account parts ..... .history-tabs, .history-filter, .search-field, .status-chips, .od-* (order detail, card top-up), .bw-* (bank transfer wait), .rt-extend (rental detail), .so-* (service order detail), .cred, .zalo-link-steps, .ava-pick, .cp-steps, .boost-chips, .ctv-rules, .ctv-topup, .ctv-agreed, .ctv-quit, .ref-* (referrals)
 *  11. Home top .......... .home-marquee, .home-notice, .hero, .hero-slider, .slide-nav, .deposit-box, .telco-row, .box-foot, .top-list, .ticker, .shortcuts, .popup (.popup-image .popup-x)
 *  12. Home blocks ....... .flash-box, .bs-items, .vc (coupons), .cat-block (category rows), .vc-hero / .vc-empty (coupon page), .hn-list (news), .home-quick (game top-up + gift card panels), .aff-grid (affiliate), .home-ref (invite friends; .is-ctv = become a CTV)
 *  12b. CTV page ......... .ctvp-hero, .ctvp-facts, .ctvp-split (70/30 ring), .ctvp-cta, .ctvp-calc (earnings calculator), .ctvp-duo, .ctvp-perks, .ctvp-steps, .ctvp-layout, .ctvp-rules, .ctvp-rules-link, .ctvp-faq, .ctvp-end (ctv-signup)
 *  13. Posts & reviews ... .posts-page, .post-feature, .post-card, .side-box, .article-page, .article, .article-cta, .related, .reviews-page
 *  14. Tablet / desktop .. min-width: 768px, 1024px, 1180px, 1200px, 1280px
 */
/* Lets the CTV page ring (.ctvp-ring) animate its fill. */
@property --ctvp-fill { syntax: '<number>'; inherits: false; initial-value: 0; }

@layer components {
    /* ========== 1. Product notes ========== */
    .shop-note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--warn) 28%, var(--border)); border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--text-2); font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
    .shop-note > i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--card); color: var(--warn-ink); font-size: 17px; box-shadow: var(--shadow-card); }
    .shop-note > div { flex: 1; min-width: 0; padding-top: 4px; }
    .shop-note b, .shop-note strong { color: var(--ink-strong); }
    .shop-note-text { white-space: pre-line; }

    /* ========== 2. Category, search ========== */
    .category-desc { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-card); line-height: 1.6; }
    .category-desc-body { white-space: pre-line; overflow-wrap: anywhere; }
    .category-desc.is-clamped .category-desc-body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .category-sort { display: flex; align-items: center; gap: 6px; margin: 0 -12px 12px; padding: 2px 12px 4px; overflow-x: auto; scrollbar-width: none; }
    .category-sort::-webkit-scrollbar { display: none; }
    .category-sort span { display: inline-flex; flex: none; align-items: center; gap: 4px; margin-right: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
    .category-sort span i { font-size: 17px; }
    .category-sort a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background .18s ease, color .18s ease; }
    .category-sort a:hover { color: var(--primary); }
    .category-sort a.is-active { background: var(--primary); color: #fff; }
    /* A soft tinted card rather than a solid red slab: the red is kept for the icon and the button. */
    .search-hero { position: relative; margin: 12px 0 16px; padding: 18px 16px 16px; border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border)); border-radius: var(--radius); background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--primary) 12%, transparent), transparent 55%), linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, var(--card)), var(--card)); color: var(--ink); }
    .search-hero h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; color: var(--ink-strong); font-size: 20px; font-weight: 800; }
    .search-hero-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 19px; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--primary) 60%, transparent); }
    .search-hero p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
    .search-box { position: relative; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); box-shadow: 0 6px 18px -12px rgb(15 23 42 / .35); transition: border-color .15s, box-shadow .15s; }
    .search-box:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }
    .search-box > i { flex: none; color: var(--muted); font-size: 20px; }
    .search-box input { flex: 1; min-width: 0; min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--ink-strong); box-shadow: none; }
    .search-box input:focus { outline: 0; box-shadow: none; }
    .search-box .btn { flex: none; min-height: 40px; padding-inline: 20px; border-radius: 999px; }
    .search-chips { display: flex; align-items: center; gap: 6px; margin: 12px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
    .search-chips::-webkit-scrollbar { display: none; }
    .search-chips > span { flex: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
    .search-chips a { flex: none; max-width: 200px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .15s, color .15s; }
    .search-chips a:hover { border-color: var(--primary); color: var(--primary); }
    .search-mine { display: grid; gap: 8px; margin-top: 12px; }
    .search-mine-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); transition: border-color .15s; }
    .search-mine-row:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
    .search-mine-thumb { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
    .search-mine-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .search-mine-thumb .media-placeholder { padding: 0; font-size: 10px; }
    .search-mine-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
    .search-mine-body b { overflow: hidden; color: var(--ink-strong); font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
    .search-mine-body small { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
    .search-mine-side { flex: none; display: grid; justify-items: end; gap: 4px; }
    .search-mine-side b { color: var(--primary); font-size: 13.5px; font-weight: 700; }
    .search-mine-more { display: inline-flex; align-items: center; gap: 2px; margin: 2px 0 -8px; padding: 8px 0; color: var(--primary); font-size: 13.5px; font-weight: 600; }
    .search-count { margin: 0 0 12px; color: var(--muted); }
    .search-count b { color: var(--ink-strong); }
    .search-badge { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--primary); font-size: 12.5px; }
    .search-empty { display: grid; justify-items: center; gap: 6px; margin: 0 0 16px; padding: 26px 18px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--card); text-align: center; }
    .search-empty > i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); font-size: 32px; }
    .search-empty b { color: var(--ink-strong); font-size: 16px; overflow-wrap: anywhere; }
    .search-empty p { margin: 0; color: var(--muted); font-size: 13.5px; }
    .search-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; margin-top: 10px; }
    .search-cats a { display: grid; justify-items: center; gap: 6px; min-width: 0; color: var(--ink); font-size: 12.5px; font-weight: 600; text-align: center; }
    .search-cats a > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; overflow-wrap: anywhere; }
    .search-cat-img { display: block; width: 58px; height: 58px; border-radius: 18px; overflow: hidden; background: var(--surface-2); box-shadow: 0 6px 14px -8px rgb(0 0 0 / .35); transition: transform .18s ease; }
    .search-cat-img img { width: 100%; height: 100%; object-fit: cover; }
    .search-cat-img .media-placeholder { padding: 0; font-size: 12px; }
    .search-cats a:hover .search-cat-img { transform: translateY(-2px); }

    /* ========== 3. Pick an account (product-pick) ========== */
    .acc-filter { margin-bottom: 12px; }
    .acc-filter-bar { display: flex; gap: 8px; margin-bottom: 10px; }
    .acc-filter-bar .search-field { flex: 1; min-width: 0; }
    .acc-filter-bar input { height: 44px; border-radius: 999px; background: var(--card); }
    .acc-filter-bar .btn { flex: none; height: 44px; padding: 0 20px; border-radius: 999px; }
    .pill-option { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
    .pill-option input { position: absolute; opacity: 0; pointer-events: none; }
    .pill-option span { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
    .pill-option span i { font-size: 16px; }
    .pill-option:hover span { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); color: var(--primary); }
    .pill-option input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); font-weight: 600; box-shadow: inset 0 0 0 1px var(--primary); }
    .pill-option input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
    .acc-sort { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
    .acc-sort .pill-option span { justify-content: center; width: 100%; padding: 0 6px; font-size: 12.5px; }
    /* One-tap filter on the product's first short select attribute (ProductController::quickFilter), each chip with its account count. Phones swipe it sideways. */
    .acc-quick { margin-bottom: 10px; }
    .acc-quick-label { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 700; }
    .acc-quick-label i { color: var(--primary); font-size: 16px; }
    .acc-quick-row { display: flex; gap: 6px; margin: 0 -12px; padding: 2px 12px 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 12px; scrollbar-width: none; }
    .acc-quick-row::-webkit-scrollbar { display: none; }
    .acc-quick-row a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 5px 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; scroll-snap-align: start; transition: border-color .15s, background .15s, color .15s, transform .15s; }
    .acc-quick-row a small { min-width: 24px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 24px; text-align: center; }
    .acc-quick-row a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); color: var(--primary); }
    .acc-quick-row a:active { transform: scale(.95); }
    .acc-quick-row a.is-on { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent); }
    .acc-quick-row a.is-on small { background: rgb(255 255 255 / .25); color: #fff; }
    .acc-filter-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
    .acc-filter-panel > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; user-select: none; }
    .acc-filter-panel > summary::-webkit-details-marker { display: none; }
    .acc-filter-panel > summary > i:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 17px; }
    .acc-filter-panel > summary small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; font-weight: 400; }
    .acc-filter-panel > summary > i:last-child { color: var(--muted); font-size: 20px; transition: transform .2s; }
    .acc-filter-panel[open] > summary { border-bottom: 1px solid var(--line); }
    .acc-filter-panel[open] > summary > i:last-child { transform: rotate(180deg); }
    .acc-filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11.5px; font-style: normal; }
    .acc-filter-body { padding: 4px 14px 14px; }
    .filter-group { margin: 0; padding: 12px 0 0; border: 0; min-width: 0; }
    .filter-group + .filter-group { border-top: 1px dashed var(--line); margin-top: 12px; }
    .filter-group legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
    .filter-group select { clear: both; }
    .pill-options { clear: both; display: flex; flex-wrap: wrap; gap: 6px; }
    .acc-filter-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
    .acc-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; color: var(--text-2); font-size: 13.5px; }
    .acc-result b { color: var(--primary-strong); }
    .acc-active { display: flex; flex-wrap: wrap; gap: 6px; }
    .acc-active a { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px 0 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 12.5px; font-weight: 600; }
    .acc-active a i { font-size: 16px; opacity: .7; }
    .acc-active a:hover i { opacity: 1; }
    .acc-active .acc-active-clear { padding: 0 8px; background: none; color: var(--muted); font-weight: 500; text-decoration: underline; }
    /* One line of shop promises above the list instead of the same footer on every card. */
    .acc-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
    .acc-trust li { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 8px; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-card); color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1.25; }
    .acc-trust i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 14px; }
    .acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
    .acc-grid > .empty { grid-column: 1 / -1; }
    .acc { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow-card); transition: transform .18s, box-shadow .18s, border-color .18s; }
    .acc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-lift); }
    .acc:active { transform: scale(.98); }
    .acc-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
    .acc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
    .acc:hover .acc-media img { transform: scale(1.05); }
    .acc-media .media-placeholder { font-size: 13px; }
    /* Accounts without a picture get a shorter colour band, so the attributes and price stay in view. */
    .acc-media:has(> .media-placeholder:not([hidden])) { aspect-ratio: 2 / 1; }
    .acc-id { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: rgb(0 0 0 / .5); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    .acc-off { position: absolute; top: 6px; right: 6px; padding: 3px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; box-shadow: var(--shadow-card); }
    .acc-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 8px; }
    /* Card attributes as label/value rows; on the account page the same list becomes a grid of tiles. */
    .acc-specs { display: grid; gap: 2px; margin: 0; }
    .acc-specs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; padding: 3px 7px; border-radius: var(--radius-xs); }
    .acc-specs > div:nth-child(odd) { background: var(--surface-2); }
    .acc-specs dt { flex: none; color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.4; }
    .acc-specs dd { min-width: 0; margin: 0; overflow: hidden; color: var(--ink-strong); font-size: 12.5px; font-weight: 700; line-height: 1.4; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
    .acc-specs-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .acc-specs-lg > div, .acc-specs-lg > div:nth-child(odd) { display: block; padding: 8px 11px; border-radius: var(--radius-sm); background: var(--surface-2); }
    .acc-specs-lg dt { font-size: 12px; }
    .acc-specs-lg dd { font-size: 14.5px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
    .acc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: auto; }
    .acc-price .price { font-size: 16px; font-weight: 800; }
    .acc-price .price-old { font-size: 12px; }
    .acc-cta { display: flex; align-items: center; justify-content: center; gap: 4px; height: 34px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-strong); font-size: 13px; font-weight: 700; transition: background .18s, color .18s; }
    .acc-cta i { font-size: 17px; transition: transform .18s; }
    .acc:hover .acc-cta { background: var(--grad); color: #fff; }
    /* "Vừa bán gần đây" under the list: sold accounts greyed with a stamp, swiped sideways on phones. */
    .acc-sold-block .section-title > i { --chip: #22c55e; --chip-2: #0d9488; }
    .acc-sold-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; margin: 10px -12px 0; padding: 2px 12px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 12px; scrollbar-width: none; }
    .acc-sold-grid::-webkit-scrollbar { display: none; }
    .acc.is-sold { scroll-snap-align: start; box-shadow: none; }
    .acc.is-sold:hover { transform: none; }
    .acc.is-sold .acc-media :is(img, .media-placeholder) { filter: grayscale(.9); opacity: .7; }
    .acc.is-sold:hover .acc-media img { transform: none; }
    .acc.is-sold .price { color: var(--muted); font-size: 14.5px; }
    .acc-sold-stamp { position: absolute; top: 8px; right: 6px; padding: 2px 9px; border: 2px solid #fff; border-radius: 7px; background: color-mix(in srgb, var(--bad) 88%, transparent); box-shadow: 0 4px 10px rgb(0 0 0 / .18); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transform: rotate(8deg); }
    .acc-sold-when { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
    .acc:hover .acc-cta i { transform: translateX(3px); }

    /* ========== 4. Account detail ========== */
    .acc-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .acc-gallery-stage { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
    .acc-gallery-stage .media-placeholder { font-size: 20px; }
    .acc-stock-chip { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--card); color: var(--ok-ink); font-size: 12px; font-weight: 700; box-shadow: var(--shadow); }
    .acc-stock-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
    .acc-stock-chip.is-sold { color: var(--muted); }
    .acc-stock-chip.is-sold::before { background: var(--faint); }
    .acc-gallery-stage img { width: 100%; height: 100%; object-fit: contain; }
    .acc-gallery-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; }
    .acc-gallery-thumbs button { flex: 0 0 68px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-xs); overflow: hidden; background: var(--hover); cursor: pointer; }
    .acc-gallery-thumbs button.active { border-color: var(--primary); }
    .acc-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
    .acc-price-box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border)); border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-soft), var(--card) 75%); }
    .acc-price-box .price { display: block; font-size: 26px; font-weight: 800; line-height: 1.2; }
    .acc-price-box .price-old { font-size: 13px; }
    .acc-actions { display: grid; gap: 8px; }
    /* Long states ("Acc vừa hết lượt thuê, shop đang làm mới", deposit amounts) wrap instead of pushing the card off a phone. */
    .acc-actions .btn { padding-block: 8px; white-space: normal; }
    .rent-box { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
    .rent-box h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15px; }
    .rent-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
    .rent-plans form { margin: 0; }
    .rent-plans .btn { width: 100%; min-height: 50px; flex-direction: column; gap: 1px; }
    .rent-plans small { font-weight: 500; opacity: .85; }
    .acc-perks { display: grid; gap: 2px; margin: 14px 0 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); list-style: none; }
    .acc-perks li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
    .acc-perks li + li { border-top: 1px dashed var(--line); }
    .acc-perks i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 16px; }
    .acc-perks span { display: grid; gap: 1px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
    .acc-perks b { color: var(--ink-strong); font-size: 13.5px; }
    .acc-info { margin-top: 16px; }
    .acc-info h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15px; text-transform: uppercase; }
    .acc-info h2 i { color: var(--primary); font-size: 18px; }
    .buy-sheet { display: grid; gap: 12px; padding: 16px; }
    .buy-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .buy-head h3 { margin: 0; }
    .buy-head button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 20px; cursor: pointer; }
    .buy-head button:hover { color: var(--ink); }
    .buy-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
    .buy-item-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--grad); color: #fff; font-size: 21px; }
    .buy-item > div { display: grid; gap: 2px; min-width: 0; }
    .buy-item b { color: var(--ink-strong); font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
    .buy-item small { color: var(--muted); font-size: 12.5px; }
    .buy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: 14px; font-weight: 600; }
    .buy-coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; }
    .buy-coupon label { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; margin: 0; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
    .buy-coupon label i { color: var(--primary); font-size: 16px; }
    .buy-coupon input { min-height: 42px; letter-spacing: .04em; }
    .buy-coupon a { color: var(--primary); font-size: 13px; font-weight: 700; white-space: nowrap; }
    .buy-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--border); font-size: 14px; }
    .buy-sum dt { color: var(--muted); }
    .buy-sum dd { margin: 0; color: var(--ink-strong); font-weight: 600; text-align: right; }
    .buy-sum .buy-total-label { align-self: center; color: var(--ink-strong); font-weight: 700; }
    .buy-sum .buy-total-label small { color: var(--muted); font-size: 12px; font-weight: 500; }
    .buy-sum .price { font-size: 22px; font-weight: 800; }
    .buy-low { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 9px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--warn) 12%, var(--card)); color: var(--text-2); font-size: 13px; line-height: 1.45; }
    .buy-low[hidden] { display: none; }
    .buy-low i { flex: none; margin-top: 1px; color: var(--warn); font-size: 17px; }
    .buy-low a { color: var(--primary); font-weight: 700; text-decoration: underline; }
    @media (max-width: 767px) {
        .buy-backdrop { align-items: flex-end; padding: 0; }
        .buy-backdrop .buy-sheet { max-width: none; max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); animation: buy-sheet-up .22s ease-out; }
    }
    @keyframes buy-sheet-up { from { transform: translateY(40px); opacity: .4; } }

    /* ========== 5. Blind bag (product-random) ========== */
    .bag-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); border-left: 4px solid var(--accent); }
    .bag-price-main { min-width: 0; }
    .bag-price-main small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
    .bag-price-main div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; }
    .bag-price-main .price { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
    .bag-price-main .price-old { font-size: 13px; }
    .bag-price-flash { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
    .bag-price-flash .flash-tag { padding: 4px 8px; font-size: 12px; }
    .bag-price-flash small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
    .bag-price-perk { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 6px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-size: 12px; font-weight: 700; }
    .bag-price-perk i { font-size: 15px; }
    .bag-stage { position: relative; overflow: hidden; margin-bottom: 16px; padding: 56px 12px 20px; border-radius: var(--radius); background: #1a1220; color: #e9d5ff; }
    .bag-stage-hero { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; filter: blur(2px); }
    .bag-stage-veil { position: absolute; inset: 0; background: radial-gradient(600px 340px at 50% 20%, rgba(255, 157, 0, .16), transparent); }
    .bag-stage > :not(.bag-stage-hero, .bag-stage-veil) { position: relative; }
    .bag-stage .bag-desc { position: absolute; top: 12px; right: 12px; z-index: 2; }
    .bag-stage .bag-sound { position: absolute; top: 12px; left: 12px; z-index: 2; }
    .bag-sound[aria-pressed="false"] { opacity: .7; }
    /* "Mô tả" popup: picture, name and price on top, then one row per description line (shop.partials.description-list). */
    .desc-modal { max-width: 460px; padding: 0 0 16px; overflow-x: hidden; }
    .desc-modal > .btn { width: calc(100% - 32px); margin: 14px 16px 0; }
    .desc-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px 44px 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
    .desc-head img, .desc-head-icon { flex: none; width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
    .desc-head-icon { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 26px; }
    .desc-head small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
    .desc-head h3 { display: block; margin: 2px 0; font-size: 15px; line-height: 1.3; }
    .desc-head .price { font-size: 14px; }
    .desc-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 20px; cursor: pointer; }
    .desc-x:hover { color: var(--ink); }
    .desc-list { display: grid; gap: 6px; margin: 0; padding: 14px 16px 0; list-style: none; }
    .desc-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
    .desc-ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--card); font-size: 15px; line-height: 1; }
    .desc-ico .bx { color: var(--ok-ink); font-size: 18px; }
    .desc-text { flex: 1; min-width: 0; padding-top: 4px; }
    .desc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
    .desc-tags span { padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 12px; font-weight: 600; }
    .bag-stage h2 { margin: 0; color: #fff; font-size: 24px; line-height: 1.15; text-align: center; }
    .bag-stage-sub { margin: 6px 0 20px; color: #c9b0e0; font-size: 13px; text-align: center; }
    /* The odds of the first field right above the bags, linking down to the full table (#ti-le). */
    .bag-odds { display: grid; gap: 8px; margin: -8px auto 18px; max-width: 560px; padding: 10px 12px; border: 1px solid rgba(253, 186, 116, .35); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); color: #e9d5ff; text-align: center; }
    .bag-odds b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #fdba74; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
    .bag-odds b i { font-size: 17px; }
    .bag-odds-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .bag-odds-list span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; font-weight: 600; }
    .bag-odds-list em { color: #fdba74; font-style: normal; }
    .bag-odds small { display: inline-flex; align-items: center; justify-content: center; gap: 2px; color: #c9b0e0; font-size: 12px; }
    .bag-odds:hover small { color: #fff; }
    .bags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .bag { position: relative; aspect-ratio: 296 / 164; padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm); overflow: hidden; background: rgba(255, 255, 255, .04); cursor: pointer; }
    .bag img, .bag-fill { width: 100%; height: 100%; object-fit: cover; }
    .bag-fill { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .75); font-size: 40px; background: radial-gradient(circle at 50% 40%, rgba(255, 122, 24, .35), transparent 70%); }
    .bag-num { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; background: linear-gradient(135deg, #ff7a18, #ff4d2d); color: #fff; font-size: 14px; font-weight: 600; }
    .bag-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 5, 12, .5); opacity: 0; transition: opacity .15s; }
    .bag:hover .bag-hover, .bag:focus-visible .bag-hover { opacity: 1; }
    .bag-cta { padding: 7px 14px; border-radius: 99px; background: linear-gradient(135deg, #ff7a18, #ff4d2d); color: #fff; font-size: 13px; font-weight: 600; }
    .bag:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .6; }
    .bag-stage-foot { margin-top: 18px; text-align: center; font-size: 14px; }
    .bag-stage-foot .price, .bag-stage-foot .bag-flash { color: #fdba74; }
    /* Sold out: the whole stage blurs behind a "Hết hàng" card; its button jumps to .bag-others, the bags that still have accounts. */
    .bag-stage.is-sold-out > :not(.bag-soldout) { filter: blur(5px); pointer-events: none; user-select: none; }
    .bag-stage .bag-soldout { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: rgba(8, 5, 12, .55); }
    .bag-soldout-card { display: grid; justify-items: center; gap: 4px; min-width: 190px; padding: 18px 26px 16px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); text-align: center; animation: bag-soldout-in .35s cubic-bezier(.2, 1.4, .4, 1) both; }
    .bag-soldout-card strong { color: var(--bad); font-size: 26px; font-weight: 800; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; }
    .bag-soldout-card span { color: var(--paper-muted); font-size: 13px; font-weight: 600; }
    .bag-soldout-card .btn { margin-top: 10px; }
    .bag-soldout-card .btn i { margin-left: 2px; font-size: 18px; }
    @keyframes bag-soldout-in { from { opacity: 0; transform: scale(.85); } }
    @media (prefers-reduced-motion: reduce) { .bag-soldout-card { animation: none; } }
    /* Opening a bag (partials/bag-burst): the cover shakes harder and its cracks glow under a bold "Đang mở túi..."; .is-burst splits it
       into four shards over a flash and sparks. .bag-opening holds it while the purchase is sent and, once it is bought (.is-revealed),
       bursts in place with no restart: the shake, rays and text keep running and the success box pops in after. .buy-reveal.is-bag
       replays it behind the box on the next page when the bag page could not take the answer itself. */
    .bag-opening { z-index: 2100; background: rgba(8, 5, 12, .92); }
    .bag-burst { display: grid; justify-items: center; gap: 26px; width: min(80vw, 340px); pointer-events: none; }
    .bag-burst-cover { position: relative; width: 100%; aspect-ratio: 296 / 164; animation: bag-shake .9s ease-in infinite; }
    .bag-burst-cover::before { content: ""; position: absolute; inset: -45%; z-index: -1; background: repeating-conic-gradient(color-mix(in srgb, var(--amber-500) 26%, transparent) 0 6deg, transparent 6deg 24deg); -webkit-mask: radial-gradient(closest-side, #000 35%, transparent); mask: radial-gradient(closest-side, #000 35%, transparent); animation: bag-rays 8s linear infinite; }
    .bag-shard { position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--grad) center / cover no-repeat; color: #fff; font-size: 64px; }
    .bag-shard.is-tl { clip-path: polygon(0 0, 55% 0, 46% 24%, 50% 50%, 24% 44%, 0 55%); --dx: -80px; --dy: -70px; --r: -28deg; }
    .bag-shard.is-tr { clip-path: polygon(55% 0, 100% 0, 100% 45%, 76% 54%, 50% 50%, 46% 24%); --dx: 85px; --dy: -60px; --r: 24deg; }
    .bag-shard.is-br { clip-path: polygon(100% 45%, 100% 100%, 42% 100%, 56% 76%, 50% 50%, 76% 54%); --dx: 80px; --dy: 80px; --r: 30deg; }
    .bag-shard.is-bl { clip-path: polygon(0 55%, 24% 44%, 50% 50%, 56% 76%, 42% 100%, 0 100%); --dx: -85px; --dy: 75px; --r: -22deg; }
    .bag-cracks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px var(--amber-500)); }
    .bag-cracks polyline { vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: bag-crack 2.4s .4s ease-out forwards; }
    .bag-burst-flash { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(closest-side, #fff, color-mix(in srgb, var(--amber-500) 60%, transparent) 45%, transparent); opacity: 0; }
    .bag-spark { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--amber-500); opacity: 0; }
    .bag-spark:nth-child(even) { background: #fff; }
    .bag-burst-text { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 0 16px var(--amber-500), 0 2px 6px rgba(0, 0, 0, .6); animation: bag-text 1s ease-in-out infinite; }
    .is-burst .bag-burst-cover { animation: bag-shake .9s ease-in; }
    .is-burst .bag-cracks { animation: bag-gone .15s .9s forwards; }
    .is-burst .bag-shard { animation: bag-shard .75s .9s cubic-bezier(.2, .7, .3, 1) forwards; }
    .is-burst .bag-burst-flash { animation: bag-flash .8s .85s ease-out forwards; }
    .is-burst .bag-spark { animation: bag-spark .85s .9s ease-out forwards; }
    .is-burst .bag-burst-text { animation: bag-text .45s ease-in-out 2, bag-gone .2s .9s forwards; }
    .is-burst .bag-burst-cover::before { animation: bag-rays 8s linear infinite, bag-gone .4s 1.3s forwards; }
    .buy-reveal .is-burst .bag-cracks polyline { animation-duration: .55s; animation-delay: .25s; }
    .bag-opening.is-revealed .bag-burst-cover { animation: bag-shake .9s ease-in infinite; }
    .bag-opening.is-revealed .bag-burst-text { animation: bag-text 1s ease-in-out infinite, bag-gone .2s .9s forwards; }
    .buy-reveal.is-bag, .bag-opening.is-revealed { --reveal-delay: 1.3s; background: rgba(8, 5, 12, .92); animation: none; }
    .buy-reveal .bag-burst, .bag-opening.is-revealed .bag-burst { position: absolute; top: 50%; left: 50%; translate: -50% -50%; }
    .buy-reveal .modal, .bag-opening.is-revealed .modal { position: relative; z-index: 1; }
    @keyframes bag-shake {
        0%, 100% { transform: none; }
        10% { transform: rotate(-1.5deg); }
        20% { transform: rotate(1.5deg); }
        30% { transform: translateX(-2px) rotate(-2.5deg); }
        40% { transform: translateX(2px) rotate(2.5deg); }
        50% { transform: translateX(-3px) rotate(-3.5deg) scale(1.02); }
        60% { transform: translateX(3px) rotate(3.5deg) scale(1.02); }
        70% { transform: translateX(-4px) rotate(-4.5deg) scale(1.04); }
        80% { transform: translateX(4px) rotate(4.5deg) scale(1.05); }
        90% { transform: rotate(-2deg) scale(1.06); }
    }
    @keyframes bag-rays { to { rotate: 1turn; } }
    @keyframes bag-crack { to { stroke-dashoffset: 0; } }
    @keyframes bag-shard { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.9); opacity: 0; } }
    @keyframes bag-flash { 30% { opacity: 1; transform: scale(1); } from { transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }
    @keyframes bag-spark { from { opacity: 1; transform: rotate(calc(var(--i) * 30deg)) translateY(0); } to { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(-170px) scale(.4); } }
    @keyframes bag-text { 50% { opacity: .7; transform: scale(.97); } }
    @keyframes bag-gone { to { opacity: 0; } }
    @media (prefers-reduced-motion: reduce) {
        .bag-burst-cover, .bag-burst-cover::before, .bag-burst-text, .bag-cracks polyline { animation: none; }
        .bag-cracks polyline { stroke-dashoffset: 0; }
        .buy-reveal .bag-burst, .bag-opening.is-revealed .bag-burst { display: none; }
    }
    .odds-field { margin-bottom: 10px; }
    .odds-row { display: grid; grid-template-columns: 96px 1fr 72px; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; font-weight: 500; }
    .odds-row .progress { height: 10px; }

    /* ========== 6. Service order ========== */
    .pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
    /* Pickable tiles (amounts here, card types in § 7): a quiet tile, tinted by --brand when picked, with a round check. */
    .pkg, .telco { --pick: var(--brand, var(--primary)); border: 1px solid var(--panel-border); border-radius: 12px; background: var(--tile-bg); box-shadow: var(--tile-shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
    .pkg:hover, .telco:hover { border-color: color-mix(in srgb, var(--pick) 45%, var(--panel-border)); transform: translateY(-1px); }
    .pkg:has(input:checked), .telco:has(input:checked) { border-color: var(--pick); background: radial-gradient(130px 70px at 100% 0%, color-mix(in srgb, var(--pick) 14%, transparent), transparent 70%), color-mix(in srgb, var(--pick) 5%, var(--card)); box-shadow: 0 0 0 1px var(--pick), 0 8px 18px -10px color-mix(in srgb, var(--pick) 70%, transparent); }
    .pkg:has(input:checked)::after, .telco:has(input:checked)::after { content: ''; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--check-mark) center / 12px no-repeat, var(--pick); box-shadow: 0 2px 6px color-mix(in srgb, var(--pick) 40%, transparent); }
    .pkg { position: relative; display: block; margin: 0; overflow: hidden; font-weight: 400; cursor: pointer; }
    .pkg input { position: absolute; opacity: 0; pointer-events: none; }
    .pkg:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
    .pkg-media { aspect-ratio: 16 / 9; background: var(--surface-2); }
    .pkg-media img { width: 100%; height: 100%; object-fit: cover; }
    .pkg-media .media-placeholder { padding: 8px; font-size: 18px; }
    .pkg-media .media-placeholder > span { display: none; }
    .pkg-name { margin: 6px 0; padding: 4px 10px; border-block: 1px dashed var(--border); font-size: 12.5px; font-weight: 600; color: var(--ink); }
    .pkg-price { margin: 0 0 8px; padding: 0 10px; font-size: 13.5px; }
    /* Many packages: a sticky finder (search + group tabs) over compact rows of small picture, name and price; without groups only the first 12 show until "Xem thêm". */
    .pkg[hidden] { display: none; }
    .pkg-finder { position: sticky; top: var(--sticky-top); z-index: 6; display: grid; gap: 8px; margin: 0 -12px 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
    .pkg-finder-title { display: none; }
    .pkg-finder-head:not(:has(.pkg-search)) { display: none; }
    .pkg-search { position: relative; display: block; }
    .pkg-search > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); pointer-events: none; }
    .pkg-search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 1px solid var(--field-border); border-radius: 999px; background: var(--input-bg); color: var(--text); font: inherit; font-size: 14px; }
    .pkg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
    .pkg-tabs::-webkit-scrollbar { display: none; }
    .pkg-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
    .pkg-tabs button > i { margin-right: -2px; font-size: 16px; }
    .pkg-tabs button span { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; line-height: 18px; text-align: center; }
    .pkg-tabs button:hover { border-color: var(--primary); color: var(--primary); }
    .pkg-tabs button.on { border-color: transparent; background: var(--grad); color: #fff; }
    .pkg-tabs button.on span { background: rgb(255 255 255 / .22); color: #fff; }
    .pkg-grid.is-list { grid-template-columns: 1fr; gap: 6px; }
    .is-list .pkg { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-content: center; column-gap: 10px; min-height: 66px; padding: 6px 32px 6px 6px; }
    .is-list .pkg-media, .is-list .pkg-coin { grid-row: 1 / 3; align-self: center; border-radius: 8px; overflow: hidden; }
    .is-list .pkg-coin { height: auto; aspect-ratio: 16 / 9; border-bottom: 0; }
    .is-list .pkg-coin-stack { margin-top: 0; }
    .is-list .pkg-coin svg, .is-list .pkg-coin svg:nth-child(2) { width: 22px; height: 22px; margin-bottom: 0; }
    .is-list .pkg-coin svg + svg { margin-left: -8px; }
    .is-list .pkg-coin > b { display: none; }
    .is-list .pkg-name { align-self: end; margin: 0; padding: 0; border: 0; font-size: 13px; line-height: 1.35; }
    .is-list .pkg-price { align-self: start; margin: 3px 0 0; padding: 0; }
    .is-list .tile-badge { top: 3px; left: 3px; padding: 1px 4px; font-size: 9px; }
    .is-folded:not(.is-searching) .pkg:nth-child(n+13):not(:has(input:checked)) { display: none; }
    .pkg-more { width: 100%; margin: -8px 0 16px; }
    .pkg-grid + .empty { margin: -8px 0 16px; }
    /* Service page in the game top-up layout (§ 7 .gt-*): the checkout (picked packages, total, pay button) is its own card heading the side column, kept on screen on PC; the shop's notice as tiles with an icon. */
    .svc-layout .pkg-grid { margin-bottom: 0; }
    .svc-layout .pkg-more, .svc-layout .pkg-grid + .empty { margin: 10px 0 0; }
    .svc-layout .pkg:has(input:checked)::after { content: none; }
    .svc-layout .pkg-price { padding-right: 42px; }
    .svc-layout .is-list .pkg { padding-right: 44px; }
    .svc-layout .is-list .pkg-price { padding-right: 0; }
    .svc-layout .is-list .pkg-pick { top: 50%; bottom: auto; transform: translateY(-50%); }
    .svc-layout .is-list .pkg:has(input:checked) .pkg-pick { transform: translateY(-50%) scale(1.06); }
    .svc-cart { padding: 4px 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; font-weight: 500; }
    .svc-cart > span { display: block; padding: 5px 0; }
    .svc-cart div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--ink); }
    .svc-cart div + div { border-top: 1px dashed var(--border); }
    .svc-cart b { flex: none; color: var(--accent); }
    .svc-layout .pkg-media:has(> .media-placeholder:not([hidden])) { aspect-ratio: 5 / 2; }
    .svc-checkout-label { margin: 0 0 6px; color: var(--text-2); font-size: 13px; font-weight: 600; }
    .svc-robux-chips { margin-top: 10px; }
    .svc-robux-chips button { display: grid; gap: 2px; }
    .svc-robux-chips small { color: var(--primary-strong); font-size: 12px; font-weight: 600; }
    .gt-checkout .svc-cart { margin-bottom: 10px; }
    .is-bump { display: inline-block; animation: price-bump .4s ease-out; }
    @keyframes price-bump { 35% { transform: scale(1.14); } }
    @media (prefers-reduced-motion: reduce) { .is-bump { animation: none; } }
    .notice-tips { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
    .notice-tips li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 13px; line-height: 1.4; }
    .notice-tips i { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 17px; }
    .gt-steps .notice-tips { margin: 12px 0 0; }
    .boost-box { margin: 4px 0 16px; padding: 14px; border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--border)); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--warn) 12%, var(--card)), var(--card)); }
    .boost-box h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
    .boost-box h3 > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--boost-grad); color: #fff; font-size: 18px; box-shadow: 0 6px 14px rgb(249 115 22 / .3); }
    .boost-box p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
    .boost-box .boost-place { color: var(--warn-ink); font-weight: 700; }

    /* ========== 7. Buy panel: card shop, game top-up ========== */
    .buy-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 12px; }
    .buy-perks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
    .buy-perks i { margin-right: 4px; color: var(--primary); font-size: 16px; vertical-align: -3px; }
    /* Rules of the card shop: a red "Cấm" box, a yellow "Lưu ý" box (both set in admin) and the link to the purchase history. */
    .buy-legal { display: grid; gap: 8px; margin-bottom: 16px; }
    .buy-legal-box { --tone: var(--warn); display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); border-left-width: 4px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 9%, var(--card)); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
    .buy-legal-box.is-ban { --tone: var(--bad); }
    .buy-legal-box > b { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--tone); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 4px 10px color-mix(in srgb, var(--tone) 30%, transparent); }
    .buy-legal-box > b > i { font-size: 15px; }
    .buy-legal-box.is-ban > span { font-weight: 700; color: var(--bad-ink); }
    .buy-legal-link { display: flex; align-items: center; gap: 6px; padding: 2px 4px; font-size: 13.5px; color: var(--text); }
    .buy-legal-link > i:first-child { color: var(--primary); font-size: 17px; }
    .buy-legal-link b { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
    .buy-legal-link > i:last-child { color: var(--primary); transition: transform .15s; }
    .buy-legal-link:hover > i:last-child { transform: translateX(3px); }
    .buy-wallet { display: flex; align-items: center; gap: 10px; }
    .buy-wallet small { display: block; color: var(--muted); font-size: 12px; }
    .buy-wallet b { font-size: 17px; color: var(--accent); }
    .buy-layout { display: grid; gap: 12px; align-items: start; margin-bottom: 20px; }
    .buy-layout > .card { margin: 0; }
    .buy-step { padding: 14px 12px; }
    .buy-step + .buy-step { border-top: 1px solid var(--line); }
    .buy-step h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; font-size: 15px; color: var(--ink); }
    .buy-step h3 > span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; }
    .buy-step h3 small { color: var(--muted); font-size: 12px; font-weight: 400; }
    .buy-step .pkg-grid { margin: 0; }
    .buy-guide { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13px; }
    .buy-guide b { display: block; margin-bottom: 4px; color: var(--ink); }
    .buy-guide ol { margin: 0; padding-left: 18px; }
    .buy-guide code { padding: 1px 5px; border-radius: 4px; background: var(--info-soft); color: var(--info-ink); }
    .buy-summary h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 16px; color: var(--ink); }
    .buy-summary h3 > i { color: var(--primary); font-size: 19px; }
    .buy-summary h3 .link-btn { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
    .buy-cart-empty { margin: 0 0 10px; padding: 14px 10px; border: 1px dashed var(--border); border-radius: var(--radius-sm); text-align: center; color: var(--muted); font-size: 13px; }
    .buy-lines { margin: 0 0 8px; padding: 0; list-style: none; }
    .buy-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; padding: 8px 0; }
    .buy-line + .buy-line { border-top: 1px dashed var(--line); }
    .buy-line-name { min-width: 0; font-size: 14px; }
    .buy-line-name b { display: block; color: var(--ink); }
    .buy-line-name small { color: var(--muted); font-size: 12px; }
    .buy-line .icon-btn { width: 30px; height: 30px; border: 0; font-size: 18px; }
    .buy-line-total { text-align: right; color: var(--accent); }
    .buy-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
    .buy-row > span:first-child { color: var(--muted); }
    .buy-row > b { text-align: right; }
    .buy-total-row { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border); }
    .buy-total { font-size: 22px; font-weight: 700; color: var(--accent); }
    .buy-warn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 8px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad-ink); font-size: 13px; }
    .buy-rules { margin: 12px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
    .buy-rules li + li { margin-top: 3px; }
    .buy-recent { margin: 0; padding: 0 16px; list-style: none; font-size: 14px; }
    .buy-recent li { display: grid; gap: 4px; padding: 10px 0; }
    .buy-recent li + li { border-top: 1px solid var(--line); }
    .buy-recent-side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13px; }
    .brand-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--brand); vertical-align: 1px; }
    .telco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .telco { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 44px; margin: 0; padding: 6px 4px; text-align: center; font-weight: 400; cursor: pointer; }
    .telco input { position: absolute; opacity: 0; pointer-events: none; }
    .telco:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
    .telco:has(input:checked)::after { top: -6px; right: -6px; z-index: 1; width: 18px; height: 18px; background-size: 12px; box-shadow: 0 0 0 2px var(--card); }
    /* Same visual area for every logo: height shrinks as the logo gets wider (--ar = width ÷ height, set by <x-shop.telco-logo>). */
    .telco .telco-logo { width: auto; max-width: 88%; height: min(26px, calc(34px / sqrt(var(--ar, 3)))); object-fit: contain; }
    /* Drawn logo until staff upload one: a brand-coloured badge with the name as the brand writes it. */
    .telco-mark { display: inline-flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; height: 28px; padding: 0 10px; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #000)); color: #fff; font-family: var(--font-wordmark); font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1; white-space: nowrap; box-shadow: 0 3px 8px color-mix(in srgb, var(--brand) 30%, transparent); }
    .telco-mark i { flex: none; font-size: 14px; opacity: .85; }
    .telco-mark.is-long { padding: 0 7px; font-size: 11px; }
    /* Inside a pick tile the mark reads as a wordmark: brand-coloured name on the white tile, lower-case for phone networks like their logos. */
    .telco .telco-mark { display: flex; width: 100%; height: 34px; margin: 0; padding: 0 4px; border-radius: 7px; background: none; box-shadow: none; color: var(--brand); font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
    .telco .telco-mark.is-long { font-size: 13px; }
    .telco .telco-mark.is-phone { text-transform: lowercase; }
    .telco .telco-mark i { display: none; }
    .telco small { color: var(--muted); font-size: 11px; font-weight: 600; }
    .telco:has(input:checked) small { color: var(--ok-ink); }
    .telco-count { position: absolute; top: -7px; left: -7px; z-index: 1; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pick); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 20px; box-shadow: 0 0 0 2px var(--card); }
    .telco-grid-wide .telco { min-height: 54px; }
    .pkg-body { display: block; padding: 12px 8px 12px; text-align: center; }
    .pkg-body b { display: block; margin-bottom: 3px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
    .pkg:has(input:checked) .pkg-body b { color: color-mix(in srgb, var(--pick) 70%, var(--ink)); }
    .pkg-body .price, .pkg-body .price-old { display: block; }
    .pkg-body em { display: block; margin-top: 2px; color: var(--warn-ink); font-size: 11.5px; font-style: normal; font-weight: 600; }
    .pkg:has(.pkg-off):not(:has(.pkg-media, .pkg-coin)) .pkg-body { padding-top: 30px; }
    .pkg-off { position: absolute; top: 7px; left: 7px; z-index: 1; padding: 1px 7px; border: 1px solid color-mix(in srgb, var(--ok) 32%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, var(--card)); color: var(--ok-ink); font-size: 11px; font-style: normal; font-weight: 700; line-height: 16px; }

    /* ========== 8. Game top-up: list (game-topups.index) and game page (game-topups.show) ========== */
    /* Game search beside the "Nạp game" heading. */
    .gt-search { flex: 0 1 230px; }
    .gt-search input { border-color: var(--border); background: var(--card); color: var(--ink); }

    /* Game cards: icon with the discount pinned on it, name, one line, a "Nạp ngay" pill. */
    .gt-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .gt-game { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 12px 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--ink); text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s; }
    .gt-game[hidden] { display: none; }
    .gt-game:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-pop); }
    .gt-game-icon { position: relative; display: grid; place-items: center; width: 100%; max-width: 84px; aspect-ratio: 1; border-radius: 22%; background: var(--surface-2); box-shadow: 0 6px 16px rgba(20, 10, 40, .16); }
    .gt-game-icon > img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
    .gt-game-letter { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; background: var(--grad); color: #fff; font-size: 30px; font-weight: 800; }
    .gt-game-icon.is-telco { padding: 8px; background: color-mix(in srgb, var(--brand) 10%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }
    .gt-game-icon.is-telco .telco-logo { width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
    .gt-game-icon.is-telco .telco-mark { height: 36px; padding: 0 8px; border-radius: 10px; font-size: 13px; }
    .gt-game-icon.is-telco .telco-mark i { display: none; }
    .gt-game-icon.is-telco .telco-mark.is-long { font-size: 10px; }
    .gt-game-off { position: absolute; top: -6px; right: -8px; padding: 2px 6px; border: 2px solid var(--card); border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 1.3; }
    .gt-game-name { display: -webkit-box; margin-top: 10px; overflow: hidden; font-size: 13px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .gt-game-sub { width: 100%; margin: 2px 0 8px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
    .gt-game-cta { margin-top: auto; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 12px; font-weight: 700; transition: background .15s, color .15s; }
    .gt-game:hover .gt-game-cta { background: var(--primary); color: #fff; }

    /* Game page: the order form as label + control rows, price table and help on the side. */
    .gt-layout { display: grid; gap: 12px; align-items: start; margin-bottom: 20px; }
    .gt-layout > .card, .gt-side > .card { margin: 0; }
    .gt-form { padding: 14px 12px; }
    .gt-form-title { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 16px; color: var(--ink-strong); }
    .gt-form-title i, .gt-side h3 i { color: var(--primary); font-size: 19px; }
    .gt-notice { margin: 10px 0 0; }
    .gt-row { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
    .gt-form-title + .gt-row, .gt-notice + .gt-row { border-top: 0; }
    /* Numbered steps (account, package, payment) like VNG's shop: a round number, the title, a help link on the right. */
    .gt-row + .gt-step, .gt-notice + .gt-step, .gt-step + .gt-step { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
    .gt-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px; }
    .gt-step-head h2 { flex: 1; margin: 0; color: var(--ink-strong); font-size: 16px; font-weight: 700; }
    .gt-step-head small { flex-basis: 100%; padding-left: 38px; color: var(--muted); font-size: 12px; }
    .gt-step-no { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 14px; font-weight: 800; box-shadow: var(--glow); }
    .gt-step-help { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
    .gt-step-help:hover { background: var(--primary); color: #fff; text-decoration: none; }
    .gt-step-head + .gt-row { padding-top: 0; border-top: 0; }
    .gt-code-tip { margin-top: 0; }
    /* Service that asks for a password: points first to the one that does the same without it. */
    .svc-safer { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ok-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 35%, transparent); color: var(--text); text-decoration: none; transition: box-shadow .15s, transform .15s; }
    .svc-safer:hover { box-shadow: inset 0 0 0 1px var(--ok); text-decoration: none; }
    .svc-safer:active { transform: scale(.99); }
    .svc-safer-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 18px; }
    .svc-safer > span:nth-child(2) { flex: 1; min-width: 0; }
    .svc-safer b { display: block; color: var(--ok-ink); font-size: 14px; }
    .svc-safer small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.4; }
    .svc-safer strong { color: var(--ink-strong); }
    .svc-safer > .bx-chevron-right { flex: none; color: var(--ok-ink); font-size: 22px; }
    .gt-label { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
    .gt-label small { color: var(--muted); font-size: 12px; font-weight: 400; }
    .gt-control { min-width: 0; }
    .gt-control .hint { margin-top: 4px; }
    /* Product picker: one card per product of the game (image, name, how it is topped up, best discount). */
    .gt-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
    .gt-product { position: relative; display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s, box-shadow .15s; }
    .gt-product:hover { border-color: var(--primary); text-decoration: none; }
    .gt-product.is-active { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
    .gt-product.is-active::after { content: "✓"; position: absolute; right: -1px; bottom: -1px; width: 20px; height: 17px; border-radius: 9px 0 var(--radius-sm) 0; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
    .gt-product-img { display: grid; flex: none; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 11px; background: var(--grad); color: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 3px 8px rgba(20, 10, 40, .14); }
    .gt-product-img img { width: 100%; height: 100%; object-fit: cover; }
    .gt-product-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .gt-product-main b { display: -webkit-box; overflow: hidden; color: var(--ink-strong); font-size: 13.5px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .gt-product-main small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11.5px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .gt-product-tag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 3px; color: var(--text-2); font-size: 11.5px; font-weight: 600; }
    .gt-product-tag i { color: var(--primary); font-size: 14px; }
    .gt-product-tag i + img { margin-left: 4px; }
    .gt-product-tag img { width: 18px; height: 18px; padding: 1px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px rgb(15 23 42 / .08); }
    .gt-product-off { position: absolute; top: -7px; right: -5px; padding: 1px 6px; border: 2px solid var(--card); border-radius: 999px; background: var(--bad); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 1.3; }
    .gt-pkgs { margin: 0; }
    /* Game packages: a round + that turns into a tick when picked, name and price on the left; Robux packages get a coin banner (more coins for bigger packs), the price per Robux and "Lợi nhất" on the cheapest per Robux. */
    .gt-pkgs .pkg { display: flex; flex-direction: column; }
    .gt-pkgs .pkg:has(input:checked)::after { content: none; }
    .gt-pkgs .pkg-body { flex: 1; padding: 10px 40px 12px 12px; text-align: left; }
    .gt-pkgs .pkg-body b { font-size: 15px; }
    .pkg-rate { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
    .pkg-pick { position: absolute; right: 9px; bottom: 10px; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid color-mix(in srgb, var(--pick) 40%, var(--border)); border-radius: 50%; background: var(--card); color: var(--pick); font-size: 16px; transition: background .15s, border-color .15s, color .15s, transform .15s; }
    .pkg-pick .bx-check, .pkg:has(input:checked) .pkg-pick .bx-plus { display: none; }
    .pkg:has(input:checked) .pkg-pick .bx-check { display: inline-block; }
    .pkg:hover .pkg-pick { border-color: var(--pick); }
    .pkg:has(input:checked) .pkg-pick { border-color: var(--pick); background: var(--pick); color: #fff; transform: scale(1.06); box-shadow: 0 4px 10px color-mix(in srgb, var(--pick) 40%, transparent); }
    .pkg-coin { position: relative; display: grid; place-items: center; height: 88px; border-bottom: 1px dashed var(--border); background: radial-gradient(74px 48px at 50% 42%, color-mix(in srgb, var(--coin) 30%, transparent), transparent 75%), linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, var(--surface-2)), var(--surface-2)); transition: background .2s; }
    .pkg:has(input:checked) .pkg-coin { background: radial-gradient(80px 52px at 50% 42%, color-mix(in srgb, var(--coin) 45%, transparent), transparent 75%), linear-gradient(180deg, color-mix(in srgb, var(--pick) 14%, var(--surface-2)), color-mix(in srgb, var(--pick) 5%, var(--surface-2))); }
    .pkg-coin-stack { display: flex; align-items: flex-end; margin-top: -16px; }
    .pkg-coin svg { width: 36px; height: 36px; filter: drop-shadow(0 3px 4px color-mix(in srgb, var(--coin-deep) 35%, transparent)); transition: transform .2s ease; }
    .pkg-coin svg + svg { margin-left: -14px; }
    .pkg-coin svg:nth-child(2) { position: relative; z-index: 1; width: 44px; height: 44px; margin-bottom: 5px; }
    .pkg:hover .pkg-coin svg, .pkg:has(input:checked) .pkg-coin svg { transform: translateY(-3px); }
    .pkg-coin > b { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); padding: 1px 10px; border-radius: 999px; background: var(--card); box-shadow: 0 2px 6px rgba(15, 23, 42, .12); color: var(--ink-strong); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .pkg-best { position: absolute; top: 7px; right: 7px; z-index: 1; padding: 1px 7px; border-radius: 999px; background: var(--boost-grad); box-shadow: 0 3px 8px rgb(249 115 22 / .3); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 16px; }
    .pkg-popular { position: absolute; top: 0; left: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 2px 10px 3px; border-radius: 0 0 10px 10px; background: var(--boost-grad); box-shadow: 0 4px 10px color-mix(in srgb, var(--warn) 35%, transparent); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; line-height: 15px; letter-spacing: .2px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
    .pkg-popular.is-top { background: var(--popular-grad); }
    .pkg-popular i { font-size: 12px; transform-origin: 50% 90%; animation: popular-flame 1.6s ease-in-out infinite; }
    .pkg.is-popular:not(:has(input:checked)) { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
    .pkg.is-popular :is(.tile-badge, .pkg-off, .pkg-best) { top: 25px; }
    .pkg.is-popular:not(:has(.pkg-media, .pkg-coin)) .pkg-body { padding-top: 26px; }
    .pkg.is-popular:has(.pkg-off):not(:has(.pkg-media, .pkg-coin)) .pkg-body { padding-top: 48px; }
    @keyframes popular-flame { 50% { transform: scale(1.18) rotate(-6deg); } }
    @media (prefers-reduced-motion: reduce) { .pkg-popular i { animation: none; } }
    .gt-coin-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
    .gt-coin-light { stop-color: var(--coin-light); }
    .gt-coin-deep { stop-color: var(--coin); }
    .gt-coin-line { stroke: var(--coin-deep); }
    .gt-coin-core, .gt-coin-shade { fill: var(--coin-deep); }
    .gt-coin-face { fill: var(--coin); }
    .gt-coin-shine { fill: var(--coin-light); }
    .gt-coin-spark { fill: #fff; }
    .gt-coin-gloss { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: 2; stroke-linecap: round; }
    .pkg-coin.is-diamond { --coin-light: var(--gem-light); --coin: var(--gem); --coin-deep: var(--gem-deep); }
    .pkg-coin.is-honor { --coin-light: var(--honor-light); --coin: var(--honor); --coin-deep: var(--honor-deep); }
    .pkg-coin.is-fv { --coin-light: var(--fv-light); --coin: var(--fv); --coin-deep: var(--fv-deep); }
    .gt-control textarea { min-height: 72px; }
    .gt-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
    .gt-saved small { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; }
    .gt-saved button { max-width: 100%; padding: 4px 10px; overflow: hidden; border: 1px dashed var(--primary); border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
    .gt-saved button:hover { border-style: solid; }
    /* "Cách đăng nhập": brand chips (Garena, Facebook, Google...) the customer must pick one of; also used on the service order page. */
    .login-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
    .login-opt { --brand: var(--primary); position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 6px 9px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
    .login-opt.is-garena { --brand: #e3262e; }
    .login-opt.is-facebook { --brand: #1877f2; }
    .login-opt.is-google { --brand: #4285f4; }
    .login-opt.is-vk { --brand: #0077ff; }
    .login-opt.is-apple, .login-opt.is-x { --brand: var(--ink-strong); }
    .login-opt input { position: absolute; opacity: 0; pointer-events: none; }
    .login-mark { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / .12), inset 0 0 0 1px rgb(15 23 42 / .06); color: var(--brand); font-size: 18px; font-weight: 800; }
    .login-mark img { display: block; width: 26px; height: 26px; }
    .login-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .login-opt:hover { border-color: var(--brand); }
    .login-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--card)); box-shadow: inset 0 0 0 1px var(--brand); color: var(--ink-strong); }
    .login-opt:has(input:checked)::after { content: "✓"; position: absolute; top: -1px; right: -1px; width: 20px; height: 17px; border-radius: 0 var(--radius-sm) 0 9px; background: var(--brand); color: var(--card); font-size: 11px; font-weight: 700; line-height: 17px; }
    .login-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
    .login-pick + .hint { margin-top: 6px; }
    /* "Theo số tiền nạp": a big amount field with đ suffix, one-tap amounts, and the limits that turn red when broken. */
    .gt-amount { position: relative; }
    .gt-amount input { padding-right: 34px; font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-strong); }
    .gt-amount span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
    .gt-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; }
    .gt-chips button { padding: 8px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
    .gt-chips button:hover { border-color: var(--primary); }
    .gt-chips button.is-on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); box-shadow: inset 0 0 0 1px var(--primary); }
    .gt-limits { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
    .gt-limits b { color: var(--bad); }
    .gt-limits.is-bad { color: var(--bad); font-weight: 600; }
    /* Padding grows the tap area to a finger's size; the negative margin keeps the line where it was. */
    .gt-hunt { display: inline-flex; align-items: center; gap: 4px; margin: -7px 0; padding: 7px 0; color: var(--primary); }
    /* Live coupon check under the code field (CouponQuote): checking, the discount it gives, or why it does not apply. */
    .coupon-note { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 2px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; line-height: 1.4; animation: ui-confirm-rise .2s ease-out; }
    .coupon-note[hidden] { display: none; }
    .coupon-note i { flex: none; margin-top: 1px; font-size: 16px; }
    .coupon-note.is-checking, .coupon-note.is-wait { background: var(--surface-2); color: var(--text-2); }
    .coupon-note.is-ok { background: var(--ok-soft); color: var(--ok-ink); }
    .coupon-note.is-error { background: var(--bad-soft); color: var(--bad-ink); }
    .coupon-note.is-shake { animation: coupon-shake .4s ease-in-out; }
    @keyframes coupon-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
    .coupon-rules { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
    .buy-coupon .coupon-note, .buy-coupon .coupon-rules { grid-column: 1 / -1; margin: 0; }
    .gt-sum { margin-top: 4px; padding: 2px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
    .gt-sum .gt-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 9px 0; border-top: 1px dashed var(--border); }
    .gt-sum .gt-row:first-child { border-top: 0; }
    .gt-sum .gt-row[hidden] { display: none; }
    .gt-sum .gt-label { font-weight: 500; color: var(--text-2); }
    .gt-sum .qty input:disabled { opacity: .55; }
    .gt-discount { color: var(--ok-ink); text-align: right; }
    .gt-total { color: var(--accent); font-size: 22px; font-weight: 800; }
    .gt-boost { margin: 12px 0 0; }
    .gt-method { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border: 2px solid var(--primary); border-radius: var(--radius-sm); background: var(--primary-soft); }
    .gt-method > i { flex: none; color: var(--primary); font-size: 26px; }
    .gt-method > span { flex: 1; min-width: 0; }
    .gt-method b { color: var(--ink); }
    .gt-method small { display: block; color: var(--muted); font-size: 12px; }
    .gt-method small b { color: var(--accent); }
    .gt-after { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
    .gt-submit { margin-top: 12px; }
    .gt-rules { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
    .gt-rules li + li { margin-top: 3px; }
    /* The checkout card (step "Thanh toán") of the service, game and gift card pages: totals, wallet, pay button, rules. */
    .gt-checkout { padding: 14px 12px; }
    .gt-checkout .gt-method { margin-top: 12px; }
    .gt-checkout .gt-rules { margin-top: 12px; }
    .gt-side { display: grid; gap: 12px; }
    .gt-side h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
    .gt-price-table { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
    .gt-price-head, .gt-price-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 10px; }
    .gt-price-head { background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
    .gt-price-line { margin: 0; border-top: 1px solid var(--line); font-weight: 400; cursor: pointer; transition: background .15s; }
    .gt-price-line:hover { background: var(--surface-2); }
    .gt-price-line b { color: var(--accent); text-align: right; }
    a.gt-price-line { color: var(--ink); text-decoration: none; }
    .gt-others .gt-price-head, .gt-others .gt-price-line { grid-template-columns: minmax(0, 1fr) auto; }
    /* No package has a list price: no empty "Giá gốc" column. */
    .gt-others .gt-price-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gt-others .gt-price-line b { color: var(--ok-ink); }
    .gt-others .gt-price-line small { color: var(--muted); }
    .gt-others { padding: 14px 12px; }
    .gt-guide { position: relative; display: block; margin-bottom: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); }
    .gt-guide img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: var(--surface-2); }
    .gt-guide span { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 11.5px; }
    /* Phone pay bar (game top-up, Gift Card, service order): total and the next step pinned above the bottom menu while the form's own button is off screen. */
    .gt-paybar { position: fixed; left: 8px; right: 8px; bottom: calc(var(--bottom-nav-h) + 8px + env(safe-area-inset-bottom)); z-index: 1450; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow-pop); animation: notice-in .2s ease-out; }
    .gt-paybar[hidden] { display: none; }
    .gt-paybar > span { flex: 1; min-width: 0; }
    .gt-paybar small { display: block; overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
    .gt-paybar b { color: var(--accent); font-size: 18px; font-weight: 800; }
    .gt-paybar .btn { flex: none; min-width: 118px; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); }
    .has-paybar .chat-fab, .has-paybar .support-fab { transform: translateY(-68px); transition: transform .2s; }
    .has-paybar .gift-float { opacity: 0; visibility: hidden; pointer-events: none; }
    .gt-steps { padding: 14px 12px; }
    .gt-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: gt-step; font-size: 13px; }
    .gt-steps ol > li { position: relative; padding: 0 0 14px 34px; counter-increment: gt-step; line-height: 1.35; }
    .gt-steps ol > li::before { content: counter(gt-step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }
    .gt-steps ol > li:not(:last-child)::after { content: ""; position: absolute; top: 26px; bottom: 4px; left: 10px; width: 2px; border-radius: 2px; background: var(--border); }
    .gt-steps ol > li > b { display: block; color: var(--ink-strong); }
    .gt-steps ol > li > span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
    .gt-steps ol > li:last-child { padding-bottom: 0; }

    /* ========== 8b. Gift Card: list (gift-cards.index) and card page (gift-cards.show), on top of § 8 ========== */
    .gt-games.gc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gc-tile .gt-game-icon { max-width: none; aspect-ratio: 3 / 2; border-radius: 12px; }
    .gc-tile .gt-game-icon > img { object-fit: cover; }
    .gc-tile .gt-game-off { top: 6px; right: 6px; }
    .gc-tile .gt-game-sub b { color: var(--accent); }
    .gc-tile.is-out .gt-game-icon > img { opacity: .6; filter: grayscale(.5); }
    .gc-tile.is-out .gt-game-sub { color: var(--bad); }
    .pkg-body .pkg-stock { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; font-style: normal; font-weight: 500; }
    .pkg-body .pkg-stock.is-low { color: var(--warn-ink); }
    .pkg.is-out { cursor: not-allowed; opacity: .55; }
    .pkg.is-out:hover { border-color: var(--panel-border); transform: none; }
    .pkg.is-out .pkg-stock { color: var(--bad); font-weight: 700; }
    .od-product-thumb.gc-thumb { width: 84px; height: 56px; }
    .cc-cards.gc-codes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
    .cc-card.gc-code-wait { border-style: dashed; border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 5%, var(--card)); }
    .cc-card.gc-code-wait .cc-card-head b { color: var(--muted); }
    .gc-code-wait-body { display: flex; align-items: center; gap: 8px; padding: 8px 0 2px; border-top: 1px dashed var(--line); color: var(--warn-ink); font-size: 13px; font-weight: 600; }
    .gc-code-wait-body i { font-size: 17px; }

    /* ========== 9. Bought cards: card checkout / purchase ========== */
    .cc-line { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .cc-line .od-product-thumb { width: 52px; height: 52px; }
    .cc-line > .badge { flex: none; }
    .cc-refund { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
    .cc-refund i { color: var(--ok); font-size: 17px; }
    .cc-cards { display: grid; gap: 10px; }
    .cc-card { padding: 12px; border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); background: var(--card); }
    .cc-card-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 14px; }
    .cc-card-head b { color: var(--brand); }
    :root[data-theme="dark"] .cc-card-head b { color: color-mix(in srgb, var(--brand) 65%, #fff); }
    .cc-card-head span { color: var(--muted); font-size: 12px; }
    .cc-field { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; }
    .cc-field > span { color: var(--muted); }
    .cc-field code { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--ink-strong); word-break: break-all; }
    .cc-expired { margin-top: 4px; color: var(--muted); font-size: 12px; }

    /* ========== 10. Account parts: history, profile, avatar, complaint, boost picker, CTV ========== */
    /* Lịch sử: type tabs as pills (scroll sideways on phones), a filter card, status chips. */
    .history-tabs { display: flex; gap: 8px; margin: 0 -12px 12px; padding: 2px 12px 4px; overflow-x: auto; scrollbar-width: none; }
    .history-tabs::-webkit-scrollbar { display: none; }
    .history-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .15s, color .15s; }
    .history-tabs a i { font-size: 17px; color: var(--muted); }
    .history-tabs a:hover { border-color: var(--primary); color: var(--primary); }
    .history-tabs a:hover i { color: var(--primary); }
    .history-tabs a.on { border-color: transparent; background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 28%, transparent); }
    .history-tabs a.on i { color: #fff; }
    .history-filter { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
    .history-filter .search-field, .history-filter .date-range { grid-column: 1 / -1; }
    .history-filter .btn { width: 100%; }
    .history-filter .btn:only-of-type { grid-column: 1 / -1; }
    .search-field { position: relative; display: block; }
    .search-field > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); pointer-events: none; }
    .search-field input { width: 100%; padding-left: 38px; }
    .status-chips { display: flex; gap: 6px; margin: 0 -12px 14px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; }
    .status-chips::-webkit-scrollbar { display: none; }
    .status-chips a { flex: none; height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13px; white-space: nowrap; }
    .status-chips a:hover { color: var(--primary); }
    .status-chips a.on { background: var(--primary-soft); color: var(--primary-strong); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent); }
    .history-empty { padding: 40px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
    /* Chi tiết đơn mua acc: status band, product row, login card with big copy rows, payment card. */
    .od-back { display: inline-flex; align-items: center; gap: 2px; padding: 8px 8px 8px 0; margin: -8px 0 2px; color: var(--muted); font-size: 14px; }
    .od-back i { font-size: 20px; }
    .od-back:hover { color: var(--primary); }
    .od-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 16px; border-radius: var(--radius); background: var(--grad); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 26%, transparent); }
    .od-hero.is-refunded { background: linear-gradient(135deg, #64748b, #475569); box-shadow: var(--shadow); }
    .od-hero.is-wait { background: var(--boost-grad); box-shadow: 0 10px 24px rgb(249 115 22 / .28); }
    .od-hero.is-done { background: linear-gradient(135deg, #16a34a, #0d9488); box-shadow: 0 10px 24px rgb(22 163 74 / .26); }
    .od-hero.is-info { background: linear-gradient(135deg, var(--info), color-mix(in srgb, var(--info) 70%, #000)); box-shadow: 0 10px 24px color-mix(in srgb, var(--info) 26%, transparent); }
    .od-hero.is-bad { background: linear-gradient(135deg, var(--bad), color-mix(in srgb, var(--bad) 70%, #000)); box-shadow: 0 10px 24px color-mix(in srgb, var(--bad) 24%, transparent); }
    .od-hero-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .2); font-size: 26px; }
    .od-hero-text { flex: 1; min-width: 0; }
    .od-hero h1 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
    .od-hero p { margin: 2px 0 0; font-size: 13px; opacity: .9; }
    .od-hero-id { flex: none; text-align: right; }
    .od-hero-id small { display: block; font-size: 11px; opacity: .8; }
    .od-hero-id b { font-size: 17px; }
    .od-layout { display: grid; gap: 14px; margin-bottom: 14px; }
    .od-main, .od-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
    .od-main > *, .od-side > * { margin: 0; }
    @media (max-width: 1023.98px) {
        .od-layout { display: flex; flex-direction: column; }
        .od-main, .od-side { display: contents; }
        .od-product { order: -3; }
        .od-login { order: -2; }
        .od-pay, .rt-extend { order: -1; }
        .so-track { order: -3; }
        .boost-panel { order: -2; }
        .od-layout .community-card { order: 1; }
    }
    .od-product { display: flex; align-items: center; gap: 12px; }
    .od-product-thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary); font-size: 28px; }
    .od-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
    /* Card orders: the telco logo on a brand-tinted tile instead of a product photo. */
    .od-product-thumb.is-telco { padding: 8px; background: color-mix(in srgb, var(--brand) 10%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }
    .od-product-thumb.is-telco .telco-logo { object-fit: contain; }
    .od-product-thumb.is-telco .telco-mark { height: 30px; padding: 0 6px; font-size: 11px; }
    .od-product-thumb.is-telco .telco-mark i { display: none; }
    .od-product-info { flex: 1; min-width: 0; }
    .od-product-info a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-weight: 600; line-height: 1.35; }
    .od-product-info a:hover { color: var(--primary); }
    .od-product-info > b { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; }
    .od-product-info small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
    .od-product > .price, .od-product > .badge { flex: none; }
    .od-product > .price { font-size: 16px; }
    .cred-list { display: grid; gap: 10px; }
    .cred { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
    .cred-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 18px; }
    .cred-text { flex: 1; min-width: 0; }
    .cred-text small { display: block; color: var(--muted); font-size: 12px; }
    .cred-text code { display: block; font-size: 16px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
    .cred > .btn { flex: none; }
    .od-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; margin: 12px 0 0; font-size: 14px; }
    .od-pay .od-rows { margin: 0; }
    .od-rows dt { color: var(--muted); }
    .od-rows dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
    /* Chi tiết đơn dịch vụ: step bar (is-done / is-now / is-todo / is-bad) above the progress timeline, service name and paid total in the detail card. */
    .so-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 0 16px; padding: 4px 0 16px; list-style: none; border-bottom: 1px solid var(--line); }
    .so-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 0 2px; text-align: center; }
    .so-steps li:not(:first-child)::before { content: ""; position: absolute; top: 19px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; background: var(--border); }
    .so-steps li.is-done::before { background: var(--ok); }
    .so-steps li.is-now::before { background: linear-gradient(90deg, var(--ok), var(--primary)); }
    .so-steps li.is-bad::before { background: var(--bad); }
    .so-step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 19px; box-shadow: inset 0 0 0 2px var(--border); }
    .so-steps .is-done .so-step-dot { background: var(--ok); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--ok) 30%, transparent); }
    .so-steps .is-now .so-step-dot { background: var(--card); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary), 0 4px 12px color-mix(in srgb, var(--primary) 22%, transparent); }
    .so-steps .is-now .so-step-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--primary); opacity: 0; animation: so-ring 2s ease-out infinite; }
    .so-steps .is-bad .so-step-dot { background: var(--bad); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--bad) 30%, transparent); }
    .so-steps b { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--muted); }
    .so-steps .is-done b, .so-steps .is-now b { color: var(--ink); }
    .so-steps .is-now b { font-weight: 700; }
    .so-steps .is-bad b { color: var(--bad); }
    .so-steps small { font-size: 11px; color: var(--muted); }
    .so-steps:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
    @keyframes so-ring { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
    @media (prefers-reduced-motion: reduce) { .so-steps .is-now .so-step-dot::after { animation: none; } }
    .so-track-head { margin-bottom: 12px; }
    .so-track-note { display: flex; gap: 6px; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 13px; }
    .so-track-note > i { flex: none; margin-top: 2px; color: var(--primary); }
    .so-track-note + .so-track-note { margin-top: 8px; }
    .so-service { margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .so-service b { display: block; color: var(--ink); line-height: 1.35; }
    .so-service small { color: var(--muted); font-size: 12px; }
    .so-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
    .so-total .price { font-size: 19px; }
    .od-tip { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--text-2); font-size: 13px; line-height: 1.45; }
    .od-tip i { flex: none; font-size: 18px; line-height: calc(13px * 1.45); color: var(--warn); }
    .od-tip.is-info { background: var(--info-soft); }
    .od-tip.is-info i { color: var(--info); }
    .od-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
    .od-total span { color: var(--text-2); font-weight: 500; }
    .od-total .price { font-size: 22px; }
    .od-balance { display: flex; justify-content: space-between; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
    .od-balance b { color: var(--ink); }
    /* Bank transfer waiting screen: received transfers under the steps, one block per shop bank account. */
    .bw-received { margin-top: 0; }
    .bw-received dt small { display: block; font-size: 12px; color: var(--ok-ink); }
    .bw-received dd { font-weight: 700; }
    .bw-bank + .bw-bank { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
    /* Rental detail: extend buttons carry price and the new end time. */
    .rt-extend .rent-plans .btn { min-height: 66px; }
    .bw-bank-name { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; }
    .od-help { display: flex; gap: 12px; align-items: flex-start; }
    .od-help > i { flex: none; font-size: 28px; color: var(--primary); }
    .od-help b { color: var(--ink); }
    .od-help p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
    .zalo-link-steps { display: grid; gap: 10px; margin: 0; padding-left: 20px; font-size: 14px; }
    .zalo-link-steps li > span { display: block; margin-bottom: 4px; }
    .zalo-link-steps .copy-value code { font-size: 17px; letter-spacing: 1px; color: var(--primary); }
    .ava-pick { display: flex; align-items: center; gap: 14px; }
    .ava-pick-wrap { position: relative; flex: none; cursor: pointer; }
    .ava-pick-preview { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--pink-500), var(--red-500)); color: #fff; font-size: 32px; box-shadow: var(--shadow); }
    .ava-pick-preview img { width: 100%; height: 100%; object-fit: cover; }
    .ava-pick-btn { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--accent); font-size: 15px; }
    .ava-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
    .ava-pick input[type=file]:focus-visible + .ava-pick-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
    .ava-pick-info { display: grid; justify-items: start; gap: 4px; min-width: 0; font-size: 13px; }
    .ava-pick-info small { color: var(--muted); overflow-wrap: anywhere; }
    .ava-pick-error { color: var(--bad); font-weight: 600; }
    .ava-pick-error:empty { display: none; }
    .cp-steps { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: cp; }
    .cp-steps li { display: flex; gap: 10px; font-size: 14px; }
    .cp-steps li::before { counter-increment: cp; content: counter(cp); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--info-soft); color: var(--info); font-size: 13px; font-weight: 700; }
    .cp-steps strong { color: var(--ink); }
    .boost-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
    .boost-chip { position: relative; margin: 0; }
    .boost-chip input { position: absolute; opacity: 0; pointer-events: none; }
    .boost-chip span { display: flex; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 44px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 13.5px; font-weight: 700; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
    .boost-chip span > i { color: var(--warn); }
    .boost-chip span:hover { border-color: var(--warn); }
    .boost-chip input:checked + span { border-color: transparent; background: var(--boost-grad); color: #fff; box-shadow: 0 6px 14px rgb(249 115 22 / .3); transform: translateY(-1px); }
    .boost-chip input:checked + span > i { color: inherit; }
    .boost-chip input:focus-visible + span { outline: 2px solid var(--warn); outline-offset: 2px; }
    .boost-chip-top { grid-column: 1 / -1; }
    .boost-chip-top span { border: 1px dashed var(--warn); color: var(--warn-ink); }
    .boost-custom { display: none; margin-top: 8px; }
    [data-boost-picker]:has(input[value=custom]:checked) .boost-custom { display: block; }
    .boost-limits { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
    .ctv-rules { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
    .ctv-rules label { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 400; cursor: pointer; }
    .ctv-rules input { flex: none; width: 16px; height: 16px; margin-top: 3px; }
    .ctv-topup { width: 170px; }
    .ctv-agreed { display: grid; gap: 4px; margin: 12px 0 0; padding-left: 20px; font-size: 14px; }
    .ctv-quit > summary { color: var(--bad); }

    /* Referrals ("Giới thiệu bạn bè"): gradient hero with the link, steps, friends list */
    .ref-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 16px; padding: 18px 16px; border-radius: var(--radius); background: radial-gradient(120% 140% at 100% 0, rgb(255 255 255 / .22), transparent 55%), linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 40%, #7c3aed)); color: #fff; box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 30%, transparent); overflow: hidden; }
    .ref-hero-rate { display: flex; align-items: center; gap: 10px; }
    .ref-hero-rate b { color: #fff; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; text-shadow: 0 4px 14px rgb(0 0 0 / .14); }
    .ref-hero-rate span { font-size: 13px; font-weight: 600; line-height: 1.3; opacity: .92; }
    .ref-hero-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
    .ref-hero-body > small { font-size: 12.5px; font-weight: 600; opacity: .85; }
    .ref-link { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px; border-radius: 12px; background: color-mix(in srgb, var(--card) 96%, transparent); }
    .ref-link code { flex: 1; min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; background: none; padding: 0; }
    .ref-link .btn { flex: none; }
    .ref-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .ref-hero-actions .btn-light { border-color: transparent; background: rgb(255 255 255 / .18); color: #fff; box-shadow: none; }
    .ref-code { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; padding: 3px 3px 3px 10px; border-radius: 10px; background: rgb(255 255 255 / .16); font-size: 13px; }
    .ref-code b { padding: 3px 10px; border-radius: 8px; background: #fff; color: var(--primary); font-size: 14.5px; font-weight: 700; letter-spacing: .08em; }
    .ref-code .link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; }
    .ref-code .link-btn:hover { background: rgb(255 255 255 / .16); }
    .ref-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: ref-step; }
    .ref-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); counter-increment: ref-step; }
    .ref-steps i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 20px; }
    .ref-steps b::before { content: counter(ref-step) ". "; color: var(--primary); }
    .ref-steps span { color: var(--muted); font-size: 13px; }
    .ref-policy dt { display: inline-flex; align-items: center; gap: 6px; }
    .ref-policy dt i { color: var(--primary); font-size: 17px; }
    .ref-policy dd { font-weight: 600; }
    .ref-friends { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
    .ref-friends li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
    .ref-friends li > div { flex: 1; min-width: 0; }
    .ref-friends b, .ref-friends small { display: block; }
    .ref-friends small { color: var(--muted); font-size: 12px; }
    .ref-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }
    .ref-earned { flex: none; color: var(--ok-ink, var(--ok)); font-weight: 700; font-size: 13.5px; }
    .ref-note { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

    /* ========== 11. Home top: marquee, slider, deposit box, ticker, shortcuts, popup ========== */
    .home-marquee { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 9px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); color: var(--accent-strong); font-size: 14px; font-weight: 600; overflow: hidden; }
    .home-marquee i { flex: none; font-size: 18px; }
    .home-marquee div { flex: 1; overflow: hidden; white-space: nowrap; }
    .home-marquee span { display: inline-block; padding-left: 100%; animation: home-marquee 22s linear infinite; }
    @keyframes home-marquee { to { transform: translateX(-100%); } }
    /* Shop notice: a white card with an amber bell, so it reads as news without shouting. */
    .home-notice { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 14px 10px 10px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45; text-decoration: none; transition: box-shadow .2s ease; }
    a.home-notice:hover { box-shadow: var(--shadow-lift); }
    .home-notice > i:first-child { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 19px; }
    .home-notice span { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
    .home-notice .bx-chevron-right { flex: none; color: var(--muted); font-size: 20px; }
    .hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
    .hero-slider { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-card); }
    .hero-slider iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
    .hero-slider .media-placeholder { position: absolute; inset: 0; padding: 20px; font-size: 26px; }
    .slides { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
    .slides::-webkit-scrollbar { display: none; }
    .slides a { flex: 0 0 100%; scroll-snap-align: start; }
    .slides img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .slide-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(15, 23, 42, .38); color: #fff; font-size: 22px; cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(6px); transition: background .2s ease, opacity .2s ease, transform .2s ease; }
    .slide-nav.is-prev { left: 10px; }
    .slide-nav.is-next { right: 10px; }
    .slide-nav:hover { background: rgba(15, 23, 42, .62); }
    .slide-nav:active { transform: translateY(-50%) scale(.92); }
    .slide-nav:focus-visible, .slide-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
    .slide-dots { position: absolute; left: 50%; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(15, 23, 42, .32); transform: translateX(-50%); backdrop-filter: blur(6px); }
    .slide-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s ease, background .3s ease; }
    .slide-dots button:hover { background: rgba(255, 255, 255, .8); }
    .slide-dots .on { width: 24px; background: #fff; }
    @media (hover: hover) {
        .slide-nav { width: 42px; height: 42px; font-size: 26px; opacity: 0; }
        .slide-nav.is-prev { transform: translate(-6px, -50%); }
        .slide-nav.is-next { transform: translate(6px, -50%); }
        .hero-slider:hover .slide-nav, .slide-nav:focus-visible { opacity: 1; transform: translateY(-50%); }
    }
    .deposit-box { display: flex; flex-direction: column; padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; }
    .deposit-box h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
    .deposit-box h2 > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); font-size: 20px; }
    .deposit-box select, .deposit-box input[type=text] { margin-bottom: 8px; border-radius: var(--radius-xs); font-size: 13px; }
    .deposit-box select { font-weight: 600; }
    .deposit-box select:invalid { color: var(--muted); font-weight: 400; }
    .deposit-box select option { color: var(--ink); font-weight: 600; }
    .deposit-box .btn-block { border-radius: var(--radius-xs); }
    /* Segmented switch: a grey track, the open tab a raised white chip in the shop colour. */
    .box-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin-bottom: 12px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
    .box-tabs button { padding: 8px 2px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
    .box-tabs button:hover { color: var(--ink); }
    .box-tabs button.active { background: var(--card); color: var(--primary); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 2px 8px rgba(15, 23, 42, .06); }
    .box-panel { font-size: 13px; }
    .box-panel p { margin: 0 0 4px; }
    .box-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .box-notices { max-height: 220px; overflow-y: auto; font-size: 13px; }
    .box-notices > div { padding: 7px 0; border-bottom: 1px dashed var(--line); }
    .box-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
    .box-foot a { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
    .box-foot a:hover { background: var(--primary-soft); color: var(--primary-strong); }
    .box-foot i { font-size: 16px; }
    .telco-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; margin-bottom: 10px; padding: 2px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
    .telco-row::-webkit-scrollbar { display: none; }
    .telco-row:has(> :nth-child(4)) { grid-auto-columns: calc((100% - 24px) / 3.35); }
    .telco-row .telco { min-height: 48px; scroll-snap-align: start; }
    /* Deposit telcos, like the old shop: plain white tiles with a small logo; the chosen one only turns its border red. */
    :is(.telco-row, .dep-pick) .telco { border-radius: var(--radius-xs); }
    :is(.telco-row, .dep-pick) .telco .telco-logo { width: 64px; max-width: 84%; height: 24px; }
    :is(.telco-row, .dep-pick) .telco .telco-mark { height: 24px; font-size: 14px; }
    :is(.telco-row, .dep-pick) .telco .telco-mark.is-long { font-size: 11px; }
    :is(.telco-row, .dep-pick) .telco:has(input:checked) { border-color: var(--primary); background: var(--card); box-shadow: 0 0 0 1px var(--primary); }
    :is(.telco-row, .dep-pick) .telco:has(input:checked)::after { content: none; }
    .top-periods { display: inline-flex; gap: 2px; margin-bottom: 6px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
    .top-periods button { padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
    .top-periods button.active { background: var(--card); color: var(--ink-strong); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
    .top-list { max-height: 236px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
    .top-list li { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px dashed var(--line); font-weight: 600; }
    .top-list li:last-child { border-bottom: 0; }
    .top-rank { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 12px; }
    .top-list li:nth-child(1) .top-rank { background: linear-gradient(135deg, #ffd76a, #f5a300); color: #fff; }
    .top-list li:nth-child(2) .top-rank { background: linear-gradient(135deg, #e3e7ee, #98a2b3); color: #fff; }
    .top-list li:nth-child(3) .top-rank { background: linear-gradient(135deg, #f3bd95, #c2703c); color: #fff; }
    .top-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .top-total { color: var(--accent-strong); font-weight: 800; }
    .top-list li.is-me { margin: 2px -6px; padding: 7px 8px; border: 0; border-radius: var(--radius-sm); background: var(--primary-soft); }
    .top-name em { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; vertical-align: 1px; }
    .top-empty { display: grid; justify-items: center; gap: 4px; padding: 14px 8px 6px; text-align: center; }
    .top-empty > b { color: var(--ink-strong); font-size: 15px; }
    .top-empty > span:not(.top-empty-art) { max-width: 260px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
    .top-empty .btn { margin-top: 8px; }
    .top-empty-art { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rank-gold-a) 38%, var(--card)), transparent 70%); color: var(--rank-gold-b); font-size: 38px; }
    .top-empty-art i { filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--rank-gold-b) 45%, transparent)); animation: top-trophy 2.6s ease-in-out infinite; }
    .top-empty-art::before, .top-empty-art::after { content: "✦"; position: absolute; color: var(--rank-gold-a); font-size: 12px; animation: top-twinkle 2.6s ease-in-out infinite; }
    .top-empty-art::before { top: 6px; left: 4px; }
    .top-empty-art::after { right: 2px; bottom: 12px; font-size: 9px; animation-delay: 1.3s; }
    @keyframes top-trophy { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }
    @keyframes top-twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
    .top-privacy { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
    .top-privacy:hover { color: var(--primary); }
    @media (prefers-reduced-motion: reduce) { .top-empty-art i, .top-empty-art::before, .top-empty-art::after { animation: none; } }
    .top-rewards { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn-ink); white-space: pre-line; }
    /* Live orders: a pill that scrolls the latest buys; names bold, prices in the shop accent, the rest quiet. */
    .ticker { position: relative; margin-bottom: 14px; padding: 10px 12px 10px 48px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; }
    .ticker > i { position: absolute; inset: 0 auto 0 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px; background: var(--card); color: var(--primary); font-size: 20px; box-shadow: 10px 0 10px -4px var(--card); }
    .ticker-track { display: inline-block; padding-left: 100%; animation: ticker 60s linear infinite; }
    .ticker-track > span::after { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 16px; border-radius: 50%; background: var(--field-border); vertical-align: middle; }
    .ticker-track > span:last-child::after { content: none; }
    .ticker-id { padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 12.5px; }
    .ticker-item { color: var(--ink); }
    .ticker-price { color: var(--accent-strong); }
    .ticker-price sup { margin-left: 1px; font-size: .62em; }
    .ticker-ago b { color: var(--text-2); font-weight: 600; }
    @keyframes ticker { to { transform: translateX(-100%); } }
    @media (prefers-reduced-motion: reduce) {
        .home-marquee span, .ticker-track { animation: none; padding-left: 0; }
        .home-marquee div { white-space: normal; }
    }
    /* Shortcut strip: one swipeable row of glossy gradient icons in a card on phones (the next tile peeks out), a grid from tablets up.
       Six colours (--tile / --tile-2) cycle through the tiles; an emoji icon sits on a soft tint of its colour. */
    .shortcuts { display: grid; grid-auto-flow: column; grid-auto-columns: 76px; gap: 2px; margin-bottom: 32px; padding: 14px 6px 12px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
    .shortcuts::-webkit-scrollbar { display: none; }
    .shortcuts a { --tile: #ef4444; --tile-2: #f97316; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 2px; border-radius: 14px; scroll-snap-align: start; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ink); transition: background .18s ease, color .18s ease; -webkit-tap-highlight-color: transparent; }
    .shortcuts a:nth-child(6n+2) { --tile: #8b5cf6; --tile-2: #d946ef; }
    .shortcuts a:nth-child(6n+3) { --tile: #0ea5e9; --tile-2: #6366f1; }
    .shortcuts a:nth-child(6n+4) { --tile: #10b981; --tile-2: #0d9488; }
    .shortcuts a:nth-child(6n+5) { --tile: #f59e0b; --tile-2: #ea580c; }
    .shortcuts a:nth-child(6n+6) { --tile: #ec4899; --tile-2: #f43f5e; }
    .shortcuts img, .shortcut-icon { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; transition: transform .25s ease; }
    .shortcuts img { box-shadow: 0 4px 12px rgba(15, 23, 42, .14); }
    .shortcuts a:active img, .shortcuts a:active .shortcut-icon { transform: scale(.92); }
    .shortcut-icon { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--tile), var(--tile-2)); color: #fff; font-size: 26px; box-shadow: 0 6px 14px color-mix(in srgb, var(--tile) 32%, transparent); }
    .shortcut-icon::after { content: ""; position: absolute; inset: 0 0 50%; background: linear-gradient(180deg, rgb(255 255 255 / .3), transparent); }
    .shortcut-icon.is-emoji { background: color-mix(in srgb, var(--tile) 14%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tile) 24%, transparent); }
    .shortcut-icon.is-emoji::after { content: none; }
    .shortcuts span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .popup .modal { position: relative; max-width: 460px; }
    .popup .modal h3 { padding-right: 28px; }
    .popup-x { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 22px; cursor: pointer; }
    .popup .has-image .popup-x { background: var(--card); box-shadow: var(--shadow-pop); }
    .popup-image { display: block; margin: -20px -20px 14px; }
    .popup-image img { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
    .popup .has-image h3 { padding-right: 0; }
    .popup-body { margin-bottom: 14px; white-space: pre-line; }

    /* ========== 12. Home blocks: flash sale, best sellers, coupons, news, affiliate ========== */
    .flash-box { margin: 0 0 32px; padding: 12px 12px 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); }
    .flash-head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
    .flash-title { margin: 0; font-size: 17px; font-weight: 900; font-style: italic; letter-spacing: -.3px; color: var(--red-600); white-space: nowrap; }
    .flash-title i { color: var(--warn); }
    .flash-clock { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink-strong); }
    .flash-clock small { display: none; margin-right: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
    .flash-clock b { display: inline-grid; place-items: center; min-width: 21px; height: 20px; padding: 0 3px; border-radius: 4px; background: var(--zinc-800); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
    .flash-more { margin-left: auto; padding: 4px 0; border: 0; background: none; color: var(--red-600); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
    .flash-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .flash-slots button { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 12px; border: 1px solid transparent; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
    .flash-slots button b { color: var(--ink-strong); font-size: 13px; }
    .flash-slots button.active { border-color: var(--red-600); background: var(--red-600); color: #ffe4e4; }
    .flash-slots button.active b { color: #fff; }
    .flash-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
    .flash-items:not(.is-open) .flash-item:nth-child(n+4) { display: none; }
    .flash-item { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
    .flash-item:active { transform: scale(.97); }
    .flash-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
    .flash-media img { width: 100%; height: 100%; object-fit: cover; }
    .flash-media .media-placeholder { font-size: 12px; }
    .flash-off { position: absolute; top: 0; right: 0; padding: 2px 5px 3px; border-radius: 0 0 0 8px; background: #ffd424; color: var(--red-600); font-size: 12px; font-weight: 800; line-height: 1.2; }
    .flash-body { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 8px; }
    .flash-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 500; }
    .flash-price { font-size: 14px; font-weight: 800; line-height: 1.1; color: var(--red-600); }
    .flash-price .price-old { display: none; margin-left: 4px; font-size: 11px; }
    .flash-bar { position: relative; height: 14px; border-radius: 999px; background: #ffa08f; overflow: hidden; }
    .flash-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #ff7337, var(--red-600)); }
    .flash-bar span { position: relative; display: block; text-align: center; font-size: 9px; font-weight: 700; line-height: 14px; color: #fff; text-transform: uppercase; text-shadow: 0 0 3px rgba(120, 0, 0, .45); }
    .flash-empty { margin: 10px 2px 0; font-size: 13px; }
    .bs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    .bs-head .section-title > i { --chip: #f59e0b; --chip-2: #ef4444; }
    .bs-head .seg { display: flex; width: 100%; }
    .bs-head .seg button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 4px; padding: 7px 6px; white-space: nowrap; }
    .bs-head .seg button i { font-size: 15px; }
    .bs-head .seg .on i { color: var(--primary); }
    .bs-title { min-width: 0; }
    .bs-title .section-sub { margin: 3px 0 0 40px; }
    .bs-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
    .bs-items > :nth-child(n+7) { display: none; }
    /* A last row of one or two under three full tiles reads as an orphan on phones: show whole rows only. */
    .bs-items > :nth-child(3n+4):is(:last-child, :nth-last-child(2)), .bs-items > :nth-child(3n+4):nth-last-child(2) + * { display: none; }
    .bs-item { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
    .bs-item:active { transform: scale(.97); }
    .bs-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
    .bs-media img { width: 100%; height: 100%; object-fit: cover; }
    .bs-media .media-placeholder { font-size: 12px; }
    /* A game with no banner of its own: its square logo sits whole in the middle on a blurred copy of itself, so the tile fills like its banner neighbours. */
    .bs-media.is-logo { overflow: hidden; }
    .bs-media.is-logo .bs-backdrop { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; filter: blur(22px) saturate(1.4) brightness(.75); }
    .bs-media.is-logo > img:not(.bs-backdrop) { position: absolute; inset: 0; width: auto; height: 62%; aspect-ratio: 1; margin: auto; border-radius: 22%; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transition: transform .2s ease; }
    .bs-item:hover .bs-media.is-logo > img:not(.bs-backdrop) { transform: scale(1.05); }
    .bs-items.is-in { animation: bs-in .28s ease; }
    @keyframes bs-in { from { opacity: 0; transform: translateY(6px); } }
    @media (prefers-reduced-motion: reduce) { .bs-items.is-in { animation: none; } }
    .bs-flag { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px 2px 5px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.3; box-shadow: 0 2px 6px rgba(239, 68, 68, .35); }
    .bs-flag.is-new { padding-left: 7px; background: var(--ok); box-shadow: 0 2px 6px color-mix(in srgb, var(--ok) 40%, transparent); }
    .bs-rank { position: absolute; top: 0; left: 0; min-width: 24px; padding: 2px 6px 3px; border-radius: 0 0 8px 0; background: rgba(15, 23, 42, .72); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center; }
    .bs-item:nth-child(1) .bs-rank { background: linear-gradient(135deg, #f59e0b, #ef4444); }
    .bs-item:nth-child(2) .bs-rank { background: linear-gradient(135deg, #94a3b8, #64748b); }
    .bs-item:nth-child(3) .bs-rank { background: linear-gradient(135deg, #d97706, #92400e); }
    .bs-body { display: flex; flex-direction: column; gap: 3px; padding: 7px 7px 8px; }
    .bs-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; font-size: 12px; font-weight: 500; line-height: 1.25; }
    .bs-price { font-size: 13px; font-weight: 800; line-height: 1.1; color: var(--primary); }
    .bs-price small { color: var(--muted); font-size: 11px; font-weight: 500; }
    .vc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    /* Coupon page head: gradient banner with the counts, the three steps to use a code and the "Mọi đơn" note. */
    .vc-hero { position: relative; isolation: isolate; display: grid; gap: 12px; margin: 4px 0 12px; padding: 16px 14px 12px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--red-500) 18%, var(--border)); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--red-500) 9%, var(--card)), color-mix(in srgb, var(--orange-500) 8%, var(--card))); }
    .vc-hero::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid color-mix(in srgb, var(--red-500) 6%, transparent); }
    .vc-hero-top { display: flex; align-items: center; gap: 12px; }
    .vc-hero-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--red-500), var(--orange-500)); color: #fff; font-size: 24px; box-shadow: 0 6px 14px color-mix(in srgb, var(--red-500) 30%, transparent); }
    .vc-hero small { display: block; color: var(--red-600); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    .vc-hero h1 { margin: 2px 0 0; color: var(--ink-strong); font-size: 21px; font-weight: 800; line-height: 1.2; }
    .vc-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
    .vc-hero-stats li { display: flex; align-items: center; gap: 5px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 12.5px; }
    .vc-hero-stats b { color: var(--red-600); font-size: 15px; font-weight: 800; }
    .vc-hero-stats .is-hot { border-color: color-mix(in srgb, var(--bad) 30%, var(--border)); color: var(--bad); font-weight: 600; }
    .vc-hero-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: vc-step; }
    .vc-hero-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 5px; padding: 8px 4px 7px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text-2); font-size: 11.5px; line-height: 1.3; text-align: center; counter-increment: vc-step; }
    .vc-hero-steps li::before { content: counter(vc-step); position: absolute; top: 6px; left: 9px; color: var(--faint); font-size: 11px; font-weight: 800; }
    .vc-hero-steps i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--red-500) 10%, var(--card)); color: var(--red-600); font-size: 16px; }
    .vc-hero-steps b { color: var(--ink); }
    .vc-hero-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12.5px; }
    .vc-hero-note i { color: var(--red-500); font-size: 15px; }
    .vc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; overflow: visible; }
    .vc-tabs a { justify-content: center; padding: 0 8px; }
    .vc-tab-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
    .history-tabs a.on .vc-tab-count { background: rgb(255 255 255 / .25); color: #fff; }
    .vc-empty { display: grid; justify-items: center; gap: 4px; padding: 34px 16px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--card); text-align: center; }
    .vc-empty > i { margin-bottom: 4px; color: var(--faint); font-size: 44px; }
    .vc-empty b { color: var(--ink); font-size: 15px; }
    .vc-empty p { margin: 0; color: var(--muted); font-size: 13px; }
    .home-coupons { padding: 16px 12px; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, #ef4444 8%, var(--card)), color-mix(in srgb, #f59e0b 7%, var(--card))); box-shadow: var(--shadow-card); }
    .home-coupons .section-title > i { --chip: #ef4444; --chip-2: #f97316; }
    /* Home category row (category-block): the category's icon chip (its picture, emoji or game icon on its own colour) beside the name and
       subtitle, "Xem tất cả" as a soft pill. Phones swipe the tiles sideways, 2½ cards in view and a "Xem tất cả N" card last. */
    .cat-block .block-head { justify-content: flex-start; margin-bottom: 0; }
    .block-icon { --tile: var(--ph-1); --tile-2: var(--ph-2); flex: none; }
    .block-icon img, .block-icon .shortcut-icon { width: 42px; height: 42px; border-radius: 14px; object-fit: cover; font-size: 22px; }
    .block-title { flex: 1; min-width: 0; }
    .block-title .section-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; }
    .block-title .section-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 2px 0 0; overflow: hidden; color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
    .cat-block .block-link { height: 30px; padding: 0 6px 0 12px; background: var(--primary-soft); font-size: 12.5px; }
    .tile-more { display: none; }
    @media (max-width: 767px) {
        .tiles.is-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; margin: 12px -12px 0; padding: 2px 12px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 12px; scrollbar-width: none; }
        .tiles.is-row::-webkit-scrollbar { display: none; }
        .tiles.is-row > .tile { scroll-snap-align: start; }
        .tiles.is-row > .tile:hover { transform: none; }
        .tile-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--primary-soft); box-shadow: none; color: var(--primary); font-size: 13px; font-weight: 700; }
        .tile-more > i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-card); font-size: 22px; }
        .cat-block .block-more { display: none; }
    }
    .home-coupons .vc-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 90%; margin: 0 -12px; padding: 2px 12px 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 12px; scrollbar-width: none; }
    .home-coupons .vc-list::-webkit-scrollbar { display: none; }
    .home-coupons .vc { scroll-snap-align: start; border-color: transparent; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
    .vc { display: flex; min-width: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); }
    .vc-stub { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 86px; padding: 8px 4px; background: linear-gradient(160deg, #ff6a3d, var(--red-600)); color: #fff; text-align: center; }
    .vc-stub::after { content: ''; position: absolute; top: 0; bottom: 0; right: -4px; width: 8px; background: radial-gradient(circle at 4px 5px, var(--card) 3px, transparent 3.5px) 0 0 / 8px 10px repeat-y; }
    .vc-account .vc-stub { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 75%, #fff), var(--primary)); }
    .vc-service .vc-stub { background: linear-gradient(160deg, #2dd4bf, #0d9488); }
    .vc-stub small { font-size: 10px; font-weight: 800; letter-spacing: .04em; opacity: .95; }
    .vc-stub b { font-size: 22px; font-weight: 900; line-height: 1.1; letter-spacing: -.5px; word-break: break-word; }
    .vc-stub span { font-size: 10px; font-weight: 600; opacity: .9; }
    .vc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 8px 14px; }
    .vc-title { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
    .vc-line { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
    .vc-line a { color: var(--primary); }
    .vc-line.is-soon { color: var(--bad); font-weight: 600; }
    .vc-foot { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
    .vc-code { flex: 1; min-width: 0; padding: 3px 8px; border: 1px dashed color-mix(in srgb, var(--red-600) 55%, var(--border)); border-radius: var(--radius-xs); background: color-mix(in srgb, var(--red-600) 6%, var(--card)); color: var(--red-600); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .vc-foot .btn { flex: none; }
    .vc.is-used { opacity: .6; }
    .vc.is-used .vc-stub { background: var(--faint); }
    .vc-mine { color: var(--ok-ink); font-weight: 600; }
    .home-news .section-title > i { --chip: #0ea5e9; --chip-2: #6366f1; }
    .home-affiliate .section-title > i { --chip: #8b5cf6; --chip-2: #d946ef; }
    .hn-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
    .hn-item { display: flex; min-width: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
    .hn-item:hover .hn-title { color: var(--primary); }
    .hn-thumb { position: relative; flex: none; width: 112px; min-height: 74px; overflow: hidden; background: var(--surface-2); }
    .hn-thumb > * { position: absolute; inset: 0; }
    .hn-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; } /* covers put their title on the left */
    .hn-thumb .media-placeholder { padding: 0; font-size: 12px; }
    .hn-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 8px 12px; }
    .hn-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.3; }
    .hn-date { color: var(--muted); font-size: 12px; }
    .hn-pin { color: var(--highlight); font-weight: 600; }
    .hn-sum { display: none; margin: 0; color: var(--muted); font-size: 12.5px; }
    .aff-disclosure { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; color: var(--muted); font-size: 12.5px; }
    .aff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
    .aff-card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
    .aff-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--surface-2); color: var(--faint); font-size: 36px; }
    .aff-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .aff-platform { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--aff-color); color: #fff; font-size: 11px; font-weight: 700; }
    .aff-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 8px 10px 10px; }
    .aff-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
    .aff-note { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 12px; }
    .aff-price { color: var(--primary); font-size: 14px; font-weight: 700; }
    .aff-price small { color: var(--muted); font-size: 11px; font-weight: 500; }
    .aff-btn { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; margin-top: auto; border-radius: 999px; background: var(--aff-color); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
    .home-ref { --ref-tone: var(--violet-600); position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-radius: var(--radius); box-shadow: var(--shadow-card); background: linear-gradient(125deg, color-mix(in srgb, var(--ref-tone) 8%, var(--card)), color-mix(in srgb, var(--primary) 6%, var(--card)) 55%, color-mix(in srgb, var(--amber-500) 9%, var(--card))); color: var(--text-2); overflow: hidden; isolation: isolate; }
    .home-ref-glow { position: absolute; inset: -40% -20% auto auto; z-index: -1; width: 260px; height: 260px; border-radius: 50%; border: 30px solid color-mix(in srgb, var(--ref-tone) 5%, transparent); }
    .home-ref-main { flex: 1; min-width: 0; }
    .home-ref-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ref-tone) 10%, var(--card)); color: var(--ref-tone); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
    .home-ref h2 { margin: 8px 0 4px; color: var(--ink-strong); font-size: 19px; line-height: 1.25; }
    .home-ref p { margin: 0; font-size: 13.5px; }
    .home-ref p b { color: var(--primary); }
    .home-ref-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--ref-tone); font-size: 13px; font-weight: 600; }
    .home-ref-more:hover { text-decoration: underline; }
    .home-ref-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
    .home-ref-steps li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); font-size: 12.5px; font-weight: 600; }
    .home-ref-steps i { color: var(--ref-tone); font-size: 15px; }
    .home-ref-cta { display: flex; flex-wrap: wrap; gap: 8px; }
    .home-ref-cta .btn { background: linear-gradient(135deg, var(--ref-tone), var(--primary)); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--ref-tone) 22%, transparent); }
    .home-ref-cta .btn-light { border-color: var(--border); background: var(--card); color: var(--ink); box-shadow: none; }
    /* The number sits dead centre: "%" hangs off its right edge (padding on the left balances it) and text-box trims the font's tall Vietnamese accent space. */
    .home-ref-rate { flex: none; display: none; place-items: center; align-content: center; gap: 2px; width: 116px; height: 116px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ref-tone) 18%, var(--border)); background: var(--card); color: var(--ink); text-align: center; }
    .home-ref-rate b { background: linear-gradient(135deg, var(--ref-tone), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 42px; font-weight: 900; line-height: 1; padding: .08em 0 .08em .45em; }
    .home-ref-rate small { display: inline-block; width: .9em; font-size: 21px; text-align: left; }
    .home-ref-rate span { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1; text-box: trim-both cap alphabetic; }
    .home-ref.is-ctv { --ref-tone: var(--orange-500); }
    /* Home "Nạp game & Gift Card": two softly tinted panels (shop colour / green), four quick tiles each; stacked on phones, side by side from 768px. */
    .home-quick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .quick-panel { --tone: var(--primary); --tone-ink: var(--primary-strong); position: relative; isolation: isolate; min-width: 0; padding: 14px 12px 12px; border-radius: var(--radius); background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 12%, var(--card)), var(--card) 65%); box-shadow: var(--shadow-card); overflow: hidden; }
    .quick-panel.is-gift { --tone: var(--ok); --tone-ink: var(--ok-ink); }
    .quick-panel::after { content: ""; position: absolute; z-index: -1; top: -80px; right: -60px; width: 190px; height: 190px; border: 28px solid color-mix(in srgb, var(--tone) 7%, transparent); border-radius: 50%; }
    .quick-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
    .quick-head > div { flex: 1; min-width: 0; }
    .quick-head .section-title { font-size: 17px; }
    .quick-head p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
    .quick-head p span { white-space: nowrap; }
    .quick-head .block-link { flex: none; color: var(--tone-ink); }
    .quick-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 72%, #fff), var(--tone)); color: #fff; font-size: 20px; box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 30%, transparent); }
    .quick-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .quick-items > :nth-child(n+5) { display: none; }
    .quick-panel:only-child .quick-items > :nth-child(n+5) { display: flex; }
    .quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 4px 8px; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); text-align: center; transition: transform .18s ease, box-shadow .18s ease; -webkit-tap-highlight-color: transparent; }
    .quick-item:active { transform: scale(.96); }
    .quick-thumb { position: relative; width: 100%; max-width: 52px; aspect-ratio: 1; border-radius: 14px; background: var(--surface-2); }
    .quick-thumb img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
    .quick-letter { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 72%, #fff), var(--tone)); color: #fff; font-size: 22px; font-weight: 800; }
    .quick-off { position: absolute; top: -6px; right: -12px; padding: 1px 5px; border: 2px solid var(--card); border-radius: 999px; background: var(--bad); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 1.3; }
    .quick-item b { display: -webkit-box; width: 100%; min-height: 2.6em; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .is-gift .quick-thumb { max-width: none; aspect-ratio: 3 / 2; border-radius: 10px; }
    .is-gift .quick-off { top: 4px; right: 4px; border: 0; }
    .quick-cta { margin-top: auto; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 12%, var(--card)); color: var(--tone-ink); font-size: 11px; font-weight: 700; white-space: nowrap; transition: background .15s ease, color .15s ease; }
    .quick-item.is-out .quick-thumb img { opacity: .6; filter: grayscale(.5); }
    .quick-item.is-out .quick-cta { background: var(--surface-2); color: var(--muted); }

    /* ========== 12b. CTV page: "Cộng tác viên" (ctv-signup), pale orange like the home .home-ref.is-ctv block ========== */
    .ctvp-hero { display: grid; gap: 18px; margin: 0 0 16px; padding: 20px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 60%), linear-gradient(160deg, var(--primary-soft), var(--card) 70%); color: var(--text-2); overflow: hidden; }
    .ctvp-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--card); color: var(--primary); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-card); }
    .ctvp-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
    .ctvp-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ctvp-ping 1.6s ease-out infinite; }
    .ctvp-hero h2 { margin: 12px 0 6px; color: var(--ink-strong); font-size: 22px; line-height: 1.25; }
    .ctvp-hero h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .ctvp-hero-main > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
    .ctvp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
    .ctvp-facts li { display: grid; gap: 2px; padding: 10px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); text-align: center; }
    .ctvp-facts b { color: var(--ink-strong); font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
    .ctvp-facts span { color: var(--muted); font-size: 12px; }
    /* The 70/30 split: a ring that fills up to the CTV's share (--share) on load. */
    .ctvp-split { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-card); }
    .ctvp-ring { --ctvp-fill: 0; position: relative; flex: none; display: grid; place-content: center; width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--ctvp-fill) * 1%), color-mix(in srgb, var(--faint) 30%, var(--card)) 0); text-align: center; animation: ctvp-fill 1.2s cubic-bezier(.2, .8, .2, 1) .25s forwards; }
    .ctvp-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--card); }
    .ctvp-ring > * { position: relative; }
    .ctvp-ring b { color: var(--ink-strong); font-size: 24px; font-weight: 800; line-height: 1; }
    .ctvp-ring span { margin-top: 3px; color: var(--muted); font-size: 11px; }
    .ctvp-split figcaption { display: grid; gap: 8px; min-width: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
    .ctvp-split figcaption span { position: relative; padding-left: 18px; }
    .ctvp-split figcaption i { position: absolute; top: 5px; left: 0; width: 10px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--faint) 30%, var(--card)); }
    .ctvp-split figcaption .is-you i { background: var(--primary); }
    .ctvp-split figcaption b { color: var(--ink-strong); }
    .ctvp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .ctvp-cta .btn { flex: 1 1 100%; font-weight: 700; }
    .ctvp-cta .btn:not(.btn-light) { box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 32%, transparent); }
    .ctvp-cta .btn-light { border-color: var(--border); background: var(--card); color: var(--ink); }
    .ctvp-cta-note { flex-basis: 100%; display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--text-2); font-size: 13px; line-height: 1.5; }
    .ctvp-cta-note i { flex: none; margin-top: 1px; color: var(--primary); font-size: 17px; }
    /* Earnings calculator: price chips + slider; the share counts up and coins fly (data-ctv-calc). */
    .ctvp-calc { position: relative; display: grid; gap: 14px; margin: 0 0 24px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; }
    .ctvp-calc-head { display: flex; align-items: center; gap: 12px; }
    .ctvp-calc-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--grad); color: #fff; font-size: 22px; box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
    .ctvp-calc-head h2 { margin: 0; color: var(--ink-strong); font-size: 17px; }
    .ctvp-calc-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
    .ctvp-chips { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
    .ctvp-chips::-webkit-scrollbar { display: none; }
    .ctvp-chip { flex: none; min-height: 38px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
    .ctvp-chip:active { transform: scale(.94); }
    .ctvp-chip.is-on { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent); }
    .ctvp-range { --pos: 0%; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
    .ctvp-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--primary) var(--pos), color-mix(in srgb, var(--faint) 30%, var(--card)) var(--pos)); }
    .ctvp-range::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--primary) var(--pos), color-mix(in srgb, var(--faint) 30%, var(--card)) var(--pos)); }
    .ctvp-range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -8px; border: 4px solid var(--card); border-radius: 50%; background: var(--primary); box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 45%, transparent); -webkit-appearance: none; appearance: none; }
    .ctvp-range::-moz-range-thumb { width: 16px; height: 16px; border: 4px solid var(--card); border-radius: 50%; background: var(--primary); box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 45%, transparent); }
    .ctvp-range:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 999px; }
    .ctvp-calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
    .ctvp-calc-out > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
    .ctvp-calc-out > .is-you { grid-column: 1 / -1; padding: 14px; border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--border)); background: linear-gradient(135deg, var(--ok-soft), var(--card)); }
    .ctvp-calc-out dt { color: var(--muted); font-size: 12px; }
    .ctvp-calc-out dd { margin: 0; color: var(--ink-strong); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
    .ctvp-calc-out .is-you dd { justify-self: start; color: var(--ok); font-size: 28px; line-height: 1.1; }
    .ctvp-calc-out .is-you.is-pop dd { animation: ctvp-pop .45s ease; }
    .ctvp-calc-month { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
    .ctvp-calc-month i { flex: none; color: var(--primary); font-size: 20px; }
    .ctvp-calc-month b { color: var(--primary-strong); white-space: nowrap; }
    .ctvp-coins { position: absolute; left: 50%; top: 50%; pointer-events: none; }
    .ctvp-coins i { position: absolute; left: -11px; top: -11px; color: var(--warn); font-size: 22px; animation: ctvp-coin .9s ease-out var(--d) both; }
    /* "Bạn làm / Shop lo": who does what. */
    .ctvp-duo { display: grid; gap: 10px; margin-top: 12px; }
    .ctvp-duo-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
    .ctvp-duo-card > b { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: var(--ink-strong); font-size: 15px; }
    .ctvp-duo-card > b i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--info-soft); color: var(--info); font-size: 18px; }
    .ctvp-duo-card.is-shop { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); background: linear-gradient(160deg, var(--primary-soft), var(--card) 65%); }
    .ctvp-duo-card.is-shop > b i { background: var(--primary); color: #fff; }
    .ctvp-duo-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
    .ctvp-duo-card li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
    .ctvp-duo-card li i { flex: none; color: var(--ok); font-size: 19px; }
    /* Perks: icon + title + one line; a list on phones, 4 tiles on wide screens. */
    .ctvp-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
    .ctvp-perk { --tone: var(--primary); --tone-soft: var(--primary-soft); position: relative; display: grid; align-content: start; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--tone-soft), var(--card) 60%); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
    .ctvp-perk.tone-ok { --tone: var(--ok); --tone-soft: var(--ok-soft); }
    .ctvp-perk.tone-info { --tone: var(--info); --tone-soft: var(--info-soft); }
    .ctvp-perk.tone-warn { --tone: var(--warn); --tone-soft: var(--warn-soft); }
    .ctvp-perk:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
    .ctvp-perk > i { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 13px; background: var(--tone); color: #fff; font-size: 22px; box-shadow: 0 8px 18px color-mix(in srgb, var(--tone) 30%, transparent); }
    .ctvp-perk b { color: var(--ink); font-size: 14.5px; line-height: 1.3; }
    .ctvp-perk p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

    .ctvp-steps { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: ctvp-step; }
    .ctvp-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); counter-increment: ctvp-step; }
    .ctvp-steps li::before { content: counter(ctvp-step); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent); }
    .ctvp-steps li + li::after { content: ""; position: absolute; top: -11px; left: 31px; height: 10px; border-left: 2px dashed color-mix(in srgb, var(--primary) 35%, var(--border)); }
    .ctvp-steps b { color: var(--ink); font-size: 14px; }
    .ctvp-steps p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

    .ctvp-layout { display: grid; gap: 14px; margin: 0 0 24px; }
    .ctvp-layout > .card { display: flex; flex-direction: column; margin: 0; }
    .ctvp-terms { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; margin: 0; }
    .ctvp-term { --tone: var(--primary); --tone-soft: var(--primary-soft); display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--tone-soft); }
    .ctvp-term.tone-ok { --tone: var(--ok); --tone-soft: var(--ok-soft); }
    .ctvp-term.tone-info { --tone: var(--info); --tone-soft: var(--info-soft); }
    .ctvp-term.tone-warn { --tone: var(--warn); --tone-soft: var(--warn-soft); }
    .ctvp-term > i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--card); color: var(--tone); font-size: 19px; }
    .ctvp-term dd { margin: 0; color: var(--ink-strong); font-size: 16px; font-weight: 800; line-height: 1.2; }
    .ctvp-term dt { color: var(--muted); font-size: 12px; line-height: 1.35; }
    .ctvp-term > div { display: flex; flex-direction: column-reverse; min-width: 0; }
    .ctvp-rules { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
    .ctvp-rules li::marker { color: var(--primary); font-weight: 700; }
    .ctvp-more { margin-top: 8px; }
    .ctvp-more summary { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
    .ctvp-more summary::-webkit-details-marker { display: none; }
    .ctvp-more summary i { font-size: 18px; transition: transform .2s; }
    .ctvp-more[open] summary i { transform: rotate(180deg); }
    .ctvp-rules-note { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }
    .ctvp-rules-link { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-strong); font-size: 13.5px; font-weight: 700; transition: background .15s ease; }
    .ctvp-rules-link > i { font-size: 18px; }
    .ctvp-rules-link .bx-chevron-right { margin-left: auto; font-size: 20px; }
    .ctvp-rules-link:hover { background: color-mix(in srgb, var(--primary) 18%, var(--card)); }
    .ctvp-faq { display: grid; gap: 8px; margin-top: 12px; }
    .ctvp-faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
    .ctvp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
    .ctvp-faq summary::-webkit-details-marker { display: none; }
    .ctvp-faq summary i { flex: none; color: var(--muted); font-size: 20px; transition: transform .2s; }
    .ctvp-faq details[open] summary i { transform: rotate(180deg); }
    .ctvp-faq p { margin: 0; padding: 0 14px 14px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
    .ctvp-end { display: grid; gap: 12px; margin: 0 0 24px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(160deg, var(--primary-soft), var(--card) 70%); }
    .ctvp-end b { color: var(--ink-strong); font-size: 16px; }
    .ctvp-end p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
    @keyframes ctvp-ping { to { transform: scale(2.6); opacity: 0; } }
    @keyframes ctvp-fill { to { --ctvp-fill: var(--share); } }
    @keyframes ctvp-pop { 40% { transform: scale(1.08); } }
    @keyframes ctvp-coin { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), -90px) scale(1) rotate(200deg); } }
    @media (prefers-reduced-motion: reduce) {
        .ctvp-live::after, .ctvp-calc-out .is-you.is-pop dd { animation: none; }
        .ctvp-ring { --ctvp-fill: var(--share); animation: none; }
    }

    /* ========== 13. Posts & reviews ========== */
    .posts-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px 0 8px; }
    .crumbs { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
    .crumbs a { color: var(--text-2); }
    .post-feature { display: block; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); color: inherit; box-shadow: var(--shadow); }
    .post-feature-cover { display: grid; aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-2); }
    .post-feature-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
    .post-feature-cover .media-placeholder { font-size: 20px; }
    .post-feature:hover img { transform: scale(1.03); }
    .post-feature-body { display: grid; justify-items: start; gap: 6px; padding: 14px 14px 16px; }
    .post-feature-body > b { color: var(--ink-strong); font-size: 18px; line-height: 1.3; }
    .post-feature:hover .post-feature-body > b { color: var(--primary); }
    .post-feature-body > small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
    .post-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; }
    .post-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; font-weight: 500; }
    .post-meta span { display: inline-flex; align-items: center; gap: 4px; }
    .post-meta i { color: var(--faint); font-size: 14px; }
    .post-grid { display: grid; gap: 10px; margin-bottom: 12px; }
    .post-card { display: flex; gap: 12px; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: inherit; transition: border-color .15s, transform .18s ease, box-shadow .18s ease; }
    .post-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
    .post-card:hover b { color: var(--primary); }
    .post-card-thumb { flex: none; display: grid; align-self: center; width: 120px; height: 68px; border-radius: var(--radius-xs); overflow: hidden; background: var(--surface-2); }
    .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; }
    .post-card-thumb .media-placeholder { padding: 0; font-size: 12px; }
    .post-card-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
    .post-card-body > b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-strong); font-size: 14.5px; line-height: 1.35; }
    .post-card-body > b i { color: var(--primary); }
    .post-card-body > small { display: none; color: var(--text-2); font-size: 13px; line-height: 1.45; }
    .post-card .post-meta span:nth-child(2) { display: none; }
    .posts-empty { display: grid; justify-items: center; gap: 4px; padding: 36px 16px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--card); text-align: center; }
    .posts-empty i { margin-bottom: 4px; color: var(--primary); font-size: 36px; }
    .posts-empty b { color: var(--ink-strong); }
    .posts-empty small { color: var(--muted); }
    .side-box { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
    .side-box h3 { display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-strong); font-size: 14px; }
    .side-box h3 i { color: var(--primary); font-size: 18px; }
    .side-box a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--text-2); font-size: 14px; font-weight: 500; }
    .side-box a + a { border-top: 1px solid var(--line); }
    .side-box a:hover, .side-box a.is-active { color: var(--primary); background: var(--hover); }
    .side-box a.is-active { font-weight: 700; }
    .side-box a > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 16px; }
    .article-page { max-width: 820px; margin: 0 auto; padding: 12px 0 8px; }
    .article-page > .crumbs { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
    .article-page > .crumbs span { color: var(--faint); }
    .article-page > .alert { margin-bottom: 12px; }
    /* Guide to a closed service (bank top-up while no bank account is on): warning + card top-up button. */
    .post-closed { flex-wrap: wrap; align-items: center; max-width: 820px; margin-inline: auto; }
    .post-closed > span { flex: 1 1 220px; }
    .post-closed > span b { display: block; }
    .post-closed > .btn { flex: none; margin-left: auto; }
    .article { max-width: 820px; margin: 0 auto 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
    .article-cover { aspect-ratio: 16 / 7; background: var(--surface-2); }
    .article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .article-cover .media-placeholder { font-size: 22px; }
    .article-cover.is-empty { aspect-ratio: auto; height: 112px; }
    .article-cover.is-empty .media-placeholder { font-size: 16px; }
    .article-inner { padding: 18px 16px 20px; }
    .article-tag { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; padding: 3px 10px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; }
    .article h1 { margin: 0 0 10px; color: var(--ink-strong); font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
    .article-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
    .article-meta span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
    .article-meta i { color: var(--primary); font-size: 15px; }
    .article-content { color: var(--ink-strong); font-size: 16px; font-weight: 400; line-height: 1.75; overflow-wrap: break-word; }
    .article-content > :first-child { margin-top: 0; }
    .article-content > :last-child { margin-bottom: 0; }
    .article-content h2, .article-content h3 { margin: 1.5em 0 .5em; color: var(--ink-strong); line-height: 1.35; }
    .article-content h2 { padding-left: 12px; border-left: 4px solid var(--primary); font-size: 1.2em; }
    .article-content h3 { font-size: 1.08em; }
    /* "## Bước 2: ..." in a guide (Post::bodyHtml): a numbered badge beside the step title. */
    .article-content .article-step { display: flex; align-items: center; gap: 12px; margin-top: 1.8em; padding: 0; border: 0; }
    .article-step-n { display: grid; flex: none; place-items: center; align-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); color: #fff; font-size: 20px; font-weight: 800; line-height: 1; }
    .article-step-n small { margin-bottom: 2px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
    .article-content ul, .article-content ol { padding-left: 1.3em; }
    .article-content li { margin: .3em 0; }
    .article-content li::marker { color: var(--primary); font-weight: 700; }
    .article-content hr { margin: 1.6em 0; border: 0; border-top: 1px dashed var(--border); }
    .article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; }
    .article-content th, .article-content td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
    .article-content th { background: var(--surface-2); }
    .article-content img { display: block; width: auto; max-width: 100%; max-height: min(82vh, 760px); height: auto; margin: 14px auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
    .article-content a { color: var(--primary); text-decoration: underline; }
    .article-content blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--accent-soft); color: var(--text-2); }
    .article-content code { padding: 1px 6px; border-radius: 4px; background: var(--hover); font-size: .9em; }
    .article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
    .article-share > span { width: 100%; color: var(--muted); font-size: 13px; font-weight: 600; }
    .article-share .bxl-facebook-circle { color: #1877f2; }
    .article-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px; border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border)); border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-soft), var(--card) 70%); }
    .article-cta-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-size: 22px; }
    .article-cta b { display: block; color: var(--ink-strong); font-size: 15px; }
    .article-cta small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
    .related .section-title { margin: 0 0 10px; }
    /* Info pages (/trang/...): the other policy pages as a tappable list under the article. */
    .info-links { display: grid; gap: 8px; }
    .info-links .section-title { margin: 0 0 2px; }
    .info-links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--ink-strong); font-weight: 600; transition: border-color .15s; }
    .info-links a span { flex: 1; min-width: 0; }
    .info-links a i:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 18px; }
    .info-links a i:last-child { color: var(--faint); font-size: 20px; }
    .info-links a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
    .info-links a:hover span { color: var(--primary); }
    .related-grid { display: grid; gap: 8px; }
    .related-card { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: inherit; transition: border-color .15s; }
    .related-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
    .related-card:hover b { color: var(--primary); }
    .related-thumb { flex: none; display: grid; width: 88px; height: 56px; border-radius: var(--radius-xs); overflow: hidden; background: var(--surface-2); }
    .related-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .related-thumb .media-placeholder { padding: 0; font-size: 11px; }
    .related-text { display: grid; gap: 4px; min-width: 0; }
    .related-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-strong); font-size: 14px; line-height: 1.35; }
    .related-text small { color: var(--muted); font-size: 12px; }
    .related-all { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; color: var(--primary); font-size: 14px; font-weight: 700; }
    .reviews-page { padding: 12px 0 8px; }
    .reviews-page h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15px; }

    /* ========== 14. Tablet / desktop ========== */
    @media (min-width: 768px) {
        .block-icon img, .block-icon .shortcut-icon { width: 48px; height: 48px; border-radius: 15px; font-size: 25px; }
        .block-title .section-title { font-size: 21px; }
        .block-title .section-sub { font-size: 13.5px; }
        .cat-block .block-link { height: 34px; padding: 0 8px 0 14px; font-size: 13.5px; }
        .category-sort { flex-wrap: wrap; margin: 0 0 16px; padding: 2px 0 4px; overflow: visible; }
        .search-hero { padding: 24px 28px 22px; }
        .search-hero h1 { font-size: 24px; }
        .search-box { max-width: 640px; }
        .search-chips { flex-wrap: wrap; margin-inline: 0; padding: 0; overflow: visible; }
        .search-cats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
        .ref-hero { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 24px; }
        .ref-hero-rate { flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 24px; border-right: 1px solid rgb(255 255 255 / .3); }
        .ref-hero-rate b { font-size: 56px; }
        .ref-steps { grid-template-columns: repeat(3, 1fr); }
        .home-ref { padding: 24px 28px; }
        .home-ref h2 { font-size: 23px; }
        .home-ref-rate { display: grid; }
        .ctvp-hero { grid-template-columns: minmax(0, 1fr) 250px; column-gap: 28px; align-items: center; padding: 28px 30px; }
        .ctvp-hero h2 { font-size: 26px; }
        .ctvp-facts { max-width: 540px; }
        .ctvp-split { flex-direction: column; padding: 20px 18px; }
        .ctvp-ring { width: 140px; height: 140px; }
        .ctvp-ring::before { inset: 14px; }
        .ctvp-ring b { font-size: 32px; }
        .ctvp-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; padding: 22px 26px; }
        .ctvp-calc > .ctvp-calc-out { grid-column: 2; grid-row: 1 / span 3; align-content: center; }
        .ctvp-calc > .ctvp-calc-month { grid-column: 1 / -1; }
        .ctvp-chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
        .ctvp-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
        .ctvp-duo-card { padding: 18px 20px; }
        .ctvp-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .ctvp-end { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 18px 22px; }
        .ctvp-end .ctvp-cta { justify-content: flex-end; }
        .ctvp-cta .btn { flex: 0 0 auto; min-width: 220px; }
        .history-tabs, .status-chips { flex-wrap: wrap; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; overflow: visible; }
        .history-filter { display: flex; flex-wrap: wrap; align-items: center; }
        .history-filter .search-field { flex: 1 1 240px; }
        .history-filter .date-range { flex: 0 1 270px; }
        .history-filter .btn { width: auto; }
        .acc-sort { display: flex; flex-wrap: wrap; }
        .acc-sort .pill-option span { width: auto; padding: 0 14px; font-size: 13px; }
        .acc-filter-actions { display: flex; justify-content: flex-end; }
        .acc-filter-actions .btn { width: auto; min-width: 130px; }
        .acc-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
        .acc-quick { display: flex; align-items: center; gap: 10px; }
        .acc-quick-label { flex: none; margin: 0; }
        .acc-quick-row { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
        .acc-sold-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 0; padding: 0; overflow: visible; }
        .acc-price .price { font-size: 18px; }
        .acc-body { padding: 10px; }
        .acc-trust { display: flex; flex-wrap: wrap; gap: 8px; }
        .acc-trust li { padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13px; }
        .acc-specs-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .acc-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
        .acc-detail > :first-child { position: sticky; top: calc(var(--sticky-top) + 16px); }
        .bag-price-main .price { font-size: 28px; }
        .bag-stage { padding: 28px 16px 22px; }
        .bag-stage h2 { font-size: 40px; }
        .bag-stage-sub { margin-bottom: 26px; font-size: 14px; }
        .bags { grid-template-columns: repeat(4, 1fr); gap: 16px; }
        .odds-row { grid-template-columns: 140px 1fr 90px; font-size: 14px; }
        .pkg-grid { grid-template-columns: repeat(3, 1fr); }
        .pkg-grid.is-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
        .pkg-finder { position: static; gap: 0; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--panel-border); border-radius: var(--radius-lg); background: var(--panel-grad); box-shadow: var(--panel-shadow); backdrop-filter: none; }
        .pkg-finder .pkg-finder-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
        .pkg-finder-title { display: flex; align-items: center; gap: 10px; margin: 0; }
        .pkg-finder-title > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 18px; }
        .pkg-finder-title b { font-size: 15px; }
        .pkg-finder-title small { color: var(--muted); font-size: 12px; }
        .pkg-search { flex: 0 1 300px; }
        .pkg-tabs { flex-wrap: wrap; overflow: visible; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
        .pkg-name { font-size: 14px; }
        .svc-layout .pkg-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
        .svc-layout .pkg-grid.is-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
        .svc-layout .pkg-finder { margin: 0 0 12px; padding: 0 0 12px; border: 0; border-bottom: 1px dashed var(--border); border-radius: 0; background: none; box-shadow: none; }
        .notice-tips { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
        .gt-steps .notice-tips { grid-template-columns: 1fr; }
        .buy-intro { padding: 14px 16px; }
        .gt-search { flex-basis: 360px; }
        .gt-games.gc-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
        .gt-games { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
        .gt-game { padding: 16px 10px 12px; }
        .gt-game-icon { max-width: 96px; }
        .gt-game-name { font-size: 14px; }
        .gt-game-sub { font-size: 12px; }
        .gt-form, .gt-steps, .gt-others, .gt-checkout { padding: 18px 20px; }
        .gt-paybar { left: 0; right: 0; bottom: 20px; width: min(520px, calc(100% - 32px)); margin: 0 auto; padding: 10px 10px 10px 18px; }
        .has-paybar .chat-fab, .has-paybar .support-fab { transform: none; }
        .has-paybar .gift-float { opacity: 1; visibility: visible; pointer-events: auto; }
        .gt-row { grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 14px; }
        .gt-row > .gt-label { padding-top: 9px; }
        .gt-sum .gt-row > .gt-label { padding-top: 0; }
        .gt-pkgs { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
        .buy-step { padding: 16px; }
        .buy-step .pkg-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
        .buy-summary { padding: 16px; }
        .buy-recent li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
        .buy-recent-side { justify-content: flex-end; }
        .telco-grid-wide { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
        .telco-grid-wide .telco { min-height: 60px; }
        .telco-grid-wide .telco .telco-logo { height: min(30px, calc(40px / sqrt(var(--ar, 3)))); }
        .telco-grid-wide .telco-mark { height: 40px; font-size: 19px; }
        .telco-grid-wide .telco-mark.is-long { font-size: 15px; }
        .cc-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
        .cc-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
        .hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
        .hero-slider { aspect-ratio: auto; min-height: 372px; }
        .shortcuts { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; padding: 14px; overflow: visible; }
        .shortcuts a { gap: 9px; padding: 10px 4px; font-size: 14px; }
        .shortcuts a:hover { background: color-mix(in srgb, var(--tile) 8%, var(--card)); }
        .shortcuts img, .shortcut-icon { width: 60px; height: 60px; border-radius: 18px; }
        .shortcuts a:hover img, .shortcuts a:hover .shortcut-icon { transform: translateY(-3px) scale(1.06); }
        .shortcut-icon { font-size: 30px; }
        .flash-box { margin: 0 0 44px; padding: 16px 18px 18px; border-radius: var(--radius-lg); }
        .shortcuts { margin-bottom: 44px; border-radius: var(--radius-lg); }
        .hero-slider, .deposit-box, .home-coupons, .home-ref { border-radius: var(--radius-lg); }
        .flash-title { font-size: 20px; }
        .flash-clock small { display: inline; }
        .flash-clock b { min-width: 24px; height: 22px; font-size: 13px; }
        .flash-items { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
        .flash-items:not(.is-open) .flash-item:nth-child(n+4) { display: flex; }
        .flash-items:not(.is-open) .flash-item:nth-child(n+7) { display: none; }
        .flash-item:hover, .bs-item:hover, .hn-item:hover, .aff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
        .flash-body { gap: 4px; padding: 6px 8px 8px; }
        .flash-name { font-size: 13px; }
        .flash-price { font-size: 16px; }
        .flash-price .price-old { display: inline; }
        .flash-bar { height: 16px; }
        .flash-bar span { font-size: 10px; line-height: 16px; }
        .bs-head .seg { width: auto; margin-left: auto; }
        .bs-head .seg button { flex: none; padding: 6px 12px; }
        .bs-items { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
        .bs-items > :nth-child(n+7), .bs-items > :nth-child(3n+4):is(:last-child, :nth-last-child(2)), .bs-items > :nth-child(3n+4):nth-last-child(2) + * { display: flex; }
        .bs-items > :nth-child(n+13) { display: none; }
        .bs-body { gap: 3px; padding: 6px 8px 8px; }
        .bs-name { font-size: 13px; }
        .bs-price { font-size: 15px; }
        .vc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .home-coupons { padding: 18px; }
        .vc-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 12px 24px; padding: 22px 24px; }
        .vc-hero-steps { grid-column: 2; grid-row: 1 / span 3; }
        .vc-hero-steps li { padding: 14px 6px 12px; font-size: 12.5px; }
        .vc-hero-steps i { width: 34px; height: 34px; font-size: 19px; }
        .vc-hero h1 { font-size: 24px; }
        .vc-tabs { display: flex; margin-bottom: 14px; }
        .vc-tabs a { padding: 0 16px; }
        .home-coupons .vc-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); grid-auto-flow: row; margin: 0; padding: 2px 0 0; overflow: visible; }
        .hn-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
        .hn-item { flex-direction: column; }
        .hn-thumb { width: auto; min-height: 0; aspect-ratio: 16 / 9; }
        .hn-thumb .media-placeholder { font-size: 18px; }
        .hn-body { justify-content: flex-start; gap: 5px; padding: 12px 14px 14px; }
        .hn-title { font-size: 14px; }
        .hn-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .aff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
        .home-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
        .quick-panel:only-child { grid-column: 1 / -1; }
        .quick-panel:only-child .quick-items { grid-template-columns: repeat(8, minmax(0, 1fr)); }
        .quick-panel { padding: 18px 18px 16px; border-radius: var(--radius-lg); }
        .quick-head { gap: 12px; margin-bottom: 14px; }
        .quick-head .section-title { font-size: 19px; }
        .quick-head p { font-size: 13px; }
        .quick-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 23px; }
        .quick-items { gap: 12px; }
        .quick-item { gap: 8px; padding: 14px 6px 12px; }
        .quick-thumb { max-width: 64px; border-radius: 18px; }
        .is-gift .quick-thumb { max-width: none; border-radius: 12px; }
        .quick-item b { font-size: 13.5px; }
        .quick-cta { padding: 4px 12px; font-size: 12px; }
        .quick-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
        .quick-item:hover .quick-cta { background: var(--tone); color: #fff; }
        .quick-item.is-out:hover .quick-cta { background: var(--surface-2); color: var(--muted); }
        .posts-page, .reviews-page { padding-top: 20px; }
        .post-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
        .post-feature-cover { aspect-ratio: auto; min-height: 220px; }
        .post-feature-body { align-content: center; gap: 8px; padding: 22px 24px; }
        .post-feature-body > b { font-size: 22px; }
        .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
        .post-card { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
        .post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(15, 23, 42, .12); }
        .post-card-thumb { align-self: stretch; width: auto; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
        .post-card-thumb .media-placeholder { font-size: 16px; }
        .post-card-body { flex: 1; padding: 12px 14px 14px; }
        .post-card-body > small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .post-card-body .post-meta { margin-top: auto; }
        .post-card .post-meta span:nth-child(2) { display: inline-flex; }
        .article-page { padding-top: 20px; }
        .article-cover.is-empty { height: 150px; }
        .article-inner { padding: 24px 32px 28px; }
        .article h1 { font-size: 28px; }
        .article-content { font-size: 16.5px; }
        .article-share > span { width: auto; margin-right: auto; }
        .article-cta { padding: 16px 20px; }
        .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    }
    @media (min-width: 1024px) {
        .posts-page { grid-template-columns: minmax(0, 1fr) 300px; }
        .filter-group legend { width: 120px; margin: 0; padding-top: 7px; }
        .filter-group .pill-options, .filter-group select { clear: none; overflow: hidden; }
        .filter-group select { display: block; width: calc(100% - 120px); }
        .acc-grid { grid-template-columns: repeat(4, 1fr); }
        .acc-sold-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
        .pkg-grid { grid-template-columns: repeat(5, 1fr); }
        .pkg-grid.is-list { grid-template-columns: repeat(3, 1fr); }
        .od-layout { grid-template-columns: minmax(0, 1fr) 300px; }
        .gt-layout { grid-template-columns: minmax(0, 1fr) 340px; }
        /* Service, game and gift card pages: only the checkout stays in the right column and follows the scroll; the how-to and
           other products move under the form so the sticky checkout never slides over them. --checkout-rows (set on the
           form) is how many cards the left column holds, so the checkout follows down to the last one. */
        .gt-layout .gt-side { display: contents; }
        .gt-layout > .gt-form, .gt-side > .card:not(.gt-checkout) { grid-column: 1; }
        .gt-checkout { position: sticky; top: calc(var(--sticky-top) + 16px); z-index: 2; grid-column: 2; grid-row: 1 / span var(--checkout-rows, 2); box-shadow: var(--shadow-lift); }
        .gt-games { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
        .od-side { position: sticky; top: calc(var(--sticky-top) + 16px); }
        .od-hero { padding: 20px 22px; }
        .od-hero h1 { font-size: 21px; }
        .ctvp-hero { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 44px; padding: 34px 38px; }
        .ctvp-hero h2 { font-size: 30px; }
        .ctvp-hero .ctvp-cta { margin-top: 18px; }
        .ctvp-ring { width: 170px; height: 170px; }
        .ctvp-ring::before { inset: 16px; }
        .ctvp-ring b { font-size: 38px; }
        .ctvp-calc-out .is-you dd { font-size: 34px; }
        .ctvp-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
        .ctvp-perk { padding: 18px; }
        .ctvp-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
        .ctvp-steps li { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; padding: 18px 12px 16px; text-align: center; }
        .ctvp-steps li::before { grid-row: auto; margin-bottom: 10px; }
        .ctvp-steps li + li::after { top: 35px; left: -15px; width: 14px; height: 0; border-left: 0; border-top: 2px dashed color-mix(in srgb, var(--primary) 35%, var(--border)); }
        .ctvp-layout { align-items: stretch; }
    }
    @media (min-width: 1180px) {
        .buy-layout { grid-template-columns: minmax(0, 1fr) 320px; }
        .buy-summary { position: sticky; top: calc(var(--sticky-top) + 16px); }
    }
    @media (min-width: 1200px) {
        .hero { grid-template-columns: minmax(0, 1fr) 330px; }
    }
    @media (min-width: 1280px) {
        .vc-list.vc-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
}
