/*
Theme Name: Top Game Nổ Hũ
Theme URI: https://gamebaidoithuong.local
Author: Antigravity SEO Team
Author URI: https://gamebaidoithuong.local
Description: Theme WordPress tối ưu chuẩn SEO dành cho từ khóa "Game Nổ Hũ", "Slot Đổi Thưởng", phong cách Dark Đen Đậm Đen Nhạt kết hợp Nâu Đỏ (Burgundy / Ruby Wine) và Hoàng Kim Gold (Jackpot Gold). Bo góc hiện đại, gradient button, layout fit hạn chế khoảng trống, font tự co dãn 14/16px, hiệu ứng số đếm Gold-Red realtime, Hero Banner Arena Bento Grid mới 100%.
Version: 3.3.4
License: GNU General Public License v2 or later
Text Domain: theme-nohu
*/

/* ==========================================================================
   1. DESIGN TOKENS & TONE DARK ĐEN ĐẬM - ĐEN NHẠT (BURGUNDY BUTTONS & GOLD)
   ========================================================================== */
:root {
  /* Brand Gradient Buttons (GIỮ NGUYÊN TONE MÀU NÚT BẤM) */
  --primary: #991B1B;
  --primary-hover: #B91C1C;
  --primary-deep: #4A0814;
  --primary-gradient: linear-gradient(135deg, #DC2626 0%, #991B1B 50%, #7F1D1D 100%);
  --primary-hover-gradient: linear-gradient(135deg, #EF4444 0%, #B91C1C 50%, #991B1B 100%);
  --primary-wine-gradient: linear-gradient(135deg, #7F1D1D 0%, #3B0813 100%);
  --primary-subtle: rgba(220, 38, 38, 0.12);

  /* Accent Palette: Hoàng Kim Gold (Jackpot Gold) */
  --gold-primary: #F59E0B;
  --gold-bright: #FBBF24;
  --gold-deep: #B45309;
  --gold-gradient: linear-gradient(135deg, #FDE047 0%, #F59E0B 50%, #D97706 100%);
  --gold-hover-gradient: linear-gradient(135deg, #FEF08A 0%, #FBBF24 50%, #B45309 100%);
  --gold-badge-bg: #221B12;
  --gold-glow: #FBBF24;

  /* TONE DARK: ĐEN ĐẬM & ĐEN NHẠT (TRUE OBSIDIAN & CHARCOAL DARK) */
  --bg-page: #0B0B0E;         /* Nền trang: Đen sâu thẳm */
  --bg-header: #121217;       /* Nền Header: Đen than chì */
  --bg-card: #16161D;         /* Nền Card & Box: Đen đậm */
  --bg-card-hover: #1E1E28;   /* Nền hover: Đen nhạt hơn */
  --bg-elevated: #20202B;     /* Nền khối con, chip, badge: Đen nhạt tương phản */
  --bg-subtle: #191922;       /* Đen phụ */
  --bg-contrast: #262633;     /* Đen nổi bật */
  --bg-input: #0E0E12;        /* Ô input: Đen thẳm */

  /* Toplist Card Tiers: Phân cấp đen đậm - đen nhạt */
  --bg-rank-1: #1E1318;       /* Đen đậm phảng phất ruby sẫm */
  --bg-rank-2: #171722;       /* Đen đậm than chì */
  --bg-rank-3: #161620;       /* Đen đậm */
  --bg-rank-normal: #14141B;  /* Đen sẫm */

  /* Typography Colors */
  --text-main: #FFFFFF;
  --text-body: #E2E8F0;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --text-gold: #FBBF24;
  --text-red: #F87171;
  --gold-red-gradient: linear-gradient(135deg, #FFF089 0%, #FBBF24 40%, #EF4444 80%, #DC2626 100%);

  /* Border Radius Tokens */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --max-width: 1250px;

  /* Typography Stack: Linh hoạt kế thừa hệ thống hoặc tùy biến theo WordPress Customizer */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. GLOBAL LEARNED RULES ENFORCEMENT
   1. KHÔNG DÙNG SHADOW (box-shadow: none !important; text-shadow: none !important;)
   2. KHÔNG DÙNG BORDER (border: none !important; border: 0 !important;)
   3. DÙNG BO GÓC (border-radius hiện đại, tinh tế cho buttons, cards, badges, inputs)
   4. DÙNG GRADIENT CHO BUTTON (nút bấm chuyển sắc nổi bật thu hút tương tác)
   5. LAYOUT FIT HẠN CHẾ KHOẢNG TRỐNG (co giãn fit 100%, compact, low padding, low margin)
   6. DÙNG FONT TỰ CO DÃN 14/16px (clamp 14px - 16px)
   7. KHÔNG SET FONT TRONG CSS (không ép cố định font-family)
   8. KHÔNG ADD CỨNG CSS TRONG HTML (100% semantic classes, không dùng style inline)
   ========================================================================== */
html, :root {
  font-size: clamp(14px, 0.8vw + 11px, 16px) !important;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  background-color: var(--bg-page);
}

*, *::before, *::after {
  box-sizing: inherit;
  box-shadow: none !important;
  text-shadow: none !important;
}

body {
  font-family: var(--font-main);
  font-size: 100% !important;
  line-height: 1.55;
  color: var(--text-body);
  background-color: var(--bg-page);
  margin: 0;
  padding: 0;
  padding-bottom: 64px;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
}

/* Ambient Casino Game Wallpaper (Header & Upper Body Smooth Fade-Out) */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 980px;
  background: 
    linear-gradient(
      180deg,
      rgba(11, 11, 14, 0.2) 0%,
      rgba(11, 11, 14, 0.45) 25%,
      rgba(11, 11, 14, 0.75) 55%,
      rgba(11, 11, 14, 0.95) 85%,
      var(--bg-page) 100%
    ),
    url('assets/images/casino-header-bg.jpg') top center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

.container {
  width: 100% !important;
  max-width: var(--max-width) !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

h1 { font-size: 1.65rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover, a:focus {
  color: #FFFFFF;
  text-decoration: none;
}

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

/* Inline SVG Standard Helper */
.gbdt-svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   3. APP HEADER BAR (NỔ HŨ MOBILE TOPBAR & DESKTOP NAVBAR)
   ========================================================================== */
.site-header {
  background-color: rgba(18, 18, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Mobile Topbar */
.mobile-app-bar {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  padding: 8px 10px;
  gap: 8px;
  background-color: rgba(18, 18, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .mobile-app-bar {
    display: none;
  }
}

.app-menu-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-elevated);
  color: var(--text-gold);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-menu-btn:hover,
.app-menu-btn:active {
  background-color: var(--primary);
  color: #FFFFFF;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.custom-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}



.site-branding .custom-logo {
  max-height: 55px;

}

.app-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.app-logo-wrap .custom-logo-link {
  height: 32px;
}

.app-logo-wrap .custom-logo {
  max-height: 32px;
  max-width: 140px;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
}

.mobile-drawer-brand .custom-logo-link {
  height: 38px;
}

.mobile-drawer-brand .custom-logo {
  max-height: 38px;
  max-width: 160px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}

.nohu-logo .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: var(--gold-bright);
  padding: 4px;
}

.nohu-logo .logo-text {
  font-size: 1.05rem;
  letter-spacing: 0;
  color: #FFFFFF;
  font-weight: 800;
}

@media (min-width: 992px) {
  .nohu-logo .logo-text {
    font-size: 1.35rem;
  }
}

.nohu-logo .logo-accent {
  color: var(--gold-bright);
  margin-left: 1px;
}

.app-vip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.app-vip-btn:hover {
  background: var(--primary-hover-gradient);
  color: var(--gold-bright) !important;
}

/* Desktop Header Navigation */
.desktop-header-row {
  display: none;
}

@media (min-width: 992px) {
  .desktop-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.desktop-nav-menu li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-body);
  background-color: transparent;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.desktop-nav-menu li a:hover,
.desktop-nav-menu li a.active,
.desktop-nav-menu li.current-menu-item a {
  background-color: var(--primary-deep);
  color: var(--gold-bright);
}

.auth-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-pill-register {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
}

.btn-pill-register:hover {
  background: var(--primary-hover-gradient);
  color: var(--gold-bright) !important;
}

.btn-pill-login {
  background: linear-gradient(135deg, #252530 0%, #17171E 100%);
  color: var(--gold-bright) !important;
}

.btn-pill-login:hover {
  background: var(--gold-gradient);
  color: #000000 !important;
}

/* ==========================================================================
   4. CATEGORY QUICK BAR (NỔ HŨ SLOTS QUICK TABS)
   ========================================================================== */
.category-quick-bar {
  background-color: rgba(22, 22, 29, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 0;
  margin-bottom: 10px;
  border-radius: var(--radius-base);
  position: relative;
  z-index: 5;
  width: 100% !important;
  max-width: 100% !important;
}

.cat-tabs-nav {
  width: 100%;
  display: block;
}

.cat-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 4px !important;
  margin: 0 !important;
  list-style: none !important;
}

.cat-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.cat-tabs-scroll > li,
.cat-tab-li {
  display: inline-flex;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.cat-tabs-scroll .sub-menu {
  display: none !important;
}

.cat-tab-item,
.cat-tabs-scroll li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-body);
  background-color: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}

.cat-tab-item .cat-icon,
.cat-tabs-scroll li a .cat-icon {
  display: inline-flex;
  align-items: center;
  color: var(--gold-bright);
  transition: transform 0.2s ease;
}

.cat-tab-item:hover,
.cat-tabs-scroll li a:hover,
.cat-tabs-scroll li:hover > a {
  background-color: var(--primary-deep);
  color: var(--gold-bright);
  border-color: rgba(234, 179, 8, 0.25);
}

.cat-tab-item:hover .cat-icon,
.cat-tabs-scroll li a:hover .cat-icon {
  transform: scale(1.1);
}

.cat-tab-item.active,
.cat-tabs-scroll li.active > a {
  background: var(--primary-gradient) !important;
  color: #FFFFFF !important;
  border-color: rgba(239, 68, 68, 0.4);
}

.cat-tab-item.active .cat-icon,
.cat-tabs-scroll li.active > a .cat-icon {
  color: var(--gold-bright);
}

/* ==========================================================================
   5. GOLD-RED NUMBER EFFECTS & REALTIME JACKPOT TICKER
   ========================================================================== */
.gold-red-text {
  background: var(--gold-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
}

.jackpot-counter-section {
  margin-bottom: 12px;
  width: 100% !important;
}

.jackpot-counter-card {
  background: linear-gradient(135deg, rgba(22, 22, 31, 0.88) 0%, rgba(18, 18, 23, 0.92) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-base);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

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

.jackpot-badge-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-bright);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.jackpot-flame-icon {
  color: #EF4444;
  display: inline-flex;
  animation: flamePulse 1.6s infinite ease-in-out;
}

@keyframes flamePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}


.jackpot-main-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

@media (min-width: 768px) {
  .jackpot-main-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

.jackpot-display-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jackpot-crown-icon {
  color: var(--gold-bright);
  display: inline-flex;
  flex-shrink: 0;
}

.jackpot-counter-val {
  font-size: clamp(1.6rem, 2.5vw + 12px, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
  background: var(--gold-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.jackpot-currency-badge {
  background: var(--primary-gradient);
  color: #FFF089;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.jackpot-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.jackpot-cta-btn:hover {
  background: var(--primary-hover-gradient);
  color: var(--gold-bright) !important;
}

.jackpot-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background-color: #111116;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
  .jackpot-stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 8px 16px;
  }
}

.jackpot-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jackpot-stat-item .stat-icon {
  color: var(--gold-bright);
  display: inline-flex;
  flex-shrink: 0;
}

.jackpot-stat-item .stat-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.jackpot-stat-item .stat-number {
  font-size: 1.05rem;
  font-weight: 900;
}

.jackpot-stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   6. APP GAME SLIDER (SẢNH NỔ HŨ HOT - SLIDER MƯỢT MÀ 5 CỘT DESKTOP / 2.5 CỘT MOBILE)
   ========================================================================== */
.app-game-grid-section {
  margin-bottom: 12px;
  background-color: rgba(22, 22, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px;
  border-radius: var(--radius-base);
  position: relative;
  z-index: 5;
  width: 100% !important;
  max-width: 100% !important;
}

.section-app-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.section-app-title h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.section-title-icon {
  display: inline-flex;
  align-items: center;
  color: var(--gold-bright);
}

.section-app-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-slider-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.section-slider-btn:hover {
  background: var(--primary-gradient);
  color: #FFFFFF;
}

.section-app-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  margin-left: 4px;
}

.section-app-more:hover {
  color: #FFFFFF;
}

/* Slider Inner Wrap */
.app-game-grid-inner.app-game-slider {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
}

/* Viewport: native smooth horizontal scroll snap */
.game-slider-viewport {
  container-type: inline-size;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 6px;
}

.game-slider-viewport::-webkit-scrollbar {
  display: none;
}

/* Track: expands horizontally to fit all cards */
.game-slider-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  min-width: 100%;
}

@media (min-width: 960px) {
  .game-slider-track {
    gap: 10px;
  }
}

/* 1. Mobile (default): EXACTLY 2.5 COLUMNS */
.game-slider-item {
  scroll-snap-align: start;
  flex: 0 0 calc((100cqw - 16px) / 2.5) !important;
  width: calc((100cqw - 16px) / 2.5) !important;
  max-width: calc((100cqw - 16px) / 2.5) !important;
  min-width: calc((100cqw - 16px) / 2.5) !important;
  box-sizing: border-box;
}

/* Fallback for browsers without Container Queries */
@supports not (width: 1cqw) {
  .game-slider-item {
    flex: 0 0 calc((100vw - 60px) / 2.5) !important;
    width: calc((100vw - 60px) / 2.5) !important;
    max-width: calc((100vw - 60px) / 2.5) !important;
    min-width: calc((100vw - 60px) / 2.5) !important;
  }
}

/* 2. Tablet (600px - 959px): 3.5 COLUMNS */
@media (min-width: 600px) and (max-width: 959px) {
  .game-slider-item {
    flex: 0 0 calc((100cqw - 24px) / 3.5) !important;
    width: calc((100cqw - 24px) / 3.5) !important;
    max-width: calc((100cqw - 24px) / 3.5) !important;
    min-width: calc((100cqw - 24px) / 3.5) !important;
  }
}

/* 3. Desktop (>= 960px): EXACTLY 5 COLUMNS */
@media (min-width: 960px) {
  .game-slider-item {
    flex: 0 0 calc((100cqw - 40px) / 5) !important;
    width: calc((100cqw - 40px) / 5) !important;
    max-width: calc((100cqw - 40px) / 5) !important;
    min-width: calc((100cqw - 40px) / 5) !important;
  }
}

/* Card Styling inside Slider */
.game-app-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  position: relative;
  background: linear-gradient(180deg, #1D1D2B 0%, #151520 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding: 8px 6px;
  border-radius: var(--radius-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
}

.game-app-card:hover {
  background: linear-gradient(180deg, #252538 0%, #1B1B2A 100%) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-2px);
}

.card-tag-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.2px;
}

.card-icon-box {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0E0E12;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-base);
  overflow: hidden;
  margin-top: 2px;
  flex-shrink: 0;
}

.card-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-base) - 1px);
}

.card-icon-svg {
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.card-icon-svg svg {
  width: 44px;
  height: 44px;
}

.card-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.card-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-action-text {
  display: block;
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.card-action-text:hover,
.game-app-card:hover .card-action-text {
  background: var(--primary-hover-gradient);
  color: #FFF089 !important;
}

/* Side navigation arrows on track */
.game-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background-color: rgba(22, 22, 29, 0.9);
  color: var(--gold-bright);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  padding: 0;
}

@media (min-width: 960px) {
  .game-slider-arrow {
    display: inline-flex;
    opacity: 0;
  }
  .app-game-slider:hover .game-slider-arrow {
    opacity: 1;
  }
}

.game-slider-arrow:hover {
  background: var(--primary-gradient);
  color: #FFFFFF;
}

.game-slider-arrow.prev {
  left: -8px;
}

.game-slider-arrow.next {
  right: -8px;
}

/* ==========================================================================
   7. TOPLIST GAME NỔ HŨ (SUPER CLARITY, HIGH CONTRAST, MODERN FLAT DESIGN)
   ========================================================================== */
.toplist-clean-wrapper {
  margin-bottom: 16px;
}

/* Table Header Bar on Desktop (Creates absolute structural clarity) */
.toplist-table-header {
  display: none;
}

@media (min-width: 768px) {
  .toplist-table-header {
    display: grid;
    grid-template-columns: 215px 1fr 165px 150px;
    gap: 14px;
    padding: 8px 16px;
    background-color: #0E0E14;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .th-col.th-specs {
    text-align: left;
  }

  .th-col.th-action {
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .toplist-table-header {
    grid-template-columns: 195px 1fr 155px 140px;
    gap: 10px;
    padding: 8px 12px;
  }
}

/* Toplist Clean List Container */
.toplist-clean-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card Item Base */
.toplist-item-card {
  background-color: #171724;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-base);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.toplist-item-card:hover {
  background-color: #1F1F30;
  border-color: rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-2px);
}

/* Rank Tier Themes (Distinct High-Contrast Backgrounds & Distinct Premium Frames) */
.toplist-item-card.rank-1 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, #20141A 60%, #171118 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
}

.toplist-item-card.rank-1:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, #2A1722 60%, #1E121E 100%) !important;
  border-color: #FCD34D !important;
  transform: translateY(-2px);
}

.toplist-item-card.rank-2 {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.1) 0%, #1A1C28 60%, #141522 100%) !important;
  border: 1.5px solid rgba(203, 213, 225, 0.5) !important;
}

.toplist-item-card.rank-2:hover {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.16) 0%, #222436 60%, #1B1D2E 100%) !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px);
}

.toplist-item-card.rank-3 {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, #20181F 60%, #16121D 100%) !important;
  border: 1.5px solid rgba(249, 115, 22, 0.55) !important;
}

.toplist-item-card.rank-3:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, #2A1E29 60%, #1F1726 100%) !important;
  border-color: #FB923C !important;
  transform: translateY(-2px);
}

.toplist-item-card.rank-normal {
  background-color: #171724 !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
}

.toplist-item-card.rank-normal:hover {
  background-color: #202030 !important;
  border-color: rgba(245, 158, 11, 0.55) !important;
  transform: translateY(-2px);
}

/* Desktop Main Row (Unified Grid) */
.toplist-card-main {
  display: none;
}

@media (min-width: 768px) {
  .toplist-card-main {
    display: grid;
    grid-template-columns: 215px 1fr 165px 150px;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .toplist-card-main {
    grid-template-columns: 195px 1fr 155px 140px;
    gap: 10px;
    padding: 10px 12px;
  }
}

/* ==========================================================================
   COL 1: BRAND & RANK (DESKTOP)
   ========================================================================== */
.toplist-brand-sec {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* ==========================================================================
   RANK BADGES - HIGH CONTRAST & GRADUAL COLOR TRANSITION (NHẠT DẦN)
   ========================================================================== */
.toplist-rank-badge {
  width: 40px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #2A2A38;
  color: #FFFFFF;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s ease;
}

.toplist-rank-badge .rank-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: inherit !important;
}

.toplist-rank-badge .rank-num {
  font-size: 1.05rem;
  font-weight: 900;
  color: inherit !important;
}

/* Rank 1: Hoàng Kim Gold Rực Rỡ */
.toplist-rank-badge.rank-1 {
  background: linear-gradient(135deg, #FFF089 0%, #F59E0B 50%, #D97706 100%) !important;
  color: #000000 !important;
}

.toplist-rank-badge.rank-1 .rank-crown-svg {
  display: block;
  color: #000000 !important;
  margin-bottom: 2px;
}

/* Rank 2: Bạch Kim Platinum Sáng Bạc */
.toplist-rank-badge.rank-2 {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #94A3B8 100%) !important;
  color: #0B0F19 !important;
}

/* Rank 3: Đồng Ánh Cam Bronze Đậm Nét */
.toplist-rank-badge.rank-3 {
  background: linear-gradient(135deg, #FFEDD5 0%, #FB923C 50%, #EA580C 100%) !important;
  color: #1C0B02 !important;
}

/* Rank 4: Ngọc Lục Bảo Emerald Tươi Sáng */
.toplist-rank-badge.rank-4 {
  background: linear-gradient(135deg, #A7F3D0 0%, #34D399 50%, #10B981 100%) !important;
  color: #022C22 !important;
}

/* Rank 5: Lam Ngọc Biển Ocean Cyan */
.toplist-rank-badge.rank-5 {
  background: linear-gradient(135deg, #BAE6FD 0%, #38BDF8 50%, #0284C7 100%) !important;
  color: #082F49 !important;
}

/* Rank 6: Tím Thạch Anh Amethyst Dịu Dàng */
.toplist-rank-badge.rank-6 {
  background: linear-gradient(135deg, #DDD6FE 0%, #C4B5FD 50%, #8B5CF6 100%) !important;
  color: #1E1035 !important;
}

/* Rank 7: Hồng Ruby Rose Mềm Mại */
.toplist-rank-badge.rank-7 {
  background: linear-gradient(135deg, #FCE7F3 0%, #F472B6 50%, #E11D48 100%) !important;
  color: #370617 !important;
}

/* Rank 8: Cát Vàng Hổ Phách Soft Amber */
.toplist-rank-badge.rank-8 {
  background: linear-gradient(135deg, #FEF3C7 0%, #FCD34D 50%, #D97706 100%) !important;
  color: #1C1300 !important;
}

/* Rank 9: Xám Bạc Khói Slate Mist Nhạt Dần */
.toplist-rank-badge.rank-9 {
  background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 50%, #94A3B8 100%) !important;
  color: #0F172A !important;
}

/* Rank 10: Đá Trầm Warm Stone Tối Giản */
.toplist-rank-badge.rank-10 {
  background: linear-gradient(135deg, #E7E5E4 0%, #D6D3D1 50%, #A8A29E 100%) !important;
  color: #1C1917 !important;
}


/* Logo Box */
.toplist-logo-box {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background-color: #0E0E12;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.toplist-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease;
}

.toplist-item-card:hover .toplist-logo-box img {
  transform: scale(1.06);
}

.toplist-item-card:hover .toplist-brand-name a {
  color: var(--gold-bright);
}

.toplist-item-card:hover .toplist-btn-play {
  background: var(--primary-hover-gradient);
  color: #FFF089 !important;
}

.toplist-item-card:hover .toplist-btn-play svg {
  transform: rotate(90deg);
}

.toplist-logo-fallback {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gold-bright);
}

/* Brand Text Info */
.toplist-brand-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.toplist-name-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toplist-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.toplist-brand-name a {
  color: #FFFFFF;
  transition: color 0.2s ease;
}

.toplist-brand-name a:hover {
  color: var(--gold-bright);
}

.toplist-badge-pill {
  display: inline-block;
  background: linear-gradient(135deg, #7F1D1D 0%, #450A0A 100%);
  color: #FDE047;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Rating Row */
.toplist-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}

.toplist-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold-bright);
}

.toplist-stars svg {
  fill: currentColor;
  display: block;
}

.toplist-score {
  font-size: 0.95rem;
  font-weight: 900;
}

.toplist-max {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   COL 2: PROMO & FEATURES (DESKTOP)
   ========================================================================== */
.toplist-offer-sec {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.toplist-promo-box {
  background-color: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.28) !important;
  border-radius: var(--radius-xs);
  padding: 5px 8px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.toplist-promo-box .promo-tag {
  color: #F87171;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.toplist-promo-box .promo-desc {
  font-size: 0.85rem;
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.25;
}

.toplist-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.toplist-perk-chip {
  display: inline-flex;
  align-items: center;
  background-color: #1E1E28;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

/* ==========================================================================
   COL 3: SPECS & GIFTCODE (DESKTOP)
   ========================================================================== */
.toplist-specs-sec {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.toplist-spec-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.toplist-spec-item .spec-icon {
  color: var(--gold-bright);
  flex-shrink: 0;
}

.toplist-spec-item .spec-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.2;
}

.toplist-spec-item .spec-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.toplist-spec-item .spec-val {
  font-size: 0.84rem;
  font-weight: 700;
  color: #22C55E;
}

.toplist-spec-item.license-item .spec-val {
  color: var(--gold-bright);
}

/* Giftcode Claim Box */
.toplist-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background-color: #111116;
  border: 1px dashed rgba(245, 158, 11, 0.45) !important;
  color: var(--gold-bright);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  max-width: 100%;
}

.toplist-code-btn:hover {
  background-color: #1A1A22;
  border-color: var(--gold-bright) !important;
}

.toplist-code-btn .code-icon {
  color: var(--gold-bright);
  flex-shrink: 0;
}

.toplist-code-btn .code-val-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.toplist-code-btn .code-lbl {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.toplist-code-btn .code-val {
  color: #FDE047;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.toplist-code-btn .code-action {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   COL 4: CTA ACTIONS (DESKTOP)
   ========================================================================== */
.toplist-action-sec {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
}

.toplist-btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.toplist-btn-play:hover {
  background: var(--primary-hover-gradient);
  color: #FFF089 !important;
}

.toplist-btn-play svg {
  color: #FFF089;
  transition: transform 0.3s ease;
}

.toplist-btn-play:hover svg {
  transform: rotate(90deg);
}

.toplist-sub-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.toplist-sub-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  box-sizing: border-box;
  background-color: #20202B;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0 4px;
  border-radius: var(--radius-sm, 5px) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap !important;
  line-height: 1;
  transition: all 0.2s ease;
  text-decoration: none;
}

.toplist-sub-btn span {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toplist-sub-btn:hover {
  background-color: #2A2A38;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: var(--gold-bright);
}

/* Helper for SEO-safe elements without anchor tags */
.is-no-link {
  cursor: default !important;
  text-decoration: none !important;
  user-select: none;
}

/* ==========================================================================
   MOBILE STREAM VIEW (<= 767px) - LOGICAL TOP-DOWN HIGH DENSITY UX
   ========================================================================== */
.toplist-mobile-stream {
  display: none;
}

@media (max-width: 767px) {
  .toplist-card-main {
    display: none !important;
  }

  .toplist-mobile-stream {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
  }

  /* 1. Header */
  .toplist-m-head {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .toplist-m-head .toplist-rank-badge {
    width: 36px;
    height: 40px;
    flex-shrink: 0;
  }

  .toplist-m-head .toplist-logo-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .toplist-m-title-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  .toplist-m-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .toplist-m-name-row .toplist-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
  }

  .toplist-m-name-row .toplist-brand-name a {
    color: #FFFFFF;
  }

  .toplist-m-head .toplist-badge-pill {
    font-size: 0.62rem;
    padding: 2px 5px;
  }

  .toplist-m-head .toplist-rating-row {
    font-size: 0.78rem;
    gap: 3px;
  }

  .toplist-m-head .toplist-score {
    font-size: 0.88rem;
  }

  /* 2. Promo Banner Box */
  .toplist-m-promo-box {
    background-color: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.28) !important;
    border-radius: var(--radius-xs);
    padding: 5px 8px;
    display: flex;
    align-items: baseline;
    gap: 5px;
  }

  .m-promo-tag {
    background: var(--primary-gradient);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
  }

  .m-promo-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
  }

  /* 3. Key Specs & Code */
  .toplist-m-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
  }

  .toplist-m-specs {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
  }

  .m-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background-color: #20202B;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
  }

  .m-spec-chip strong {
    color: #22C55E;
  }

  .m-spec-chip svg {
    color: var(--gold-bright);
  }

  .toplist-code-btn.m-code {
    padding: 3px 6px;
    font-size: 0.72rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .toplist-code-btn.m-code .code-val {
    color: #FDE047;
    margin: 0 2px;
  }

  /* 4. Action Row */
  .toplist-m-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 1px;
    width: 100%;
  }

  .toplist-btn-play.m-play-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
  }

  .toplist-m-sub-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .toplist-m-sub-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 28px;
    box-sizing: border-box;
    background-color: #20202B;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0 4px;
    border-radius: var(--radius-sm, 5px) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap !important;
    line-height: 1;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .toplist-m-sub-btn span {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .toplist-m-sub-btn:hover {
    background-color: #2A2A38;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: var(--gold-bright);
  }
}

/* ==========================================================================
   8. LAYOUT ARCHITECTURE & CONTENT PANELS (THE_CONTENT)
   ========================================================================== */
.site-content {
  padding: 8px 0 16px;
  position: relative;
  z-index: 1;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.layout-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 992px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: start;
  }
}

.box-panel {
  background-color: #121218;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 14px 16px;
  border-radius: var(--radius-base);
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .box-panel {
    padding: 18px 22px;
  }
}

.article-header {
  margin-bottom: 14px;
}

.entry-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .entry-title {
    font-size: 1.75rem;
  }
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.entry-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.entry-meta .meta-item strong {
  color: var(--gold-bright);
}

.seo-lead-summary {
  background-color: var(--bg-elevated);
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.65;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-style: italic;
}

/* SEO Content Styles */
.entry-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
}

.entry-content h2 {
  font-size: 1.35rem;
  color: var(--text-main);
  background-color: var(--bg-elevated);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  margin-bottom: 10px;
}

.entry-content h3 {
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin-top: 16px;
  margin-bottom: 8px;
}

.entry-content h4 {
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-top: 14px;
  margin-bottom: 6px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.entry-content li {
  margin-bottom: 6px;
}

.entry-content strong {
  color: #FFFFFF;
}

.entry-content blockquote {
  background-color: var(--primary-deep);
  color: var(--text-body);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  font-style: italic;
}

/* Tables inside content */
.entry-content table,
table.portal-specs-table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  margin: 14px 0;
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content th,
.portal-specs-table th {
  background: var(--primary-deep);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 14px;
  text-align: left;
}

.entry-content td,
.portal-specs-table td {
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text-body);
  background-color: var(--bg-card);
}

.entry-content tr:nth-child(even) td,
.portal-specs-table tr:nth-child(even) td {
  background-color: var(--bg-elevated);
}

.portal-specs-table .col-label {
  font-weight: 700;
  color: var(--gold-bright);
  background-color: var(--primary-subtle);
  width: 32%;
}

/* Table of Contents */
.table-of-contents,
.toc-box {
  background-color: #171724;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.toc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.toc-toggle-btn {
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list li a {
  color: var(--text-body);
  font-size: 0.95rem;
}

.toc-list li a:hover {
  color: var(--gold-bright);
}

/* FAQ Accordion */
.faq-container {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  background-color: #171724;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: var(--bg-card-hover);
  color: var(--gold-bright);
}

.faq-icon {
  display: inline-flex;
  color: var(--gold-bright);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 14px 12px;
  color: var(--text-body);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Callout Box Shortcode */
.nohu-callout {
  padding: 12px 16px;
  margin: 12px 0;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.nohu-callout.callout-green {
  background-color: #0F2314;
}

.nohu-callout.callout-amber {
  background-color: #2D1A05;
}

.nohu-callout.callout-red {
  background-color: var(--primary-deep);
}

.nohu-callout .callout-title {
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--gold-bright);
  font-size: 1.05rem;
  font-weight: 800;
}

.nohu-callout .callout-body {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* Single Game Portal Summary Box */
.portal-summary-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background-color: var(--bg-elevated);
  padding: 14px;
  border-radius: var(--radius-base);
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .portal-summary-hero {
    grid-template-columns: 90px 1fr auto;
    align-items: center;
  }
}

.portal-summary-thumb {
  width: 90px;
  height: 90px;
  background-color: var(--bg-header);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portal-thumb-fallback {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-bright);
}

.portal-summary-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-summary-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.portal-summary-promo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-red);
  font-weight: 700;
  font-size: 0.95rem;
}

.portal-summary-code {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.code-badge {
  background-color: var(--gold-badge-bg);
  color: var(--gold-bright);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 800;
}

.portal-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.portal-summary-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.2s ease;
}

.portal-summary-actions .btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
}

.portal-summary-actions .btn-primary:hover {
  background: var(--primary-hover-gradient);
  color: var(--gold-bright) !important;
}

.portal-summary-actions .btn-gold {
  background: var(--gold-gradient);
  color: #000000 !important;
}

.portal-summary-actions .btn-gold:hover {
  background: var(--gold-hover-gradient);
}

/* ==========================================================================
   9. SIDEBAR & WIDGETS (STICKY, HIGH DENSITY, DARK RED & GOLD)
   ========================================================================== */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 992px) {
  .sidebar-column {
    position: sticky;
    top: 14px;
  }
}

.widget {
  background-color: #121218;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px;
  border-radius: var(--radius-base);
  margin-bottom: 12px;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #181824;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 8px 12px;
  margin: -12px -12px 10px -12px;
  border-top-left-radius: var(--radius-base);
  border-top-right-radius: var(--radius-base);
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget-title-icon {
  display: inline-flex;
  align-items: center;
  color: var(--gold-bright);
}

/* Widget 1: Top Hũ Nổ Lớn Hôm Nay */
.widget-top-mini {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.widget-top-mini li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background-color: #171724;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.widget-top-mini li:hover {
  background-color: #1F1F30;
  border-color: rgba(245, 158, 11, 0.45) !important;
}

.mini-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}

.mini-rank {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 900;
  background-color: var(--bg-card);
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.mini-rank.rank-1 {
  background: var(--gold-gradient);
  color: #000000;
}

.mini-rank.rank-2 {
  background-color: #94A3B8;
  color: #000000;
}

.mini-rank.rank-3 {
  background-color: #D97706;
  color: #FFFFFF;
}

.mini-thumb {
  width: 26px;
  height: 26px;
  background-color: var(--bg-header);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mini-fallback-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.mini-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.mini-name:hover {
  color: var(--gold-bright);
}

.mini-speed {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-jackpot-num {
  color: var(--gold-bright);
  font-weight: 800;
}

.btn-mini-play {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  text-align: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-mini-play:hover {
  background: var(--primary-hover-gradient);
  color: var(--gold-bright) !important;
}

/* Widget 2: Bài Viết Quay Hũ Mới Nhất */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-post-card {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px;
  background-color: #171724;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.recent-post-card:hover {
  background-color: #1F1F30;
  border-color: rgba(245, 158, 11, 0.45) !important;
}

.recent-post-thumb {
  width: 84px;
  height: 58px;
  flex-shrink: 0;
  background-color: var(--bg-header);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.recent-thumb-fallback {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-post-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
}

.recent-post-meta-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.recent-post-cat {
  background-color: var(--primary-deep);
  color: var(--gold-bright);
  font-size: 70%;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
}

.recent-post-date {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.recent-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.recent-post-title a {
  color: var(--text-body);
}

.recent-post-title a:hover {
  color: var(--gold-bright);
}

/* ==========================================================================
   10. FOOTER & MOBILE DOCK (SEO CREDIBILITY, TAILORED TO NỔ HŨ)
   ========================================================================== */
.site-footer {
  background-color: #0B0B0F;
  padding-top: 32px;
  margin-top: 30px;
}

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

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

@media (min-width: 992px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
  }
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links li a::before {
  content: "»";
  color: var(--gold-bright);
  font-size: 1rem;
}

.footer-links li a:hover {
  color: var(--gold-bright);
  transform: translateX(3px);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 5px 10px;
}

.trust-badge-item svg {
  color: var(--gold-bright);
}

/* Footer Bottom Bar */
.footer-bottom {
  background-color: #07070A;
  padding: 16px 0;
  margin-top: 10px;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.disclaimer-18 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.badge-18plus {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.92rem;
  padding: 2px 8px;
}

.copyright-text {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* Floating Promo Widget (Desktop only) */
.floating-promo-widget {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}

@media (min-width: 992px) {
  .floating-promo-widget {
    display: block;
  }
}

.floating-close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  padding: 0;
}

.floating-promo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-wine-gradient);
  color: #FFFFFF;
  padding: 12px 18px;
}

.floating-promo-icon {
  color: var(--gold-bright);
  display: flex;
  align-items: center;
}

.floating-promo-text {
  display: flex;
  flex-direction: column;
}

.floating-promo-text .promo-sub {
  font-size: 0.92rem;
  color: var(--gold-bright);
  font-weight: 700;
}

.floating-promo-text .promo-main {
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
}

/* Mobile App Bottom Navigation Dock */
.mobile-app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--bg-header);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 9999;
}

@media (min-width: 992px) {
  .mobile-app-bottom-nav {
    display: none;
  }
}

.bottom-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.bottom-nav-tab svg {
  stroke: currentColor;
}

.bottom-nav-tab:hover,
.bottom-nav-tab.active {
  color: var(--gold-bright);
}

.bottom-nav-tab.active svg {
  color: var(--gold-bright);
}

/* ==========================================================================
   11. MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  visibility: hidden;
  transition: visibility 0.25s ease;
}

.mobile-drawer.open {
  visibility: visible;
}

.mobile-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-drawer.open .mobile-drawer-overlay {
  opacity: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85%;
  background-color: var(--bg-header);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: var(--bg-card);
}

.mobile-drawer-close {
  background-color: var(--bg-elevated);
  color: var(--gold-bright);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-drawer-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 0;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-body);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li.current-menu-item a {
  background-color: var(--primary-deep);
  color: var(--gold-bright);
}

.mobile-drawer-footer {
  padding: 16px;
  background-color: var(--bg-card);
}

.mobile-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px;
}

/* ==========================================================================
   12. BREADCRUMBS COMPONENT
   ========================================================================== */
.breadcrumbs-wrapper {
  background-color: var(--bg-header);
  padding: 8px 0;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--gold-bright);
}

.breadcrumb-item.active {
  color: var(--gold-bright);
  font-weight: 700;
}

.breadcrumb-separator {
  color: var(--text-light);
}

/* ==========================================================================
   13. CATEGORY ARCHIVE & PAGINATION
   ========================================================================== */
.category-header-panel {
  background-color: var(--bg-card);
  padding: 14px 16px;
  border-radius: var(--radius-base);
  margin-bottom: 12px;
}

.cat-header-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cat-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-deep);
  color: var(--gold-bright);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.cat-count-pill {
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.category-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.category-desc-box {
  position: relative;
  background-color: var(--bg-elevated);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.category-desc-content {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.btn-cat-toggle {
  background-color: var(--primary-deep);
  color: var(--gold-bright);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-top: 8px;
}

.category-posts-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.cat-post-item {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border-radius: var(--radius-base);
  overflow: hidden;
  transition: background-color 0.2s ease;
}

@media (min-width: 640px) {
  .cat-post-item {
    flex-direction: row;
  }
}

.cat-post-item:hover {
  background-color: var(--bg-card-hover);
}

.cat-post-thumb-col {
  width: 100%;
  overflow: hidden;
}

@media (min-width: 640px) {
  .cat-post-thumb-col {
    width: 200px;
    flex-shrink: 0;
  }
}

.cat-thumb-link {
  display: block;
  width: 100%;
  height: 140px;
  background-color: var(--bg-header);
  overflow: hidden;
}

.cat-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 0.95rem;
  font-weight: 700;
  gap: 6px;
}

.cat-post-content-col {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.cat-post-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}

.cat-post-title a {
  color: var(--text-main);
}

.cat-post-title a:hover {
  color: var(--gold-bright);
}

.cat-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cat-post-excerpt {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

.cat-btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.cat-btn-readmore:hover {
  background: var(--primary-hover-gradient);
  color: var(--gold-bright) !important;
}

/* Pagination */
.category-pagination {
  margin: 16px 0;
}

.category-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.category-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background-color: var(--bg-card);
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
}

.category-pagination .page-numbers.current,
.category-pagination .page-numbers:hover {
  background: var(--primary-gradient);
  color: #FFFFFF;
}

/* Input elements styling */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
select,
textarea {
  background-color: var(--bg-input);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* ==========================================================================
   14. RESPONSIVE FIT 100% OVERFLOW PREVENTION
   ========================================================================== */
@media (max-width: 480px) {
  .app-banner-card.blog-toplist-hero {
    padding: 14px;
  }

  .banner-heading {
    font-size: 1.35rem;
  }

  .toplist-card-main {
    padding: 12px;
  }

  .box-panel {
    padding: 14px;
  }
}
