/* =========================================================
   Hồi Ức Blue — giao diện "Tết rộn ràng" (đỏ – vàng, đèn lồng, hoa mai/đào)
   Nạp SAU bootstrap.min.css và main.css (xem pages/includes/header.php)
   ========================================================= */

:root {
    --tet-900: #6b0d0d;
    --tet-800: #8e1212;
    --tet-700: #b3161b;
    --tet-600: #cf1f24;
    --tet-500: #e2382c;
    --tet-400: #f0624b;
    --tet-300: #f6a08f;
    --tet-200: #f9cfc4;
    --tet-100: #fde6dd;
    --tet-50: #fff6ef;

    --gold-300: #ffe8a3;
    --gold-500: #f6c343;
    --gold-700: #b8860b;

    --ball-300: #fcd34d;
    --ball-400: #fbbf24;
    --ball-500: #f59e0b;
    --ball-600: #d97706;
    --ball-700: #b45309;
    --ball-900: #78350f;

    --ink: #3b1410;
    --muted: #8a5a4e;
    --danger: #dc2626;
    --card: #ffffff;

    --r-sm: 10px;
    --r: 14px;
    --r-lg: 22px;
    --shadow-sm: 0 2px 6px -2px rgba(143, 18, 18, .2);
    --shadow: 0 14px 34px -14px rgba(110, 12, 12, .55);

    --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
}

/* ---------- Nền trời ---------- */
html {
    min-height: 100%;
    background-color: #f7c873;
}

body {
    background: transparent !important;
    color: var(--ink);
    font-family: var(--font-body) !important;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--tet-700); }
a:hover { color: var(--tet-900); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--tet-900);
    letter-spacing: .2px;
}

::selection { background: var(--ball-300); color: var(--ball-900); }

.blue-scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(120, 8, 8, .78) 0%, rgba(190, 30, 20, .45) 30%, rgba(240, 120, 40, .12) 60%, rgba(0, 0, 0, 0) 80%),
        url("/images/bg.png") center bottom / cover no-repeat,
        #f7c873;
    transform: translateZ(0);
}

/* đèn lồng treo hai bên màn hình */
.blue-lantern {
    position: absolute;
    top: 0;
    width: 54px;
    height: 150px;
    transform-origin: 50% 0;
    animation: tet-swing 4.5s ease-in-out infinite alternate;
}
.blue-lantern::before { /* dây treo */
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 62px;
    margin-left: -1px;
    background: #f6c343;
}
.blue-lantern::after { /* thân đèn + tua */
    content: "";
    position: absolute;
    left: 0;
    top: 58px;
    width: 54px;
    height: 70px;
    border-radius: 50% / 46%;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0) 46%, rgba(255, 210, 90, .55) 48% 52%, rgba(0, 0, 0, 0) 54%),
        radial-gradient(ellipse at 40% 35%, #ff6b4a 0, #e3221b 45%, #a80f12 100%);
    box-shadow: 0 0 26px rgba(255, 90, 40, .75), inset 0 6px 0 -2px #f6c343, inset 0 -6px 0 -2px #f6c343;
}
.blue-lantern span { /* tua vàng */
    position: absolute;
    left: 50%;
    top: 126px;
    width: 10px;
    height: 24px;
    margin-left: -5px;
    border-radius: 0 0 4px 4px;
    background: repeating-linear-gradient(90deg, #f6c343 0 2px, #d99a16 2px 3px);
}
.blue-lantern--1 { left: 3%; }
.blue-lantern--2 { left: 12%; top: -30px; transform: scale(.75); animation-delay: -1.6s; }
.blue-lantern--3 { right: 3%; animation-delay: -2.4s; }
.blue-lantern--4 { right: 12%; top: -30px; transform: scale(.75); animation-delay: -.8s; }

@keyframes tet-swing {
    from { rotate: -6deg; }
    to   { rotate: 6deg; }
}

/* hoa mai / hoa đào rơi */
.blue-petal {
    position: absolute;
    top: -40px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23ffd23f'%3E%3Ccircle cx='20' cy='9' r='8'/%3E%3Ccircle cx='31' cy='17' r='8'/%3E%3Ccircle cx='27' cy='30' r='8'/%3E%3Ccircle cx='13' cy='30' r='8'/%3E%3Ccircle cx='9' cy='17' r='8'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='5' fill='%23e36414'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: .95;
    animation: tet-fall linear infinite;
    will-change: transform;
}
.blue-petal--pink {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23ffa6c9'%3E%3Ccircle cx='20' cy='9' r='8'/%3E%3Ccircle cx='31' cy='17' r='8'/%3E%3Ccircle cx='27' cy='30' r='8'/%3E%3Ccircle cx='13' cy='30' r='8'/%3E%3Ccircle cx='9' cy='17' r='8'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='5' fill='%23d6336c'/%3E%3C/svg%3E");
}
.blue-petal:nth-child(5)  { left: 6%;  animation-duration: 14s; animation-delay: -2s; }
.blue-petal:nth-child(6)  { left: 18%; animation-duration: 18s; animation-delay: -9s;  width: 13px; height: 13px; }
.blue-petal:nth-child(7)  { left: 29%; animation-duration: 16s; animation-delay: -5s; }
.blue-petal:nth-child(8)  { left: 41%; animation-duration: 20s; animation-delay: -13s; width: 12px; height: 12px; }
.blue-petal:nth-child(9)  { left: 53%; animation-duration: 15s; animation-delay: -7s; }
.blue-petal:nth-child(10) { left: 64%; animation-duration: 19s; animation-delay: -1s;  width: 14px; height: 14px; }
.blue-petal:nth-child(11) { left: 75%; animation-duration: 17s; animation-delay: -11s; }
.blue-petal:nth-child(12) { left: 86%; animation-duration: 21s; animation-delay: -4s;  width: 12px; height: 12px; }
.blue-petal:nth-child(13) { left: 94%; animation-duration: 15s; animation-delay: -15s; }
.blue-petal:nth-child(14) { left: 47%; animation-duration: 23s; animation-delay: -18s; width: 16px; height: 16px; }

@keyframes tet-fall {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(40px, 55vh) rotate(200deg); }
    100% { transform: translate(-20px, calc(100vh + 60px)) rotate(420deg); }
}

/* ---------- Khung chính ---------- */
.blue-age {
    text-align: center;
    padding: 8px 12px 6px;
    color: #fff;
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(60, 0, 0, .7);
}

.blue-age img { height: 14px; vertical-align: -3px; margin-right: 4px; }

.blue-shell {
    position: relative;
    max-width: 980px;
    margin: 0 auto 28px;
    padding: 0 !important;
    background: rgba(255, 250, 240, .96);
    border: 3px solid #f6c343;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow), 0 0 0 4px rgba(179, 22, 27, .85), 0 0 30px rgba(246, 195, 67, .45);
}

.blue-shell > .container,
.blue-shell > div > .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---------- Hero ---------- */
.blue-hero {
    position: relative;
    padding: 34px 16px 50px;
    text-align: center;
    border-radius: calc(var(--r-lg) - 3px) calc(var(--r-lg) - 3px) 0 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 214, 102, .45) 0, rgba(255, 214, 102, 0) 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23f6c343' stroke-opacity='.16' stroke-width='2'%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3Cpath d='M0 30h18M42 30h18M30 0v18M30 42v18'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #8e1212 0%, #c41a1f 45%, #e2382c 100%);
    overflow: hidden;
    isolation: isolate;
}

/* chữ CHÚC MỪNG NĂM MỚI */
.blue-hero__greet {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-bottom: 4px;
    padding: 3px 18px;
    border: 1.5px solid #f6c343;
    border-radius: 999px;
    color: #ffe08a;
    background: rgba(110, 10, 10, .45);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

/* đèn lồng nhỏ trong hero */
.blue-hero__lantern {
    position: absolute;
    top: -6px;
    z-index: 1;
    width: 34px;
    height: 92px;
    transform-origin: 50% 0;
    animation: tet-swing 3.8s ease-in-out infinite alternate;
}
.blue-hero__lantern::before { content: ""; position: absolute; left: 16px; top: 0; width: 2px; height: 36px; background: #f6c343; }
.blue-hero__lantern::after {
    content: "";
    position: absolute;
    left: 0;
    top: 34px;
    width: 34px;
    height: 44px;
    border-radius: 50% / 46%;
    background: radial-gradient(ellipse at 40% 35%, #ffd76a 0, #f6a91b 50%, #c06a00 100%);
    box-shadow: 0 0 18px rgba(255, 200, 60, .8), inset 0 4px 0 -1px #b3161b, inset 0 -4px 0 -1px #b3161b;
}
.blue-hero__lantern--l { left: 24px; }
.blue-hero__lantern--r { right: 24px; animation-delay: -1.9s; }

/* viền hoa văn vàng dưới hero */
.blue-hero::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: -2px;
    height: 30px;
    background:
        radial-gradient(circle at 26px 30px, #fffaf0 22px, transparent 23px) 0 0 / 52px 30px repeat-x,
        radial-gradient(circle at 26px 30px, #f6c343 25px, transparent 26px) 0 0 / 52px 30px repeat-x;
    z-index: 1;
}

.blue-hero__logo { display: inline-block; position: relative; z-index: 2; }

.blue-hero #logo {
    width: auto !important;
    max-width: min(440px, 86%);
    max-height: 170px;
    filter: drop-shadow(0 8px 14px rgba(60, 0, 0, .5)) drop-shadow(0 0 18px rgba(255, 210, 90, .35));
    transition: transform .3s ease;
}

.blue-hero__logo:hover #logo { transform: scale(1.03) rotate(-1deg); }

.blue-hero__tagline {
    position: relative;
    z-index: 2;
    margin: 6px 0 14px;
    color: #ffe08a;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(90, 10, 10, .4);
}

/* ngọc rồng bay */
.blue-ball {
    position: absolute;
    z-index: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #dc2626;
    font-size: 13px;
    line-height: 1;
    background: radial-gradient(circle at 34% 28%, #fffbe6 0 9%, #fde68a 18%, #fbbf24 40%, #f59e0b 66%, #c2410c 100%);
    box-shadow: 0 0 18px rgba(253, 224, 71, .75), inset -3px -4px 6px rgba(154, 52, 18, .35);
    animation: tet-float 6s ease-in-out infinite alternate;
}

.blue-ball--1 { top: 18%; left: 7%;  width: 34px; height: 34px; animation-delay: -1s; }
.blue-ball--2 { top: 62%; left: 14%; width: 22px; height: 22px; font-size: 10px; animation-delay: -3s; }
.blue-ball--3 { top: 28%; right: 9%; width: 26px; height: 26px; font-size: 11px; animation-delay: -2s; }
.blue-ball--4 { top: 66%; right: 6%; width: 36px; height: 36px; font-size: 15px; animation-delay: -4.5s; }

@keyframes tet-float {
    from { transform: translateY(0) rotate(-8deg); }
    to   { transform: translateY(-12px) rotate(10deg); }
}

/* nút tải game */
.blue-dl {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 660px;
    margin: 0 auto;
}

.blue-dl__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 16px;
    color: var(--ball-900) !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #fde68a 0%, var(--ball-400) 45%, var(--ball-500) 100%);
    box-shadow: 0 4px 0 var(--ball-700), 0 10px 18px -8px rgba(120, 53, 15, .6);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.blue-dl__btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ball-700), 0 14px 22px -8px rgba(120, 53, 15, .6); }
.blue-dl__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ball-700); }

.blue-dl__btn i { font-size: 22px; }

.blue-dl__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.blue-dl__text b { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.blue-dl__text small { font-size: 10px; font-weight: 600; opacity: .8; }

.blue-badge-new {
    position: absolute;
    top: -8px;
    right: -6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, .5);
    animation: tet-pulse 1.6s ease-in-out infinite;
}

@keyframes tet-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* ---------- Thanh tài khoản ---------- */
.blue-account {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px 16px;
    border-bottom: 1px dashed var(--tet-200);
}

.blue-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

/* ---------- Nút ---------- */
.blue-btn,
.btn {
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease;
}

.blue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid transparent;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
}

.blue-btn:hover { transform: translateY(-1px); }
.blue-btn:active { transform: translateY(1px); }

.blue-btn--primary,
.btn-info,
.btn-primary,
.btn-main,
.btn.color-main {
    color: #fff !important;
    background: linear-gradient(180deg, var(--tet-400), var(--tet-600)) !important;
    border-color: var(--tet-600) !important;
    box-shadow: 0 3px 0 var(--tet-800);
}

.blue-btn--primary:hover,
.btn-info:hover,
.btn-primary:hover,
.btn-main:hover,
.btn.color-main:hover { filter: brightness(1.07); color: #fff !important; }

.blue-btn--ball,
.btn-success {
    color: var(--ball-900) !important;
    background: linear-gradient(180deg, #fde68a, var(--ball-500)) !important;
    border-color: var(--ball-600) !important;
    box-shadow: 0 3px 0 var(--ball-700);
}

.blue-btn--ball:hover,
.btn-success:hover { filter: brightness(1.05); color: var(--ball-900) !important; }

.blue-btn--ghost,
.btn-light {
    color: var(--tet-800) !important;
    background: #fff !important;
    border: 1px solid var(--tet-200) !important;
    box-shadow: var(--shadow-sm);
}

.blue-btn--ghost:hover,
.btn-light:hover { background: var(--tet-50) !important; border-color: var(--tet-300) !important; }

.blue-btn--danger,
.btn-danger {
    color: #fff !important;
    background: linear-gradient(180deg, #f87171, #dc2626) !important;
    border-color: #b91c1c !important;
    box-shadow: 0 3px 0 #991b1b;
}

.blue-btn--block { width: 100%; }

.btn.color-main.form-control {
    height: auto;
    min-height: 46px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .4px;
}

.btn:focus, .btn.focus, .blue-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 56, 44, .35) !important;
}

.page-active,
.btn.page-active {
    color: #fff !important;
    background: var(--tet-600) !important;
    border-color: var(--tet-600) !important;
}

/* ---------- Nền vùng nội dung (class cũ) ---------- */
.color-main2,
.color-forum,
.container[style*="#17a2b8"],
.container[style*="#16a2bd"] {
    background: transparent !important;
}

.color-main:not(.btn) {
    background: linear-gradient(180deg, var(--tet-500), var(--tet-600));
    color: #fff;
}

.bg-info {
    background: linear-gradient(135deg, var(--tet-500), var(--tet-700)) !important;
    color: #fff;
}

.bg-info.rounded-bottom { border-radius: 0 0 var(--r-lg) var(--r-lg) !important; }

.color-main2 > .row > [class*="col"] > h5,
.color-main2 h5.text-center {
    margin: 14px 0 16px;
    font-size: 22px;
    color: var(--tet-900);
}

/* hộp thông báo xanh nhạt cũ */
[style*="#c2e6ec"] {
    background: linear-gradient(135deg, #fff7e0, #fff) !important;
    border: 1px solid #fde68a;
    border-radius: var(--r) !important;
    margin-bottom: 14px;
}

[style*="color: #16a2bd"] { color: var(--tet-700) !important; }
.card-header[style*="#16a2bd"],
tr[style*="#16a2bd"],
tr[style*="#17a2b8"] {
    background: linear-gradient(180deg, var(--tet-500), var(--tet-600)) !important;
    color: #fff;
}

.text-danger { color: var(--danger) !important; }
.text-main { color: var(--ball-700); }

/* ---------- Tab diễn đàn ---------- */
#pageHeader3 { padding-top: 14px; }

#pageHeader3 > .row {
    margin: 0 0 4px !important;
    padding: 4px;
    background: var(--tet-100);
    border-radius: 999px;
}

#pageHeader3 .col { padding-left: 2px !important; padding-right: 2px !important; }

#pageHeader3 a {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 7px 6px !important;
    color: var(--tet-800) !important;
    font-family: var(--font-display);
    font-size: 14px !important;
    font-weight: 700 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#pageHeader3 a:hover { background: rgba(255, 255, 255, .55) !important; }

#pageHeader3 a.bg-light {
    background: #fff !important;
    color: var(--tet-900) !important;
    box-shadow: 0 2px 8px -2px rgba(143, 18, 18, .35) !important;
}

/* ---------- Danh sách bài viết ---------- */
.box-stt {
    position: relative;
    display: flow-root;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--tet-100);
    border-radius: var(--r);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.box-stt:hover {
    transform: translateY(-1px);
    border-color: var(--tet-300);
    box-shadow: var(--shadow-sm);
}

.box-stt > div:first-child {
    width: 34px !important;
    height: 34px;
    margin-right: 10px !important;
    display: grid;
    place-items: center;
    background: var(--tet-50);
    border-radius: 50%;
}

.box-stt > div:first-child img { width: 24px !important; }

.box-stt .box-right { overflow: hidden; }

.box-stt a {
    color: var(--tet-900) !important;
    font-weight: 600;
}

.box-stt a.important { color: var(--ball-700) !important; font-weight: 700; }

.box-stt a:hover { color: var(--tet-600) !important; }

.box-stt .box-name {
    margin-top: 2px;
    font-size: 11px !important;
    color: var(--muted);
}

.box-stt .box-name .fa-check { margin-left: 4px; color: var(--tet-500); font-size: 9px; }

/* vùng bài ghim */
.container[style*="#17a2b8"] {
    padding-top: 10px !important;
}

.container[style*="#17a2b8"] .box-stt {
    background: linear-gradient(135deg, #fffbeb, #fff 60%);
    border-color: #fde68a;
}

/* ---------- Bảng xếp hạng (trang chủ) ---------- */
#bxh > hr { display: none; }

#bxh::before {
    content: "Bảng xếp hạng";
    display: block;
    margin: 6px 0 8px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--tet-900);
}

#bxh #bxh-tabs { gap: 6px; }

#bxh #bxh-tabs .bxh-tab {
    color: var(--tet-800);
    background: #fff;
    border: 1px solid var(--tet-200);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
}

#bxh #bxh-tabs .bxh-tab:hover { background: var(--tet-50); }

#bxh #bxh-tabs .bxh-tab.active {
    color: #fff;
    background: linear-gradient(180deg, var(--tet-400), var(--tet-600));
    border-color: var(--tet-600);
}

#bxh #bxh-body {
    overflow-x: auto;
    border: 1px solid var(--tet-100);
    border-radius: var(--r);
    background: #fff;
}

#bxh #bxh-body table { font-size: 12px; }

#bxh #bxh-body thead th {
    padding: 8px 6px;
    color: #fff;
    background: var(--tet-600);
}

#bxh #bxh-body td { padding: 7px 6px; border-top: 1px solid var(--tet-50); }
#bxh #bxh-body tbody tr:nth-child(even) td { background: #fff8f2; }
#bxh .bxh-rank-1 td { background: #fef3c7 !important; font-weight: 700; color: #92400e; }
#bxh .bxh-rank-2 td { background: #f1f5f9 !important; font-weight: 700; color: #334155; }
#bxh .bxh-rank-3 td { background: #ffedd5 !important; font-weight: 700; color: #9a3412; }
#bxh #bxh-updated { color: var(--muted); }

/* ---------- Form ---------- */
label { font-weight: 600; color: var(--tet-900); }

.form-control {
    height: 44px;
    border: 1.5px solid var(--tet-200);
    border-radius: 12px;
    color: var(--ink);
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea.form-control { height: auto; }

.form-control:focus {
    border-color: var(--tet-500);
    box-shadow: 0 0 0 4px rgba(226, 56, 44, .18);
}

.input-group > .form-control:not(:last-child) { border-radius: 12px 0 0 12px; }

.input-group-append img,
#captcha {
    height: 44px !important;
    border: 1.5px solid var(--tet-200);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: #fff;
}

.form-check-input { accent-color: var(--tet-600); }

/* ---------- Bảng, thẻ, modal ---------- */
.table { background: #fff; border-radius: var(--r); overflow: hidden; }
.table-bordered, .table-bordered td, .table-bordered th { border-color: var(--tet-100) !important; }
.table thead td, .table thead th { border-bottom: 0; }

.card {
    border: 1px solid var(--tet-100);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
}

.card-header:first-child { border-radius: var(--r) var(--r) 0 0; }

.bg-light { background-color: var(--tet-50) !important; }

.alert { border-radius: var(--r); }

.badge { border-radius: 999px; padding: .35em .7em; }

.dropdown-menu {
    border: 1px solid var(--tet-100);
    border-radius: var(--r);
    padding: 6px;
    box-shadow: var(--shadow);
}

.dropdown-item { border-radius: 8px; padding: 7px 12px; font-weight: 500; }
.dropdown-item:hover { background: var(--tet-50); color: var(--tet-900); }

.modal-content {
    border: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(90, 10, 10, .55);
}

/* thông báo popup (footer) */
.blue-modal .modal-dialog { max-width: 400px; }

.blue-modal__head {
    position: relative;
    padding: 20px 18px 30px;
    text-align: center;
    color: #ffe9b0;
    border-bottom: 3px solid #f6c343;
    background: linear-gradient(180deg, #8e1212, #d42020);
}

.blue-modal__head img { max-width: 78%; max-height: 110px; filter: drop-shadow(0 6px 10px rgba(90, 10, 10, .35)); }

.blue-modal__head p {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(90, 10, 10, .4);
}

.blue-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
}

.blue-modal__close:hover { background: rgba(255, 255, 255, .35); }

.blue-modal__body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.blue-modal__body img { width: 22px; height: 22px; }

/* ---------- Thẻ thành viên /me ---------- */
.bg-info .btn.bg-light {
    margin: 4px 2px 0;
    padding: 5px 12px !important;
    border-radius: 999px;
    color: var(--tet-800) !important;
    background: #fff !important;
    border: 0;
    box-shadow: 0 2px 0 rgba(90, 10, 10, .25);
}

.bg-info img[src*="/images/"] { border-radius: 50%; }

.blue-member {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--ball-900);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: linear-gradient(180deg, #fde68a, var(--ball-500));
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .6), 0 0 14px rgba(253, 224, 71, .7);
}

.blue-member .fa-star { color: #dc2626; font-size: 10px; }

/* ---------- Footer ---------- */
.blue-footer {
    position: relative;
    padding: 30px 16px 22px;
    text-align: center;
    color: #ffe9b0;
    border-top: 3px solid #f6c343;
    border-radius: 0 0 calc(var(--r-lg) - 3px) calc(var(--r-lg) - 3px);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23f6c343' stroke-opacity='.14' stroke-width='2'%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3Cpath d='M0 30h18M42 30h18M30 0v18M30 42v18'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #b3161b, #6b0d0d);
}

.blue-footer__greet {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: #ffd76a;
    letter-spacing: .5px;
}

.blue-footer__links { margin-bottom: 10px; font-weight: 600; }
.blue-footer__links a { color: #ffe9b0 !important; text-decoration: none; }
.blue-footer__links a:hover { text-decoration: underline; }
.blue-footer__links span { margin: 0 8px; opacity: .6; }
.blue-footer__copy { font-size: 11px; opacity: .85; }

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
    .blue-shell { width: auto; margin: 0 8px 20px; border-radius: 18px; }
    .blue-hero { padding: 16px 10px 42px; border-radius: 18px 18px 0 0; }
    .blue-hero #logo { max-height: 120px; }
    .blue-dl { gap: 7px; }
    .blue-dl__btn { flex-direction: column; gap: 2px; min-height: 60px; padding: 6px 4px; }
    .blue-dl__btn i { font-size: 18px; }
    .blue-dl__text { align-items: center; text-align: center; }
    .blue-dl__text b { font-size: 13px; }
    .blue-ball--2, .blue-ball--3, .blue-lantern--2, .blue-lantern--4 { display: none; }
    .blue-lantern { width: 40px; }
    .blue-hero__lantern { display: none; }
    .blue-btn { min-height: 36px; padding: 6px 11px; font-size: 12px; }
    #pageHeader3 a { font-size: 13px !important; }
    .blue-footer { border-radius: 0 0 18px 18px; }
    .color-main2 .col-lg-6.pr-5.pl-5 { padding-left: 8px !important; padding-right: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .blue-petal, .blue-lantern, .blue-hero__lantern, .blue-ball, .blue-badge-new { animation: none !important; }
    .blue-petal { display: none; }
    * { transition: none !important; }
}
