@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');

/* ==================== CSS Variables ==================== */
:root {
  --background: hsl(250, 30%, 8%);
  --foreground: hsl(0, 0%, 98%);
  --card: hsl(250, 30%, 12%);
  --card-foreground: hsl(0, 0%, 98%);
  --muted: hsl(250, 25%, 20%);
  --muted-foreground: hsl(250, 10%, 70%);
  --border: hsl(250, 25%, 22%);
  --ring: hsl(35, 100%, 55%);
  
  --orange: hsl(35, 100%, 55%);
  --orange-light: hsl(40, 100%, 65%);
  --pink: hsl(320, 85%, 55%);
  --cyan: hsl(175, 80%, 50%);
  --purple: hsl(265, 85%, 60%);
  --yellow: hsl(45, 100%, 55%);
  
  --gradient-primary: linear-gradient(135deg, hsl(35, 100%, 55%), hsl(45, 100%, 60%));
  --gradient-rainbow: linear-gradient(135deg, hsl(35, 100%, 55%), hsl(320, 85%, 55%), hsl(265, 85%, 60%));
  --gradient-hero: radial-gradient(ellipse at top, hsl(265, 40%, 18%), hsl(250, 30%, 6%));
  --gradient-card: linear-gradient(145deg, hsl(250, 30%, 15%), hsl(250, 30%, 10%));
  
  --glow-orange: 0 0 40px hsla(35, 100%, 55%, 0.5);
  --radius: 0.75rem;
}

/* ==================== Base Styles ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--gradient-hero);
  background-attachment: fixed;
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==================== Container ==================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

/* ==================== Header ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 12, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 768px) {
  .header-inner { height: 80px; }
}

.logo {
  height: 32px;
  width: auto;
  transition: transform 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 15px rgba(255, 149, 0, 0.5));
}

.logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px rgba(255, 149, 0, 0.8));
}

@media (min-width: 640px) { .logo { height: 40px; } }
@media (min-width: 768px) { .logo { height: 48px; } }

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) { .nav { display: flex; } }

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--orange);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) { .header-actions { display: flex; } }

/* Mobile Menu */
.menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

.menu-toggle:hover {
  background: var(--muted);
}

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

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.mobile-nav-link:hover {
  color: var(--orange);
  background: rgba(255, 255, 255, 0.05);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--background);
  box-shadow: var(--glow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px hsla(35, 100%, 55%, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--background));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: 9999px;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }

.text-gradient {
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==================== Sections ==================== */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) { .section { padding: 6rem 0; } }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: 9999px;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

.section-description {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== Cards ==================== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(255, 149, 0, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
}

.card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
}

/* ==================== Grid Layouts ==================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

/* ==================== Blog Specific ==================== */
.blog-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}

.blog-search {
  max-width: 600px;
  margin: 2rem auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--orange);
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-tab {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.category-tab:hover, .category-tab.active {
  background: var(--gradient-primary);
  color: var(--background);
  border-color: transparent;
}

.blog-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 320px;
  }
}

.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.popular-post {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.popular-post:last-child {
  border-bottom: none;
}

.popular-rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--background);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.popular-rank.secondary {
  background: var(--purple);
  color: white;
}

.popular-rank.tertiary {
  background: var(--cyan);
  color: var(--background);
}

.popular-post-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post:hover .popular-post-title {
  color: var(--orange);
}

/* Blog Grid & Pagination */
#blog-grid {
  min-height: 400px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

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

.pagination-info {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-input {
  width: 60px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  text-align: center;
  font-size: 0.875rem;
}

.page-input:focus {
  outline: none;
  border-color: var(--orange);
}

/* Loading & Error States */
#blog-loading {
  display: none;
  text-align: center;
  padding: 4rem 0;
}

#blog-loading.active {
  display: block;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

#blog-error {
  display: none;
  text-align: center;
  padding: 3rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: var(--radius);
}

#blog-error.active {
  display: block;
}

/* ==================== Footer ==================== */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  border-radius: 50%;
  color: var(--muted-foreground);
  transition: all 0.3s;
}

.social-link:hover {
  background: rgba(255, 149, 0, 0.2);
  color: var(--orange);
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==================== Stats ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.stat-card:hover {
  border-color: rgba(255, 149, 0, 0.5);
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ==================== Feature Cards ==================== */
.feature-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(255, 149, 0, 0.5);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--background);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ==================== Promotions ==================== */
.promo-card {
  position: relative;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.promo-card:hover {
  border-color: rgba(255, 149, 0, 0.5);
  box-shadow: 0 0 30px rgba(255, 149, 0, 0.15);
}

.promo-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  color: white;
}

.promo-tag.hot { background: #ef4444; }
.promo-tag.daily { background: var(--orange); }
.promo-tag.weekly { background: var(--cyan); }
.promo-tag.exclusive { background: var(--purple); }
.promo-tag.unlimited { background: #22c55e; }
.promo-tag.slots { background: var(--pink); }

.promo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.promo-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.2), rgba(236, 72, 153, 0.2));
  border-radius: var(--radius);
}

.promo-icon svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
}

.promo-bonus {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.promo-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.promo-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.promo-conditions {
  list-style: none;
  margin-bottom: 1.5rem;
}

.promo-conditions li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.promo-conditions li svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

/* ==================== Games Grid ==================== */
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.game-card:hover {
  transform: scale(1.05);
  border-color: rgba(255, 149, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 149, 0, 0.2);
}

.game-multiplier {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: var(--gradient-primary);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.375rem;
  z-index: 10;
}

.game-category {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  z-index: 10;
}

.game-image {
  aspect-ratio: 1/1;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.game-info {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.game-title {
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-play-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s;
}

.game-card:hover .game-play-btn {
  transform: scale(1);
}

.game-play-btn svg {
  width: 32px;
  height: 32px;
  color: var(--background);
}

/* ==================== Breadcrumb ==================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb a {
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb-separator {
  opacity: 0.5;
}

/* ==================== Utilities ==================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.hidden { display: none; }

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

/* ==================== Noscript Styles ==================== */
noscript .noscript-content {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: 800px;
}

noscript .noscript-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--orange);
}

noscript .noscript-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

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

noscript .noscript-links a {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  text-align: center;
  color: var(--foreground);
  transition: all 0.3s;
}

noscript .noscript-links a:hover {
  background: rgba(255, 149, 0, 0.2);
  color: var(--orange);
}

/* Category Emoji Mapping */
.category-emoji::before {
  margin-right: 0.25rem;
}

.category-emoji[data-category="Hướng Dẫn"]::before,
.category-emoji[data-category="Guide"]::before { content: "📚"; }

.category-emoji[data-category="Mẹo Chơi"]::before,
.category-emoji[data-category="Tips"]::before { content: "💡"; }

.category-emoji[data-category="Tin Tức"]::before,
.category-emoji[data-category="News"]::before { content: "📰"; }

.category-emoji[data-category="Khuyến Mãi"]::before,
.category-emoji[data-category="Promotion"]::before { content: "🎁"; }

/* ==================== Game Detail Pages ==================== */
.game-detail-hero {
  padding: 2rem 0 3rem;
}

.game-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .game-detail-grid {
    grid-template-columns: 400px 1fr;
    gap: 3rem;
  }
}

.game-detail-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}

.game-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.game-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-primary);
  color: #000;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
}

.game-category-tag {
  display: inline-block;
  background: var(--muted);
  color: var(--orange);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.game-detail-info h1 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0.5rem 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-subtitle {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--foreground);
}

.stat-value.highlight {
  color: var(--orange);
  font-size: 1.5rem;
}

.game-section {
  padding: 3rem 0;
}

.game-section.alt-bg {
  background: var(--card);
}

.game-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.guide-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--orange);
}

.guide-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-card li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid hsla(250, 25%, 22%, 0.5);
}

.guide-card li:last-child {
  border-bottom: none;
}

.guide-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* RTP Table */
.rtp-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}

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

.rtp-table th,
.rtp-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.rtp-table th {
  background: var(--muted);
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}

.rtp-table td {
  color: var(--foreground);
}

.rtp-table tr:hover {
  background: hsla(35, 100%, 55%, 0.05);
}

.rtp-table tr:first-child td {
  color: var(--orange);
  font-weight: 700;
}

.rtp-summary {
  background: var(--muted);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.rtp-summary p {
  color: var(--foreground);
  font-size: 0.95rem;
  margin: 0;
}

/* Winning Cards */
.winning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.winning-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s;
}

.winning-card:hover {
  transform: translateY(-4px);
}

.winning-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.winning-card p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Related Games */
.related-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.related-game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-orange);
}

.related-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.related-game-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
  padding: 0.5rem 0.75rem 0.25rem;
  margin: 0;
}

.related-game-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
  padding: 0 0.75rem 0.75rem;
}

/* Internal Links Nav */
.internal-links {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.internal-links .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.internal-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.internal-links a:hover {
  color: var(--orange);
}

/* ==================== Landing Pages ==================== */
.landing-hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
}

.landing-hero h1 {
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .landing-hero h1 { font-size: 2.25rem; }
}

.landing-hero-sub {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.landing-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .landing-stats-row { grid-template-columns: repeat(4, 1fr); }
}

.landing-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
}

.landing-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
}

.landing-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.landing-content {
  max-width: 800px;
}

.landing-content p {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.landing-highlight-box {
  background: var(--card);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

.landing-highlight-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 1rem;
}

.landing-highlight-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-highlight-box li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  border-bottom: 1px solid hsla(250, 25%, 22%, 0.5);
}

.landing-highlight-box li:last-child { border-bottom: none; }

.landing-highlight-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* FAQ List */
.faq-list {
  max-width: 800px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
