/* =====================================================================
   DUBU WULIN FORUM THEME v2  ·  "Crimson Arena Pro"  (UI ONLY)
   ---------------------------------------------------------------------
   Lop phu CSS cho toan bo forum, nap SAU design system /dbw-ui/dbw-ui.css.
   Nen TRANG · VIEN DO tiet che · phong cach GAME chuyen nghiep.
   Nhieu rule goc nam trong <style> inline nen dung tien to body.forum-body
   + !important de gianh quyen ghi de. KHONG dong toi logic / backend.
   Ban v1 (forum-theme.css) van giu lai de rollback.
   ===================================================================== */

:root {
    /* alias sang token design system (tuong thich voi ten bien v1) */
    --fr-red:        var(--dbw-red, #c8102e);
    --fr-red-dark:   var(--dbw-red-600, #a80d26);
    --fr-red-deep:   var(--dbw-red-700, #8b0a1f);
    --fr-red-light:  var(--dbw-red-400, #e8334f);
    --fr-red-soft:   var(--dbw-red-50, #fff5f6);
    --fr-red-line:   var(--dbw-red-line, rgba(200,16,46,.32));
    --fr-red-glow:   var(--dbw-red-glow, rgba(200,16,46,.22));

    --fr-white:      #ffffff;
    --fr-bg:         var(--dbw-bg, #f6f7f9);
    --fr-bg-2:       var(--dbw-bg-2, #eef0f3);
    --fr-line:       var(--dbw-line, #e5e7eb);

    --fr-ink:        var(--dbw-ink, #15181d);
    --fr-ink-2:      var(--dbw-ink-2, #3b4252);
    --fr-ink-3:      var(--dbw-ink-3, #6b7280);

    --fr-gold:       var(--dbw-gold, #d4a24c);

    --fr-radius:     var(--dbw-radius, 10px);
    --fr-shadow:     var(--dbw-shadow-sm, 0 2px 8px rgba(21,24,29,.05));
    --fr-shadow-lg:  var(--dbw-shadow-lg, 0 18px 44px rgba(21,24,29,.14));

    --fr-font:       var(--dbw-font, "Be Vietnam Pro", "Segoe UI", Roboto, sans-serif);
    --fr-font-head:  var(--dbw-display, "Oswald", "Segoe UI", sans-serif);
}

/* =========================================================
   1) NEN TRANG
   ========================================================= */
body.forum-body {
    /* es.v6.label.css ep body { min-width: 1366px } -> bo de responsive */
    min-width: 0 !important;
    width: auto !important;
    overflow-x: hidden !important;
    /* es.v6.label.css: word-break:break-all lam ngat giua tu tieng Viet */
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    background-color: var(--fr-bg) !important;
    background-image:
        radial-gradient(1100px 420px at 50% -80px, rgba(200, 16, 46, 0.08), transparent 70%),
        linear-gradient(rgba(21, 24, 29, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 24, 29, 0.035) 1px, transparent 1px) !important;
    background-size: auto, 40px 40px, 40px 40px !important;
    background-position: center top !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat, repeat, repeat !important;
    color: var(--fr-ink) !important;
    font-family: var(--fr-font) !important;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh !important;
}
body.forum-body a { transition: color .15s ease; }

/* =========================================================
   2) KHUNG / PANEL
   ========================================================= */
body.forum-body .white-block {
    position: relative;
    background: var(--fr-white) !important;
    border: 1px solid var(--fr-red-line) !important;
    border-radius: var(--fr-radius) !important;
    box-shadow: var(--fr-shadow) !important;
    color: var(--fr-ink) !important;
}
body.forum-body .white-block .white-block {
    border: 1px solid var(--fr-line) !important;
    box-shadow: none !important;
}
body.forum-body .es-bc-white,
body.forum-body .white-bg {
    background: var(--fr-white) !important;
    color: var(--fr-ink) !important;
    border: 1px solid var(--fr-red-line) !important;
    box-shadow: none !important;
}
body.forum-body .span-3 {
    background: var(--fr-white) !important;
    border: 1px solid var(--fr-red-line) !important;
    border-radius: var(--fr-radius) !important;
    box-shadow: var(--fr-shadow) !important;
    overflow: hidden !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.forum-body .span-3:hover {
    transform: translateY(-3px);
    border-color: var(--fr-red) !important;
    box-shadow: 0 12px 26px rgba(200, 16, 46, 0.14) !important;
}
body.forum-body .span-3 .es-bc-white { border: 0 !important; }

body.forum-body .es-c-33 { color: var(--fr-ink) !important; }
body.forum-body .es-c-66 { color: var(--fr-ink-2) !important; }
body.forum-body .es-c-99 { color: var(--fr-ink-3) !important; }
body.forum-body .es-t-x  { color: var(--fr-ink-2) !important; }

/* =========================================================
   3) MAU NHAN
   ========================================================= */
body.forum-body .es-c { color: var(--fr-red) !important; }
body.forum-body .es-bc {
    background: var(--dbw-grad-red, linear-gradient(180deg, #e8334f, #a80d26)) !important;
    color: #fff !important;
    border: 1px solid var(--fr-red-dark) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px var(--fr-red-glow) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    transition: filter .18s ease, box-shadow .18s ease, transform .12s ease;
}
body.forum-body .es-bc:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 20px var(--fr-red-glow) !important; }
body.forum-body .es-bc:active { transform: translateY(1px); }
body.forum-body .es-bc.es-c-white,
body.forum-body .es-bc .es-c-white { color: #fff !important; }

body.forum-body .layui-btn:not(.layui-btn-primary):not(.layui-btn-danger) {
    background: var(--dbw-grad-red, linear-gradient(180deg, #e8334f, #a80d26)) !important;
    color: #fff !important;
    border: 1px solid var(--fr-red-dark) !important;
}
body.forum-body [style*="#F5CB86"],
body.forum-body [style*="#f5cb86"] {
    background-color: var(--fr-red) !important;
    background-image: var(--dbw-grad-red, linear-gradient(180deg, #e8334f, #a80d26)) !important;
    color: #fff !important;
    border-color: var(--fr-red-dark) !important;
}
body.forum-body [style*="#F5CB86"] *,
body.forum-body [style*="#f5cb86"] * { color: #fff !important; }
body.forum-body [style*="color: #F5CB86"],
body.forum-body [style*="color:#F5CB86"] { background: none !important; color: var(--fr-red) !important; }

/* =========================================================
   4) HEADER phu tro (phan chinh nam trong top.twig)
   ========================================================= */
body.forum-body .me-pop-inner {
    background: #fff !important;
    border: 1px solid var(--fr-red-line) !important;
    box-shadow: var(--fr-shadow-lg) !important;
    border-radius: var(--fr-radius) !important;
}
body.forum-body .me-pop .me-pop-item { color: var(--fr-ink) !important; }
body.forum-body .me-pop .me-pop-item.es-b-t { border-top: 1px solid var(--fr-line) !important; }
body.forum-body .me-pop .me-pop-item:hover { color: var(--fr-red) !important; background: var(--fr-red-soft); }
body.forum-body .og-nav-pop {
    background: #fff !important;
    border: 1px solid var(--fr-red-line) !important;
    box-shadow: var(--fr-shadow-lg) !important;
    border-radius: var(--fr-radius) !important;
}
body.forum-body .og-nav-pop-name { color: var(--fr-ink) !important; }
body.forum-body .og-nav-pop-tip  { color: var(--fr-red) !important; }
body.forum-body #left-nav-box { display: none !important; }

/* =========================================================
   6) CHAN TRANG phu tro
   ========================================================= */
body.forum-body .view-bottom { color: var(--fr-ink-2) !important; }

/* =========================================================
   7) TIEU DE
   ========================================================= */
body.forum-body .es-fs-34,
body.forum-body .es-fs-28,
body.forum-body .es-fs-26,
body.forum-body .es-fs-25,
body.forum-body .es-fs-24,
body.forum-body .es-fs-22 { font-family: var(--fr-font) !important; font-weight: 700 !important; letter-spacing: -.01em; }

/* =========================================================
   8) BIEU MAU
   ========================================================= */
body.forum-body textarea,
body.forum-body input[type="text"],
body.forum-body input[type="password"],
body.forum-body input[type="number"],
body.forum-body input[type="tel"],
body.forum-body input[type="email"],
body.forum-body input[type="search"],
body.forum-body input:not([type]),
body.forum-body select,
body.forum-body .layui-input {
    background: #fff !important;
    color: var(--fr-ink) !important;
    border: 1px solid var(--dbw-line-2, #d7dbe2) !important;
    border-radius: 6px !important;
    font-family: var(--fr-font) !important;
}
body.forum-body #searchKey,
body.forum-body #chat-input { color: var(--fr-ink) !important; }
body.forum-body textarea:focus,
body.forum-body input:focus,
body.forum-body select:focus,
body.forum-body .layui-input:focus {
    border-color: var(--fr-red) !important;
    box-shadow: 0 0 0 3px var(--fr-red-glow) !important;
    outline: none !important;
}
body.forum-body ::placeholder { color: #9aa3b2 !important; }
body.forum-body .login-ipt:not(.es-bc) {
    background: #fff !important;
    border: 1px solid var(--dbw-line-2, #d7dbe2) !important;
    border-radius: 6px !important;
}
body.forum-body .login-ipt:not(.es-bc) input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
body.forum-body .login-ipt:not(.es-bc):focus-within { border-color: var(--fr-red) !important; box-shadow: 0 0 0 3px var(--fr-red-glow) !important; }
body.forum-body .login-ipt.es-bc { border-radius: 6px !important; font-weight: 700 !important; }
body.forum-body [style*="border: 1px solid #3D3D3D"],
body.forum-body [style*="border:1px solid #3D3D3D"] { border-color: var(--fr-red-line) !important; }

/* =========================================================
   9) BO CHON NGON NGU (phan vi tri nam trong top.twig)
   ========================================================= */
body.forum-body .yjj-lang-button {
    background: #fff !important;
    border: 1px solid var(--dbw-line-2, #d7dbe2) !important;
    color: var(--fr-ink) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
}
body.forum-body .yjj-lang-button:hover { border-color: var(--fr-red) !important; }
body.forum-body .yjj-lang-button strong { color: var(--fr-red) !important; }
body.forum-body .yjj-lang-menu {
    background: #fff !important;
    border: 1px solid var(--fr-red-line) !important;
    border-radius: var(--fr-radius) !important;
    box-shadow: var(--fr-shadow-lg) !important;
}
body.forum-body .yjj-lang-option { color: var(--fr-ink) !important; border-radius: 6px !important; }
body.forum-body .yjj-lang-option small { color: var(--fr-ink-3) !important; }
body.forum-body .yjj-lang-option:hover,
body.forum-body .yjj-lang-option.is-active { background: var(--fr-red-soft) !important; color: var(--fr-red) !important; }

/* =========================================================
   10) MODAL
   ========================================================= */
body.forum-body .es-model { background: rgba(21, 24, 29, 0.55) !important; backdrop-filter: blur(3px); }
body.forum-body .es-model-body {
    background: #fff !important;
    border: 1px solid var(--fr-red-line) !important;
    border-top: 4px solid var(--fr-red) !important;
    box-shadow: var(--fr-shadow-lg) !important;
    color: var(--fr-ink) !important;
    border-radius: var(--fr-radius) !important;
}

/* =========================================================
   11) CAROUSEL / CTA
   ========================================================= */
body.forum-body .share-slide-cta {
    background: #fff !important;
    border: 0 !important;
    color: var(--fr-red) !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) !important;
    border-radius: 6px !important;
}
body.forum-body .carousel-wrapper .swiper-pagination-bullet { background: rgba(255,255,255,.7) !important; }
body.forum-body .carousel-wrapper .swiper-pagination-bullet-active { background-color: #fff !important; }
body.forum-body .es-bc-white .es-b-b,
body.forum-body .es-bc-white .es-b-t,
body.forum-body .white-block .es-b-b,
body.forum-body .white-block .es-b-t { border-color: var(--fr-line) !important; }

/* =========================================================
   12) ICON · 2026-11-02: bo icon PNG cu + filter nhuom do da duoc thay
       bang bo SVG thong nhat trong /src/web/css/dbw-icons.css (mask theo
       currentColor) + sprite twig/frame/icons.twig. Khong them filter o day.
   ========================================================= */
body.forum-body .es-icon-gong-2 { filter: brightness(0) saturate(100%) invert(14%) sepia(92%) saturate(5200%) hue-rotate(340deg) brightness(88%) contrast(100%) !important; }

/* =========================================================
   13) MODAL DANG NHAP / DANG KY
   ========================================================= */
#login .es-model-body, #login-2 .es-model-body, #register .es-model-body,
#forget .es-model-body, #edit-pwd .es-model-body {
    background: #fff !important;
    border: 1px solid var(--fr-red-line) !important;
    border-top: 4px solid var(--fr-red) !important;
    border-radius: var(--fr-radius) !important;
    color: var(--fr-ink) !important;
    overflow: hidden;
}
#login .es-fb, #login-2 .es-fb, #register .es-fb, #forget .es-fb, #edit-pwd .es-fb { color: var(--fr-ink) !important; }
#login .es-c-66, #login-2 .es-c-66, #register .es-c-66, #forget .es-c-66, #edit-pwd .es-c-66 { color: var(--fr-ink-2) !important; }
#login [style*="#eee"], #login-2 [style*="#eee"], #register [style*="#eee"], #forget [style*="#eee"], #edit-pwd [style*="#eee"] { border-color: var(--fr-line) !important; }
body.forum-body .login-nav-ac { border-bottom: 3px solid var(--fr-red) !important; color: var(--fr-red) !important; }
#login .es-c-red, #login-2 .es-c-red, #register .es-c-red, #forget .es-c-red, #edit-pwd .es-c-red { color: var(--fr-red) !important; font-weight: 600; }
#login [data-auth-copy="termsLink"], #login [data-auth-copy="privacyLink"],
#login-2 [data-auth-copy="termsLink"], #login-2 [data-auth-copy="privacyLink"],
#register [data-auth-copy="termsLink"], #register [data-auth-copy="privacyLink"] { color: var(--fr-red) !important; }
#login .es-icon-box, #login .es-icon-box-ac, #login-2 .es-icon-box, #login-2 .es-icon-box-ac,
#register .es-icon-box, #register .es-icon-box-ac { background-image: none !important; filter: none !important; box-sizing: border-box !important; }
#login .es-icon-box:not(.sex-radio), #login-2 .es-icon-box:not(.sex-radio), #register .es-icon-box:not(.sex-radio) {
    border: 2px solid var(--fr-red) !important; border-radius: 4px !important; background: #fff !important;
}
#login .es-icon-box-ac:not(.sex-radio), #login-2 .es-icon-box-ac:not(.sex-radio), #register .es-icon-box-ac:not(.sex-radio) {
    position: relative !important; border: 2px solid var(--fr-red) !important; border-radius: 4px !important; background: var(--fr-red) !important;
}
#login .es-icon-box-ac:not(.sex-radio)::after, #login-2 .es-icon-box-ac:not(.sex-radio)::after, #register .es-icon-box-ac:not(.sex-radio)::after {
    content: '' !important; position: absolute !important; left: 6px !important; top: 2px !important;
    width: 5px !important; height: 10px !important; border: solid #fff !important; border-width: 0 2px 2px 0 !important; transform: rotate(45deg) !important;
}
#register .sex-radio.es-icon-box { border: 2px solid var(--fr-red) !important; border-radius: 50% !important; background: #fff !important; }
#register .sex-radio.es-icon-box-ac { position: relative !important; border: 2px solid var(--fr-red) !important; border-radius: 50% !important; background: #fff !important; }
#register .sex-radio.es-icon-box-ac::after {
    content: '' !important; position: absolute !important; left: 50% !important; top: 50% !important;
    width: 10px !important; height: 10px !important; background: var(--fr-red) !important; border-radius: 50% !important; transform: translate(-50%, -50%) !important;
}
#login .es-icon-auto, #login-2 .es-icon-auto {
    background:
        url('/dubu-logo.png?v=20260628h') center 40% / 78% auto no-repeat,
        repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
        linear-gradient(160deg, #2a0a10 0%, #8b0a1f 55%, #c8102e 100%) !important;
    border-right: 0 !important;
}
#login .es-icon-auto img, #login-2 .es-icon-auto img { display: none !important; }

/* =========================================================
   14) NUT NOI DANG BAI
   ========================================================= */
#msg-post-trigger { transition: transform .18s ease !important; cursor: pointer !important; }
#msg-post-trigger:hover { transform: scale(1.06) !important; }

/* =========================================================
   15) CAROUSEL HERO trang chu
   ========================================================= */
.index-body .swiper-slide {
    background-image:
        linear-gradient(90deg, rgba(42, 10, 16, 0.94) 0%, rgba(139, 10, 31, 0.80) 45%, rgba(200, 16, 46, 0.35) 100%),
        url('/wuxia-carousel.v3.png?v=20261107f') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.index-body .share-slide-icon {
    width: 96px !important; height: 96px !important; margin: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 0 !important; border: 2px solid rgba(255,255,255,.6) !important; border-radius: 50% !important;
    background-color: rgba(255,255,255,.10) !important; background-repeat: no-repeat !important;
    background-position: center center !important; background-size: 72% !important;
    box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.35) !important;
}
.index-body .share-slide-icon::before { content: none !important; }
/* 2026-11-02 (dbw-icons): bo 7 PNG wxicon trong carousel; icon SVG sprite (#dbwi-*) do index.twig render, mau trang */
.index-body .share-slide-icon { background-image: none !important; color: #fff; }
.index-body .share-slide-icon .dbw-i { width: 46px; height: 46px; }
.index-body .share-slide-title { font-family: var(--fr-font-head) !important; color: #fff !important; text-shadow: 0 3px 14px rgba(0,0,0,.5) !important; text-transform: uppercase; }
.index-body .share-slide-sub { color: rgba(255,255,255,.9) !important; }
.index-body .share-slide-tag { background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.45) !important; color: #fff !important; font-weight: 700 !important; border-radius: 4px !important; clip-path: none !important; backdrop-filter: blur(4px); }

/* =========================================================
   16) TRANG SHARE / PK / TEAM / TREASURE / UGC / BOND
   ========================================================= */
.pk-hero, .tm-hero, .tm-rank-hero, .ts-hero, .ug-hero, .bd-hero, .index-body .sc-hero,
body.forum-body .white-block.sc-hero {
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #2a0a10 0%, var(--fr-red-deep) 50%, var(--fr-red) 100%) !important;
    border: 1px solid var(--fr-red-dark) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(200, 16, 46, 0.22) !important;
}
.pk-hero .es-fw-700, .tm-hero .es-fw-700, .tm-rank-hero .es-fw-700, .ts-hero .es-fw-700, .ug-hero .es-fw-700, .bd-hero .es-fw-700,
.tm-hero .es-fs-24, .ts-hero .es-fs-24, .ug-hero .es-fs-24, .bd-hero .es-fs-24 { color: #fff !important; font-family: var(--fr-font-head) !important; }
.pk-arena, .pk-side, .tm-member, .tm-stage, .tm-rank-mine, .ts-box, .ug-card, .ug-step,
.bd-stat, .bd-card, .bd-evt, .set-card, .set-mem, .cycle-cell {
    background: #fff !important; border-color: var(--fr-red-line) !important; color: var(--fr-ink) !important;
}
.pk-side.me { border: 2px solid var(--fr-red) !important; }
.pk-num, [style*="#1A237E"], .tm-stage-pct, .bd-stat .num, .tm-rank-amt, .ug-num { color: var(--fr-red) !important; }
.empty-hint { background: var(--fr-red-soft) !important; color: var(--fr-ink-2) !important; border: 1px dashed var(--fr-red-line) !important; }
.tm-stage.unlocked, .ts-box.newbie, .bd-evt.tier_up { background: var(--fr-red-soft) !important; border-color: var(--fr-red) !important; }
.tm-stage.claimed, .ts-box.claimed { background: #eefaf2 !important; border-color: #3cb371 !important; }
.cycle-cell.done { background: linear-gradient(135deg, #e8334f, var(--fr-red-dark)) !important; color: #fff !important; }
.cycle-cell.milestone { background: linear-gradient(135deg, var(--fr-gold), #b8862f) !important; color: #fff !important; }
.cycle-cell.milestone .label, .cycle-cell.milestone .day { color: #fff !important; }
.cycle-cell.today { border-color: var(--fr-red) !important; box-shadow: 0 0 0 3px var(--fr-red-glow) !important; }
.set-card .set-mem.owned { border-color: var(--fr-red) !important; background: var(--fr-red-soft) !important; }
.tm-bar-fill, .ug-bar-fill, .tm-rank-prize.r1 { background: linear-gradient(90deg, #e8334f, var(--fr-red-dark)) !important; }
.tm-bar, .ts-bar, .ug-bar, .bd-bar, .pk-bar { background: var(--fr-bg-2) !important; }
.tm-stage-name, .set-card .set-title { color: var(--fr-ink) !important; }
.tm-stage-reward, .tm-rank-x { color: #2e8b57 !important; }
.tm-tag.s2 { background: #eefaf2 !important; color: #2e8b57 !important; }
.ug-step { border-left-color: var(--fr-red) !important; }
.bd-timeline:before { background: linear-gradient(180deg, var(--fr-red), var(--fr-red-line) 60%, transparent) !important; }
.bd-evt:before { background: var(--fr-red) !important; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fr-red-line) !important; }
.bd-evt-meta { color: var(--fr-ink-3) !important; }
.ts-icon, .ev-card .ev-icon {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 86px !important; height: 86px !important; border-radius: 50% !important;
    background: var(--fr-red-soft) !important; border: 2px solid var(--fr-red) !important;
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.18) !important;
}
.ts-icon { width: 96px !important; height: 96px !important; font-size: 52px !important; }
/* 2026-11-02 (dbw-icons): 6 o "Luc tuyet" + loi vao thuong thanh -> huy hieu tron trang/vien do + icon SVG sprite (bo PNG wxicon) */
.index-body .six-cell .six-icon {
    font-size: 0 !important; width: 58px !important; height: 58px !important; margin: 0 auto 6px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    border-radius: 50% !important; background: var(--fr-red-soft) !important; border: 1.5px solid var(--fr-red-line) !important;
    color: var(--fr-red) !important; box-shadow: 0 4px 12px rgba(200, 16, 46, 0.10) !important;
    transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.index-body .six-cell .six-icon .dbw-i { width: 28px !important; height: 28px !important; }
.index-body .six-cell:hover .six-icon { background: var(--fr-red) !important; border-color: var(--fr-red) !important; color: #fff !important; transform: translateY(-2px); }
.index-body .six-cell .six-icon::before { content: none !important; }
.index-body .mall-entry .me-icon {
    font-size: 0 !important; width: 50px !important; height: 50px !important; border-radius: 50% !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    background: var(--fr-red-soft) !important; border: 1.5px solid var(--fr-red-line) !important; color: var(--fr-red) !important;
}
.index-body .mall-entry .me-icon .dbw-i { width: 26px !important; height: 26px !important; }
.index-body .mall-entry .me-icon::before { content: none !important; }
/* (các rule share-index cũ đã chuyển sang §26) */

/* =========================================================
   17) TRANG CA NHAN (/home/me/*) · bo cuc 2 cot bang CSS grid
   me/nav.twig (v2) xuat <aside class="me-side">; cac khoi noi dung la
   anh em cung cap trong .forum-shell -> grid: cot 1 = sidebar, cot 2 = noi dung.
   ========================================================= */
body.forum-body .forum-shell:has(> .me-side) {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
    padding-top: 20px;
}
body.forum-body .forum-shell:has(> .me-side) > * { grid-column: 2; min-width: 0; }
body.forum-body .forum-shell:has(> .me-side) > .me-side { grid-column: 1; grid-row: 1 / span 60; position: sticky; top: calc(var(--fr-header-h, 118px) + 16px); }
body.forum-body .forum-shell:has(> .me-side) > .forum-crumb { grid-row: 1; margin-top: 0; }
body.forum-body .forum-shell:has(> .me-side) > .white-block:first-of-type { margin-top: 0; }
body.forum-body .forum-shell:has(> .me-side) > #left-nav-box { display: none !important; }
@media (max-width: 1024px) {
    body.forum-body .forum-shell:has(> .me-side) { display: block; }
    body.forum-body .forum-shell:has(> .me-side) > .me-side { position: static; margin-bottom: 16px; }
}
/* cac the inline cu trong trang me/* : vien vang/nen giay -> trang/do */
body.forum-body [style*="#402F14"] { background: var(--dbw-grad-dark, linear-gradient(135deg,#2a0a10,#6e0818)) !important; border: 0 !important; border-radius: var(--fr-radius) !important; }
body.forum-body [style*="#F8E7C8"] { background-color: var(--fr-red-soft) !important; background-image: none !important; }
body.forum-body [style*="#F8E7C8"], body.forum-body [style*="#F8E7C8"] * { color: var(--fr-red-deep) !important; }
body.forum-body #chat-list { background: var(--fr-bg) !important; border: 1px solid var(--fr-line) !important; }
body.forum-body #chat-list::-webkit-scrollbar-track { background: var(--fr-bg-2) !important; border: 0 !important; }
body.forum-body #chat-list::-webkit-scrollbar-thumb { background: var(--fr-red-line) !important; border: 0 !important; }
body.forum-body [style*="#D1E9FF"] { background: var(--fr-red-soft) !important; }
body.forum-body [style*="#787F74"] { background: var(--fr-red) !important; color: #fff !important; }

/* =========================================================
   18) TRANG VIP
   ========================================================= */
body.forum-body .vip-top .es-icon-vip-nav,
body.forum-body .vip-top .es-icon-gifts,
body.forum-body .vip-top .es-icon-light {
    background-repeat: no-repeat !important; background-position: center !important; background-size: contain !important;
    border-radius: 50% !important; filter: none !important;
}
body.forum-body .vip-top .es-icon-light { width: 46px !important; height: 46px !important; }
/* 2026-11-02 (dbw-icons): bo 3 PNG wxicon o VIP; icon gem/package/lantern lay tu dbw-icons.css (mask) */
body.forum-body .vip-top .es-icon-vip-nav, body.forum-body .vip-top .es-icon-gifts, body.forum-body .vip-top .es-icon-light { border-radius: 0 !important; }
body.forum-body .vip-top { background-color: #fff !important; border: 1px solid var(--fr-red-line) !important; border-radius: var(--fr-radius) !important; box-shadow: var(--fr-shadow) !important; }
body.forum-body .vip-top.vip-hero { border: 1px solid var(--fr-red) !important; box-shadow: 0 10px 28px rgba(200, 16, 46, 0.16) !important; overflow: hidden; }
body.forum-body .vip-top [style*="#FBF9F5"] { background-color: var(--fr-red-soft) !important; }
body.forum-body .vip-top [style*="rgba(245, 203, 134"] { background-color: var(--fr-red-soft) !important; }
body.forum-body .vip-badge-gold { filter: brightness(0) saturate(100%) invert(14%) sepia(92%) saturate(5200%) hue-rotate(340deg) brightness(88%) contrast(100%) !important; }
body.forum-body .vip-num-gold { color: var(--fr-red) !important; text-align: center !important; line-height: 1.1 !important; }

/* =========================================================
   19) PHAN TRANG
   ========================================================= */
body.forum-body es-auto-page a,
body.forum-body .es-page a,
body.forum-body .layui-laypage a,
body.forum-body .layui-laypage span {
    border: 1px solid var(--fr-line) !important; color: var(--fr-ink-2) !important; background: #fff !important; border-radius: 6px !important;
}
body.forum-body es-auto-page .es-page-ac,
body.forum-body .es-page .es-page-ac,
body.forum-body .es-page .active,
body.forum-body .layui-laypage .layui-laypage-curr .layui-laypage-em { background: var(--fr-red) !important; border-color: var(--fr-red) !important; color: #fff !important; }

/* =========================================================
   20) NHAC NEN
   ========================================================= */
body.forum-body .yjj-music-toggle,
body.forum-body .yjj-music-panel { background: #fff !important; border: 1px solid var(--fr-red-line) !important; color: var(--fr-ink) !important; box-shadow: var(--fr-shadow-lg) !important; }
body.forum-body .yjj-music-toggle:hover { background: var(--fr-red-soft) !important; }

/* =========================================================
   20b) TRANG DIEN DAN (/home/msg)
   ========================================================= */
body.forum-body #msg-search-bar { border: 1px solid var(--fr-red-line) !important; border-radius: 8px !important; background: #fff !important; }
body.forum-body #msg-search-btn {
    width: auto !important; min-width: 96px !important; padding: 0 18px !important; white-space: nowrap !important; border-radius: 6px !important; height: 40px !important;
    background: var(--dbw-grad-red, #c8102e) !important; color: #fff !important; border: 0 !important; font-weight: 700 !important; letter-spacing: .3px;
}
body.forum-body #msg-post-trigger {
    width: 60px !important; height: 60px !important; border-radius: 50% !important;
    right: max(16px, calc((100vw - 1200px) / 2 - 84px)) !important;
    background: var(--dbw-grad-red, #c8102e) !important;
    border: 3px solid #fff !important;
    box-shadow: 0 0 0 1px var(--fr-red), 0 10px 24px rgba(200, 16, 46, 0.35) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: #fff !important; font-size: 32px !important; line-height: 1 !important; font-weight: 300;
    transition: transform .15s ease;
}
body.forum-body #msg-post-trigger:hover { transform: scale(1.06); }
/* 2026-11-02 (dbw-icons): an moi thu cu (img PNG), chi hien icon but SVG .fx-post-fab */
body.forum-body #msg-post-trigger > *:not(.fx-post-fab) { display: none !important; }
body.forum-body #msg-post-trigger .fx-post-fab { display: inline-flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; }
body.forum-body #msg-post-trigger .fx-post-fab .dbw-i { width: 26px; height: 26px; }

/* =========================================================
   21) RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    body.forum-body .white-block { border-radius: 8px !important; }
}

/* =========================================================
   22) TRANG TAI GAME (/home/download/*)  ·  v3 2026-11-01
   Markup moi trong download/index.twig, list.twig, log.twig, _card.twig, _modal.twig
   ========================================================= */
.dl-page { display: flex; flex-direction: column; gap: 22px; padding: 22px 0 40px; }

/* nut dung chung */
.dl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
    font: 700 13.5px/1 var(--fr-font); letter-spacing: .01em; white-space: nowrap; cursor: pointer; text-decoration: none;
    transition: filter .15s, transform .15s, background .15s, color .15s, border-color .15s;
}
.dl-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.dl-btn b { font-weight: 800; margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12px; }
.dl-btn-primary { background: var(--dbw-grad-red, linear-gradient(180deg,#e8334f,#a80d26)); color: #fff; border-color: var(--fr-red-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 4px 12px var(--fr-red-glow); }
.dl-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.dl-btn-primary.disabled { background: var(--fr-bg-2); color: var(--fr-ink-3); border-color: var(--fr-line); box-shadow: none; cursor: default; }
.dl-btn-ghost { background: #fff; color: var(--fr-ink); border-color: var(--dbw-line-2, #d7dbe2); }
.dl-btn-ghost:hover { color: var(--fr-red); border-color: var(--fr-red); background: var(--fr-red-soft); }
.dl-btn-light { background: #fff; color: var(--fr-red); }
.dl-btn-light:hover { filter: brightness(.97); color: var(--fr-red-dark); }
.dl-btn-light b { background: var(--fr-red-soft); color: var(--fr-red); }
.dl-btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.dl-btn-outline:hover { background: rgba(255,255,255,.16); color: #fff; }
.dl-btn-lg { height: 46px; padding: 0 24px; font-size: 14.5px; }

/* hero */
.dl-hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center;
    padding: 38px 40px; border-radius: 14px; color: #fff; border: 1px solid var(--fr-red-dark);
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px),
        radial-gradient(700px 300px at 85% -20%, rgba(232,51,79,.5), transparent 70%),
        linear-gradient(135deg, #2a0a10 0%, #8b0a1f 55%, #c8102e 100%);
    box-shadow: 0 14px 34px rgba(200,16,46,.22);
}
.dl-hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid rgba(255,255,255,.05); pointer-events: none; }
.dl-kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 11.5px/1 var(--fr-font); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.dl-kicker::before { content: ""; width: 26px; height: 2px; background: #fff; }
.dl-hero-title { margin: 12px 0 0; font: 600 clamp(26px, 3vw, 38px)/1.1 var(--fr-font-head); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.dl-hero-sub { margin: 12px 0 0; max-width: 620px; font-size: 14.5px; line-height: 1.75; color: rgba(255,255,255,.86); }
.dl-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dl-hero-tips { position: relative; z-index: 1; list-style: none; margin: 0; padding: 18px 20px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 12px; }
.dl-hero-tips li { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.9); }
.dl-hero-tips li i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--fr-red); font: 800 12px/24px var(--fr-font-head); text-align: center; font-style: normal; }

/* section */
.dl-section { background: #fff; border: 1px solid var(--fr-red-line); border-radius: 12px; box-shadow: var(--fr-shadow); padding: 22px 24px 26px; }
.dl-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--fr-line); }
.dl-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-width: 0; }
.dl-section-title { position: relative; margin: 0; padding-left: 14px; font: 600 22px/1.15 var(--fr-font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--fr-ink); }
.dl-section-title::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--fr-red); }
.dl-section-desc { margin: 0; font-size: 13.5px; color: var(--fr-ink-3); }
.dl-section-desc b { color: var(--fr-red); font-weight: 800; }
.dl-section-more { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 13.5px; font-weight: 700; color: var(--fr-red) !important; text-decoration: none; white-space: nowrap; }
.dl-section-more:hover { color: var(--fr-red-dark) !important; }
.dl-more-arrow { display: inline-block; transition: transform .18s; }
.dl-section-more:hover .dl-more-arrow { transform: translateX(3px); }
.dl-section-more:hover .dl-more-arrow-left { transform: translateX(-3px); }

/* luoi the */
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.dl-card {
    position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px;
    background: #fff; border: 1px solid var(--fr-line); border-radius: 12px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dl-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--fr-red); opacity: 0; transition: opacity .18s; }
.dl-card:hover { transform: translateY(-4px); border-color: var(--fr-red-line); box-shadow: 0 14px 30px rgba(200,16,46,.14); }
.dl-card:hover::before { opacity: 1; }
.dl-card-top { display: flex; align-items: center; gap: 14px; }
.dl-card-icon { position: relative; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 14px; overflow: hidden; background: var(--fr-red-soft); border: 1px solid var(--fr-red-line); display: flex; align-items: center; justify-content: center; color: var(--fr-red); }
.dl-card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.dl-card-icon-fallback { width: 28px; height: 28px; }
.dl-card-head { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-card-name { margin: 0; font: 700 15.5px/1.3 var(--fr-font); color: var(--fr-ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.dl-card-tag { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: var(--fr-red-soft); color: var(--fr-red); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dl-card-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px dashed var(--fr-line); }
.dl-card-meta li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; font-size: 13px; color: var(--fr-ink-2); border-bottom: 1px dashed var(--fr-line); }
.dl-card-meta li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--fr-red); }
.dl-card-meta .download-card-empty { color: var(--fr-ink-3); font-style: italic; }
.dl-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 2px; }
.dl-card-actions .dl-btn { flex: 1 1 auto; height: 38px; padding: 0 12px; font-size: 13px; }
.dl-card-actions .dl-btn-ghost { flex: 0 0 auto; }
.dl-section > [style*="padding: 150px"] { padding: 40px 0 !important; }
.dl-section .es-icon-160 { width: 110px !important; height: 110px !important; background-size: contain !important; }
.dl-pager { margin-top: 24px; display: flex; justify-content: center; }
.dl-pager es-auto-page { display: block; }

/* nhat ky */
.dl-log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl-log-item { position: relative; display: flex; gap: 16px; padding: 18px 4px 18px 0; border-bottom: 1px solid var(--fr-line); }
.dl-log-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.dl-log-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--fr-red-soft); border: 1px solid var(--fr-red-line); display: flex; align-items: center; justify-content: center; position: relative; }
.dl-log-icon::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--fr-red); box-shadow: 0 0 0 4px rgba(200,16,46,.15); }
.dl-log-icon img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-log-body { flex: 1 1 auto; min-width: 0; }
.dl-log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dl-log-title { margin: 0; font: 700 16px/1.4 var(--fr-font); color: var(--fr-ink); }
.dl-log-game { padding: 3px 10px; border-radius: 999px; background: var(--fr-red-soft); color: var(--fr-red); font-size: 11.5px; font-weight: 800; letter-spacing: .03em; }
.dl-log-content { margin-top: 8px; color: var(--fr-ink-2); font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dl-log-content-full { display: block; -webkit-line-clamp: unset; overflow: visible; }
.dl-log-time { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fr-ink-3); }
.dl-log-time::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--fr-ink-3); box-sizing: border-box; }

/* popup */
.dl-modal-bg { position: fixed; inset: 0; background: rgba(21,24,29,.55); backdrop-filter: blur(3px); z-index: 9998; display: none; }
.dl-modal {
    position: fixed; z-index: 9999; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 560px; max-width: 92vw; max-height: 80vh; background: #fff; border-radius: 12px; border: 1px solid var(--fr-red-line); border-top: 4px solid var(--fr-red);
    display: none; overflow: hidden; box-shadow: var(--fr-shadow-lg);
}
.dl-modal-sm { width: 460px; }
.dl-modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--fr-line); font: 600 18px/1.3 var(--fr-font-head); letter-spacing: .03em; text-transform: uppercase; color: var(--fr-ink); }
.dl-modal-head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-modal-head i { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fr-ink-3); font-style: normal; font-size: 16px; transition: background .15s, color .15s; }
.dl-modal-head i:hover { background: var(--fr-red-soft); color: var(--fr-red); }
.dl-modal-body { padding: 18px 20px 22px; overflow: auto; max-height: calc(80vh - 66px); color: var(--fr-ink-2); font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.dl-modal-body-link { white-space: normal; }
.dl-pwd-label { font-size: 13.5px; color: var(--fr-ink-3); margin-bottom: 10px; }
.dl-pwd-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.dl-pwd { font: 700 24px/1 var(--fr-font-head); letter-spacing: .14em; color: var(--fr-red); background: var(--fr-red-soft); border: 1px dashed var(--fr-red-line); border-radius: 8px; padding: 10px 16px; }

@media (max-width: 1100px) { .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .dl-hero { grid-template-columns: 1fr; padding: 28px 24px; }
    .dl-section { padding: 18px 16px 20px; }
}
@media (max-width: 720px) {
    .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .dl-section-head { flex-direction: column; align-items: flex-start; }
    .dl-card { padding: 14px; }
    .dl-card-actions { flex-wrap: wrap; }
}
@media (max-width: 460px) {
    .dl-grid { grid-template-columns: 1fr; }
    .dl-log-item { flex-direction: column; gap: 12px; }
    .dl-hero-actions .dl-btn { flex: 1 1 100%; }
}

/* =========================================================
   23) TRANG NAP TIEN (/home/recharge)  ·  3 the dau trang v3
   ========================================================= */
.rc-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .9fr); gap: 16px; margin-top: 22px; }
.rc-card { position: relative; min-height: 136px; border-radius: 12px; overflow: hidden; }
body.forum-body .rc-card.es-bc-white { border: 1px solid var(--fr-red-line) !important; box-shadow: var(--fr-shadow) !important; }
.rc-user { display: flex; align-items: center; padding: 18px 20px; }
.rc-user-inner { display: flex; align-items: center; width: 100%; }
.rc-avatar { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--fr-red); background: var(--fr-red-soft); }
.rc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.forum-body .recharge-user-name { font-size: 22px !important; font-weight: 800 !important; color: var(--fr-ink) !important; }
.rc-vip-badge { margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--dbw-grad-red, #c8102e); color: #fff; font: 800 11px/1.3 var(--fr-font-head); letter-spacing: .08em; white-space: nowrap; }
body.forum-body .recharge-user-team { margin: 6px 0 10px !important; font-size: 13px !important; }
.rc-user-stats { display: flex; gap: 22px; }
.rc-stat { display: inline-flex; align-items: center; gap: 6px; font: 700 22px/1 var(--fr-font-head); color: var(--fr-ink); }
.rc-perks { padding: 18px 20px; background: #fff; border: 1px solid var(--fr-red-line); box-shadow: var(--fr-shadow); display: flex; flex-direction: column; gap: 10px; }
.rc-perks::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fr-red); }
.rc-card-label { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px/1 var(--fr-font); letter-spacing: .16em; text-transform: uppercase; color: var(--fr-red); }
.rc-card-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fr-red); box-shadow: 0 0 0 3px var(--fr-red-glow); }
.rc-card-label-light { color: rgba(255,255,255,.85); }
.rc-card-label-light::before { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.rc-perks-list { display: flex; flex-direction: column; gap: 6px; }
.rc-perk { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.45; color: var(--fr-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-perk::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--fr-red); font-weight: 800; font-size: 12px; }
.rc-perk-max { font: 600 17px/1.3 var(--fr-font-head); letter-spacing: .03em; color: var(--fr-ink); padding-left: 0; white-space: normal; }
.rc-perk-max::before { display: none; }
.rc-points {
    display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px 20px; color: #fff; text-decoration: none;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #2a0a10 0%, #8b0a1f 55%, #c8102e 100%);
    border: 1px solid var(--fr-red-dark); box-shadow: 0 12px 28px rgba(200,16,46,.22);
    transition: transform .18s, box-shadow .18s;
}
.rc-points:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(200,16,46,.3); color: #fff; }
.rc-points-num { font: 600 36px/1 var(--fr-font-head); letter-spacing: .02em; color: #fff; }
.rc-points-ico { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 72px; height: 72px; color: rgba(255,255,255,.22); }
.rc-points-arrow { position: absolute; right: 18px; bottom: 14px; font-size: 16px; font-weight: 800; color: #fff; opacity: .85; transition: transform .18s; }
.rc-points:hover .rc-points-arrow { transform: translateX(4px); }
/* goi nap (khi mo tu nap): bo anh cz_bg -> the do sam, chu trang */
body.forum-body .vip-item.cz-bg, body.forum-body .vip-item.cz-bg-ac {
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px), linear-gradient(160deg, #2a0a10 0%, #8b0a1f 60%, #c8102e 100%) !important;
    border-radius: 14px !important; border: 1px solid var(--fr-red-dark) !important;
}
body.forum-body .vip-item.cz-bg-ac, body.forum-body .vip-item.is-selected { box-shadow: 0 0 0 3px var(--fr-red-glow), 0 12px 28px rgba(200,16,46,.3) !important; }
@media (max-width: 1024px) { .rc-top { grid-template-columns: 1fr 1fr; } .rc-user { grid-column: 1 / -1; } }
@media (max-width: 640px) { .rc-top { grid-template-columns: 1fr; } }

/* =========================================================
   24) TRANG VIP (/home/vip) · hero + qua thang + bang quyen loi v3
   ========================================================= */
body.forum-body .vip-top.vip-hero {
    height: auto !important; min-height: 280px; border: 1px solid var(--fr-red-dark) !important; border-radius: 14px !important;
    background-position: right center !important; background-size: cover !important;
    box-shadow: 0 14px 34px rgba(200,16,46,.22) !important;
}
body.forum-body .vip-hero .vip-hero-scrim {
    border-radius: 0; z-index: 1;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px),
        linear-gradient(90deg, rgba(42,10,16,.97) 0%, rgba(139,10,31,.92) 45%, rgba(200,16,46,.72) 100%) !important;
}
body.forum-body .vip-hero > div { z-index: 2; padding: 30px 36px 34px; }
body.forum-body .vip-hero > div > .es:first-child { flex-direction: column !important; align-items: flex-start !important; }
body.forum-body .vip-hero > div > .es:first-child > .es-w-100 { display: none; }
body.forum-body .vip-hero > div > [style*="margin-top: -25px"] { margin-top: 10px !important; }
body.forum-body .vip-hero .es-icon-vip-nav { width: 44px !important; height: 44px !important; background-color: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.35) !important; padding: 6px; box-sizing: border-box; }
body.forum-body .vip-hero .vip-hero-head { font: 700 12px/1 var(--fr-font) !important; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85) !important; text-shadow: none !important; }
body.forum-body .vip-hero .vip-badge-gold {
    width: auto !important; height: auto !important; background: none !important; filter: none !important;
    font: 600 72px/1 var(--fr-font-head); letter-spacing: .1em; color: #fff; margin-right: 18px;
}
body.forum-body .vip-hero .vip-badge-gold::before { content: "VIP"; }
body.forum-body .vip-hero .vip-hero-num { font: 600 96px/1 var(--fr-font-head) !important; color: #fff !important; -webkit-text-stroke: 0 !important; text-shadow: 0 6px 24px rgba(0,0,0,.35) !important; }
body.forum-body .vip-hero .es-mt-10.es-pc { justify-content: flex-start !important; margin: 8px 0 0 !important; min-height: 110px; }
body.forum-body .vip-hero .vip-hero-sub { color: rgba(255,255,255,.9) !important; text-shadow: none !important; font-weight: 600 !important; }
body.forum-body .vip-hero .es-h-14.es-bc-white { height: 10px !important; width: min(515px, 100%) !important; background: rgba(255,255,255,.22) !important; border: 0 !important; border-radius: 999px !important; overflow: hidden; }
body.forum-body .vip-hero .es-h-14.es-bc { height: 10px !important; background: linear-gradient(90deg, #ffd27a, #fff) !important; border: 0 !important; box-shadow: none !important; border-radius: 999px !important; }
body.forum-body .vip-top:not(.vip-hero) { background: #fff !important; border: 1px solid var(--fr-red-line) !important; border-radius: 12px !important; box-shadow: var(--fr-shadow) !important; margin-top: 20px !important; }
body.forum-body .vip-top .right-img { display: none !important; }
body.forum-body .vip-top .es-icon-gifts { width: 40px !important; height: 40px !important; }
body.forum-body .vip-top:not(.vip-hero) .vip-badge-gold { width: auto !important; height: auto !important; background: none !important; filter: none !important; font: 600 20px/1 var(--fr-font-head); letter-spacing: .08em; color: var(--fr-red); margin-left: 6px; }
body.forum-body .vip-top:not(.vip-hero) .vip-badge-gold::before { content: "VIP"; }
body.forum-body .vip-top .es-fs-18.es-fw-600 { font: 600 18px/1.2 var(--fr-font-head) !important; letter-spacing: .04em; text-transform: uppercase; }
body.forum-body .vip-gift-item { background-image: none !important; background: #fff !important; border: 1px solid var(--fr-line); border-radius: 12px; height: auto !important; padding: 22px 12px; transition: transform .18s, border-color .18s, box-shadow .18s; }
body.forum-body .vip-gift-item:hover { transform: translateY(-3px); border-color: var(--fr-red); box-shadow: 0 12px 26px rgba(200,16,46,.14); }
body.forum-body .vip-top [style*="#FBF9F5"] { background-color: transparent !important; gap: 14px; padding: 4px 0; }
body.forum-body .vip-top [style*="#FBF9F5"] > .es-wp-25 { padding: 0 6px; box-sizing: border-box; }
body.forum-body .vip-row { font-family: var(--fr-font) !important; }
body.forum-body .vip-row:nth-child(1) { background: var(--dbw-grad-dark, linear-gradient(135deg,#2a0a10,#6e0818)) !important; color: #fff !important; font: 700 12.5px/1.3 var(--fr-font) !important; letter-spacing: .1em; text-transform: uppercase; }
body.forum-body .vip-row:nth-child(2n+1):not(:first-child) { background-color: var(--fr-red-soft) !important; }
body.forum-body .vip-row:not(:first-child) { border-bottom: 1px solid var(--fr-line); }
body.forum-body .vip-row:not(:first-child) > div { min-height: 72px !important; padding: 14px 12px !important; }
body.forum-body .vip-row:first-child > div { min-height: 56px !important; padding: 10px 12px !important; }
body.forum-body .vip-row .vip-badge-gold { font-size: 18px !important; }
body.forum-body .vip-row .vip-num-gold { color: var(--fr-red) !important; font: 700 20px/1 var(--fr-font-head) !important; }
body.forum-body .vip-row [style*="#8a6d1f"] { color: var(--fr-ink-3) !important; }
body.forum-body .vip-top .es-br-13[style*="rgba(255, 255, 255, 0.5)"] { background: var(--fr-bg) !important; border: 1px solid var(--fr-line); padding: 0 18px 10px; margin-top: 20px; }
body.forum-body .vip-news-body { background: var(--fr-bg) !important; border: 1px solid var(--fr-line) !important; color: var(--fr-ink-2) !important; }
body.forum-body .vip-news-body::-webkit-scrollbar-thumb { background: var(--fr-red-line) !important; }
@media (max-width: 640px) {
    body.forum-body .vip-hero .vip-badge-gold { font-size: 44px; }
    body.forum-body .vip-hero .vip-hero-num { font-size: 60px !important; }
}

/* =========================================================
   25) LINH TINH · nut tim kiem (phong van) khong xuong dong
   ========================================================= */
body.forum-body .fr-search-submit { width: auto !important; min-width: 96px; padding: 0 20px !important; white-space: nowrap; border: 0 !important; font-weight: 700 !important; cursor: pointer; border-radius: 8px !important; }

/* =========================================================
   26) SHARE / QUANG BA (index + nav + reward-faq dung chung) · 2026-11-01 v3
   ========================================================= */
.sh-page { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

/* --- tabbar --- */
body.forum-body .sh-tabbar {
    display: flex; align-items: stretch; gap: 0; margin-top: 12px; padding: 0 !important; overflow: hidden;
    background: #fff !important; border: 1px solid var(--fr-red-line) !important; border-radius: 12px !important; box-shadow: var(--fr-shadow) !important;
}
body.forum-body .sh-tabbar::before { display: none !important; }
.sh-tabbar-head { display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 0 0 auto; padding: 12px 22px; color: #fff; background: linear-gradient(135deg, #2a0a10 0%, var(--fr-red-deep) 60%, var(--fr-red) 100%); border-right: 0 !important; }
.sh-tabbar-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); }
body.forum-body .sh-tabbar-title { padding: 0 !important; border: 0 !important; color: #fff !important; font-family: var(--fr-font-head) !important; font-size: 18px !important; font-weight: 600 !important; letter-spacing: .06em !important; text-transform: uppercase; white-space: nowrap; }
.sh-tabbar-list { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px 12px; }
body.forum-body .sh-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px !important; margin: 0 !important; border-radius: 8px !important; color: var(--fr-ink-2) !important; font-size: 14px !important; font-weight: 600 !important; white-space: nowrap; text-decoration: none; transition: background .18s, color .18s; }
body.forum-body .sh-tab:hover { color: var(--fr-red) !important; background: var(--fr-red-soft) !important; transform: none !important; }
body.forum-body .sh-tab.is-active { color: #fff !important; background: var(--dbw-grad-red, linear-gradient(180deg,#e8334f,#a80d26)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px var(--fr-red-glow) !important; }
body.forum-body .sh-tab .tab-dot { width: 6px !important; height: 6px !important; border-radius: 50%; background: var(--fr-red-line) !important; opacity: 1 !important; }
body.forum-body .sh-tab:hover .tab-dot { background: var(--fr-red) !important; }
body.forum-body .sh-tab.is-active .tab-dot { background: #fff !important; }

/* --- hero --- */
.sh-hero {
    position: relative; overflow: hidden; padding: 30px 32px 28px; border-radius: 14px; color: #fff;
    background:
        radial-gradient(700px 300px at 85% -40%, rgba(255,255,255,.14), transparent 70%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
        linear-gradient(135deg, #2a0a10 0%, var(--fr-red-deep) 55%, var(--fr-red) 100%);
    border: 1px solid var(--fr-red-dark); box-shadow: 0 16px 36px rgba(200,16,46,.22);
}
.sh-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.1) 60%, transparent); opacity: .55; }
.sh-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.sh-hero-copy { min-width: 0; flex: 1 1 auto; }
.sh-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.sh-kicker::before { content: ""; width: 22px; height: 2px; background: #fff; opacity: .9; }
.sh-hero-title { margin: 8px 0 0; font-family: var(--fr-font-head); font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.sh-hero-tip { margin: 14px 0 0; max-width: 760px; padding: 9px 14px; border-radius: 8px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.92); }
.sh-hero-tip b { color: #ffd98f; font-weight: 700; }
.sh-hero-user { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 12px 16px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); text-align: right; }
.sh-hero-user-lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sh-hero-user-name { font-family: var(--fr-font-head); font-size: 20px; letter-spacing: .04em; color: #fff; }
.sh-hero-user-time { font-size: 12px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.sh-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.sh-stat { position: relative; padding: 14px 14px 12px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px); transition: background .18s, transform .18s; }
.sh-stat:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.sh-stat-val { font-family: var(--fr-font-head); font-size: 30px; line-height: 1; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.sh-stat-val .unit { margin-left: 5px; font-family: var(--fr-font); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); }
.sh-stat-lbl { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.82); line-height: 1.3; }
.sh-live { position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 4px; background: #fff; color: var(--fr-red); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; animation: shLive 1.8s ease-in-out infinite; }
@keyframes shLive { 0%,100% { opacity: 1 } 50% { opacity: .45 } }

/* --- buttons --- */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font: 700 14px/1 var(--fr-font); white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: transform .16s, filter .16s, background .16s, color .16s, border-color .16s; }
.sh-btn:hover { transform: translateY(-1px); }
.sh-btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.sh-btn-primary { background: var(--dbw-grad-red, var(--fr-red)); color: #fff !important; border-color: var(--fr-red-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 16px var(--fr-red-glow); }
.sh-btn-primary:hover { filter: brightness(1.06); }
.sh-btn-ghost { background: #fff; color: var(--fr-ink) !important; border-color: var(--fr-line); }
.sh-btn-ghost:hover { color: var(--fr-red) !important; border-color: var(--fr-red); background: var(--fr-red-soft); }
.sh-btn-dark { background: linear-gradient(180deg, #3a0810, #1d0b10); color: #fff !important; border-color: #4a0410; }
.sh-btn-dark:hover { filter: brightness(1.15); }

/* --- mall + herald band --- */
.sh-band { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
body.forum-body .sh-mall { display: flex; align-items: center; gap: 14px; margin: 0 !important; padding: 12px 16px !important; border-radius: 12px !important; background: #fff !important; border: 1px solid var(--fr-red-line) !important; color: var(--fr-ink) !important; text-decoration: none; box-shadow: var(--fr-shadow); transition: transform .18s, box-shadow .18s; }
body.forum-body .sh-mall::before { display: none !important; }
body.forum-body .sh-mall:hover { transform: translateY(-2px); box-shadow: var(--fr-shadow-lg) !important; }
.sh-mall-icon { flex: 0 0 auto; }
.sh-mall-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sh-mall-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--fr-font-head); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: var(--fr-ink); }
.sh-mall-tag { padding: 2px 8px; border-radius: 4px; background: var(--fr-red); color: #fff; font: 700 10.5px/1.4 var(--fr-font); letter-spacing: .04em; text-transform: none; }
.sh-mall-sub { font-size: 12.5px; color: var(--fr-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.forum-body .sh-herald { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 0 0 0 10px !important; min-height: 60px; border-radius: 12px !important; background: #fff !important; border: 1px solid var(--fr-red-line) !important; box-shadow: var(--fr-shadow); overflow: hidden; color: var(--fr-ink) !important; }
body.forum-body .sh-herald-tag { flex: 0 0 auto; margin: 0 !important; padding: 5px 10px !important; border-radius: 6px !important; background: var(--dbw-grad-red, var(--fr-red)) !important; color: #fff !important; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .04em !important; }
.sh-herald-view { flex: 1 1 auto; min-width: 0; overflow: hidden; display: block; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sh-herald .herald-track { display: inline-block; white-space: nowrap; animation: heraldScroll 60s linear infinite; will-change: transform; }
.sh-herald:hover .herald-track { animation-play-state: paused; }
.sh-herald .herald-item { display: inline-block; padding: 0 22px; font-size: 13.5px; color: var(--fr-ink-2); }
.sh-herald .herald-item .icon { margin-right: 4px; }
.sh-herald .herald-item .time { margin-left: 6px; font-size: 11.5px; color: var(--fr-ink-3); }
@keyframes heraldScroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* --- generic white card --- */
.sh-card { padding: 22px 24px 24px; border-radius: 12px; background: #fff; border: 1px solid var(--fr-red-line); box-shadow: var(--fr-shadow); }
.sh-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sh-card-head-center { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.sh-card-title { position: relative; margin: 0; padding-left: 14px; font-family: var(--fr-font-head); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; color: var(--fr-ink); }
.sh-card-title::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--fr-red); }
.sh-card-head-center .sh-card-title { padding-left: 0; }
.sh-card-head-center .sh-card-title::before { display: none; }
body.forum-body .six-title { color: var(--fr-ink) !important; }
.sh-card-hint { font-family: var(--fr-font); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--fr-ink-3); }
.sh-card-desc { margin: 6px 0 0; font-size: 13.5px; color: var(--fr-ink-3); }
.sh-more { color: var(--fr-red); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sh-more:hover { text-decoration: underline; }

/* --- titles --- */
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.forum-body .sh-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; padding: 6px 12px !important; border-radius: 6px !important; color: #fff !important; font-size: 12.5px !important; font-weight: 700 !important; border: 0 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.sh-chip small { font-size: 10.5px; font-weight: 500; opacity: .8; }

/* --- 4 feature cards --- */
.sh-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sh-feature {
    position: relative; display: flex; flex-direction: column; min-height: 196px; padding: 20px 20px 18px; border-radius: 12px; overflow: hidden;
    color: #fff !important; text-decoration: none !important; border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 24px rgba(200,16,46,.16); transition: transform .18s, box-shadow .18s;
}
.sh-feature::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px); pointer-events: none; }
.sh-feature:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(200,16,46,.28); }
.sh-feature-sign   { background: linear-gradient(145deg, #e8334f 0%, #c8102e 100%); }
.sh-feature-card   { background: linear-gradient(145deg, #4a0410 0%, #a80d26 100%); }
.sh-feature-poster { background: linear-gradient(145deg, #8b0a1f 0%, #d8203f 100%); }
.sh-feature-spread { background: linear-gradient(145deg, #2a0a10 0%, #6e0818 100%); }
.sh-feature-num { position: absolute; right: 14px; bottom: 6px; font-family: var(--fr-font-head); font-size: 72px; line-height: 1; font-weight: 700; color: rgba(255,255,255,.1); pointer-events: none; }
.sh-feature-tag { align-self: flex-start; padding: 3px 9px; border-radius: 4px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.sh-feature-tag.is-done { background: #fff; color: var(--fr-red); border-color: #fff; }
.sh-feature-title { position: relative; margin: 14px 0 0; font-family: var(--fr-font-head); font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.sh-feature-sub { position: relative; margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.86); }
.sh-feature-cta { position: relative; margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 700; color: #fff; }

/* --- six arts --- */
.sh-six-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
body.forum-body .sh-six-cell {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    padding: 18px 12px 16px !important; border-radius: 10px !important; text-decoration: none;
    background: var(--fr-bg) !important; border: 1px solid var(--fr-line) !important; color: var(--fr-ink) !important;
    transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
body.forum-body .sh-six-cell:hover { transform: translateY(-3px); background: #fff !important; border-color: var(--fr-red) !important; box-shadow: 0 10px 22px var(--fr-red-glow) !important; }
body.forum-body .sh-six-cell .sh-six-icon { display: block; font-size: 30px; line-height: 1; margin-bottom: 6px; }
body.forum-body .sh-six-name { font-family: var(--fr-font-head); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--fr-ink) !important; }
body.forum-body .sh-six-sub { font-size: 11.5px; line-height: 1.4; color: var(--fr-ink-3) !important; }
body.forum-body .sh-six-flag { position: absolute; top: -7px; right: -6px; padding: 2px 7px; border-radius: 4px; background: var(--dbw-grad-red, var(--fr-red)) !important; color: #fff !important; font-size: 10px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 2px 6px var(--fr-red-glow); }
.sh-six-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--fr-line); }
.sh-link { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--fr-line); background: #fff; color: var(--fr-ink-2); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .16s; }
.sh-link:hover { color: var(--fr-red); border-color: var(--fr-red); background: var(--fr-red-soft); }
.sh-link-strong { color: #fff; background: var(--fr-red); border-color: var(--fr-red-dark); }
.sh-link-strong:hover { color: #fff; background: var(--fr-red-dark); }

/* --- invite --- */
.sh-invite-grid { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 20px; align-items: stretch; }
body.forum-body .sh-invite-box { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px !important; border-radius: 10px !important; background: var(--fr-bg) !important; border: 1px dashed var(--fr-red-line) !important; }
.sh-invite-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-invite-lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fr-ink-3); }
.sh-invite-url { font-size: 15px; font-weight: 600; color: var(--fr-red) !important; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.sh-invite-code { display: inline-block; align-self: flex-start; padding: 6px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--fr-red-line); font-family: var(--fr-font-head); font-size: 24px; letter-spacing: .14em; color: var(--fr-ink); }
.sh-invite-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sh-qr { display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--fr-red-line); box-shadow: var(--fr-shadow); }
.sh-qr img { width: 100%; height: 100%; max-height: 176px; object-fit: contain; }
.sh-qr-loading { font-size: 13px; color: var(--fr-ink-3); }

/* --- reward FAQ (dung chung cac trang share con) --- */
body.forum-body .reward-faq { margin-top: 18px; padding: 0 !important; border-radius: 12px !important; background: #fff !important; border: 1px solid var(--fr-red-line) !important; box-shadow: var(--fr-shadow); overflow: hidden; }
body.forum-body .reward-faq summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px !important; cursor: pointer; list-style: none; user-select: none; outline: none; font-family: var(--fr-font-head) !important; font-size: 17px !important; font-weight: 600 !important; letter-spacing: .03em; text-transform: uppercase; color: var(--fr-ink) !important; background: var(--fr-bg); }
body.forum-body .reward-faq summary::-webkit-details-marker { display: none; }
body.forum-body .reward-faq summary::before { content: "" !important; display: inline-block; width: 8px; height: 8px; margin: 0 !important; border-right: 2px solid var(--fr-red); border-bottom: 2px solid var(--fr-red); transform: rotate(-45deg); transition: transform .2s; }
body.forum-body .reward-faq[open] summary::before { transform: rotate(45deg); }
body.forum-body .reward-faq summary .faq-hint { margin-left: 0 !important; font-family: var(--fr-font); font-size: 12.5px !important; font-weight: 500 !important; text-transform: none; letter-spacing: 0; color: var(--fr-ink-3) !important; }
body.forum-body .reward-faq-body { padding: 10px 20px 20px !important; }
body.forum-body .reward-faq-body .faq-section, body.forum-body .reward-faq-body > div[style*="font-weight:600"] { margin-top: 14px; font-family: var(--fr-font-head) !important; font-size: 15px !important; letter-spacing: .04em; text-transform: uppercase; color: var(--fr-red) !important; }
body.forum-body .reward-faq-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; border: 1px solid var(--fr-line); border-radius: 8px; overflow: hidden; }
body.forum-body .reward-faq-body th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fr-ink-2) !important; background: var(--fr-red-soft) !important; border-bottom: 1px solid var(--fr-red-line) !important; }
body.forum-body .reward-faq-body td { padding: 10px 12px; font-size: 13px; line-height: 1.6; color: var(--fr-ink-2) !important; vertical-align: top; border-bottom: 1px solid var(--fr-line) !important; background: #fff; }
body.forum-body .reward-faq-body tr:last-child td { border-bottom: 0 !important; }
body.forum-body .reward-faq-body td:first-child { font-weight: 600; color: var(--fr-ink) !important; }
body.forum-body .reward-faq-body td b, body.forum-body .reward-faq-body td b[style] { color: var(--fr-red) !important; }
body.forum-body .reward-faq-body td.cell-tip { color: var(--fr-ink-3) !important; font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
body.forum-body .reward-faq-body tr.row-hl td, body.forum-body .reward-faq-body tr[style*="background"] td { background: var(--fr-red-soft) !important; }
body.forum-body .reward-faq-body .faq-note { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--fr-bg) !important; border-left: 3px solid var(--fr-red) !important; font-size: 12.5px; line-height: 1.75; color: var(--fr-ink-2) !important; }
body.forum-body .reward-faq-body .faq-note b { color: var(--fr-red) !important; }
body.forum-body .reward-faq-body code { padding: 1px 6px; border-radius: 4px; background: var(--fr-red-soft); color: var(--fr-red); font-size: 12px; }

/* --- responsive --- */
@media (max-width: 1100px) {
    .sh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sh-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-six-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .sh-band { grid-template-columns: 1fr; }
    body.forum-body .sh-tabbar { flex-direction: column; }
    .sh-tabbar-head { flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; }
    .sh-hero-top { flex-direction: column; }
    .sh-hero-user { align-items: flex-start; text-align: left; }
}
@media (max-width: 640px) {
    .sh-hero { padding: 22px 18px 20px; }
    .sh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sh-stat-val { font-size: 26px; }
    .sh-features { grid-template-columns: 1fr; }
    .sh-feature { min-height: 0; }
    .sh-six-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-invite-grid { grid-template-columns: 1fr; }
    .sh-qr { max-width: 200px; margin: 0 auto; }
    .sh-card { padding: 18px 16px 20px; }
    .sh-card-head { flex-direction: column; gap: 8px; }
    .sh-mall-sub { white-space: normal; }
    body.forum-body .sh-tab { padding: 8px 10px !important; font-size: 13px !important; }
}

/* --- hero cac trang share con: dong bo dark-red + Oswald --- */
body.forum-body .sign-hero, body.forum-body .rp-hero, body.forum-body .poster-hero, body.forum-body .dn-hero, body.forum-body .cp-hero, body.forum-body .card-hero,
body.forum-body .pk-hero, body.forum-body .tm-hero, body.forum-body .tm-rank-hero, body.forum-body .ts-hero, body.forum-body .ug-hero, body.forum-body .bd-hero, body.forum-body .sp-hero {
    background:
        radial-gradient(700px 300px at 85% -40%, rgba(255,255,255,.14), transparent 70%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
        linear-gradient(135deg, #2a0a10 0%, var(--fr-red-deep) 55%, var(--fr-red) 100%) !important;
    border: 1px solid var(--fr-red-dark) !important; border-radius: 14px !important; color: #fff !important;
    box-shadow: 0 16px 36px rgba(200,16,46,.22) !important;
}
body.forum-body .sign-hero::after, body.forum-body .rp-hero::after, body.forum-body .dn-hero::after, body.forum-body .cp-hero::after, body.forum-body .card-hero::after { display: none !important; }
body.forum-body .sign-hero .big, body.forum-body .card-hero .big, body.forum-body .cp-hero .big, body.forum-body .poster-hero .big, body.forum-body .rp-hero .big, body.forum-body .dn-hero .big,
body.forum-body .sign-hero .es-fs-24, body.forum-body .card-hero .es-fs-24, body.forum-body .cp-hero .es-fs-24, body.forum-body .poster-hero .es-fs-24, body.forum-body .rp-hero .es-fs-24, body.forum-body .dn-hero .es-fs-24, body.forum-body .pk-hero .es-fs-24,
body.forum-body .sign-hero .es-fs-22, body.forum-body .card-hero .es-fs-22, body.forum-body .cp-hero .es-fs-22, body.forum-body .poster-hero .es-fs-22, body.forum-body .rp-hero .es-fs-22, body.forum-body .dn-hero .es-fs-22, body.forum-body .pk-hero .es-fs-22, body.forum-body .ts-hero .es-fs-22, body.forum-body .ug-hero .es-fs-22, body.forum-body .bd-hero .es-fs-22, body.forum-body .tm-hero .es-fs-22 {
    font-family: var(--fr-font-head) !important; font-weight: 600 !important; letter-spacing: .02em; text-transform: uppercase; color: #fff !important; line-height: 1.1 !important;
}
body.forum-body .sign-hero .big { font-size: 36px !important; }
body.forum-body .sign-hero .sub, body.forum-body .card-hero .sub, body.forum-body .cp-hero .sub, body.forum-body .poster-hero .sub, body.forum-body .rp-hero .sub, body.forum-body .dn-hero .sub { color: rgba(255,255,255,.88) !important; }
body.forum-body .sign-hero [style*="rgba(255,255,255,.18)"], body.forum-body .rp-hero [style*="rgba(255,255,255,.18)"], body.forum-body .pk-hero [style*="rgba(255,255,255,.18)"], body.forum-body .cp-hero [style*="rgba(255,255,255,.15)"] { background: rgba(0,0,0,.22) !important; border: 1px solid rgba(255,255,255,.14); color: #fff !important; }
body.forum-body .sign-btn { border-radius: 8px !important; background: #fff !important; color: var(--fr-red) !important; font-family: var(--fr-font-head) !important; font-weight: 600 !important; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(0,0,0,.25) !important; }
body.forum-body .sign-btn.done { background: rgba(255,255,255,.18) !important; color: rgba(255,255,255,.7) !important; box-shadow: none !important; }
body.forum-body .cycle-cell { border-radius: 10px !important; }
body.forum-body .cycle-cell.today { box-shadow: 0 0 0 3px var(--fr-red-glow) !important; }
body.forum-body .ug-num, body.forum-body .tm-rank-x { color: var(--fr-red) !important; }
body.forum-body .sign-hero .es-fw-700, body.forum-body .rp-hero .es-fw-700, body.forum-body .poster-hero .es-fw-700, body.forum-body .dn-hero .es-fw-700, body.forum-body .cp-hero .es-fw-700, body.forum-body .card-hero .es-fw-700,
body.forum-body .pk-hero .es-fw-700, body.forum-body .tm-hero .es-fw-700, body.forum-body .tm-rank-hero .es-fw-700, body.forum-body .ts-hero .es-fw-700, body.forum-body .ug-hero .es-fw-700, body.forum-body .bd-hero .es-fw-700 {
    font-family: var(--fr-font-head) !important; font-weight: 600 !important; letter-spacing: .02em !important; text-transform: uppercase; color: #fff !important; line-height: 1.1 !important;
}
body.forum-body .card-hero .es-fs-30, body.forum-body .poster-hero .es-fs-28, body.forum-body .cp-hero .es-fs-26 { font-size: 34px !important; }
body.forum-body .rp-hero .es-fs-24, body.forum-body .dn-hero .es-fs-24, body.forum-body .pk-hero .es-fs-24, body.forum-body .tm-hero .es-fs-24, body.forum-body .ts-hero .es-fs-24, body.forum-body .ug-hero .es-fs-24, body.forum-body .bd-hero .es-fs-24 { font-size: 30px !important; }
body.forum-body .sign-hero [style*="rgba(255,255,255,."][style*="display:inline-block"], body.forum-body .rp-hero [style*="rgba(255,255,255,."][style*="display:inline-block"], body.forum-body .poster-hero [style*="rgba(255,255,255,."][style*="display:inline-block"],
body.forum-body .dn-hero [style*="rgba(255,255,255,."][style*="display:inline-block"], body.forum-body .cp-hero [style*="rgba(255,255,255,."][style*="display:inline-block"], body.forum-body .card-hero [style*="rgba(255,255,255,."][style*="display:inline-block"],
body.forum-body .pk-hero [style*="rgba(255,255,255,."][style*="display:inline-block"], body.forum-body .tm-hero [style*="rgba(255,255,255,."][style*="display:inline-block"], body.forum-body .ts-hero [style*="rgba(255,255,255,."][style*="display:inline-block"],
body.forum-body .ug-hero [style*="rgba(255,255,255,."][style*="display:inline-block"], body.forum-body .bd-hero [style*="rgba(255,255,255,."][style*="display:inline-block"] {
    background: rgba(0,0,0,.22) !important; border: 1px solid rgba(255,255,255,.14); color: #fff !important; border-radius: 8px !important; padding: 7px 12px !important; margin-top: 10px !important;
}
body.forum-body .draw-btn { border-radius: 8px !important; font-family: var(--fr-font-head) !important; font-weight: 600 !important; letter-spacing: .04em; text-transform: uppercase; background: #fff !important; color: var(--fr-red) !important; }
body.forum-body .draw-btn.alt { background: transparent !important; color: #fff !important; border: 2px solid rgba(255,255,255,.7) !important; }
body.forum-body .draw-btn[disabled] { background: rgba(255,255,255,.18) !important; color: rgba(255,255,255,.6) !important; border-color: transparent !important; }
body.forum-body .pity-bar > div { background: linear-gradient(90deg, #ffd98f, #ffb300) !important; }
body.forum-body .dn-me-pin, body.forum-body .tm-rank-mine, body.forum-body [style*="border:1px solid #FFB300"] { border-color: var(--fr-red-line) !important; background: #fff !important; box-shadow: var(--fr-shadow); }
body.forum-body .dn-me-pin [style*="#0277BD"] { color: var(--fr-ink) !important; }
body.forum-body .dn-prize, body.forum-body .tm-rank-prize { border-radius: 10px !important; border: 1px solid rgba(255,255,255,.18); }
body.forum-body .dn-prize.r1, body.forum-body .tm-rank-prize.r1, body.forum-body .dn-rank-1 { background: linear-gradient(135deg, #ffb300 0%, #e8334f 60%, var(--fr-red) 100%) !important; }
body.forum-body .donate-faq summary { font-family: var(--fr-font-head); font-size: 16px; letter-spacing: .03em; text-transform: uppercase; color: var(--fr-ink) !important; }
body.forum-body .donate-faq .body { color: var(--fr-ink-2) !important; }
/* nut .btn / .btn-primary dung chung trong cac trang share con */
body.forum-body .share-tabbar ~ * .btn, body.forum-body .share-tabbar ~ .btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 8px !important; border: 1px solid var(--fr-line) !important; background: #fff !important; color: var(--fr-ink) !important; font: 700 14px/1 var(--fr-font) !important; cursor: pointer; white-space: nowrap; text-decoration: none; transition: all .16s; }
body.forum-body .share-tabbar ~ * .btn:hover { color: var(--fr-red) !important; border-color: var(--fr-red) !important; background: var(--fr-red-soft) !important; }
body.forum-body .share-tabbar ~ * .btn.btn-primary { background: var(--dbw-grad-red, var(--fr-red)) !important; color: #fff !important; border-color: var(--fr-red-dark) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 16px var(--fr-red-glow); }
body.forum-body .share-tabbar ~ * .btn.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.forum-body .share-tabbar ~ * .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; filter: none !important; }
body.forum-body .ts-openbtn { border-radius: 8px !important; background: var(--dbw-grad-red, var(--fr-red)) !important; color: #fff !important; border: 1px solid var(--fr-red-dark) !important; font-weight: 700 !important; }
@media (max-width: 640px) {
    .sh-kicker { font-size: 10px; letter-spacing: .08em; line-height: 1.4; }
    .sh-kicker::before { display: none; }
    .sh-hero-title { font-size: 24px; }
    .sh-hero-user { width: 100%; }
    .sh-tabbar-kicker { display: none; }
    body.forum-body .sh-tabbar-title { font-size: 15px !important; }
}
@media (max-width: 640px) {
    body.forum-body .sh-mall { flex-wrap: wrap; }
    .sh-mall-body { flex-basis: calc(100% - 64px); }
    .sh-mall-title { font-size: 15px; }
    .sh-mall-sub { white-space: normal; }
    body.forum-body .sh-mall > .sh-btn { flex-basis: 100%; }
}
