/* ==========================================================================
   DEEP OCEAN CYBER LUXURY THEME - BAN CA DOI THUONG 2026
   ========================================================================== */

:root {
  --bg-deep: #010d18;
  --bg-navy: #021426;
  --bg-card: #061c33;
  --bg-card-hover: #0a294a;
  --bg-glass: rgba(6, 28, 51, 0.85);
  --cyan-neon: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --gold-glow: rgba(245, 197, 66, 0.4);
  --gold: #f5c542;
  --gold-dark: #d49f1a;
  --coral-red: #ff4757;
  --text-white: #ffffff;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --border-cyan: rgba(0, 229, 255, 0.2);
  --border-gold: rgba(245, 197, 66, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--cyan-glow);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.ocean-theme {
  background-color: var(--bg-deep);
  background-image: radial-gradient(circle at 50% 0%, #06284d 0%, var(--bg-deep) 70%);
  color: var(--text-light);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

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

a {
  color: var(--cyan-neon);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: #70f3ff;
  text-shadow: 0 0 8px var(--cyan-glow);
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 20, 38, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cyan);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo .main-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

.main-navigation .nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-menu li a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--cyan-neon);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 991px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: var(--bg-navy);
    border-bottom: 1px solid var(--border-cyan);
    padding: 20px;
  }
  .main-navigation.open {
    display: block;
  }
  .main-navigation .nav-menu {
    flex-direction: column;
    gap: 16px;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-login {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--cyan-neon);
}

.btn-register,
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-neon), #00a8cc);
  color: #011424;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.btn-register:hover,
.btn-cyan:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  color: #000;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  box-shadow: 0 0 15px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: #000;
}

.btn-play-huge {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  font-size: 18px;
  padding: 16px 36px;
  border-radius: 50px;
  box-shadow: 0 0 25px rgba(255, 71, 87, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-play-huge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 71, 87, 0.8);
  color: #fff;
}

.btn-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
  50% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.8); }
  100% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */

.hero-banner {
  background: linear-gradient(180deg, rgba(2, 20, 38, 0.8) 0%, rgba(1, 13, 24, 0.95) 100%), url('/assets/images/bg-ban-ca.jpg') center/cover no-repeat;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-cyan);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.hero-title span {
  background: linear-gradient(135deg, var(--gold), var(--cyan-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 820px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--text-light);
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   BRAND LOGO TICKER / PROVIDERS
   ========================================================================== */

.brand-ticker-section {
  padding: 30px 0;
  background: rgba(3, 20, 36, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-heading {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.brand-logos-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-logo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  height: 70px;
}

.brand-logo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.brand-logo-card img {
  max-height: 48px;
  max-width: 110px;
  object-fit: contain;
}

/* ==========================================================================
   GAMES SHOWCASE & TABS
   ========================================================================== */

.section-padding {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-badge {
  color: var(--cyan-neon);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

@media (max-width: 576px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan-neon);
  box-shadow: var(--shadow-glow);
}

.game-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #020c17;
  overflow: hidden;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-thumb img {
  transform: scale(1.1);
}

.game-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.game-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-btn {
  margin-top: auto;
  width: 100%;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
  font-weight: 600;
}

.game-card:hover .game-card-btn {
  background: var(--cyan-neon);
  color: #000;
}

/* ==========================================================================
   TOP 20+ NHA CAI BAN CA TABLE
   ========================================================================== */

.table-top-section {
  background: var(--bg-navy);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-cyan);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 50px;
}

.top-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.top-table th {
  background: #072545;
  color: var(--gold);
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-cyan);
}

.top-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.top-table tr:hover td {
  background: rgba(0, 229, 255, 0.04);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; box-shadow: 0 0 10px rgba(255,215,0,0.6); }
.rank-2 { background: linear-gradient(135deg, #e0e0e0, #a0a0a0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.rank-other { background: rgba(255, 255, 255, 0.1); color: var(--text-light); }

.brand-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-cell img {
  height: 40px;
  max-width: 90px;
  object-fit: contain;
}

.bonus-tag {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

.rating-stars {
  color: #ffb703;
  font-size: 13px;
}

/* Mobile responsive transform table to card */
@media (max-width: 768px) {
  .top-table, .top-table thead, .top-table tbody, .top-table th, .top-table td, .top-table tr {
    display: block;
    width: 100%;
  }
  .top-table thead {
    display: none;
  }
  .top-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    padding: 14px;
  }
  .top-table td {
    padding: 8px 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .top-table td::before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--cyan-neon);
    font-weight: 700;
    text-transform: uppercase;
  }
}

/* ==========================================================================
   ARTICLE & SEO CONTENT STYLES (Strict Rule Compliance)
   ========================================================================== */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 40px 0;
}

@media (max-width: 991px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.article-category-badge {
  display: inline-block;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  gap: 18px;
  color: var(--text-muted);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.featured-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

/* Strictly enforce: after H2/H3 must be <p> */
.article-body-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan-neon);
  margin: 32px 0 14px;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.article-body-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin: 24px 0 12px;
}

.article-body-content p {
  margin-bottom: 18px;
  color: var(--text-light);
  line-height: 1.7;
}

.article-body-content ul,
.article-body-content ol {
  margin: 16px 0 24px 24px;
  color: var(--text-light);
}

.article-body-content li {
  margin-bottom: 8px;
}

.article-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 20px 0;
  border: 1px solid var(--border-cyan);
}

.article-callout-box {
  background: linear-gradient(135deg, #093359, #021a30);
  border: 1px solid var(--cyan-neon);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 36px;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}

.article-callout-box h3 {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 10px;
}

.article-callout-box p {
  color: var(--text-light);
  margin-bottom: 18px;
}

/* Sidebar Widgets */
.sidebar-right .widget {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan-neon);
  border-bottom: 2px solid var(--border-cyan);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.sidebar-game-list {
  list-style: none;
}

.sidebar-game-list li {
  margin-bottom: 12px;
}

.sidebar-game-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 14px;
}

.sidebar-game-list a:hover {
  color: var(--cyan-neon);
}

.sidebar-game-list img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-cyan);
}

.btn-block {
  width: 100%;
}

/* Breadcrumbs */
.breadcrumb-container {
  background: rgba(3, 20, 36, 0.7);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs li.active {
  color: var(--cyan-neon);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #010a14;
  border-top: 1px solid var(--border-cyan);
  padding-top: 50px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 40px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  height: 48px;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--cyan-neon);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--cyan-neon);
  padding-left: 4px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-col strong {
  color: var(--gold);
}

.footer-bottom {
  background: #00060d;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (Luxury App Bar)
   ========================================================================== */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(2, 18, 33, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-cyan);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
}

@media (max-width: 991px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  flex: 1;
}

.nav-btn i {
  font-size: 18px;
}

.nav-btn:hover,
.nav-btn.active {
  color: var(--cyan-neon);
}

.nav-btn-cta {
  background: linear-gradient(135deg, var(--gold), #e67e22);
  color: #000 !important;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  margin-top: -24px;
  box-shadow: 0 0 18px var(--gold-glow);
  border: 3px solid var(--bg-deep);
}

.nav-btn-cta i {
  font-size: 20px;
}

.nav-btn-cta span {
  font-size: 9px;
  font-weight: 800;
}


/* ==========================================================================
   FLOATING CRO CTA WIDGET (LUXURY NEON FLOATING CTA)
   ========================================================================== */
.cro-floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.cro-floating-link {
  text-decoration: none;
  display: block;
}

.cro-floating-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(8, 25, 45, 0.95), rgba(2, 12, 24, 0.98));
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 8px 16px 8px 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 184, 0, 0.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cro-floating-badge:hover {
  border-color: var(--cyan-neon);
  box-shadow: 0 12px 35px rgba(0, 240, 255, 0.5), 0 0 30px var(--gold-glow);
  transform: scale(1.04);
}

.cro-floating-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}

.cro-floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cro-floating-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.cro-hot-tag {
  font-size: 10px;
  font-weight: 800;
  color: #ff4757;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cro-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}

.cro-desc {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

.cro-floating-btn {
  background: linear-gradient(135deg, var(--gold), #f39c12);
  color: #051329 !important;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.5);
  transition: all 0.2s ease;
}

.cro-floating-badge:hover .cro-floating-btn {
  background: linear-gradient(135deg, var(--cyan-neon), #00a8ff);
  color: #000 !important;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.6);
}

.cro-floating-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.cro-floating-close:hover {
  background: #ff4757;
  border-color: #ff4757;
}

@media (max-width: 991px) {
  .cro-floating-widget {
    bottom: 74px; /* Above the mobile bottom navigation bar (64px + 10px) */
    right: 12px;
  }
  .cro-desc {
    display: none;
  }
  .cro-floating-badge {
    padding: 6px 12px 6px 8px;
    gap: 8px;
  }
  .cro-floating-logo {
    width: 38px;
    height: 38px;
  }
  .cro-title {
    font-size: 12px;
  }
  .cro-floating-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .cro-floating-widget {
    bottom: 74px;
    right: 8px;
  }
  .cro-hot-tag {
    font-size: 9px;
  }
}


/* ==========================================================================
   CATEGORY ARCHIVE PAGE STYLES (MATCHING ORIGINAL DESIGN)
   ========================================================================== */
.cat-page-wrapper {
  background: radial-gradient(circle at 50% 20%, #111a4e 0%, #090e2b 100%);
  min-height: 100vh;
  padding-bottom: 60px;
}

.cat-header-section {
  padding: 30px 0 20px 0;
}

.cat-breadcrumb {
  font-size: 14px;
  margin-bottom: 16px;
  color: #8f9fc7;
}

.cat-breadcrumb a {
  color: #ff9800;
  text-decoration: none;
  font-weight: 600;
}

.cat-breadcrumb .sep {
  margin: 0 6px;
  color: #8f9fc7;
}

.cat-breadcrumb .current {
  color: #fff;
}

.cat-title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.cat-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
}

.cat-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #d2dcfa;
  margin-bottom: 30px;
}

.cat-desc .brand-highlight {
  color: #ff9800;
  font-weight: 800;
  text-decoration: none;
}

.cat-main-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.cat-content-area {
  flex: 1;
  min-width: 0;
}

.cat-post-card {
  background: #17235a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cat-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.2);
  border-color: rgba(0, 229, 255, 0.3);
}

.cat-card-thumb {
  width: 270px;
  min-width: 270px;
  height: 165px;
  border-radius: 6px;
  overflow: hidden;
}

.cat-card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.cat-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-post-card:hover .cat-card-thumb img {
  transform: scale(1.05);
}

.cat-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cat-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.cat-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cat-card-title a:hover {
  color: var(--cyan-neon);
}

.cat-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #b8c7eb;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-card-action {
  text-align: right;
  margin-top: auto;
}

.cat-btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #162044 !important;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.cat-btn-detail:hover {
  background: var(--cyan-neon);
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* Sidebar */
.cat-sidebar {
  width: 250px;
  min-width: 250px;
}

.cat-sidebar-heading {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.cat-game-widget-card {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease;
}

.cat-game-widget-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-neon);
}

.cat-game-thumb-wrap {
  width: 100%;
  height: 135px;
  position: relative;
}

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

.cat-game-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Pagination */
.cat-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.cat-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  background: #17235a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.cat-page-btn:hover,
.cat-page-btn.active {
  background: var(--gold);
  color: #000 !important;
  border-color: var(--gold);
}

/* Responsive */
@media (max-width: 991px) {
  .cat-main-layout {
    flex-direction: column;
  }
  .cat-sidebar {
    width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 640px) {
  .cat-post-card {
    flex-direction: column;
    align-items: stretch;
  }
  .cat-card-thumb {
    width: 100%;
    min-width: 100%;
    height: 180px;
  }
}


/* ===== BRAND TOPLIST (replaces small logo grid) ===== */
.brand-toplist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 1100px; margin: 0 auto; }
.toplist-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; background: linear-gradient(135deg, rgba(23,36,89,0.95), rgba(10,20,55,0.95)); border: 1px solid rgba(0,229,255,0.18); border-radius: 12px; transition: all .2s ease; }
.toplist-item:hover { border-color: var(--gold, #ffb800); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,184,0,0.18); }
.toplist-top { border-color: rgba(255,184,0,0.45); }
.toplist-rank { position: absolute; top: -8px; left: -8px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: #fff; background: #3b4a7a; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.toplist-rank.rank-1 { background: linear-gradient(135deg, #ffd700, #f39c12); color: #000; }
.toplist-rank.rank-2 { background: linear-gradient(135deg, #e0e0e0, #9e9e9e); color: #000; }
.toplist-rank.rank-3 { background: linear-gradient(135deg, #e6a26b, #b0652b); color: #000; }
.toplist-logo { flex-shrink: 0; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; }
.toplist-logo img { width: 100%; height: 100%; object-fit: contain; }
.toplist-info { flex: 1; min-width: 0; }
.toplist-name { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2; }
.toplist-stars { font-size: 13px; color: #ffc107; margin: 3px 0; }
.toplist-stars span { color: #b9c7ed; font-size: 12px; margin-left: 4px; }
.toplist-bonus { font-size: 13px; color: #b9c7ed; line-height: 1.4; }
.toplist-bonus i { color: var(--gold, #ffb800); }
.toplist-btn { flex-shrink: 0; padding: 10px 16px; border-radius: 30px; font-weight: 800; font-size: 13px; color: #051329 !important; background: linear-gradient(135deg, #ffd700, #f39c12); box-shadow: 0 4px 14px rgba(255,184,0,0.4); white-space: nowrap; text-decoration: none; }
.toplist-btn:hover { background: linear-gradient(135deg, #00f0ff, #00a8ff); }
@media (max-width: 768px) {
  .brand-toplist { grid-template-columns: 1fr; gap: 14px; }
  .toplist-item { padding: 12px 12px 12px 16px; gap: 12px; }
  .toplist-logo { width: 64px; height: 64px; }
  .toplist-name { font-size: 16px; }
  .toplist-bonus { font-size: 12.5px; }
  .toplist-btn { padding: 9px 12px; font-size: 12px; }
}
