/* ── Self-hosted Sora font — thay thế Google Fonts ── */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sora-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sora-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/sora-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================
   CASINO GURU THEME - main.css
   ===================================================== */

/* Google Fonts loaded via wp_enqueue_style in functions.php */

:root {
  --primary:      #1a3a5c;
  --accent:       #f5a623;
  --accent-dark:  #e08910;
  --accent2:      #00c853;
  --danger:       #e53935;
  --bg:           #0d1b2e;
  --bg2:          #132340;
  --card:         #1a2e4a;
  --card-border:  #243d60;
  --text:         #e8edf5;
  --text-muted:   #7a96b8;
  --gold:         #f5c842;
  --star-empty:   #2a4060;
  --badge-new:    #00b894;
  --badge-hot:    #e53935;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,0.35);
  --transition:   0.2s ease;
}

/* ============ RESET ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }

/* ============ TOPBAR ============ */
.site-topbar {
  background: #0a1525;
  padding: 6px 0;
  border-bottom: 1px solid #162035;
  font-size: 12px;
  color: var(--text-muted);
}
.topbar-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
/* Topbar nav — hỗ trợ cả hardcode <a> lẫn wp_nav_menu <ul><li><a> */
.topbar-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
.topbar-links ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
.topbar-links li { display: flex; align-items: center; }
.topbar-links a,
.topbar-inner > nav > a {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,.08);
  line-height: 1;
  transition: color .2s;
  white-space: nowrap;
}
.topbar-links li:last-child a,
.topbar-inner > nav > a:last-child { border-right: none; }
.topbar-links a:hover,
.topbar-inner > nav > a:hover { color: var(--accent); }

/* ============ HEADER ============ */
.site-header {
  background: var(--bg2);
  border-bottom: 2px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

/* Logo */
.site-logo {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-logo span { color: #fff; }
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.site-logo img { height: 40px; width: auto; }

/* ============ NAVIGATION ============ */
.site-nav { flex: 1; }
.main-nav-list { display: flex; gap: 2px; align-items: center; }
.menu-item { position: relative; }
.menu-item > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.menu-item > a:hover,
.menu-item:hover > a,
.menu-item.current-menu-item > a {
  background: rgba(255,255,255,0.07);
  color: var(--accent);
}
.menu-item-has-children > a::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.6;
  margin-left: 2px;
}

/* ── Dropdown Sub Menu ── */
.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  padding: 6px;
  z-index: 999;
  min-width: 320px;
  /* 2 cột mặc định */
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  list-style: none;
  /* Fade in */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.menu-item:hover > .sub-menu {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* 1 cột khi ít item */
.sub-menu.cols-1 {
  grid-template-columns: 1fr;
  min-width: 200px;
}

/* Mũi tên trỏ lên */
.sub-menu::before {
  content: '';
  position: absolute;
  top: -7px; left: 20px;
  border: 7px solid transparent;
  border-top: 0;
  border-bottom-color: var(--card-border);
  pointer-events: none;
}
.sub-menu::after {
  content: '';
  position: absolute;
  top: -5px; left: 21px;
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--card);
  pointer-events: none;
}

.sub-menu li { list-style: none; }
.sub-menu li a {
  display: flex;
  align-items: center;
  padding: 8px 11px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: background .12s, color .12s;
  white-space: nowrap;
  text-decoration: none;
}
.sub-menu li a:hover {
  background: rgba(245,166,35,.1);
  color: var(--accent);
}

/* Mega-menu */
.menu-item.mega > .sub-menu {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-width: 600px;
  padding: 20px;
}
.menu-item.mega:hover > .sub-menu { display: grid; opacity: 1; transform: translateY(0); pointer-events: auto; }
.mega-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent);
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
}
.mega-col a { padding: 5px 0 !important; background: none !important; border-radius: 0 !important; }

/* Header Actions */
.header-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,166,35,0.4);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--card-border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* Visit button */
.btn-visit {
  display: block;
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
}
.btn-visit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
}
.btn-review {
  display: block;
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted) !important;
  text-align: center;
  border-radius: 8px;
  font-size: 12px;
  transition: all var(--transition);
}
.btn-review:hover { border-color: var(--text-muted); color: var(--text) !important; }

/* ============ BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.5;
}
.badge-hot         { background: var(--badge-hot); color: #fff; }
.badge-new         { background: var(--badge-new); color: #fff; }
.badge-exclusive   { background: #7c4dff; color: #fff; }
.badge-top         { background: var(--gold); color: #1a2a00; }
.badge-recommended { background: var(--primary); border: 1px solid var(--accent); color: var(--accent); }

/* ============ PAGE HERO ============ */
.page-hero {
  background: linear-gradient(180deg, #091628 0%, var(--bg) 100%);
  padding: 36px 0 0;
  border-bottom: 1px solid var(--card-border);
}
.page-hero-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }

.hero-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 28px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-text p { color: var(--text-muted); font-size: 14px; max-width: 680px; line-height: 1.7; }
.hero-text strong { color: var(--text); }

.author-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a4a7a, #1a3a5c);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info { font-size: 12px; line-height: 1.4; }
.author-info strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.author-info span { color: var(--text-muted); }

.hero-image { width: 240px; flex-shrink: 0; }
.hero-image img {
  width: 100%; height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-image-placeholder {
  width: 100%; height: 150px;
  background: linear-gradient(135deg, #1a3a6c 0%, #0d2240 50%, #1a3a6c 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.hero-image-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(245,166,35,0.15), transparent 60%);
}

/* ============ TABS ============ */
.page-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--card-border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.page-tabs::-webkit-scrollbar { display: none; }
.tab-item {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 18px;
  background: rgba(245,166,35,0.15);
  color: var(--accent);
  border-radius: 20px;
  font-size: 11px;
  padding: 0 6px;
}

/* ============ LAYOUT ============ */
.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}
.content-col { min-width: 0; }

/* ============ FILTER BAR ============ */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.result-count { font-size: 14px; color: var(--text-muted); }
.result-count strong { color: var(--text); }
.filter-controls { display: flex; gap: 8px; align-items: center; }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 9px 32px 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.select-wrap select:focus { border-color: var(--accent); }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 11px;
}
.filter-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.filter-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============ SECTION INTRO BOX ============ */
.section-intro {
  background: rgba(245,166,35,0.06);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.section-intro strong { color: var(--text); }

/* ============ CASINO CARD ============ */
.nha-cai-list { display: flex; flex-direction: column; gap: 14px; }

.nha-cai-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.nha-cai-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border-color: rgba(245,166,35,0.2);
}

.nha-cai-card-inner {
  display: grid;
  grid-template-columns: 58px 180px 1fr auto;
  align-items: stretch;
}

/* Rank */
.nha-cai-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 20px 8px;
  border-right: 1px solid var(--card-border);
  min-width: 58px;
}
.nha-cai-rank.rank-1 { color: var(--gold); }
.nha-cai-rank.rank-2 { color: #c0c0c0; }
.nha-cai-rank.rank-3 { color: #cd7f32; }

/* Logo col */
.nha-cai-logo-col {
  padding: 18px 14px;
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0,0,0,0.1);
}
.nha-cai-logo-wrap {
  width: 148px; height: 74px;
  background: linear-gradient(135deg, #1e3a60, #0d2040);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.nha-cai-logo-wrap::before {
  content:''; position: absolute; inset:0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05), transparent 60%);
}
.nha-cai-logo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.nha-cai-logo-text {
  font-size: 13px; font-weight: 700; color: var(--accent); text-align: center;
  padding: 8px; line-height: 1.3;
}
.safety-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,200,83,0.12);
  border: 1px solid rgba(0,200,83,0.3);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
  white-space: nowrap;
}
.safety-badge.safety-very-high { color: #00e676; border-color: rgba(0,230,118,0.4); }
.safety-badge.safety-high      { color: var(--accent2); }
.safety-badge.safety-medium    { color: var(--accent); border-color: rgba(245,166,35,0.4); background: rgba(245,166,35,0.1); }
.safety-badge.safety-low       { color: var(--danger); border-color: rgba(229,57,53,0.4); background: rgba(229,57,53,0.08); }

/* Info col */
.nha-cai-info { padding: 18px 20px; flex: 1; }
.nha-cai-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.nha-cai-name {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.nha-cai-type-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

/* Stars */
.nha-cai-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 8px 0;
}
.star { font-size: 14px; line-height: 1; }
.star.full  { color: var(--gold); }
.star.half  { color: var(--gold); opacity: 0.6; }
.star.empty { color: var(--star-empty); }
.star-value {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 500;
}

/* Pros / Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
}
.pros-list li, .cons-list li { padding: 3px 0; }
.pros-list li::before { content: '✓ '; color: var(--accent2); font-weight: 700; }
.cons-list li::before { content: '✗ '; color: var(--text-muted); }
.pros-list li { color: #a8d8a8; }
.cons-list li { color: var(--text-muted); }

/* Game tags */
.game-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.game-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: linear-gradient(135deg, rgba(26,58,92,0.7), rgba(13,35,68,0.9));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

/* Shimmer line trên cùng */
.game-tag::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.game-tag.available {
  color: var(--text);
  border-color: rgba(245,166,35,0.15);
  background: linear-gradient(135deg, rgba(26,58,92,0.8), rgba(18,42,80,0.95));
}

.game-tag.available:hover {
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(224,137,16,0.08));
  border-color: rgba(245,166,35,0.45);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 1px rgba(245,166,35,0.15);
}
.game-tag.available:hover::before { opacity: 1; }

.game-tag.unavailable { opacity: 0.35; text-decoration: line-through; pointer-events: none; }

/* Icon emoji trong tag */
.game-tag .gt-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  filter: grayscale(0.3);
  transition: filter 0.2s, transform 0.2s;
}
.game-tag.available:hover .gt-icon {
  filter: grayscale(0);
  transform: scale(1.15);
}
.game-tag .gt-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Arrow hint */
.game-tag.available::after {
  content: '›';
  position: absolute;
  right: 10px;
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}
.game-tag.available:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1100px) {
  .game-types { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .game-types { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .game-tag { padding: 8px 10px; font-size: 11px; }
  .game-tag .gt-icon { font-size: 14px; }
}

/* Meta row */
.nha-cai-meta {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Action col */
.nha-cai-action {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 190px;
  border-left: 1px solid var(--card-border);
  background: rgba(0,0,0,0.1);
  justify-content: center;
}
.bonus-box {
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(245,166,35,0.04));
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.bonus-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.bonus-value { font-size: 13px; font-weight: 700; color: var(--accent); line-height: 1.4; }
.tc-text { font-size: 10px; color: var(--text-muted); text-align: center; }

/* Warning strip */
.nha-cai-warning-strip {
  padding: 8px 16px;
  background: rgba(229,57,53,0.08);
  border-top: 1px solid rgba(229,57,53,0.2);
  font-size: 11px;
  color: #ef9a9a;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.nha-cai-warning-strip .warn-icon { flex-shrink: 0; }

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; align-self: start; }
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card-body { padding: 16px; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-item {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.stat-number { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }

/* Filter sidebar */
.sidebar-filter-group { margin-bottom: 16px; }
.sidebar-filter-group:last-child { margin-bottom: 0; }
.sidebar-filter-group h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
}
.checkbox-list { display: flex; flex-direction: column; gap: 6px; }
.checkbox-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition);
}
.checkbox-item:hover { color: var(--text); }
.checkbox-item input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; flex-shrink: 0; }
.checkbox-item .count-pill {
  margin-left: auto;
  background: rgba(255,255,255,0.06);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  flex-shrink: 0;
}

/* Mini nhà cái list */
.mini-nha-cai-list { display: flex; flex-direction: column; gap: 8px; }
.mini-casino {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.15);
  transition: background var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.mini-casino:hover { background: rgba(255,255,255,0.05); }
.mini-rank {
  font-size: 13px; font-weight: 800;
  font-family: 'Sora', sans-serif;
  width: 20px; text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.mini-logo {
  width: 40px; height: 30px;
  background: linear-gradient(135deg, #1e3a60, #0d2040);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.mini-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mini-info { flex: 1; min-width: 0; }
.mini-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.mini-safety { font-size: 11px; color: var(--accent2); }
.mini-score {
  font-size: 12px; font-weight: 700;
  color: var(--accent2);
  background: rgba(0,200,83,0.1);
  padding: 3px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* RG card */
.rg-card { border-color: rgba(229,57,53,0.25); }
.rg-card .sidebar-card-header { color: #ef9a9a; }
.rg-card .sidebar-card-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============ LOAD MORE ============ */
.load-more-wrap { text-align: center; margin-top: 28px; }
.btn-load-more {
  padding: 13px 40px;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-load-more:hover { border-color: var(--accent); color: var(--accent); }
.btn-load-more:disabled { opacity: 0.5; cursor: default; }
.no-more-text { font-size: 13px; color: var(--text-muted); }

/* ============ SINGLE CASINO PAGE ============ */
.single-nha-cai-hero {
  background: linear-gradient(180deg, #091628 0%, var(--bg) 100%);
  padding: 40px 0;
  border-bottom: 1px solid var(--card-border);
}
.single-nha-cai-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
}
.single-nha-cai-logo {
  width: 180px; height: 90px;
  background: linear-gradient(135deg, #1e3a60, #0d2040);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  overflow: hidden;
}
.single-nha-cai-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.single-nha-cai-meta { flex: 1; }
.single-nha-cai-meta h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
}
.single-nha-cai-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.single-stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
}
.single-stat .s-value { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: var(--accent); }
.single-stat .s-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.single-nha-cai-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

/* Review score */
.review-score-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.review-score-value {
  font-family: 'Sora', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.review-score-max { font-size: 20px; color: var(--text-muted); }
.review-score-label { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* Content styles */
.entry-content { max-width: 100%; }
.entry-content h2 { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.entry-content h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 600; margin: 22px 0 10px; }
.entry-content p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.75; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 14px; color: var(--text-muted); }
.entry-content li { margin-bottom: 6px; line-height: 1.7; }
.entry-content ul { list-style: disc; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.entry-content th, .entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  font-size: 13px;
  text-align: left;
}
.entry-content th { background: rgba(255,255,255,0.05); color: var(--text); font-weight: 600; }
.entry-content td { color: var(--text-muted); }

/* ============ BLOG ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-image { height: 180px; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-body { padding: 16px; }
.post-card-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}
.post-card-title { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.post-card-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 12px; }

/* ============ FOOTER ============ */
.site-footer {
  background: #080f1a;
  border-top: 1px solid var(--card-border);
  padding: 52px 0 0;
  margin-top: 60px;
}
.footer-inner { max-width: 1280px; margin: auto; padding: 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col-about .footer-logo {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.footer-col-about .footer-logo span { color: #fff; }
.footer-col-about p { font-size: 13px; color: var(--text-muted); line-height: 1.75; max-width: 280px; }
.footer-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.age-badge {
  display: inline-flex;
  align-items: center;
  background: var(--danger);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}
.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.responsible-gambling-strip {
  background: rgba(229,57,53,0.08);
  border-top: 1px solid rgba(229,57,53,0.15);
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  color: #ef9a9a;
  line-height: 1.6;
}
.responsible-gambling-strip a { color: #ef9a9a; text-decoration: underline; }

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 0 10px;
  transition: all var(--transition);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============ FORMS ============ */
.search-form { display: flex; gap: 8px; }
.search-field {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.search-field:focus { border-color: var(--accent); }
.search-field::placeholder { color: var(--text-muted); }

/* ============ NOTICES ============ */
.notice-box {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice-warning { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.3); color: #fdd57e; }
.notice-danger  { background: rgba(229,57,53,0.1);  border: 1px solid rgba(229,57,53,0.3);  color: #ef9a9a; }
.notice-success { background: rgba(0,200,83,0.1);   border: 1px solid rgba(0,200,83,0.3);   color: #a8e6c0; }
.notice-icon { flex-shrink: 0; }

/* ============ UTILITIES ============ */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--accent2); }
.text-danger  { color: var(--danger); }
.font-sora    { font-family: 'Sora', sans-serif; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }



/* ============================================================
   HEADER v2 — Desktop nav, icon buttons, hamburger
   ============================================================ */

/* Replace old .site-nav with .site-nav-desktop */
.site-nav-desktop { flex: 1; }
.site-nav-desktop .main-nav-list { display: flex; gap: 2px; align-items: center; }

/* Renamed nav-toggle → hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 7px;
  background: none;
  border: none;
  border-radius: 7px;
  transition: background var(--transition);
  flex-shrink: 0;
  order: 10; /* desktop: về cuối sau nav và header-actions */
}
.hamburger:hover { background: rgba(255,255,255,0.07); }
.ham-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.is-open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header icon button */
.hdr-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.hdr-icon-btn:hover { background: rgba(245,166,35,0.12); border-color: rgba(245,166,35,0.3); color: var(--accent); }

/* Topbar */
.topbar-badge { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   OFF-CANVAS MENU
   ============================================================ */
.oc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1100;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.oc-overlay.is-visible {
  display: block;
  opacity: 1;
}

.oc-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #0f1f35;
  border-left: 1px solid var(--card-border);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.oc-menu.is-open {
  transform: translateX(0);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}

.oc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}
.oc-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}
.oc-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: all var(--transition);
}
.oc-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.oc-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  overscroll-behavior: contain;
}
.oc-nav-list { list-style: none; margin: 0; padding: 0; }
.oc-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.04); }
.oc-nav-list li a {
  display: block;
  padding: 13px 22px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.oc-nav-list li a:hover,
.oc-nav-list li.current-menu-item > a { color: var(--accent); background: rgba(245,166,35,0.07); }
/* Sub-menu in off-canvas — đóng mặc định, mở khi click */
.oc-nav-list .sub-menu { display: none; position: static; box-shadow: none; border: none; padding: 0; background: rgba(0,0,0,0.2); border-radius: 0; }
.oc-nav-list .sub-menu.is-open { display: block; }
.oc-nav-list .sub-menu li a { padding: 8px 16px 8px 32px; font-size: 12px; color: var(--text-muted); border-radius: 5px; }
.oc-nav-list .sub-menu li a:hover { color: var(--accent); background: rgba(245,166,35,.06); }
/* Mũi tên toggle */
.oc-nav-list .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
.oc-submenu-arrow { font-size: 11px; color: var(--text-muted); transition: transform .25s; flex-shrink: 0; margin-left: 8px; pointer-events: none; }
.oc-nav-list .menu-item-has-children.is-open > a .oc-submenu-arrow { transform: rotate(180deg); }

.oc-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  flex-shrink: 0;
}
.oc-footer a { color: var(--text-muted); font-size: 12px; text-decoration: none; }
.oc-footer a:hover { color: var(--accent); }
.oc-age { width: 100%; font-size: 11px; color: #2a4060; margin-top: 4px; }

/* ============================================================
   SEARCH POPUP
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
  background: rgba(4,11,22,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.search-popup {
  width: min(680px, calc(100vw - 32px));
  background: #0f1f35;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
}
.search-overlay.is-open .search-popup {
  transform: translateY(0) scale(1);
}

.search-popup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--card-border);
}
.search-popup-title { font-family: 'Sora',sans-serif; font-size: 15px; font-weight: 700; color: var(--text); }
.search-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 5px;
  display: flex;
  align-items: center;
  transition: all var(--transition);
}
.search-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }

/* Search field */
.search-field-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 18px 20px 0;
  background: rgba(0,0,0,0.3);
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.search-field-row:focus-within { border-color: var(--accent); }
.sfi { color: var(--text-muted); flex-shrink: 0; margin-left: 14px; }
.search-field-input {
  flex: 1;
  padding: 14px 12px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
}
.search-field-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.search-field-btn {
  padding: 10px 18px;
  margin: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.search-field-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,166,35,0.35); }

/* Type chips */
.search-types {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  flex-wrap: wrap;
}
.search-types-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.s-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.s-chip { cursor: pointer; }
.s-chip input { display: none; }
.s-chip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--card-border);
  color: var(--text-muted);
  transition: all 0.18s ease;
  user-select: none;
}
.s-chip:hover span { border-color: var(--accent); color: var(--accent); }
.s-chip input:checked + span {
  background: rgba(245,166,35,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Explore grid */


/* Live search */
.search-live { padding: 0 20px 16px; }
.search-live-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--text);
  transition: background var(--transition);
}
.search-live-item:hover { background: rgba(255,255,255,0.05); }
.search-live-item .sli-type { font-size: 10px; color: var(--text-muted); background: rgba(255,255,255,0.07); padding: 2px 7px; border-radius: 10px; flex-shrink: 0; }
.search-live-item .sli-title { font-size: 14px; font-weight: 500; }

/* ============================================================
   RESPONSIVE — Complete rewrite
   ============================================================ */

/* 1100px: Archive/listing layout collapses */
@media (max-width: 1100px) {
  .main-wrap { grid-template-columns: 1fr; }
  /* .sidebar dùng cho archive, single-nha-cai dùng .single-sidebar riêng */
  .sidebar { display: none; }
}

/* 960px: Reduce header gap */
@media (max-width: 960px) {
  .header-inner { gap: 16px; }
  .site-nav-desktop .menu-item > a { padding: 7px 10px; font-size: 13px; }
}

/* 768px: Switch to hamburger, hide desktop nav */
@media (max-width: 768px) {
  .site-topbar { display: none; }
  .site-nav-desktop { display: none; }
  .hamburger { display: flex; }

  /* Mobile header: hamburger trái | logo giữa | search phải */
  .header-inner {
    gap: 0 !important;
    justify-content: space-between;
    position: relative;
    padding: 0 16px;
  }
  .hamburger {
    order: 0; /* mobile: về trái */
  }
  .site-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 6px;
    z-index: 1;
    white-space: nowrap;
    flex-shrink: unset;
    order: 1;
  }
  .site-logo span { font-size: 16px; }
  .site-logo img { height: 30px; }
  .header-actions {
    gap: 0;
    order: 2; /* mobile: về phải */
  }

  /* Single casino hero: stack vertically */
  .single-nha-cai-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .single-nha-cai-logo { width: 100%; height: 120px; }
  .single-nha-cai-actions { min-width: unset; }
  .single-nha-cai-stats { gap: 10px; }
  .single-stat { padding: 8px 12px; }
  .single-stat .s-value { font-size: 16px; }

  /* Detail table: stack label/value */
  .dt-label { width: 100%; display: block; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* 640px: Mobile */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .header-inner { padding: 0 16px; }

  /* Card: full stack layout */
  .nha-cai-card-inner {
    display: flex;
    flex-direction: column;
  }
  .nha-cai-rank { display: none; }
  .nha-cai-logo-col {
    flex-direction: row;
    padding: 12px 14px;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
  }
  .nha-cai-logo-wrap { width: 110px; height: 56px; flex-shrink: 0; }
  .nha-cai-info { padding: 12px 14px; }
  .nha-cai-name { font-size: 15px; }
  .nha-cai-action {
    border-top: 1px solid var(--card-border);
    padding: 12px 14px;
    min-width: unset;
  }

  /* Game tags: truncate */
  .game-types { gap: 4px; }
  .game-tag { font-size: 10px; padding: 3px 8px; }

  /* Hero */
  .hero-content { flex-direction: column; gap: 28px; }
  .hero-image { display: none; }
  .hero-text h1 { font-size: clamp(22px,7vw,36px); }
  .hero-stats { gap: 12px; }
  .hero-stat { padding: 10px 14px; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-controls { width: 100%; flex-wrap: wrap; }

  /* Type tabs */
  .type-tabs { gap: 6px; padding-bottom: 12px; }
  .type-tab { font-size: 12px; padding: 6px 12px; }

  /* Single page */
  .single-nha-cai-hero { padding: 24px 0; }
  .single-nha-cai-logo { height: 90px; }
  .single-nha-cai-stats { gap: 8px; }
  .single-stat { padding: 7px 10px; }
  .single-stat .s-value { font-size: 14px; }

  /* Detail table: full width cells */
  .detail-table, .detail-table tbody, .detail-table tr, .dt-label, .dt-value {
    display: block; width: 100%;
  }
  .dt-label { padding: 10px 14px 3px; font-size: 12px; color: var(--text-muted); }
  .dt-value { padding: 3px 14px 10px; border-bottom: 1px solid var(--card-border); }
  .detail-table tr:last-child .dt-value { border-bottom: none; }

  /* Main wrap padding */
  .main-wrap { padding: 0 12px; }
  .site-main { padding: 20px 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { padding: 0 16px; }

  /* Pros/cons */
  .pros-cons { flex-direction: column; gap: 16px; }
  .nca-2col,.qa-grid { grid-template-columns: 1fr; }
  .nca-review-pros-cons { grid-template-columns: 1fr; }

  /* Search explore: 2 cols on mobile */
  .search-popup {
    border-radius: 12px 12px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    transform: translateY(100%); /* mobile: trượt từ dưới lên */
  }
  .search-overlay { align-items: flex-end; padding-top: 0; }
  .search-overlay.is-open .search-popup { transform: translateY(0); }
}

/* 400px: Very small phones */
@media (max-width: 400px) {
  .hero-text h1 { font-size: 20px; }
  .nha-cai-logo-wrap { width: 90px; height: 46px; }
  .single-nha-cai-logo { height: 70px; }
}

/* Utility */
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── Game tags trong card listing: inline pill, nhỏ hơn sidebar ── */
.card-game-types {
  display: flex !important;
  grid-template-columns: unset !important;
  flex-wrap: wrap;
  gap: 5px !important;
}
.card-game-types .game-tag {
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
  background: rgba(26,58,92,0.7);
  border-color: rgba(255,255,255,0.07);
}
.card-game-types .game-tag::after { display: none; }
.card-game-types .game-tag .gt-icon { font-size: 12px; }
.card-game-types .game-tag .gt-name { font-size: 11px; }

/* ── Sidebar quick needs ── */
.sb-quick-list { display:flex; flex-direction:column; gap:4px; }
.sb-quick-item {
  display:flex; align-items:center; gap:10px;
  padding:9px 10px; border-radius:8px;
  text-decoration:none; color:var(--text);
  transition:all .2s;
  border:1px solid transparent;
}
.sb-quick-item:hover {
  background:rgba(245,166,35,.07);
  border-color:rgba(245,166,35,.2);
  color:var(--text);
}
.sb-quick-icon { font-size:18px; flex-shrink:0; width:26px; text-align:center; }
.sb-quick-text { flex:1; min-width:0; }
.sb-quick-label { display:block; font-size:13px; font-weight:600; color:var(--text); }
.sb-quick-desc  { display:block; font-size:11px; color:var(--text-muted); margin-top:1px; }
.sb-quick-arrow {
  color:var(--accent); font-size:18px; font-weight:700;
  opacity:0; transform:translateX(-4px);
  transition:all .2s;
}
.sb-quick-item:hover .sb-quick-arrow { opacity:1; transform:translateX(0); }

/* Bonus content CTA block */
.bonus-cta-block {
  background: linear-gradient(135deg, rgba(245,166,35,.1), rgba(245,166,35,.05));
  border: 1px solid rgba(245,166,35,.3);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 24px 0;
}
.bonus-cta-block p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.bonus-cta-block a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.bonus-cta-block a:hover { opacity: .8; }

/* ── Author Box ── */
.ncg-author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
  margin: 36px 0 8px;
}
.ncg-ab-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--card-border);
}
.ncg-ab-avatar-ph {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.ncg-ab-body { flex: 1; min-width: 0; }
.ncg-ab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.ncg-ab-name {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.ncg-ab-role { font-size: 12px; color: var(--text-muted); }
.ncg-ab-profile-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.ncg-ab-profile-link:hover { text-decoration: underline; }
.ncg-ab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.ncg-ab-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: 20px;
  color: var(--accent);
  font-weight: 600;
}
.ncg-ab-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 600px) {
  .ncg-author-box { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .ncg-ab-header { justify-content: center; }
  .ncg-ab-tags { justify-content: center; }
}

/* ── Global: Logo nhà cái — luôn contain, không bị crop ── */
/* Override cả width/height attribute do WordPress tự chèn */
.nha-cai-logo-wrap img,
.h2-hc-logo img, .h2-fc-logo img, .h2-cc-logo img, .h2-mini-logo img,
.hp4-ct-logo img, .hp4-bc-logo img, .hp4-nc-logo img,
.sb-casino-logo img, .br-logo img,
.bt-casino-logo img, .nca-casino-logo img,
.ncg-logo-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
}
