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

/* ============================================
   AH88 Casino Design System - Static Version
   ============================================ */

:root {
  --bg: hsl(240 20% 4%);
  --fg: hsl(0 0% 98%);
  --card: hsl(240 15% 8%);
  --card-fg: hsl(0 0% 98%);
  --primary: hsl(263 70% 58%);
  --primary-fg: hsl(0 0% 100%);
  --secondary: hsl(263 40% 15%);
  --secondary-fg: hsl(263 30% 90%);
  --muted: hsl(240 10% 15%);
  --muted-fg: hsl(240 5% 65%);
  --accent: hsl(270 95% 65%);
  --accent-fg: hsl(0 0% 100%);
  --border: hsl(263 30% 20%);
  --input: hsl(263 20% 18%);
  --gold: hsl(45 93% 58%);
  --gold-fg: hsl(45 90% 15%);
  --destructive: hsl(0 72% 51%);
  --radius: 0.75rem;
  --gradient-primary: linear-gradient(135deg, hsl(263 70% 58%) 0%, hsl(290 70% 50%) 50%, hsl(320 70% 55%) 100%);
  --gradient-gold: linear-gradient(135deg, hsl(45 93% 58%) 0%, hsl(35 90% 50%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(263 30% 12%) 0%, hsl(240 20% 6%) 100%);
  --gradient-hero: linear-gradient(180deg, hsl(263 40% 8%) 0%, hsl(240 20% 4%) 100%);
  --shadow-glow: 0 0 60px -15px hsl(263 70% 58% / 0.5);
  --shadow-card: 0 25px 50px -12px hsl(0 0% 0% / 0.5);
  --shadow-gold: 0 0 40px -10px hsl(45 93% 58% / 0.4);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Orbitron', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

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

/* ── Typography ── */
.font-display { font-family: 'Orbitron', sans-serif; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glass Card ── */
.glass-card {
  background: hsl(240 15% 8% / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(263 30% 20% / 0.5);
  border-radius: var(--radius);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-hero {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-hero:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-gold {
  background: var(--gradient-gold);
  color: var(--gold-fg);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: hsl(263 70% 58% / 0.1); }
.btn-glass {
  background: hsl(263 30% 12% / 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(263 30% 20% / 0.5);
  color: var(--fg);
}
.btn-glass:hover { background: hsl(263 30% 20% / 0.6); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.125rem; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(240 15% 8% / 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(263 30% 20% / 0.3);
}
.site-header nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.site-header .logo { height: 52px; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(0 0% 98% / 0.8);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-actions { display: none; align-items: center; gap: 0.75rem; }
.mobile-toggle { padding: 0.5rem; color: var(--fg); background: none; border: none; display: block; }
.mobile-toggle svg { width: 24px; height: 24px; }

/* Games dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; padding-top: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-inner {
  min-width: 200px; padding: 0.5rem; border-radius: var(--radius);
  background: hsl(240 15% 8% / 0.95); backdrop-filter: blur(20px);
  border: 1px solid hsl(263 30% 20% / 0.5);
  box-shadow: var(--shadow-glow);
}
.nav-dropdown-link {
  display: block; padding: 0.75rem 1rem; border-radius: 0.5rem;
  font-size: 0.875rem; transition: all 0.2s;
}
.nav-dropdown-link:hover { background: hsl(263 70% 58% / 0.1); color: var(--primary); }

/* Mobile menu */
.mobile-menu {
  display: none; border-top: 1px solid hsl(263 30% 20% / 0.3);
  background: hsl(240 15% 8% / 0.95); backdrop-filter: blur(20px);
}
.mobile-menu.open { display: block; }
.mobile-menu .container { padding: 1rem; }
.mobile-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.875rem; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .submenu-label { display: block; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); }
.mobile-menu .submenu a { padding-left: 1.5rem; }
.mobile-actions { padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-actions { display: flex; }
  .mobile-toggle { display: none; }
}

/* ── Hero Section ── */
.hero { position: relative; min-height: 90vh; display: flex; flex-direction: column; overflow: hidden; background: var(--gradient-hero); }
.hero-carousel { position: relative; width: 100%; height: 55vh; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; transition: all 0.7s ease-in-out;
  opacity: 0; transform: scale(1.05);
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg));
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: hsl(240 15% 8% / 0.6); backdrop-filter: blur(10px);
  border: 1px solid hsl(263 30% 20% / 0.5); color: var(--fg); font-size: 1.5rem; cursor: pointer;
  transition: background 0.2s;
}
.hero-arrow:hover { background: hsl(263 70% 58% / 0.2); }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }
.hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 10; }
.hero-dot {
  width: 12px; height: 12px; border-radius: 9999px; border: none;
  background: hsl(0 0% 98% / 0.3); transition: all 0.3s; cursor: pointer;
}
.hero-dot.active { background: var(--gold); width: 32px; }
.hero-content { flex: 1; display: flex; align-items: center; position: relative; z-index: 10; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem;
  font-size: 0.875rem; font-weight: 500;
}
.hero h1 { font-size: 2.25rem; font-weight: 900; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1rem; color: var(--muted-fg); max-width: 42rem; margin: 0 auto 2rem; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 28rem; margin: 2.5rem auto 0; }
.hero-stat { text-align: center; }
.hero-stat .value { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 700; }
.hero-stat .label { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; justify-content: center; } }
@media (min-width: 768px) {
  .hero-carousel { height: 70vh; }
  .hero h1 { font-size: 3.75rem; }
  .hero-subtitle { font-size: 1.125rem; }
  .hero-stat .value { font-size: 1.875rem; }
}
@media (min-width: 1024px) { .hero-carousel { height: 75vh; } .hero h1 { font-size: 4.5rem; } }

/* ── Section Common ── */
section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; color: var(--muted-fg); max-width: 42rem; margin: 0 auto; }
@media (min-width: 768px) { .section-header h2 { font-size: 3rem; } }

/* ── Game Card ── */
.game-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  transition: all 0.5s; display: block;
}
.game-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
.game-card .card-image { position: relative; height: 192px; overflow: hidden; }
.game-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .card-image img { transform: scale(1.1); }
.game-card .card-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--card) 0%, hsl(240 15% 8% / 0.5) 50%, transparent 100%);
}
.game-card .badge-popular {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; border-radius: 9999px;
  background: var(--gold); color: var(--gold-fg);
}
.game-card .card-body { padding: 1.5rem; }
.game-card h3 { font-family: 'Orbitron', sans-serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; transition: color 0.3s; }
.game-card:hover h3 { color: var(--primary); }
.game-card .card-desc { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card .card-cta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--primary); }
.game-card:hover .card-cta svg { transform: translateX(4px); }
.game-card .card-cta svg { transition: transform 0.3s; width: 16px; height: 16px; }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Tab System ── */
.tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem;
  border-radius: var(--radius); font-weight: 500; font-size: 0.875rem;
  background: hsl(240 15% 8% / 0.8); backdrop-filter: blur(10px);
  border: 1px solid hsl(263 30% 20% / 0.5); color: var(--muted-fg);
  transition: all 0.3s; cursor: pointer;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); box-shadow: 0 0 20px -5px hsl(263 70% 58% / 0.5); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Rankings Table ── */
.rankings-table { width: 100%; border-collapse: collapse; }
.rankings-table th {
  text-align: left; padding: 1rem; font-weight: 500; color: var(--muted-fg);
  border-bottom: 1px solid hsl(263 30% 20% / 0.5);
}
.rankings-table td { padding: 1rem; border-bottom: 1px solid hsl(263 30% 20% / 0.3); }
.rankings-table tr:hover { background: hsl(240 10% 15% / 0.2); }
.rank-medal { font-size: 1.5rem; }
.rank-num { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted-fg); }
.text-right { text-align: right; }
.text-green { color: hsl(142 70% 50%); font-weight: 700; }
.text-gold-star { color: var(--gold); }

/* ── FAQ Accordion ── */
.faq-item { margin-bottom: 1rem; }
.faq-question {
  width: 100%; text-align: left; padding: 1.25rem 1.5rem; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem;
  font-family: 'Orbitron', sans-serif; font-weight: 600; font-size: 1rem;
  background: none; border: none; color: var(--fg); cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question .chevron {
  width: 20px; height: 20px; transition: transform 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 500px; padding: 0 1.5rem 1.25rem;
}
.faq-answer p { color: var(--muted-fg); line-height: 1.7; }

/* ── Promotions ── */
.promo-featured {
  position: relative; padding: 2rem; border-radius: 1rem; overflow: hidden;
  background: var(--gradient-primary); box-shadow: var(--shadow-glow);
}
.promo-featured .shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  background-size: 400% 100%;
  animation: shimmer 3s linear infinite;
}
.promo-card {
  padding: 1.5rem; border-radius: 1rem; transition: all 0.5s;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: hsl(263 30% 30%); }
.promo-value { font-family: 'Orbitron', sans-serif; font-weight: 900; }

/* ── Blog Grid ── */
.blog-card {
  padding: 1.25rem; border-radius: var(--radius);
  transition: all 0.3s; display: block; height: 100%;
}
.blog-card:hover { transform: translateY(-4px); border-color: hsl(263 70% 58% / 0.5); }
.blog-card .blog-category { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.blog-card .blog-category span { font-size: 0.75rem; color: var(--primary); font-weight: 500; }
.blog-card h3 {
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1rem;
  margin-bottom: 0.5rem; min-height: 2.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.3s;
}
.blog-card:hover h3 { color: var(--primary); }
.blog-card .blog-summary { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .blog-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--muted-fg); }

/* ── CTA Section ── */
.cta-section { position: relative; overflow: hidden; }
.cta-inner { border-radius: 1.5rem; padding: 2rem; overflow: hidden; position: relative; }
.cta-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.cta-feature { text-align: center; }
.cta-feature .icon-wrap {
  display: inline-flex; padding: 0.75rem; border-radius: var(--radius);
  background: hsl(263 70% 58% / 0.1); margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .cta-inner { padding: 3rem; } }
@media (min-width: 1024px) { .cta-inner { padding: 4rem; } }

/* ── Footer ── */
.site-footer { background: var(--card); border-top: 1px solid hsl(263 30% 20% / 0.3); }
.footer-features {
  border-bottom: 1px solid hsl(263 30% 20% / 0.3);
  padding: 2rem 0;
}
.footer-features .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .footer-features .grid { grid-template-columns: repeat(4, 1fr); } }
.footer-feature { display: flex; align-items: center; gap: 0.75rem; }
.footer-feature .icon-wrap {
  padding: 0.75rem; border-radius: var(--radius);
  background: hsl(263 70% 58% / 0.1);
}
.footer-feature h4 { font-size: 0.875rem; font-weight: 600; }
.footer-feature p { font-size: 0.75rem; color: var(--muted-fg); }
.footer-main { padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-fg); line-height: 1.7; max-width: 24rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a {
  padding: 0.5rem; border-radius: 0.5rem; background: var(--muted);
  transition: background 0.2s; display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: hsl(263 70% 58% / 0.2); }
.footer-col h3 { font-family: 'Orbitron', sans-serif; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: var(--muted-fg); transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-seo {
  border-top: 1px solid hsl(263 30% 20% / 0.3);
  padding: 1.5rem 0; text-align: center;
  background: hsl(240 10% 15% / 0.3);
}
.footer-seo p { font-size: 0.75rem; color: hsl(240 5% 65% / 0.7); line-height: 1.8; max-width: 56rem; margin: 0 auto; }
.footer-bottom {
  border-top: 1px solid hsl(263 30% 20% / 0.3);
  padding: 1.5rem 0;
}
.footer-bottom .inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .footer-bottom .inner { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 0.875rem; color: var(--muted-fg); }
.footer-bottom .age { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--muted-fg); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 2rem; }
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--primary); }

/* ── Page Hero ── */
.page-hero {
  position: relative; padding: 6rem 0; overflow: hidden;
  background: var(--gradient-hero);
}
.page-hero .bg-blob {
  position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none;
}
.page-hero .bg-blob-1 { top: 25%; left: 25%; width: 24rem; height: 24rem; background: hsl(263 70% 58% / 0.2); }
.page-hero .bg-blob-2 { bottom: 25%; right: 33%; width: 20rem; height: 20rem; background: hsl(270 95% 65% / 0.2); }

/* ── Stats Bar ── */
.stats-bar { padding: 4rem 0; background: var(--card); border-top: 1px solid hsl(263 30% 20% / 0.3); border-bottom: 1px solid hsl(263 30% 20% / 0.3); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-item .stat-value { font-family: 'Orbitron', sans-serif; font-size: 1.875rem; font-weight: 700; }
.stat-item .stat-label { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* ── Backgrounds ── */
.bg-background { background: var(--bg); }
.bg-card { background: var(--card); }
.bg-gradient-card { background: var(--gradient-card); }
.bg-gradient-hero { background: var(--gradient-hero); }
.bg-muted-30 { background: hsl(240 10% 15% / 0.3); }

/* ── Blog Page Specific ── */
.blog-search {
  position: relative; max-width: 28rem;
}
.blog-search input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 3rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--fg); outline: none;
}
.blog-search input:focus { box-shadow: 0 0 0 2px var(--primary); }
.blog-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted-fg); }
.categories-bar { padding: 2rem 0; background: var(--card); border-top: 1px solid hsl(263 30% 20% / 0.3); border-bottom: 1px solid hsl(263 30% 20% / 0.3); }
.category-btn {
  padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500;
  background: var(--muted); color: var(--muted-fg); border: none; transition: all 0.2s; cursor: pointer;
}
.category-btn:hover { background: hsl(240 10% 20%); }
.category-btn.active { background: var(--primary); color: var(--primary-fg); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3rem; }
.page-btn {
  padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.875rem;
  background: transparent; border: 1px solid var(--border); color: var(--fg);
  cursor: pointer; transition: all 0.2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Loading/Error States ── */
.loading-state, .error-state { padding: 4rem 0; text-align: center; }
.spinner {
  width: 32px; height: 32px; margin: 0 auto 1rem;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.error-state p { color: var(--destructive); margin-bottom: 1rem; }

/* ── Wiki Section ── */
.wiki-card {
  padding: 1.5rem; transition: all 0.3s; display: flex; gap: 1rem;
}
.wiki-card:hover { border-color: hsl(263 70% 58% / 0.3); box-shadow: 0 0 20px hsl(263 70% 58% / 0.1); }
.wiki-thumb {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.wiki-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.wiki-card:hover .wiki-thumb img { transform: scale(1.1); }
.wiki-badge {
  display: inline-block; padding: 0.125rem 0.5rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; color: white; margin-bottom: 0.25rem;
}

/* ── VIP Tiers ── */
.vip-card {
  position: relative; padding: 1.5rem; border-radius: 1rem;
  transition: all 0.5s;
}
.vip-card:hover { transform: translateY(-8px); }
.vip-card.popular { box-shadow: var(--shadow-gold); outline: 2px solid var(--gold); }
.vip-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 1rem; background: var(--gold); color: var(--gold-fg);
  font-size: 0.75rem; font-weight: 700; border-radius: 9999px;
}
.vip-icon {
  display: inline-flex; padding: 1rem; border-radius: var(--radius);
  margin-bottom: 1rem; color: white;
}
.vip-benefits { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.vip-benefits li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.check-icon { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

/* ── Scroll to Top ── */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  background: var(--primary); color: white; border: none;
  box-shadow: var(--shadow-glow); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-2px); }

/* ── Form Elements ── */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--fg); outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px hsl(263 70% 58% / 0.2); }
.form-toggle { display: flex; padding: 0.25rem; background: var(--muted); border-radius: var(--radius); margin-bottom: 2rem; }
.form-toggle button {
  flex: 1; padding: 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: none; border: none; color: var(--muted-fg); transition: all 0.2s; cursor: pointer;
}
.form-toggle button.active { background: var(--primary); color: var(--primary-fg); }

/* ── Utility ── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }
.w-full { width: 100%; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Animations ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px -5px hsl(263 70% 58% / 0.5); }
  50% { box-shadow: 0 0 40px -5px hsl(263 70% 58% / 0.8); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }

/* ── Blog Article Typography (prose-blog) ── */
.prose-blog { color: var(--fg); line-height: 1.7; }
.prose-blog h1 { font-size: 2rem; font-weight: 700; margin: 2.5rem 0 1.5rem; }
.prose-blog h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1.25rem; border-left: 4px solid var(--primary); padding-left: 1rem; }
.prose-blog h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 1rem; }
.prose-blog p { color: var(--muted-fg); line-height: 1.7; margin-bottom: 1.25rem; }
.prose-blog a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.prose-blog a:hover { opacity: 0.8; }
.prose-blog strong, .prose-blog b { color: var(--fg); font-weight: 600; }
.prose-blog ul { list-style: disc; padding-left: 1.5rem; margin: 1.25rem 0; }
.prose-blog ol { list-style: decimal; padding-left: 1.5rem; margin: 1.25rem 0; }
.prose-blog li { color: var(--muted-fg); margin-bottom: 0.5rem; }
.prose-blog blockquote { border-left: 4px solid var(--primary); background: hsl(240 10% 15% / 0.3); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 0.5rem 0.5rem 0; }
.prose-blog img { border-radius: var(--radius); margin: 2rem 0; width: 100%; box-shadow: 0 10px 30px -10px hsl(0 0% 0% / 0.5); }
.prose-blog table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.875rem; }
.prose-blog th { border: 1px solid var(--border); background: var(--muted); padding: 0.75rem; text-align: left; font-weight: 600; }
.prose-blog td { border: 1px solid var(--border); padding: 0.75rem; color: var(--muted-fg); }
@media (min-width: 768px) {
  .prose-blog h1 { font-size: 2.5rem; }
  .prose-blog h2 { font-size: 1.875rem; }
  .prose-blog h3 { font-size: 1.5rem; }
  .prose-blog p, .prose-blog li { font-size: 1.125rem; }
}

/* ── Noscript Blog Fallback ── */
noscript .blog-static-links { list-style: disc; padding-left: 1.5rem; }
noscript .blog-static-links li { margin-bottom: 0.5rem; }
noscript .blog-static-links a { color: var(--primary); text-decoration: underline; }
