/*
 * 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 (track, slides, count, arrows, thumbs), .acc-stock-chip, .acc-price-box, .coupon-row + .coupon-chips (partial coupon-chips, also bag and service pages), .acc-perks, .acc-info, .rent-box, .acc-similar, .buy-sheet (purchase-modal)
 *   4b. Cart ............. .acc-buy-row, .add-cart, .cart-fly (account page), .cart-edit, .cart-cols, .cart-group, .cart-line, .cart-check, .cart-bar, .cart-suggest (shop.cart, partial also-like)
 *   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, .svc-layout (.pkg as a Shopee product card), .svc-cart, .svc-line, .pick-thumb, .pick-fly, .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-pick (server / type choices), .gt-sum, .gt-checkout, .gt-method, .gt-terms, .gt-others (game page)
 *   8b. Gift Card ........ .gc-grid, .gc-tile (list), .pkg-stock, .pkg.is-out, .gc-pkg-art (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, .tdb (Đua top nạp), .ticker, .shortcuts, .popup (.popup-image .popup-x)
 *  12. Home blocks ....... .flash-box, .ge-box / .ge-card / .ge-section / .ge-tile (Sự kiện game, home row and page; .ge-tile = Shopee product card), .bs-items, .feed-items (Gợi ý hôm nay, gói dịch vụ tìm được), .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; .is-buyback = sell your account, .home-buyback-games; .is-consign = put your account on sale)
 *  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)
 *  12c. Thu acc ........ .tacc-hero-art, .tacc-games, .tacc-game (buyback index), .tacc-layout, .tacc-step, .tacc-pick, .tacc-toggle, .tacc-estimate, .tacc-grade, .tacc-meter, .tacc-lines, .tacc-drop, .tacc-thumbs, .tacc-pass, .tacc-payout, .tacc-bank, .tacc-rules, .tacc-bar (buyback create), .tacc-sent, .tacc-offer, .tacc-countdown (account buyback page)
 *  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.
       Phones only: from 768px the header bar does the searching. */
    .search-hero { position: relative; margin: 12px 0 16px; padding: 18px 16px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: 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 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. */
    /* The label rides on the chips' own row so the first accounts reach the first phone screen. */
    .acc-quick { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .acc-quick-label { flex: none; display: flex; align-items: center; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 700; }
    .acc-quick-label i { color: var(--primary); font-size: 16px; }
    .acc-quick-row { flex: 1; min-width: 0; display: flex; gap: 6px; margin: 0 -12px 0 0; padding: 2px 12px 4px 0; 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 2px 6px color-mix(in srgb, var(--primary) 15%, 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 under the list (with the rental and description notes) 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-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; }
    /* The account's pictures: a sideways track of full-width slides snapping one at a time (swipe on a phone, arrows on a computer), "1/6" bottom right, a tap opens the photo viewer. */
    .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-gallery-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .acc-gallery-track::-webkit-scrollbar { display: none; }
    .acc-gallery-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
    .acc-gallery-slide:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
    .acc-gallery-count { position: absolute; right: var(--sp-2); bottom: var(--sp-2); padding: 2px var(--sp-2); border-radius: 99px; background: color-mix(in srgb, var(--photo-scrim) 62%, transparent); color: var(--photo-ink); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
    .acc-gallery-nav { position: absolute; top: 50%; display: none; place-items: center; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--card) 88%, transparent); box-shadow: var(--shadow); color: var(--ink); font-size: var(--fs-xl); cursor: pointer; opacity: 0; transition: opacity .18s, transform .18s; }
    .acc-gallery-nav.is-prev { left: var(--sp-2); }
    .acc-gallery-nav.is-next { right: var(--sp-2); }
    .acc-gallery-nav:hover { transform: scale(1.08); }
    .acc-gallery-nav:disabled { visibility: hidden; }
    @media (hover: hover) and (pointer: fine) {
        .acc-gallery-nav { display: grid; }
        .acc-gallery-stage:hover .acc-gallery-nav, .acc-gallery-nav:focus-visible { opacity: 1; }
    }
    .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 tương tự" under the detail card: the list's own cards, same product, closest price first. */
    .acc-similar { margin-top: var(--sp-6); }
    .acc-similar .acc-grid { margin: var(--sp-3) 0 0; }
    .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; opacity: .62; transition: opacity .15s, border-color .15s; }
    .acc-gallery-thumbs button:hover, .acc-gallery-thumbs button.active { opacity: 1; }
    .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; }
    /* "Mã giảm giá" under the price, like Shopee's shop vouchers: small red tickets with a notch each side, the row a link to the coupon page. */
    .coupon-row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); font-size: var(--fs-sm); }
    .coupon-row > span { color: var(--muted); }
    .coupon-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); min-width: 0; color: var(--red-600); }
    .coupon-chips > .bx { color: var(--muted); font-size: var(--fs-lg); }
    .coupon-chip { padding: 1px var(--sp-2); border: 1px solid color-mix(in srgb, var(--red-600) 45%, transparent); border-radius: var(--radius-xs); background: color-mix(in srgb, var(--red-600) 10%, var(--card)); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; mask: radial-gradient(circle at 0 50%, transparent 3px, currentColor 3.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 3px, currentColor 3.5px) right / 51% 100% no-repeat; }
    .coupon-chips:hover .coupon-chip { background: color-mix(in srgb, var(--red-600) 18%, var(--card)); }
    .page-hero-stats li.is-coupons { padding: 0; background: none; box-shadow: none; }
    /* Header pills that are links: the stars jump to the reviews (#danh-gia), the chat reply time opens the support chat. */
    .page-hero-stats li > a { display: inline-flex; align-items: center; gap: inherit; color: inherit; }
    .page-hero-stats li > a:hover { color: var(--primary); }
    .page-hero-stats .coupon-chips > .bx { display: none; }
    /* 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; }
    /* The shop's own warranty line (Cài đặt → Khiếu nại acc lỗi), partials/warranty-note. */
    .warranty-note { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 var(--sp-2); padding: 9px 12px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok-ink); font-size: 13px; font-weight: 600; line-height: 1.45; }
    .warranty-note i { flex: none; margin-top: 1px; font-size: 17px; }
    .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; }
    .buy-lock a { white-space: nowrap; }
    @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; } }

    /* ========== 4b. Cart (shop.cart, partials/add-to-cart) ========== */
    /* On the account page "Thêm vào giỏ" sits left of the buy button, Shopee style; in the phone pay bar it is a square icon. Inside the row the buttons keep a slim side padding so "Thêm vào giỏ" fits at 360px; .is-stacked (game top-up and service page, whose pay button carries the price) puts them one under the other. */
    .acc-buy-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
    .acc-buy-row > .btn, .acc-buy-row .add-cart { padding-inline: 10px; white-space: nowrap; }
    .acc-buy-row.is-stacked { grid-template-columns: minmax(0, 1fr); }
    .add-cart-form { display: contents; }
    .add-cart { gap: 6px; }
    .add-cart > i { font-size: var(--fs-lg); }
    .add-cart.is-added { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); opacity: 1; }
    .add-cart.is-icon { flex: none; width: var(--control-h); padding: 0; }
    .cart-fly { position: fixed; z-index: 1800; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-size: var(--fs-lg); box-shadow: var(--shadow-pop); pointer-events: none; }

    .cart { display: grid; gap: var(--sp-3); }
    /* "Sửa" sits at the right end of the page header's pills, Shopee's spot; pressed it reads "Xong". */
    .page-hero-stats li.cart-edit-item { margin-left: auto; padding: 0; overflow: hidden; }
    .cart-edit { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
    .cart-edit[aria-pressed="true"] { background: var(--primary); color: #fff; }
    .cart-edit[aria-pressed="true"] i { color: #fff; }
    .cart-cols { display: none; }
    .cart-empty { display: grid; justify-items: center; gap: var(--sp-2); }
    .cart-empty p { margin: 0; color: var(--muted); }
    .cart-group { padding: 0; overflow: hidden; }
    .cart-group-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-bottom: 1px solid var(--line); }
    .cart-group-head a { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink); font-size: var(--fs-md); font-weight: 700; }
    .cart-group-head a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cart-group-head a > i:first-child { color: var(--primary); font-size: var(--fs-lg); }
    .cart-group-head a > i:last-child { color: var(--faint); }
    /* Phones: name and details over the price, both beside the picture. */
    .cart-line { display: grid; grid-template-columns: auto 88px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: var(--sp-3); row-gap: 4px; padding: var(--sp-3); }
    .cart-line > .cart-check, .cart-line > .cart-thumb, .cart-line > .cart-remove { grid-row: 1 / 3; }
    .cart-line > .cart-info { grid-column: 3; grid-row: 1; align-self: end; }
    .cart-line > .cart-price { grid-column: 3; grid-row: 2; align-self: start; }
    .cart-line > .cart-remove { grid-column: 4; }
    .cart-line + .cart-line { border-top: 1px dashed var(--line); }
    .cart-line.is-off .cart-thumb, .cart-line.is-off .cart-info > :not(.cart-problem, .cart-similar), .cart-line.is-off .cart-price { opacity: .5; }
    .cart-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
    .cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
    /* The line's name sits right beside it, so a picture-less line shows just the icon (a label this small got cut: "#61660", "GAMEPA"). */
    .cart-thumb .media-placeholder { height: 100%; padding: 0; font-size: var(--fs-md); }
    .cart-thumb .media-placeholder > :not(i) { display: none; }
    /* A service line shows the packages picked (CartService::packageImages): one fills the square, two split it, three put the first on the left. */
    .cart-pkgs { display: grid; grid-auto-flow: column; grid-template-rows: 1fr; gap: 2px; background: var(--line); }
    .cart-pkgs[data-count="3"] { grid-template-rows: 1fr 1fr; grid-template-columns: 1fr 1fr; }
    .cart-pkgs[data-count="3"] > span:first-child { grid-row: 1 / 3; }
    .cart-pkgs > span { display: grid; min-width: 0; min-height: 0; overflow: hidden; background: var(--surface-2); }
    .cart-pkgs img { padding: 8%; object-fit: contain; }
    .cart-pkgs:not([data-count="1"]) img { padding: 3%; }
    .cart-pkgs[data-count="2"] .media-placeholder, .cart-pkgs[data-count="3"] .media-placeholder { font-size: var(--fs-2xs); }
    .cart-more { position: absolute; right: 3px; bottom: 3px; padding: 0 5px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ink) 72%, transparent); color: var(--card); font-size: var(--fs-2xs); font-weight: 700; line-height: 1.5; }
    .cart-off { position: absolute; inset: auto 0 0; padding: 2px 0; background: color-mix(in srgb, var(--ink) 72%, transparent); color: #fff; font-size: var(--fs-2xs); font-weight: 700; text-align: center; }
    .cart-info { display: grid; gap: 3px; min-width: 0; }
    .cart-name { color: var(--ink); font-size: var(--fs-base); font-weight: 700; }
    .cart-specs { margin: 0; overflow: hidden; color: var(--muted); font-size: var(--fs-xs); text-overflow: ellipsis; white-space: nowrap; }
    .cart-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
    .cart-price .price { font-size: var(--fs-md); font-weight: 800; }
    .cart-price .price-old { font-size: var(--fs-xs); }
    .cart-drop { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--ok-soft); color: var(--ok-ink); font-size: var(--fs-xs); font-weight: 600; }
    .cart-similar { justify-self: start; margin-top: 2px; }
    .cart-problem { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--bad-soft); color: var(--bad); font-size: var(--fs-xs); font-weight: 600; }
    .cart-remove { margin: 0; }
    .cart-remove button { display: grid; place-items: center; width: var(--control-h); height: var(--control-h); padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--faint); font-size: var(--fs-lg); cursor: pointer; transition: background .15s, color .15s; }
    .cart-remove button:hover { background: var(--bad-soft); color: var(--bad); }

    /* Round tick boxes, the shop colour when picked. */
    .cart-check { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); flex: none; margin: 0; cursor: pointer; }
    .cart-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
    .cart-check > span { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--field-border); border-radius: 50%; background: var(--card); transition: background .15s, border-color .15s, scale .15s; }
    .cart-check > span::after { content: ''; width: 9px; height: 5px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; rotate: -45deg; opacity: 0; }
    .cart-check input:checked + span { border-color: var(--primary); background: var(--primary); scale: 1.06; }
    .cart-check input:checked + span::after { opacity: 1; }
    .cart-check input:focus-visible + span { box-shadow: var(--focus-ring); }
    .cart-check input:disabled + span { background: var(--surface-2); opacity: .6; cursor: not-allowed; }

    /* The pay bar is docked at the bottom of the screen (above the phone's bottom bar) wherever the list ends; a sticky bar resting higher up sat under the chat button. The floating buttons and the page end lift over it. */
    .cart-bar { position: fixed; right: 8px; bottom: calc(var(--bottom-nav-h) + 8px + env(safe-area-inset-bottom)); left: 8px; z-index: 20; display: flex; align-items: center; gap: var(--sp-3); margin: 0; padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow-pop); }
    .cart-all b { color: var(--ink); font-size: var(--fs-sm); }
    .cart-total { display: grid; flex: 1; justify-items: end; min-width: 0; line-height: 1.25; }
    .cart-total > span { color: var(--muted); font-size: var(--fs-xs); }
    .cart-total .price { font-size: var(--fs-lg); font-weight: 800; }
    .cart-total small { color: var(--ok-ink); font-size: var(--fs-2xs); }
    .cart-total small[hidden] { display: none; }
    .cart-total .cart-short { color: var(--bad-ink); }
    .cart-bar .btn { flex: none; }
    /* Edit mode: the bar only offers "Xoá (n)" for the ticked lines. */
    .cart-bar .cart-remove-picked { display: none; }
    .cart.is-editing .cart-bar .cart-remove-picked { display: inline-flex; }
    .cart.is-editing .cart-bar [data-cart-submit] { display: none; }
    .cart.is-editing .cart-total { visibility: hidden; }
    .cart-suggest { margin: var(--sp-3) 0 0; }
    body:has(.cart-bar) .gift-float { opacity: 0; visibility: hidden; pointer-events: none; }
    /* Dark: each shop group is a calm panel (no red glow per card), boxes and the pay bar stand out from the night background. */
    :root[data-theme="dark"] .cart-group, :root[data-theme="dark"] .cart-cols { background: var(--card); border-color: var(--border); box-shadow: var(--shadow-card); }
    :root[data-theme="dark"] .cart-group-head { background: var(--surface-2); }
    :root[data-theme="dark"] .cart-line + .cart-line { border-top-color: var(--border); }
    :root[data-theme="dark"] .cart-thumb { box-shadow: 0 0 0 1px var(--border); }
    :root[data-theme="dark"] .cart-check > span { border-color: color-mix(in srgb, var(--ink) 38%, var(--card)); background: var(--surface-2); }
    :root[data-theme="dark"] .cart-check input:checked + span { border-color: var(--primary); background: var(--primary); }
    :root[data-theme="dark"] .cart-bar { border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); background: color-mix(in srgb, var(--surface-2) 96%, transparent); box-shadow: 0 -8px 30px rgba(0, 0, 0, .5), var(--shadow-pop); }
    @media (max-width: 767px) {
        body:has(.cart-bar) { --float-lift: 76px; }
        /* Covers the strip between the pay bar and the bottom nav, so lines scrolling past do not peek through under the bar. */
        .cart-bar::after { content: ''; position: absolute; top: calc(100% + 1px); right: 0; left: 0; height: 8px; background: var(--bg); pointer-events: none; }
    }
    @media (max-width: 379px) {
        .cart-line { grid-template-columns: auto 72px minmax(0, 1fr) auto; column-gap: var(--sp-2); }
        .cart-all b { display: none; }
        .acc-buy-row > .btn, .acc-buy-row .add-cart { gap: 4px; padding-inline: 6px; }
    }
    @media (min-width: 768px) {
        /* Shopee's desktop table: a header row over the lines, the price and the remove button in their own columns. */
        .cart-cols { display: grid; grid-template-columns: 22px minmax(0, 1fr) 160px 72px; align-items: center; gap: 16px; padding: var(--sp-3); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
        .cart-cols > span:nth-of-type(n+2) { text-align: center; }
        .cart-line { grid-template-columns: 22px 80px minmax(0, 1fr) 160px 72px; grid-template-rows: auto; column-gap: 16px; }
        .cart-line > .cart-check, .cart-line > .cart-thumb, .cart-line > .cart-remove, .cart-line > .cart-info, .cart-line > .cart-price { grid-row: 1; align-self: center; }
        .cart-line > .cart-price { grid-column: 4; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
        .cart-line > .cart-remove { grid-column: 5; justify-self: center; }
        .cart-bar { right: 0; bottom: var(--sp-3); left: 0; width: min(1248px, calc(100% - 32px)); margin: 0 auto; }
        body:has(.cart-bar) { padding-bottom: 96px; }
        body:has(.cart-bar) :is(.chat-fab, .support-fab, .to-top, .gift-float) { transform: translateY(-76px); }
        body:has(.cart-bar) .gift-float { opacity: 1; visibility: visible; pointer-events: auto; }
    }

    /* ========== 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); }
    .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-perk { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 6px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); 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; }
    /* Sound on/off is a small round speaker in the corner; its words stay for screen readers. */
    .bag-stage .bag-sound { position: absolute; top: 12px; left: 12px; z-index: 2; width: 32px; padding: 0; border-radius: 50%; }
    .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-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%); }
    /* No bag picture: the drawn blind bag bobs, each a beat after the one before, and wiggles from its base under the pointer. */
    .bag-art { height: 82%; width: auto; transform-origin: 50% 92%; filter: drop-shadow(0 6px 14px rgb(124 58 237 / .45)); transition: transform .2s; animation: bag-bob 2.4s ease-in-out infinite; animation-delay: calc(var(--bag-i, 0) * -.3s); }
    .bag:nth-child(2) { --bag-i: 1; } .bag:nth-child(3) { --bag-i: 2; } .bag:nth-child(4) { --bag-i: 3; } .bag:nth-child(5) { --bag-i: 4; } .bag:nth-child(6) { --bag-i: 5; } .bag:nth-child(7) { --bag-i: 6; } .bag:nth-child(8) { --bag-i: 7; }
    .bag:hover .bag-art, .bag:focus-visible .bag-art { transform: scale(1.06); animation: bag-wiggle .6s ease-in-out infinite; }
    @keyframes bag-bob { 50% { translate: 0 -6%; } }
    @keyframes bag-wiggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -10deg; } 40% { rotate: 8deg; } 60% { rotate: -6deg; } 80% { rotate: 4deg; } }
    @media (prefers-reduced-motion: reduce) { .bag-art, .bag:hover .bag-art, .bag:focus-visible .bag-art { animation: none; } }
    .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:has(.bag-art) .bag-hover { align-items: flex-end; justify-content: flex-end; padding: 8px; background: none; }
    .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; }
    .bag-soldout-card .restock-alert i { margin: 0 2px 0 0; }
    /* "Báo tôi khi có hàng" (partials/restock-alert): on the sold-out bag card and the empty account list. */
    .restock-alert.is-on { background: var(--ok-soft); color: var(--ok-ink); box-shadow: none; cursor: default; }
    .acc-grid > .empty .restock-alert { margin-top: var(--sp-3); }
    @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 drawn purple bag shakes under a bold "Đang mở túi..."; .is-burst unties its bow, puffs it open
       and shoots light out of its mouth 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: 74%; aspect-ratio: 1; 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-whole { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 14px rgb(124 58 237 / .45)); }
    .bag-whole use { transform-box: fill-box; transform-origin: 50% 100%; }
    .bag-whole .bag-bow { transform-origin: 50% 50%; }
    .bag-beam { position: absolute; bottom: 66%; left: 50%; width: 80%; height: 85%; translate: -50% 0; transform: scaleY(0); transform-origin: 50% 100%; background: radial-gradient(ellipse 50% 100% at 50% 100%, #fff, color-mix(in srgb, var(--amber-500) 75%, transparent) 35%, transparent 72%); filter: blur(6px); opacity: 0; }
    .bag-burst-flash { position: absolute; inset: -60% -40% 20%; 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: 30%; 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-bow { animation: bag-untie .6s .9s cubic-bezier(.2, .7, .3, 1) forwards; }
    .is-burst .bag-sack { animation: bag-puff .9s .9s ease-out forwards; }
    .is-burst .bag-beam { animation: bag-beam .9s 1s ease-out 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; }
    .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-untie { 30% { transform: translateY(-6px) scale(1.15); } to { transform: translate(16px, -80px) rotate(40deg) scale(.8); opacity: 0; } }
    @keyframes bag-puff { 25% { transform: scale(1.1, .88); } 55% { transform: scale(.94, 1.1); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
    @keyframes bag-beam { 35% { transform: scaleY(1); opacity: 1; } to { transform: scaleY(1.1); 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 { animation: none; }
        .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: contain; transition: opacity .35s ease; }
    .pkg-media img.is-loading { opacity: 0; }
    .pkg-media .media-placeholder { padding: 8px; font-size: 18px; }
    .pkg-media .media-placeholder > :is(span, small) { display: none; }
    /* Many packages: a sticky finder (search + group tabs) over the cards; 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; }
    .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; }
    /* Service and Khu CTV packages as Shopee product cards: the square item picture on a soft spotlight in the shop colour, with "FLASH SALE" and "Phổ biến" on its left edge, how much below the old price in the yellow corner and "Hết hàng" across it; then the name on two lines, how long it still sells, the red price over the struck one and the price per Robux. The round + floats on the picture's bottom right corner and turns into a tick with a little bounce when picked, the picture lifts and its spotlight warms. */
    .svc-layout .pkg { display: flex; flex-direction: column; border-radius: var(--radius-sm); }
    .svc-layout .pkg:has(input:checked)::after { content: none; }
    .svc-layout .pkg-media { position: relative; aspect-ratio: 1; overflow: hidden; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--pick) 20%, transparent), transparent 66%), var(--surface-2); transition: background .2s ease; }
    .svc-layout .pkg-media > img { display: block; padding: 9%; filter: drop-shadow(0 6px 6px color-mix(in srgb, var(--pick) 28%, transparent)); transition: transform .25s ease, opacity .35s ease; }
    .svc-layout .pkg-media .media-placeholder { padding: var(--sp-2); font-size: var(--fs-lg); }
    .svc-layout .pkg-media > .pkg-coin { width: 100%; height: 100%; border: 0; background: radial-gradient(60% 45% at 50% 46%, color-mix(in srgb, var(--coin) 34%, transparent), transparent 75%); }
    .svc-layout .pkg-media > .pkg-coin .pkg-coin-stack { justify-content: center; width: 100%; }
    .svc-layout .pkg-media > .pkg-coin svg { width: 30%; height: auto; }
    .svc-layout .pkg-media > .pkg-coin svg:nth-child(2) { width: 38%; height: auto; }
    .svc-layout .pkg:has(input:checked) .pkg-media { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--pick) 38%, transparent), transparent 70%), color-mix(in srgb, var(--pick) 8%, var(--surface-2)); }
    .svc-layout .pkg:has(input:checked) .pkg-media > img { transform: translateY(-4%) scale(1.04); }
    /* .pkg as the selector part outranks ".pkg.is-popular .tile-badge" (top: 25px), which would stretch the badge down the whole picture. */
    .svc-layout .pkg .pkg-media .tile-badge { top: auto; right: auto; bottom: var(--sp-1); left: var(--sp-1); }
    .svc-layout .pkg-media .pkg-popular { top: 0; left: 0; border-radius: 0 0 var(--radius-xs) 0; transform: none; }
    .svc-layout .pkg-media .pkg-out { top: 50%; transform: translate(-50%, -50%); }
    .svc-layout .pkg-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.7em; margin: 0; padding: var(--sp-2) var(--sp-2) 0; overflow: hidden; color: var(--ink); font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; }
    .svc-layout .pkg-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: var(--sp-1) 0 0; padding: 0 var(--sp-2); }
    .svc-layout .pkg-tags > * { margin: 0; }
    .svc-layout .pkg-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--sp-1); margin: auto 0 0; padding: var(--sp-1) var(--sp-2) var(--sp-2); line-height: 1.3; }
    .svc-layout .pkg-price .price { color: var(--red-600); font-size: var(--fs-md); font-weight: 800; letter-spacing: -.01em; }
    .svc-layout .pkg-price .price-old { color: var(--muted); font-size: var(--fs-xs); }
    .svc-layout .pkg-rate, .svc-layout .pkg-unit { margin: 0; font-size: var(--fs-xs); }
    .svc-layout .pkg-rate { flex-basis: 100%; }
    .svc-layout .pkg-pick { z-index: 1; right: var(--sp-2); bottom: var(--sp-2); width: 30px; height: 30px; box-shadow: var(--shadow-card); font-size: var(--fs-lg); }
    .svc-layout .pkg:has(input:checked) .pkg-pick { animation: pkg-pick-pop .35s ease-out; }
    .svc-layout .pkg.is-sold-out .pkg-price .price { color: var(--muted); }
    @keyframes pkg-pick-pop { 45% { transform: scale(1.28); } }
    @media (prefers-reduced-motion: reduce) { .svc-layout .pkg:has(input:checked) .pkg-pick { animation: none; } .svc-layout .pkg-media > img { transition: opacity .35s ease; } }
    /* Picked packages at checkout (service #cart, stall #mk-cart): each line leads with the package's picture (PkgPick.thumb in shop-core.js). */
    .svc-cart { padding: var(--sp-1) var(--sp-3); border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--fs-sm); font-weight: 500; }
    .svc-cart > span { display: block; padding: var(--sp-2) 0; }
    .svc-cart > div { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; color: var(--ink); }
    .svc-cart > div + div { border-top: 1px dashed var(--border); }
    .svc-cart b { flex: none; color: var(--accent); font-variant-numeric: tabular-nums; }
    .svc-line > span:not(.pick-thumb) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
    .svc-line-x { flex: none; display: grid; place-items: center; width: var(--control-h); height: var(--control-h); margin: calc(var(--sp-2) * -1) calc(var(--sp-2) * -1) calc(var(--sp-2) * -1) 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font-size: var(--fs-lg); cursor: pointer; transition: color .15s, background .15s; }
    .svc-line-x:hover, .svc-line-x:focus-visible { background: var(--bad-soft); color: var(--bad); }
    .pick-thumb { --thumb: var(--control-h); flex: none; display: grid; place-items: center; width: var(--thumb); height: var(--thumb); overflow: hidden; border-radius: var(--radius-xs); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
    .pick-thumb > img { width: 100%; height: 100%; object-fit: contain; }
    .pick-thumb.is-coin { background: radial-gradient(circle at 50% 40%, var(--accent-soft), var(--surface-2) 72%); }
    .pick-thumb.is-coin > svg { width: 72%; height: 72%; }
    .pick-thumb > .media-placeholder { padding: 0; font-size: var(--fs-2xs); }
    .pick-thumb > .media-placeholder > :not(i) { display: none; }
    .pick-thumb > .media-placeholder > i { width: auto; height: auto; background: none; box-shadow: none; font-size: var(--fs-lg); }
    /* The picture flying from a picked card to the pay bar, the checkout or the header cart (PkgPick launch): the outer
       layer moves sideways, the middle one up and down, the picture shrinks. */
    .pick-fly { position: fixed; z-index: 1800; width: var(--fly-size); height: var(--fly-size); pointer-events: none; will-change: transform; }
    .pick-fly > span { display: block; will-change: transform; }
    .pick-fly .pick-thumb { --thumb: var(--fly-size); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); will-change: transform, opacity; }
    .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 ========== */
    /* Perks on the left (icon in a soft tile, centred on its line), wallet on the right behind a divider: on a phone the wallet drops to its own row, the button at its far end; the button is the only solid orange. */
    .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: 8px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
    .buy-perks li { display: inline-flex; align-items: center; gap: 7px; line-height: 1.3; }
    .buy-perks i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 15px; }
    /* Rules of the card shop: the "Cấm" text in a red box, the "Lưu ý" text in a yellow one (both set in admin), each led by its icon in the box's colour, 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-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 > i { flex: none; color: var(--tone); font-size: var(--fs-lg); line-height: 1.15; }
    .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 { flex: 1 1 100%; display: flex; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px dashed var(--border); }
    .buy-wallet > div { display: grid; gap: 1px; }
    .buy-wallet small { color: var(--muted); font-size: 12px; line-height: 1.3; }
    .buy-wallet b { color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.25; }
    .buy-wallet .btn { margin-left: auto; }
    .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; }
    /* Card shop face values drawn as the scratch card itself: brand-coloured face, logo chip, value, silver scratch strip; a light sweeps across when picked. */
    .pkg-scratch { padding: var(--sp-2) var(--sp-2) 0; }
    .pkg-scratch:has(input:checked)::after { top: 3px; right: 3px; z-index: 2; box-shadow: 0 0 0 2px var(--paper); }
    .scard { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.586; padding: var(--sp-2) var(--sp-3); overflow: hidden; border-radius: var(--radius-sm); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--paper) 24%, transparent), transparent 55%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 58%, var(--zinc-800))); color: var(--paper); box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--brand) 85%, transparent); transition: transform .2s, box-shadow .2s; }
    .scard::before { content: ''; position: absolute; right: -28%; bottom: -60%; z-index: -1; width: 85%; aspect-ratio: 1; border: 12px solid color-mix(in srgb, var(--paper) 11%, transparent); border-radius: 50%; }
    .scard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--paper) 38%, transparent) 50%, transparent 70%); transform: translateX(-130%); pointer-events: none; }
    .pkg-scratch:hover .scard { transform: translateY(-2px); box-shadow: 0 12px 20px -10px color-mix(in srgb, var(--brand) 90%, transparent); }
    .pkg-scratch:has(input:checked) .scard::after { animation: scard-shine .8s ease-out; }
    @keyframes scard-shine { to { transform: translateX(130%); } }
    .scard-logo { display: inline-flex; align-self: flex-start; align-items: center; max-width: 75%; height: 22px; padding: 0 var(--sp-2); border-radius: var(--radius-pill); background: var(--paper); box-shadow: 0 2px 6px color-mix(in srgb, var(--zinc-800) 25%, transparent); }
    .scard-logo .telco-logo { width: auto; max-width: 100%; height: min(14px, calc(20px / sqrt(var(--ar, 3)))); object-fit: contain; }
    .scard-logo .telco-mark { height: 16px; padding: 0 var(--sp-1); border-radius: var(--radius-xs); font-size: var(--fs-2xs); box-shadow: none; }
    .scard-value { display: block; color: var(--paper); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px color-mix(in srgb, var(--zinc-800) 40%, transparent); }
    .scard-value small { margin-left: 1px; font-size: var(--fs-sm); font-weight: 700; }
    .scard-strip { height: 9px; border-radius: var(--radius-pill); background: repeating-linear-gradient(45deg, transparent 0 3px, color-mix(in srgb, var(--zinc-800) 7%, transparent) 3px 5px), linear-gradient(100deg, var(--zinc-300), var(--paper) 45%, var(--zinc-300)); box-shadow: inset 0 1px 1px color-mix(in srgb, var(--zinc-800) 20%, transparent); }
    .pkg-scratch .pkg-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px var(--sp-1); padding: var(--sp-2) var(--sp-1); }
    .pkg-scratch .pkg-body .price { display: inline; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
    .scard-off { padding: 0 var(--sp-1); border-radius: var(--radius-pill); background: var(--ok-soft); color: var(--ok-ink); font-size: var(--fs-2xs); font-style: normal; font-weight: 700; line-height: 1.5; }
    /* A card the provider ran out of: "Hết hàng" centred on the greyed tile. */
    .pkg.pkg-scratch.is-sold-out > .scard-out { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; filter: none; opacity: 1; pointer-events: none; }
    .scard-out .pkg-out { position: static; transform: none; }
    @media (prefers-reduced-motion: reduce) { .scard, .scard::after { transition: none; animation: none; } }

    /* ========== 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. */

    .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-event { display: flex; width: fit-content; align-items: center; gap: var(--sp-1); margin-top: var(--sp-1); padding: 1px var(--sp-2); border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--violet-600), var(--pink-500)); color: var(--photo-ink); font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; }
    .pkg-ends { display: flex; width: fit-content; align-items: center; gap: var(--sp-1); margin-top: var(--sp-1); padding: 1px var(--sp-2); border-radius: var(--radius-pill); background: var(--warn-soft); color: var(--warn-ink); font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; }
    .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 2px 5px color-mix(in srgb, var(--pick) 20%, 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; }
    /* "Hết hàng" (Admin → Dịch vụ): the package stays on show but goes dark under a big "HẾT HÀNG" stamp and cannot be picked;
       a whole service out of stock fades every package and shuts the pay button (.svc-out above the form says why). */
    .pkg:has(input:disabled) { cursor: not-allowed; }
    .pkg:has(input:disabled):hover { border-color: var(--panel-border); transform: none; }
    .pkg:has(input:disabled) > :not(.pkg-out, input) { filter: grayscale(1); opacity: .5; }
    .pkg:has(input:disabled) .pkg-pick { display: none; }
    .pkg.is-sold-out::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: var(--overlay); pointer-events: none; }
    .pkg.is-sold-out > .pkg-name { position: relative; z-index: 2; opacity: .8; }
    .pkg-out { position: absolute; top: 20px; left: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 2px solid #fff; border-radius: 8px; background: var(--bad); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); color: #fff; font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: .4px; line-height: 16px; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); }
    .pkg-out i { font-size: 15px; }
    .svc-out { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bad-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 30%, transparent); color: var(--text); }
    .gt-row + .svc-out { margin-top: 12px; }
    .svc-out > .svc-out-cat { flex: none; width: 80px; height: 80px; margin: -16px -4px -16px -12px; }
    .svc-out > span:nth-child(2) { flex: 1; min-width: 0; }
    .svc-out b { display: block; color: var(--bad-ink); font-size: 14px; }
    .svc-out small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.4; }
    .svc-out strong { color: var(--ink-strong); }
    .gt-product-out { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; color: var(--bad-ink); font-size: 11.5px; font-weight: 700; }
    .gt-product-out i { font-size: 13px; }
    .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 2px 5px color-mix(in srgb, var(--warn) 18%, 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); }
    .pkg-coin.is-pass { --coin-light: var(--pass-light); --coin: var(--pass); --coin-deep: var(--pass-deep); }
    .pkg-coin.is-pack { --coin-light: var(--pack-light); --coin: var(--pack); --coin-deep: var(--pack-deep); }
    .pkg-coin.is-delta { --coin-light: var(--delta-light); --coin: var(--delta); --coin-deep: var(--delta-deep); }
    .pkg-coin.is-kimphieu { --coin-light: var(--kimphieu-light); --coin: var(--kimphieu); --coin-deep: var(--kimphieu-deep); }
    .pkg-coin.is-uc { --coin-light: var(--uc-light); --coin: var(--uc); --coin-deep: var(--uc-deep); }
    .pkg-coin.is-cp { --coin-light: var(--cp-light); --coin: var(--cp); --coin-deep: var(--cp-deep); }
    .pkg-coin.is-rp { --coin-light: var(--rp-light); --coin: var(--rp); --coin-deep: var(--rp-deep); }
    .pkg-coin.is-vp { --coin-light: var(--vp-light); --coin: var(--vp); --coin-deep: var(--vp-deep); }
    .pkg-coin.is-tc { --coin-light: var(--tc-light); --coin: var(--tc); --coin-deep: var(--tc-deep); }
    .pkg-coin.is-wildcore { --coin-light: var(--wildcore-light); --coin: var(--wildcore); --coin-deep: var(--wildcore-deep); }
    .pkg-coin.is-xuga { --coin-light: var(--xuga-light); --coin: var(--xuga); --coin-deep: var(--xuga-deep); }
    .pkg-coin.is-bonds { --coin-light: var(--bonds-light); --coin: var(--bonds); --coin-deep: var(--bonds-deep); }
    .pkg-coin.is-phieuca { --coin-light: var(--phieuca-light); --coin: var(--phieuca); --coin-deep: var(--phieuca-deep); }
    .pkg-coin.is-xucf { --coin-light: var(--xucf-light); --coin: var(--xucf); --coin-deep: var(--xucf-deep); }
    .pkg-coin.is-phieuvang { --coin-light: var(--phieuvang-light); --coin: var(--phieuvang); --coin-deep: var(--phieuvang-deep); }
    .pkg-coin.is-cash { --coin-light: var(--cash-light); --coin: var(--cash); --coin-deep: var(--cash-deep); }
    .pkg-coin.is-coin { --coin-light: var(--coinx-light); --coin: var(--coinx); --coin-deep: var(--coinx-deep); }
    .pkg-coin.is-rainbow { --coin-light: var(--pass-light); --coin: var(--pass); --coin-deep: var(--pass-deep); }
    .gt-coin-r1 { fill: var(--pack); } .gt-coin-r2 { fill: var(--honor); } .gt-coin-r3 { fill: var(--uc); } .gt-coin-r4 { fill: var(--fv); } .gt-coin-r5 { fill: var(--gem); } .gt-coin-r6 { fill: var(--pass); }
    .gt-coin-comb { fill: var(--pack); } .gt-coin-beak { fill: var(--honor); }
    .gt-coin-text { fill: var(--coin-deep); font-family: inherit; font-weight: 900; }
    .pkg-coin:not(:has(> b)) .pkg-coin-stack { margin-top: 0; }
    .pkg-coin:not(:has(> b)) svg { width: 46px; height: 46px; }
    .pkg-coin:not(:has(> b)) svg + svg { margin-left: -18px; }
    .pkg-coin:not(:has(> b)) svg:nth-child(2) { width: 54px; height: 54px; margin-bottom: 6px; }
    .gt-coin-gem { fill: var(--gem-light); }
    .gt-coin-gem-shade { fill: var(--gem); }
    .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; }
    /* Server / type choices (a "select" input): tap tiles like the login ones, never a closed dropdown. */
    .gt-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
    .gt-pick label { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: var(--control-h); padding: 6px 10px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
    .gt-pick input { position: absolute; opacity: 0; pointer-events: none; }
    .gt-pick label:hover { border-color: var(--primary); }
    .gt-pick label:active { transform: scale(.97); }
    .gt-pick label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--card)); box-shadow: inset 0 0 0 1px var(--primary); color: var(--ink-strong); }
    .gt-pick label:has(input:checked)::after { content: "✓"; position: absolute; top: -1px; right: -1px; width: 18px; height: 16px; border-radius: 0 var(--radius-sm) 0 8px; background: var(--primary); color: var(--card); font-size: var(--fs-2xs); font-weight: 700; line-height: 16px; text-align: center; }
    .gt-pick label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
    /* "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; }
    /* "Dùng xu" at checkout (shop.partials.xu-use): a coin, the xu line and a gold switch in one tappable row; lit gold while on, greyed with
       the check-in link while the customer has none; "Mua xong nhận +N xu" under it. */
    .xu-use { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0 0; padding: var(--sp-2) var(--sp-3); border: 1px solid color-mix(in srgb, var(--coin) 35%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--coin) 8%, var(--card)); transition: background .2s, border-color .2s; }
    .xu-use.is-on { border-color: var(--coin); background: color-mix(in srgb, var(--coin) 18%, var(--card)); }
    .xu-use.is-empty { border-color: var(--line); background: var(--surface-2); }
    .xu-use-row { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--control-h); margin: 0; font-weight: 400; cursor: pointer; }
    .xu-use.is-empty .xu-use-row { cursor: default; }
    .xu-use-coin { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--coin-light), var(--coin)); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--coin-deep) 40%, transparent); color: var(--coin-deep); font-size: var(--fs-lg); }
    .xu-use.is-on .xu-use-coin { animation: checkin-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
    .xu-use.is-empty .xu-use-coin { background: var(--line); box-shadow: none; color: var(--muted); }
    .xu-use-text { flex: 1; min-width: 0; }
    .xu-use-text b { display: block; color: var(--ink); font-size: var(--fs-base); }
    .xu-use-text small { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 1.35; }
    .xu-use.is-on .xu-use-text small { color: color-mix(in srgb, var(--coin) 65%, var(--ink)); font-weight: 600; }
    .xu-switch { position: relative; flex: none; width: 48px; height: 28px; }
    .xu-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
    .xu-switch input:disabled { cursor: not-allowed; }
    .xu-switch span { position: absolute; inset: 0; border: 2px solid color-mix(in srgb, var(--muted) 70%, transparent); border-radius: var(--radius-pill); background: var(--surface-2); transition: background .2s, border-color .2s; }
    .xu-switch span::after { content: ''; position: absolute; top: 50%; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transform: translateY(-50%); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), width .2s, height .2s, left .2s, background .2s; }
    .xu-switch input:hover:not(:disabled) + span { border-color: var(--coin); }
    .xu-switch input:checked + span { border-color: var(--coin); background: linear-gradient(135deg, var(--coin-light), var(--coin)); }
    .xu-switch input:checked + span::after { left: 2px; width: 20px; height: 20px; background: var(--card); box-shadow: 0 1px 3px color-mix(in srgb, var(--coin-deep) 45%, transparent); transform: translate(20px, -50%); }
    .xu-switch input:disabled + span { opacity: .45; }
    .xu-switch input:focus-visible + span { outline: 2px solid var(--coin); outline-offset: 2px; }
    .xu-use-get { display: inline-flex; align-items: center; justify-self: start; gap: var(--sp-1); min-height: var(--control-h); margin: calc(var(--sp-2) * -1) 0 0; color: var(--primary); font-size: var(--fs-sm); font-weight: 700; }
    .xu-earn { display: flex; align-items: center; gap: var(--sp-1); margin: 0; padding-top: var(--sp-2); border-top: 1px dashed color-mix(in srgb, var(--coin) 35%, var(--line)); color: var(--text-2); font-size: var(--fs-sm); }
    .xu-earn[hidden] { display: none; }
    .xu-earn i { color: var(--coin-ink); font-size: var(--fs-md); }
    .xu-earn b { color: var(--coin-ink); }
    @media (prefers-reduced-motion: reduce) { .xu-use.is-on .xu-use-coin { animation: none; } .xu-switch span::after { transition: none; } }
    /* One-tap welcome code under a coupon box: a gold pill with a soft shine; it settles once used. */
    .gift-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; justify-self: start; max-width: 100%; margin: 6px 0 0; padding: 6px 12px; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--warn) 60%, var(--border)); border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); font: inherit; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
    .gift-chip i { flex: none; font-size: 16px; }
    .gift-chip b { color: var(--ink-strong); letter-spacing: .03em; }
    .gift-chip:hover { box-shadow: 0 2px 10px color-mix(in srgb, var(--warn) 25%, transparent); }
    .gift-chip:active { transform: scale(.97); }
    .gift-chip.is-used { opacity: .55; }
    .gift-chip.is-used::after { animation: none; }
    .buy-coupon .gift-chip { 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; }
    /* The service's conditions to tick before paying (shop.partials.service-requirements). */
    .gt-terms { display: grid; gap: 8px; margin-top: 12px; }
    .gt-term { display: flex; align-items: flex-start; gap: 10px; min-height: var(--control-h); margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s; }
    .gt-term input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
    .gt-term span { min-width: 0; overflow-wrap: anywhere; }
    .gt-term:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
    .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 > .bar-thumbs { flex: none; display: flex; }
    .bar-thumbs[hidden] { display: none; }
    .bar-thumbs > .pick-thumb { --thumb: calc(var(--control-h) - var(--sp-1)); border: 2px solid var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); animation: thumb-in .3s ease-out; }
    .bar-thumbs > .pick-thumb + .pick-thumb { margin-left: calc(var(--sp-4) * -1); }
    @keyframes thumb-in { from { transform: scale(.6); opacity: 0; } }
    @media (prefers-reduced-motion: reduce) { .bar-thumbs > .pick-thumb { animation: none; } }
    .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 3px 8px color-mix(in srgb, var(--primary) 18%, transparent); }
    .has-paybar .chat-fab, .has-paybar .support-fab { transform: translateY(-68px); transition: transform .2s; }
    .has-paybar .to-top { transform: translateY(-68px); }
    .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; }
    /* Card page values with card art: a small card with the value written on it, the price under it. */
    .gt-pkgs .pkg:has(.gc-pkg-art) { align-items: center; gap: 6px; padding: 10px var(--sp-2); }
    .gt-pkgs .pkg:has(.gc-pkg-art) .pkg-body { padding: 0; text-align: center; }
    .gc-pkg-art { position: relative; flex: none; width: 96px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm); box-shadow: 0 2px 6px rgb(15 23 42 / .18); }
    .gc-pkg-art img { width: 100%; height: 100%; object-fit: cover; }
    .gc-pkg-art b { position: absolute; inset: auto 0 0; padding: 10px 4px 3px; background: linear-gradient(180deg, transparent, rgb(0 0 0 / .85) 55%); color: #fff; font-size: var(--fs-xs); font-weight: 800; line-height: 1.2; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .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-color: color-mix(in srgb, var(--warn) 45%, var(--border)); 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-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 3px 7px color-mix(in srgb, var(--primary) 14%, 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 5px 12px color-mix(in srgb, var(--primary) 13%, 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: var(--ok); box-shadow: var(--shadow-card); }
    .od-hero.is-info { background: linear-gradient(135deg, var(--info), color-mix(in srgb, var(--info) 70%, #000)); box-shadow: 0 5px 12px color-mix(in srgb, var(--info) 13%, transparent); }
    .od-hero.is-bad { background: linear-gradient(135deg, var(--bad), color-mix(in srgb, var(--bad) 70%, #000)); box-shadow: 0 5px 12px color-mix(in srgb, var(--bad) 12%, 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; }
    /* The witch cat in place of the round icon (<x-shop.order-hero-icon>): taller than the band's text, so it reaches into the padding; it bobs while the shop is still working. */
    .od-hero-cat { flex: none; width: 92px; height: 92px; margin: -18px -8px -18px -14px; object-fit: contain; }
    @media (prefers-reduced-motion: no-preference) { .od-hero.is-wait .od-hero-cat { animation: empty-cat-bob 2.4s ease-in-out infinite; } }
    .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, .so-again { 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 2px 5px color-mix(in srgb, var(--ok) 15%, transparent); }
    .so-steps .is-now .so-step-dot { background: var(--card); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary), 0 2px 6px color-mix(in srgb, var(--primary) 11%, 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 2px 5px color-mix(in srgb, var(--bad) 15%, 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-lock { margin-top: var(--sp-2); border-radius: var(--radius-sm); background: var(--info-soft); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
    .od-lock summary { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--control-h); padding: var(--sp-2) var(--sp-3); cursor: pointer; list-style: none; }
    .od-lock summary::-webkit-details-marker { display: none; }
    .od-lock summary > i { flex: none; font-size: var(--fs-lg); color: var(--info); }
    .od-lock summary > span { flex: 1; min-width: 0; }
    .od-lock .od-lock-caret { color: var(--muted); transition: transform .2s ease; }
    .od-lock[open] .od-lock-caret { transform: rotate(180deg); }
    .od-lock p { margin: 0; padding: 0 var(--sp-3) var(--sp-3); overflow-wrap: anywhere; }
    .od-lock .od-lock-more { display: flex; align-items: center; gap: var(--sp-1); min-height: var(--control-h); padding: 0 var(--sp-3) var(--sp-2); color: var(--primary); font-weight: 600; text-decoration: none; }
    @media (prefers-reduced-motion: reduce) { .od-lock .od-lock-caret { transition: none; } }
    .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); }
    /* USDT invoice: the wallet's QR on white so any wallet app reads it, and the next-check line under the details. */
    .usdt-qr { width: min(220px, 70%); margin: var(--sp-3) auto; padding: var(--sp-2); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--photo-ink); }
    .usdt-qr svg { display: block; width: 100%; height: auto; }
    .usdt-wait { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin: var(--sp-3) 0 0; color: var(--muted); font-size: var(--fs-sm); }
    /* 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 > .od-help-cat { flex: none; width: 84px; height: 84px; margin: -14px -6px -14px -12px; }
    .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: var(--grad); color: #fff; box-shadow: var(--shadow-card); 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-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; }
    /* Account "Điểm danh nhận xu" (account/checkin): a card in coin gold with the witch cat mascot and the xu held, 7 day cells in one row (today's ringed in coin gold,
       ticked days green, the 7th with its bonus a gift) and the claim button; under it the xu history. On claim shop-core.js pops today's
       coin, sends coins flying up from the button (--fly-x / --fly-delay per coin) and the cat hops into its cheering pose. */
    .checkin-card { position: relative; display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); padding: var(--sp-4) var(--sp-3); border: 1px solid color-mix(in srgb, var(--coin) 30%, var(--line)); border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--coin) 16%, var(--card)), var(--card) 65%); box-shadow: var(--shadow-card); }
    .checkin-held { display: flex; align-items: center; gap: var(--sp-3); }
    .checkin-cat { flex: none; width: 120px; height: 120px; margin: calc(var(--sp-3) * -1) calc(var(--sp-2) * -1); object-fit: contain; }
    .checkin-cat.is-cheering { animation: checkin-hop .6s cubic-bezier(.3, 1.6, .5, 1); }
    @keyframes checkin-hop { 0% { scale: .85; translate: 0 6px; } 50% { scale: 1.08; translate: 0 -8px; } 100% { scale: 1; translate: 0 0; } }
    .checkin-held small { display: block; color: var(--muted); font-size: var(--fs-sm); }
    .checkin-held b { display: block; color: var(--coin-ink); font-size: var(--fs-2xl); line-height: 1.1; }
    .checkin-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
    .checkin-day { display: grid; align-content: start; justify-items: center; gap: var(--sp-1); min-width: 0; padding: var(--sp-2) 0; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; }
    .checkin-day b { color: var(--ink); font-size: var(--fs-xs); line-height: 1; }
    .checkin-day small { max-width: 100%; color: var(--muted); font-size: var(--fs-2xs); line-height: 1.1; }
    .checkin-coin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--coin-light), var(--coin)); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--coin-deep) 40%, transparent); color: var(--coin-deep); font-size: var(--fs-md); }
    .checkin-day.is-today { border-color: var(--coin); background: color-mix(in srgb, var(--coin) 14%, var(--card)); }
    .checkin-day.is-today small { color: var(--coin-ink); font-weight: 700; }
    .checkin-day.is-done { background: var(--ok-soft); }
    .checkin-day.is-done .checkin-coin { background: var(--ok); box-shadow: none; color: var(--card); }
    .checkin-day.is-done b { color: var(--ok-ink); }
    .checkin-day.is-claimed .checkin-coin { animation: checkin-pop .7s cubic-bezier(.3, 1.6, .5, 1); }
    .checkin-claim { width: 100%; }
    .checkin-fly { position: absolute; top: var(--fly-top); left: var(--fly-left); z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--coin-light), var(--coin)); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--coin-deep) 40%, transparent); pointer-events: none; animation: checkin-fly .9s ease-out var(--fly-delay, 0s) both; }
    @keyframes checkin-pop { 0% { scale: .4; rotate: -20deg; } 60% { scale: 1.3; } 100% { scale: 1; rotate: 0deg; } }
    @keyframes checkin-fly { 0% { opacity: 0; translate: 0 0; scale: .5; } 20% { opacity: 1; } 100% { opacity: 0; translate: var(--fly-x, 0) -90px; scale: 1.1; rotate: 200deg; } }
    @media (prefers-reduced-motion: reduce) { .checkin-day.is-claimed .checkin-coin, .checkin-fly, .checkin-cat.is-cheering { animation: none; } .checkin-fly { display: none; } }
    .xu-log { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
    .xu-log li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
    .xu-log li > div { flex: 1; min-width: 0; }
    .xu-log b, .xu-log small { display: block; }
    .xu-log small { color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
    .xu-log-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--coin) 18%, var(--card)); color: var(--coin-ink); font-size: var(--fs-lg); }
    .xu-log-icon.is-out { background: var(--surface-2); color: var(--muted); }
    .xu-log-amount { flex: none; color: var(--ok-ink); font-weight: 700; text-align: right; }
    .xu-log-amount.is-out { color: var(--ink); }
    /* "Cách nhận thêm xu": one row per way (check-in, photo review, purchase), a coin-gold icon, what it pays and a button to go do it; today's check-in done greys its row. */
    .xu-ways { margin-bottom: var(--sp-4); }
    .xu-ways-list { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
    .xu-ways-list li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid color-mix(in srgb, var(--coin) 30%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--coin) 6%, var(--card)); }
    .xu-ways-list li.is-done { border-color: var(--line); background: var(--surface-2); }
    .xu-ways-list li > div { flex: 1; min-width: 0; }
    .xu-ways-list b, .xu-ways-list small { display: block; }
    .xu-ways-list b { color: var(--ink); font-size: var(--fs-base); }
    .xu-ways-list small { color: var(--muted); font-size: var(--fs-sm); line-height: 1.35; }
    .xu-ways-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--coin-light), var(--coin)); color: var(--coin-deep); font-size: var(--fs-lg); }
    .xu-ways-list li.is-done .xu-ways-icon { background: var(--ok); color: var(--card); }
    .xu-ways-list .btn { flex: none; min-height: var(--control-h); }
    .xu-ways-state { flex: none; display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--ok-ink); font-size: var(--fs-sm); font-weight: 700; }

    /* ========== 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-track { display: inline-flex; margin: 0; animation: home-marquee 22s linear infinite; }
    .home-marquee-track span { padding-right: var(--sp-10); }
    @keyframes home-marquee { to { transform: translateX(-50%); } }
    /* 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; }
    /* First-deposit offer: the same card in the money green, the gift giving a small shake now and then. */
    .home-first-deposit { background: linear-gradient(100deg, var(--ok-soft), var(--card) 70%); box-shadow: var(--shadow-card), inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent); }
    .home-first-deposit > i:first-child { background: var(--ok); color: #fff; }
    .home-first-deposit b { color: var(--ok-ink); }
    .home-first-deposit em { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ok); color: #fff; font-size: var(--fs-sm); font-style: normal; font-weight: 700; }
    @media (prefers-reduced-motion: no-preference) {
        .home-first-deposit > i:first-child { animation: home-gift-shake 4s ease-in-out infinite; }
        @keyframes home-gift-shake { 0%, 84%, 100% { transform: none; } 88% { transform: rotate(-12deg) scale(1.08); } 92% { transform: rotate(10deg) scale(1.08); } 96% { transform: rotate(-6deg); } }
    }
    .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; }
    .box-tabs .box-tab-top img { width: 20px; height: 20px; margin-right: 4px; vertical-align: -5px; }
    @media (max-width: 1023.98px) {
        .deposit-box.is-guest :is(.box-tabs, select, .box-row, .card-hint, .box-foot) { display: none; }
        .deposit-box.is-guest h2 { margin-bottom: var(--sp-3); }
    }
    /* Phone home top, marketplace style: .home-search (a big search pill, the most searched words as chips under it) and
       .home-wallet (balance · xu · coupons in one row, in place of the deposit box). From tablets up the header search and the deposit box take over. */
    .home-search { position: relative; margin-bottom: var(--sp-3); }
    .home-search-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-4); border-radius: var(--radius-pill); background: var(--card); box-shadow: var(--shadow-card), inset 0 0 0 2px color-mix(in srgb, var(--primary) 70%, transparent); transition: box-shadow .15s; }
    .home-search-bar:focus-within { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--primary), var(--focus-ring); }
    .home-search-bar > i { color: var(--primary); font-size: var(--fs-lg); }
    .home-search-bar input { min-height: var(--control-h); padding: 0; border: 0; background: none; box-shadow: none; font-size: var(--fs-base); }
    .home-search-bar input:focus { border: 0; box-shadow: none; }
    .home-search-bar button { min-height: 36px; padding: 0 var(--sp-5); border: 0; border-radius: var(--radius-pill); background: var(--grad); color: var(--photo-ink); font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
    .home-search-bar button:active { transform: scale(.96); }
    .home-search .search-hints { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
    .home-search .search-hints:empty { display: none; }
    .home-search .search-hints::-webkit-scrollbar { display: none; }
    .home-search .search-hints a { flex: none; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); font-size: var(--fs-xs); white-space: nowrap; }
    .home-search .suggest-box { top: calc(var(--control-h) + var(--sp-2) + 6px); }
    .home-wallet { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-bottom: var(--sp-4); padding: var(--sp-3) 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); }
    .home-wallet a { position: relative; display: grid; gap: var(--sp-1); min-width: 0; padding: 0 var(--sp-2) 0 var(--sp-3); color: var(--ink); -webkit-tap-highlight-color: transparent; }
    .home-wallet a + a { border-left: 1px solid var(--border); }
    .home-wallet a:active { opacity: .7; }
    .home-wallet small { display: flex; align-items: center; gap: var(--sp-1); color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
    .home-wallet small i { color: var(--primary); font-size: var(--fs-md); }
    .home-wallet .is-xu small i { color: var(--coin-ink); }
    .home-wallet .is-coupon small i { color: var(--red-500); }
    .home-wallet b { overflow: hidden; font-size: var(--fs-md); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
    .home-wallet em { position: absolute; top: calc(var(--sp-1) * -1); right: var(--sp-2); padding: 0 var(--sp-1); border-radius: var(--radius-pill); background: var(--red-500); color: var(--photo-ink); font-size: var(--fs-2xs); font-style: normal; font-weight: 700; line-height: 16px; }
    @media (max-width: 767.98px) {
        .deposit-box { display: none; }
        .shortcuts.is-two-rows { grid-template-rows: repeat(2, auto); row-gap: var(--sp-3); }
    }
    @media (min-width: 768px) {
        .home-search, .home-wallet { display: none; }
    }
    @keyframes top-trophy { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }
    /* Đua top nạp (x-shop.top-deposit-board): a podium for the top 3 in gold / silver / bronze (--tone-*),
       amounts in orange, then where the customer stands with a meter to the next place. .is-playing (shop-core.js, when
       the board first scrolls into view and on each tab switch) raises the podium. Wide boards (service pages on a
       computer) put the customer's standing beside the podium. */
    .tdb { container-type: inline-size; position: relative; }
    .tdb.card { padding: 16px; background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--rank-gold-a) 24%, var(--card)), var(--card) 62%); }
    .tdb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
    .tdb-title { display: flex; align-items: center; gap: 10px; }
    .tdb-title > img { flex: none; width: 46px; height: 46px; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--rank-gold-c) 45%, transparent)); }
    .tdb-title b { display: block; color: var(--ink-strong); font-size: 17px; font-weight: 800; }
    .tdb-title small { color: var(--muted); font-size: 12px; }
    .tdb-title > span { min-width: 0; }
    .tdb-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tdb .tdb-teaser { display: -webkit-box; color: var(--orange-500); font-weight: 700; line-height: 1.3; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .tdb:not(.is-folded) .tdb-teaser, .tdb.is-folded .tdb-sub { display: none !important; }
    .tdb-toggle { display: inline-flex; flex: none; align-items: center; gap: 2px; margin-left: auto; padding: 7px 10px 7px 14px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--orange-500), var(--rank-gold-b)); color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; white-space: nowrap; cursor: pointer; box-shadow: 0 8px 16px -10px var(--orange-500); }
    .tdb-toggle i { font-size: 18px; transition: transform .25s; }
    .tdb:not(.is-folded) .tdb-toggle { order: 2; padding: 6px; background: var(--surface-2); color: var(--muted); box-shadow: none; }
    .tdb:not(.is-folded) .tdb-toggle span { display: none; }
    .tdb:not(.is-folded) .tdb-toggle i { transform: rotate(180deg); }
    .tdb:not(.is-folded) .tdb-tabs { order: 3; }
    .tdb.card.is-folded { padding: 10px 12px; cursor: pointer; }
    .tdb.is-folded .tdb-head { flex-wrap: nowrap; margin: 0; }
    .tdb.is-folded .tdb-title { min-width: 0; gap: 8px; }
    .tdb.is-folded .tdb-title > img { width: 38px; height: 38px; }
    .tdb.is-folded .tdb-title b { font-size: 15px; }
    .tdb.is-folded :is(.tdb-tabs, .tdb-panel, .tdb-rewards, .tdb-privacy) { display: none !important; }
    .tdb.is-unfolding > :not(.tdb-head) { animation: tdb-unfold .35s ease-out both; }
    .tdb.is-in-box .tdb-title { display: none; }
    .tdb.is-in-box .tdb-head { justify-content: center; }
    /* In the home deposit box the board fits the card tab's height (home-top sets it) without a scrollbar: a smaller
       podium on short numbered steps, a two-line standing with its meter as a bar along the bottom, the rewards as a gift at the top left
       (tap or hover shows them) and the hide-my-name link as an eye at the top right. */
    .box-panel-top:not([hidden]) { display: flex; flex-direction: column; }
    .box-panel-top > .tdb { display: flex; flex: 1; flex-direction: column; justify-content: space-evenly; gap: 4px; }
    .tdb.is-in-box .tdb-head { margin: 0; }
    .tdb.is-in-box .tdb-tabs button { padding: 3px 12px; font-size: 12px; }
    .tdb.is-in-box .tdb-panel:not([hidden]) { display: flex; flex-direction: column; gap: 5px; }
    .tdb.is-in-box .tdb-podium { gap: 6px; padding-top: 12px; }
    .tdb.is-in-box .tdb-place { gap: 0; line-height: 1.25; }
    .tdb.is-in-box .tdb-avatar { width: 30px; height: 30px; font-size: 13px; }
    .tdb.is-in-box .tdb-place.is-1 .tdb-avatar { width: 38px; height: 38px; font-size: 16px; }
    .tdb.is-in-box .tdb-crown { top: -16px; width: 26px; height: 26px; }
    .tdb.is-in-box .tdb-medal { right: -7px; bottom: -6px; width: 19px; height: 19px; }
    .tdb.is-in-box .tdb-place.is-1 .tdb-medal { width: 22px; height: 22px; }
    .tdb.is-in-box .tdb-place .tdb-name { margin-top: 5px; font-size: 11.5px; }
    .tdb.is-in-box .tdb-place .tdb-total { font-size: 11.5px; }
    .tdb.is-in-box .tdb-place.is-1 .tdb-total { font-size: 12.5px; }
    .tdb.is-in-box .tdb-place .tdb-total.is-open { font-size: 10.5px; }
    .tdb.is-in-box .tdb-you { display: none; }
    .tdb.is-in-box .tdb-place .tdb-step { height: 16px; margin-top: 3px; padding: 0; place-items: center; border-radius: 8px 8px 2px 2px; font-size: 12px; }
    .tdb.is-in-box .tdb-place.is-1 .tdb-step { height: 26px; font-size: 15px; }
    .tdb.is-in-box .tdb-place.is-2 .tdb-step { height: 20px; }
    /* Staff see no standing line, so the podium takes that room: bigger avatars on taller steps. */
    .tdb.is-in-box .tdb-panel:not(:has(.tdb-me)) .tdb-podium { padding-top: 16px; }
    .tdb.is-in-box .tdb-panel:not(:has(.tdb-me)) .tdb-avatar { width: 36px; height: 36px; font-size: 15px; }
    .tdb.is-in-box .tdb-panel:not(:has(.tdb-me)) .tdb-place.is-1 .tdb-avatar { width: 46px; height: 46px; font-size: 19px; }
    .tdb.is-in-box .tdb-panel:not(:has(.tdb-me)) .tdb-crown { top: -19px; width: 30px; height: 30px; }
    .tdb.is-in-box .tdb-panel:not(:has(.tdb-me)) .tdb-place .tdb-step { height: 26px; font-size: 14px; }
    .tdb.is-in-box .tdb-panel:not(:has(.tdb-me)) .tdb-place.is-1 .tdb-step { height: 42px; font-size: 18px; }
    .tdb.is-in-box .tdb-panel:not(:has(.tdb-me)) .tdb-place.is-2 .tdb-step { height: 34px; }
    .tdb.is-in-box .tdb-me { position: relative; gap: 5px 8px; margin: 0; padding: 6px 8px; overflow: hidden; }
    .tdb.is-in-box .tdb-me p { display: -webkit-box; overflow: hidden; font-size: 11.5px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .tdb.is-in-box .tdb-me .tdb-go { padding: 5px 10px; font-size: 12px; }
    .tdb.is-in-box .tdb-meter { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 0; }
    .tdb.is-in-box .tdb-rewards { position: absolute; top: 0; left: 0; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0; border-radius: 50%; cursor: pointer; animation: tdb-gift 2.4s ease-in-out infinite; }
    .tdb.is-in-box .tdb-rewards img { width: 22px; height: 22px; margin: 0; }
    .tdb.is-in-box .tdb-rewards span { position: absolute; top: 32px; left: 0; display: none; width: max-content; max-width: min(250px, 80cqi); padding: 8px 10px; border-radius: var(--radius-sm); background: var(--warn-soft); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
    .tdb.is-in-box .tdb-rewards:is(:hover, :focus) { outline: 0; animation: none; }
    .tdb.is-in-box .tdb-rewards:is(:hover, :focus) span { display: block; }
    @keyframes tdb-gift { 0%, 84%, 100% { transform: none; } 88% { transform: rotate(-12deg) scale(1.08); } 92% { transform: rotate(10deg) scale(1.08); } 96% { transform: rotate(-6deg); } }
    .tdb.is-in-box .tdb-privacy { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 28px; height: 28px; margin: 0; border-radius: 50%; background: var(--surface-2); font-size: 0; }
    .tdb.is-in-box .tdb-privacy i { font-size: 16px; }
    .tdb-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
    .tdb-tabs button { padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
    .tdb-tabs button.active { background: var(--card); color: var(--ink-strong); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
    .tdb-podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 8px; margin: 0; padding: 26px 0 0; list-style: none; }
    .tdb-place { --tone-a: var(--rank-gold-a); --tone-b: var(--rank-gold-b); --tone-c: var(--rank-gold-c); position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
    .tdb-place.is-1 { order: 2; }
    .tdb-place.is-2 { --tone-a: var(--rank-silver-a); --tone-b: var(--rank-silver-b); --tone-c: var(--rank-silver-c); order: 1; }
    .tdb-place.is-3 { --tone-a: var(--rank-bronze-a); --tone-b: var(--rank-bronze-b); --tone-c: var(--rank-bronze-c); order: 3; }
    .tdb-avatar { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--tone-a), var(--tone-b) 60%, var(--tone-c)); color: #fff; font-size: 20px; font-weight: 800; text-shadow: 0 1px 2px color-mix(in srgb, var(--tone-c) 70%, transparent); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--tone-b), 0 10px 20px -8px var(--tone-c); }
    .tdb-place.is-1 .tdb-avatar { width: 62px; height: 62px; font-size: 25px; }
    .tdb-medal { position: absolute; right: -9px; bottom: -8px; width: 28px; height: 28px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
    .tdb-place.is-1 .tdb-medal { width: 32px; height: 32px; }
    .tdb-place.is-open .tdb-medal { filter: grayscale(1); opacity: .5; }
    .tdb-crown { position: absolute; top: -30px; left: 50%; z-index: 1; width: 40px; height: 40px; filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--rank-gold-c) 55%, transparent)); transform: translateX(-50%) rotate(-10deg); animation: tdb-crown 2.6s ease-in-out infinite; }
    .tdb-name { min-width: 0; overflow: hidden; color: var(--ink-strong); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .tdb-place .tdb-name { max-width: 100%; margin-top: 8px; font-size: 13px; }
    .tdb-total { color: var(--orange-500); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .tdb-place .tdb-total { font-size: 13px; }
    .tdb-place.is-1 .tdb-total { font-size: 15px; }
    .tdb-place .tdb-total.is-open { color: var(--muted); font-size: 12px; font-weight: 600; }
    .tdb-place.is-open .tdb-avatar { background: var(--surface-2); color: var(--muted); text-shadow: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--line); }
    .tdb-place.is-open .tdb-name { color: var(--muted); }
    .tdb-place.is-open .tdb-crown { filter: grayscale(1); opacity: .35; animation: none; }
    .tdb-you { padding: 1px 7px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; }
    .tdb-step { position: relative; display: grid; place-items: start center; width: 100%; height: 40px; margin-top: 8px; padding-top: 5px; overflow: hidden; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--tone-a), color-mix(in srgb, var(--tone-b) 80%, var(--card)) 45%, color-mix(in srgb, var(--tone-c) 55%, var(--card))); color: #fff; font-size: 18px; font-weight: 900; text-shadow: 0 1px 3px color-mix(in srgb, var(--tone-c) 80%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent); transform-origin: bottom; }
    .tdb-place.is-1 .tdb-step { height: 66px; font-size: 24px; }
    .tdb-place.is-2 .tdb-step { height: 48px; }
    .tdb-place.is-3 .tdb-step { height: 36px; }
    .tdb-place.is-open .tdb-step { background: var(--surface-2); color: var(--muted); }
    .tdb-me { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--primary-soft); }
    .tdb-me p { margin: 0; color: var(--ink); font-size: 12.5px; line-height: 1.45; }
    .tdb-me p b { color: var(--ink-strong); }
    .tdb-me.is-leader { background: color-mix(in srgb, var(--rank-gold-a) 32%, var(--card)); }
    .tdb-gap { color: var(--orange-500); font-weight: 800; white-space: nowrap; }
    .tdb-meter { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--primary) 14%, var(--card)); }
    .tdb-meter span { display: block; width: var(--fill); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange-500), var(--rank-gold-b)); transform-origin: left; }
    .tdb-me .tdb-go { grid-row: 1; grid-column: 2; background: linear-gradient(135deg, var(--orange-500), var(--rank-gold-b)); box-shadow: 0 8px 16px -8px var(--orange-500); }
    .tdb-rewards { display: flex; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn-ink); font-size: 12.5px; line-height: 1.45; white-space: pre-line; }
    .tdb-rewards img { flex: none; width: 34px; height: 34px; margin: -4px 0; }
    .tdb-privacy { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
    .tdb-privacy:hover { color: var(--primary); }
    .tdb-panel.is-playing .tdb-step { animation: tdb-rise .6s cubic-bezier(.2, .9, .3, 1.15) both; }
    .tdb-panel.is-playing :is(.tdb-avatar, .tdb-name, .tdb-total, .tdb-you) { animation: tdb-pop .45s cubic-bezier(.3, 1.4, .5, 1) both; }
    .tdb-panel.is-playing .is-2 :is(.tdb-step, .tdb-avatar, .tdb-name, .tdb-total, .tdb-you) { animation-delay: .12s; }
    .tdb-panel.is-playing .is-1 :is(.tdb-step, .tdb-avatar, .tdb-name, .tdb-total, .tdb-you) { animation-delay: .24s; }
    .tdb-panel.is-playing .tdb-meter span { animation: tdb-fill .9s cubic-bezier(.2, .8, .3, 1) .4s both; }
    @keyframes tdb-crown { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-10deg); } 50% { transform: translateX(-50%) translateY(-3px) rotate(6deg); } }
    @keyframes tdb-rise { from { transform: scaleY(.15); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
    @keyframes tdb-pop { from { transform: translateY(10px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
    @keyframes tdb-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes tdb-unfold { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
    /* Wide pages (service, game top-up): the top 3 lie in one row of cards, 1 → 3, each tinted gold / silver / bronze with its place as a big number. */
    @container (min-width: 640px) {
        .tdb:not(.is-in-box) .tdb-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; }
        .tdb:not(.is-in-box) .tdb-place { order: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; justify-items: start; padding: 14px 64px 14px 16px; border: 1px solid color-mix(in srgb, var(--tone-b) 45%, transparent); border-radius: var(--radius); background: linear-gradient(120deg, color-mix(in srgb, var(--tone-a) 26%, var(--card)), var(--card) 75%); text-align: left; }
        .tdb:not(.is-in-box) .tdb-place.is-open { border-color: var(--line); background: var(--surface-2); }
        .tdb:not(.is-in-box) .tdb-place .tdb-avatar { grid-row: 1 / span 2; width: 52px; height: 52px; font-size: 22px; }
        .tdb:not(.is-in-box) .tdb-crown { top: -12px; left: 42px; width: 30px; height: 30px; }
        .tdb:not(.is-in-box) .tdb-place .tdb-name { align-self: end; margin: 0; font-size: 14px; }
        .tdb:not(.is-in-box) .tdb-place .tdb-total { align-self: start; font-size: 15px; }
        .tdb:not(.is-in-box) .tdb-you { position: absolute; top: 8px; right: 12px; }
        .tdb:not(.is-in-box) .tdb-place .tdb-step { position: absolute; top: 0; right: 16px; bottom: 0; display: grid; place-items: center; width: auto; height: auto; margin: 0; padding: 0; background: none; box-shadow: none; color: var(--tone-b); font-size: 40px; opacity: .55; }
        .tdb:not(.is-in-box) .tdb-place:has(.tdb-you) .tdb-step { top: 22px; font-size: 30px; }
        .tdb:not(.is-in-box) .tdb-place.is-open .tdb-step { color: var(--muted); background: none; }
    }
    @media (prefers-reduced-motion: reduce) {
        .tdb-crown, .tdb.is-in-box .tdb-rewards, .tdb.is-unfolding > :not(.tdb-head), .tdb-panel.is-playing :is(.tdb-step, .tdb-avatar, .tdb-name, .tdb-total, .tdb-you, .tdb-meter span) { animation: none; }
    }
    /* 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 78s 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-track, .ticker-track { animation: none; padding-left: 0; }
        .home-marquee div { white-space: normal; }
        .home-marquee-track span[aria-hidden] { display: none; }
    }
    /* 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 muted tones (--tile = --media-0 … 5) cycle through the tiles; an emoji icon sits on a soft tint of its tone. */
    .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: var(--media-0); 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: var(--media-1); }
    .shortcuts a:nth-child(6n+3) { --tile: var(--media-2); }
    .shortcuts a:nth-child(6n+4) { --tile: var(--media-3); }
    .shortcuts a:nth-child(6n+5) { --tile: var(--media-4); }
    .shortcuts a:nth-child(6n+6) { --tile: var(--media-5); }
    .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(160deg, color-mix(in srgb, var(--tile) 84%, #fff), var(--tile)); color: #fff; font-size: 26px; box-shadow: var(--lift); }
    .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); }
    .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; padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }
    .flash-title { flex: none; 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-title > .flash-cat { display: inline-block; width: 44px; height: 44px; margin: -15px -5px -13px -14px; vertical-align: middle; }
    .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 { --flash-gap: var(--sp-2); --flash-per-view: 3; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--flash-per-view) - 1) * var(--flash-gap)) / var(--flash-per-view)); gap: var(--flash-gap); margin: var(--sp-1) 0 calc(var(--sp-2) * -1); padding: var(--sp-2) 0 var(--sp-3); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
    .flash-items::-webkit-scrollbar { display: none; }
    .flash-items.is-open { grid-auto-flow: row; grid-template-columns: repeat(var(--flash-per-view), minmax(0, 1fr)); row-gap: var(--sp-3); overflow: visible; }
    .flash-items.is-open > [aria-hidden="true"] { display: none; }
    .flash-empty { grid-column: 1 / -1; }
    /* One deal (shop.partials.flash-card), plain as Shopee's home row: the picture with the discount tag in its corner, the
       name, the price and the sold bar, no frame of its own. The flash sale page (.flash-grid) puts each deal on a card. */
    .flash-item { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); min-width: 0; color: var(--ink); transition: transform .18s ease; }
    .flash-item:active { transform: scale(.97); }
    .flash-media { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
    .flash-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
    .flash-media.is-package img { padding: 4% 0; object-fit: contain; }
    .flash-media .media-placeholder { font-size: var(--fs-xs); }
    .flash-off { position: absolute; z-index: 1; top: 0; right: 0; display: inline-flex; align-items: center; gap: 1px; padding: 2px 5px 2px 4px; border-radius: 0 0 0 var(--radius-xs); background: color-mix(in srgb, var(--yellow-500) 80%, var(--photo-ink)); color: var(--red-600); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; }
    .flash-off::before { content: ""; width: 9px; height: 11px; background: currentColor; clip-path: polygon(60% 0, 0 58%, 42% 58%, 30% 100%, 100% 38%, 56% 38%); }
    .flash-body { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); width: 100%; }
    .flash-name { width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; color: var(--ink); }
    .flash-price { font-size: var(--fs-md); font-weight: 700; line-height: 1.2; color: var(--red-600); white-space: nowrap; }
    /* The sold bar (x-shop.sold-bar), Shopee's: a 16px salmon pill, the sold part (--fill) red to amber from the left, the
       label in white across the whole bar (capitals from tablets up; a phone's third of a row is too narrow for them). A deal
       nearly gone (.is-hot) gets Shopee's flame, 18 by 21, standing on the bar's left end; a slot not open yet or over (.is-idle)
       is a grey pill. */
    .flash-bar { position: relative; width: 100%; height: 16px; border-radius: var(--radius-pill); background: color-mix(in srgb, color-mix(in srgb, var(--red-500), var(--orange-500)) 42%, var(--photo-ink)); }
    .flash-bar i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red-600), var(--amber-500)) 0 0 / var(--fill) 100% no-repeat; }
    .flash-bar span { position: relative; display: block; overflow: hidden; padding: 0 var(--sp-1); white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: var(--fs-2xs); font-weight: 700; line-height: 16px; color: var(--photo-ink); text-shadow: 0 0 2px color-mix(in srgb, var(--red-600) 45%, transparent); }
    .flash-bar.is-hot::before, .flash-bar.is-hot::after { content: ""; position: absolute; z-index: 1; }
    .flash-bar.is-hot::before { left: 3px; top: -6px; width: 18px; height: 21px; background: linear-gradient(180deg, var(--orange-500), var(--red-600) 70%); clip-path: path("M9.6 0C10.8 5.3 18 7.9 17.4 14.2A8.4 6.8 0 0 1 .6 14.2C.6 10.5 3 8.9 4.2 6.3C5.4 8.9 6.6 10 7.8 10C7.2 6.3 7.8 3.2 9.6 0Z"); }
    .flash-bar.is-hot::after { left: 7px; top: 2px; width: 10px; height: 12px; background: linear-gradient(180deg, var(--yellow-500), var(--amber-500)); clip-path: path("M5.3 0C6 3 10 4.5 9.7 8.1A4.7 3.9 0 0 1 .3 8.1C.3 6 1.7 5.1 2.3 3.6C3 5.1 3.7 5.7 4.3 5.7C4 3.6 4.3 1.8 5.3 0Z"); }
    .flash-bar.is-idle { background: var(--surface-2); }
    .flash-bar.is-idle i { display: none; }
    .flash-bar.is-idle span { color: var(--muted); text-shadow: none; }
    .flash-empty { margin: 10px 2px 0; font-size: 13px; }
    .flash-item[hidden] { display: none; }
    .flash-rail { position: relative; }
    .flash-arrow { display: none; }
    .flash-was { font-size: var(--fs-xs); line-height: 1; color: var(--muted); }
    .flash-buy { display: grid; place-items: center; width: 100%; min-height: var(--control-h); margin-top: var(--sp-1); border-radius: var(--radius-sm); background: var(--red-600); color: var(--photo-ink); font-size: var(--fs-sm); font-weight: 700; }
    .flash-buy.is-later { border: 1px solid var(--red-600); background: var(--card); color: var(--red-600); }
    /* Sự kiện game: the home row (.ge-box, .ge-rail of .ge-card) and its page (.ge-section with .ge-grid of .ge-tile). The season class (.is-halloween, .is-christmas...) picks the two colours --ge-a and --ge-b; a game with no season gets violet and pink. */
    :is(.ge-box, .ge-card, .ge-section) { --ge-a: var(--violet-600); --ge-b: var(--pink-500); }
    :is(.ge-card, .ge-section).is-halloween { --ge-a: var(--orange-500); --ge-b: var(--violet-600); }
    :is(.ge-card, .ge-section).is-thanksgiving { --ge-a: var(--orange-500); --ge-b: var(--amber-500); }
    :is(.ge-card, .ge-section).is-christmas { --ge-a: var(--red-600); --ge-b: var(--ok); }
    :is(.ge-card, .ge-section).is-new-year { --ge-a: var(--red-600); --ge-b: var(--amber-500); }
    :is(.ge-card, .ge-section).is-valentine { --ge-a: var(--pink-500); --ge-b: var(--red-500); }
    :is(.ge-card, .ge-section).is-easter { --ge-a: var(--sky-500); --ge-b: var(--violet-600); }
    :is(.ge-card, .ge-section).is-summer { --ge-a: var(--sky-500); --ge-b: var(--amber-500); }
    .ge-box { margin: 0 0 32px; padding: var(--sp-3); border-radius: var(--radius); background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--violet-600) 16%, transparent), transparent 45%), radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--pink-500) 14%, transparent), transparent 45%), var(--card); box-shadow: var(--shadow-card); }
    .ge-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
    .ge-title { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; margin: 0; color: var(--ink-strong); font-size: var(--fs-lg); font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
    .ge-title > i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--violet-600), var(--pink-500)); box-shadow: 0 6px 14px -6px var(--pink-500); color: var(--photo-ink); font-size: var(--fs-lg); animation: ge-wiggle 2.8s ease-in-out infinite; }
    @keyframes ge-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-14deg); } 84% { transform: rotate(12deg); } 92% { transform: rotate(-6deg); } }
    .ge-more { flex: none; display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: var(--sp-1) 0; color: color-mix(in srgb, var(--ge-a) 75%, var(--ink)); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
    .ge-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--sp-3); margin: 0 calc(var(--sp-3) * -1); padding: 0 var(--sp-3) var(--sp-1); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--sp-3); scrollbar-width: none; }
    .ge-rail::-webkit-scrollbar { display: none; }
    .ge-rail[data-ge-shuffle] { transition: opacity .3s ease; }
    .ge-rail.is-swapping { opacity: 0; }
    .ge-rail:has(> :only-child) { grid-auto-columns: 100%; }
    .ge-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid color-mix(in srgb, var(--ge-a) 35%, var(--line)); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--ge-a) 8%, var(--card)), var(--card) 40%); box-shadow: 0 10px 24px -16px var(--ge-a); overflow: hidden; scroll-snap-align: start; }
    .ge-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--ge-a), var(--ge-b)); color: var(--photo-ink); }
    .ge-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
    .ge-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--ge-a) 22%, var(--photo-scrim)) 100%); pointer-events: none; }
    .ge-tag { position: absolute; z-index: 2; top: var(--sp-2); left: var(--sp-2); max-width: calc(100% - var(--sp-4)); padding: 3px var(--sp-3) 3px var(--sp-2); border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--ge-a), var(--ge-b)); box-shadow: 0 4px 14px -4px var(--ge-a); color: var(--photo-ink); font-size: var(--fs-xs); font-weight: 800; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ge-tag > :first-child { margin-right: var(--sp-1); }
    .ge-game { position: absolute; z-index: 2; right: var(--sp-3); bottom: var(--sp-2); left: var(--sp-3); display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
    .ge-logo { flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; box-shadow: 0 0 0 2px var(--photo-ink), 0 4px 12px var(--photo-scrim); }
    .ge-game b { min-width: 0; overflow: hidden; color: var(--photo-ink); font-size: var(--fs-lg); font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px var(--photo-scrim); }
    .ge-clock { display: flex; align-items: center; gap: 3px; padding: var(--sp-2) var(--sp-3) 0; color: var(--ink-strong); font-size: var(--fs-sm); font-weight: 700; }
    .ge-clock > i { color: var(--ge-a); font-size: var(--fs-md); }
    .ge-clock small { margin: 0 var(--sp-1) 0 2px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
    .ge-clock .ge-days { margin-right: 2px; padding: 0 var(--sp-1); border-radius: var(--radius-xs); background: var(--ge-b); color: var(--photo-ink); font-size: var(--fs-xs); line-height: 22px; white-space: nowrap; }
    .ge-clock b { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 3px; border-radius: var(--radius-xs); background: var(--ge-a); color: var(--photo-ink); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
    .ge-buy { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: var(--control-h); margin: auto var(--sp-2) var(--sp-2); padding: 0 var(--sp-1) 0 var(--sp-3); border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--ge-a), var(--ge-b)); color: var(--photo-ink); font-size: var(--fs-sm); transition: filter .15s, transform .15s; }
    .ge-picks + .ge-buy { margin-top: var(--sp-2); }
    .ge-buy > span { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .ge-buy > b { flex: none; display: inline-flex; align-items: center; padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--photo-ink) 24%, transparent); font-weight: 800; }
    .ge-buy:active { transform: scale(.98); }
    .ge-section { margin: 0 0 var(--sp-6); border: 1px solid color-mix(in srgb, var(--ge-a) 35%, var(--line)); border-radius: var(--radius); background: var(--card); box-shadow: 0 12px 28px -18px var(--ge-a); overflow: hidden; }
    .ge-section .ge-tag { font-size: var(--fs-sm); }
    .ge-section .ge-logo { width: 48px; height: 48px; }
    .ge-section .ge-game b { font-size: var(--fs-xl); }
    .ge-bar { display: flex; align-items: center; gap: var(--sp-2); min-height: 48px; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ge-a) 6%, var(--card)); }
    .ge-bar .ge-clock { min-width: 0; padding: 0; }
    .ge-bar .ge-clock small { display: none; }
    .ge-sum { min-width: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
    .ge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); padding: var(--sp-3); }
    /* An event package as a Shopee product card (.ge-tile): the square item picture to the card's edges, the discount in the yellow top-right corner (.off-corner), two lines of name and the red price over the struck in-game price. The home card holds 3 in a row (.ge-picks), smaller. */
    .ge-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); padding: var(--sp-2) var(--sp-2) 0; }
    .ge-tile { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
    .ge-tile:active { transform: scale(.98); }
    .ge-tile-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--ge-b) 30%, transparent), transparent 68%), color-mix(in srgb, var(--ge-a) 12%, var(--surface-2)); }
    .ge-tile-media img { width: 100%; height: 100%; padding: 8%; object-fit: contain; filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--ge-a) 45%, transparent)); transition: transform .3s ease; }
    .ge-tile-media .media-placeholder { font-size: var(--fs-xs); }
    .ge-tile-media.is-cover img { padding: 0; object-fit: cover; filter: none; }
    .ge-tile-body { flex: 1; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-2); }
    .ge-tile-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; overflow: hidden; font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
    .ge-tile .pkg-ends { margin: 0; }
    .ge-tile-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--sp-1); margin-top: auto; color: var(--red-600); font-size: var(--fs-md); font-weight: 800; line-height: 1.25; }
    .ge-tile-price s { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
    .ge-picks .ge-tile-body { padding: var(--sp-1) var(--sp-2) var(--sp-2); }
    .ge-picks .ge-tile-price { font-size: var(--fs-sm); }
    .ge-tile.is-sold-out .ge-tile-media img { filter: grayscale(.85); opacity: .7; }
    .ge-tile.is-sold-out .ge-tile-price { color: var(--muted); }
    @media (prefers-reduced-motion: reduce) { .ge-title > i { animation: none; } }

    /* Flash sale page (/flash-sale): banner, a dock that stays under the header with the countdown and the time slots, category chips, the deal grid. */
    .flash-page { margin: 0 0 var(--sp-8); }
    .flash-banner { margin: 0; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--orange-500); line-height: 0; }
    .flash-banner > img { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 304; }
    .flash-dock { position: sticky; top: var(--sticky-top); z-index: 5; margin: 0 0 var(--sp-3); border-radius: 0 0 var(--radius) var(--radius); background: var(--red-500); box-shadow: var(--shadow-card); overflow: hidden; }
    .flash-dock-clock { display: flex; justify-content: center; padding: var(--sp-2) var(--sp-3) 0; }
    .flash-dock .flash-clock { color: var(--photo-ink); }
    .flash-dock .flash-clock small { display: inline; color: color-mix(in srgb, var(--photo-ink) 88%, var(--red-500)); }
    .flash-dock .flash-clock b { background: var(--photo-ink); color: var(--red-600); }
    .flash-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); margin-top: var(--sp-2); overflow-x: auto; scrollbar-width: none; }
    .flash-strip::-webkit-scrollbar { display: none; }
    .flash-strip a { display: grid; justify-items: center; gap: 2px; padding: var(--sp-2) var(--sp-1); color: color-mix(in srgb, var(--photo-ink) 88%, var(--red-500)); font-size: var(--fs-xs); }
    .flash-strip b { color: var(--photo-ink); font-size: var(--fs-lg); font-weight: 700; line-height: 1.1; }
    .flash-strip a.active, .flash-strip a.active b { background: var(--photo-ink); color: var(--red-600); }
    .flash-groups { display: flex; gap: var(--sp-2); margin: 0 0 var(--sp-3); overflow-x: auto; scrollbar-width: none; }
    .flash-groups::-webkit-scrollbar { display: none; }
    .flash-groups button { flex: none; min-height: var(--control-h); padding: 0 var(--sp-4); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--card); color: var(--ink); font: inherit; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; cursor: pointer; }
    .flash-groups button.active { border-color: var(--red-600); background: var(--red-600); color: var(--photo-ink); }
    .flash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-2); }
    .flash-grid .flash-item { align-items: stretch; padding-bottom: var(--sp-3); overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); }
    .flash-grid .flash-media { border-radius: 0; }
    .flash-grid .flash-body { align-items: stretch; padding: 0 var(--sp-2); }
    .flash-grid .flash-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; margin-bottom: var(--sp-1); white-space: normal; text-align: left; }
    .flash-grid .flash-price { font-size: var(--fs-lg); }
    .flash-none { display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-10) var(--sp-4); border-radius: 0 0 var(--radius) var(--radius); background: var(--card); color: var(--muted); }
    .flash-none i { font-size: var(--fs-2xl); color: var(--red-600); }
    .flash-none b { color: var(--ink-strong); font-size: var(--fs-md); }

    /* A blind bag's page top, like a Shopee product (shop.partials.deal-hero): picture above on phones, beside the details on a computer. */
    .deal-hero { display: grid; gap: var(--sp-3); margin: var(--sp-1) 0 var(--sp-4); padding: var(--sp-3); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); }
    .deal-hero-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--surface-2); }
    .deal-hero-media > img, .deal-hero-media > div { width: 100%; height: 100%; object-fit: cover; }
    .deal-hero-media .flash-off { padding: var(--sp-1) var(--sp-2); font-size: var(--fs-sm); }
    .deal-hero-info { display: grid; align-content: start; gap: var(--sp-2); min-width: 0; }
    .deal-hero-title { margin: 0; color: var(--ink-strong); font-size: var(--fs-xl); line-height: 1.25; overflow-wrap: anywhere; }
    .deal-hero-stats { display: flex; flex-wrap: wrap; align-items: center; row-gap: var(--sp-1); margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--fs-sm); }
    .deal-hero-stats li { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0 var(--sp-3); border-left: 1px solid var(--line); }
    .deal-hero-stats li:first-child { padding-left: 0; border-left: 0; }
    .deal-hero-stats b { color: var(--ink-strong); font-size: var(--fs-md); }
    .deal-hero-stats .is-stars { color: var(--amber-500); }
    .deal-hero-stats .is-stars b { color: var(--amber-500); text-decoration: underline; text-underline-offset: 3px; }
    .deal-hero-stats .is-left i { color: var(--ok); }
    .deal-hero-stats .is-out { color: var(--red-600); }
    .deal-flash { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--red-600), var(--orange-500)); color: var(--photo-ink); }
    .deal-flash-name { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-md); white-space: nowrap; font-style: italic; font-weight: 900; letter-spacing: .02em; }
    .deal-flash-name i { color: var(--yellow-500); }
    .deal-flash .flash-clock { color: var(--photo-ink); }
    .deal-flash .flash-clock small { display: inline; color: var(--photo-ink); font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; white-space: nowrap; }
    .deal-price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--red-600) 7%, var(--card)); }
    .deal-hero.is-flash .deal-price { margin-top: calc(var(--sp-2) * -1); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
    .deal-price .price { order: 1; color: var(--red-600); font-size: var(--fs-2xl); font-weight: 800; line-height: 1.1; }
    .deal-price .price-old { order: 0; font-size: var(--fs-sm); }
    .deal-off { order: 2; padding: 1px var(--sp-1); border-radius: var(--radius-xs); background: var(--red-600); color: var(--photo-ink); font-size: var(--fs-xs); font-weight: 800; }
    .deal-rows { display: grid; gap: var(--sp-2); margin: 0; font-size: var(--fs-sm); }
    .deal-rows > div { display: grid; grid-template-columns: 6.5em 1fr; gap: var(--sp-2); }
    .deal-rows dt { color: var(--muted); }
    .deal-rows dd { display: inline-flex; align-items: center; gap: var(--sp-1); margin: 0; color: var(--ink-strong); font-weight: 600; }
    .deal-rows dd i { color: var(--orange-500); }
    .deal-rows .deal-chat { display: inline-flex; align-items: center; gap: var(--sp-1); color: inherit; }
    .deal-rows .deal-chat i { color: var(--primary); }
    .deal-hero-stats a { display: inline-flex; align-items: center; gap: var(--sp-1); color: inherit; }
    .deal-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--sp-2); margin-top: var(--sp-1); }
    .deal-actions .btn { width: 100%; }
    .deal-buy { border: 0; background: linear-gradient(90deg, var(--orange-500), var(--red-600)); color: var(--photo-ink); }
    .bs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    /* Four tabs ("Gợi ý cho bạn" joins once the customer has looked at a game) outgrow a phone: the bar scrolls sideways. */
    .bs-head .seg { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
    .bs-head .seg::-webkit-scrollbar { display: none; }
    .bs-head .seg button { display: inline-flex; flex: 1 0 auto; 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; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
    .bs-media img { width: 100%; height: 100%; object-fit: cover; }
    .bs-media .media-placeholder { font-size: 12px; }
    /* No square picture yet: a game logo or a wide card picture sits whole on a blurred copy of itself, so the tile fills like its square neighbours. */
    .bs-media:is(.is-logo, .is-wide) .bs-backdrop { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; filter: blur(22px) saturate(1.4) brightness(.75); }
    .bs-media.is-wide > img:not(.bs-backdrop) { position: relative; object-fit: contain; }
    .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); }
    /* Rank: a dark pill from 4th on; the top 3 wear a gold / silver / bronze trophy medal with a passing shine (gold's trophy sways). */
    .bs-rank { position: absolute; top: 6px; left: 6px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgb(15 23 42 / .72); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; box-shadow: 0 2px 6px rgb(0 0 0 / .25); }
    .bs-rank.is-medal { overflow: hidden; height: 24px; padding: 0 8px 0 5px; border: 1.5px solid color-mix(in srgb, var(--m-a) 70%, #fff); background: linear-gradient(135deg, var(--m-a), var(--m-b) 50%, var(--m-c)); text-shadow: 0 1px 2px rgb(0 0 0 / .45); box-shadow: 0 3px 10px color-mix(in srgb, var(--m-b) 60%, transparent), inset 0 1px 0 rgb(255 255 255 / .5); }
    .bs-rank.is-medal i { font-size: 14px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .35)); }
    .bs-rank.is-gold { --m-a: var(--rank-gold-a); --m-b: var(--rank-gold-b); --m-c: var(--rank-gold-c); height: 26px; font-size: 13px; }
    .bs-rank.is-gold i { font-size: 16px; animation: top-trophy 2.6s ease-in-out infinite; }
    .bs-rank.is-silver { --m-a: var(--rank-silver-a); --m-b: var(--rank-silver-b); --m-c: var(--rank-silver-c); }
    .bs-rank.is-silver::after { animation-delay: .5s; }
    .bs-rank.is-bronze { --m-a: var(--rank-bronze-a); --m-b: var(--rank-bronze-b); --m-c: var(--rank-bronze-c); }
    .bs-rank.is-bronze::after { animation-delay: 1s; }
    @media (prefers-reduced-motion: reduce) { .bs-rank.is-gold i { animation: none; } }
    .bs-item.is-sold-out .bs-media img, .bs-item.is-sold-out .bs-media .media-placeholder { filter: grayscale(.85); opacity: .7; }
    .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; }
    .bs-price .price-old { margin-left: 5px; font-size: 11px; }
    /* Rows of .bs-item tiles, 3 a row (6 from tablet up): the home "Gợi ý hôm nay" endless feed, each page appended fading in, and the search page's "Gói dịch vụ". */
    .feed-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-3); }
    .feed-items > .feed-in { animation: bs-in .28s ease both; }
    .feed-more { display: grid; place-items: center; min-height: 72px; padding-top: var(--sp-3); color: var(--muted); font-size: var(--fs-xl); }
    @media (prefers-reduced-motion: reduce) { .feed-items > .feed-in { animation: none; } }
    .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 var(--border); border-radius: var(--radius); background: var(--card); }
    .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: var(--primary-soft); color: var(--primary); font-size: 24px; }
    .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 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: var(--card); box-shadow: var(--shadow-card); }
    /* Home category row (category-block): the category's icon chip (its picture, emoji or game icon in the shop 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(--media-0); 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; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
    .vc { --vc-tone: var(--red-600); --vc-bg: color-mix(in srgb, var(--vc-tone) 6%, var(--card)); display: flex; min-width: 0; border: 1px solid color-mix(in srgb, var(--vc-tone) 35%, var(--border)); border-radius: 10px; overflow: hidden; background: var(--vc-bg); }
    :root[data-theme="dark"] .vc { --vc-bg: color-mix(in srgb, var(--vc-tone) 16%, var(--card)); border-color: color-mix(in srgb, var(--vc-tone) 55%, var(--border)); }
    .vc-account { --vc-tone: var(--primary); }
    .vc-service { --vc-tone: var(--ok); }
    .vc.is-discord { --vc-tone: var(--discord-blurple); }
    .vc.is-used { --vc-tone: var(--faint); }
    .vc-stub { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 66px; padding: 6px 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(--vc-bg) 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: 9px; font-weight: 800; letter-spacing: .02em; opacity: .95; }
    .vc-stub b { font-size: 17px; font-weight: 900; line-height: 1.1; letter-spacing: -.5px; word-break: break-word; }
    .vc-stub span { font-size: 9px; 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; }
    /* The code is never cut short: when it and the copy button do not fit on one line, the button moves under it. */
    .vc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
    .vc-code { flex: 1 0 auto; max-width: 100%; padding: 3px 6px; 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(--vc-bg)); color: var(--red-600); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* On the dark card the deep red code sinks, so it is lifted to a light red. */
    :root[data-theme="dark"] .vc-code { color: color-mix(in srgb, var(--red-600) 50%, #fff); }
    .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; }
    .vc.is-discord .vc-stub { background: linear-gradient(160deg, color-mix(in srgb, var(--discord-blurple) 70%, #fff), var(--discord-blurple)); }
    .vc-discord { color: var(--discord-blurple); font-weight: 600; }
    .vc-discord i { margin-right: 3px; font-size: 15px; vertical-align: -3px; }
    .vc-line.vc-discord a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
    /* A code a campaign gave this customer ("Quà chào bạn mới"): gold stub, a gold ribbon line, and a soft gold glow around the ticket. */
    .vc.is-gifted { border-color: color-mix(in srgb, var(--amber-500) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber-500) 14%, transparent); }
    .vc.is-gifted .vc-stub { background: linear-gradient(160deg, var(--yellow-500), var(--warn)); }
    .vc-gift { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--warn-ink); font-size: 12px; font-weight: 700; }
    .vc-gift i { font-size: 15px; }
    .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); --ref-ink: color-mix(in srgb, var(--ref-tone) 72%, var(--ink-strong)); position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px; border: 1px solid color-mix(in srgb, var(--ref-tone) 26%, transparent); border-radius: var(--radius); box-shadow: var(--shadow-card); background: radial-gradient(circle at 88% 50%, color-mix(in srgb, var(--ref-tone) 22%, transparent), transparent 42%), linear-gradient(120deg, color-mix(in srgb, var(--ref-tone) 14%, var(--card)), var(--card) 62%); 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) 18%, var(--card)); color: var(--ref-ink); 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(--ref-ink); }
    .home-ref-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--ref-ink); 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; counter-reset: home-ref-step; }
    .home-ref-steps li { counter-increment: home-ref-step; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 6px; border: 1px solid color-mix(in srgb, var(--ref-tone) 22%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--ref-tone) 8%, var(--card)); color: var(--ink); font-size: 12.5px; font-weight: 600; }
    .home-ref-steps li::before { content: counter(home-ref-step); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ref-tone); color: #fff; font-size: 11px; font-weight: 800; }
    .home-ref-cta { display: flex; flex-wrap: wrap; gap: 8px; }
    .home-ref-cta .btn { background: var(--ref-tone); color: #fff; box-shadow: var(--lift); }
    .home-ref-cta .btn-light { border-color: var(--border); background: var(--card); color: var(--ink); box-shadow: none; }
    /* The ring fills to --p % (a share, e.g. the CTV's or the seller's cut; whole when the number is not a share); its middle shows the card through. The number sits dead centre: "%" hangs off its right edge and text-box trims the font's tall Vietnamese accent space. */
    .home-ref-rate { --p: 100; position: relative; flex: none; display: none; place-items: center; align-content: center; gap: 2px; width: 136px; height: 136px; border-radius: 50%; background: color-mix(in srgb, var(--ref-tone) 7%, transparent); color: var(--ink); text-align: center; }
    .home-ref-rate::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--ref-tone) calc(var(--p) * 1%), color-mix(in srgb, var(--ref-tone) 18%, transparent) 0); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
    .home-ref-rate b { display: flex; align-items: baseline; justify-content: center; color: var(--ref-ink); font-size: 42px; font-weight: 900; line-height: 1; padding: .08em 0; }
    .home-ref-rate small { margin-left: 1px; font-size: .5em; }
    .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-ref.is-buyback { --ref-tone: var(--amber-500); }
    .home-ref.is-consign { --ref-tone: var(--blue-600); }
    .home-buyback-games { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
    .home-buyback-games a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 4px; border: 1px solid color-mix(in srgb, var(--ref-tone) 22%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--ref-tone) 8%, var(--card)); color: var(--ink); font-size: 12.5px; transition: transform .15s, color .15s; }
    .home-buyback-games a:hover { transform: translateY(-1px); color: var(--primary); }
    .home-buyback-pic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); overflow: hidden; }
    .home-buyback-pic img, .home-buyback-pic .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
    /* Home "Nạp game & Gift Card": two panels in the shop colour, four quick tiles each; stacked on phones, side by side from 768px.
       Below 1024px a panel is too narrow for the title and the "Xem thêm" link on one row, so the head dissolves into the panel grid
       and the link sits centred under the tiles; from 1024px it goes back to the right of the title. */
    .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: var(--card); box-shadow: var(--shadow-card); overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 10px; }
    .quick-head { display: contents; }
    .quick-head > div { 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 { order: 1; grid-column: 1 / -1; justify-self: center; padding: 0 8px 0 14px; background: color-mix(in srgb, var(--tone) 10%, var(--card)); color: var(--tone-ink); }
    .quick-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 12%, var(--card)); color: var(--tone-ink); font-size: 20px; }
    .quick-items { grid-column: 1 / -1; 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: color-mix(in srgb, var(--tone) 12%, var(--card)); color: var(--tone-ink); 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: var(--card); 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; color: var(--primary); }
    .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 4px 10px color-mix(in srgb, var(--primary) 16%, 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 4px 9px color-mix(in srgb, var(--primary) 15%, 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 3px 7px color-mix(in srgb, var(--primary) 15%, 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 4px 9px color-mix(in srgb, var(--tone) 15%, 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 3px 7px color-mix(in srgb, var(--primary) 15%, 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: var(--card); }
    .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; }
    }

    /* ========== 12c. Thu acc: "Bán acc cho shop" (buyback index/create, account buyback page), hero shared with § 12b ========== */
    .tacc-hero-art { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
    .tacc-hero-card { display: grid; justify-items: center; gap: 3px; padding: 14px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); text-align: center; animation: tacc-float 3.6s ease-in-out infinite; }
    .tacc-hero-card i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 24px; }
    .tacc-hero-card.is-cash { animation-delay: -1.8s; }
    .tacc-hero-card.is-cash i { background: var(--warn-soft); color: var(--warn-ink); }
    .tacc-hero-card b { color: var(--ink-strong); font-size: 14px; }
    .tacc-hero-card small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
    .tacc-hero-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 20px; box-shadow: 0 3px 7px color-mix(in srgb, var(--primary) 15%, transparent); animation: tacc-nudge 1.6s ease-in-out infinite; }

    /* Game tiles: picture on the left, name + cap, "Định giá" on the right; a grid of cards from 768px. */
    .tacc-games { display: grid; gap: 10px; }
    .tacc-game { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); color: var(--text-2); transition: transform .15s, border-color .15s, box-shadow .15s; }
    .tacc-game:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow); }
    .tacc-game-pic { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
    .tacc-game-pic img, .tacc-game-pic .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
    .tacc-game-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
    .tacc-game-body b { overflow: hidden; color: var(--ink-strong); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
    .tacc-game-body small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .tacc-game-cap { display: inline-flex; align-items: center; gap: 4px; color: var(--warn-ink); font-size: 12.5px; font-weight: 700; }
    .tacc-game-cap i { color: var(--warn); }
    .tacc-game-go { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 6px 6px 6px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 12.5px; font-weight: 700; }
    .tacc-game-go i { font-size: 17px; transition: transform .15s; }
    .tacc-game:hover .tacc-game-go i { transform: translateX(2px); }

    /* The form: numbered steps, the estimate card right after step 1 on phones (sticky in the right column on PC). */
    .tacc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
    .tacc-layout > * { min-width: 0; }
    .tacc-step { margin: 0; }
    .tacc-step-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
    .tacc-step-head > div { flex: 1; min-width: 0; }
    .tacc-step-head h2 { margin: 2px 0; color: var(--ink-strong); font-size: 16px; }
    .tacc-step-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
    .tacc-step-head .btn { flex: none; }
    .tacc-step-no { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 2px 5px color-mix(in srgb, var(--primary) 14%, transparent); }
    .tacc-fields { display: grid; gap: 14px; }
    .tacc-fields > .field { margin: 0; }
    .tacc-req { margin-left: 3px; color: var(--bad); }
    .tacc-pick { min-width: 0; margin: 0; padding: 0; border: 0; }
    .tacc-pick legend { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
    .tacc-pick legend small { color: var(--muted); font-size: 12px; font-weight: 500; }
    .tacc-pick .pill-option span { height: auto; min-height: 36px; padding: 6px 13px; white-space: normal; }
    .pill-option span em { color: var(--ok-ink); font-size: 11.5px; font-style: normal; font-weight: 700; }
    .pill-option input:checked + span em { color: var(--primary-strong); }
    .tacc-toggle { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; }
    .tacc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
    .tacc-toggle b { flex: 1; min-width: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
    .tacc-toggle em { flex: none; color: var(--ok-ink); font-size: 12.5px; font-style: normal; font-weight: 700; }
    .tacc-switch { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: color-mix(in srgb, var(--faint) 45%, var(--card)); transition: background .2s; }
    .tacc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
    .tacc-toggle:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
    .tacc-toggle input:checked + .tacc-switch { background: var(--primary); }
    .tacc-toggle input:checked + .tacc-switch::after { transform: translateX(16px); }
    .tacc-toggle input:focus-visible + .tacc-switch { outline: 2px solid var(--primary); outline-offset: 2px; }

    /* Estimate card: grade badge (S/A/B/C), range, score meter, the lines that add up to it. */
    .tacc-side { min-width: 0; }
    .tacc-estimate { position: relative; margin: 0; border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border)); background: linear-gradient(160deg, var(--primary-soft), var(--card) 55%); overflow: hidden; }
    .tacc-estimate.is-pop { animation: ctvp-pop .45s ease; }
    .tacc-estimate .ctvp-coins { top: 34px; left: 40px; z-index: 3; }
    .tacc-est-head { display: flex; align-items: center; gap: 12px; }
    .tacc-est-head > div { flex: 1; display: grid; min-width: 0; }
    .tacc-est-head small { color: var(--muted); font-size: 12px; font-weight: 600; }
    .tacc-est-head b { display: inline-block; justify-self: start; color: var(--accent); font-size: 21px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
    [data-est-range].is-pop, [data-consign-share].is-pop { animation: ctvp-pop .45s ease; }
    .tacc-share-pic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); color: var(--faint); font-size: var(--fs-xl); }
    .tacc-share-pic img { width: 100%; height: 100%; object-fit: cover; }
    .tacc-grade { --grade: var(--muted); flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--grade), color-mix(in srgb, var(--grade) 65%, #000)); color: #fff; font-size: 26px; font-weight: 900; box-shadow: 0 6px 14px color-mix(in srgb, var(--grade) 32%, transparent); transition: box-shadow .3s; }
    .tacc-grade[data-est-grade="S"] { --grade: var(--violet-600); background: linear-gradient(135deg, var(--amber-500), var(--orange-500) 45%, var(--violet-600)); }
    .tacc-grade[data-est-grade="A"] { --grade: var(--ok); }
    .tacc-grade[data-est-grade="B"] { --grade: var(--info); }
    .tacc-grade[data-est-grade="C"] { --grade: var(--faint); }
    .tacc-grade.is-mini { width: 38px; height: 38px; border-radius: 12px; font-size: 19px; }
    .tacc-meter { height: 10px; margin: 14px 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--faint) 25%, var(--card)); overflow: hidden; }
    .tacc-meter span { display: block; width: var(--score, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--info), var(--ok) 45%, var(--amber-500) 75%, var(--violet-600)); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
    .tacc-est-score { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
    .tacc-est-score b { color: var(--ink-strong); }
    .tacc-lines { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px dashed var(--border); }
    .tacc-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; animation: notice-in .2s ease-out; }
    .tacc-lines li span { min-width: 0; color: var(--text-2); overflow-wrap: anywhere; }
    .tacc-lines li b { flex: none; color: var(--ok-ink); font-weight: 700; }
    .tacc-lines li:first-child b { color: var(--ink-strong); }
    .tacc-lines li.is-total { border-bottom: 0; font-size: 14px; }
    .tacc-lines li.is-total span { color: var(--ink-strong); font-weight: 700; }
    .tacc-lines li.is-total b { color: var(--accent); font-size: 16px; font-weight: 800; }
    .tacc-est-note, .tacc-offer-note, .tacc-lock { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
    .tacc-est-note i, .tacc-offer-note i, .tacc-lock i { flex: none; margin-top: 1px; font-size: 16px; }
    .tacc-lock { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--text-2); }
    .tacc-lock i, .tacc-lock b { color: var(--ok-ink); }

    /* Screenshots: a dashed drop zone, then square previews with a remove button. */
    .tacc-drop { display: grid; justify-items: center; gap: 3px; margin: 0 0 10px; padding: 20px 12px; border: 2px dashed color-mix(in srgb, var(--primary) 35%, var(--border)); border-radius: var(--radius); background: color-mix(in srgb, var(--primary-soft) 55%, var(--card)); color: var(--text-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
    .tacc-drop:hover { border-color: var(--primary); background: var(--primary-soft); }
    .tacc-drop:has(+ input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
    .tacc-drop i { color: var(--primary); font-size: 34px; }
    .tacc-drop b { color: var(--ink-strong); font-size: 14.5px; }
    .tacc-drop small { color: var(--muted); font-size: 12px; }
    .tacc-drop.is-invalid { border-color: var(--bad); background: var(--bad-soft); }
    .tacc-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .tacc-thumbs:empty { display: none; }
    .tacc-thumbs figure, .tacc-thumbs a { position: relative; display: block; margin: 0; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
    .tacc-thumbs figure { animation: ctvp-pop .3s ease; }
    .tacc-thumbs img { width: 100%; height: 100%; object-fit: cover; }
    .tacc-thumbs button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgb(15 23 42 / .7); color: #fff; font-size: 17px; cursor: pointer; }
    .tacc-thumbs button:hover { background: var(--bad); }
    .tacc-thumbs.is-sent { margin-top: 12px; }
    .tacc-thumbs.is-sent a { transition: transform .15s; }
    .tacc-thumbs.is-sent a:hover { transform: scale(1.03); }

    /* Login: password with an eye button. */
    .tacc-pass { position: relative; }
    .tacc-pass input { padding-right: 44px; }
    .tacc-pass-eye { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 19px; transform: translateY(-50%); cursor: pointer; }
    .tacc-pass-eye:hover { background: var(--surface-2); color: var(--primary); }

    /* Payout: two big radio cards (balance carries the bonus badge), bank fields under them. */
    .tacc-payouts { display: grid; gap: 10px; min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
    .tacc-payouts legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
    .tacc-payout { position: relative; display: block; margin: 0; cursor: pointer; }
    .tacc-payout input { position: absolute; opacity: 0; pointer-events: none; }
    .tacc-payout span { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; align-items: center; height: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); transition: border-color .15s, background .15s, box-shadow .15s; }
    .tacc-payout i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 21px; transition: background .15s, color .15s; }
    .tacc-payout b { color: var(--ink-strong); font-size: 14px; }
    .tacc-payout small { color: var(--muted); font-size: 12px; line-height: 1.4; }
    .tacc-payout em { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--boost-grad); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 800; box-shadow: 0 4px 10px rgb(249 115 22 / .3); }
    .tacc-payout:hover span { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
    .tacc-payout input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
    .tacc-payout input:checked + span i { background: var(--primary); color: #fff; }
    .tacc-payout input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
    .tacc-bank { margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); animation: notice-in .2s ease-out; }
    .tacc-bank[hidden] { display: none; }

    /* Conditions and sending. */
    .tacc-rules { margin: 0; }
    .tacc-rules label { transition: border-color .15s, background .15s; }
    .tacc-rules label:has(input:checked) { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); background: var(--ok-soft); }
    .tacc-rules input { accent-color: var(--ok); }
    .tacc-submit { display: grid; gap: 8px; text-align: center; }
    .tacc-submit .btn { min-height: 48px; font-size: 15.5px; }
    .tacc-submit .hint { margin: 0; }
    .tacc-bar b { display: block; overflow: hidden; font-size: 15.5px; text-overflow: ellipsis; white-space: nowrap; }
    .tacc-bar .btn { min-width: 0; }

    /* Account page: "sent" / "deal" banner, the offer card with accept / cancel, the hold countdown. */
    .tacc-sent { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--border)); border-radius: var(--radius); background: linear-gradient(135deg, var(--ok-soft), var(--card)); }
    .tacc-sent.is-new { animation: ctvp-pop .5s ease; }
    .tacc-sent.is-deal { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); background: linear-gradient(135deg, var(--warn-soft), var(--card)); }
    .tacc-sent .ctvp-coins { left: 35px; top: 35px; }
    .tacc-sent-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 22px; }
    .tacc-sent.is-deal .tacc-sent-icon { background: var(--warn); }
    .tacc-sent b { color: var(--ink-strong); font-size: 15px; }
    .tacc-sent p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
    .tacc-offer { position: relative; border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--border)); background: linear-gradient(160deg, var(--warn-soft), var(--card) 60%); overflow: hidden; }
    .tacc-offer .ctvp-coins { top: 40px; }
    .tacc-offer-head { display: flex; align-items: center; gap: 12px; }
    .tacc-offer-head > i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--boost-grad); color: #fff; font-size: 25px; box-shadow: 0 6px 14px rgb(249 115 22 / .3); }
    .tacc-offer-head > div { display: grid; min-width: 0; }
    .tacc-offer-head small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
    .tacc-offer-head b { color: var(--accent); font-size: 26px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
    .tacc-offer-bonus { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 7px 11px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok-ink); font-size: 13px; }
    .tacc-offer-bonus i { font-size: 16px; }
    .tacc-offer-actions { display: grid; gap: 8px; margin-top: 14px; }
    .tacc-offer-actions form { margin: 0; }
    .tacc-countdown { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
    @keyframes tacc-float { 50% { transform: translateY(-5px); } }
    @keyframes tacc-nudge { 50% { transform: translateX(3px); } }
    @media (prefers-reduced-motion: reduce) {
        .tacc-hero-card, .tacc-hero-arrow, .tacc-estimate.is-pop, [data-est-range].is-pop, [data-consign-share].is-pop, .tacc-thumbs figure, .tacc-sent.is-new, .tacc-lines li { animation: none; }
        .tacc-meter span, .tacc-switch::after { transition: 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 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 { 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; }
    .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 3px 8px color-mix(in srgb, var(--primary) 18%, 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-radius: var(--radius-sm); 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) {
        .ge-rail { grid-auto-columns: calc((100% - var(--sp-3)) / 2); }
        .ge-section .ge-cover { aspect-ratio: 3 / 1; }
        .ge-bar .ge-clock small { display: inline; }
        .ge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
        .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; }
        /* The header bar is the one search bar from here up, so the page's own box stays on phones only. */
        .search-hero { display: none; }
        .search-box { max-width: 640px; }
        .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; }
        .checkin-card { grid-template-areas: 'held form' 'days days'; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--radius-lg); }
        .checkin-held { grid-area: held; }
        .checkin-cat { width: 156px; height: 156px; margin: calc(var(--sp-5) * -1) calc(var(--sp-2) * -1); }
        .checkin-days { grid-area: days; gap: var(--sp-2); }
        .checkin-card > [data-checkin-form] { grid-area: form; }
        .checkin-day { padding: var(--sp-3) 0; }
        .checkin-day b { font-size: var(--fs-sm); }
        .checkin-day small { font-size: var(--fs-xs); }
        .checkin-days .checkin-coin { width: 36px; height: 36px; font-size: var(--fs-lg); }
        .checkin-claim { width: auto; min-width: 240px; min-height: 48px; }
        .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; }
        .tacc-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
        .tacc-thumbs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
        .tacc-payouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .tacc-payouts legend { grid-column: 1 / -1; }
        .tacc-offer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .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-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-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); }
        .svc-layout .pkg-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); }
        .svc-layout .pkg:hover .pkg-media > img { transform: translateY(-4%) scale(1.06); }
        .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 14px 18px; }
        .buy-wallet { flex: none; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid var(--border); }
        .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 :is(.chat-fab, .support-fab, .to-top) { 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-step .pkg-grid:has(.pkg-scratch) { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
        .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-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 { --flash-gap: var(--sp-4); --flash-per-view: 6; margin-top: var(--sp-2); }
        .bs-item:hover, .hn-item:hover, .aff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
        .flash-item:hover { transform: translateY(-3px); }
        .flash-item:hover .flash-media img { transform: scale(1.05); }
        .flash-price { font-size: var(--fs-lg); }
        .flash-bar span { font-size: var(--fs-xs); text-transform: uppercase; }
        .flash-banner { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
        .flash-dock { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
        .flash-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); }
        .flash-grid .flash-item:hover { box-shadow: var(--shadow-lift); }
        .flash-grid .flash-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "was buy" "price buy" "bar buy"; align-items: center; gap: var(--sp-1) var(--sp-2); padding: 0 var(--sp-3); }
        .flash-grid .flash-name { grid-area: name; }
        .flash-grid .flash-was { grid-area: was; }
        .flash-grid .flash-price { grid-area: price; }
        .flash-grid .flash-bar { grid-area: bar; }
        .flash-grid .flash-buy { grid-area: buy; width: auto; margin-top: 0; padding: 0 var(--sp-3); }
        .flash-groups { flex-wrap: wrap; }
        .flash-buy { transition: filter .15s ease; }
        .flash-item:hover .flash-buy { filter: brightness(1.08); }
        .flash-arrow { position: absolute; top: 30%; z-index: 2; display: grid; place-items: center; width: var(--control-h); height: var(--control-h); padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--ink-strong); box-shadow: var(--shadow-pop); font-size: var(--fs-xl); cursor: pointer; transition: transform .15s ease, color .15s ease; }
        .flash-arrow:hover { color: var(--red-600); transform: scale(1.08); }
        .flash-arrow.is-prev { left: calc(var(--sp-5) * -1); }
        .flash-arrow.is-next { right: calc(var(--sp-5) * -1); }
        .flash-arrow[hidden] { display: none; }
        .deal-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: var(--sp-6); padding: var(--sp-5); border-radius: var(--radius-lg); }
        .deal-hero-title { font-size: var(--fs-2xl); }
        .deal-flash-name { font-size: var(--fs-lg); }
        .deal-price { padding: var(--sp-4) var(--sp-5); }
        .deal-price .price { font-size: calc(var(--fs-2xl) * 1.15); }
        .deal-actions { grid-template-columns: max-content max-content; gap: var(--sp-3); }
        .deal-actions .btn { min-width: 180px; }
        .deal-buy:hover { filter: brightness(1.08); }
        .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; }
        .feed-items { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }
        .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 { gap: 14px 12px; padding: 18px 18px 16px; border-radius: var(--radius-lg); }
        .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) {
        .ge-box { padding: var(--sp-4) var(--sp-5) var(--sp-5); border-radius: var(--radius-lg); }
        .ge-rail { grid-auto-columns: calc((100% - 2 * var(--sp-4)) / 3); gap: var(--sp-4); margin: 0; padding: 0 0 var(--sp-1); scroll-padding: 0; }
        .ge-title { font-size: var(--fs-xl); }
        .ge-section .ge-cover { aspect-ratio: 4 / 1; }
        .ge-card { transition: transform .2s ease, box-shadow .2s ease; }
        .ge-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -18px var(--ge-a); }
        .ge-card:hover .ge-cover > img, .ge-section .ge-cover:hover > img { transform: scale(1.05); }
        .ge-tile:hover { border-color: var(--ge-a); box-shadow: 0 10px 20px -12px var(--ge-a); transform: translateY(-2px); }
        .ge-tile:hover .ge-tile-media img { transform: scale(1.06); }
        .ge-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: var(--sp-4); }
        .quick-panel { display: block; }
        .quick-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
        .quick-head > div { flex: 1; }
        .quick-head .block-link { flex: none; padding: 0 4px 0 12px; background: none; }
        .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); }
        .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-cat { width: 112px; height: 112px; margin-block: -26px; }
        .od-hero h1 { font-size: 21px; }
        .ctvp-hero { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 44px; padding: 34px 38px; }
        .tacc-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .tacc-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        .tacc-layout { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 20px; align-items: start; }
        .tacc-layout > :not(.tacc-side) { grid-column: 1; }
        .tacc-side { position: sticky; top: calc(var(--sticky-top) + 16px); grid-column: 2; grid-row: 1 / span 6; }
        .tacc-estimate { box-shadow: var(--shadow-lift); }
        .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)); }
    }
}
