/* Giao diện sáng kiểu SMM panel: sidebar tối dạng cây, nội dung nền xám nhạt, thẻ trắng bo góc. */
:root {
    --brand: #5867dd;
    --brand-2: #5145e5;
    --ok: #0abb87;
    --info: #5578eb;
    --warn: #ffb822;
    --bad: #fd397a;
    --text: #646c9a;
    --head: #3d4465;
    --bg: #f2f3f8;
    --panel: #fff;
    --line: #ebedf2;
    --muted: #a2a5b9;
    --side: #0f172a;
    --side-2: #1e293b;
    --side-text: #a3aed0;
    --radius: 16px;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--line);
    --bs-primary: var(--brand);
    --bs-primary-rgb: 88, 103, 221;
    --bs-success-rgb: 10, 187, 135;
    --bs-danger-rgb: 253, 57, 122;
    --bs-warning-rgb: 255, 184, 34;
    --bs-info-rgb: 85, 120, 235;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 88, 103, 221;
    --bs-link-hover-color: var(--brand-2);
    --bs-secondary-color: var(--muted);
    --bs-heading-color: var(--head);
    --bs-body-font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-weight: 500;
    --sidebar-w: 270px;
}

body { background: var(--bg); font-size: .93rem; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6, .fw-semibold, strong, b { color: var(--head); }
.text-secondary { color: var(--muted) !important; }
.text-primary { color: var(--brand) !important; }
.text-danger { color: var(--bad) !important; }
.text-success { color: var(--ok) !important; }
.text-gradient { background: linear-gradient(90deg, #5867dd, #0abb87); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { font-weight: 600; border-radius: 10px; }
.btn-primary { --bs-btn-bg: var(--brand-2); --bs-btn-border-color: var(--brand-2); --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca; --bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3; --bs-btn-disabled-bg: var(--brand-2); --bs-btn-disabled-border-color: var(--brand-2); }
.btn-success { --bs-btn-bg: var(--ok); --bs-btn-border-color: var(--ok); --bs-btn-hover-bg: #089b70; --bs-btn-hover-border-color: #089b70; }
.btn-danger { --bs-btn-bg: var(--bad); --bs-btn-border-color: var(--bad); --bs-btn-hover-bg: #e52d6c; --bs-btn-hover-border-color: #e52d6c; }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); }
.btn-light { --bs-btn-bg: #f0f2fa; --bs-btn-border-color: #f0f2fa; --bs-btn-color: var(--brand); }
.btn-gradient { background: linear-gradient(90deg, #1d72f3, #4fa3ff); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(29, 114, 243, .25); }
.btn-gradient:hover { color: #fff; filter: brightness(1.05); }
.btn-icon { background: transparent; border: 0; color: inherit; font-size: 1.3rem; padding: .3rem .5rem; }

.card { background: var(--panel); border: 0; border-radius: var(--radius); box-shadow: 0 0 13px rgba(82, 63, 105, .05); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--head); padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }
.card-title { color: var(--head); font-weight: 600; font-size: 1.05rem; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-hover-bg: #f7f8fc; margin-bottom: 0; }
.table > :not(caption) > * > * { border-bottom-color: var(--line); padding: .7rem .75rem; }
.table thead th { color: var(--head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; background: #f7f8fc; }
.form-label { color: var(--head); font-weight: 600; }
.form-control, .form-select { border-color: #e2e5ec; border-radius: 10px; color: var(--head); padding: .6rem .9rem; }
.form-control::placeholder { color: #b5b8cc; }
.form-control:focus, .form-select:focus { border-color: #9aabff; box-shadow: 0 0 0 .2rem rgba(88, 103, 221, .12); }
.form-control[readonly] { background: #f7f8fc; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.alert { border-radius: 12px; border: 0; }
.badge { font-weight: 600; border-radius: 6px; }
.bg-success { background-color: var(--ok) !important; }
.bg-danger { background-color: var(--bad) !important; }
.bg-warning { background-color: var(--warn) !important; }
.code-block { background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; white-space: pre-wrap; word-break: break-all; margin: 0; color: var(--head); }
.dropdown-menu { border: 0; border-radius: 12px; box-shadow: 0 10px 30px rgba(82, 63, 105, .15); }
.nav-tabs { border-bottom: 1px solid var(--line); gap: 1.5rem; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: .75rem .1rem; font-weight: 600; font-size: 1.05rem; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }
.pagination { --bs-pagination-color: var(--brand); --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); }

/* Thương hiệu */
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--ok)); color: #fff; }
.sidebar .brand, .sidebar .brand:hover { color: #fff; text-transform: uppercase; }

/* ===== Bố cục trang khách & quản trị ===== */
.app .sidebar { width: var(--sidebar-w); background: var(--side); color: var(--side-text); }
@media (min-width: 992px) {
    .app .sidebar { position: fixed; inset: 0 auto 0 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
    .app .main { margin-left: var(--sidebar-w); }
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sidebar-nav { padding: .5rem .6rem 3rem; }
.side-title { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; color: #64748b; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 1.1rem .75rem .5rem; }
.side-title i { transition: transform .2s; }
.side-title.collapsed i { transform: rotate(-90deg); }
.side-link { display: flex; align-items: center; gap: .75rem; color: #cbd5e1; padding: .6rem .8rem; border-radius: 10px; font-weight: 600; border: 1px solid transparent; margin-bottom: 2px; }
.side-link > i:first-child { font-size: 1.1rem; width: 1.2rem; text-align: center; color: #94a3b8; }
.side-link span:not(.tag):not(.dot) { flex: 1; min-width: 0; }
.side-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-link.active { background: #172036; border-color: #2c3a5a; color: #fff; }
.side-link.active > i:first-child { color: #fff; }
.side-link .caret { margin-left: auto; font-size: .8rem; color: #64748b; transition: transform .2s; }
.side-link:not(.collapsed) .caret { transform: rotate(90deg); }
.side-link.platform:not(.collapsed) { background: #172036; color: #fff; }
.side-link.group { font-size: .9rem; }
.side-link.leaf, .side-link.sub { font-size: .875rem; padding: .5rem .75rem; color: #b6c0d6; }
.side-link.leaf.active { color: #fff; }
.sub-wrap { border-left: 2px solid #1e3a8a; margin-left: 1.05rem; padding-left: .35rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #64748b; flex-shrink: 0; }
.side-link.active .dot { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .3); }
.tag { font-size: .62rem; font-weight: 700; text-transform: uppercase; padding: .15rem .4rem; border-radius: 5px; flex-shrink: 0; }
.tag-red { background: rgba(253, 57, 122, .15); color: #ff6b9a; }
.tag-green { background: rgba(10, 187, 135, .15); color: #2ed3a0; }
.side-muted { color: #64748b; }

.main { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem; padding: .8rem 1.5rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.crumb { align-items: center; gap: .5rem; white-space: nowrap; }
.crumb a { color: var(--muted); }
.crumb span { color: #c5c8d8; }
.crumb strong { color: var(--head); font-weight: 700; }
.search-box { position: relative; display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .1rem .5rem .1rem .8rem; width: 290px; max-width: 100%; }
.search-box > i { color: var(--muted); }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; padding: .45rem 0; color: var(--head); background: transparent; }
.kbd { font-size: .7rem; background: #f3f4f8; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .4rem; }
kbd.kbd { box-shadow: none; }
.search-results { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; max-height: 360px; overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(82, 63, 105, .18); padding: .35rem; z-index: 1030; }
.search-results.show { display: block; }
.search-results a { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border-radius: 8px; color: var(--head); }
.search-results a small { color: var(--muted); }
.search-results a:hover, .search-results a.on { background: #f0f2fe; color: var(--brand); }
.search-results .empty { padding: .7rem; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; background: rgba(10, 187, 135, .1); color: var(--ok); border-radius: 999px; padding: .35rem .85rem; font-weight: 600; font-size: .85rem; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(10, 187, 135, .25); }
.btn-round { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f3f4f8; color: var(--head); display: grid; place-items: center; font-size: 1.05rem; }
.btn-round:hover { background: #e9ebf5; }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }
.notif-menu { width: 300px; padding-top: .25rem; }
.notif-item { padding: .55rem 1rem; border-top: 1px solid var(--line); }
.user-btn { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .2rem .7rem .2rem .2rem; color: var(--head); font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--brand), #8ea2ff); color: #fff; font-weight: 700; flex-shrink: 0; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.8rem; }
.content { padding: 1.25rem 1.5rem; flex: 1; }
.app-footer { padding: 1rem 1.5rem; color: var(--muted); font-size: .8rem; }

.alert-strip { display: flex; align-items: center; gap: .75rem; background: #fde8ef; border: 1px solid #fbd0de; color: var(--bad); border-radius: 12px; padding: .5rem .9rem; margin-bottom: 1.1rem; overflow: hidden; font-size: .85rem; font-weight: 600; }
.strip-label { display: inline-flex; align-items: center; gap: .4rem; text-transform: uppercase; white-space: nowrap; padding-right: .75rem; border-right: 1px solid #f7b3c9; }
.dot-red { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.strip-track { flex: 1; overflow: hidden; white-space: nowrap; }
.strip-track span { display: inline-block; padding-left: 100%; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .strip-track span { animation: none; padding-left: 0; } }

/* Thẻ thống kê đầu trang */
.stat-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; background: linear-gradient(180deg, #f5f8ff, #e9f0ff); border-radius: var(--radius); padding: 1.25rem 1.4rem; height: 100%; }
.stat-card.white { background: #fff; box-shadow: 0 0 13px rgba(82, 63, 105, .05); }
.stat-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: radial-gradient(120% 60px at 50% 100%, rgba(88, 103, 221, .08), transparent); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; background: #fff; color: var(--brand); box-shadow: 0 4px 12px rgba(82, 63, 105, .08); }
.stat-label { color: var(--muted); font-size: .82rem; }
.stat-value { font-weight: 700; font-size: 1.15rem; color: var(--head); }
.profile-card { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius); padding: 1.25rem 1.4rem; height: 100%; box-shadow: 0 0 13px rgba(82, 63, 105, .05); }

/* Form đặt đơn */
.server-list { display: flex; flex-direction: column; gap: .5rem; }
.server-opt { display: flex; align-items: center; gap: .75rem; border: 1px solid #e2e5ec; border-radius: 10px; padding: .65rem .9rem; cursor: pointer; margin: 0; background: #fff; }
.server-opt:hover { border-color: #b8c2f5; }
.server-opt.on { border-color: var(--brand); background: #f6f7ff; box-shadow: 0 0 0 1px var(--brand); }
.server-opt.off { opacity: .6; cursor: not-allowed; }
.server-opt input { flex-shrink: 0; }
.server-opt .sv-name { flex: 1; min-width: 0; color: var(--head); }
.server-opt .sv-price { color: var(--bad); font-weight: 700; white-space: nowrap; }
.svc-info { background: linear-gradient(90deg, #b4f1e8, #e6fbf7 70%, #fff); border-radius: 10px; padding: .9rem 1.1rem; margin-top: .6rem; color: #1f2d3d; font-size: .9rem; }
.svc-info .sv-id { color: #e8590c; font-weight: 700; }
.svc-info ul { list-style: none; padding: 0; margin: .3rem 0; }
.svc-info li { padding-left: 1.4rem; position: relative; }
.svc-info li::before { content: "✓"; position: absolute; left: .1rem; color: var(--ok); font-weight: 700; }
.reaction-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.reaction-opt { display: flex; flex-direction: column; align-items: center; gap: .3rem; cursor: pointer; margin: 0; }
.reaction-opt .emo { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: #f3f4f8; border: 2px solid transparent; transition: transform .15s; }
.reaction-opt input:checked ~ .emo { border-color: var(--brand); background: #eef0ff; transform: scale(1.08); }
.reaction-opt small { color: var(--head); font-weight: 600; }
.total-line { display: flex; justify-content: space-between; align-items: center; background: #f0f2fe; border-radius: 10px; padding: .85rem 1rem; }
.total-value { font-size: 1.35rem; font-weight: 700; color: var(--brand-2); }
.note-card .card-header { background: #eef3ff; color: var(--brand); border: 0; border-radius: var(--radius) var(--radius) 0 0; }
.note-card ul { padding-left: 1.1rem; margin: 0; }
.note-card li { margin-bottom: .4rem; }
.form-switch .form-check-input { width: 2.4em; height: 1.25em; }

/* Bảng giá & cấp bậc */
.group-row td { background: #f3f5fd !important; color: var(--brand); font-weight: 700; }
.progress { height: 8px; border-radius: 999px; background: #eef0f8; }
.progress-bar { background: linear-gradient(90deg, #1d72f3, #4fa3ff); }
.level-pill { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #dbe3ff; background: #f5f8ff; color: var(--brand); border-radius: 999px; padding: .45rem 1rem; font-weight: 700; }

/* Trang chủ người dùng */
.post-item { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .6rem; }
.post-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #eef3ff; color: var(--brand); flex-shrink: 0; }
.notice-box { background: #f5f8ff; border: 1px solid #e3e9ff; border-radius: 14px; padding: 1rem; }
.notice-head { background: #eef3ff; color: var(--brand); border-radius: 12px; padding: .75rem 1rem; font-weight: 700; }
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-active-bg: #f5f8ff; --bs-accordion-active-color: var(--brand); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-button { font-weight: 600; color: var(--head); }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.quick-grid a { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .75rem .25rem; border-radius: 12px; background: #f7f8fc; color: var(--head); font-size: .8rem; font-weight: 600; }
.quick-grid a i { font-size: 1.4rem; }
.quick-grid a:hover { background: #eef0ff; }

.copy-box { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #f7f8fc; border: 1px dashed #d5d9ea; border-radius: 10px; padding: .5rem .75rem; min-width: 0; }
.copy-box code { color: var(--bad); font-size: 1rem; font-weight: 700; overflow: hidden; }
.deposit-code { color: var(--bad); font-weight: 700; font-size: 1.1rem; }
.bank-info { display: grid; grid-template-columns: 130px 1fr; gap: .5rem 1rem; margin-bottom: 1rem; }
.bank-info dt { color: var(--muted); font-weight: 500; }
.bank-info dd { margin: 0; word-break: break-all; color: var(--head); font-weight: 600; }
.api-key { word-break: break-all; }
.platform-tabs .btn { border-radius: 999px; }
.svc-desc { white-space: pre-line; }

/* ===== Trang công khai ===== */
.public { background: #fff; }
.public-nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.public-nav .nav-link { color: var(--head); font-weight: 600; }
.hero { padding: 4.5rem 0 3rem; background: radial-gradient(900px 400px at 15% 0%, rgba(88, 103, 221, .12), transparent 60%), radial-gradient(700px 400px at 90% 20%, rgba(10, 187, 135, .1), transparent 60%); }
.hero-pill { display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .8rem; border-radius: 999px; background: rgba(88, 103, 221, .1); color: var(--brand); font-size: .85rem; font-weight: 600; }
.hero-title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; line-height: 1.2; }
.hero-sub { color: var(--text); font-size: 1.05rem; max-width: 560px; margin-top: 1rem; }
.hero-platforms { display: flex; gap: 1rem; font-size: 1.6rem; flex-wrap: wrap; }
.auth-card { box-shadow: 0 20px 60px rgba(82, 63, 105, .12); }
.section { padding: 2.5rem 0; }
.section-title { font-size: 1.6rem; font-weight: 700; text-align: center; }
.stat-big { font-size: 2rem; font-weight: 700; color: var(--brand); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; height: 100%; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(88, 103, 221, .1); color: var(--brand); }
.step { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; height: 100%; }
.step-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; flex-shrink: 0; }
.public-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; margin-top: 2rem; background: var(--bg); }
.public-footer h6 { font-weight: 700; margin-bottom: .8rem; }
.public-footer a { color: var(--text); }
.public-footer a:hover { color: var(--brand); }
.terms li { margin-bottom: .5rem; }
.btn-outline-light { --bs-btn-color: var(--brand); --bs-btn-border-color: #cfd5f7; --bs-btn-hover-bg: #f0f2fe; --bs-btn-hover-color: var(--brand); --bs-btn-hover-border-color: #cfd5f7; }

/* Nút liên hệ nổi */
.contact-float { position: fixed; right: 18px; bottom: 18px; z-index: 1050; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cf-main { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; align-content: center; background: linear-gradient(135deg, #2f6bff, #5145e5); color: #fff; font-size: .7rem; font-weight: 700; box-shadow: 0 8px 24px rgba(81, 69, 229, .4); }
.cf-main i { font-size: 1.35rem; line-height: 1; }
.cf-list { display: none; flex-direction: column; gap: 8px; }
.contact-float.open .cf-list { display: flex; }
.cf-list a { display: flex; align-items: center; gap: .5rem; background: #fff; color: var(--head); border-radius: 999px; padding: .45rem .9rem; font-weight: 600; box-shadow: 0 6px 20px rgba(82, 63, 105, .18); }

@media (max-width: 991.98px) {
    .topbar { padding: .6rem .9rem; gap: .5rem; }
    .search-box { width: auto; flex: 1; }
    .search-box .kbd { display: none; }
}
@media (max-width: 575.98px) {
    .content { padding: 1rem; }
    .bank-info { grid-template-columns: 1fr; gap: .1rem; }
    .bank-info dd { margin-bottom: .5rem; }
    .total-value { font-size: 1.15rem; }
    .user-btn { padding: .2rem; }
    .user-btn .fa-chevron-down { display: none; }
    .alert-strip .strip-label { display: none; }
}
.min-w-0 { min-width: 0; }
/* Bootstrap .offcanvas-lg làm nền trong suốt ở màn lớn: giữ màu sidebar. */
.app .sidebar { background-color: var(--side) !important; }
.form-control, .form-select { background-color: #fff; }
.form-control:disabled, .form-control[readonly] { background-color: #f7f8fc; }
.search-box kbd { background: #f3f4f8; color: var(--muted); border: 1px solid var(--line); font-size: .7rem; box-shadow: none; }
.reaction-opt input { position: absolute; opacity: 0; pointer-events: none; }
.stat-card.compact { height: auto; }
@media (max-width: 991.98px) {
    .search-box { min-width: 0; }
    .search-box kbd { display: none; }
    .search-results { min-width: 0; }
}
@media (max-width: 575.98px) {
    .stat-card { padding: 1rem; gap: .6rem; }
    .stat-card .stat-icon { width: 36px; height: 36px; font-size: 1rem; }
    .stat-value { font-size: 1rem; white-space: nowrap; }
}

/* Icon, huy chương, avatar */
.brand-name { font-weight: 700; letter-spacing: .03em; }
.sidebar .brand-name { color: #fff; font-size: 1.05rem; }
.public-nav .brand-name, .public-footer .brand-name { color: var(--head); font-size: 1.15rem; }
img.avatar { object-fit: cover; background: #dbe7ff; }
.side-link.platform > i:first-child { color: #e2e8f0; }
.title-chip { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: #eef0ff; color: var(--brand); font-size: 1rem; flex-shrink: 0; }
.title-chip.chip-orange { background: linear-gradient(135deg, #ffd56b, #ffb822); color: #fff; box-shadow: 0 6px 14px rgba(255, 184, 34, .35); }
.level-card { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; height: 100%; display: flex; flex-direction: column; }
.level-card.current { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.level-card .btn-level { margin-top: auto; }
img.medal { width: 52px; height: 52px; margin: 0; flex-shrink: 0; }
.level-price { font-size: 1.45rem; font-weight: 700; color: #1d72f3; line-height: 1.2; }
.level-price.free { color: var(--ok); }
.btn-level { background: #eef0fb; color: var(--brand); border: 0; pointer-events: auto; }
.btn-level:hover { background: #e2e6fa; color: var(--brand); }
.btn-level.current { background: #e3f7ef; color: var(--ok); pointer-events: none; }
span.btn-level:not(.current) { pointer-events: none; }
.level-pill img { flex-shrink: 0; }
.level-pill.sm { padding: .15rem .6rem; font-size: .78rem; gap: .3rem; }
.reaction-opt .emo { background: transparent; }
.reaction-opt .emo img { width: 34px; height: 34px; }
.reaction-opt:hover .emo { transform: scale(1.08); }
.stat-icon i, .btn-round i { line-height: 1; }
