/* ============================================================
   CASHBACK HUB — Design System v2
   Hướng thiết kế: sàn TMĐT + mạng xã hội video
   · Cam Shopee  #ee4d2d  → màu hành động & tiền hoàn
   · Mực TikTok  #161823  → sidebar, footer, chữ tiêu đề
   · Hồng/Cyan   #fe2c55 / #25f4ee → điểm nhấn nhỏ (viền, chấm, badge)
   Giữ nguyên toàn bộ tên class cũ → thay file là chạy.
   ============================================================ */
/* Căn chỉnh ảnh logo PNG trên Header */
.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Nếu dùng Cách 1 (Icon PNG + Chữ bên cạnh) */
.site-header .logo-img {
  display: block;
  height: 50px;        /* Chỉnh to nhỏ tại đây */
  width: auto;
  object-fit: contain;
}

/* Nếu dùng Cách 2 (Logo ngang nguyên khối) */
.site-header .logo-img-full {
  display: block;
  height: 40px;        /* Chỉnh độ cao logo tại đây (36px - 44px là vừa đẹp) */
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
/* Căn chỉnh logo PNG trong Sidebar */
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

/* Dùng cho Cách 1 (Icon PNG + Chữ) */
.sidebar-logo-img {
  display: block;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}

/* Dùng cho Cách 2 (Logo ngang nguyên khối) */
.sidebar-logo-full {
  display: block;
  height: 34px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
}
:root {
  /* Thương hiệu */
  --primary:        #ee4d2d;
  --primary-dark:   #d73211;
  --primary-light:  #ff7a52;
  --primary-soft:   #fff1ed;

  --accent:         #fe2c55;   /* hồng TikTok */
  --accent-soft:    #ffeaee;
  --cyan:           #25f4ee;   /* cyan TikTok — chỉ dùng điểm nhấn */

  /* Trạng thái */
  --success:        #00b578;
  --success-soft:   #e6f8f0;
  --warning:        #ffab00;
  --warning-soft:   #fff6e0;
  --danger:         #f5222d;
  --danger-soft:    #ffecec;
  --info:           #1890ff;
  --info-soft:      #e8f3ff;

  /* Nền & chữ */
  --ink:            #161823;
  --dark:           #161823;
  --body:           #4b4f5c;
  --muted:          #747989;
  --light:          #a7abb8;
  --border:         #eceef2;
  --border-strong:  #dcdfe6;
  --bg:             #f5f6f8;
  --bg-alt:         #eceef2;
  --white:          #ffffff;

  /* Gradient dùng chung */
  --grad-cta:       linear-gradient(135deg, #f35a2a 0%, #d93a17 100%);
  --grad-hot:       linear-gradient(135deg, #ff7a3d 0%, #ee4d2d 55%, #fe2c55 100%);

  /* Bo góc theo cấp bậc */
  --radius-sm:      10px;
  --radius:         16px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-pill:    999px;

  /* Đổ bóng ám mực, không xám trung tính */
  --shadow-sm:      0 1px 2px rgba(22, 24, 35, .05), 0 1px 3px rgba(22, 24, 35, .04);
  --shadow:         0 6px 20px rgba(22, 24, 35, .07);
  --shadow-lg:      0 18px 44px rgba(22, 24, 35, .14);
  --shadow-cta:     0 6px 16px rgba(238, 77, 45, .32);

  --sidebar-width:  264px;
  --header-height:  64px;
  --bottom-nav:     64px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.grad {
  font-family: "Dancing Script", "Segoe Script", cursive;
  font-weight: 700;
  font-size: 1.25em;          /* chữ viết tay thường nhìn nhỏ hơn, nên tăng lên chút */
  white-space: nowrap;        /* giữ "hoàn tiền" luôn nằm cùng một dòng */
  display: inline-block;
  padding: 0 0.12em 0.15em;   /* chừa chỗ để nét chữ không bị cắt */
  position: relative;

  background: linear-gradient(90deg, #ff6a3d, #ff3d81 55%, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad .wave {
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.35em;
  overflow: visible;
  pointer-events: none;
}
.fl-bank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,154,0,.12), rgba(255,61,127,.12) 55%, rgba(123,63,228,.14));
  border: 1px solid rgba(255,61,127,.25);
  box-shadow: 0 8px 24px rgba(255,61,127,.18);
}
.fl-bank svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 6px rgba(255,61,127,.35));
}
/* ===== Ô NHẬP LINK: VIỀN GRADIENT ===== */
.link-box { margin-top: 10px; }

.link-box .input-wrap {
    position: relative;
    background: #fff;
    border: none !important;
    border-radius: 14px;
    overflow: visible !important;
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.15);
    transition: box-shadow .25s ease;
}

/* Viền gradient chạy */
.link-box .input-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(120deg, #ff6a3d, #ffb02e, #ee4d2d, #ff8a3d, #ff6a3d);
    background-size: 300% 300%;
    animation: linkBorderFlow 5s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
    z-index: 1;
}

@keyframes linkBorderFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Sáng lên khi bấm vào ô */
.link-box .input-wrap:focus-within {
    box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.18),
                0 8px 26px rgba(238, 77, 45, 0.3);
}

.link-box .input-wrap input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
    .link-box .input-wrap::before { animation: none; }
}

/* ===== KHUNG VIỀN NGUYÊN THẺ ===== */
.card-frame {
    position: relative;
    isolation: isolate;
    padding: 4px;
    border-radius: 30px;
    background: linear-gradient(120deg, #ff6a3d, #ffb02e, #ee4d2d, #ff3d71, #ff8a3d, #ff6a3d);
    background-size: 300% 300%;
    animation: frameFlow 6s linear infinite;
}

/* Ánh sáng tỏa ra phía ngoài */
.card-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    z-index: -1;
    border-radius: 36px;
    background: inherit;
    background-size: 300% 300%;
    animation: frameFlow 6s linear infinite;
    filter: blur(18px);
    opacity: .45;
}

.card-frame > .card {
    margin: 0 !important;
    border: none !important;
    border-radius: 26px;
    background: #fff;
}

@keyframes frameFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .card-frame, .card-frame::before { animation: none; }
}

/* ===== THẺ "HOÀN TỚI 90%" NẰM TRÊN VIỀN LỚN ===== */
.card-frame > .link-badge {
    position: absolute;
    top: -15px;
    left: 36px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px 5px 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    background: linear-gradient(135deg, #ff6a3d 0%, #ee4d2d 100%);
    border-radius: 999px;
    /* vòng trắng tách thẻ khỏi viền gradient cho nổi */
    box-shadow: 0 0 0 3px #fff,
                0 6px 16px rgba(238, 77, 45, 0.5);
    pointer-events: none;
    white-space: nowrap;
}

.card-frame > .link-badge b {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.2px;
}

@media (max-width: 600px) {
    .card-frame > .link-badge {
        left: 22px;
        font-size: 12px;
        padding: 4px 12px 4px 11px;
    }
    .card-frame > .link-badge b { font-size: 14px; }
}
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid rgba(238, 77, 45, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--primary-soft); color: var(--primary-dark); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 720px; }
.container-wide   { max-width: 1400px; }

.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > * { flex: 1 1 0; min-width: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Bố cục chính 2 cột (nội dung + cột phụ) */
.main-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }

/* Dashboard: cột trái rộng (link + đơn), cột phải hẹp (ví, giới thiệu, link) */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-middle  { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }
.ml-auto { margin-left: auto; }

/* ============================================================
   HEADER (trang công khai) — bản nâng cấp
   Thay TOÀN BỘ phần CSS header cũ (từ .site-header đến hết các dòng
   override .site-header / .nav / .nav.open ở cuối file) bằng file này.
   Phần .hero / .link-box / .steps ... giữ nguyên ở chỗ khác.
   ============================================================ */

.site-header {
  --hd-h: 72px;
  --hd-ease: cubic-bezier(.22, 1, .36, 1);      /* ease-out mượt */
  --hd-ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hd-h);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  transition: background .35s var(--hd-ease), box-shadow .35s var(--hd-ease);
}

/* Đường gradient mảnh dưới header — chỉ "vẽ ra" khi cuộn trang */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan, #25f4ee) 18%, var(--primary, #ff4d1f) 50%, var(--accent, #fe2c55) 82%, transparent);
  opacity: .9;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .6s var(--hd-ease);
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
}
.site-header.is-scrolled::after { transform: scaleX(1); }

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink, #14161f);
  white-space: nowrap;
  transition: color .25s;
}
.logo:hover { color: var(--ink, #14161f); }

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 11px;
  background: var(--grad-hot, linear-gradient(135deg, #ff7a1a, #ff3d2e));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: -2px -2px 0 var(--cyan, #25f4ee), 2px 2px 0 var(--accent, #fe2c55);
  transition: box-shadow .45s var(--hd-ease-spring), transform .45s var(--hd-ease-spring);
}
.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: -4px -4px 0 var(--cyan, #25f4ee), 4px 4px 0 var(--accent, #fe2c55);
}

/* ---------- Nav (desktop) ---------- */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav > a:not(.btn) {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--body, #4b5266);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -.005em;
  transition: color .25s;
}
.nav > a:not(.btn):hover { color: var(--ink, #14161f); background: transparent; }
.nav > a.active { color: var(--primary, #ff4d1f); font-weight: 700; background: transparent; }

/* Viên thuốc trượt theo link đang hover / đang active (JS điều khiển) */
.nav-indicator {
  position: absolute;
  z-index: 0;
  top: 0; left: 0;
  width: 0; height: 0;
  border-radius: 999px;
  background: var(--primary-soft, #fff0ea);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .45s var(--hd-ease),
    width .45s var(--hd-ease),
    height .45s var(--hd-ease),
    opacity .25s,
    background .25s;
}
.nav-indicator.is-visible { opacity: 1; }
.nav-indicator.is-hover   { background: rgba(15, 23, 42, .055); }

/* Không có JS: vẫn thấy trạng thái active */
.nav:not(.has-indicator) > a.active { background: var(--primary-soft, #fff0ea); }

.nav form { margin: 0; }

/* Nút trong nav */
.nav .btn {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
}
.nav > form,
.nav > .btn { margin-left: 10px; }
.nav .ml-auto { margin-left: 10px; }

.nav .btn-outline {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .14);
  color: var(--ink, #14161f);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--hd-ease);
}
.nav .btn-outline:hover {
  border-color: var(--ink, #14161f);
  box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .35);
  transform: translateY(-1px);
}

/* Nút Đăng ký: gradient + vệt sáng quét qua khi hover */
.nav a.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--grad-hot, linear-gradient(135deg, #ff7a1a, #ff3d2e));
  box-shadow: 0 8px 20px -8px rgba(255, 77, 31, .65);
  transition: transform .25s var(--hd-ease), box-shadow .25s;
}
.nav a.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.nav a.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(255, 77, 31, .75);
}
.nav a.btn-primary:hover::before {
  transform: translateX(120%);
  transition: transform .7s var(--hd-ease);
}

/* ---------- Nút hamburger (chỉ hiện trên mobile) ---------- */
.sidebar-toggle#publicMenuToggle,
#publicMenuToggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: 0;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #14161f);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s var(--hd-ease);
  -webkit-tap-highlight-color: transparent;
}
#publicMenuToggle:active { transform: scale(.94); }
#publicMenuToggle .bars { position: absolute; inset: 0; }
#publicMenuToggle .bars i {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--hd-ease), opacity .2s, width .3s var(--hd-ease);
}
#publicMenuToggle .bars i:nth-child(1) { top: 15px; }
#publicMenuToggle .bars i:nth-child(2) { top: 21px; width: 11px; }
#publicMenuToggle .bars i:nth-child(3) { top: 27px; }

#publicMenuToggle[aria-expanded="true"] { background: var(--primary-soft, #fff0ea); border-color: transparent; color: var(--primary, #ff4d1f); }
#publicMenuToggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#publicMenuToggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; width: 0; }
#publicMenuToggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Lớp nền mờ phía sau menu mobile */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 12, 20, .42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--hd-ease), visibility 0s linear .35s;
}
.nav-backdrop.show {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--hd-ease), visibility 0s;
}
body.nav-locked { overflow: hidden; }

/* Không gạch chân link trong header */
.site-header a { text-decoration: none; }

/* Focus rõ ràng cho bàn phím */
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--primary, #ff4d1f);
  outline-offset: 2px;
}

/* ============================================================
   MOBILE / TABLET — thẻ menu tối nổi, có icon + motion mở/đóng
   ============================================================ */
.site-header .nav .nav-ico { display: none; }

@media (max-width: 900px) {
  .site-header { --hd-h: 64px; }
  .site-header .container { padding: 0 16px !important; }
  .logo { font-size: 1.1rem !important; }
  .logo-mark { width: 34px !important; height: 34px !important; min-width: 34px !important; }
  #publicMenuToggle { display: block !important; }
  .site-header .nav {
    display: flex !important;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 16px !important;
    right: 16px !important;
    max-width: 460px !important;
    margin-inline: auto !important;
    z-index: 101 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 12px !important;
    border-radius: 28px !important;
    color: #fff !important;
    background:
      radial-gradient(120% 70% at 100% 0%, rgba(255, 77, 31, .30), transparent 58%),
      radial-gradient(90% 60% at 0% 100%, rgba(37, 244, 238, .14), transparent 62%),
      linear-gradient(160deg, #1b1e2e 0%, #241522 100%) !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    box-shadow:
      0 40px 80px -24px rgba(0, 0, 0, .65),
      inset 0 1px 0 rgba(255, 255, 255, .12) !important;
    transform-origin: 85% 0 !important;
    transform: translateY(-14px) scale(.94) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
      transform .5s var(--hd-ease),
      opacity .25s ease,
      visibility 0s linear .5s;
  }
  .site-header .nav.open {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition:
      transform .5s var(--hd-ease),
      opacity .25s ease,
      visibility 0s;
  }
  .site-header .nav > a,
  .site-header .nav > form {
    opacity: 0 !important;
    transform: translateX(-14px) !important;
    transition: opacity .3s ease, transform .5s var(--hd-ease), background .25s;
  }
  .site-header .nav.open > a,
  .site-header .nav.open > form {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: calc(var(--i, 0) * 55ms + 110ms), calc(var(--i, 0) * 55ms + 110ms), 0s;
  }
  .site-header .nav > :nth-child(2) { --i: 0; }
  .site-header .nav > :nth-child(3) { --i: 1; }
  .site-header .nav > :nth-child(4) { --i: 2; }
  .site-header .nav > :nth-child(5) { --i: 3; }
  .site-header .nav > :nth-child(6) { --i: 4; }
  .site-header .nav-indicator { display: none !important; }
  .site-header .nav > a:not(.btn) {
    width: 100% !important;
    min-height: 58px !important;
    padding: 0 14px 0 10px !important;
    gap: 14px !important;
    justify-content: flex-start !important;
    border-radius: 18px !important;
    color: rgba(255, 255, 255, .88) !important;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    letter-spacing: -.01em !important;
  }
  .site-header .nav > a:not(.btn):hover { color: #fff !important; }
  .site-header .nav > a:not(.btn):active { background: rgba(255, 255, 255, .07) !important; }
  .site-header .nav .nav-ico {
    display: grid !important;
    place-items: center !important;
    flex: none !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .08) !important;
    color: rgba(255, 255, 255, .78) !important;
    transition: background .3s, color .3s, transform .4s var(--hd-ease-spring);
  }
  .site-header .nav .nav-ico svg { width: 19px !important; height: 19px !important; }
  .site-header .nav > a:not(.btn):active .nav-ico { transform: scale(.92) !important; }
  .site-header .nav > a:not(.btn)::after {
    content: "" !important;
    margin-left: auto !important;
    width: 7px !important; height: 7px !important;
    border-top: 2px solid currentColor !important;
    border-right: 2px solid currentColor !important;
    transform: rotate(45deg) !important;
    opacity: .3 !important;
    transition: transform .3s var(--hd-ease), opacity .3s;
  }
  .site-header .nav > a.active,
  .site-header .nav:not(.has-indicator) > a.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
  }
  .site-header .nav > a.active .nav-ico {
    color: #fff !important;
    background: var(--grad-hot, linear-gradient(135deg, #ff7a1a, #ff3d2e)) !important;
    box-shadow: 0 8px 18px -6px rgba(255, 77, 31, .7) !important;
  }
  .site-header .nav > a.active::after { opacity: .85 !important; transform: translateX(2px) rotate(45deg) !important; }
  .site-header .nav > form,
  .site-header .nav > .btn,
  .site-header .nav .ml-auto {
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, .09) !important;
  }
  .site-header .nav form .btn,
  .site-header .nav a.btn {
    width: 100% !important;
    min-height: 52px !important;
    justify-content: center !important;
    font-size: 1rem !important;
  }
  .site-header .nav .btn-outline {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    color: #fff !important;
  }
  .site-header .nav .btn-outline:hover { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .35) !important; box-shadow: none !important; transform: none !important; }
  .site-header .nav a.btn-primary { border-top: 0 !important; }
  .site-header .nav > a.btn-primary { margin-top: 12px !important; padding-top: 0 !important; }
}

/* ============================================================
   DESKTOP (>900px) — gọn, tinh tế, luôn nằm 1 hàng
   Đặt SAU khối mobile + dùng !important để chắc chắn thắng CSS cũ
   ============================================================ */
@media (min-width: 901px) {
  .site-header { --hd-h: 68px; }
  .site-header .container { padding: 0 24px !important; }
  .site-header .logo { font-size: 1.1rem !important; }

  .site-header .nav {
    display: flex !important;
    position: relative !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .site-header .nav > a,
  .site-header .nav > form { opacity: 1 !important; transform: none !important; flex: none !important; }

  /* Link: nhỏ gọn, 1 dòng, không icon, không mũi tên */
  .site-header .nav > a:not(.btn) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    gap: 0 !important;
    border-radius: 999px !important;
    font-size: .875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    color: var(--body, #4b5266) !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .site-header .nav > a:not(.btn):hover { color: var(--ink, #14161f) !important; background: transparent !important; }
  .site-header .nav > a.active,
  .site-header .nav:not(.has-indicator) > a.active { color: var(--primary, #ff4d1f) !important; font-weight: 600 !important; }
  .site-header .nav:not(.has-indicator) > a.active { background: var(--primary-soft, #fff0ea) !important; }
  .site-header .nav > a:not(.btn)::after { content: none !important; display: none !important; }
  .site-header .nav .nav-ico { display: none !important; }
  .site-header .nav-indicator { display: block !important; }

  /* Nút: cùng chiều cao với link, chữ nhỏ */
  .site-header .nav > form,
  .site-header .nav > .btn,
  .site-header .nav .ml-auto {
    width: auto !important;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .site-header .nav form .btn,
  .site-header .nav a.btn {
    width: auto !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  .site-header .nav a.btn-primary { color: #fff !important; margin: 0 0 0 10px !important; }
  .site-header .nav .btn-outline {
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    color: var(--ink, #14161f) !important;
  }
  .site-header .nav .btn-outline:hover { background: #fff !important; border-color: var(--ink, #14161f) !important; }

  #publicMenuToggle { display: none !important; }
  .nav-backdrop { display: none !important; }
}

/* Màn hình rất nhỏ */
@media (max-width: 380px) {
  .logo span:last-child { font-size: 1rem; }
}

/* Tôn trọng người dùng tắt hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header *, .nav-backdrop {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
}
/* ==========================================================================
   SIDEBAR — đen pha ánh trắng, viền vàng mảnh, điểm nhấn cam–hồng
   (cùng ngôn ngữ với thẻ số dư ở trang Tổng quan)
   Không đụng tới vị trí / transform của .sidebar nên menu mobile vẫn chạy bình thường.
   ========================================================================== */
.app .sidebar {
  --sb-cyan:   #25f4ee;
  --sb-pink:   #fe2c55;
  --sb-orange: #ee4d2d;
  --sb-gold:   #f2c879;
  --sb-ease:   cubic-bezier(.22, 1, .36, 1);
  color: #a3a7b5;
  background:
    radial-gradient(90% 22% at 50% 0%,   rgba(255, 255, 255, .09), transparent 70%),
    radial-gradient(120% 38% at 0% 6%,   rgba(37, 244, 238, .11),  transparent 62%),
    radial-gradient(130% 42% at 100% 100%, rgba(254, 44, 85, .24), transparent 64%),
    radial-gradient(100% 36% at 0% 100%, rgba(238, 77, 45, .20),   transparent 62%),
    linear-gradient(165deg, #1c1d29 0%, #0f0f17 40%, #08080d 100%);
  border-right: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 20px 0 44px -30px rgba(0, 0, 0, .75);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.app .sidebar::-webkit-scrollbar { width: 6px; }
.app .sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 6px; }

/* ---------- Logo + tên site ---------- */
.app .sidebar .sidebar-brand-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 18px 16px;
}
.app .sidebar .sidebar-brand-row::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(242, 200, 121, .55), rgba(255, 255, 255, .08) 60%, transparent);
}
.app .sidebar .sidebar-brand {
  display: flex; align-items: center; gap: 12px; padding: 0;
  text-decoration: none !important;
}
.app .sidebar .sidebar-brand .logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-size: 20px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--sb-orange), var(--sb-pink));
  border-radius: 12px;
  box-shadow: 0 8px 20px -6px rgba(254, 44, 85, .65), 0 0 0 1px rgba(255, 255, 255, .22) inset;
  transition: transform .35s var(--sb-ease);
}
.app .sidebar .sidebar-brand span:last-child {
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: #fff;
}

/* ==========================================================================
   NÚT CTA "Hoàn tiền" — nhịp đập + bóng loáng
   - Lớp ::before = mảng bóng tĩnh ở nửa trên nút (luôn thấy, kể cả khi tắt chuyển động)
   - Lớp ::after  = vệt sáng quét ngang (dùng transform nên mượt trên điện thoại)
   ========================================================================== */
.app .sidebar .sidebar-cta {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 12px;
  margin: 16px 14px 6px; padding: 12px 14px;
  flex-shrink: 0; overflow: hidden;
  color: #fff !important; text-decoration: none !important;
  background: linear-gradient(125deg, #ff6a3d 0%, var(--sb-orange) 45%, var(--sb-pink) 100%);
  border-radius: 14px;
  box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .25s var(--sb-ease), box-shadow .25s var(--sb-ease);
  animation: ctaHeartbeat 2.5s ease-in-out infinite;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.app .sidebar .sidebar-cta > * { position: relative; z-index: 1; }

.app .sidebar .sidebar-cta::before {           /* bóng loáng tĩnh */
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .04));
  border-radius: 14px 14px 60% 60% / 14px 14px 18px 18px;
  pointer-events: none;
}
.app .sidebar .sidebar-cta::after {            /* vệt sáng quét qua */
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-160%) skewX(-20deg);
  animation: ctaShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaHeartbeat {
  0%   { transform: scale(1);    box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), 0 0 0 0 rgba(254, 44, 85, .5), inset 0 1px 0 rgba(255, 255, 255, .3); }
  15%  { transform: scale(1.045); box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), 0 0 0 12px rgba(254, 44, 85, 0), inset 0 1px 0 rgba(255, 255, 255, .3); }
  30%  { transform: scale(1); }
  45%  { transform: scale(1.025); box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), 0 0 0 7px rgba(254, 44, 85, 0), inset 0 1px 0 rgba(255, 255, 255, .3); }
  60%, 100% { transform: scale(1); box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), 0 0 0 0 rgba(254, 44, 85, 0), inset 0 1px 0 rgba(255, 255, 255, .3); }
}
@keyframes ctaShine {
  0%, 55% { transform: translateX(-160%) skewX(-20deg); }
  100%    { transform: translateX(420%)  skewX(-20deg); }
}
@keyframes ctaGlow {                           /* thay cho nhịp đập khi người dùng bật "Giảm chuyển động" */
  0%, 100% { box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .55), 0 0 0 0 rgba(254, 44, 85, 0), inset 0 1px 0 rgba(255, 255, 255, .3); }
  50%      { box-shadow: 0 12px 30px -6px rgba(254, 44, 85, .9),  0 0 0 6px rgba(254, 44, 85, .18), inset 0 1px 0 rgba(255, 255, 255, .35); }
}

.app .sidebar .sidebar-cta:active { transform: scale(.98); }
.app .sidebar .sidebar-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.app .sidebar .sidebar-cta.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 12px 26px -8px rgba(254, 44, 85, .7);
}

/* Hiệu ứng rê chuột chỉ áp dụng cho máy có chuột — trên điện thoại :hover bị "dính" và làm tắt nhịp đập */
@media (hover: hover) and (pointer: fine) {
  .app .sidebar .sidebar-brand:hover .logo-mark { transform: scale(1.06) rotate(-4deg); }
  .app .sidebar .sidebar-cta:hover {
    animation: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 30px -8px rgba(254, 44, 85, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  }
  .app .sidebar .sidebar-cta:hover > svg:last-child { transform: translateX(3px); }
}

.app .sidebar .sidebar-cta-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 38px;
  background: rgba(255, 255, 255, .2);
  border-radius: 11px;
}
.app .sidebar .sidebar-cta-icon svg { color: #fff; }
.app .sidebar .sidebar-cta-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app .sidebar .sidebar-cta-text strong { font-size: 14px; font-weight: 800; line-height: 1.25; color: #fff; }
.app .sidebar .sidebar-cta-text small {
  font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .88);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app .sidebar .sidebar-cta > svg:last-child { flex-shrink: 0; color: #fff; transition: transform .25s var(--sb-ease); }

/* ---------- Menu ---------- */
.app .sidebar .sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 14px 14px; }

.app .sidebar .sidebar-section {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 6px 9px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  color: rgba(242, 200, 121, .78);
}
.app .sidebar .sidebar-section::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(242, 200, 121, .32), transparent);
}

.app .sidebar .sidebar-nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; margin-bottom: 3px;
  color: #a3a7b5; font-size: .92rem; font-weight: 500;
  border-radius: 12px;
  transition: background .25s var(--sb-ease), color .25s, padding-left .3s var(--sb-ease);
}
.app .sidebar .sidebar-nav a svg { width: 19px; height: 19px; flex-shrink: 0; transition: color .25s, transform .3s var(--sb-ease); }
@media (hover: hover) and (pointer: fine) {
  .app .sidebar .sidebar-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; padding-left: 17px; }
  .app .sidebar .sidebar-nav a:hover svg { color: #ff7a4d; transform: scale(1.1); }
}
.app .sidebar .sidebar-nav a:focus-visible { outline: 2px solid rgba(37, 244, 238, .75); outline-offset: 1px; }

.app .sidebar .sidebar-nav a.active {
  color: #fff; font-weight: 700;
  background: linear-gradient(90deg, rgba(238, 77, 45, .30), rgba(254, 44, 85, .10) 65%, rgba(255, 255, 255, .03));
  box-shadow: 0 0 0 1px rgba(238, 77, 45, .32) inset, 0 10px 22px -14px rgba(254, 44, 85, .8);
  padding-left: 17px;
}
.app .sidebar .sidebar-nav a.active::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  background: linear-gradient(180deg, var(--sb-orange), var(--sb-pink));
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px rgba(254, 44, 85, .8);
}
.app .sidebar .sidebar-nav a.active svg { color: #ff7a4d; }

/* ---------- Gợi ý cuộn ---------- */
.app .sidebar .sidebar-scroll-hint button {
  color: #c9ccd8; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px;
}

/* ---------- Đăng xuất ---------- */
.app .sidebar .sidebar-logout { margin: 0; padding: 12px 14px 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.app .sidebar .sidebar-logout button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 14px;
  font: inherit; font-size: .9rem; font-weight: 600; color: #c4c7d3; cursor: pointer;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--sb-ease);
}
@media (hover: hover) and (pointer: fine) {
  .app .sidebar .sidebar-logout button:hover {
    color: #fff; background: rgba(254, 44, 85, .16);
    border-color: rgba(254, 44, 85, .5);
    transform: translateY(-1px);
  }
}
.app .sidebar .sidebar-logout button:focus-visible { outline: 2px solid rgba(37, 244, 238, .75); outline-offset: 2px; }

/* ==========================================================================
   Người dùng bật "Giảm chuyển động" (iPhone: Cài đặt > Trợ năng > Chuyển động):
   không còn phóng to/thu nhỏ hay quét ngang, nhưng nút vẫn "sống" nhờ
   nhịp sáng nhẹ + mảng bóng tĩnh, nên không bị phẳng và chết.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .app .sidebar .sidebar-cta { animation: ctaGlow 2.6s ease-in-out infinite; will-change: auto; }
  .app .sidebar .sidebar-cta::after { animation: none; opacity: 0; }
  .app .sidebar .sidebar-nav a, .app .sidebar .sidebar-logout button { transition-duration: .01ms; }
}
/* ============================================================
   HEADER (trang công khai)
   ============================================================ */   right: 12px;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35), 0 0 0 1px rgba(255, 255, 255, .6) inset;
    transform-origin: top right;
    transform: translateY(-12px) scale(.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform .45s var(--hd-ease),
      opacity .25s ease,
      visibility 0s linear .45s;
  }
  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform .45s var(--hd-ease),
      opacity .25s ease,
      visibility 0s;
  }

  /* Từng mục trượt vào lần lượt */
  .nav > a,
  .nav > form {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .45s var(--hd-ease);
  }
  .nav.open > a,
  .nav.open > form {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 45ms + 90ms);
  }
  .nav > :nth-child(2) { --i: 0; }
  .nav > :nth-child(3) { --i: 1; }
  .nav > :nth-child(4) { --i: 2; }
  .nav > :nth-child(5) { --i: 3; }
  .nav > :nth-child(6) { --i: 4; }

  .nav-indicator { display: none; }

  .nav > a:not(.btn) {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 1rem;
    justify-content: space-between;
  }
  .nav > a:not(.btn)::after {
    content: "";
    width: 7px; height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .28;
    transition: transform .3s var(--hd-ease), opacity .3s;
  }
  .nav > a:not(.btn):hover::after,
  .nav > a.active::after { opacity: .8; transform: translateX(3px) rotate(45deg); }
  .nav > a:not(.btn):active { background: rgba(15, 23, 42, .05); }
  .nav > a.active,
  .nav:not(.has-indicator) > a.active { background: var(--primary-soft, #fff0ea); }

  .nav > form,
  .nav > .btn,
  .nav .ml-auto { margin: 6px 0 0; width: 100%; }
  .nav form .btn,
  .nav a.btn { width: 100%; min-height: 50px; justify-content: center; font-size: 1rem; }
}

/* Màn hình rất nhỏ */
@media (max-width: 380px) {
  .logo span:last-child { font-size: 1rem; }
}

/* Tôn trọng người dùng tắt hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header *, .nav-backdrop {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
}app .sidebar .sidebar-brand-row::after {      /* đường vàng mảnh phân cách */
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(242, 200, 121, .55), rgba(255, 255, 255, .08) 60%, transparent);
}
.app .sidebar .sidebar-brand {
  display: flex; align-items: center; gap: 12px; padding: 0;
  text-decoration: none !important;
}
.app .sidebar .sidebar-brand .logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-size: 20px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--sb-orange), var(--sb-pink));
  border-radius: 12px;
  box-shadow: 0 8px 20px -6px rgba(254, 44, 85, .65), 0 0 0 1px rgba(255, 255, 255, .22) inset;
  transition: transform .35s var(--sb-ease);
}
.app .sidebar .sidebar-brand:hover .logo-mark { transform: scale(1.06) rotate(-4deg); }
.app .sidebar .sidebar-brand span:last-child {
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: #fff;
}

/* ---------- Nút CTA "Hoàn tiền" (giữ nhịp đập) ---------- */
.app .sidebar .sidebar-cta {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  margin: 16px 14px 6px; padding: 12px 14px;
  flex-shrink: 0; overflow: hidden;
  color: #fff !important; text-decoration: none !important;
  background: linear-gradient(125deg, #ff6a3d 0%, var(--sb-orange) 45%, var(--sb-pink) 100%);
  border-radius: 14px;
  box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .25s var(--sb-ease), box-shadow .25s var(--sb-ease);
  animation: ctaHeartbeat 2.5s infinite;
}
.app .sidebar .sidebar-cta:hover {
  animation: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 30px -8px rgba(254, 44, 85, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.app .sidebar .sidebar-cta:active { transform: translateY(0) scale(.98); }
.app .sidebar .sidebar-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.app .sidebar .sidebar-cta.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 12px 26px -8px rgba(254, 44, 85, .7);
}

@keyframes ctaHeartbeat {
  0%   { transform: scale(1);    box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), 0 0 0 0 rgba(254, 44, 85, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
  15%  { transform: scale(1.04); box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), 0 0 0 12px rgba(254, 44, 85, 0), inset 0 1px 0 rgba(255, 255, 255, .3); }
  30%  { transform: scale(1); }
  45%  { transform: scale(1.02); box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), 0 0 0 6px rgba(254, 44, 85, 0), inset 0 1px 0 rgba(255, 255, 255, .3); }
  60%, 100% { transform: scale(1); box-shadow: 0 10px 24px -8px rgba(254, 44, 85, .6), 0 0 0 0 rgba(254, 44, 85, 0), inset 0 1px 0 rgba(255, 255, 255, .3); }
}

.app .sidebar .sidebar-cta::after {            /* vệt sáng quét qua */
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg);
  animation: ctaShine 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShine { 0%, 60% { left: -80%; } 100% { left: 130%; } }

.app .sidebar .sidebar-cta-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 38px;
  background: rgba(255, 255, 255, .2);
  border-radius: 11px;
}
.app .sidebar .sidebar-cta-icon svg { color: #fff; }
.app .sidebar .sidebar-cta-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app .sidebar .sidebar-cta-text strong { font-size: 14px; font-weight: 800; line-height: 1.25; color: #fff; }
.app .sidebar .sidebar-cta-text small {
  font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .88);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app .sidebar .sidebar-cta > svg:last-child { flex-shrink: 0; color: #fff; transition: transform .25s var(--sb-ease); }
.app .sidebar .sidebar-cta:hover > svg:last-child { transform: translateX(3px); }

/* ---------- Menu ---------- */
.app .sidebar .sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 14px 14px; }

.app .sidebar .sidebar-section {               /* nhãn nhóm: vàng nhạt + đường kẻ mờ */
  display: flex; align-items: center; gap: 10px;
  padding: 20px 6px 9px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  color: rgba(242, 200, 121, .78);
}
.app .sidebar .sidebar-section::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(242, 200, 121, .32), transparent);
}

.app .sidebar .sidebar-nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; margin-bottom: 3px;
  color: #a3a7b5; font-size: .92rem; font-weight: 500;
  border-radius: 12px;
  transition: background .25s var(--sb-ease), color .25s, padding-left .3s var(--sb-ease);
}
.app .sidebar .sidebar-nav a svg { width: 19px; height: 19px; flex-shrink: 0; transition: color .25s, transform .3s var(--sb-ease); }
.app .sidebar .sidebar-nav a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  padding-left: 17px;
}
.app .sidebar .sidebar-nav a:hover svg { color: #ff7a4d; transform: scale(1.1); }
.app .sidebar .sidebar-nav a:focus-visible { outline: 2px solid rgba(37, 244, 238, .75); outline-offset: 1px; }

.app .sidebar .sidebar-nav a.active {          /* mục đang chọn: kính mờ + thanh cam–hồng bên trái */
  color: #fff; font-weight: 700;
  background: linear-gradient(90deg, rgba(238, 77, 45, .30), rgba(254, 44, 85, .10) 65%, rgba(255, 255, 255, .03));
  box-shadow: 0 0 0 1px rgba(238, 77, 45, .32) inset, 0 10px 22px -14px rgba(254, 44, 85, .8);
  padding-left: 17px;
}
.app .sidebar .sidebar-nav a.active::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  background: linear-gradient(180deg, var(--sb-orange), var(--sb-pink));
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px rgba(254, 44, 85, .8);
}
.app .sidebar .sidebar-nav a.active svg { color: #ff7a4d; }

/* ---------- Gợi ý cuộn ---------- */
.app .sidebar .sidebar-scroll-hint button {
  color: #c9ccd8; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px;
}

/* ---------- Đăng xuất ---------- */
.app .sidebar .sidebar-logout { margin: 0; padding: 12px 14px 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.app .sidebar .sidebar-logout button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 14px;
  font: inherit; font-size: .9rem; font-weight: 600; color: #c4c7d3; cursor: pointer;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--sb-ease);
}
.app .sidebar .sidebar-logout button:hover {
  color: #fff; background: rgba(254, 44, 85, .16);
  border-color: rgba(254, 44, 85, .5);
  transform: translateY(-1px);
}
.app .sidebar .sidebar-logout button:focus-visible { outline: 2px solid rgba(37, 244, 238, .75); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .app .sidebar .sidebar-cta { animation: none !important; }
  .app .sidebar .sidebar-cta::after { animation: none; display: none; }
  .app .sidebar * { transition: none !important; }
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #a3a7b5;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.sidebar-nav { flex: 1; padding: 8px 12px 14px; }

.sidebar-section {
  padding: 18px 12px 8px;
  font-size: .78rem;
  font-weight: 600;
  color: #6b7080;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 3px;
  border-radius: var(--radius-sm);
  color: #a3a7b5;
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, .07); color: var(--white); }

.sidebar-nav a.active {
  background: var(--grad-cta);
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--shadow-cta);
}

.sidebar-nav svg { width: 19px; height: 19px; flex-shrink: 0; }

.sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem;
}

.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
  padding: 0 24px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-title { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--ink); }

.content { flex: 1; padding: 24px; }

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: var(--shadow); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.card-title svg {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 7px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.card-body   { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg); }

/* ============================================================
   STAT CARD
   ============================================================ */
.stat {
  position: relative;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
}
.stat-label svg { width: 16px; height: 16px; }

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-sub { margin-top: 6px; font-size: .84rem; color: var(--muted); }

/* Thẻ ví — điểm nhấn táo bạo duy nhất của giao diện */
.stat.primary {
  overflow: hidden;
  border: none;
  background: var(--grad-hot);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(238, 77, 45, .32);
}
.stat.primary::after {               /* vòng tròn trang trí góc phải */
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  pointer-events: none;
}
.stat.primary .stat-value { color: var(--white); font-size: 2rem; }
.stat.primary .stat-label,
.stat.primary .stat-sub   { color: rgba(255, 255, 255, .9); }

.stat.success .stat-value { color: var(--success); }
.stat.warning .stat-value { color: #e08a00; }
.stat.danger  .stat-value { color: var(--danger); }

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled,
.btn.disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--grad-cta);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e94f1f 0%, #c92f0d 100%);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(238, 77, 45, .42);
}

.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #009f69; color: var(--white); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #d9141f; color: var(--white); }

.btn-warning { background: var(--warning); color: var(--ink); }
.btn-warning:hover { background: #f0a000; color: var(--ink); }

.btn-outline {
  background: var(--white);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn-ghost { background: transparent; color: var(--body); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }

.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 7px 14px; font-size: .83rem; }
.btn-block { width: 100%; }

/* ============================================================
   FORM
   ============================================================ */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.form-label .req { color: var(--danger); }

.form-control {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-control:hover { border-color: #c5c9d4; }
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(238, 77, 45, .12);
}
.form-control::placeholder { color: var(--light); }
.form-control:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }

textarea.form-control { resize: vertical; min-height: 96px; }

select.form-control {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23747989' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.form-hint  { margin-top: 6px; font-size: .84rem; color: var(--muted); }
.form-error { margin-top: 6px; font-size: .84rem; font-weight: 500; color: var(--danger); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-success { background: var(--success-soft); color: #067a53; }
.badge-warning { background: var(--warning-soft); color: #9a6500; }
.badge-danger  { background: var(--danger-soft);  color: #c4161f; }
.badge-info    { background: var(--info-soft);    color: #0c63b8; }
.badge-muted   { background: var(--bg-alt);       color: var(--muted); }

.badge-platform {
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--white);
  font-size: .76rem;
  font-weight: 700;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }

.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: .83rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  vertical-align: middle;
}

.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #fafbfc; }
.table tbody tr:last-child td { border-bottom: none; }

.table .num { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.table-empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.table-empty svg { width: 46px; height: 46px; margin-bottom: 12px; color: var(--light); }

/* ============================================================
   ALERT
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
}
.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-soft); border-color: #b5ead3; border-left-color: var(--success); color: #05694a; }
.alert-warning { background: var(--warning-soft); border-color: #ffe3a1; border-left-color: var(--warning); color: #8a5a00; }
.alert-danger  { background: var(--danger-soft);  border-color: #ffc9cc; border-left-color: var(--danger);  color: #b3141d; }
.alert-info    { background: var(--info-soft);    border-color: #b9dcff; border-left-color: var(--info);    color: #0c5aa6; }

/* ============================================================
   KHUNG DÁN LINK (trang chủ)
   ============================================================ */
.platform-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.platform-tabs .label { font-size: .88rem; font-weight: 600; color: var(--muted); }

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: .88rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.platform-pill:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.platform-pill.active { border-color: currentColor; box-shadow: 0 3px 12px rgba(22, 24, 35, .1); }

.platform-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; }

.link-box {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: var(--white);
  border: 2px dashed #cfd3dd;
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.link-box:focus-within {
  border-style: solid;
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(238, 77, 45, .1);
}

/* Khi nằm trong card: bỏ khung đôi cho gọn */
.card .link-box {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.link-box .input-wrap { position: relative; flex: 1; min-width: 0; }

.link-box .input-wrap > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 19px;
  height: 19px;
  color: var(--light);
  transform: translateY(-50%);
  pointer-events: none;
}

.link-box input {
  width: 100%;
  height: 52px;
  padding: 0 104px 0 44px;           /* chừa chỗ cho nút Dán bên phải */
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  text-overflow: ellipsis;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.link-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(238, 77, 45, .12);
}
.card .link-box .btn-primary { height: 52px; padding: 0 24px; }

/* Nút Dán nằm trong ô nhập */
.btn-paste {
  position: absolute;
  right: 7px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--white);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color .15s, background .15s, color .15s;
}
.btn-paste:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.btn-paste:active { background: #ffe3da; }
.btn-paste svg { width: 16px; height: 16px; }
.btn-paste.done { border-color: var(--success); background: var(--success-soft); color: #067a53; }

/* Dòng chip các sàn hỗ trợ dưới ô nhập */
.support-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.support-row .label { margin-right: 2px; font-size: .84rem; color: var(--muted); }
.support-row .platform-pill { padding: 5px 12px; font-size: .82rem; cursor: default; }
.support-row .platform-pill:hover { transform: none; border-color: var(--border); }

/* Danh sách link vừa tạo */
.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.link-item:first-child { padding-top: 0; }
.link-item:last-child  { padding-bottom: 0; border-bottom: none; }

/* ============================================================
   KẾT QUẢ SẢN PHẨM
   ============================================================ */
.product-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.product-thumb {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  object-fit: cover;
}

.product-info { flex: 1; min-width: 0; }

.product-name {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Ô tiền hoàn — vé giảm giá: nền cam nhạt, giá trị cam đậm */
.cashback-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff6f2, #ffe9e1);
  border: 1px solid rgba(238, 77, 45, .22);
  border-radius: var(--radius-sm);
}
.cashback-highlight svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--primary); }
.cashback-highlight .label { font-size: .82rem; font-weight: 600; color: #a2391c; }
.cashback-highlight .value {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.aff-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .87rem;
  word-break: break-all;
}
.aff-link-box code { flex: 1; color: var(--body); font-family: ui-monospace, 'SF Mono', monospace; }

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.qr-box canvas, .qr-box img { border-radius: 8px; }

/* ============================================================
   TRANG ĐĂNG NHẬP / ĐĂNG KÝ
   ============================================================ */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background:
    radial-gradient(600px 400px at 10% 0%,  rgba(37, 244, 238, .16), transparent 60%),
    radial-gradient(600px 400px at 95% 100%, rgba(254, 44, 85, .14), transparent 60%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.auth-logo  { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-title { margin-bottom: 6px; text-align: center; font-size: 1.5rem; }
.auth-sub   { margin-bottom: 26px; text-align: center; font-size: .92rem; color: var(--muted); }
.auth-foot  { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ============================================================
   HERO (trang chủ)
   ============================================================ */
.hero {
  padding: 64px 0 44px;
  text-align: center;
  background: linear-gradient(180deg, #fff1ed 0%, var(--bg) 100%);
}

.hero h1 {
  margin-bottom: 14px;
  font-size: 2.5rem;
  letter-spacing: -.03em;
}

.hero h1 .grad {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.06rem;
  color: var(--body);
}
.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }

.st-card {
  position: relative;
  padding: 10px 10px 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 20, 60, .06),
              0 1px 2px rgba(20, 10, 40, .05),
              0 18px 40px -18px rgba(60, 30, 120, .28);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out, translate .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}

/* viền sáng chạy theo chuột */
.st-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--a), var(--b) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 4;
}
/* ánh sáng nhẹ trong thẻ */
.st-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--a) 12%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.st-card:hover::before,
.st-card:hover::after { opacity: 1; }

/* ---------- khung minh họa ---------- */
.st-visual {
  position: relative;
  height: 176px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--a) 16%, #fff),
    color-mix(in srgb, var(--b) 20%, #fff));
}
.st-visual::before {              /* lưới chấm */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30, 20, 60, .14) 1px, transparent 1.3px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at 50% 55%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 55%, #000, transparent 75%);
}
.st-visual::after {               /* quầng sáng trôi */
  content: "";
  position: absolute;
  width: 190px; height: 190px;
  right: -60px; bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--b), transparent 65%);
  opacity: .38;
  filter: blur(10px);
  animation: drift 7s ease-in-out infinite alternate;
}
@keyframes drift { to { translate: -40px -24px; } }

.m { position: relative; z-index: 2; }

.st-tag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 4px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 4px 12px -4px rgba(30, 20, 60, .25);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #2a2440;
}
.st-tag b {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  color: #fff; font-size: .74rem; letter-spacing: 0;
  background: linear-gradient(135deg, var(--a), var(--b));
}

/* --- minh họa 1: ô nhập link tự gõ --- */
.m-link { width: 88%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.m-input {
  width: 100%; height: 46px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px 0 12px;
  border-radius: 14px; background: #fff;
  box-shadow: 0 10px 24px -10px rgba(30, 60, 160, .45);
  color: var(--b);
}
.m-input svg { width: 16px; height: 16px; flex: none; }
.typing {
  flex: 1; display: inline-block; overflow: hidden; white-space: nowrap;
  width: 0; max-width: 21ch;
  border-right: 2px solid var(--a);
  font: 600 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #2a2440;
  animation: type 4.8s steps(21) infinite;
}
@keyframes type { 0% { width: 0 } 55%, 92% { width: 21ch } 100% { width: 0 } }
.m-input em {
  flex: none; font-style: normal; font-size: .74rem; font-weight: 700; color: #fff;
  padding: 8px 14px; border-radius: 10px;
  background: linear-gradient(135deg, var(--a), var(--b));
  animation: press 4.8s infinite;
}
@keyframes press { 0%, 56%, 66%, 100% { scale: 1 } 61% { scale: .88 } }
.m-chips { display: flex; gap: 6px; }
.m-chips i {
  font-style: normal; font-size: .66rem; font-weight: 600; color: #3a3355;
  padding: 3px 8px 3px 6px; border-radius: 99px;
  background: rgba(255, 255, 255, .8);
  display: flex; align-items: center; gap: 5px;
}
.m-chips i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--d); }

/* --- minh họa 2: voucher + nút mua --- */
.m-shop { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 14px; }
.m-tickets { display: flex; }
.tk {
  position: relative; width: 114px; padding: 9px 12px 9px 16px;
  border-radius: 12px; background: #fff;
  box-shadow: 0 10px 22px -10px rgba(200, 70, 20, .5);
  display: flex; flex-direction: column; gap: 2px;
  animation: bob 4s ease-in-out infinite;
}
.tk::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px;
  border-radius: 0 4px 4px 0; background: linear-gradient(var(--a), var(--b));
}
.tk strong {
  font-size: 1.15rem; font-weight: 800; line-height: 1.1;
  background: linear-gradient(90deg, var(--a), var(--b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tk span { font-size: .66rem; font-weight: 600; color: #7a7394; }
.tk:nth-child(1) { rotate: -5deg; }
.tk:nth-child(2) { rotate: 4deg; margin-left: -14px; animation-delay: -2s; }
@keyframes bob { 50% { translate: 0 -7px; } }

.m-btn {
  position: relative; padding: 9px 20px; border-radius: 99px;
  font-size: .76rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 10px 20px -8px var(--b);
}
.m-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 var(--b);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--b) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 14px transparent; } }

/* --- minh họa 3: ví + ngân hàng --- */
.m-wallet-wrap { width: 80%; margin-top: 12px; }
.m-wallet {
  position: relative; overflow: hidden;
  padding: 13px 16px 14px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #241238, #5a1f5e 60%, #a1235f);
  box-shadow: 0 18px 30px -12px rgba(120, 30, 110, .65);
}
.m-wallet::after {            /* vệt sáng quét ngang */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .2) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: sheen 4s ease-in-out infinite;
}
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.m-wallet small { display: block; font-size: .68rem; opacity: .7; letter-spacing: .04em; }
.w-amt { font-size: 1.8rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.w-amt sup { font-size: .9rem; margin-left: 2px; vertical-align: top; position: relative; top: .25em; }
.w-pill {
  display: inline-block; margin-top: 7px; padding: 3px 10px; border-radius: 99px;
  font-size: .66rem; font-weight: 600; background: rgba(255, 255, 255, .16);
}
.m-bank {
  position: absolute; right: -14px; bottom: -16px;
  width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--b);
  display: grid; place-items: center;
  box-shadow: 0 10px 20px -8px rgba(123, 63, 228, .6);
  animation: bob 3.4s ease-in-out infinite;
}
.m-bank svg { width: 24px; height: 24px; }

/* ---------- nội dung chữ ---------- */
.st-body { padding: 22px 18px 0; text-align: left; }
.st-body h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; color: #1c1633; }
.st-body p  { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--muted, #6b6584); }

/* ---------- mũi tên nối giữa các thẻ ---------- */
.st-arrow {
  position: absolute; top: 98px; right: -44px;
  width: 32px; height: 32px; translate: 0 -50%;
  z-index: 5; color: var(--b);
}
.st-arrow::before {           /* đường nét đứt chạy */
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 56px; height: 2px; translate: -50% -50%;
  background: repeating-linear-gradient(90deg, var(--b) 0 6px, transparent 6px 12px);
  opacity: .45;
  animation: flow 1s linear infinite;
}
@keyframes flow { to { background-position: 12px 0; } }
.st-arrow i {
  position: relative; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%; background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--b) 55%, transparent);
}
.st-arrow svg { width: 15px; height: 15px; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 3px 0; } }

/* ---------- hiệu ứng xuất hiện lần lượt ---------- */
.st-grid.js .st-card { opacity: 0; translate: 0 40px; }
.st-grid.js.in .st-card {
  opacity: 1; translate: 0 0;
  transition: opacity .8s ease calc(var(--i) * .18s),
              translate .9s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * .18s),
              transform .18s ease-out, box-shadow .4s;
}
.st-grid.js.in.done .st-card {
  transition: transform .18s ease-out, translate .45s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}
.st-grid.done .st-card:hover {
  translate: 0 -8px;
  box-shadow: 0 0 0 1px rgba(30, 20, 60, .04),
              0 30px 60px -22px color-mix(in srgb, var(--b) 60%, transparent);
}

@keyframes flow-y  { to { background-position: 0 12px; } }
@keyframes nudge-y { 50% { translate: 0 3px; } }

@media (max-width: 820px) {
  .st-grid { grid-template-columns: 1fr; gap: 64px; }

  /* mũi tên: bám mép dưới thẻ, nằm giữa khe */
  .st-grid .st-card .st-arrow {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    width: 34px !important;
    height: 64px !important;       /* = gap của .st-grid */
    translate: -50% 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
  }

  /* đường nét đứt dọc */
  .st-grid .st-card .st-arrow::before {
    top: 0 !important;
    left: 50% !important;
    width: 2px !important;
    height: 100% !important;
    translate: -50% 0 !important;
    background: repeating-linear-gradient(180deg, var(--b) 0 6px, transparent 6px 12px) !important;
    animation: flow-y 1s linear infinite !important;
  }

  .st-grid .st-card .st-arrow i { width: 32px; height: 32px; }
  .st-grid .st-card .st-arrow svg {
    rotate: 90deg;
    animation: nudge-y 1.4s ease-in-out infinite !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-card *, .st-card *::before, .st-card *::after { animation: none !important; }
  .st-grid.js .st-card { opacity: 1; translate: 0 0; }
}
/* khung minh họa cao hơn để đủ chỗ cho hóa đơn */
.st-visual { height: 224px; }
.st-arrow  { top: 122px; }

.m-shop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 22px; width: 88%; }

.m-receipt {
  width: 100%;
  padding: 10px 13px 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px -12px rgba(200, 70, 20, .5);
  font-size: .7rem;
  font-weight: 600;
  animation: bob 4.5s ease-in-out infinite;
}
.rc-prod {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(30, 20, 60, .16);
}
.rc-img { width: 26px; height: 26px; flex: none; border-radius: 8px; background: linear-gradient(135deg, var(--a), var(--b)); }
.rc-prod b { flex: 1; font-size: .72rem; font-weight: 700; color: #2a2440; }
.rc-prod span { font-weight: 700; color: #2a2440; font-variant-numeric: tabular-nums; }

.rc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 6px; color: #7a7394;
}
.rc-row em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-row.off em { color: #12a366; }
.rc-row s { color: #a39cb8; font-weight: 500; margin-right: 3px; }

.rc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed rgba(30, 20, 60, .16);
  font-weight: 800; color: #1c1633;
}
.rc-total strong {
  font-size: .98rem; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--a), var(--b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.m-btn { padding: 8px 18px; font-size: .72rem; }

/* bước 3: dòng giải thích cách tính */
.m-wallet .w-calc { margin-top: 1px; font-size: .66rem; opacity: .85; font-weight: 600; }
.m-wallet-wrap { margin-top: 18px; }
/* ============================================================
   PHÂN TRANG
   ============================================================ */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .9rem;
  font-weight: 600;
  color: var(--body);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pagination .current  { background: var(--grad-cta); border-color: transparent; color: var(--white); }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ============================================================
   TIỆN ÍCH
   ============================================================ */
.text-muted   { color: var(--muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: #e08a00 !important; }
.text-primary { color: var(--primary) !important; }
.text-dark    { color: var(--ink) !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-sm { font-size: .86rem; }
.text-xs { font-size: .79rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

.hidden  { display: none !important; }
.nowrap  { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mono { font-family: ui-monospace, 'SF Mono', Monaco, monospace; font-size: .88em; }

.divider { height: 1px; margin: 20px 0; border: none; background: var(--border); }

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner.dark { border-color: rgba(238, 77, 45, .2); border-top-color: var(--primary); }

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state { padding: 40px; text-align: center; color: var(--muted); }

/* ============================================================
   FOOTER (công khai)
   ============================================================ */
.site-footer {
  margin-top: 60px;
  padding: 44px 0 28px;
  background: var(--ink);
  color: #a3a7b5;
  font-size: .9rem;
}
.site-footer a { color: #a3a7b5; }
.site-footer a:hover { color: var(--white); }
.site-footer h4 { margin-bottom: 14px; font-size: .98rem; color: var(--white); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  font-size: .84rem;
  color: #747989;
}

/* ============================================================
   SIDEBAR TRÊN MOBILE
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(22, 24, 35, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* Thanh tab dưới cùng kiểu app (tuỳ chọn, thêm <nav class="bottom-nav"> nếu muốn) */
.bottom-nav { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .main-grid-layout,
  .dashboard-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 58px; }

  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }

  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .content { padding: 16px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: 1.75rem; }

  .link-box { flex-direction: column; }
  .link-box .btn { width: 100%; }

  .product-card { flex-direction: column; }
  .product-thumb { width: 100%; height: 190px; }

  .nav { display: none; }
  .nav.open {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav a { border-radius: var(--radius-sm); }

  .table { font-size: .83rem; }
  .table th, .table td { padding: 10px 8px; }

  .auth-card { padding: 26px; }

  /* Bật thanh tab dưới khi có phần tử .bottom-nav */
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: flex;
    height: var(--bottom-nav);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--white);
    border-top: 1px solid var(--border);
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav ~ .content,
  .app:has(.bottom-nav) .content { padding-bottom: calc(var(--bottom-nav) + 20px); }
}

@media (min-width: 769px) {
  .sidebar-toggle { display: none; }
}

/* Tôn trọng người dùng tắt hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================================
   UNIFIED EDITION — customer CSS retained above, one shared shell.
   Fixed light content + ink sidebar, matching the supplied brand.
   ============================================================ */
:root{
 --primary:#ce391f;--primary-dark:#b32f19;--primary-light:#e76544;--primary-soft:#fff1eb;
 --ink:#182238;--dark:#182238;--body:#46546b;--muted:#627087;--light:#6b788c;
 --success:#137d59;--warning:#946000;--danger:#bc3540;--info:#2165b0;
 --border:#e4e9f0;--border-strong:#cbd4e0;--bg:#f5f7fb;--bg-alt:#edf1f7;
 --grad-cta:linear-gradient(115deg,#d53b21,#bd301b);--grad-hot:linear-gradient(115deg,#b92e18,#ce391f 65%,#a52f48);
 --radius-sm:9px;--radius:14px;--radius-lg:18px;--radius-xl:22px;
 --shadow-sm:0 1px 2px #17243d04;--shadow:0 4px 14px #17243d08;--shadow-cta:0 3px 10px #ce391f20;
 --sidebar-width:248px;--header-height:76px;
 --oc-ink:var(--ink);--oc-muted:var(--muted);--oc-border:var(--border);--oc-accent:var(--primary);
 color-scheme:light;
}
html{scroll-padding-top:92px}body{font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--body)}
button,input,select,textarea{font:inherit}button,a,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.6}a{overflow-wrap:anywhere}svg{flex-shrink:0;vertical-align:middle}
[hidden]{display:none!important}h1{font-size:clamp(26px,3vw,34px)}h2{font-size:23px;letter-spacing:-.025em}h3{font-size:18px}
:focus-visible{outline:3px solid #286ad5;outline-offset:3px}
.text-xs,.text-sm,.form-hint,.form-error,.badge,.table,.stat-label,.stat-sub,.sidebar-section,.card-title,.pagination a,.pagination span{font-size:14px}
.text-muted{color:var(--muted)!important}.form-control::placeholder{color:#6b788c;opacity:1}.form-control{min-height:46px;font-size:16px;background:#fff}
.btn{min-height:44px;font-size:14px;font-weight:650;box-shadow:none;line-height:1.5;white-space:normal}
.btn-sm{min-height:44px;font-size:14px}.btn-lg{min-height:50px;font-size:16px;padding:13px 22px}.btn-primary:hover{transform:none;box-shadow:var(--shadow-cta)}
.btn-success{background:#137d59;color:#fff}.btn-danger{background:#bc3540;color:#fff}.btn-warning{background:#946000;color:#fff}
.card{box-shadow:var(--shadow-sm)}.card:hover{box-shadow:var(--shadow-sm)}.card-header{min-height:64px;flex-wrap:wrap;padding:16px 20px}.card-title{font-size:17px;min-width:0}.card-body{padding:22px}.card-title svg{background:#fff1eb;color:#bd351d}
.grid>*{min-width:0}.layout-main-aside{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);align-items:start}.layout-aside-main{grid-template-columns:minmax(240px,1fr) minmax(0,2fr);align-items:start}
.main{width:calc(100% - var(--sidebar-width))}.content{width:100%;max-width:1440px;margin:0 auto;padding:28px 32px;min-width:0;outline:none}.app-page{background:var(--bg)}
.sidebar{height:100dvh;background:#172033;color:#c3cede;border-right:1px solid #ffffff0a;scrollbar-width:thin;scrollbar-color:#52617a transparent;z-index:200}
.sidebar-brand-row{display:flex;align-items:center;padding:24px 18px 20px;gap:6px}.sidebar-brand{padding:0;gap:10px;font-size:18px;min-width:0;color:#fff;line-height:1.3;flex:1}.sidebar-brand:hover{color:#fff}.sidebar-brand>span:last-child{overflow-wrap:anywhere}
.logo-mark{width:36px;height:36px;min-width:36px;border-radius:10px;background:#d53b21;color:#fff;box-shadow:none;font-size:23px;display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.account-card{margin:0 16px 12px;display:flex;align-items:center;gap:12px;background:#ffffff08;border:1px solid #ffffff12;border-radius:12px;padding:14px 12px;color:#fff;min-width:0}.account-card:hover{background:#ffffff10;color:#fff}
.account-initial{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;background:#fce9e1;border-radius:10px;color:#b52f18;font-size:18px;font-weight:750}.account-card>span:last-child{min-width:0}.account-card small{display:block;color:#b9c6d9;font-size:14px}.account-card strong{display:block;overflow-wrap:anywhere;font-size:15px;margin-top:2px}
.sidebar-nav{padding:0 12px 16px}.sidebar-section{font-size:11px;letter-spacing:.095em;font-weight:650;color:#a6b4c9;padding:20px 12px 8px}
.sidebar-nav a{min-height:46px;padding:10px 12px;gap:12px;color:#c5cfdf;font-size:14px;border:1px solid transparent;margin:3px 0;font-weight:500}
.sidebar-nav a:hover{background:#ffffff0a;color:#fff}.sidebar-nav a.active{background:#422b2a;color:#ffc0a7;border-color:#ffffff08;box-shadow:none;font-weight:700}.sidebar-nav a.active svg{color:#ffac86}
.sidebar-foot{margin:0 16px;padding:15px;background:#ffffff08;border:1px solid #ffffff14;border-radius:12px;font-size:14px}.sidebar-balance-label{display:flex;align-items:center;gap:7px;color:#b8c6d9}.sidebar-balance{display:block;color:#8ce0b8;font-size:22px;line-height:1.3;margin:6px 0}.sidebar-foot>a{display:flex;align-items:center;gap:8px;font-size:14px;color:#fff;min-height:44px}
.sidebar-logout{margin:8px 16px 14px}.sidebar-logout button{display:flex;gap:12px;align-items:center;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#c5cfdf;font-size:14px}.sidebar-logout button:hover{background:#ffffff0b;color:#fff}
.topbar{height:var(--header-height);min-height:var(--header-height);padding:0 32px;background:#fff;backdrop-filter:none;gap:16px}.topbar-heading,.topbar-actions{display:flex;align-items:center;gap:12px;min-width:0}.topbar-heading>div{min-width:0}.topbar-title{font-size:19px;line-height:1.35;letter-spacing:-.3px;overflow-wrap:anywhere}.topbar-kicker{font-size:10px;letter-spacing:.1em;color:var(--muted);font-weight:700;margin-bottom:3px}.topbar-account{display:flex;align-items:center;gap:10px;color:var(--ink);min-width:44px;min-height:44px}.topbar-account:hover{color:var(--primary)}.topbar-avatar{height:36px;width:36px;display:grid;place-items:center;background:#eef2ff;color:#3154b7;font-size:15px;font-weight:750;border:1px solid #dbe3fc;border-radius:50%;flex-shrink:0}.topbar-account-text{display:block;max-width:180px;min-width:0}.topbar-account-text strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;line-height:1.4}.topbar-account-text small{display:block;font-size:14px;color:var(--muted)}
.sidebar-close{display:none}.app-footer{display:flex;gap:20px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:14px;border-top:1px solid var(--border);margin:8px 32px 0;padding:20px 0}.app-footer>span{margin-right:auto}.app-footer a{color:var(--muted);display:inline-flex;align-items:center;min-height:44px}
.skip-link{position:fixed;left:16px;top:-100px;z-index:999;background:#fff;color:#163e86;border:2px solid #286ad5;padding:10px 16px;border-radius:8px}.skip-link:focus{top:12px}.menu-open{overflow:hidden}
.stat{padding:22px;border-radius:14px;box-shadow:none}.stat-value{font-size:clamp(24px,2.1vw,32px);letter-spacing:-1px;overflow-wrap:anywhere}.stat-label{color:var(--muted);margin-bottom:10px}.stat-sub{margin-top:8px}.stat.primary{background:var(--grad-cta);color:#fff;border-color:transparent}.stat.primary .stat-label,.stat.primary .stat-sub{color:#fff5f0}.stat.primary .stat-value{color:#fff}.stat.warning .stat-value{color:#946000}
.wallet-card{box-shadow:none}.table-wrap{max-width:100%;overflow-x:auto;scrollbar-width:thin}.table{font-size:14px}.table th{font-size:12px;letter-spacing:.025em;color:#657189;background:#f8faff;white-space:nowrap}.table td{padding:16px 14px}.table tbody tr:hover{background:#fcfdff}.table .mono{overflow-wrap:anywhere}.table-empty{padding:44px 24px}
.pagination a,.pagination span{min-width:44px;height:44px}.badge{font-size:13px;line-height:1.5}.badge-platform{font-size:12px}.badge-warning{color:#805400;background:#fff4d5}.badge-success{color:#126448;background:#e8f7ef}.badge-info{color:#235499;background:#edf4ff}.badge-danger{color:#a1303b;background:#fff0f1}.badge-muted{color:#56647b;background:#edf1f7}.badge-primary{color:#b0311b;background:#fff0e9}
.site-header{height:72px;--header-height:72px;background:#fff;backdrop-filter:none}.logo{color:var(--ink);font-size:20px}.nav{gap:10px}.nav a{min-height:44px;display:inline-flex;align-items:center;font-size:14px}.nav form{margin:0}.hero{padding:64px 0 62px;background:linear-gradient(180deg,#fff2e9,#f5f7fb)}.hero h1{font-size:clamp(30px,4vw,46px);max-width:800px;margin:0 auto 18px;line-height:1.2;font-weight:800}.hero p{font-size:17px}.hero h1 .grad{background:none;-webkit-text-fill-color:var(--primary);color:var(--primary)}.hero-badges{gap:10px}
.platform-tabs{gap:10px}.platform-pill{font-size:14px;min-height:36px}.link-box{box-shadow:none;border:1px solid var(--border);border-radius:12px;padding:12px;gap:12px}.link-box input{font-size:16px;min-height:48px}.input-wrap{min-width:0}.link-box .btn{white-space:nowrap}.product-title{overflow-wrap:anywhere}.short-link input{min-width:0}
.auth-wrap{min-height:100dvh;background:radial-gradient(ellipse at top,#ffe9da 0,transparent 52%),#f5f7fb;padding:40px 20px}.auth-card{width:100%;border:1px solid #e4e9f0;box-shadow:0 12px 40px #26344c08;border-radius:18px;padding:32px}.auth-title{font-size:28px;letter-spacing:-.7px}.auth-logo{justify-content:center;margin-bottom:28px}.auth-foot{font-size:14px}.auth-sub{font-size:15px}.auth-card .form-hint{font-size:14px}.auth-card .btn{font-size:15px}
.site-footer{background:#172033;color:#bfcbdd;padding-top:48px}.site-footer h4{color:#fff}.site-footer a{color:#c4cee0}.site-footer a:hover{color:#fff}.site-footer p{color:#c4cee0}.site-footer li a{min-height:36px;display:inline-flex;align-items:center;font-size:14px}.footer-bottom{border-color:#ffffff14;color:#b2c0d4;font-size:14px}
@media(max-width:1200px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:24px}.topbar{padding:0 24px}.layout-main-aside,.dashboard-main-grid,.layout-aside-main{grid-template-columns:minmax(0,1fr)}.admin-page .topbar-kicker{display:none}}
@media(max-width:900px){.nav{gap:2px}.nav a{padding-left:8px;padding-right:8px}.topbar-account-text{max-width:125px}}
@media(max-width:768px){
 :root{--header-height:64px}.sidebar{width:min(292px,calc(100vw - 48px));transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility .2s}.sidebar.open{transform:translateX(0);visibility:visible}.sidebar-brand-row{padding-top:20px}.sidebar-close{display:inline-flex;width:44px;min-width:44px;padding:8px;justify-content:center;color:#c5cfdf}.sidebar-close:hover{color:#fff;background:#ffffff12}.sidebar-brand{font-size:17px}.main{margin-left:0;width:100%}.topbar{padding:0 16px;height:64px;gap:10px}.topbar-heading{gap:6px;flex:1}.topbar-title{font-size:17px}.topbar-kicker{display:none}.topbar-account-text{display:none}.topbar-actions{gap:8px;flex-shrink:0}.sidebar-toggle{display:inline-flex;min-width:44px;min-height:44px;padding:8px;justify-content:center}.topbar-avatar{height:34px;width:34px}.admin-return{padding:8px;min-width:44px}.admin-return span{display:none}.content{padding:20px 16px}.app-footer{margin:8px 16px 0;padding:12px 0;gap:16px}.app-footer>span{width:100%}
 .grid-2,.grid-3,.grid-4{grid-template-columns:minmax(0,1fr)}.grid-4:has(>.stat){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat{padding:16px}.stat-label{font-size:14px;line-height:1.45}.stat-value{font-size:25px}.stat-sub{font-size:14px}.card-header,.card-body{padding:16px}.card-title{font-size:16px}.card-header form{min-width:0;max-width:100%;flex-wrap:wrap}.card-header select.form-control{min-width:0!important;max-width:100%}.card-header>.btn{flex-shrink:0}.card-footer{padding:14px 16px}.form-row{grid-template-columns:minmax(0,1fr)}
 .site-header{height:64px;--header-height:64px}.site-header .container{padding:0 16px}.logo{font-size:18px}.site-header .logo-mark{width:34px;height:34px;min-width:34px}.site-header .sidebar-toggle{margin-left:8px}.nav.open{top:64px;padding:12px 16px;gap:4px}.nav.open a{width:100%;padding:10px 12px}.nav.open form{width:100%}.nav.open form button{width:100%}.nav.open .ml-auto{margin-left:0}.hero{padding:40px 0 52px}.hero h1{font-size:31px}.hero p{font-size:16px;margin-bottom:20px}.link-box{flex-direction:column;padding:10px}.link-box .input-wrap{width:100%}.link-box .btn{width:100%}.container{padding:0 16px}.hero-badges{flex-wrap:wrap}.steps{gap:12px}.step{padding:22px}.auth-wrap{padding:28px 16px}.auth-card{padding:24px 20px}.auth-title{font-size:26px}.site-footer{padding-top:32px}.site-footer .grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
}
@media(max-width:360px){.grid-4:has(>.stat){grid-template-columns:minmax(0,1fr)}.topbar-title{font-size:16px}.site-footer .grid-4{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.topbar,.app-footer,.site-header,.site-footer,.skip-link{display:none!important}.main{margin:0;width:100%}.content{padding:0;max-width:none}.card,.stat{box-shadow:none;break-inside:avoid}}
/* Shared API product-result component; no inline second theme. */
.cb-card{position:relative;background:#fff;border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:var(--shadow-sm)}
.cb-bookmark{position:absolute;top:16px;right:16px;width:44px;height:44px;border:1px solid var(--border);background:#f7f9fc;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.cb-bookmark.on{color:var(--primary);background:var(--primary-soft);border-color:#edc4b6}.cb-bookmark.on svg{fill:currentColor}
.cb-top{display:flex;gap:20px;align-items:flex-start;padding-right:48px}.cb-thumb{width:152px;height:152px;flex:none;border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff}.cb-thumb img{width:100%;height:100%;object-fit:contain;display:block}.cb-info{flex:1;min-width:0}
.cb-badge{display:inline-flex;align-items:center;gap:6px;background:var(--primary-soft);color:var(--primary-dark);font-weight:650;font-size:14px;padding:5px 10px;border-radius:7px;margin-bottom:10px}.cb-name{font-size:20px;font-weight:750;line-height:1.4;color:var(--ink);margin:0 0 16px;overflow-wrap:anywhere}
.cb-money{display:flex;align-items:center;gap:14px;background:#fff7f1;border:1px solid #fce0cb;border-radius:12px;padding:14px 16px}.cb-money-ico{width:44px;height:44px;border-radius:10px;background:#ffe9da;color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cb-money .lb{font-size:14px;font-weight:700;color:var(--ink)}.cb-money .vl{font-size:26px;font-weight:800;color:var(--primary);line-height:1.3}
.cb-note{display:flex;gap:12px;margin-top:20px;padding:16px;border:1px solid var(--border);border-radius:12px;background:#f8faff;font-size:14px;color:var(--body)}.cb-note svg{color:var(--primary);margin-top:2px}.cb-note strong{display:block;color:var(--ink);margin-bottom:2px}.cb-label{font-size:14px;font-weight:650;color:var(--body);margin:20px 0 8px}
.cb-link{display:flex;align-items:center;gap:8px;border:1px solid var(--border);background:#f8faff;border-radius:10px;padding:8px 12px}.cb-link code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;color:var(--ink);background:none}.cb-ico-btn{border:0;background:none;color:var(--muted);padding:10px;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}.cb-ico-btn:hover{color:var(--primary)}.cb-qr{display:none;text-align:center;margin-top:12px}.cb-qr.show{display:block}.cb-qr img{width:180px;height:180px;border:1px solid var(--border);border-radius:12px;padding:8px;background:#fff}.cb-buy{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;margin-top:20px;padding:14px 16px;border-radius:10px;color:#fff!important;font-weight:700;font-size:16px;text-decoration:none;background:var(--grad-cta)}.cb-buy:hover{background:#b6321b}.cb-loading{padding:36px;text-align:center;color:var(--muted)}.cb-error{padding:18px;border-radius:12px;background:#fff1f0;border:1px solid #f4cbca;color:#a02e2e;font-size:15px}
.content form input[type=password]:not([class]){min-height:44px;max-width:100%;border:1px solid var(--border-strong);border-radius:8px;padding:9px 12px;font-size:16px}
@media(max-width:560px){.cb-card{padding:18px}.cb-top{flex-direction:column;padding-right:0}.cb-thumb{width:100%;height:190px}.cb-thumb img{padding:8px}.cb-bookmark{z-index:2}.cb-name{font-size:18px}.cb-badge{font-size:14px}.cb-link{gap:2px;padding:8px}.cb-link code{font-size:14px}.cb-money{padding:12px}.cb-money .vl{font-size:24px}.cb-buy{font-size:15px}}
/* Accessible compact labels; avoid a second input border inside order search. */
.sidebar-section,.topbar-kicker{font-size:14px;letter-spacing:.025em}.topbar-kicker{line-height:1.3}.table th,.badge,.badge-platform{font-size:14px}
.content .oc-search input:not([class]){border:0;border-radius:0;min-height:0;padding:0;background:transparent;font-size:14px;box-shadow:none}
.nav a.btn-primary,.nav a.btn-primary:hover{color:#fff}
:root{--shadow-lg:0 6px 22px #17243d0c}
@media(max-width:768px){.table-wrap>.table{min-width:720px}.table td.mono{white-space:nowrap}}
.layout-top{align-items:start}
.public-page{min-height:100dvh;display:flex;flex-direction:column}.public-page>main{flex:1}.public-page>.site-header{flex-shrink:0}
/* Keep identifiers and platform names readable; wide tables scroll inside cards. */
.table .mono{overflow-wrap:normal;white-space:nowrap}.table .mono a{overflow-wrap:normal}
.badge-platform{white-space:nowrap;display:inline-flex;align-items:center}

.content form input[type=password]:not([class]){margin:0 8px 8px 0}
/* ==========================================================================
   GIAO DIỆN TỔNG QUAN — Shopee (cam) × TikTok (đen · xanh ngọc · hồng)
   Toàn bộ CSS nằm trong file này, mọi lớp đều bắt đầu bằng hx- hoặc qk-
   ========================================================================== */

/* Chống tràn ngang: khung chính không được rộng hơn màn hình */
.app .main, .app .content { min-width: 0; max-width: 100%; }

.hx-dash {
  --hx-orange: #ee4d2d;
  --hx-orange2: #ff7337;
  --hx-pink:   #fe2c55;
  --hx-cyan:   #25f4ee;
  --hx-ink:    #0c0c14;
  --hx-gold:   #f2c879;
  --hx-text:   #1a1d2e;
  --hx-muted:  #6b7088;
  --hx-line:   #eceef5;
  --hx-surface:#ffffff;
  --hx-ease:   cubic-bezier(.22, 1, .36, 1);
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* QUAN TRỌNG: cột không bị nội dung rộng đẩy tràn */
  gap: 28px;
  width: 100%; max-width: 100%;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--hx-text);
}
.hx-dash > * { min-width: 0; max-width: 100%; }
.hx-dash *, .hx-dash *::before, .hx-dash *::after { box-sizing: border-box; }
.hx-dash h2, .hx-dash h3 { margin: 0; letter-spacing: -.01em; }
.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nút dùng chung ---------- */
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px;
  font: inherit; font-size: .92rem; font-weight: 700; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 12px;
  transition: translate .3s var(--hx-ease), box-shadow .3s var(--hx-ease), background .3s, color .3s, border-color .3s;
}
.hx-btn:focus-visible { outline: 3px solid rgba(37, 244, 238, .7); outline-offset: 2px; }
.hx-btn:hover { translate: 0 -2px; }
.hx-btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--hx-orange), var(--hx-pink));
  box-shadow: 0 12px 22px -12px rgba(254, 44, 85, .85);
}
.hx-btn-primary:hover { box-shadow: 0 16px 28px -12px rgba(238, 77, 45, .9); color: #fff; }
.hx-btn-ghost {
  color: #fff; background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.hx-btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(242, 200, 121, .6); color: #fff; }
.hx-btn-line {
  color: var(--hx-orange); background: #fff;
  border-color: rgba(238, 77, 45, .35);
}
.hx-btn-line:hover { background: #fff3ef; border-color: var(--hx-orange); color: var(--hx-orange); }
.hx-btn-sm { min-height: 36px; padding: 0 14px; font-size: .84rem; border-radius: 10px; }

/* ---------- tiêu đề mục ---------- */
.hx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.hx-head h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800;
}
.hx-head h2::before {
  content: ""; width: 5px; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, var(--hx-orange), var(--hx-pink));
}
.hx-head a, .hx-head span { font-size: .85rem; font-weight: 600; color: var(--hx-muted); text-decoration: none; }
.hx-head a:hover { color: var(--hx-orange); }

.hx-panel {
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 22px;
  box-shadow: 0 22px 44px -34px rgba(20, 20, 50, .45);
}
.hx-empty {
  padding: 26px 22px; text-align: center; font-size: .92rem; line-height: 1.6;
  color: var(--hx-muted);
  background: #fafbfd; border: 1.5px dashed #d9dcea; border-radius: 18px;
}

/* ==========================================================================
   BANNER ĐẦU TRANG — ảnh giữa, hai bên là chính ảnh đó được làm mờ
   ========================================================================== */
.hx-banner {
  position: relative; overflow: hidden;
  border-radius: 28px;
  background: #e8ebf3;
  box-shadow: 0 30px 56px -34px rgba(20, 20, 50, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset;
}
.hx-track { display: flex; transition: transform .8s var(--hx-ease); will-change: transform; }
.hx-slide {
  position: relative; flex: 0 0 100%;
  height: clamp(150px, 22vw, 262px);
  display: grid; place-items: center; overflow: hidden;
}
.hx-slide-bg {
  position: absolute; inset: -40px;
  width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(30px) saturate(1.3);
  opacity: .9; transform: scale(1.08);
  pointer-events: none;
}
.hx-slide-hit {
  position: relative; display: block;
  height: 100%; max-width: 100%;
  padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
}
.hx-slide-hit img {
  display: block; height: 100%; width: auto; max-width: 100%;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.hx-slide-hit:focus-visible { outline: 3px solid var(--hx-cyan); outline-offset: -3px; }

.hx-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  color: var(--hx-ink); font-size: 1rem; cursor: pointer;
  background: rgba(255, 255, 255, .92);
  border: 0; border-radius: 50%;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5);
  transition: scale .25s var(--hx-ease), background .25s, color .25s;
}
.hx-arrow:hover { scale: 1.1; background: var(--hx-orange); color: #fff; }
.hx-arrow-prev { left: 14px; }
.hx-arrow-next { right: 14px; }
.hx-arrow svg { width: 16px; height: 16px; }

.hx-dots {
  position: absolute; left: 50%; bottom: 12px; translate: -50% 0; z-index: 3;
  display: flex; gap: 7px; padding: 6px 10px;
  background: rgba(12, 12, 20, .35); backdrop-filter: blur(6px); border-radius: 20px;
}
.hx-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(255, 255, 255, .6);
  transition: width .4s var(--hx-ease), background .3s;
}
.hx-dot.is-on { width: 24px; background: #fff; }

/* banner dự phòng khi quản trị chưa đăng banner */
.hx-fallback {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: clamp(150px, 22vw, 262px);
  padding: 30px clamp(22px, 5vw, 60px);
  color: #fff; border-radius: 28px;
  background:
    radial-gradient(60% 120% at 90% 0%, rgba(254, 44, 85, .55), transparent 60%),
    radial-gradient(50% 100% at 100% 100%, rgba(37, 244, 238, .35), transparent 60%),
    linear-gradient(120deg, #ee4d2d, #ff7337 55%, #fe2c55);
  box-shadow: 0 30px 56px -34px rgba(238, 77, 45, .8);
}
.hx-fallback h2 { font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.15; max-width: 14ch; color: #fff !important; }
.hx-fallback p  { margin: 10px 0 18px; font-size: .95rem; opacity: .92; color: #fff !important; }
.hx-fallback .hx-btn { background: var(--hx-ink); color: #fff; }

/* ==========================================================================
   THẺ CHÀO + SỐ DƯ — nổi bật nhất trang
   ========================================================================== */
.hx-wallet {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: clamp(22px, 3.4vw, 36px);
  color: #fff;
  border: 1px solid rgba(242, 200, 121, .3);
  border-radius: 28px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(254, 44, 85, .38), transparent 58%),
    radial-gradient(60% 110% at 0% 100%, rgba(238, 77, 45, .42), transparent 62%),
    var(--hx-ink);
  box-shadow: 0 34px 60px -34px rgba(12, 12, 20, .85);
}
.hx-wallet::before {  /* vệt xanh ngọc kiểu TikTok */
  content: ""; position: absolute; z-index: -1;
  left: -60px; top: -90px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 244, 238, .28), transparent 65%);
}
.hx-wallet::after {   /* đường kẻ vàng mảnh phía trên */
  content: ""; position: absolute; z-index: -1; left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 200, 121, .85), transparent);
}
.hx-hello { display: block; font-size: .88rem; font-weight: 500; color: var(--hx-gold); }

/* Lời chào: phông chữ viết tay (bút máy) */
.hx-dash .hx-wallet h2.hx-name {
  margin: 6px 0 8px;
  font-family: 'Dancing Script', cursive;
  font-weight: 600; font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.1; letter-spacing: 0;
  color: #fff; overflow-wrap: anywhere;
}
.hx-sub { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .68); }

.hx-balance { display: flex; flex-wrap: wrap; align-items: stretch; gap: 22px; margin: 22px 0; }
.hx-balance > div { display: grid; gap: 4px; align-content: center; }
.hx-balance > div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .16); }
.hx-balance small { font-size: .8rem; color: rgba(255, 255, 255, .62); }
.hx-balance strong { font-size: 1.3rem; font-weight: 700; }
.hx-balance .hx-big {
  font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  text-shadow: -1.5px -1px 0 rgba(37, 244, 238, .75), 1.5px 1px 0 rgba(254, 44, 85, .75);
}
.hx-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hx-coin {
  display: grid; place-items: center;
  width: 112px; height: 112px; border-radius: 32px; color: var(--hx-gold);
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  border: 1px solid rgba(242, 200, 121, .45);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7), 0 0 50px -10px rgba(254, 44, 85, .55);
  rotate: -8deg;
}
.hx-coin svg { width: 52px; height: 52px; }

/* ---------- thống kê ---------- */
.hx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.hx-stat-ic {
  flex: none; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 16px;
  background: var(--t); color: var(--a);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 22%, transparent) inset;
}
.hx-stat small { display: block; font-size: .8rem; color: var(--hx-muted); }
.hx-stat strong { display: block; margin: 2px 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }

/* ==========================================================================
   TIỆN ÍCH
   ========================================================================== */
.hx-utils { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.hx-util {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px 14px; text-align: center; text-decoration: none;
  font-size: .82rem; font-weight: 600; line-height: 1.3; color: var(--hx-text);
  background: #fff; border: 1px solid var(--hx-line); border-radius: 20px;
  transition: translate .35s var(--hx-ease), box-shadow .35s var(--hx-ease), border-color .3s;
}
.hx-util span {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 17px;
  color: var(--accent); background: var(--tint);
  transition: scale .35s var(--hx-ease), rotate .35s var(--hx-ease);
}
.hx-util:hover {
  translate: 0 -4px; border-color: var(--accent);
  box-shadow: 0 18px 30px -18px var(--accent);
}
.hx-util:hover span { scale: 1.1; rotate: -6deg; }
.hx-util:focus-visible { outline: 3px solid rgba(37, 244, 238, .7); outline-offset: 2px; }

/* ==========================================================================
   MÃ GIẢM GIÁ
   ========================================================================== */
.hx-coupons {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
  max-width: 100%;
}
.hx-coupon {
  flex: 0 0 min(330px, 86%); display: flex; overflow: hidden; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--hx-line); border-radius: 20px;
  box-shadow: 0 20px 36px -28px rgba(238, 77, 45, .55);
}
.hx-coupon-mark {
  flex: none; width: 86px; display: grid; place-content: center; justify-items: center; gap: 6px;
  color: #fff; font-size: .72rem; font-weight: 800; text-align: center;
  background: linear-gradient(160deg, var(--hx-orange), var(--hx-pink));
  border-right: 2px dashed rgba(255, 255, 255, .6);
}
.hx-coupon-body { flex: 1; min-width: 0; display: grid; gap: 7px; padding: 14px 16px; }
.hx-coupon-body strong { font-size: .98rem; line-height: 1.3; }
.hx-coupon-body small { color: var(--hx-muted); font-size: .8rem; line-height: 1.4; }
.hx-code {
  justify-self: start; padding: 5px 12px;
  font-size: .88rem; font-weight: 800; letter-spacing: .06em; color: var(--hx-orange);
  background: #fff3ef; border: 1.5px dashed rgba(238, 77, 45, .55); border-radius: 9px;
}
.hx-coupon-btns { display: flex; gap: 8px; margin-top: 4px; }

/* ==========================================================================
   SẢN PHẨM NỔI BẬT
   ========================================================================== */
.hx-note { margin: -4px 0 16px; font-size: .84rem; line-height: 1.55; color: var(--hx-muted); }
.hx-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.hx-product {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--hx-line); border-radius: 20px;
  transition: translate .35s var(--hx-ease), box-shadow .35s var(--hx-ease), border-color .3s;
}
.hx-product:hover { translate: 0 -5px; border-color: rgba(238, 77, 45, .45); box-shadow: 0 24px 38px -24px rgba(238, 77, 45, .6); }
.hx-product-img { aspect-ratio: 1; overflow: hidden; background: #f3f4f8; }
.hx-product-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--hx-ease); }
.hx-product:hover .hx-product-img img { scale: 1.07; }
.hx-product-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.hx-product-body h3 {
  font-size: .92rem; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em;
}
.hx-price { font-size: 1.1rem; font-weight: 800; color: var(--hx-orange); }
.hx-price-note { font-size: .74rem; color: var(--hx-muted); }
.hx-product-body .hx-btn { margin-top: auto; width: 100%; }

/* ==========================================================================
   ĐƠN GẦN ĐÂY + LINK VỪA TẠO
   ========================================================================== */
.hx-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--hx-line);
}
.hx-panel-head h2 { font-size: 1.08rem; font-weight: 800; }
.hx-panel-head a { font-size: .86rem; font-weight: 700; color: var(--hx-orange); text-decoration: none; white-space: nowrap; }
.hx-panel-head a:hover { text-decoration: underline; }
.hx-panel .table-wrap { padding: 4px 8px 10px; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.hx-panel .table th, .hx-panel .table td { white-space: nowrap; }
.hx-panel .table td:first-child { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }   /* mã đơn dài không đẩy bảng */
.hx-panel .hx-empty { margin: 20px; }
.hx-links { padding: 8px 22px 14px; }
.hx-links-title { padding: 18px 22px 0; font-size: 1.08rem; font-weight: 800; }
.hx-recent {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--hx-line);
}
.hx-recent:last-child { border-bottom: 0; }
.hx-recent > div { min-width: 0; display: grid; gap: 3px; }
.hx-recent strong { font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-recent small { color: var(--hx-muted); font-size: .8rem; }

/* ==========================================================================
   Ô "Lấy link hoàn tiền nhanh"
   ========================================================================== */
.hx-dash .qk-card {
  margin: 0 !important;
  border: 1px solid var(--hx-line) !important;
  border-radius: 26px !important;
  background: #fff !important;
  box-shadow: 0 30px 56px -38px rgba(254, 44, 85, .55) !important;
}
.hx-dash .qk-card .card-header { border-bottom: 0 !important; padding-bottom: 0 !important; }
.hx-dash .qk-card .card-title { font-family: inherit; font-size: 1.15rem; font-weight: 800; }
.hx-dash .qk-card .card-body { padding-top: 14px; }

.qk-card {
  --qk-cyan:   #25f4ee;
  --qk-pink:   #fe2c55;
  --qk-orange: #ee4d2d;
  --qk-vio:    #7b3fe4;
  --qk-text:   #1a1d2e;
  --qk-muted:  #6b7088;
  --qk-line:   #e6e8f0;
  --qk-ease:   cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: hidden;
}
.qk-card::before, .qk-card::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  pointer-events: none;
}
.qk-card::before { right: -70px; top: -100px;
  background: radial-gradient(circle, rgba(254, 44, 85, .14), transparent 65%); }
.qk-card::after  { left: -90px; bottom: -130px;
  background: radial-gradient(circle, rgba(37, 244, 238, .14), transparent 65%); }
.qk-card > * { position: relative; z-index: 1; }

.qk-deco { position: absolute !important; top: 12px; right: 20px; z-index: 2 !important;
  display: flex; gap: 10px; pointer-events: none; }
.qk-fl {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 30%;
  box-shadow: 0 10px 20px -8px rgba(10,10,20,.45), 0 0 0 1px rgba(255,255,255,.2), 0 0 22px -4px var(--glow, transparent);
  animation: qk-float-a 6s ease-in-out infinite;
}
.qk-fl svg { width: 62%; height: 62%; overflow: visible; }
.qk-fl-tt { background: #010101; --glow: rgba(37,244,238,.6); }
.qk-fl-sp { background: #ee4d2d; --glow: rgba(238,77,45,.7); animation-name: qk-float-b; animation-duration: 7s; animation-delay: -2s; }
.qk-fl-lz { background: #fff;    --glow: rgba(255,61,127,.6); animation-name: qk-float-c; animation-duration: 8s; animation-delay: -4s; }
.qk-fl-tt .c { fill: var(--qk-cyan); transform: translate(-.7px, -.7px); }
.qk-fl-tt .p { fill: var(--qk-pink); transform: translate(.7px, .7px); }
.qk-fl-tt .w { fill: #fff; }

@property --qk-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.qk-box {
  display: flex; align-items: center; gap: 10px;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(#f7f8fb, #f7f8fb) padding-box,
    linear-gradient(var(--qk-line), var(--qk-line)) border-box;
  transition: box-shadow .4s var(--qk-ease);
}
.qk-box:focus-within {
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--qk-angle), var(--qk-cyan), var(--qk-pink), var(--qk-orange), var(--qk-vio), var(--qk-cyan)) border-box;
  box-shadow: 0 16px 36px -16px rgba(254, 44, 85, .45);
  animation: qk-spin 4s linear infinite;
}
.qk-field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px 0 14px;
  color: var(--qk-muted);
}
.qk-field svg { position: static !important; transform: none !important; flex: none; }
.qk-field > svg { transition: color .3s, rotate .4s var(--qk-ease), scale .4s var(--qk-ease); }
.qk-box:focus-within .qk-field > svg { color: var(--qk-pink); rotate: -12deg; scale: 1.12; }
.qk-field input {
  flex: 1; width: 100%; min-width: 0;
  height: 50px;
  padding: 0 !important;
  font: inherit; font-size: 1rem;
  color: var(--qk-text);
  border: 0 !important; outline: 0 !important; box-shadow: none !important;
  background: transparent !important;
}
.qk-field input::placeholder { color: #9a9fb6; }

.qk-card #btnCreateLink {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  overflow: hidden;
  min-width: 150px; min-height: 50px;
  padding: 0 24px;
  font: inherit; font-weight: 700; color: #fff; white-space: nowrap; cursor: pointer;
  background: linear-gradient(120deg, var(--qk-orange), var(--qk-pink) 55%, var(--qk-vio)) 0 0 / 180% 100%;
  border: 0; border-radius: 13px;
  box-shadow: 0 12px 24px -10px rgba(254, 44, 85, .8);
  transition: background-position .6s var(--qk-ease), box-shadow .35s var(--qk-ease), translate .35s var(--qk-ease), scale .25s var(--qk-ease);
}
.qk-card #btnCreateLink::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
}
.qk-card #btnCreateLink:hover { background-position: 100% 0; translate: 0 -2px;
  box-shadow: 0 18px 30px -10px rgba(238, 77, 45, .75); }
.qk-card #btnCreateLink:hover::after { animation: qk-sweep .9s var(--qk-ease); }
.qk-card #btnCreateLink:active { scale: .97; }
.qk-card #btnCreateLink:disabled { opacity: .8; cursor: progress; filter: saturate(.8); }
.qk-card #btnCreateLink svg { transition: transform .35s var(--qk-ease); }
.qk-card #btnCreateLink:hover svg { transform: scale(1.2) rotate(8deg); }

.qk-hint { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0;
  font-size: .82rem; line-height: 1.5; color: var(--qk-muted); }
.qk-hint svg { flex: none; color: #0a9f78; }

/* ---------- nút Dán ---------- */
.qk-box .qk-paste {
  position: relative !important;
  inset: auto !important;
  flex: none; align-self: center;
  display: flex !important; justify-content: center !important; align-items: center !important;
  box-sizing: border-box;
  width: 84px; height: 40px;
  margin: 0 !important; padding: 0 !important;
  overflow: hidden; isolation: isolate;
  font: inherit; font-size: .9rem; font-weight: 700; line-height: 1; white-space: nowrap;
  color: var(--qk-text); cursor: pointer;
  background: #fff;
  border: 1px solid var(--qk-line);
  border-radius: 12px;
  transform: none !important; translate: none !important;
  transition: width .6s var(--qk-ease), color .3s, border-color .3s, background .3s,
              box-shadow .4s var(--qk-ease), transform .25s var(--qk-ease);
}
.qk-paste::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--fill, linear-gradient(120deg, #1fd9a0, #0aa877));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .6s var(--qk-ease);
}
.qk-paste::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.8);
  transform: scaleX(0); transform-origin: left center;
}
.qk-paste .qk-idle {
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .3s, transform .5s var(--qk-ease);
}
.qk-paste .qk-msg {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 12px));
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; pointer-events: none; color: #fff !important; white-space: nowrap;
  transition: opacity .3s, transform .5s var(--qk-ease);
}
.qk-paste svg { position: static !important; inset: auto !important; transform: none !important; flex: none; }

.qk-paste:not(.is-done):not(.is-warn):hover {
  color: var(--qk-orange); border-color: rgba(238,77,45,.45); background: #fff6f3;
  box-shadow: 0 8px 18px -8px rgba(238,77,45,.55);
  transform: none !important;
}
.qk-paste:active { transform: scale(.95) !important; }

.qk-paste.is-done, .qk-paste.is-warn { color: #fff; border-color: transparent; }
.qk-paste.is-done { box-shadow: 0 10px 22px -8px rgba(10,168,119,.7); animation: qk-ripple 1.1s var(--qk-ease); }
.qk-paste.is-warn { --fill: linear-gradient(120deg, #ffb347, #ff7a3d); box-shadow: 0 10px 22px -8px rgba(255,122,61,.7); }
.qk-paste.is-done::before, .qk-paste.is-warn::before { transform: scaleX(1); }
.qk-paste.is-done::after,  .qk-paste.is-warn::after  { animation: qk-count var(--hold, 5s) linear forwards; }

.qk-paste.is-done .qk-idle, .qk-paste.is-warn .qk-idle { opacity: 0; transform: translateY(-12px); }
.qk-paste.is-done .qk-msg,  .qk-paste.is-warn .qk-msg  { opacity: 1; transform: translate(-50%, -50%); transition-delay: .14s; }

.qk-check { width: 20px; height: 20px; }
.qk-check circle { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2; stroke-dasharray: 63; stroke-dashoffset: 63; }
.qk-check .qk-tick { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.qk-check .qk-bang { display: none; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.qk-paste.is-done .qk-check circle, .qk-paste.is-warn .qk-check circle { animation: qk-draw .6s .1s var(--qk-ease) forwards; }
.qk-paste.is-done .qk-check .qk-tick { animation: qk-draw .45s .4s var(--qk-ease) forwards; }
.qk-paste.is-warn .qk-check .qk-tick { display: none; }
.qk-paste.is-warn .qk-check .qk-bang { display: block; }

.qk-box.is-pasted { animation: qk-glow 1.6s var(--qk-ease); }
.qk-box.is-pasted:focus-within { animation: qk-spin 4s linear infinite, qk-glow 1.6s var(--qk-ease); }
@keyframes qk-spin   { to { --qk-angle: 360deg; } }
@keyframes qk-sweep  { to { left: 130%; } }
@keyframes qk-draw   { to { stroke-dashoffset: 0; } }
@keyframes qk-count  { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes qk-ripple { 0%   { box-shadow: 0 0 0 0 rgba(31,217,160,.55), 0 10px 22px -8px rgba(10,168,119,.7); }
                       100% { box-shadow: 0 0 0 16px rgba(31,217,160,0), 0 10px 22px -8px rgba(10,168,119,.7); } }
@keyframes qk-glow   { 0% { box-shadow: 0 0 0 0 rgba(31,217,160,.5); } 100% { box-shadow: 0 0 0 18px rgba(31,217,160,0); } }
@keyframes qk-float-a { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-7px) rotate(8deg); } }
@keyframes qk-float-b { 0%,100% { transform: translateY(0) rotate(7deg); }  50% { transform: translateY(-5px) rotate(-8deg); } }
@keyframes qk-float-c { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(2px,-7px) rotate(6deg); } }

/* ==========================================================================
   RESPONSIVE — điện thoại
   ========================================================================== */
@media (max-width: 1000px) {
  .hx-utils { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hx-dash { gap: 22px; }
  .hx-wallet { grid-template-columns: minmax(0, 1fr); }
  .hx-coin { display: none; }

  /* 3 ô thống kê nằm ngang, gọn và đều nhau */
  .hx-stats { gap: 10px; }
  .hx-stat { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 8px; border-radius: 18px; }
  .hx-stat-ic { width: 42px; height: 42px; border-radius: 14px; }
  .hx-stat strong { font-size: 1rem; }
  .hx-stat small { font-size: .7rem; line-height: 1.35; }

  .hx-banner, .hx-fallback { border-radius: 22px; }
  .hx-arrow { width: 32px; height: 32px; }
  .hx-arrow-prev { left: 8px; }
  .hx-arrow-next { right: 8px; }
}
@media (max-width: 640px) {
  .qk-deco { display: none; }
  .hx-wallet { padding: 22px 18px; border-radius: 22px; }
  .hx-balance { gap: 16px; margin: 18px 0; }
  .hx-balance > div + div { padding-left: 0; border-left: 0; }
  .hx-actions .hx-btn { flex: 1 1 140px; }

  .hx-utils { gap: 8px; }
  .hx-util { padding: 12px 4px 10px; font-size: .72rem; border-radius: 16px; }
  .hx-util span { width: 42px; height: 42px; border-radius: 14px; }

  .hx-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hx-product-body { padding: 12px; }
  .hx-product-body h3 { font-size: .86rem; }

  .hx-panel-head { padding: 16px 16px; }
  .hx-links, .hx-links-title { padding-left: 16px; padding-right: 16px; }
  .hx-fallback { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .qk-box { flex-direction: column; align-items: stretch; gap: 8px; }
  .qk-field { padding: 0 6px 0 12px; }
  .qk-field input { height: 48px; font-size: 16px; }
  .qk-box .qk-paste { width: 76px; height: 38px; font-size: .85rem; }
  .qk-card #btnCreateLink { width: 100%; min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-dash *, .hx-dash *::before, .hx-dash *::after,
  .qk-card *, .qk-card *::before, .qk-card *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
/* ===== Footer – đồng bộ với hero (teal → đen → đỏ rượu, điểm nhấn cam–hồng–tím) ===== */
.ft {
  --ft-base: #08080f;
  --ft-teal: #0f5c5a;
  --ft-wine: #8b1d3b;
  --ft-text: #c9ced8;
  --ft-muted: #8a90a0;
  --ft-heading: #ffffff;
  --ft-line: rgba(255, 255, 255, 0.1);
  --ft-grad: linear-gradient(90deg, #ff9a3c 0%, #ff4d6d 55%, #a855f7 100%);

  position: relative;
  margin-top: 72px;
  overflow: hidden;
  color: var(--ft-text);
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(15, 92, 90, 0.75) 0%, transparent 70%),
    radial-gradient(60% 70% at 100% 0%, rgba(139, 29, 59, 0.75) 0%, transparent 70%),
    radial-gradient(70% 40% at 50% 120%, rgba(255, 110, 60, 0.28) 0%, transparent 70%),
    var(--ft-base);
  /* mái vòm cong, nối tiếp đường cong của hero */
  border-radius: 50% 50% 0 0 / 56px 56px 0 0;
}

/* lưới mờ giống nền hero */
.ft::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.ft-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 24px 0;
}

/* ---------- Dải kêu gọi ---------- */
.ft-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 32px;
  margin-bottom: 56px;
  border: 1px solid var(--ft-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ft-cta h3 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ft-heading);
}

.ft-cta p {
  margin: 0;
  color: var(--ft-muted);
}

.ft-btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--ft-grad);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(255, 77, 109, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ft-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(255, 77, 109, 0.75);
}

/* ---------- Lưới chính ---------- */
.ft-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.ft-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ft-heading);
  text-decoration: none;
}

.ft-logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ft-grad);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px -6px rgba(255, 77, 109, 0.6);
}

.ft-brand p {
  margin: 14px 0 16px;
  max-width: 32ch;
  color: var(--ft-muted);
}

.ft-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.ft-chips li {
  padding: 5px 12px;
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--ft-text);
}

.ft-mail {
  color: #ffb27a;
  text-decoration: none;
  word-break: break-all;
}

.ft-mail:hover {
  text-decoration: underline;
}

/* ---------- Cột liên kết ---------- */
.ft-col h4 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ft-heading);
}

.ft-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--ft-grad);
}

.ft-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-col li + li {
  margin-top: 10px;
}

.ft-col a {
  display: inline-block;
  color: var(--ft-text);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.ft-col a:hover {
  color: #fff;
  transform: translateX(4px);
}

/* ---------- Thanh dưới ---------- */
.ft-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 0 26px;
  font-size: 14px;
  color: var(--ft-muted);
}

/* đường kẻ gradient mờ dần hai đầu */
.ft-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 154, 60, 0.6), rgba(255, 77, 109, 0.6), rgba(168, 85, 247, 0.6), transparent);
}

.ft-top-link {
  color: var(--ft-muted);
  text-decoration: none;
}

.ft-top-link:hover {
  color: #fff;
}

.ft a:focus-visible {
  outline: 2px solid #ff9a3c;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .ft-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .ft {
    border-radius: 50% 50% 0 0 / 32px 32px 0 0;
  }
  .ft-inner {
    padding: 64px 20px 0;
  }
  .ft-cta {
    padding: 22px 20px;
  }
  .ft-btn {
    width: 100%;
    text-align: center;
  }
  /* chừa chỗ cho thanh điều hướng dưới (mobile_nav.php) */
  .ft-bottom {
    padding-bottom: 88px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-btn, .ft-col a { transition: none; }
  .ft-btn:hover, .ft-col a:hover { transform: none; }
}
/* ===== Trang "Cách hoạt động" ===== */
.hw {
  --hw-ink: #14141f;
  --hw-muted: #5d6272;
  --hw-line: #e7e3dc;
  --hw-card: #ffffff;
  --hw-grad: linear-gradient(90deg, #ff9a3c 0%, #ff4d6d 55%, #a855f7 100%);
}

.hw-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- 3 bước ---------- */
.hw-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 8px 0 72px;
}

/* đường nối giữa các bước (desktop) */
.hw-steps::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: var(--hw-grad);
  opacity: .35;
}

.hw-step {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--hw-card);
  border: 1px solid var(--hw-line);
  border-radius: 24px;
  box-shadow: 0 18px 40px -26px rgba(20, 20, 31, .35);
}

.hw-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--hw-grad);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 10px 24px -8px rgba(255, 77, 109, .6);
}

.hw-step:nth-child(1) .hw-num { transform: rotate(-6deg); }
.hw-step:nth-child(3) .hw-num { transform: rotate(6deg); }

.hw-step h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--hw-ink); }
.hw-step p  { margin: 0; color: var(--hw-muted); line-height: 1.65; }

/* ---------- FAQ ---------- */
.hw-faq-head { margin-bottom: 24px; }
.hw-faq-head h2 { margin: 0 0 6px; font-size: 1.75rem; color: var(--hw-ink); }
.hw-faq-head p  { margin: 0; color: var(--hw-muted); }

.hw-faq { display: grid; gap: 12px; margin-bottom: 72px; }

.hw-q {
  background: var(--hw-card);
  border: 1px solid var(--hw-line);
  border-radius: 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hw-q[open] {
  border-color: transparent;
  box-shadow: 0 0 0 2px #ff4d6d33, 0 18px 40px -28px rgba(255, 77, 109, .5);
}

.hw-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--hw-ink);
}

.hw-q summary::-webkit-details-marker { display: none; }

/* dấu mũi tên xoay khi mở */
.hw-q summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid #ff4d6d;
  border-bottom: 2px solid #ff4d6d;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.hw-q[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.hw-a {
  padding: 0 22px 20px;
  max-width: 78ch;
  color: var(--hw-muted);
  line-height: 1.7;
}

.hw-q summary:focus-visible { outline: 2px solid #ff9a3c; outline-offset: 2px; border-radius: 18px; }

/* ---------- Dải CTA cuối trang ---------- */
.hw-cta {
  position: relative;
  overflow: hidden;
  margin-bottom: 72px;
  padding: 48px 32px;
  text-align: center;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(15, 92, 90, .8), transparent 70%),
    radial-gradient(60% 90% at 100% 0%, rgba(139, 29, 59, .8), transparent 70%),
    #08080f;
}

.hw-cta h2 { margin: 0 0 8px; font-size: 1.75rem; color: #fff; }
.hw-cta p  { margin: 0 0 24px; color: #c9ced8; }

.hw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--hw-grad);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(255, 77, 109, .65);
  transition: transform .15s ease;
}

.hw-btn:hover { transform: translateY(-2px); }
.hw-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hw-steps { grid-template-columns: 1fr; }
  .hw-steps::before { display: none; }
  .hw-cta { padding: 36px 20px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-q, .hw-q summary::after, .hw-btn { transition: none; }
  .hw-btn:hover { transform: none; }
}
/* ==========================================================================
   SIDEBAR v6 — Font Manrope nhỏ gọn + Thẻ Ví Luxury + Nút Tạo Link Luxury
   ========================================================================== */
#sidebar, .topbar {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#sidebar {
  --sb-orange: #ee4d2d;
  --sb-pink:   #fe2c55;
  --sb-cyan:   #25f4ee;
  --sb-gold:   #f2c879;
  --sb-ease:   cubic-bezier(.22, 1, .36, 1);
  --sb-item-h: 36px;
  --sb-sec-pt: 12px;
  display: flex;
  flex-direction: column;
  color: #a9aebd;
  background:
    radial-gradient(90% 18% at 50% 0%,   rgba(255, 255, 255, .08), transparent 70%),
    radial-gradient(110% 34% at 0% 4%,   rgba(37, 244, 238, .10),  transparent 62%),
    radial-gradient(120% 40% at 100% 100%, rgba(254, 44, 85, .22), transparent 64%),
    radial-gradient(90% 34% at 0% 100%,  rgba(238, 77, 45, .18),   transparent 62%),
    linear-gradient(165deg, #1b1c28 0%, #0e0e16 42%, #08080d 100%);
  border-right: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 18px 0 40px -30px rgba(0, 0, 0, .7);
}
#sidebar *, #sidebar *::before, #sidebar *::after { box-sizing: border-box; }

/* ---------- Tinh chỉnh Topbar gọn gàng với Manrope ---------- */
.topbar-kicker {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .11em !important;
}
.topbar-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
}

/* ---------- Logo + tên site ---------- */
#sidebar .sidebar-brand-row {
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px 11px;
}
#sidebar .sidebar-brand-row::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(242, 200, 121, .55), rgba(255, 255, 255, .08) 60%, transparent);
}
#sidebar .sidebar-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 0; text-decoration: none; color: #fff; }
#sidebar .sidebar-brand .logo-mark {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; min-width: 32px;
  font-size: 17px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--sb-orange), var(--sb-pink)); border-radius: 10px;
  box-shadow: 0 8px 18px -6px rgba(254, 44, 85, .65), 0 0 0 1px rgba(255, 255, 255, .22) inset;
}
#sidebar .sidebar-brand > span:last-child {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .95rem; font-weight: 800; letter-spacing: -.025em; color: #fff;
}
#sidebar .sidebar-close { color: #c9ccd8; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; }

/* ---------- Thẻ Tài khoản & Ví (Luxury Wallet Card) ---------- */
#sidebar .sidebar-user-card {
  position: relative; isolation: isolate; flex-shrink: 0; overflow: hidden;
  margin: 11px 12px 9px; padding: 9px;
  border-radius: 17px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(254, 44, 85, .18), transparent 60%),
    radial-gradient(100% 100% at 0% 100%, rgba(37, 244, 238, .10), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .025) 100%);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow:
    0 16px 32px -18px rgba(0, 0, 0, .85),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}
#sidebar .sidebar-user-card::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 200, 121, .75), transparent);
}

#sidebar .sidebar-profile {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 3px 5px 9px;
  color: #fff; text-decoration: none;
  background: transparent; border: 0; border-radius: 11px;
  transition: transform .25s var(--sb-ease);
}
#sidebar .sidebar-profile-initial {
  position: relative; flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  font-size: 15px; font-weight: 800; color: #fff;
  background:
    linear-gradient(135deg, #1b1c28, #12131c) padding-box,
    linear-gradient(135deg, var(--sb-cyan), var(--sb-orange), var(--sb-pink)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 8px 18px -6px rgba(254, 44, 85, .55);
}
#sidebar .sidebar-profile-initial::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid #13141f;
  box-shadow: 0 0 8px rgba(34, 197, 94, .8);
}
#sidebar .sidebar-profile-copy { flex: 1; min-width: 0; display: grid; gap: 1px; }
#sidebar .sidebar-profile-copy strong {
  font-size: 13px; font-weight: 800; letter-spacing: -.015em; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#sidebar .sidebar-profile-copy small {
  font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .58);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#sidebar .sidebar-profile-arrow {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 7px;
  color: rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s, color .25s, translate .25s var(--sb-ease);
}

#sidebar .sidebar-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0; padding: 8px 11px;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(10, 10, 18, .68) 0%, rgba(242, 200, 121, .13) 100%);
  border: 1px solid rgba(242, 200, 121, .28);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .25s, background .25s, transform .25s var(--sb-ease);
}
#sidebar .sidebar-balance-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: -.01em; color: rgba(255, 255, 255, .78);
}
#sidebar .sidebar-balance-label svg { color: var(--sb-gold); flex: none; }
#sidebar .sidebar-balance strong {
  font-size: .98rem; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 15%, #ffe199 55%, #f2b84b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(242, 200, 121, .35));
  text-shadow: none;
}

/* ---------- Nút CTA: Luxury Action Card đồng bộ với Thẻ Ví ---------- */
#sidebar .sidebar-cta {
  position: relative; isolation: isolate; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; margin: 0 12px 7px; padding: 7px 10px 7px 9px;
  color: #fff !important; text-decoration: none !important;
  border-radius: 15px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(242, 200, 121, .28), transparent 55%),
    linear-gradient(130deg, #ff5d2e 0%, #ee4d2d 46%, #e61e50 100%);
  border: 1px solid rgba(242, 200, 121, .42);
  box-shadow:
    0 14px 28px -10px rgba(254, 44, 85, .65),
    0 4px 12px -4px rgba(238, 77, 45, .45),
    inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .25s var(--sb-ease), box-shadow .25s var(--sb-ease), border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
#sidebar .sidebar-cta > * { position: relative; z-index: 1; }
#sidebar .sidebar-cta::before {
  content: ""; position: absolute; z-index: 0; left: 15%; right: 15%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 214, .95), transparent);
}
#sidebar .sidebar-cta::after {
  content: ""; position: absolute; z-index: 0; top: -20%; bottom: -20%; left: 0; width: 36%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-180%) skewX(-22deg);
  animation: sbShine 4.2s ease-in-out infinite !important;
}
@keyframes sbShine {
  0%, 62% { transform: translateX(-180%) skewX(-22deg); }
  100% { transform: translateX(440%) skewX(-22deg); }
}

#sidebar .sidebar-cta-icon {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(16, 16, 26, .36), rgba(16, 16, 26, .16));
  border: 1px solid rgba(255, 240, 200, .38);
  box-shadow:
    0 6px 14px -4px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .3s var(--sb-ease), background .25s;
}
#sidebar .sidebar-cta-icon svg { color: #fff6df; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .25)); }

#sidebar .sidebar-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#sidebar .sidebar-cta-text strong {
  font-size: 12.8px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#sidebar .sidebar-cta-text small {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2;
  color: rgba(255, 244, 224, .9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

#sidebar .sidebar-cta-arrow {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s var(--sb-ease), background .25s, color .25s;
}

#sidebar .sidebar-cta:active { scale: .98; }
#sidebar .sidebar-cta:focus-visible { outline: 2px solid var(--sb-gold); outline-offset: 2px; }
#sidebar .sidebar-cta.is-active {
  border-color: rgba(255, 255, 255, .75);
  box-shadow: 0 0 0 2px rgba(242, 200, 121, .45), 0 14px 28px -8px rgba(254, 44, 85, .75);
}

/* ---------- Menu (Có hiệu ứng cắt nửa dòng cuối để báo hiệu cuộn) ---------- */
#sidebar .sidebar-nav {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6px, #000 calc(100% - 26px), rgba(0,0,0,.35) calc(100% - 8px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 6px, #000 calc(100% - 26px), rgba(0,0,0,.35) calc(100% - 8px), transparent 100%);
}
#sidebar .sidebar-nav.is-scrolled-end {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8px, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 8px, #000 100%);
}
#sidebar .sidebar-nav::-webkit-scrollbar { width: 4px; }
#sidebar .sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 5px; }

#sidebar .sidebar-section {
  display: flex; align-items: center; gap: 9px;
  padding: var(--sb-sec-pt) 6px 4px;
  font-size: 9.8px; font-weight: 800; letter-spacing: .12em; color: rgba(242, 200, 121, .78);
}
#sidebar .sidebar-section::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(242, 200, 121, .3), transparent); }

#sidebar .sidebar-nav a {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: var(--sb-item-h); min-height: var(--sb-item-h); margin: 2px 0; padding: 0 10px;
  font-size: 12.8px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: #b4b9c7; text-decoration: none;
  background: transparent; border: 0; border-radius: 10px; box-shadow: none;
  transition: background .25s var(--sb-ease), color .25s, padding-left .3s var(--sb-ease);
}
#sidebar .sidebar-nav a > span:not(.sidebar-badge) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sidebar .sidebar-nav a svg { flex: none; width: 17px; height: 17px; opacity: .88; transition: color .25s, transform .3s var(--sb-ease); }
#sidebar .sidebar-nav a:focus-visible { outline: 2px solid rgba(37, 244, 238, .75); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) {
  #sidebar .sidebar-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); padding-left: 13px; }
  #sidebar .sidebar-nav a:hover svg { color: #ff7a4d; transform: scale(1.08); }
  #sidebar .sidebar-cta:hover {
    transform: translateY(-1.5px);
    border-color: rgba(242, 200, 121, .75);
    box-shadow:
      0 18px 32px -10px rgba(254, 44, 85, .8),
      0 6px 14px -4px rgba(238, 77, 45, .55),
      inset 0 1px 0 rgba(255, 255, 255, .5);
  }
  #sidebar .sidebar-cta:hover .sidebar-cta-icon { transform: scale(1.05) rotate(-4deg); background: rgba(16, 16, 26, .45); }
  #sidebar .sidebar-cta:hover .sidebar-cta-arrow { transform: translateX(3px); background: #fff; color: var(--sb-orange); }
  #sidebar .sidebar-profile:hover .sidebar-profile-arrow { color: #fff; background: rgba(254, 44, 85, .25); border-color: rgba(254, 44, 85, .45); translate: 2px 0; }
  #sidebar .sidebar-balance:hover { border-color: rgba(242, 200, 121, .55); background: linear-gradient(90deg, rgba(10, 10, 18, .68) 0%, rgba(242, 200, 121, .22) 100%); }
}
#sidebar .sidebar-nav a.active {
  color: #fff; font-weight: 700; padding-left: 13px;
  background: linear-gradient(90deg, rgba(238, 77, 45, .30), rgba(254, 44, 85, .10) 65%, rgba(255, 255, 255, .03));
  box-shadow: 0 0 0 1px rgba(238, 77, 45, .32) inset, 0 10px 20px -14px rgba(254, 44, 85, .8);
}
#sidebar .sidebar-nav a.active::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--sb-orange), var(--sb-pink)); box-shadow: 0 0 10px rgba(254, 44, 85, .8);
}
#sidebar .sidebar-nav a.active svg { color: #ff7a4d; }
#sidebar .sidebar-badge {
  margin-left: auto; flex: none; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  font-size: 10.5px; font-weight: 800; line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--sb-orange), var(--sb-pink)); border-radius: 999px;
  box-shadow: 0 6px 12px -4px rgba(254, 44, 85, .7);
}

/* ---------- Gợi ý cuộn (nếu sidebar-scroll.js tạo ra) ---------- */
#sidebar .sidebar-scroll-hint { margin: 0 12px; background: transparent; border-top: 1px solid rgba(255, 255, 255, .08); }
#sidebar .sidebar-scroll-hint button { color: #d3d7e2; font-size: 11.5px; background: rgba(255, 255, 255, .07); border-radius: 9px; }

/* ---------- Đăng xuất ---------- */
#sidebar .sidebar-logout { flex-shrink: 0; margin: 0; padding: 8px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
#sidebar .sidebar-logout button {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 36px; padding: 7px 12px;
  font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; color: #c4c7d3; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10); border-radius: 10px;
  transition: background .25s, color .25s, border-color .25s;
}
#sidebar .sidebar-logout button svg { width: 16px; height: 16px; }
#sidebar .sidebar-logout button:focus-visible { outline: 2px solid rgba(37, 244, 238, .75); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  #sidebar .sidebar-logout button:hover { color: #fff; background: rgba(254, 44, 85, .16); border-color: rgba(254, 44, 85, .5); }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 768px) {
  #sidebar { width: min(296px, 86vw); max-width: none; --sb-item-h: 40px; }
  #sidebar .sidebar-brand-row { padding: 14px 16px 12px; }
  #sidebar .sidebar-logout { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  #sidebar .sidebar-logout button { min-height: 40px; }
}

/* ---------- Người dùng bật "Giảm chuyển động" ---------- */
@media (prefers-reduced-motion: reduce) {
  #sidebar .sidebar-cta::after { animation: none !important; opacity: 0; }
  #sidebar .sidebar-nav a, #sidebar .sidebar-logout button { transition-duration: .01ms; }
}
/* ---------- Chân Sidebar: Đăng xuất + Cài đặt ứng dụng ---------- */
#sidebar .sidebar-foot {
  flex-shrink: 0;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px 12px 11px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
#sidebar .sidebar-logout { margin: 0; padding: 0; border: 0; }
#sidebar .sidebar-logout button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 35px; padding: 6px 12px;
  font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; color: #c4c7d3; cursor: pointer;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .10); border-radius: 10px;
  transition: background .25s, color .25s, border-color .25s;
}
#sidebar .sidebar-logout button svg { width: 15px; height: 15px; }
#sidebar .sidebar-logout button:focus-visible { outline: 2px solid rgba(37, 244, 238, .75); outline-offset: 2px; }

/* Nút Cài đặt ứng dụng ngay (nhỏ gọn, thanh lịch ngay dưới Đăng xuất) */
#sidebar .sidebar-install-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; min-height: 31px; padding: 4px 10px;
  font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: -.01em;
  color: #f4e3bd; text-decoration: none; cursor: pointer;
  background:
    radial-gradient(80% 140% at 0% 50%, rgba(37, 244, 238, .12), transparent 65%),
    linear-gradient(90deg, rgba(242, 200, 121, .12) 0%, rgba(254, 44, 85, .10) 100%);
  border: 1px solid rgba(242, 200, 121, .28);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background .25s, border-color .25s, color .25s, transform .2s var(--sb-ease);
}
#sidebar .sidebar-install-icon {
  flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  color: var(--sb-gold);
  background: rgba(242, 200, 121, .14);
}
#sidebar .sidebar-install-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#sidebar .sidebar-install-tag {
  margin-left: auto; flex: none;
  padding: 1.5px 5.5px; border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
  color: #0e1018;
  background: linear-gradient(135deg, #ffe29f, var(--sb-gold));
}
@media (hover: hover) and (pointer: fine) {
  #sidebar .sidebar-logout button:hover { color: #fff; background: rgba(254, 44, 85, .16); border-color: rgba(254, 44, 85, .5); }
  #sidebar .sidebar-install-btn:hover {
    color: #fff;
    border-color: rgba(242, 200, 121, .55);
    background:
      radial-gradient(80% 140% at 0% 50%, rgba(37, 244, 238, .20), transparent 65%),
      linear-gradient(90deg, rgba(242, 200, 121, .22) 0%, rgba(254, 44, 85, .18) 100%);
    transform: translateY(-1px);
  }
}
/* ==========================================================================
   TRANG ĐIỀU KHOẢN SỬ DỤNG (tiền tố tm-)
   ========================================================================== */
.tm-wrap {
  --tm-ink:    #07070d;
  --tm-ink-2:  #16111f;
  --tm-cyan:   #25f4ee;
  --tm-pink:   #fe2c55;
  --tm-orange: #ee4d2d;
  --tm-vio:    #7b3fe4;
  --tm-text:   #1a1d2e;
  --tm-muted:  #646982;
  --tm-line:   #e6e8f0;
  --tm-bg:     #f5f6fa;
  --tm-ease:   cubic-bezier(.22, 1, .36, 1);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color: var(--tm-text);
  background: var(--tm-bg);
  padding-bottom: 72px;
  overflow-x: clip; /* Chống tràn ngang tuyệt đối */
}
.tm-wrap *, .tm-wrap *::before, .tm-wrap *::after { box-sizing: border-box; }

/* ---------- HERO BANNER ---------- */
.tm-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(44px, 6vw, 76px) 0 clamp(68px, 8vw, 100px);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(48% 85% at 10% 15%, rgba(37, 244, 238, .32), transparent 62%),
    radial-gradient(52% 85% at 90% 12%, rgba(254, 44, 85, .50), transparent 62%),
    radial-gradient(70% 95% at 52% 115%, rgba(238, 77, 45, .75), transparent 62%),
    linear-gradient(165deg, var(--tm-ink), var(--tm-ink-2));
}
.tm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
}
.tm-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 40px;
  background: var(--tm-bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.tm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.tm-badge svg { width: 15px; height: 15px; color: var(--tm-cyan); }

.tm-hero h1 {
  margin: 0 auto 12px;
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #fff !important;
}
.tm-hero h1 span {
  background: linear-gradient(100deg, #ff9d3d, var(--tm-pink) 48%, var(--tm-cyan));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.tm-hero p {
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(.92rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
.tm-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  padding: 8px 16px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .9);
  background: rgba(7, 7, 13, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
}
.tm-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tm-meta svg { width: 15px; height: 15px; color: #ffc94a; }

/* ---------- BỐ CỤC CHÍNH (2 CỘT) ---------- */
.tm-layout {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ---------- MỤC LỤC BÊN TRÁI (STICKY) ---------- */
.tm-toc {
  position: sticky;
  top: 88px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--tm-line);
  border-radius: 20px;
  padding: 18px 14px;
  box-shadow: 0 18px 40px -24px rgba(10, 10, 20, .12);
}
.tm-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 12px;
  margin-bottom: 10px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tm-muted);
  border-bottom: 1px solid var(--tm-line);
}
.tm-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.tm-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--tm-muted);
  text-decoration: none;
  border-radius: 11px;
  transition: all .22s var(--tm-ease);
}
.tm-toc-list a .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: .74rem;
  font-weight: 800;
  color: var(--tm-muted);
  background: #f1f3f9;
  border-radius: 7px;
  transition: all .22s var(--tm-ease);
}
.tm-toc-list a:hover {
  color: var(--tm-text);
  background: #f7f8fc;
}
.tm-toc-list a.is-active {
  color: var(--tm-orange);
  background: linear-gradient(135deg, #fff5f2, #fff0f4);
  font-weight: 700;
}
.tm-toc-list a.is-active .num {
  color: #fff;
  background: linear-gradient(135deg, var(--tm-orange), var(--tm-pink));
  box-shadow: 0 4px 10px -2px rgba(254, 44, 85, .5);
}

/* ---------- NỘI DUNG ĐIỀU KHOẢN ---------- */
.tm-content {
  min-width: 0; /* Khóa chiều rộng không cho phình ngang */
  display: grid;
  gap: 20px;
}

/* Thẻ tóm tắt nhanh ở đầu */
.tm-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: linear-gradient(160deg, var(--tm-ink), var(--tm-ink-2));
  color: #fff;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 22px 45px -24px rgba(7, 7, 13, .7);
}
.tm-sum-item {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
}
.tm-sum-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--tm-cyan);
  background: rgba(37, 244, 238, .12);
  border: 1px solid rgba(37, 244, 238, .28);
}
.tm-sum-item:nth-child(2) .tm-sum-ic {
  color: #ff8b5e;
  background: rgba(238, 77, 45, .14);
  border-color: rgba(238, 77, 45, .3);
}
.tm-sum-item:nth-child(3) .tm-sum-ic {
  color: #ff5c8a;
  background: rgba(254, 44, 85, .14);
  border-color: rgba(254, 44, 85, .3);
}
.tm-sum-item b {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.tm-sum-item span {
  display: block;
  font-size: .78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .72);
}

/* Khối chứa 10 điều khoản */
.tm-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--tm-line);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 38px);
  box-shadow: 0 20px 50px -28px rgba(10, 10, 20, .12);
}

.tm-sec {
  scroll-margin-top: 96px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px dashed var(--tm-line);
}
.tm-sec:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.tm-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tm-sec-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: .92rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--tm-orange), var(--tm-pink));
  border-radius: 11px;
  box-shadow: 0 10px 20px -8px rgba(254, 44, 85, .6);
}
.tm-sec h2 {
  margin: 0;
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--tm-text);
}

.tm-sec p {
  margin: 0 0 12px;
  font-size: .95rem;
  line-height: 1.7;
  color: #3b4056;
  overflow-wrap: break-word;
}
.tm-sec p:last-child { margin-bottom: 0; }

/* Danh sách ul/li tùy biến đẹp mắt */
.tm-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tm-list li {
  position: relative;
  padding: 12px 16px 12px 42px;
  font-size: .94rem;
  line-height: 1.62;
  color: #33384e;
  background: #f8f9fc;
  border: 1px solid #eceef5;
  border-radius: 14px;
  overflow-wrap: break-word;
  transition: border-color .2s, background .2s;
}
.tm-list li:hover {
  background: #fff;
  border-color: rgba(238, 77, 45, .3);
}
.tm-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Riêng mục 7: Hành vi bị cấm dùng tông cảnh báo Đỏ - Cam */
.tm-sec.is-danger {
  padding: 20px;
  background: linear-gradient(135deg, #fff5f5, #fff9f6);
  border: 1px solid #ffd6d6;
  border-radius: 18px;
}
.tm-sec.is-danger .tm-sec-num {
  background: linear-gradient(135deg, #e11d48, #f97316);
}
.tm-sec.is-danger .tm-list li {
  background: rgba(255, 255, 255, .85);
  border-color: #ffe0e0;
}
.tm-sec.is-danger .tm-list li::before {
  background-color: rgba(225, 29, 72, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

/* Nhãn tiền nổi bật */
.tm-hl {
  display: inline-block;
  padding: 2px 9px;
  font-weight: 700;
  color: var(--tm-orange);
  background: rgba(238, 77, 45, .1);
  border-radius: 7px;
}

/* ---------- HỘP LIÊN HỆ CUỐI TRANG ---------- */
.tm-contact {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 26px;
  color: #fff;
  background:
    radial-gradient(50% 120% at 95% 10%, rgba(254, 44, 85, .5), transparent 65%),
    radial-gradient(50% 120% at 5% 90%, rgba(37, 244, 238, .28), transparent 65%),
    linear-gradient(160deg, var(--tm-ink), var(--tm-ink-2));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 48px -24px rgba(7, 7, 13, .85);
}
.tm-contact h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.tm-contact p {
  margin: 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .78);
}
.tm-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--tm-orange), var(--tm-pink) 60%, var(--tm-vio));
  border-radius: 13px;
  box-shadow: 0 12px 24px -8px rgba(254, 44, 85, .7);
  transition: transform .25s var(--tm-ease), box-shadow .25s var(--tm-ease);
}
.tm-contact-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(238, 77, 45, .85);
}

/* ---------- RESPONSIVE (FIX VỠ KHUNG TRÊN TABLET & MOBILE) ---------- */
@media (max-width: 960px) {
  .tm-layout {
    grid-template-columns: minmax(0, 1fr); /* Bắt buộc dùng minmax(0, 1fr) thay vì 1fr */
    gap: 18px;
  }
  .tm-toc {
    position: static;
    padding: 16px;
  }
  /* Mục lục xếp thành lưới 2 cột gọn gàng, không cuộn ngang gây phình trang */
  .tm-toc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tm-toc-list a {
    padding: 8px 10px;
    font-size: .82rem;
    border: 1px solid var(--tm-line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tm-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .tm-toc-list {
    grid-template-columns: minmax(0, 1fr); /* Màn hình rất nhỏ thì xếp 1 cột gọn */
  }
  .tm-contact-btn {
    width: 100%;
  }
}
/* ==========================================================================
   TRANG CHÍNH SÁCH HOÀN TIỀN (tiền tố cp-)
   ========================================================================== */
.cp-wrap {
  --cp-ink:    #07070d;
  --cp-ink-2:  #16111f;
  --cp-cyan:   #25f4ee;
  --cp-pink:   #fe2c55;
  --cp-orange: #ee4d2d;
  --cp-vio:    #7b3fe4;
  --cp-text:   #1a1d2e;
  --cp-muted:  #646982;
  --cp-line:   #e6e8f0;
  --cp-bg:     #f5f6fa;
  --cp-ease:   cubic-bezier(.22, 1, .36, 1);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color: var(--cp-text);
  background: var(--cp-bg);
  padding-bottom: 72px;
  overflow-x: clip;
}
.cp-wrap *, .cp-wrap *::before, .cp-wrap *::after { box-sizing: border-box; }

/* ---------- HERO BANNER ---------- */
.cp-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(44px, 6vw, 76px) 0 clamp(68px, 8vw, 100px);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(48% 85% at 10% 15%, rgba(37, 244, 238, .32), transparent 62%),
    radial-gradient(52% 85% at 90% 12%, rgba(254, 44, 85, .50), transparent 62%),
    radial-gradient(70% 95% at 52% 115%, rgba(238, 77, 45, .75), transparent 62%),
    linear-gradient(165deg, var(--cp-ink), var(--cp-ink-2));
}
.cp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
}
.cp-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 40px;
  background: var(--cp-bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.cp-badge svg { width: 15px; height: 15px; color: var(--cp-cyan); }

.cp-hero h1 {
  margin: 0 auto 12px;
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #fff !important;
}
.cp-hero h1 span {
  background: linear-gradient(100deg, #ff9d3d, var(--cp-pink) 48%, var(--cp-cyan));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.cp-hero p {
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(.92rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}

/* ---------- KHUNG NỘI DUNG CHÍNH ---------- */
.cp-main {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 22px;
}

/* Dải 3 thông số tóm tắt nhanh */
.cp-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(45% 120% at 6% 15%, rgba(37, 244, 238, .24), transparent 65%),
    radial-gradient(45% 120% at 94% 15%, rgba(254, 44, 85, .36), transparent 65%),
    linear-gradient(160deg, var(--cp-ink), var(--cp-ink-2));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  box-shadow: 0 24px 50px -26px rgba(7, 7, 13, .8);
}
.cp-hl-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 15px;
}
.cp-hl-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--cp-cyan);
  background: rgba(37, 244, 238, .12);
  border: 1px solid rgba(37, 244, 238, .28);
}
.cp-hl-item:nth-child(2) .cp-hl-ic {
  color: #ff8b5e;
  background: rgba(238, 77, 45, .14);
  border-color: rgba(238, 77, 45, .32);
}
.cp-hl-item:nth-child(3) .cp-hl-ic {
  color: #ffe169;
  background: rgba(255, 225, 105, .12);
  border-color: rgba(255, 225, 105, .3);
}
.cp-hl-item b {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.cp-hl-item span {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
}

/* ---------- THẺ CHÍNH SÁCH ---------- */
.cp-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 20px 50px -28px rgba(10, 10, 20, .12);
}

.cp-sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.cp-sec-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 13px;
  box-shadow: 0 10px 20px -8px rgba(16, 185, 129, .55);
}
.cp-sec-ic.is-time {
  background: linear-gradient(135deg, var(--cp-orange), var(--cp-pink));
  box-shadow: 0 10px 20px -8px rgba(254, 44, 85, .55);
}
.cp-sec-ic.is-ban {
  background: linear-gradient(135deg, #e11d48, #f97316);
  box-shadow: 0 10px 20px -8px rgba(225, 29, 72, .55);
}
.cp-sec-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--cp-text);
}
.cp-sec-head small {
  display: block;
  margin-top: 2px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--cp-muted);
}

/* Danh sách điều kiện đạt chuẩn */
.cp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cp-list li {
  position: relative;
  padding: 14px 18px 14px 46px;
  font-size: .96rem;
  line-height: 1.6;
  color: #2e3348;
  background: #f8fafc;
  border: 1px solid #e9eef5;
  border-radius: 15px;
  transition: transform .2s var(--cp-ease), border-color .2s, background .2s;
}
.cp-list li:hover {
  background: #fff;
  border-color: rgba(16, 185, 129, .4);
  transform: translateX(3px);
}
.cp-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, .15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- SƠ ĐỒ TIMELINE THỜI GIAN XỬ LÝ ---------- */
.cp-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 6px;
}
.cp-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background: #f8f9fc;
  border: 1px solid #ebedf5;
  border-radius: 18px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.cp-step:hover {
  background: #fff;
  border-color: rgba(238, 77, 45, .32);
  box-shadow: 0 12px 28px -18px rgba(238, 77, 45, .25);
}
.cp-step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: .88rem;
  font-weight: 800;
  border-radius: 11px;
  color: #d97706;
  background: #fef3c7;
  border: 1px solid #fde68a;
}
.cp-step:nth-child(2) .cp-step-num {
  color: #2563eb;
  background: #dbeafe;
  border-color: #bfdbfe;
}
.cp-step:nth-child(3) .cp-step-num {
  color: #059669;
  background: #d1fae5;
  border-color: #a7f3d0;
}
.cp-step:nth-child(4) .cp-step-num {
  color: #7c3aed;
  background: #ede9fe;
  border-color: #ddd6fe;
}

.cp-step-body { min-width: 0; }
.cp-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cp-step-head strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--cp-text);
}
.cp-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.cp-step:nth-child(2) .cp-pill { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.cp-step:nth-child(3) .cp-pill { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.cp-step:nth-child(4) .cp-pill { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }

.cp-step-body p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.65;
  color: #3b4056;
}

/* Hộp thông tin ứng trước (TikTok / Shopee) & Thời gian giữ */
.cp-subnote {
  margin-top: 12px;
  padding: 13px 16px;
  font-size: .88rem;
  line-height: 1.6;
  color: #33384e;
  background: linear-gradient(135deg, #fff8f5, #fff3f6);
  border: 1px solid rgba(238, 77, 45, .22);
  border-radius: 13px;
}
.cp-subnote p {
  margin: 0 0 6px;
  font-size: .88rem !important;
}
.cp-subnote p:last-child { margin-bottom: 0; }
.cp-subnote b { color: var(--cp-orange); }

/* ---------- KHỐI KHÔNG ĐƯỢC HOÀN TIỀN (CẢNH BÁO) ---------- */
.cp-card.is-danger {
  background: linear-gradient(135deg, #fff6f6, #fffaf8);
  border-color: #ffd6d6;
}
.cp-list.is-danger li {
  background: rgba(255, 255, 255, .9);
  border-color: #ffe0e0;
}
.cp-list.is-danger li:hover {
  border-color: #f43f5e;
}
.cp-list.is-danger li::before {
  background-color: rgba(225, 29, 72, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

/* ---------- CTA CUỐI TRANG ---------- */
.cp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 28px;
  color: #fff;
  background:
    radial-gradient(50% 120% at 95% 10%, rgba(254, 44, 85, .52), transparent 65%),
    radial-gradient(50% 120% at 5% 90%, rgba(37, 244, 238, .28), transparent 65%),
    linear-gradient(160deg, var(--cp-ink), var(--cp-ink-2));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 48px -24px rgba(7, 7, 13, .85);
}
.cp-cta h3 { margin: 0 0 5px; font-size: 1.15rem; font-weight: 800; color: #fff; }
.cp-cta p  { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.cp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--cp-orange), var(--cp-pink) 60%, var(--cp-vio));
  border-radius: 13px;
  box-shadow: 0 12px 24px -8px rgba(254, 44, 85, .75);
  transition: transform .25s var(--cp-ease), box-shadow .25s var(--cp-ease);
}
.cp-cta-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(238, 77, 45, .85);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .cp-highlights {
    grid-template-columns: minmax(0, 1fr);
  }
  .cp-step {
    padding: 16px;
    gap: 12px;
  }
  .cp-cta-btn {
    width: 100%;
  }
}
/* ==========================================================================
   TRANG CHÍNH SÁCH BẢO MẬT (tiền tố pv-)
   ========================================================================== */
.pv-page {
  --pv-ink:    #07070d;
  --pv-ink-2:  #16111f;
  --pv-cyan:   #25f4ee;
  --pv-pink:   #fe2c55;
  --pv-orange: #ee4d2d;
  --pv-vio:    #7b3fe4;
  --pv-text:   #1a1d2e;
  --pv-muted:  #646982;
  --pv-line:   #e6e8f0;
  --pv-bg:     #f5f6fa;
  --pv-ease:   cubic-bezier(.22, 1, .36, 1);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color: var(--pv-text);
  background: var(--pv-bg);
  padding-bottom: 72px;
  overflow-x: clip;
}
.pv-page *, .pv-page *::before, .pv-page *::after { box-sizing: border-box; }

/* ---------- HERO BANNER ---------- */
.pv-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(44px, 6vw, 76px) 0 clamp(68px, 8vw, 100px);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(48% 85% at 10% 15%, rgba(37, 244, 238, .32), transparent 62%),
    radial-gradient(52% 85% at 90% 12%, rgba(254, 44, 85, .50), transparent 62%),
    radial-gradient(70% 95% at 52% 115%, rgba(238, 77, 45, .75), transparent 62%),
    linear-gradient(165deg, var(--pv-ink), var(--pv-ink-2));
}
.pv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
}
.pv-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 40px;
  background: var(--pv-bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.pv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.pv-badge svg { width: 15px; height: 15px; color: var(--pv-cyan); }

.pv-hero h1 {
  margin: 0 auto 12px;
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #fff !important;
}
.pv-hero h1 span {
  background: linear-gradient(100deg, #ff9d3d, var(--pv-pink) 48%, var(--pv-cyan));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.pv-hero p {
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(.92rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
.pv-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  padding: 8px 16px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .9);
  background: rgba(7, 7, 13, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
}
.pv-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pv-meta svg { width: 15px; height: 15px; color: var(--pv-cyan); }

/* ---------- BỐ CỤC 2 CỘT ---------- */
.pv-layout {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ---------- MỤC LỤC BÊN TRÁI (STICKY) ---------- */
.pv-toc {
  position: sticky;
  top: 88px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--pv-line);
  border-radius: 20px;
  padding: 18px 14px;
  box-shadow: 0 18px 40px -24px rgba(10, 10, 20, .12);
}
.pv-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 12px;
  margin-bottom: 10px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pv-muted);
  border-bottom: 1px solid var(--pv-line);
}
.pv-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.pv-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--pv-muted);
  text-decoration: none;
  border-radius: 11px;
  transition: all .22s var(--pv-ease);
}
.pv-toc-list a .num {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--pv-muted);
  background: #f1f3f9;
  border-radius: 7px;
  transition: all .22s var(--pv-ease);
}
.pv-toc-list a .num.is-ai {
  color: var(--pv-vio);
  background: #f3e8ff;
}
.pv-toc-list a:hover {
  color: var(--pv-text);
  background: #f7f8fc;
}
.pv-toc-list a.is-active {
  color: var(--pv-orange);
  background: linear-gradient(135deg, #fff5f2, #fff0f4);
  font-weight: 700;
}
.pv-toc-list a.is-active .num {
  color: #fff;
  background: linear-gradient(135deg, var(--pv-orange), var(--pv-pink));
  box-shadow: 0 4px 10px -2px rgba(254, 44, 85, .5);
}

/* ---------- CỘT NỘI DUNG PHẢI ---------- */
.pv-content {
  min-width: 0;
  display: grid;
  gap: 20px;
}

/* Thông báo tuân thủ Nghị định 356/2025/NĐ-CP */
.pv-decree {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  color: #fff;
  background:
    radial-gradient(50% 130% at 95% 15%, rgba(37, 244, 238, .28), transparent 65%),
    radial-gradient(50% 130% at 5% 85%, rgba(254, 44, 85, .36), transparent 65%),
    linear-gradient(160deg, var(--pv-ink), var(--pv-ink-2));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  box-shadow: 0 22px 45px -24px rgba(7, 7, 13, .75);
}
.pv-decree-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--pv-cyan);
  background: rgba(37, 244, 238, .12);
  border: 1px solid rgba(37, 244, 238, .3);
  box-shadow: 0 0 20px -4px rgba(37, 244, 238, .4);
}
.pv-decree-body {
  min-width: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}
.pv-decree-body strong {
  color: #ffe169;
  font-weight: 800;
}

/* Thẻ chứa các mục chính sách */
.pv-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--pv-line);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 38px);
  box-shadow: 0 20px 50px -28px rgba(10, 10, 20, .12);
}

.pv-sec {
  scroll-margin-top: 96px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px dashed var(--pv-line);
}
.pv-sec:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.pv-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pv-sec-num {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--pv-orange), var(--pv-pink));
  border-radius: 11px;
  box-shadow: 0 10px 20px -8px rgba(254, 44, 85, .6);
}
.pv-sec h2 {
  margin: 0;
  font-size: clamp(1.14rem, 2.2vw, 1.36rem);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--pv-text);
}

.pv-sec p {
  margin: 0 0 12px;
  font-size: .95rem;
  line-height: 1.72;
  color: #3b4056;
  overflow-wrap: break-word;
}
.pv-sec p:last-child { margin-bottom: 0; }

/* Danh sách ul/li tùy biến */
.pv-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pv-list li {
  position: relative;
  padding: 12px 16px 12px 42px;
  font-size: .94rem;
  line-height: 1.62;
  color: #33384e;
  background: #f8f9fc;
  border: 1px solid #eceef5;
  border-radius: 14px;
  overflow-wrap: break-word;
  transition: border-color .2s, background .2s;
}
.pv-list li:hover {
  background: #fff;
  border-color: rgba(238, 77, 45, .3);
}
.pv-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Riêng khối Chat hỗ trợ AI (#s-ai) */
.pv-sec.is-ai-box {
  padding: 22px;
  background: linear-gradient(135deg, #f6f3ff, #eefcfd);
  border: 1px solid rgba(123, 63, 228, .24);
  border-radius: 20px;
}
.pv-sec.is-ai-box .pv-sec-num {
  background: linear-gradient(135deg, var(--pv-vio), #06b6d4);
  box-shadow: 0 10px 20px -8px rgba(123, 63, 228, .55);
}

/* Lưới 6 Quyền người dùng (#s5) */
.pv-rights {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pv-rights li {
  padding: 13px 15px;
  font-size: .92rem;
  line-height: 1.55;
  color: #33384e;
  background: #f8f9fc;
  border: 1px solid #eceef5;
  border-radius: 14px;
}
.pv-rights li strong {
  display: block;
  margin-bottom: 3px;
  color: var(--pv-orange);
  font-size: .95rem;
}

/* ---------- HỘP LIÊN HỆ CUỐI TRANG ---------- */
.pv-contact-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 26px;
  color: #fff;
  background:
    radial-gradient(50% 120% at 95% 10%, rgba(254, 44, 85, .5), transparent 65%),
    radial-gradient(50% 120% at 5% 90%, rgba(37, 244, 238, .28), transparent 65%),
    linear-gradient(160deg, var(--pv-ink), var(--pv-ink-2));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 48px -24px rgba(7, 7, 13, .85);
}
.pv-contact-box h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.pv-contact-box p {
  margin: 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .78);
}
.pv-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--pv-orange), var(--pv-pink) 60%, var(--pv-vio));
  border-radius: 13px;
  box-shadow: 0 12px 24px -8px rgba(254, 44, 85, .7);
  transition: transform .25s var(--pv-ease), box-shadow .25s var(--pv-ease);
}
.pv-contact-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(238, 77, 45, .85);
}

/* ---------- RESPONSIVE (CHỐNG TRÀN KHUNG TRÊN MOBILE) ---------- */
@media (max-width: 960px) {
  .pv-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .pv-toc {
    position: static;
    padding: 16px;
  }
  .pv-toc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .pv-toc-list a {
    padding: 8px 10px;
    font-size: .82rem;
    border: 1px solid var(--pv-line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 600px) {
  .pv-toc-list,
  .pv-rights {
    grid-template-columns: minmax(0, 1fr);
  }
  .pv-decree {
    flex-direction: column;
    align-items: flex-start;
  }
  .pv-contact-btn {
    width: 100%;
  }
}
/* ==========================================================================
   TRANG CÁCH HOẠT ĐỘNG (tiền tố hw-)
   ========================================================================== */
.hw-page {
  --hw-ink:    #07070d;
  --hw-ink-2:  #16111f;
  --hw-cyan:   #25f4ee;
  --hw-pink:   #fe2c55;
  --hw-orange: #ee4d2d;
  --hw-vio:    #7b3fe4;
  --hw-gold1:  #ffe169;
  --hw-gold2:  #f5a800;
  --hw-text:   #1a1d2e;
  --hw-muted:  #646982;
  --hw-line:   #e6e8f0;
  --hw-bg:     #f5f6fa;
  --hw-ease:   cubic-bezier(.22, 1, .36, 1);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color: var(--hw-text);
  background: var(--hw-bg);
  padding-bottom: 72px;
  overflow-x: clip;
}
.hw-page *, .hw-page *::before, .hw-page *::after { box-sizing: border-box; }

/* ---------- HERO BANNER ---------- */
.hw-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 7vw, 84px) 0 clamp(76px, 9vw, 112px);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(48% 85% at 10% 15%, rgba(37, 244, 238, .34), transparent 62%),
    radial-gradient(52% 85% at 90% 12%, rgba(254, 44, 85, .52), transparent 62%),
    radial-gradient(70% 95% at 52% 115%, rgba(238, 77, 45, .78), transparent 62%),
    linear-gradient(165deg, var(--hw-ink), var(--hw-ink-2));
}
.hw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
}
.hw-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 42px;
  background: var(--hw-bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hw-badge svg { width: 15px; height: 15px; color: var(--hw-cyan); }

.hw-hero h1 {
  margin: 0 auto 12px;
  font-size: clamp(1.95rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #fff !important;
}
.hw-hero h1 span {
  background: linear-gradient(100deg, #ff9d3d, var(--hw-pink) 48%, var(--hw-cyan));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hw-hero p {
  margin: 0 auto;
  max-width: 54ch;
  font-size: clamp(.95rem, 2.1vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .84);
}

.hw-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hw-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  background: rgba(7, 7, 13, .45);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
}
.hw-pill svg { width: 15px; height: 15px; color: var(--hw-gold1); }

/* ---------- KHUNG CHÍNH ---------- */
.hw-wrap {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: -34px auto 0;
  padding: 0 20px;
}

/* ---------- 3 BƯỚC HOẠT ĐỘNG ---------- */
.hw-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}
.hw-steps::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c9ccdb 0 6px, transparent 6px 12px);
  z-index: -1;
}

.hw-step {
  position: relative;
  min-width: 0;
  padding: 28px 24px 30px;
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: 24px;
  box-shadow: 0 22px 48px -26px rgba(10, 10, 20, .14);
  transition: transform .35s var(--hw-ease), box-shadow .35s var(--hw-ease), border-color .25s;
}
.hw-step:hover {
  transform: translateY(-6px);
  border-color: rgba(254, 44, 85, .28);
  box-shadow: 0 28px 55px -24px rgba(254, 44, 85, .2);
}

.hw-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hw-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #0cc9c4, #2563eb);
  box-shadow: 0 10px 20px -8px rgba(12, 201, 196, .7);
}
.hw-step:nth-child(2) .hw-num {
  background: linear-gradient(135deg, #ff8a00, var(--hw-orange));
  box-shadow: 0 10px 20px -8px rgba(238, 77, 45, .7);
}
.hw-step:nth-child(3) .hw-num {
  background: linear-gradient(135deg, var(--hw-pink), var(--hw-vio));
  box-shadow: 0 10px 20px -8px rgba(254, 44, 85, .7);
}

.hw-step-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #0aa89e;
  background: #ebfffe;
  border: 1px solid rgba(12, 201, 196, .25);
  transition: transform .35s var(--hw-ease);
}
.hw-step:nth-child(2) .hw-step-ic {
  color: var(--hw-orange);
  background: #fff3ef;
  border-color: rgba(238, 77, 45, .22);
}
.hw-step:nth-child(3) .hw-step-ic {
  color: var(--hw-pink);
  background: #fff0f4;
  border-color: rgba(254, 44, 85, .22);
}
.hw-step:hover .hw-step-ic { transform: scale(1.1) rotate(-6deg); }

.hw-step h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--hw-text);
}
.hw-step p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.65;
  color: var(--hw-muted);
}

/* ---------- FAQ (CÂU HỎI THƯỜNG GẶP) ---------- */
.hw-faq-sec {
  max-width: 860px;
  margin: 0 auto 64px;
}
.hw-faq-head {
  text-align: center;
  margin-bottom: 28px;
}
.hw-faq-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 8px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hw-orange);
  background: rgba(238, 77, 45, .1);
  border-radius: 999px;
}
.hw-faq-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--hw-text);
}
.hw-faq-head p {
  margin: 0;
  font-size: .95rem;
  color: var(--hw-muted);
}

.hw-faq {
  display: grid;
  gap: 12px;
}

.hw-q {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .25s var(--hw-ease), box-shadow .25s var(--hw-ease);
}
.hw-q:hover {
  border-color: rgba(238, 77, 45, .35);
}
.hw-q[open] {
  border-color: rgba(254, 44, 85, .45);
  box-shadow: 0 18px 42px -24px rgba(254, 44, 85, .28);
}

.hw-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--hw-text);
  user-select: none;
}
.hw-q summary::-webkit-details-marker { display: none; }

.hw-q-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hw-q-idx {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--hw-muted);
  background: #f1f3f9;
  border-radius: 8px;
  transition: all .25s var(--hw-ease);
}
.hw-q[open] .hw-q-idx {
  color: #fff;
  background: linear-gradient(135deg, var(--hw-orange), var(--hw-pink));
}

/* Nút dấu + xoay thành x khi mở */
.hw-q-toggle {
  flex: none;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f5f9;
  transition: background .25s, transform .3s var(--hw-ease);
}
.hw-q-toggle::before,
.hw-q-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--hw-text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: background .25s;
}
.hw-q-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.hw-q[open] .hw-q-toggle {
  background: rgba(254, 44, 85, .12);
  transform: rotate(45deg);
}
.hw-q[open] .hw-q-toggle::before,
.hw-q[open] .hw-q-toggle::after {
  background: var(--hw-pink);
}

.hw-a {
  padding: 0 22px 20px 62px;
  font-size: .95rem;
  color: #3b4056;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.hw-a p { margin: 0 0 10px; }
.hw-a p:last-child { margin-bottom: 0; }

.hw-subnote {
  margin: 10px 0;
  padding: 12px 15px;
  font-size: .88rem;
  line-height: 1.6;
  background: linear-gradient(135deg, #fff8f5, #fff2f5);
  border: 1px solid rgba(238, 77, 45, .22);
  border-radius: 13px;
}
.hw-subnote b { color: var(--hw-orange); }

.hw-hl {
  display: inline-block;
  padding: 1px 8px;
  font-weight: 700;
  color: var(--hw-orange);
  background: rgba(238, 77, 45, .1);
  border-radius: 6px;
}

/* ---------- DẢI CTA CUỐI TRANG (DARK MESH + NGÔI SAO) ---------- */
.hw-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(32px, 5vw, 52px) clamp(22px, 4vw, 44px);
  text-align: center;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(48% 95% at 8% 12%, rgba(37, 244, 238, .34), transparent 62%),
    radial-gradient(52% 95% at 92% 10%, rgba(254, 44, 85, .55), transparent 62%),
    radial-gradient(70% 110% at 55% 118%, rgba(238, 77, 45, .80), transparent 62%),
    linear-gradient(165deg, var(--hw-ink), var(--hw-ink-2));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 34px 65px -30px rgba(7, 7, 13, .9);
}
.hw-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath fill='rgba(255,255,255,0.32)' d='M14 5 L15.6 11.4 L22 13 L15.6 14.6 L14 21 L12.4 14.6 L6 13 L12.4 11.4 Z'/%3E%3Cpath fill='rgba(37,244,238,0.36)' d='M42 32 L43.1 35.9 L47 37 L43.1 38.1 L42 42 L40.9 38.1 L37 37 L40.9 35.9 Z'/%3E%3Cpath fill='rgba(255,225,105,0.4)' d='M22 38 L22.8 40.7 L25.5 41.5 L22.8 42.3 L22 45 L21.2 42.3 L18.5 41.5 L21.2 40.7 Z'/%3E%3Ccircle fill='rgba(255,255,255,0.22)' cx='44' cy='12' r='1.1'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}

.hw-cta h2 {
  margin: 0 auto 10px;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.hw-cta p {
  margin: 0 auto 24px;
  max-width: 48ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, .84);
}
.hw-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--hw-orange), var(--hw-pink) 60%, var(--hw-vio));
  color: #fff;
  font-size: .96rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 28px -10px rgba(254, 44, 85, .8);
  transition: transform .25s var(--hw-ease), box-shadow .25s var(--hw-ease);
}
.hw-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(238, 77, 45, .9);
}
.hw-btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background .25s, transform .25s var(--hw-ease);
}
.hw-btn-sec:hover {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .hw-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .hw-steps::before { display: none; }
}
@media (max-width: 560px) {
  .hw-q summary { padding: 16px; }
  .hw-a { padding: 0 16px 18px 16px; }
  .hw-btn, .hw-btn-sec { width: 100%; }
}
/* ==========================================================================
   CÔNG CỤ MIỄN PHÍ — Phiên bản Full-width sát Sidebar + Dark Mesh Gradient
   ========================================================================== */
.app .main, .app .content { min-width: 0; max-width: 100%; }

/* Thu gọn lề của .content để banner và khung công cụ trải rộng sát Sidebar */
.app .content {
  padding: clamp(14px, 1.8vw, 22px) clamp(14px, 2vw, 24px) 40px !important;
}

.ft-page {
  --ft-ink:    #07070d;
  --ft-ink-2:  #16111f;
  --ft-orange: #ee4d2d;
  --ft-pink:   #fe2c55;
  --ft-cyan:   #25f4ee;
  --ft-vio:    #7b3fe4;
  --ft-gold:   #ffe169;
  --ft-text:   #1a1d2e;
  --ft-muted:  #646982;
  --ft-line:   #e6e8f0;
  --ft-ease:   cubic-bezier(.22, 1, .36, 1);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  max-width: none; /* Mở rộng hết cỡ theo vùng content */
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ft-text);
}
.ft-page > * { min-width: 0; max-width: 100%; }
.ft-page *, .ft-page *::before, .ft-page *::after { box-sizing: border-box; }
.ft-page h2, .ft-page h3 { margin: 0; font-family: inherit; letter-spacing: -.015em; }
.ft-page p { margin: 0; }
.ft-page :focus-visible { outline: 3px solid rgba(37, 244, 238, .7); outline-offset: 2px; }
.ft-page .ft-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ft-page [hidden] { display: none !important; }

/* ---------- HERO BANNER (RỘNG SÁT SIDEBAR + DARK MESH + NGÔI SAO) ---------- */
.ft-page .ft-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 42px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  background:
    radial-gradient(48% 95% at 8% 12%, rgba(37, 244, 238, .32), transparent 62%),
    radial-gradient(52% 95% at 92% 10%, rgba(254, 44, 85, .52), transparent 62%),
    radial-gradient(70% 110% at 55% 118%, rgba(238, 77, 45, .75), transparent 62%),
    linear-gradient(165deg, var(--ft-ink), var(--ft-ink-2));
  background-size: 140% 140%, 140% 140%, 140% 140%, 100% 100%;
  animation: ftMesh 16s ease-in-out infinite alternate;
  box-shadow:
    0 32px 60px -30px rgba(7, 7, 13, .88),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
}


.ft-page .ft-hero-main { min-width: 0; }
.ft-page .ft-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.ft-page .ft-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ft-cyan);
  box-shadow: 0 0 8px var(--ft-cyan);
}

.ft-page .ft-hero h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
}
.ft-page .ft-hero h2 span {
  background: linear-gradient(100deg, #ff9d3d, var(--ft-pink) 48%, var(--ft-cyan));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.ft-page .ft-hero p {
  max-width: 62ch;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}

.ft-page .ft-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.ft-page .ft-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  background: rgba(7, 7, 13, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
}
.ft-page .ft-hero-badge svg { width: 14px; height: 14px; color: var(--ft-gold); }

/* Cụm biểu tượng trang trí bên phải Banner */
.ft-page .ft-hero-art {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ft-page .ft-hero-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: var(--ft-gold);
  rotate: -6deg;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 225, 105, .45);
  border-radius: 22px;
  box-shadow:
    0 20px 40px -16px rgba(0, 0, 0, .75),
    0 0 40px -8px rgba(254, 44, 85, .6);
  backdrop-filter: blur(10px);
  transition: transform .35s var(--ft-ease);
}
.ft-page .ft-hero:hover .ft-hero-icon { transform: scale(1.06) rotate(0deg); }

/* ---------- THANH GHI CHÚ BẢO MẬT ---------- */
.ft-page .ft-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.55;
  color: #33384e;
  background: linear-gradient(90deg, #fff5f2, #ffffff 65%);
  border: 1px solid rgba(238, 77, 45, .22);
  border-left: 4px solid var(--ft-orange);
  border-radius: 16px;
  box-shadow: 0 10px 24px -18px rgba(238, 77, 45, .25);
}
.ft-page .ft-info > svg { flex: none; color: var(--ft-orange); }

/* ---------- BỐ CỤC 2 CỘT ---------- */
.ft-page .ft-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.ft-page .ft-layout > * { min-width: 0; }

.ft-page .ft-panel {
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 24px;
  padding: clamp(20px, 2.4vw, 26px);
  box-shadow: 0 22px 48px -32px rgba(15, 18, 40, .22);
}
.ft-page .ft-overline {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--ft-orange), var(--ft-pink));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- CỘT TRÁI: THƯ VIỆN CÔNG CỤ ---------- */
.ft-page .ft-library {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-height, 72px) + 16px);
}
.ft-page .ft-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ft-line);
}
.ft-page .ft-panel-heading h2 { margin-top: 2px; font-size: 1.2rem; font-weight: 800; }
.ft-page .ft-count {
  flex: none;
  padding: 5px 12px;
  font-size: .76rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--ft-orange), var(--ft-pink));
  border-radius: 999px;
  box-shadow: 0 8px 16px -6px rgba(254, 44, 85, .55);
}

.ft-page .ft-search { position: relative; display: flex; align-items: center; }
.ft-page .ft-search svg { position: absolute; left: 14px; color: var(--ft-muted); pointer-events: none; }
.ft-page .ft-search input,
.ft-page .ft-category-select,
.ft-page .ft-fields input, .ft-page .ft-fields select, .ft-page .ft-fields textarea,
.ft-page #ftAdvanced input, .ft-page #ftAdvanced select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: .94rem;
  color: var(--ft-text);
  background: #f8f9fc;
  border: 1.5px solid #e2e5f0;
  border-radius: 14px;
  transition: border-color .22s, box-shadow .22s, background .22s;
}
.ft-page .ft-search input { padding-left: 42px; }
.ft-page .ft-fields textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.ft-page .ft-search input:focus, .ft-page .ft-category-select:focus,
.ft-page .ft-fields input:focus, .ft-page .ft-fields select:focus, .ft-page .ft-fields textarea:focus,
.ft-page #ftAdvanced input:focus, .ft-page #ftAdvanced select:focus {
  outline: 0;
  background: #fff;
  border-color: var(--ft-pink);
  box-shadow: 0 0 0 4px rgba(254, 44, 85, .12);
}
.ft-page .ft-filter-label { margin-bottom: -8px; font-size: .8rem; font-weight: 700; color: var(--ft-muted); }
.ft-page .ft-list-hint { font-size: .78rem; color: var(--ft-muted); }

/* Danh sách thẻ công cụ (Đã fix chữ sát viền & dính thanh cuộn) */
.ft-page .ft-cards {
  display: grid;
  gap: 10px;
  max-height: min(540px, 60vh);
  overflow-y: auto;
  padding: 4px 8px 14px 4px !important; /* Tạo khoảng trống với viền & thanh cuộn */
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 77, 45, .4) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
}
.ft-page .ft-cards::-webkit-scrollbar { width: 5px; }
.ft-page .ft-cards::-webkit-scrollbar-thumb { background: rgba(238, 77, 45, .4); border-radius: 5px; }

.ft-page .ft-cards > * {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100%;
  min-height: 74px !important;
  padding: 14px 16px !important; /* Ép khoảng cách trên/dưới để chữ không chạm viền */
  margin: 0 !important;
  text-align: left;
  font: inherit;
  color: var(--ft-text);
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--ft-line);
  border-radius: 16px !important;
  transition: border-color .22s, background .22s, box-shadow .25s var(--ft-ease), translate .22s var(--ft-ease);
}
.ft-page .ft-cards > * svg { flex: none; color: var(--ft-orange); }
.ft-page .ft-cards > * strong, .ft-page .ft-cards > * b, .ft-page .ft-cards > * h3 {
  display: block;
  margin: 0 0 4px !important;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.35;
}
.ft-page .ft-cards > * small, .ft-page .ft-cards > * p, .ft-page .ft-cards > * em {
  display: block;
  margin: 0 !important;
  font-size: .8rem;
  font-style: normal;
  line-height: 1.45;
  color: var(--ft-muted);
}
.ft-page .ft-cards > .is-active, .ft-page .ft-cards > .active, .ft-page .ft-cards > .selected,
.ft-page .ft-cards > [aria-pressed="true"], .ft-page .ft-cards > [aria-selected="true"], .ft-page .ft-cards > [aria-current="true"] {
  background: linear-gradient(100deg, #fff5f2, #fff0f4) !important;
  border-color: var(--ft-pink) !important;
  box-shadow: 0 12px 24px -14px rgba(254, 44, 85, .55);
}
@media (hover: hover) and (pointer: fine) {
  .ft-page .ft-cards > *:hover {
    border-color: rgba(238, 77, 45, .5);
    background: #fffaf8;
    translate: 2px 0;
  }
}
.ft-page .ft-no-results {
  padding: 18px;
  text-align: center;
  font-size: .88rem;
  color: var(--ft-muted);
  background: #fafbfd;
  border: 1.5px dashed #d9dcea;
  border-radius: 14px;
}

/* ---------- CỘT PHẢI: KHU LÀM VIỆC ---------- */
.ft-page .ft-workspace {
  display: grid;
  gap: 16px;
  align-content: start;
}
.ft-page .ft-ws-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ft-line);
}
.ft-page .ft-ws-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 800;
}
.ft-page .ft-tool-desc { font-size: .93rem; line-height: 1.6; color: var(--ft-muted); }

.ft-page #ftForm { display: grid; gap: 16px; }
.ft-page .ft-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.ft-page .ft-fields > *, .ft-page .ft-fields label {
  display: grid;
  gap: 7px;
  align-content: start;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ft-text);
}
.ft-page .ft-fields small, .ft-page .ft-fields .hint { font-size: .78rem; font-weight: 400; color: var(--ft-muted); }
.ft-page #ftAdvanced:empty { display: none; }
.ft-page #ftAdvanced details { padding: 12px 14px; background: #fafbfd; border: 1.5px dashed #d9dcea; border-radius: 14px; }
.ft-page #ftAdvanced summary { cursor: pointer; font-size: .86rem; font-weight: 700; color: var(--ft-orange); }
.ft-page .ft-hint { font-size: .8rem; line-height: 1.55; color: var(--ft-muted); }
.ft-page .ft-hint:empty { display: none; }

/* Nút bấm Tra cứu ngay */
.ft-page .ft-submit {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--ft-orange), var(--ft-pink) 58%, var(--ft-vio));
  background-size: 180% 100%;
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 14px 28px -10px rgba(254, 44, 85, .8),
    0 0 0 1px rgba(255, 255, 255, .2) inset;
  transition: translate .3s var(--ft-ease), box-shadow .3s var(--ft-ease), background-position .5s var(--ft-ease);
}
.ft-page .ft-submit::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 36%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-160%) skewX(-20deg);
  animation: ftShine 3.6s ease-in-out infinite;
}
@keyframes ftShine { 0%, 55% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(420%) skewX(-20deg); } }
@keyframes ftMesh {
  from { background-position: 0 0, 100% 0, 50% 100%, 0 0; }
  to   { background-position: 100% 60%, 0 40%, 40% 70%, 0 0; }
}
.ft-page .ft-submit:disabled { opacity: .65; cursor: progress; }
.ft-page .ft-submit:disabled::after { animation: none; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .ft-page .ft-submit:not(:disabled):hover {
    translate: 0 -2px;
    background-position: 100% 0;
    box-shadow:
      0 18px 32px -10px rgba(238, 77, 45, .9),
      0 0 0 1px rgba(255, 255, 255, .3) inset;
  }
}

/* Thông báo trạng thái */
.ft-page .ft-message {
  padding: 12px 16px;
  font-size: .88rem;
  line-height: 1.6;
  color: #1d6aa5;
  background: #eef8ff;
  border: 1px solid rgba(33, 114, 173, .22);
  border-left: 4px solid #2172ad;
  border-radius: 14px;
}
.ft-page .ft-message:empty { display: none; }
.ft-page .ft-message.is-error, .ft-page .ft-message.error, .ft-page .ft-message.is-danger, .ft-page .ft-message[data-type="error"] {
  color: #a1303b; background: #fff0f3; border-color: rgba(254, 44, 85, .22); border-left-color: var(--ft-pink);
}
.ft-page .ft-message.is-success, .ft-page .ft-message.success, .ft-page .ft-message[data-type="success"] {
  color: #126448; background: #eefaf3; border-color: rgba(18, 128, 74, .22); border-left-color: #12804a;
}
.ft-page .ft-message.is-warning, .ft-page .ft-message.warning, .ft-page .ft-message[data-type="warning"] {
  color: #8a4a0a; background: #fff7f3; border-color: rgba(238, 77, 45, .22); border-left-color: var(--ft-orange);
}

/* Khối kết quả */
.ft-page .ft-result {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(160deg, #fff, #fff7f4);
  border: 1px solid #f6e3dc;
  border-radius: 20px;
}
.ft-page .ft-result-heading h3 { margin-top: 2px; font-size: 1.12rem; font-weight: 800; }
.ft-page #ftResultContent { display: grid; gap: 12px; min-width: 0; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.6; }
.ft-page #ftResultContent img, .ft-page #ftResultContent video { max-width: 100%; height: auto; border-radius: 14px; }
.ft-page #ftResultContent a { font-weight: 700; color: var(--ft-orange); }
.ft-page #ftResultContent dl { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 10px 14px; margin: 0; }
.ft-page #ftResultContent dt { font-size: .82rem; color: var(--ft-muted); }
.ft-page #ftResultContent dd { margin: 0; font-weight: 600; }
.ft-page #ftResultContent table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.ft-page #ftResultContent th, .ft-page #ftResultContent td { padding: 10px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--ft-line); }
.ft-page #ftResultContent th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ft-muted); background: #fafbfd; }
.ft-page #ftResultContent pre, .ft-page #ftResultContent code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; }
.ft-page #ftResultContent pre { padding: 12px 14px; overflow-x: auto; background: #0c0c14; color: #e9eaf2; border-radius: 12px; }
.ft-page .ft-footnote { font-size: .78rem; line-height: 1.55; color: var(--ft-muted); }

/* Trạng thái chờ tra cứu */
.ft-page .ft-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fafbfd, #f4f6fb);
  border: 1.5px dashed #d5d9e8;
  border-radius: 18px;
}
.ft-page .ft-empty > span {
  box-sizing: content-box;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 15px;
  color: var(--ft-orange);
  background: linear-gradient(135deg, #fff0e8, #ffe4ec);
  border: 1px solid rgba(238, 77, 45, .2);
  border-radius: 20px;
  box-shadow: 0 10px 20px -10px rgba(238, 77, 45, .4);
}
.ft-page .ft-empty p { max-width: 36ch; font-size: .88rem; line-height: 1.6; color: var(--ft-muted); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .ft-page .ft-layout { grid-template-columns: minmax(0, 1fr); }
  .ft-page .ft-library { position: static; }
  .ft-page .ft-cards { max-height: 340px; }
}
@media (max-width: 640px) {
  .ft-page { gap: 14px; }
  .ft-page .ft-hero { padding: 20px 18px; border-radius: 20px; }
  .ft-page .ft-hero-icon { width: 56px; height: 56px; border-radius: 16px; }
  .ft-page .ft-panel { padding: 18px 16px; border-radius: 20px; }
  .ft-page .ft-submit { width: 100%; }
  .ft-page #ftResultContent dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ft-page #ftResultContent dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-page .ft-submit::after, .ft-page .ft-hero { animation: none; }
  .ft-page *, .ft-page *::before, .ft-page *::after { transition-duration: .01ms !important; }
}
  /* Cô lập toàn bộ CSS dưới #custom-page-loader để không ảnh hưởng phần còn lại của web */
  @property --cpl-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

  #custom-page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;                       /* luôn nằm trên cùng mọi thành phần */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    /* nền kính mờ: làm mờ nội dung trang bên dưới */
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
            backdrop-filter: blur(16px) saturate(140%);
    transition: opacity .5s ease, visibility .5s ease;
  }
  #custom-page-loader *, #custom-page-loader *::before, #custom-page-loader *::after { box-sizing: border-box; }

  /* ánh sáng màu TikTok × Shopee trôi nhẹ phía sau */
  #custom-page-loader::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    background:
      radial-gradient(38% 34% at 22% 22%, rgba(37, 244, 238, .30), transparent 70%),
      radial-gradient(40% 36% at 80% 24%, rgba(254, 44, 85, .26), transparent 70%),
      radial-gradient(46% 40% at 50% 92%, rgba(238, 77, 45, .30), transparent 70%);
    animation: cplDrift 7s ease-in-out infinite alternate;
  }

  #custom-page-loader.cpl-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  #custom-page-loader .cpl-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 24px;
    animation: cplRise .7s cubic-bezier(.22, 1, .36, 1) both;
  }

  /* ---------- thẻ kính chứa logo ---------- */
  #custom-page-loader .cpl-card {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 112px;
    min-height: 112px;
    padding: 22px;
    border: 2.5px solid transparent;
    border-radius: 32px;
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      conic-gradient(from var(--cpl-angle), #25f4ee, #fe2c55, #ee4d2d, #f2c879, #25f4ee) border-box;
    box-shadow:
      0 30px 60px -22px rgba(254, 44, 85, .45),
      0 12px 24px -12px rgba(12, 12, 20, .25);
    animation: cplSpin 3.2s linear infinite, cplFloat 3.6s ease-in-out infinite;
  }
  #custom-page-loader .cpl-card::after {          /* quầng sáng nhịp thở phía sau thẻ */
    content: "";
    position: absolute;
    inset: -14px;
    z-index: -1;
    border-radius: 42px;
    background: radial-gradient(closest-side, rgba(254, 44, 85, .28), transparent 72%);
    animation: cplPulse 2.4s ease-in-out infinite;
  }

  #custom-page-loader .cpl-logo {
    display: block;
    max-width: 150px;
    max-height: 96px;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
  }

  /* chữ dự phòng khi ảnh logo không tải được */
  #custom-page-loader .cpl-fallback {
    display: none;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ee4d2d, #fe2c55);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
  }
  #custom-page-loader .cpl-no-logo .cpl-logo { display: none; }
  #custom-page-loader .cpl-no-logo .cpl-fallback { display: block; }

  /* ---------- thanh tiến trình ---------- */
  #custom-page-loader .cpl-progress { width: 220px; }

  #custom-page-loader .cpl-progress-track {
    position: relative;
    height: 6px;
    overflow: hidden;
    background: rgba(12, 12, 20, .08);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(12, 12, 20, .08);
  }

  #custom-page-loader .cpl-progress-bar {
    position: relative;
    width: 0%;
    height: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, #25f4ee, #fe2c55 55%, #ee4d2d);
    box-shadow: 0 0 12px rgba(254, 44, 85, .55);
    transition: width .25s ease-out;
  }
  #custom-page-loader .cpl-progress-bar::after {   /* vệt sáng chạy trên thanh */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .65) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: cplShimmer 1.3s ease-in-out infinite;
  }

  #custom-page-loader .cpl-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7088;
  }
  #custom-page-loader .cpl-meta b {
    font-weight: 800;
    color: #1a1d2e;
    font-variant-numeric: tabular-nums;
  }

  /* ---------- chuyển động ---------- */
  @keyframes cplSpin    { to { --cpl-angle: 360deg; } }
  @keyframes cplFloat   { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
  @keyframes cplPulse   { 0%, 100% { opacity: .55; scale: .96; } 50% { opacity: 1; scale: 1.06; } }
  @keyframes cplShimmer { to { transform: translateX(100%); } }
  @keyframes cplDrift   { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.08); } }
  @keyframes cplRise    { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

  @media (max-width: 420px) {
    #custom-page-loader .cpl-progress { width: 190px; }
    #custom-page-loader .cpl-logo { max-width: 120px; max-height: 80px; }
  }

  /* người dùng bật "Giảm chuyển động": giữ thanh tiến trình, bỏ xoay / nổi / trôi */
  @media (prefers-reduced-motion: reduce) {
    #custom-page-loader::before,
    #custom-page-loader .cpl-card,
    #custom-page-loader .cpl-card::after,
    #custom-page-loader .cpl-content,
    #custom-page-loader .cpl-progress-bar::after { animation: none; }
  }