:root {
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Be Vietnam Pro', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Bảng màu Fresh Mint-Glass hài hòa cùng Logo K Tím-Xanh Dương */
  --bg-page: #e9fbf5;
  --bg-band: #dcf5ec;
  --bg-surface: #ffffff;
  --bg-muted: #f4fcf9;
  --logo-grad: linear-gradient(135deg, #8b5cf6 0%, #6d5dfc 48%, #1cc4df 100%);
  --logo-grad-hover: linear-gradient(135deg, #7c3aed 0%, #5b4cf0 48%, #0ea5c6 100%);
  --brand-violet: #6d5dfc;

  --ink: #14181f;
  --ink-secondary: rgba(20, 24, 31, 0.68);
  --ink-muted: rgba(20, 24, 31, 0.5);

  --hairline: rgba(28, 25, 23, 0.11);
  --hairline-strong: rgba(28, 25, 23, 0.18);

  --accent: #52d6fc;
  --accent-hover: #38bdf8;
  --accent-soft: #e0f7fe;

  /* Biến tương thích cho các trang tài khoản, nạp ví & quản trị */
  --brand: #0284c7;
  --brand-dark: #0369a1;
  --brand-hover: #075985;
  --brand-soft: #e0f2fe;
  --price-red: #1c1917;
  --zalo: #0068ff;
  --danger: #e11d48;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-ink: #92400e;

  --radius-card: 24px;
  --radius-md: 14px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.04);
  --shadow-card: 0 16px 36px -14px rgba(28, 25, 23, 0.12);
  --shadow-pill: 0 8px 32px rgba(28, 25, 23, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-synthesis: none;
  background-color: var(--bg-page);
  color: var(--ink);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
  font-synthesis: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--ink);
  position: relative;
}

.noise-overlay {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  z-index: 9999;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-main {
  flex: 1;
  position: relative;
  z-index: 1;
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: var(--accent-hover);
  z-index: 999;
  pointer-events: none;
}

.tg-mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   1. FLOATING GLASS PILL HEADER (CHUẨN TIKTOKGIARE.COM)
   ========================================================================== */
.floating-header-shell {
  position: sticky;
  top: 14px;
  z-index: 200;
  padding: 14px 16px 0;
  pointer-events: none;
}

.floating-pill-nav {
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  height: 60px;
  padding: 0 10px 0 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.glass-pill {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(28, 25, 23, 0.09);
  box-shadow: var(--shadow-pill);
}

.floating-pill-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(28, 25, 23, 0.11);
}

.pill-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pill-brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pill-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 840px) {
  .pill-nav-links {
    display: none;
  }
}

.pill-nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(28, 25, 23, 0.72);
  white-space: nowrap;
}

.pill-nav-link:hover,
.pill-nav-link.active {
  color: var(--ink);
  font-weight: 600;
}

.pill-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pill-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  color: rgba(28, 25, 23, 0.72);
  background: transparent;
  border: 1px solid transparent;
}

.pill-icon-btn:hover,
.pill-icon-btn.active {
  background: rgba(28, 25, 23, 0.06);
  color: var(--ink);
}

.pill-cta-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill-cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.pill-wallet-chip {
  height: 36px;
  padding: 0 6px 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
}

.pill-wallet-chip:hover,
.pill-wallet-chip.active {
  border-color: var(--accent-hover);
  background: #ffffff;
}

.pill-wallet-plus {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

/* Menu tài khoản gọn trong 1 Pill */
.user-dropdown {
  position: relative;
}

.user-dropdown-trigger {
  list-style: none;
  height: 38px;
  padding: 0 12px 0 5px;
  border-radius: var(--radius-pill);
  background: #1c1917;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 500;
  user-select: none;
}

.user-dropdown-trigger::-webkit-details-marker {
  display: none;
}

.user-dropdown-trigger::marker {
  content: '';
}

.user-avatar-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

@media (max-width: 560px) {
  .user-trigger-name {
    display: none;
  }
  .user-dropdown-trigger {
    padding-right: 8px;
  }
}

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 20px 44px -10px rgba(28, 25, 23, 0.18);
  z-index: 300;
}

.user-dropdown-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
}

.user-dropdown-head strong {
  font-size: 0.88rem;
  color: var(--ink);
}

.user-dropdown-head span {
  font-size: 0.75rem;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: var(--bg-muted);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--hairline);
  margin: 4px 6px;
}

.user-dropdown-logout {
  color: var(--danger);
}

/* ==========================================================================
   2. HERO & SECTION RHYTHM (TRANG CHỦ TIKTOKGIARE.COM)
   ========================================================================== */
.tg-hero {
  position: relative;
  padding: 76px 0 92px;
  text-align: center;
  overflow: hidden;
}

.hero-aura {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 96vw);
  height: 460px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(82, 214, 252, 0.24) 45%,
    rgba(204, 247, 234, 0) 75%
  );
  pointer-events: none;
  z-index: 0;
}

.tg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.tg-display-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.035em;
  margin: 0 auto 22px;
  color: var(--ink);
}

.tg-accent-word {
  color: #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 65%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tg-hero-lead {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-secondary);
}

.tg-hero-cta-wrap {
  display: flex;
  justify-content: center;
}

.tg-hero-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: 0 10px 26px -8px rgba(2, 132, 199, 0.32);
}

.tg-hero-pill-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.tg-section {
  padding: 76px 0;
  position: relative;
}

.tg-band {
  background-color: var(--bg-band);
}

/* Viền răng cưa tem thư tinh tế (Serrated Band) chuẩn tiktokgiare.com */
.serrate-y::before,
.serrate-y::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-size: 16px 8px;
  background-repeat: repeat-x;
  pointer-events: none;
}

.serrate-y::before {
  top: 0;
  background-image: radial-gradient(circle at 8px 0, var(--bg-page) 5px, transparent 5.5px);
}

.serrate-y::after {
  bottom: 0;
  background-image: radial-gradient(circle at 8px 8px, var(--bg-page) 5px, transparent 5.5px);
}

.tg-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tg-section-center-head {
  text-align: center;
  margin-bottom: 42px;
}

.tg-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.tg-serif-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

.tg-mono-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.55);
}

.tg-mono-all-link:hover {
  background: #ffffff;
  color: var(--ink);
}

/* ==========================================================================
   3. LƯỚI 4 CỘT & THẺ KÊNH DỌC 4:5 (CHUẨN TIKTOKGIARE.COM)
   ========================================================================== */
.tg-card-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 22px;
}

@media (min-width: 520px) {
  .tg-card-grid,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .tg-card-grid,
  .channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .tg-card-grid,
  .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tg-card {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.2s ease;
}

.tg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(28, 25, 23, 0.2);
}

/* Khung ảnh dọc 4:5 khớp tự nhiên với ảnh chụp màn hình điện thoại */
.tg-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: #f6f8f7;
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
  overflow: hidden;
}

.tg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.42s var(--ease-out);
}

.tg-card:hover .tg-card-img {
  transform: scale(1.03);
}

.tg-card-cat-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(28, 25, 23, 0.08);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-card-status-pin {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.tg-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tg-card-title {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-card-title a:hover {
  color: var(--brand);
}

.tg-card-handle-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.tg-card-handle {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-verified-seal {
  flex-shrink: 0;
}

.tg-mini-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.18);
  flex-shrink: 0;
}

.tg-card-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

.tg-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tg-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.tg-price-stack {
  display: flex;
  flex-direction: column;
}

.tg-price-caption {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.2;
}

.tg-price-serif {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin-top: 2px;
}

.tg-buy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tg-buy-pill:hover {
  background: var(--accent-hover);
}

/* ==========================================================================
   4. QUY TRÌNH 3 BƯỚC, CAM KẾT 4 TRỤ CỘT & BOTTOM CTA
   ========================================================================== */
.tg-three-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 768px) {
  .tg-three-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tg-four-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .tg-four-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tg-four-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tg-feature-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}

.tg-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.tg-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(28, 25, 23, 0.08);
}

.tg-feature-title {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}

.tg-feature-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.tg-bottom-cta {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 52px 28px;
  text-align: center;
  background: linear-gradient(135deg, #7dd3fc 0%, #52d6fc 55%, #38bdf8 100%);
  border: 1px solid rgba(28, 25, 23, 0.1);
  box-shadow: 0 20px 44px -16px rgba(2, 132, 199, 0.25);
}

.tg-bottom-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}

.tg-bottom-cta-sub {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 0.98rem;
  color: rgba(28, 25, 23, 0.76);
}

.tg-bottom-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tg-btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.tg-btn-ink:hover {
  background: #292524;
  transform: translateY(-1px);
}

.tg-btn-surface {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border: 1px solid rgba(28, 25, 23, 0.12);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.tg-btn-surface:hover {
  background: #ffffff;
}

/* ==========================================================================
   5. CATALOG PAGE (/channels) — PILL FILTER & SORT TOOLBAR
   ========================================================================== */
.tg-catalog-section {
  padding: 36px 0 72px;
}

.tg-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tg-catalog-count {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--hairline);
}

.tg-pill-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.tg-toolbar-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tg-pill-select {
  height: 40px;
  padding: 0 32px 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background-color: rgba(255, 255, 255, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.tg-pill-select:hover {
  background-color: #ffffff;
  border-color: var(--hairline-strong);
}

.tg-pill-toggle {
  height: 40px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}

.tg-pill-toggle:hover {
  background: #ffffff;
}

.tg-pill-toggle.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.tg-pill-reset {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.tg-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tg-sort-segment {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--hairline);
}

.tg-sort-item {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.tg-sort-item.active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(28, 25, 23, 0.08);
}

.tg-search-pill {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
}

.tg-search-pill:focus-within {
  background: #ffffff;
  border-color: var(--brand);
}

.tg-search-pill input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--ink);
  width: 175px;
}

.tg-empty-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 56px 24px;
  text-align: center;
}

/* ==========================================================================
   6. CHI TIẾT KÊNH (/channels/:slug) — GỌN SẠCH, ẢNH VỪA VẶN ĐIỆN THOẠI
   ========================================================================== */
.tg-detail-section {
  padding: 40px 0 76px;
}

.tg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.tg-back-link:hover {
  color: var(--ink);
}

.tg-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 880px) {
  .tg-detail-layout {
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 48px;
  }
}

.tg-detail-left {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

@media (min-width: 880px) {
  .tg-detail-left {
    position: sticky;
    top: 92px;
  }
}

.tg-phone-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.gallery-ambient-img {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(28px) saturate(1.08);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.tg-phone-stage #gallery-active-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.18s ease;
}

.tg-phone-stage #gallery-active-img.is-switching {
  opacity: 0.35;
}

.tg-zoom-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hairline);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-secondary);
  pointer-events: none;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gallery-nav-btn:hover {
  background: #ffffff;
  border-color: var(--ink);
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.tg-thumbs-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.gallery-thumb-btn {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 13px;
  overflow: hidden;
  border: 2px solid var(--hairline);
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  opacity: 0.72;
}

.gallery-thumb-btn.active,
.gallery-thumb-btn:hover {
  border-color: var(--ink);
  opacity: 1;
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tg-detail-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tg-detail-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tg-meta-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--hairline);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.tg-meta-pill.is-ok {
  background: #ffffff;
  color: #047857;
  border-color: rgba(4, 120, 87, 0.22);
}

.tg-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: -4px 0 0;
  color: var(--ink);
}

.tg-detail-handle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-top: -10px;
}

.tg-dot-sep {
  color: var(--ink-muted);
}

.tg-stat-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
}

.tg-stat-cell {
  background: #ffffff;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}

.tg-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.tg-stat-number {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-top: 4px;
}

.tg-stat-sub {
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.tg-purchase-card,
.tg-desc-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
}

.tg-purchase-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tg-detail-serif-price {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 4px;
}

.tg-buy-main-btn {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  border: none;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

.tg-buy-main-btn:hover {
  background: var(--accent-hover);
}

.tg-detail-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .tg-detail-sub-actions {
    grid-template-columns: 1fr;
  }
}

.tg-btn-outline-pill {
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tg-btn-outline-pill:hover {
  background: var(--bg-muted);
  border-color: var(--ink);
}

.tg-purchase-guarantees {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.81rem;
  color: var(--ink-secondary);
}

.tg-desc-body {
  margin: 0 0 14px;
  color: var(--ink-secondary);
  white-space: pre-line;
  line-height: 1.68;
  font-size: 0.92rem;
}

.tg-desc-meta {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   7. CÁC COMPONENT CHUNG (AUTH, DEPOSIT, ACCOUNT, ADMIN, BUTTONS, TABLES)
   ========================================================================== */
.section {
  padding: 36px 0 64px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.section-subtext {
  margin: 4px 0 0;
  color: var(--ink-secondary);
  font-size: 0.88rem;
}

.minimal-info-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.86rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  line-height: 1.3;
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: #292524;
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-accent:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-zalo {
  background: var(--zalo);
  color: #ffffff;
}

.btn-zalo:hover:not(:disabled) {
  background: #0056d6;
}

.btn-glass-light {
  background: #ffffff;
  color: var(--ink);
}

.btn-rose {
  background: var(--danger);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border-color: var(--hairline-strong);
  color: var(--ink);
}

.btn-outline:hover:not(:disabled) {
  background: var(--bg-muted);
  border-color: var(--ink);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.94rem;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.88rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(82, 214, 252, 0.25);
}

textarea.form-control {
  height: auto;
  min-height: 92px;
  padding: 10px 14px;
  resize: vertical;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Badges & Alerts */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 600;
}

.badge-available {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-sold {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.badge-reserved {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-demo {
  background: #f5f5f4;
  color: #44403c;
}

.badge-feature {
  background: var(--bg-muted);
  color: var(--ink-secondary);
}

.alert {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  border: 1px solid var(--hairline);
}

.alert-info {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0c4a6e;
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-ink);
}

.alert-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 38px;
}

.page-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-secondary);
}

.page-circle:hover {
  background: #ffffff;
  color: var(--ink);
}

.page-circle.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* Admin Portal & Tables */
.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 980px) {
  .admin-shell {
    grid-template-columns: 240px 1fr;
  }
}

.admin-sidebar {
  background: #1c1917;
  color: #fafaf9;
  border-radius: var(--radius-card);
  padding: 16px 12px;
  position: sticky;
  top: 92px;
}

.admin-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-tab-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  color: #d6d3d1;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-tab-btn.active {
  background: var(--accent);
  color: var(--ink);
}

.upload-dropzone {
  border: 2px dashed var(--hairline-strong);
  background: var(--bg-muted);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

.upload-dropzone:hover {
  border-color: var(--brand);
  background: #ffffff;
}

.media-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.media-preview-item {
  position: relative;
  width: 104px;
  height: 124px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: #ffffff;
}

.media-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.media-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.92);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
}

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

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.data-table th {
  background: #fafaf9;
  color: var(--ink-secondary);
  font-weight: 600;
  white-space: nowrap;
}

/* Wallet & Deposit */
.wallet-hero-banner {
  background: #1c1917;
  border-radius: var(--radius-card);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.deposit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.deposit-panel-card {
  padding: 28px 30px;
}

@media (min-width: 920px) {
  .deposit-grid {
    grid-template-columns: 1fr 1.08fr;
  }
}

.amount-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.amount-preset-btn {
  padding: 13px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: #fafaf9;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
}

.amount-preset-btn:hover {
  border-color: var(--ink);
  background: #ffffff;
}

.amount-preset-btn.active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.qr-frame-box {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.qr-frame-box img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.bank-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fafaf9;
  border-radius: 14px;
  font-size: 0.94rem;
}

.bank-detail-label {
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.bank-detail-val {
  color: var(--ink);
  text-align: right;
}

.payment-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
}

.payment-choice-card.is-recommended {
  border-color: var(--brand);
  background: #f0f9ff;
}

.stat-box-label {
  font-size: 0.74rem;
  color: var(--ink-muted);
  display: block;
}

.stat-box-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0 24px 48px -12px rgba(28, 25, 23, 0.22);
}

/* ==========================================================================
   8. EDITORIAL BOUTIQUE FOOTER & FLOATING DOCK
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding: 16px 0 28px;
  position: relative;
  z-index: 1;
}

.footer-boutique-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 38px 40px 24px;
  box-shadow: 0 12px 32px -16px rgba(28, 25, 23, 0.08);
}

@media (max-width: 640px) {
  .footer-boutique-card {
    padding: 28px 22px 20px;
    border-radius: 22px;
  }
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 820px) {
  .footer-top-grid {
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 24px;
  }
}

.footer-desc {
  margin: 0 0 16px;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 360px;
}

.footer-contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--hairline-strong);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}

.footer-pill-btn:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom-bar {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.79rem;
  color: var(--ink-muted);
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.floating-dock {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  font-weight: 600;
  font-size: 0.84rem;
}

.floating-btn-top {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.floating-btn-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-btn-zalo {
  height: 40px;
  padding: 0 15px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(28, 25, 23, 0.35);
}

.floating-btn-zalo:hover {
  background: #292524;
}

@media (max-width: 640px) {
  .floating-zalo-label { display: none; }
  .floating-btn-zalo { width: 42px; height: 42px; padding: 0; }
}

/* Hiệu ứng xuất hiện mượt mà khi cuộn */
.js-anim-ready .reveal-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 45ms);
}

.js-anim-ready .reveal-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-anim-ready .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   9. KHO TÀI KHOẢN & EMAIL GỐC BÀN GIAO TỰ ĐỘNG (VAULT AES-256-GCM)
   ========================================================================== */
.tg-mini-tag-auto {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  font-weight: 600;
}

.admin-vault-box {
  background: linear-gradient(180deg, #f0fdf9 0%, #ffffff 100%);
  border: 1.5px solid #6ee7b7;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.admin-vault-quickbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed #6ee7b7;
  border-radius: 12px;
}

.vault-delivery-card {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  border: 1.5px solid #34d399;
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px -16px rgba(4, 120, 87, 0.25);
}

.vault-cred-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .vault-cred-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.vault-cred-item {
  background: #ffffff;
  border: 1px solid rgba(4, 120, 87, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vault-cred-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.vault-cred-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-cred-mono {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

/* ==========================================================================
   10. BOUTIQUE EDITORIAL UI V2 & ENTERPRISE SECURITY CENTER
   ========================================================================== */

/* Mobile Navigation Button & Floating Drawer */
.pill-mobile-menu-btn {
  display: none;
  cursor: pointer;
}

@media (max-width: 840px) {
  .pill-mobile-menu-btn {
    display: grid;
  }
}

.mobile-nav-drawer {
  pointer-events: auto;
  max-width: 980px;
  margin: 10px auto 0;
  padding: 12px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 20px 42px -12px rgba(28, 25, 23, 0.16);
}

.mobile-nav-item {
  padding: 11px 16px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-item:hover {
  background: var(--bg-muted);
}

/* Spotlight Radial Glow on Cards */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(
    360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(82, 214, 252, 0.14),
    transparent 65%
  );
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Channel Card Auto-Delivery Frosted Pill */
.tg-card-auto-glass {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(5, 150, 105, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

/* Footer Security Architecture Strip */
.footer-security-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
}

.footer-sec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(242, 251, 248, 0.95);
  border: 1px solid rgba(5, 150, 105, 0.18);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #065f46;
}

/* Homepage Hero V2: Security Pill, Quick Search, Category Chips & Trust Ribbon */
.tg-hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.tg-hero-security-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(28, 25, 23, 0.1);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}

.live-dot-amber {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.24);
}

.tg-hero-search {
  max-width: 560px;
  margin: 26px auto 0;
  padding: 6px 6px 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(28, 25, 23, 0.12);
  box-shadow: 0 14px 32px -12px rgba(28, 25, 23, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tg-hero-search:focus-within {
  background: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 18px 36px -12px rgba(28, 25, 23, 0.16);
}

.tg-hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  color: var(--ink);
}

.tg-hero-search-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.tg-hero-search-btn:hover {
  background: #292524;
}

.tg-hero-cat-pills {
  max-width: 780px;
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tg-hero-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(28, 25, 23, 0.1);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.tg-hero-cat-chip:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.tg-hero-cat-chip.is-highlight {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
  font-weight: 600;
}

.tg-trust-ribbon {
  max-width: 880px;
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 720px) {
  .tg-trust-ribbon {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tg-trust-cell {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tg-trust-num {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

.tg-trust-label {
  font-size: 0.76rem;
  color: var(--ink-secondary);
  margin-top: 4px;
}

/* Step Cards Numbering */
.tg-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tg-step-head .tg-icon-circle {
  margin-bottom: 0;
}

.tg-step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: rgba(28, 25, 23, 0.24);
  line-height: 1;
}

/* Editorial FAQ Accordion */
.tg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-faq-item {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 0 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tg-faq-item[open] {
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-sm);
}

.tg-faq-question {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
}

.tg-faq-question::-webkit-details-marker {
  display: none;
}

.tg-faq-plus {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tg-faq-item[open] .tg-faq-plus {
  transform: rotate(45deg);
  background: var(--accent);
}

.tg-faq-answer {
  padding: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

/* Channel Detail 3-Stat Trio & Security Shield Box */
.tg-stat-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
}

@media (min-width: 560px) {
  .tg-stat-trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tg-security-shield-box {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(5, 150, 105, 0.22);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.tg-shield-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.tg-shield-row strong {
  color: var(--ink);
}

.tg-shield-icon {
  font-size: 1rem;
  line-height: 1.3;
  flex-shrink: 0;
}

/* Boutique Auth Card, Password Visibility & Live Strength Meter */
.auth-boutique-card {
  padding: 32px 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 48px -18px rgba(28, 25, 23, 0.14);
}

@media (max-width: 520px) {
  .auth-boutique-card {
    padding: 24px 20px;
  }
}

.auth-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.auth-card-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.15;
}

.auth-card-sub {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.auth-security-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .form-control {
  width: 100%;
  padding-right: 64px;
}

.password-eye-btn {
  position: absolute;
  right: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: #fafaf9;
  color: var(--ink-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.password-eye-btn:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--ink);
}

.password-meter {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.password-meter-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.password-meter-bars span {
  height: 4px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.1);
  transition: background-color 0.2s ease;
}

.password-meter[data-score="1"] .password-meter-bars span:nth-child(-n+1) {
  background: #e11d48;
}

.password-meter[data-score="2"] .password-meter-bars span:nth-child(-n+2) {
  background: #f59e0b;
}

.password-meter[data-score="3"] .password-meter-bars span:nth-child(-n+3) {
  background: #0284c7;
}

.password-meter[data-score="4"] .password-meter-bars span:nth-child(-n+4) {
  background: #10b981;
}

.password-meter-text {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* Account Dashboard KPI Grid & Vault Handover Checklist */
.account-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

@media (min-width: 720px) {
  .account-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.account-kpi-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.account-kpi-val {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 4px;
}

.vault-checklist-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed #34d399;
  border-radius: 14px;
  font-size: 0.83rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   UPGRADE v23: BRAND K LOGO HARMONY, FOLLOWER TIERS (0-1TR+) & FILTER DOCK
   ========================================================================== */
body {
  background-image:
    radial-gradient(900px 420px at 14% -4%, rgba(139, 92, 246, 0.11), transparent 65%),
    radial-gradient(860px 420px at 88% 0%, rgba(28, 196, 223, 0.14), transparent 64%);
  background-attachment: fixed;
}

.brand-k-logo-svg {
  border-radius: 10px;
  filter: drop-shadow(0 4px 10px rgba(109, 93, 252, 0.28));
  transition: transform 0.22s var(--ease-out), filter 0.22s var(--ease-out);
}

.pill-brand:hover .brand-k-logo-svg {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 6px 14px rgba(109, 93, 252, 0.38));
}

.pill-brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
}

.tg-accent-word {
  background: var(--logo-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-progress-bar {
  background: var(--logo-grad);
  height: 3px;
}

.floating-pill-nav {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px -10px rgba(20, 24, 31, 0.1), 0 0 0 1px rgba(109, 93, 252, 0.08);
}

.tg-btn-brand-grad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--logo-grad);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  box-shadow: 0 10px 24px -8px rgba(109, 93, 252, 0.48);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s ease;
}

.tg-btn-brand-grad:hover {
  background: var(--logo-grad-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(109, 93, 252, 0.56);
}

.tg-btn-brand-grad.tg-btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* Homepage Follower Milestones Grid */
.tg-home-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .tg-home-tiers-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
}

.tg-home-tier-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(20, 24, 31, 0.08);
  box-shadow: 0 4px 16px -8px rgba(20, 24, 31, 0.08);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tg-home-tier-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(109, 93, 252, 0.38);
  box-shadow: 0 14px 28px -12px rgba(109, 93, 252, 0.26);
}

.tg-home-tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tg-home-tier-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tg-home-tier-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(109, 93, 252, 0.08);
  color: #5b4cf0;
}

.tg-home-tier-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Catalog Head & Unified Frosted Filter Dock */
.tg-catalog-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tg-heading-tier-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--logo-grad);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  vertical-align: middle;
}

.tg-filter-dock {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: 24px;
  padding: 16px 18px;
  margin-bottom: 26px;
  box-shadow: 0 14px 36px -16px rgba(20, 24, 31, 0.1);
}

.tg-tier-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(20, 24, 31, 0.07);
}

.tg-tier-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-right: 4px;
}

.tg-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: #f5f9f8;
  border: 1px solid rgba(20, 24, 31, 0.09);
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: all 0.18s var(--ease-out);
}

.tg-tier-pill:hover {
  background: #ffffff;
  border-color: rgba(109, 93, 252, 0.45);
  color: #5b4cf0;
  transform: translateY(-1px);
}

.tg-tier-pill.active {
  background: var(--logo-grad);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(109, 93, 252, 0.55);
}

.tg-tier-cnt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(20, 24, 31, 0.07);
  color: var(--ink-secondary);
}

.tg-tier-pill.active .tg-tier-cnt {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.tg-filter-dock .tg-pill-toolbar {
  margin-bottom: 0;
  gap: 10px;
}

.tg-filter-dock .tg-pill-select,
.tg-filter-dock .tg-pill-toggle,
.tg-filter-dock .tg-search-pill {
  background-color: #f7fbfa;
  height: 38px;
}

.tg-filter-dock .tg-pill-toggle.active {
  background: var(--logo-grad);
  border-color: transparent;
  color: #ffffff;
}

.tg-filter-dock .tg-sort-segment {
  background: #f3f7f6;
}

/* Polished Empty State Card */
.tg-empty-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: 26px;
  padding: 52px 24px;
  text-align: center;
  box-shadow: 0 18px 40px -20px rgba(20, 24, 31, 0.12);
}

.tg-empty-card-compact {
  padding: 40px 24px;
}

.tg-empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(28, 196, 223, 0.16));
  color: #5b4cf0;
  border: 1px solid rgba(109, 93, 252, 0.2);
}

.tg-empty-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tg-empty-sub {
  max-width: 520px;
  margin: 0 auto 22px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.tg-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Balanced Admin KPI Grid (eliminates orphan 7th card on desktop) */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

@media (min-width: 760px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.admin-kpi-grid .minimal-info-card {
  padding: 13px 14px !important;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
}

/* Admin Uploaded Channel Media Reorderable Cards (Drag & Drop + Arrows) */
.media-reorder-hint {
  width: 100%;
  font-size: 0.8rem;
  color: var(--ink-secondary);
  background: rgba(109, 93, 252, 0.06);
  border: 1px dashed rgba(109, 93, 252, 0.28);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 4px;
}

.media-preview-card {
  width: 148px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--hairline-strong);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px -6px rgba(20, 24, 31, 0.12);
  cursor: grab;
  user-select: none;
  transition: transform 0.18s var(--ease-out), border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.media-preview-card:active {
  cursor: grabbing;
}

.media-preview-card.is-cover {
  border-color: var(--brand-violet);
  box-shadow: 0 8px 20px -8px rgba(109, 93, 252, 0.42);
}

.media-preview-card.is-dragging {
  opacity: 0.42;
  transform: scale(0.96);
}

.media-preview-card.is-drag-over {
  border: 2px dashed var(--brand-violet);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 24px -8px rgba(109, 93, 252, 0.48);
}

.media-preview-thumb {
  position: relative;
  width: 100%;
  height: 102px;
  background: #f3f7f6;
  overflow: hidden;
}

.media-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.media-order-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.media-order-badge.is-cover {
  background: var(--logo-grad);
}

.media-drag-grip {
  position: absolute;
  left: 5px;
  top: 5px;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 6px;
  opacity: 0.85;
}

.media-card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px;
  background: #f8fafc;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
}

.media-ctrl-btn {
  height: 26px;
  min-width: 28px;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px solid rgba(20, 24, 31, 0.14);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.media-ctrl-btn:hover:not(:disabled) {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.media-ctrl-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.media-ctrl-cover {
  flex: 1;
  background: rgba(109, 93, 252, 0.08);
  border-color: rgba(109, 93, 252, 0.25);
  color: #5b4cf0;
}

.media-ctrl-cover:hover:not(:disabled) {
  background: var(--logo-grad);
  border-color: transparent;
  color: #ffffff;
}

.media-cover-tag {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #5b4cf0;
}

/* Declutter v26: Responsive Follower Filter Dedup + Clean Detail Meta Line */
@media (min-width: 768px) {
  .tg-mobile-only-select {
    display: none;
  }
}

@media (max-width: 767px) {
  .tg-tier-strip {
    display: none;
  }
}

.tg-detail-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.tg-detail-handle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tg-detail-trust-line {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline);
  font-size: 0.83rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* Admin Intrusion Detection & Security Alert Feed (v27) */
.audit-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(20, 24, 31, 0.12);
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.audit-pill span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.08);
}

.audit-pill.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.audit-pill.active span {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.audit-pill.is-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.audit-pill.is-danger.active {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.audit-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-feed-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-left: 4px solid #94a3b8;
}

.audit-feed-row.tone-danger {
  background: #fffafb;
  border-color: #ffe4e6;
  border-left-color: #e11d48;
}

.audit-feed-row.tone-finance {
  border-left-color: #10b981;
}

.audit-feed-row.tone-auth {
  border-left-color: #3b82f6;
}

.audit-feed-row.tone-admin {
  border-left-color: #6d5dfc;
}

.audit-feed-main {
  min-width: 0;
  flex: 1;
}

.audit-feed-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}

.audit-sev-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #334155;
}

.audit-sev-badge.tone-danger {
  background: #ffe4e6;
  color: #be123c;
}

.audit-sev-badge.tone-finance {
  background: #dcfce7;
  color: #047857;
}

.audit-sev-badge.tone-auth {
  background: #dbeafe;
  color: #1d4ed8;
}

.audit-sev-badge.tone-admin {
  background: #ede9fe;
  color: #5b21b6;
}

.audit-hits-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 7px;
  background: #fee2e2;
  color: #b91c1c;
}

.audit-actor {
  font-size: 0.82rem;
  color: var(--ink);
}

.audit-ip-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
}

.audit-meta-chip.is-country {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: #fce7f3;
  color: #be185d;
}

.audit-meta-text {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.audit-path-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  word-break: break-all;
}

.audit-feed-desc {
  font-size: 0.83rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.audit-feed-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ==========================================================================
   11. TỐI ƯU TOÀN DIỆN GIAO DIỆN ĐIỆN THOẠI (MOBILE RESPONSIVE POLISH v31)
   ========================================================================== */
body {
  overflow-x: clip;
}

.admin-shell > *,
.deposit-grid > *,
.detail-grid > *,
.tg-detail-layout > * {
  min-width: 0;
}

.tg-purchase-price-row {
  flex-wrap: wrap;
}

.user-dropdown-menu {
  max-width: calc(100vw - 24px);
}

/* Mobile & Tablet Admin Sidebar: biến thành thanh cuộn ngang gọn, KHÔNG che màn hình */
@media (max-width: 979px) {
  .admin-sidebar {
    position: static;
    top: auto;
    padding: 10px;
    border-radius: 18px;
  }

  .admin-sidebar-head {
    display: none;
  }

  .admin-nav-list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-nav-list::-webkit-scrollbar {
    display: none;
  }

  .admin-tab-btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 9px 14px;
    font-size: 0.82rem;
  }
}

/* Mobile Phones (<= 640px — iPhone SE / Android 360px - 430px) */
@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .section {
    padding: 24px 0 52px;
  }

  /* Thanh điều hướng nổi gọn khít 100%, không tràn ngang */
  .floating-header-shell {
    top: 8px;
    padding: 8px 10px 0;
  }

  .floating-pill-nav {
    height: 54px;
    padding: 0 8px 0 10px;
    gap: 6px;
  }

  .pill-brand {
    gap: 7px;
    min-width: 0;
  }

  .pill-brand .brand-k-logo-svg {
    width: 30px;
    height: 30px;
  }

  .pill-brand-wordmark {
    font-size: 0.96rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 128px;
  }

  .pill-actions {
    gap: 5px;
  }

  /* Ẩn 2 icon phụ trên thanh đầu vì đã có trong Menu Hamburger & Dropdown */
  .pill-icon-btn {
    display: none;
  }

  .pill-wallet-chip {
    height: 32px;
    padding: 0 4px 0 9px;
    gap: 4px;
    font-size: 0.74rem;
  }

  .pill-wallet-plus {
    width: 20px;
    height: 20px;
    font-size: 0.78rem;
  }

  .pill-cta-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .user-dropdown-trigger {
    height: 34px;
    padding: 0 7px 0 4px;
    gap: 4px;
  }

  .user-avatar-dot {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }

  .pill-mobile-menu-btn {
    width: 34px;
    height: 34px;
  }

  .minimal-info-card,
  .tg-purchase-card,
  .tg-desc-card,
  .wallet-hero-banner {
    padding: 18px 16px;
    border-radius: 20px;
  }

  /* Trang Nạp tiền (/deposit) tối ưu điện thoại */
  .deposit-panel-card {
    padding: 18px 16px;
  }

  .amount-preset-btn {
    padding: 11px 8px;
    font-size: 0.88rem;
  }

  #deposit-countdown-box {
    flex-wrap: wrap;
    gap: 6px;
  }

  .qr-frame-box {
    padding: 12px;
  }

  .qr-frame-box img {
    max-width: 255px !important;
  }

  .bank-detail-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
  }

  .bank-detail-row > div:last-child {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  /* Thanh lọc kho kênh (/channels) */
  .tg-filter-dock {
    padding: 14px;
    border-radius: 20px;
  }

  .tg-search-pill {
    flex: 1 1 100%;
    width: 100%;
  }

  .tg-search-pill input {
    width: 100%;
    min-width: 0;
  }

  .tg-toolbar-right {
    width: 100%;
  }

  .tg-sort-segment {
    width: 100%;
    justify-content: space-between;
  }

  .tg-sort-item {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
  }

  /* Trang chi tiết kênh (/channels/:slug) */
  .tg-detail-section {
    padding: 24px 0 56px;
  }

  .tg-stat-cell {
    padding: 14px 10px;
  }

  .tg-stat-number {
    font-size: 1.42rem;
  }

  .tg-detail-serif-price {
    font-size: 1.85rem;
  }

  /* Trang Quản trị & Nhật ký bảo mật */
  .audit-feed-row {
    flex-direction: column;
    gap: 6px;
  }

  .media-preview-card {
    width: calc(50% - 6px);
  }

  #admin-payment-settings-form [style*="grid-template-columns"],
  #admin-wallet-adjust-form [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  /* Cloudflare Turnstile gọn trong màn nhỏ */
  .cf-turnstile {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 390px) {
  .pill-brand-wordmark {
    max-width: 96px;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   12. TỐI ƯU HIỆU NĂNG CUỘN 60-120FPS (LOẠI BỎ BLUR CHỒNG CHÉO GÂY LAG v32)
   ========================================================================== */
.tg-home-tier-card,
.tg-filter-dock,
.tg-empty-card,
.footer-boutique-card,
.tg-card-cat-pill,
.tg-card-auto-glass,
.mobile-nav-drawer,
.auth-boutique-card,
.tg-badge-pill,
.tg-pill-select,
.tg-pill-toggle {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.tg-home-tier-card,
.tg-filter-dock,
.tg-empty-card,
.footer-boutique-card {
  background: rgba(255, 255, 255, 0.96);
}

.spotlight-card::before {
  display: none !important;
}

.gallery-ambient-img {
  display: none;
}

/* ==========================================================================
   13. POPUP THÔNG BÁO CHÀO MỪNG LƯƠNG ĐĂNG KHOA (THU MUA & HỖ TRỢ ZALO)
   ========================================================================== */
.welcome-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.welcome-popup-card {
  position: relative;
  width: 100%;
  max-width: 448px;
  background: #ffffff;
  border-radius: 28px;
  padding: 32px 28px 26px;
  box-shadow: 0 28px 64px -16px rgba(15, 23, 42, 0.32);
  text-align: center;
  animation: welcomePopIn 0.22s var(--ease-out) both;
}

@keyframes welcomePopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1.2px solid rgba(20, 24, 31, 0.35);
  background: #ffffff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.welcome-popup-close:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.welcome-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #fef7e6;
  color: #c68616;
  display: grid;
  place-items: center;
}

.welcome-popup-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.welcome-popup-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  margin-bottom: 22px;
}

.welcome-popup-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8f7f4;
  border: 1px solid rgba(28, 25, 23, 0.08);
}

.welcome-popup-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fdf2d9;
  color: #b7791f;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.welcome-popup-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.welcome-popup-item-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.welcome-popup-item-text span {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.welcome-popup-cta {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--logo-grad);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px -8px rgba(109, 93, 252, 0.5);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.welcome-popup-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ==========================================================================
   14. PHONG CÁCH KEM VÀNG TỐI GIẢN CHUẨN KENHGIARE.VN (WARM IVORY GOLD v45)
   ========================================================================== */
:root {
  --font-display: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-page: #fafaf9;
  --bg-band: #f5f5f4;
  --bg-surface: #ffffff;
  --bg-muted: #f7f6f2;
  --ink: #18181b;
  --ink-secondary: #52525b;
  --ink-muted: #71717a;
  --hairline: #ecebe8;
  --hairline-strong: #dedcd7;
  --accent: #d49b28;
  --accent-hover: #b8831a;
  --accent-soft: #fcf4dc;
  --gold-ink: #9a6b16;
  --gold-icon: #b58328;
  --gold-border: #edd596;
  --brand-cta-grad: #18181b;
  --brand-cta-grad-hover: #27272a;
  --radius-card: 20px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.03);
  --shadow-card: 0 8px 28px -12px rgba(24, 24, 27, 0.07);
  --shadow-pill: none;
}

body {
  background-color: var(--bg-page);
  color: var(--ink);
}

.scroll-progress-bar {
  background: var(--accent);
}

/* Header dính đỉnh mỏng, full-width trắng sạch chuẩn kenhgiare.vn */
.floating-header-shell.kgr-header-shell {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #efeeeb;
  pointer-events: auto;
}

.floating-pill-nav.kgr-header-bar {
  max-width: 1200px;
  height: 62px;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.floating-pill-nav.kgr-header-bar.is-scrolled {
  background: transparent;
  box-shadow: none;
}

.kgr-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.pill-brand-wordmark {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #18181b;
}

.pill-nav-links {
  gap: 24px;
}

.pill-nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: #52525b;
}

.pill-nav-link:hover,
.pill-nav-link.active {
  color: #18181b;
  font-weight: 600;
}

.kgr-login-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: #3f3f46;
  padding: 6px 12px;
  border-radius: 999px;
}

.kgr-login-link:hover {
  color: #18181b;
  background: #f5f5f4;
}

.pill-cta-btn {
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: #18181b;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: none;
}

.pill-cta-btn:hover {
  background: #27272a;
  color: #ffffff !important;
}

.pill-wallet-chip {
  background: #ffffff;
  border: 1px solid #e7e5e0;
  color: #18181b;
}

.pill-wallet-chip:hover {
  background: #fcf4dc;
  border-color: var(--gold-border);
  color: var(--gold-ink);
}

.pill-wallet-plus {
  background: #fcf4dc;
  color: var(--gold-ink);
  font-weight: 700;
}

/* Nút Tài khoản trên Header nền trắng sáng nhẹ nhàng, avatar kem vàng */
.user-dropdown-trigger {
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e7e5e0;
}

.user-dropdown-trigger:hover {
  background: #faf9f6;
  border-color: var(--gold-border);
}

.user-avatar-dot {
  background: #fcf4dc;
  color: var(--gold-ink);
  font-weight: 700;
}

.mobile-nav-drawer {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 0;
  border: none;
  border-top: 1px solid #efeeeb;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.08);
  padding: 10px 16px 14px;
}

/* Toàn bộ nút CTA chính chữ trắng 100% tương phản + các ô chọn/tab màu kem vàng sang trọng */
.btn-accent,
.btn-primary {
  background: #18181b;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 12px -4px rgba(24, 24, 27, 0.28);
}

.btn-accent:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  background: #27272a;
  color: #ffffff !important;
}

.amount-preset-btn {
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e7e5e0;
}

.amount-preset-btn:hover {
  border-color: var(--gold-border);
  background: #fefaf0;
  color: var(--gold-ink);
}

.amount-preset-btn.active {
  background: #fcf4dc;
  color: var(--gold-ink) !important;
  border-color: #d49b28;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(212, 155, 40, 0.16);
}

.page-circle.active,
.admin-tab-btn.active,
.tg-sort-item.active,
.tg-pill-toggle.active {
  background: #fcf4dc;
  border-color: #d49b28;
  color: var(--gold-ink) !important;
  font-weight: 600;
}

.floating-btn-zalo {
  background: #18181b;
  color: #ffffff !important;
  border-color: #18181b;
  box-shadow: 0 8px 20px -6px rgba(24, 24, 27, 0.35);
}

.floating-btn-zalo:hover {
  background: #27272a;
  color: #ffffff !important;
}

/* Tiêu đề & chữ đồng nhất Sans-serif sắc nét */
.tg-serif-heading,
.tg-display-h1,
.tg-price-serif,
.tg-detail-serif-price,
.tg-detail-title,
.welcome-popup-title,
.kgr-section-title-left {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #18181b;
}

.kgr-section-title-left {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.24;
  margin: 0 0 24px;
}

/* Trang chủ gọn gàng, nền kem giấy sạch sang */
.tg-hero.kgr-hero {
  padding: 46px 0 24px;
  background: #fafaf9;
}

.kgr-hero .tg-display-h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.18;
  margin: 0 0 12px;
}

.kgr-hero .tg-hero-lead {
  max-width: 600px;
  margin: 0 auto 22px;
  font-size: 0.96rem;
  color: #52525b;
}

.tg-hero-search {
  background: #ffffff;
  border: 1px solid #e7e5e0;
  box-shadow: 0 4px 16px -8px rgba(24, 24, 27, 0.08);
}

.tg-hero-search-btn {
  background: #18181b;
  color: #ffffff !important;
}

.tg-hero-search-btn:hover {
  background: #27272a;
  color: #ffffff !important;
}

.tg-hero-cat-chip {
  background: #ffffff;
  border: 1px solid #e7e5e0;
  color: #3f3f46;
}

.tg-hero-cat-chip:hover {
  border-color: var(--gold-border);
  color: var(--gold-ink);
  background: #fcf4dc;
}

.kgr-tiers-strip-section {
  padding: 6px 0 12px;
}

.kgr-home-tier-pills {
  background: #ffffff;
  border: 1px solid #ecebe8;
  border-radius: 18px;
  padding: 12px 16px;
}

.tg-tier-pill {
  background: #fafaf9;
  border: 1px solid #e7e5e0;
  color: #3f3f46;
}

.tg-tier-pill:hover,
.tg-tier-pill.active {
  background: #fcf4dc;
  border-color: #d49b28;
  color: var(--gold-ink);
}

.tg-tier-pill.active .tg-tier-cnt,
.tg-tier-pill:hover .tg-tier-cnt {
  background: rgba(181, 131, 40, 0.16);
  color: var(--gold-ink);
}

.kgr-section-tight {
  padding: 32px 0 44px;
}

.tg-mono-all-link {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #3f3f46;
  background: #ffffff;
  border: 1px solid #e7e5e0;
  padding: 7px 14px;
  border-radius: 999px;
}

.tg-mono-all-link:hover {
  background: #fcf4dc;
  border-color: var(--gold-border);
  color: var(--gold-ink);
}

/* Quy trình 3 bước: 1 thẻ trắng liền chia 3 cột có icon kem vàng chuẩn kenhgiare.vn */
.kgr-steps-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid #ecebe8;
  border-radius: 22px;
  box-shadow: 0 10px 30px -14px rgba(24, 24, 27, 0.07);
  overflow: hidden;
}

.kgr-step-col {
  padding: 30px 28px 32px;
  border-right: 1px solid #f0efec;
}

.kgr-step-col:last-child {
  border-right: none;
}

.kgr-gold-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fcf4dc;
  color: var(--gold-icon);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.kgr-step-title {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #18181b;
}

.kgr-step-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #71717a;
}

/* Cam kết 2 cột chuẩn "Cam kết của LowFast" */
.kgr-commit-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.kgr-commit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #71717a;
}

.kgr-commit-link:hover {
  color: var(--gold-ink);
}

.kgr-commit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}

.kgr-commit-item {
  padding-top: 20px;
  border-top: 1px solid #ecebe8;
}

.kgr-commit-icon {
  color: var(--gold-icon);
  margin-bottom: 14px;
  display: inline-flex;
}

@media (max-width: 820px) {
  .kgr-steps-card {
    grid-template-columns: 1fr;
  }

  .kgr-step-col {
    border-right: none;
    border-bottom: 1px solid #f0efec;
    padding: 22px 20px;
  }

  .kgr-step-col:last-child {
    border-bottom: none;
  }

  .kgr-commit-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kgr-commit-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Thẻ kênh bán tối giản, sang trọng */
.tg-card {
  background: #ffffff;
  border: 1px solid #ecebe8;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.03);
}

.tg-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: 0 12px 26px -12px rgba(24, 24, 27, 0.1);
}

.tg-card-title {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
}

.tg-price-serif {
  font-size: 1.15rem;
  font-weight: 700;
  color: #18181b;
}

.tg-buy-pill {
  background: #18181b;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

.tg-buy-pill:hover {
  background: #27272a;
  color: #ffffff !important;
}

/* Trang Chi tiết kênh (/channels/:slug) — CHUẨN KENHGIARE.VN */
.kgr-detail-section {
  padding: 28px 0 64px;
  background: #fafaf9;
}

.kgr-detail-section .tg-back-link {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #71717a;
  margin-bottom: 22px;
}

.kgr-detail-section .tg-back-link:hover {
  color: #18181b;
}

@media (min-width: 880px) {
  .kgr-detail-layout {
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
  }
}

.kgr-detail-left {
  max-width: 370px;
}

.kgr-phone-stage {
  aspect-ratio: 9 / 14;
  background: #ffffff;
  border: 1px solid #ecebe8;
  border-radius: 20px;
  box-shadow: 0 6px 20px -10px rgba(24, 24, 27, 0.06);
}

.kgr-detail-right {
  gap: 16px;
}

.kgr-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kgr-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.kgr-pill-green {
  background: #dcfce7;
  color: #15803d;
}

.kgr-pill-teal {
  background: #d1fae5;
  color: #047857;
}

.kgr-pill-amber {
  background: #fcf4dc;
  color: #9a6b16;
}

.kgr-pill-muted {
  background: #f4f4f5;
  color: #52525b;
}

.kgr-detail-right .tg-detail-title {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 2px 0 0;
  color: #18181b;
}

.kgr-detail-right .tg-detail-handle-row {
  margin-top: -6px;
  gap: 7px;
  font-size: 0.9rem;
  color: #71717a;
}

.kgr-code-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #a1a1aa;
  margin-left: 4px;
}

/* 2 ô chỉ số tách rời bo góc mềm */
.kgr-stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.kgr-stat-box {
  background: #ffffff;
  border: 1px solid #ecebe8;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kgr-stat-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #71717a;
}

.kgr-stat-val {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #18181b;
  line-height: 1.15;
}

/* Hộp Giá bán & nút Mua chuẩn kenhgiare.vn (nút đen chữ trắng rõ nét 100%) */
.kgr-purchase-card {
  background: #ffffff;
  border: 1px solid #ecebe8;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 6px 22px -12px rgba(24, 24, 27, 0.06);
}

.kgr-price-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #71717a;
  margin-bottom: 4px;
}

.kgr-price-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #18181b;
  line-height: 1.15;
  margin: 0 0 18px;
}

.kgr-purchase-card .tg-buy-main-btn {
  height: 50px;
  border-radius: 999px;
  background: #18181b;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px -6px rgba(24, 24, 27, 0.3);
}

.kgr-purchase-card .tg-buy-main-btn:hover {
  background: #27272a;
  color: #ffffff !important;
}

.kgr-guarantees {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px;
}

.kgr-guarantee-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: #52525b;
  line-height: 1.45;
}

.kgr-desc-card {
  background: #ffffff;
  border: 1px solid #ecebe8;
  border-radius: 16px;
  padding: 16px 20px;
}

/* Quy trình, FAQ & Footer tinh gọn sạch sẽ */
.tg-feature-card,
.tg-faq-item,
.tg-filter-dock,
.tg-empty-card,
.minimal-info-card {
  background: #ffffff;
  border: 1px solid #ecebe8;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.03);
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #efeeeb;
  padding: 36px 0 28px;
  margin-top: 40px;
}

.footer-boutique-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.welcome-popup-cta {
  background: linear-gradient(135deg, #e7b039 0%, #d4941d 100%);
  color: #18181b !important;
  box-shadow: 0 8px 20px -8px rgba(212, 148, 29, 0.45);
}

/* Mobile polish cho Header & Footer (KHÔNG cắt chữ Lương Đăng Khoa ở bất kỳ đâu) */
.pill-mobile-menu-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e7e5e0;
  background: #ffffff;
  color: #18181b;
  place-items: center;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-mobile-menu-btn:hover {
  background: #faf9f6;
  border-color: var(--gold-border);
}

.pill-mobile-menu-btn svg {
  display: block;
}

@media (max-width: 640px) {
  .floating-header-shell.kgr-header-shell {
    top: 0;
    padding: 0;
  }

  .floating-pill-nav.kgr-header-bar {
    height: 58px;
    padding: 0 14px;
    gap: 8px;
  }

  .kgr-header-left {
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Gỡ hoàn toàn cắt chữ "..." ở cả Header lẫn Footer trên điện thoại */
  .pill-brand-wordmark {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.98rem !important;
    white-space: nowrap;
  }

  .site-footer .pill-brand-wordmark {
    white-space: normal !important;
    line-height: 1.3;
    font-size: 1.02rem !important;
  }

  .kgr-login-link {
    display: none;
  }

  .pill-mobile-menu-btn {
    width: 36px;
    height: 36px;
  }

  .kgr-stat-pair {
    gap: 10px;
  }

  .kgr-stat-box {
    padding: 14px 14px;
  }

  .kgr-stat-val {
    font-size: 1.42rem;
  }

  .kgr-purchase-card {
    padding: 18px 16px;
  }

  .kgr-price-value {
    font-size: 1.72rem;
  }
}

@media (max-width: 390px) {
  .pill-brand-wordmark {
    max-width: none !important;
    font-size: 0.92rem !important;
  }

  .site-footer .pill-brand-wordmark {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .welcome-popup-card {
    padding: 26px 18px 20px;
    border-radius: 22px;
  }

  .welcome-popup-title {
    font-size: 1.52rem;
    margin-bottom: 16px;
  }

  .welcome-popup-item {
    padding: 12px 13px;
    gap: 11px;
  }
}

/* ==========================================================================
   15. KENHGIARE.VN PRO POLISH (GALLERY TRÀN VIỀN, 2 CỘT MOBILE, ĐỒNG BỘ TRANG TRONG v46)
   ========================================================================== */

/* Hero badge & dải cam kết siêu gọn */
.kgr-hero-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.kgr-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fcf4dc;
  border: 1px solid #edd596;
  color: #9a6b16;
  font-size: 0.78rem;
  font-weight: 600;
}

.kgr-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d49b28;
  flex-shrink: 0;
}

.kgr-hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #71717a;
}

.kgr-hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kgr-hero-trust-row svg {
  color: #b58328;
  flex-shrink: 0;
}

/* Gallery trang chi tiết kênh tràn viền sắc nét + counter 1/6 + dải thumb có mũi tên 2 bên */
.kgr-detail-left {
  max-width: 392px;
}

@media (min-width: 880px) {
  .kgr-detail-layout {
    grid-template-columns: 392px minmax(0, 1fr);
    gap: 54px;
  }
}

.kgr-phone-stage {
  aspect-ratio: 9 / 15.2;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #ecebe8;
  box-shadow: 0 10px 30px -14px rgba(24, 24, 27, 0.1);
}

.kgr-phone-stage #gallery-active-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.kgr-gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.72);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.kgr-thumbs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.kgr-thumbs-row {
  flex: 1 1 auto;
  margin-top: 0 !important;
  padding-bottom: 2px;
  justify-content: flex-start;
  scrollbar-width: none;
}

.kgr-thumbs-row::-webkit-scrollbar {
  display: none;
}

.kgr-thumbs-bar .gallery-thumb-btn {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  border: 1.5px solid #e7e5e0;
  opacity: 0.85;
  transition: border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.kgr-thumbs-bar .gallery-thumb-btn.active {
  border: 2px solid #18181b;
  opacity: 1;
}

.kgr-thumb-arrow {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #e7e5e0;
  background: #ffffff;
  color: #52525b;
  font-size: 1.05rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.kgr-thumb-arrow:hover {
  border-color: #18181b;
  color: #18181b;
  background: #fafaf9;
}

.kgr-pill-peach {
  background: #ffedd5;
  color: #c2410c;
}

/* Thẻ kênh tràn viền top + sạch đẹp */
.tg-card-media {
  background: #f5f5f4;
}

.tg-card-img {
  object-fit: cover;
  object-position: center top;
}

.tg-card-cat-pill {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ecebe8;
  color: #18181b;
  font-weight: 600;
}

.tg-mini-tag {
  background: #fcf4dc;
  color: #9a6b16;
  border: 1px solid #edd596;
}

/* Lưới 2 cột thẻ kênh siêu gọn trên điện thoại (giống sàn TMĐT / kenhgiare.vn) */
@media (max-width: 640px) {
  .tg-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .tg-card {
    border-radius: 14px;
  }

  .tg-card-body {
    padding: 10px 10px 11px;
    gap: 6px;
  }

  .tg-card-cat-pill {
    top: 7px;
    left: 7px;
    padding: 2px 8px;
    font-size: 0.68rem;
  }

  .tg-card-title {
    font-size: 0.84rem;
    line-height: 1.32;
    min-height: 2.64em;
  }

  .tg-card-handle-row {
    font-size: 0.72rem;
    gap: 4px;
  }

  .tg-mini-tag {
    padding: 1px 5px;
    font-size: 0.64rem;
  }

  .tg-card-metrics {
    gap: 8px;
    font-size: 0.74rem;
    padding-top: 2px;
  }

  .tg-card-footer {
    padding-top: 8px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .tg-price-serif {
    font-size: 0.94rem;
  }

  .tg-buy-pill {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .kgr-hero {
    padding: 28px 0 18px !important;
  }

  .kgr-hero-trust-row {
    gap: 6px 14px;
    font-size: 0.76rem;
  }

  .kgr-thumbs-bar .gallery-thumb-btn {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
  }
}

/* Đồng bộ 100% tông Trắng Kem – Vàng sang các trang bên trong (/deposit, /login, /account, /contact) */
.auth-boutique-card,
.deposit-panel-card,
.wallet-hero-banner,
.table-wrap,
.modal-card {
  background: #ffffff;
  border: 1px solid #ecebe8;
  box-shadow: 0 8px 26px -14px rgba(24, 24, 27, 0.08);
}

.auth-card-badge,
.tg-eyebrow {
  color: #9a6b16;
}

.auth-card-badge {
  background: #fcf4dc;
  border: 1px solid #edd596;
}

.form-control {
  background: #ffffff;
  border: 1px solid #e4e2dc;
  color: #18181b;
}

.form-control:focus {
  border-color: #d49b28;
  box-shadow: 0 0 0 3px rgba(212, 155, 40, 0.15);
  outline: none;
}

.bank-detail-row {
  background: #fafaf9;
  border: 1px solid #ecebe8;
}

.qr-frame-box {
  background: #fafaf9;
  border: 1px solid #ecebe8;
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #e4e2dc;
  color: #18181b;
}

.btn-outline:hover:not(:disabled) {
  background: #fcf4dc;
  border-color: #edd596;
  color: #9a6b16;
}

.tg-btn-brand-grad {
  background: #18181b;
  color: #ffffff !important;
  box-shadow: none;
}

.tg-btn-brand-grad:hover {
  background: #27272a;
  color: #ffffff !important;
}

.data-table thead th {
  background: #fafaf9;
  color: #71717a;
  border-bottom: 1px solid #ecebe8;
}

.data-table tbody td {
  border-bottom: 1px solid #f2f1ee;
}

.footer-pill-btn {
  background: #fafaf9;
  border: 1px solid #e7e5e0;
  color: #18181b;
}

.footer-pill-btn:hover {
  background: #fcf4dc;
  border-color: #edd596;
  color: #9a6b16;
}

/* Form Đăng nhập & Đăng ký tối giản đúng chuẩn kenhgiare.vn (v47) */
.kgr-auth-section {
  padding: 44px 0 72px;
}

.kgr-auth-card {
  padding: 32px 28px 28px !important;
  border-radius: 22px !important;
  background: #ffffff;
  border: 1px solid #ecebe8;
  box-shadow: 0 10px 30px -16px rgba(24, 24, 27, 0.08);
}

.kgr-auth-title {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #18181b;
}

.kgr-auth-sub {
  margin: 0 0 22px;
  font-size: 0.9rem;
  color: #71717a;
}

.kgr-auth-field {
  margin-bottom: 16px;
}

.kgr-auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #3f3f46;
}

.kgr-auth-input {
  height: 44px;
  border-radius: 12px !important;
  padding: 0 14px;
  font-size: 0.92rem;
  border: 1px solid #e4e2dc;
  background: #ffffff;
}

.kgr-eye-btn {
  background: transparent !important;
  border: none !important;
  color: #71717a !important;
  padding: 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  right: 8px !important;
}

.kgr-eye-btn:hover,
.kgr-eye-btn.is-revealed {
  color: #18181b !important;
}

.kgr-auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border-radius: 999px !important;
  background: #18181b !important;
  color: #ffffff !important;
  font-size: 0.94rem;
  font-weight: 600;
}

.kgr-auth-submit:hover:not(:disabled) {
  background: #27272a !important;
}

.kgr-auth-below {
  margin-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: #71717a;
}

.kgr-auth-switch-link {
  color: #9a6b16;
  font-weight: 600;
}

.kgr-auth-switch-link:hover {
  text-decoration: underline;
}

/* Nâng cấp Hero văn bản cân đối + Chủ đề tự động nổi bật + Mốc Follow 1 hàng gọn (v49) */
.kgr-hero .tg-display-h1 {
  max-width: 780px;
  margin: 0 auto 14px;
  text-wrap: balance;
}

.kgr-hero .tg-hero-lead {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 0.96rem;
  line-height: 1.68;
  color: #52525b;
  text-wrap: balance;
}

.tg-hero-cat-pills {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.tg-hero-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tg-hero-cat-chip.is-featured-cat {
  background: #fcf4dc;
  border-color: #e6c66f;
  color: #92610c;
  font-weight: 600;
}

.tg-hero-cat-chip.is-featured-cat:hover {
  background: #faeab8;
  border-color: #d49b28;
  color: #784f08;
}

.kgr-cat-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(181, 131, 40, 0.16);
  color: #784f08;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .kgr-home-tier-pills {
    gap: 6px;
    padding: 10px 14px;
  }

  .kgr-home-tier-pills .tg-tier-pill {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   16. NỀN VÀNG KEM ẤM SANG TRỌNG LÀM NỔI BẬT THẺ TRẮNG (WARM GOLD BG v50)
   ========================================================================== */
:root {
  --bg-page: #fbf2d8;
  --bg-band: #f6e8c3;
  --bg-muted: #fdf8ea;
  --hairline: #ebdcb6;
  --hairline-strong: #dec996;
}

html,
body {
  background-color: var(--bg-page);
}

.floating-header-shell.kgr-header-shell {
  background: rgba(255, 253, 246, 0.96);
  border-bottom: 1px solid #efe2be;
}

.tg-hero.kgr-hero {
  background:
    radial-gradient(ellipse 72% 58% at 50% -6%, rgba(250, 204, 21, 0.24), transparent 72%),
    linear-gradient(180deg, #fff8e3 0%, #fbf2d8 100%);
}

.kgr-detail-section,
.kgr-auth-section {
  background: transparent;
}

/* Các thẻ trắng nổi bật rõ ràng trên nền vàng kem ấm */
.tg-card,
.kgr-steps-card,
.kgr-home-tier-pills,
.kgr-stat-box,
.kgr-purchase-card,
.kgr-desc-card,
.kgr-phone-stage,
.tg-hero-search,
.tg-filter-dock,
.tg-empty-card,
.tg-faq-item,
.minimal-info-card,
.auth-boutique-card,
.kgr-auth-card,
.deposit-panel-card,
.wallet-hero-banner,
.table-wrap,
.modal-card {
  background: #ffffff;
  border-color: #eadbb5;
  box-shadow: 0 8px 26px -14px rgba(146, 97, 12, 0.14);
}

.tg-hero-cat-chip {
  background: #ffffff;
  border-color: #eadbb5;
}

.tg-hero-cat-chip.is-featured-cat {
  background: #fef0c3;
  border-color: #dfb44a;
  color: #854d0e;
}

.tg-tier-pill {
  background: #fdf9ed;
  border-color: #efe2be;
}

.tg-tier-pill:hover,
.tg-tier-pill.active {
  background: #fef0c3;
  border-color: #d49b28;
  color: #854d0e;
}

.kgr-commit-item {
  border-top-color: #e6d4a4;
}

.site-footer {
  background: #fffdf6;
  border-top: 1px solid #efe2be;
}

/* ==========================================================================
   17. SỬA TRIỆT ĐỂ 4 LỖI HIỂN THỊ ĐIỆN THOẠI 360px - 430px (MOBILE AUDIT v51)
   ========================================================================== */

/* 1) Hiện lại dải Mốc Follow trên Trang chủ điện thoại (vuốt ngang 1 hàng mượt) */
@media (max-width: 760px) {
  .tg-tier-strip.kgr-home-tier-pills {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 10px 12px;
    margin-bottom: 0;
    border-bottom: 1px solid #eadbb5;
  }

  .tg-tier-strip.kgr-home-tier-pills::-webkit-scrollbar {
    display: none;
  }

  .kgr-home-tier-pills .tg-tier-label,
  .kgr-home-tier-pills .tg-tier-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* 2) Căn thẳng hàng tuyệt đối thẻ kênh 2 cột + Hero + Chi tiết kênh trên điện thoại */
@media (max-width: 640px) {
  .kgr-hero-pill {
    font-size: 0.72rem;
    line-height: 1.38;
    text-align: center;
    padding: 5px 12px;
  }

  .tg-hero-search {
    padding: 4px 4px 4px 12px;
    gap: 6px;
  }

  .tg-hero-search input {
    font-size: 0.85rem;
  }

  .tg-hero-search-btn {
    height: 36px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .tg-hero-cat-pills {
    gap: 6px;
    margin-top: 12px;
  }

  .tg-hero-cat-chip {
    padding: 6px 11px;
    font-size: 0.78rem;
  }

  /* Thẻ kênh 2 cột: xếp Giá trên + nút Mua ngay full-width dưới để 2 cột luôn thẳng tắp */
  .tg-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding-top: 8px;
    margin-top: auto;
  }

  .tg-price-serif {
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .tg-buy-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  /* Khung ảnh chi tiết kênh vừa vặn màn hình điện thoại để thấy nhanh Giá & nút Mua */
  .kgr-detail-left {
    max-width: 100%;
  }

  .kgr-phone-stage {
    aspect-ratio: 4 / 5.4;
    max-height: 66vh;
  }

  .kgr-detail-right .tg-detail-title {
    font-size: 1.48rem;
  }

  .kgr-section-title-left {
    font-size: 1.38rem;
    margin-bottom: 16px;
  }
}

/* 3) Màn hình điện thoại nhỏ (360px - 420px): Header đủ chỗ khi đã đăng nhập + số dư lớn */
@media (max-width: 420px) {
  .floating-pill-nav.kgr-header-bar {
    height: 54px;
    padding: 0 10px;
    gap: 6px;
  }

  .kgr-header-left {
    gap: 6px;
  }

  .pill-brand .brand-k-logo-svg {
    width: 28px;
    height: 28px;
  }

  .kgr-header-bar .pill-brand-wordmark {
    font-size: 0.88rem !important;
  }

  .pill-actions {
    gap: 4px;
  }

  .pill-wallet-chip {
    height: 30px;
    padding: 0 4px 0 8px;
    font-size: 0.71rem;
    gap: 4px;
  }

  .pill-wallet-plus {
    width: 18px;
    height: 18px;
    font-size: 0.74rem;
  }

  .user-dropdown-trigger {
    height: 32px;
    padding: 0 6px 0 3px;
    gap: 3px;
  }

  .user-avatar-dot {
    width: 24px;
    height: 24px;
    font-size: 0.64rem;
  }

  .pill-mobile-menu-btn {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   18. HERO TỐI GIẢN ĐẲNG CẤP CHUẨN KENHGIARE.VN (SUNLIT CREAM & GOLD v56)
   ========================================================================== */
:root {
  --bg-page: #fcfaf4;
  --bg-band: #f8f3e6;
  --bg-muted: #faf6eb;
  --hairline: #ede5d0;
  --hairline-strong: #dfd3b5;
}

html,
body {
  background-color: var(--bg-page);
}

.floating-header-shell.kgr-header-shell {
  background: rgba(255, 254, 250, 0.96);
  border-bottom: 1px solid #f0e9d8;
}

.tg-hero.kgr-hero-minimal {
  padding: clamp(56px, 8.5vw, 96px) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(ellipse 68% 64% at 50% 24%, rgba(246, 200, 76, 0.24) 0%, rgba(253, 236, 179, 0.14) 48%, transparent 78%),
    linear-gradient(180deg, #fffdf7 0%, #fcfaf4 100%);
  text-align: center;
}

.kgr-hero-display {
  margin: 0 auto 22px;
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 5.8vw, 4.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: #18181b;
}

.kgr-hero-gold {
  display: inline-block;
  background: linear-gradient(135deg, #f3be3c 0%, #e49c1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kgr-hero-minimal-lead {
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: clamp(0.94rem, 1.3vw, 1.05rem);
  line-height: 1.65;
  color: #6b7280;
  font-weight: 400;
}

.kgr-hero-cta-wrap {
  display: flex;
  justify-content: center;
}

.kgr-gold-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6cc5c 0%, #dca01d 100%);
  color: #18181b !important;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 26px -8px rgba(212, 155, 40, 0.55);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.kgr-gold-cta-btn:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.03);
  box-shadow: 0 16px 30px -8px rgba(212, 155, 40, 0.65);
  color: #18181b !important;
}

.kgr-quick-filters-section {
  padding: 4px 0 8px;
}

.kgr-cat-ribbon {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  .tg-hero.kgr-hero-minimal {
    padding: 40px 0 28px !important;
  }

  .kgr-hero-display {
    font-size: clamp(2.05rem, 9.6vw, 2.75rem);
    margin-bottom: 16px;
  }

  .kgr-hero-minimal-lead {
    font-size: 0.9rem;
    margin-bottom: 22px;
  }

  .kgr-br-desktop {
    display: none;
  }

  .kgr-gold-cta-btn {
    height: 44px;
    padding: 0 24px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   19. TRANG KHO KÊNH (/channels) CHUẨN KENHGIARE.VN/CHANNELS (v57)
   ========================================================================== */
.kgr-catalog-section {
  padding: 36px 0 72px;
}

.kgr-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.kgr-catalog-title {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #18181b;
  line-height: 1.15;
}

.kgr-catalog-sub {
  margin: 0;
  max-width: 520px;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #71717a;
}

.kgr-catalog-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kgr-catalog-total {
  font-size: 0.86rem;
  font-weight: 500;
  color: #71717a;
}

.kgr-catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.kgr-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.kgr-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.kgr-select-icon {
  position: absolute;
  left: 14px;
  color: #71717a;
  pointer-events: none;
  z-index: 1;
}

.kgr-select-pill {
  height: 40px;
  padding: 0 34px 0 36px !important;
  border-radius: 999px !important;
  border: 1px solid #e7e2d4 !important;
  background-color: #ffffff !important;
  color: #18181b !important;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.03);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.kgr-select-pill:hover,
.kgr-select-pill:focus {
  border-color: #d49b28 !important;
  outline: none;
}

.kgr-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e7e2d4;
  background: #ffffff;
  color: #3f3f46;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.03);
}

.kgr-toggle-pill:hover {
  border-color: #d49b28;
  color: #18181b;
}

.kgr-toggle-pill.active {
  background: #fcf4dc;
  border-color: #d49b28;
  color: #92610c;
  font-weight: 600;
}

.kgr-sort-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.kgr-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kgr-sort-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: #71717a;
}

.kgr-sort-tray {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #f1ede2;
}

.kgr-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  color: #52525b;
  white-space: nowrap;
}

.kgr-sort-btn:hover {
  color: #18181b;
}

.kgr-sort-btn.active {
  background: #ffffff;
  color: #18181b;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.08);
}

.kgr-catalog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-width: 260px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e7e2d4;
  background: #ffffff;
  color: #71717a;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.03);
}

.kgr-catalog-search:focus-within {
  border-color: #d49b28;
}

.kgr-catalog-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.86rem;
  color: #18181b;
}

.kgr-catalog-search input::placeholder {
  color: #a1a1aa;
}

@media (max-width: 640px) {
  .kgr-catalog-section {
    padding: 22px 0 56px;
  }

  .kgr-catalog-head {
    margin-bottom: 18px;
  }

  .kgr-filter-row {
    gap: 8px;
  }

  .kgr-select-wrap {
    flex: 1 1 calc(50% - 4px);
    min-width: 145px;
  }

  .kgr-select-pill {
    width: 100%;
    height: 38px;
    font-size: 0.82rem;
  }

  .kgr-toggle-pill {
    height: 36px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .kgr-sort-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .kgr-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .kgr-sort-tray {
    flex: 1;
    justify-content: space-between;
  }

  .kgr-sort-btn {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .kgr-catalog-search {
    min-width: 0;
    width: 100%;
  }
}

/* ==========================================================================
   20. KÊNH NỔI BẬT (AUTO TOP FOLLOWERS SHOWCASE v58)
   ========================================================================== */
.kgr-section-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #71717a;
}

.kgr-clean-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #71717a;
  white-space: nowrap;
  padding: 4px 2px;
}

.kgr-clean-all-link:hover {
  color: #18181b;
}

.kgr-spotlight-pin {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(254, 245, 212, 0.96);
  border: 1px solid #e6c66f;
  color: #92610c;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(146, 97, 12, 0.28);
}

.tg-card.is-spotlight {
  border-color: #e9d399;
  box-shadow: 0 10px 28px -14px rgba(181, 131, 40, 0.24);
}

.tg-card.is-spotlight:hover {
  border-color: #d49b28;
  box-shadow: 0 16px 34px -14px rgba(181, 131, 40, 0.34);
}

@media (min-width: 900px) {
  .kgr-spotlight-grid.is-centered-pair {
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .kgr-spotlight-pin {
    top: 7px;
    right: 7px;
    padding: 2px 7px;
    font-size: 0.64rem;
  }

  .kgr-section-sub {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   21. DẢI CHỦ ĐỀ 1 HÀNG TỐI GIẢN CHUẨN KENHGIARE.VN (v59)
   ========================================================================== */
.kgr-home-cat-section {
  padding: 4px 0 28px;
}

.kgr-home-cat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 4px;
}

.kgr-home-cat-bar::-webkit-scrollbar {
  display: none;
}

.kgr-home-cat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ece9e2;
  color: #27272a;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(24, 24, 27, 0.025);
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.kgr-home-cat-pill:hover {
  border-color: #d49b28;
  background: #fffdf7;
  color: #18181b;
  transform: translateY(-1px);
}

.kgr-home-cat-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 10px 0 8px;
  color: #71717a;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.kgr-home-cat-all:hover {
  color: #18181b;
}

@media (max-width: 960px) {
  .kgr-home-cat-bar {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .kgr-home-cat-section {
    padding: 0 0 18px;
  }

  .kgr-home-cat-bar {
    gap: 8px;
  }

  .kgr-home-cat-pill {
    height: 36px;
    padding: 0 15px;
    font-size: 0.82rem;
  }

  .kgr-home-cat-all {
    height: 36px;
    font-size: 0.82rem;
  }
}






