/* Baji Casino - Static HTML Design System
   RTL Arabic Casino Theme (Red & Gold)
   All colors in HSL */

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

/* ========== CSS Variables ========== */
:root {
  --bg: 0 0% 5%;
  --fg: 45 100% 96%;
  --card: 0 0% 8%;
  --card-fg: 45 100% 96%;
  --muted: 0 0% 12%;
  --muted-fg: 0 0% 65%;
  --border: 0 0% 18%;
  --casino-gold: 45 100% 50%;
  --casino-gold-light: 45 100% 65%;
  --casino-gold-dark: 40 100% 35%;
  --casino-gold-fg: 0 0% 5%;
  --casino-red: 0 85% 45%;
  --casino-red-light: 0 85% 55%;
  --casino-red-dark: 0 85% 35%;
  --casino-green: 145 70% 40%;
  --casino-purple: 270 70% 50%;
  --radius: 0.5rem;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { color: hsl(var(--muted-fg)); }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* ========== Layout ========== */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

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

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 768px) { .md-flex { display: flex; } .md-hidden { display: none; } .md-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .lg-flex { display: flex; } .lg-hidden { display: none; } .lg-grid-4 { grid-template-columns: repeat(4, 1fr); } .lg-grid-3 { grid-template-columns: repeat(3, 1fr); } .lg-col-span-2 { grid-column: span 2; } }

/* ========== Components: Header ========== */
.header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 50;
  background: hsl(var(--bg) / 0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 768px) { .header-inner { height: 5rem; } }
.header-logo img { height: 2rem; width: auto; }
@media (min-width: 768px) { .header-logo img { height: 2.5rem; } }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-link {
  padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
  color: hsl(var(--fg) / 0.8); transition: all 0.3s;
}
.nav-link:hover, .nav-link.active { color: hsl(var(--casino-gold)); background: hsl(var(--casino-gold) / 0.1); }

.header-actions { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .header-actions { display: flex; } }

.mobile-menu-btn {
  display: flex; padding: 0.5rem; background: none; border: none;
  color: hsl(var(--fg)); font-size: 1.5rem;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-nav {
  display: none; padding: 1rem 0; border-top: 1px solid hsl(var(--border));
  flex-direction: column; gap: 0.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 0.75rem 1rem; font-size: 1rem; display: block; }

/* ========== Components: 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; border: none; transition: all 0.3s; white-space: nowrap;
}
.btn-gold {
  background: hsl(var(--casino-gold)); color: hsl(var(--casino-gold-fg));
}
.btn-gold:hover { background: hsl(var(--casino-gold-light)); }
.btn-gold-outline {
  background: transparent; color: hsl(var(--casino-gold));
  border: 1px solid hsl(var(--casino-gold));
}
.btn-gold-outline:hover { background: hsl(var(--casino-gold) / 0.1); }
.btn-red-outline {
  background: transparent; color: hsl(var(--casino-red));
  border: 1px solid hsl(var(--casino-red));
}
.btn-red-outline:hover { background: hsl(var(--casino-red) / 0.1); }
.btn-ghost { background: transparent; color: hsl(var(--casino-gold)); border: none; }
.btn-ghost:hover { background: hsl(var(--casino-gold) / 0.1); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.125rem; }

/* ========== Components: Cards ========== */
.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 0.75rem; overflow: hidden; transition: all 0.3s; position: relative;
}
.card:hover { border-color: hsl(var(--casino-gold) / 0.5); }
.card-body { padding: 1.5rem; }
.card-body-sm { padding: 1rem; }

/* Card Glow Effect */
.card-glow { position: relative; }
.card-glow::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, hsl(var(--casino-gold) / 0.3), transparent, hsl(var(--casino-red) / 0.3));
  border-radius: inherit; z-index: -1; opacity: 0; transition: opacity 0.3s;
}
.card-glow:hover::before { opacity: 1; }

/* ========== Components: Badges ========== */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 700;
}
.badge-hot { background: hsl(var(--casino-red)); color: hsl(var(--fg)); }
.badge-new { background: hsl(var(--casino-green)); color: hsl(var(--fg)); }
.badge-gold { background: hsl(var(--casino-gold)); color: hsl(var(--casino-gold-fg)); }
.badge-vip { background: hsl(var(--casino-purple)); color: hsl(var(--fg)); }
.badge-live {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem; background: hsl(var(--casino-red)); border-radius: 9999px;
}
.badge-live .dot { width: 0.5rem; height: 0.5rem; background: hsl(var(--fg)); border-radius: 50%; animation: pulse 2s infinite; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500;
}

/* ========== Sections ========== */
.section { padding: 3rem 0; }
.section-card { background: hsl(var(--card)); }
.section-muted { background: hsl(var(--muted) / 0.5); }
.section-border { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.section-gradient {
  background: linear-gradient(135deg, hsl(var(--casino-red) / 0.1), hsl(var(--bg)), hsl(var(--casino-gold) / 0.1));
}
.section-header { margin-bottom: 2rem; }

/* ========== Hero ========== */
.hero {
  position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: hsl(var(--bg) / 0.7); }
.hero-deco1 { position: absolute; top: 5rem; right: 2.5rem; width: 18rem; height: 18rem; background: hsl(var(--casino-red) / 0.1); border-radius: 50%; filter: blur(48px); }
.hero-deco2 { position: absolute; bottom: 5rem; left: 2.5rem; width: 24rem; height: 24rem; background: hsl(var(--casino-gold) / 0.1); border-radius: 50%; filter: blur(48px); }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 56rem; margin: 0 auto; padding: 0 1rem; }

/* ========== Gold Shimmer ========== */
.gold-shimmer {
  background: linear-gradient(90deg, hsl(var(--casino-gold)) 0%, hsl(var(--casino-gold-light)) 50%, hsl(var(--casino-gold)) 100%);
  background-size: 200% 100%; animation: shimmer 2s ease-in-out infinite;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

/* Neon Gold */
.neon-gold {
  text-shadow: 0 0 5px hsl(var(--casino-gold) / 0.5), 0 0 10px hsl(var(--casino-gold) / 0.3), 0 0 20px hsl(var(--casino-gold) / 0.2);
}

/* Pulse Glow */
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px hsl(var(--casino-gold) / 0.3); }
  50% { box-shadow: 0 0 40px hsl(var(--casino-gold) / 0.5); }
}

/* Fade In */
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ========== Game Card ========== */
.game-card { border-radius: 0.75rem; overflow: hidden; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); transition: all 0.3s; }
.game-card:hover { border-color: hsl(var(--casino-gold) / 0.5); }
.game-card .game-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.game-card .game-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .game-img img { transform: scale(1.1); }
.game-card .game-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--bg)), hsl(var(--bg) / 0.5), transparent);
  opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center;
}
.game-card:hover .game-overlay { opacity: 1; }
.game-card .game-badges { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.game-card .game-info { padding: 1rem; }
.game-card .game-name { font-weight: 700; color: hsl(var(--fg)); margin-bottom: 0.25rem; }
.game-card .game-provider { font-size: 0.75rem; color: hsl(var(--muted-fg)); }
.game-card .game-rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: hsl(var(--casino-gold)); }

/* ========== Stats ========== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 40rem; margin: 0 auto; }
.stat-item { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: hsl(var(--casino-gold)); }
@media (min-width: 768px) { .stat-value { font-size: 2.5rem; } }
.stat-label { font-size: 0.75rem; color: hsl(var(--muted-fg)); }
@media (min-width: 768px) { .stat-label { font-size: 0.875rem; } }

/* ========== Category Nav ========== */
.cat-nav { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-item {
  flex-shrink: 0; display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.5rem; background: hsl(var(--muted)); border-radius: 0.75rem;
  border: 1px solid hsl(var(--border)); transition: all 0.3s; text-decoration: none;
}
.cat-item:hover { border-color: hsl(var(--casino-gold) / 0.5); }
.cat-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.cat-icon-gold { background: hsl(var(--casino-gold) / 0.2); color: hsl(var(--casino-gold)); }
.cat-icon-green { background: hsl(var(--casino-green) / 0.2); color: hsl(var(--casino-green)); }
.cat-icon-red { background: hsl(var(--casino-red) / 0.2); color: hsl(var(--casino-red)); }
.cat-icon-purple { background: hsl(var(--casino-purple) / 0.2); color: hsl(var(--casino-purple)); }
.cat-label { font-weight: 700; color: hsl(var(--fg)); }
.cat-desc { font-size: 0.75rem; color: hsl(var(--muted-fg)); }

/* ========== Promo Cards ========== */
.promo-card { border-radius: 1rem; overflow: hidden; background: hsl(var(--card)); }
.promo-card .promo-img { aspect-ratio: 16/9; overflow: hidden; }
.promo-card .promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-card .promo-body { padding: 1.5rem; }
.promo-card .promo-title { font-size: 1.25rem; font-weight: 700; color: hsl(var(--fg)); margin-bottom: 0.5rem; }
.promo-card .promo-desc { color: hsl(var(--muted-fg)); margin-bottom: 1rem; }

/* ========== Testimonials ========== */
.testimonial-card { padding: 1.5rem; }
.testimonial-text { font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.7; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: hsl(var(--casino-gold) / 0.2); display: flex; align-items: center; justify-content: center;
  color: hsl(var(--casino-gold)); font-weight: 700;
}
.testimonial-name { font-weight: 500; color: hsl(var(--fg)); }
.testimonial-date { font-size: 0.75rem; color: hsl(var(--muted-fg)); }

.stars { display: flex; gap: 0.125rem; color: hsl(var(--casino-gold)); }
.star-filled { color: hsl(var(--casino-gold)); }

/* ========== Blog Preview ========== */
.blog-card { display: block; }
.blog-card .blog-img { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; background: hsl(var(--muted)); }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-card .blog-category { display: inline-block; padding: 0.25rem 0.75rem; background: hsl(var(--casino-gold) / 0.1); color: hsl(var(--casino-gold)); font-size: 0.75rem; border-radius: 9999px; margin-bottom: 1rem; }
.blog-card .blog-title { font-weight: 700; font-size: 1.125rem; color: hsl(var(--fg)); margin-bottom: 0.75rem; line-height: 1.5; transition: color 0.3s; }
.blog-card:hover .blog-title { color: hsl(var(--casino-gold)); }
.blog-card .blog-excerpt { font-size: 0.875rem; color: hsl(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; gap: 1rem; font-size: 0.75rem; color: hsl(var(--muted-fg)); }

/* ========== FAQ ========== */
.faq-item { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 0.75rem; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem; text-align: right; background: none; border: none;
  color: hsl(var(--fg)); font-size: 1.125rem; font-weight: 700; transition: background 0.3s;
}
.faq-question:hover { background: hsl(var(--muted) / 0.5); }
.faq-question .chevron { transition: transform 0.3s; font-size: 1.25rem; color: hsl(var(--casino-gold)); }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.25rem 1.25rem; color: hsl(var(--muted-fg)); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ========== Tags ========== */
.tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.375rem 0.75rem; background: hsl(var(--muted)); border-radius: 9999px;
  font-size: 0.875rem; color: hsl(var(--muted-fg)); transition: all 0.3s;
}
.tag:hover { background: hsl(var(--casino-gold) / 0.2); color: hsl(var(--casino-gold)); }
.tag-count { font-size: 0.75rem; opacity: 0.7; }

/* ========== App Download ========== */
.phone-mockup {
  width: 16rem; margin: 0 auto; position: relative;
}
.phone-frame {
  background: hsl(var(--card)); border-radius: 3rem; padding: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border: 1px solid hsl(var(--border));
}
.phone-screen {
  border-radius: 2.5rem; overflow: hidden; aspect-ratio: 9/19;
  background: linear-gradient(to bottom, hsl(var(--casino-gold) / 0.2), hsl(var(--casino-red) / 0.2));
  display: flex; align-items: center; justify-content: center;
}
.phone-glow {
  position: absolute; inset: -1rem; background: hsl(var(--casino-gold) / 0.2);
  border-radius: 50%; filter: blur(48px); z-index: -1;
}

/* ========== Footer ========== */
.footer { background: hsl(var(--card)); border-top: 1px solid hsl(var(--border)); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand p { font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.7; margin-bottom: 1rem; }
.footer-title { font-weight: 700; color: hsl(var(--fg)); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { font-size: 0.875rem; color: hsl(var(--muted-fg)); transition: color 0.3s; }
.footer-link:hover { color: hsl(var(--casino-gold)); }
.footer-payments { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.footer-payment { padding: 0.5rem 1rem; background: hsl(var(--muted)); border-radius: var(--radius); font-size: 0.875rem; color: hsl(var(--muted-fg)); }
.footer-copy { font-size: 0.875rem; color: hsl(var(--muted-fg)); }
.footer-copy-sub { font-size: 0.75rem; color: hsl(var(--muted-fg)); margin-top: 0.5rem; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: hsl(var(--casino-red) / 0.2); color: hsl(var(--casino-red));
  font-weight: 700; font-size: 0.875rem;
}

/* ========== Spacers ========== */
.pt-header { padding-top: 4rem; }
@media (min-width: 768px) { .pt-header { padding-top: 5rem; } }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.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; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* ========== Utility Colors ========== */
.text-gold { color: hsl(var(--casino-gold)); }
.text-red { color: hsl(var(--casino-red)); }
.text-green { color: hsl(var(--casino-green)); }
.text-purple { color: hsl(var(--casino-purple)); }
.text-fg { color: hsl(var(--fg)); }
.text-muted { color: hsl(var(--muted-fg)); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.leading-relaxed { line-height: 1.7; }

.bg-card { background: hsl(var(--card)); }
.bg-muted { background: hsl(var(--muted)); }
.bg-gold-10 { background: hsl(var(--casino-gold) / 0.1); }
.bg-gold-20 { background: hsl(var(--casino-gold) / 0.2); }
.bg-red-20 { background: hsl(var(--casino-red) / 0.2); }
.border-gold-30 { border: 1px solid hsl(var(--casino-gold) / 0.3); }
.border-bottom { border-bottom: 1px solid hsl(var(--border)); }
.border-top { border-top: 1px solid hsl(var(--border)); }
.rounded { border-radius: var(--radius); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ========== Popular Games Section ========== */
.popular-game { display: block; position: relative; text-decoration: none; }
.popular-game .rank-badge {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 10;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: hsl(var(--casino-gold)); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: hsl(var(--casino-gold-fg)); font-size: 0.875rem;
}
.popular-game .game-img { aspect-ratio: 1; overflow: hidden; background: hsl(var(--muted)); position: relative; }
.popular-game .rtp { color: hsl(var(--casino-green)); }
.popular-game .players { display: flex; align-items: center; gap: 0.25rem; color: hsl(var(--muted-fg)); }

/* ========== Match Cards (Sports) ========== */
.match-card { padding: 1rem; }
.match-league { font-size: 0.75rem; color: hsl(var(--muted-fg)); }
.match-time { color: hsl(var(--casino-red)); font-weight: 700; }
.match-score { padding: 0.5rem 1rem; background: hsl(var(--muted)); border-radius: var(--radius); font-size: 1.25rem; font-weight: 700; color: hsl(var(--casino-gold)); }
.match-team { font-weight: 700; color: hsl(var(--fg)); }
.odds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.odds-btn {
  display: flex; flex-direction: column; align-items: center; padding: 0.5rem;
  background: transparent; border: 1px solid hsl(var(--casino-gold));
  border-radius: var(--radius); color: hsl(var(--casino-gold)); transition: all 0.3s;
}
.odds-btn:hover { background: hsl(var(--casino-gold) / 0.1); }
.odds-label { font-size: 0.75rem; color: hsl(var(--muted-fg)); }
.odds-value { font-weight: 700; }

/* ========== Live Casino Cards ========== */
.live-card .live-img { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.live-card .live-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.live-card:hover .live-img img { transform: scale(1.1); }
.live-indicator { position: absolute; top: 0.75rem; right: 0.75rem; }
.live-card .player-count {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.5rem; background: hsl(var(--bg) / 0.8);
  backdrop-filter: blur(8px); border-radius: 0.25rem; font-size: 0.75rem;
}

/* ========== Scrollbar ========== */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ========== Input ========== */
.input {
  width: 100%; padding: 0.75rem 1rem; background: hsl(var(--muted));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  color: hsl(var(--fg)); font-family: inherit; font-size: 1rem;
}
.input:focus { outline: none; border-color: hsl(var(--casino-gold)); }
.input-search { padding-right: 2.5rem; }

/* ========== Filter Chips ========== */
.filter-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.875rem;
  font-weight: 500; background: hsl(var(--muted)); color: hsl(var(--fg));
  border: none; transition: all 0.3s;
}
.filter-chip:hover { background: hsl(var(--muted) / 0.8); }
.filter-chip.active { background: hsl(var(--casino-gold)); color: hsl(var(--casino-gold-fg)); }
.filter-chip-red.active { background: hsl(var(--casino-red)); color: hsl(var(--fg)); }

/* ========== Breadcrumbs ========== */
.breadcrumbs { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 0; font-size: 0.875rem; }
.breadcrumbs a { color: hsl(var(--muted-fg)); transition: color 0.3s; }
.breadcrumbs a:hover { color: hsl(var(--casino-gold)); }
.breadcrumbs .separator { color: hsl(var(--muted-fg)); }
.breadcrumbs .current { color: hsl(var(--casino-gold)); }

/* ========== Quiz ========== */
.progress-bar { height: 0.5rem; background: hsl(var(--muted)); border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: hsl(var(--casino-gold)); transition: width 0.5s; }
.quiz-option {
  width: 100%; padding: 1rem; text-align: right; background: hsl(var(--muted));
  border: 1px solid hsl(var(--border)); border-radius: 0.75rem; transition: all 0.3s;
  display: flex; align-items: center; gap: 0.75rem;
}
.quiz-option:hover { background: hsl(var(--casino-gold) / 0.1); border-color: hsl(var(--casino-gold) / 0.5); }
.quiz-option-letter {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: hsl(var(--casino-gold) / 0.2); display: flex; align-items: center; justify-content: center;
  color: hsl(var(--casino-gold)); font-weight: 700; transition: all 0.3s; flex-shrink: 0;
}
.quiz-option:hover .quiz-option-letter { background: hsl(var(--casino-gold)); color: hsl(var(--casino-gold-fg)); }

/* ========== Fortune ========== */
.zodiac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (min-width: 768px) { .zodiac-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .zodiac-grid { grid-template-columns: repeat(6, 1fr); } }
.zodiac-btn {
  padding: 1rem; border-radius: 0.75rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); text-align: center; transition: all 0.3s;
}
.zodiac-btn:hover { border-color: hsl(var(--casino-gold) / 0.5); transform: scale(1.05); }
.zodiac-btn.selected { background: hsl(var(--casino-gold) / 0.2); border-color: hsl(var(--casino-gold)); }
.zodiac-symbol { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.zodiac-name { font-weight: 500; color: hsl(var(--fg)); }
.zodiac-dates { font-size: 0.75rem; color: hsl(var(--muted-fg)); }

.luck-meter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 8rem; height: 8rem; border-radius: 50%;
  background: hsl(var(--casino-gold) / 0.2); border: 4px solid hsl(var(--casino-gold));
}
.luck-value { font-size: 2.5rem; font-weight: 700; color: hsl(var(--casino-gold)); }
.luck-percent { font-size: 0.875rem; color: hsl(var(--casino-gold)); display: block; }
.luck-element { background: hsl(var(--bg) / 0.5); border-radius: 0.75rem; padding: 1rem; text-align: center; }

/* ========== Blog Article ========== */
.article-content h2 { font-size: 1.5rem; font-weight: 700; color: hsl(var(--fg)); margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; color: hsl(var(--fg)); margin-top: 1.5rem; margin-bottom: 0.75rem; }
.article-content p { color: hsl(var(--muted-fg)); line-height: 1.8; margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin-bottom: 1rem; padding-right: 1.5rem; }
.article-content li { color: hsl(var(--muted-fg)); margin-bottom: 0.5rem; line-height: 1.7; }
.article-content strong { color: hsl(var(--fg)); }
.article-content a { color: hsl(var(--casino-gold)); }
.article-content a:hover { text-decoration: underline; }
.article-content figure { margin: 2rem 0; }
.article-content figcaption { text-align: center; font-size: 0.875rem; color: hsl(var(--muted-fg)); margin-top: 0.75rem; }
.article-content img { border-radius: 0.75rem; width: 100%; max-width: 42rem; margin: 0 auto; }
.article-content .tip-box {
  background: hsl(var(--casino-gold) / 0.1); border: 1px solid hsl(var(--casino-gold) / 0.3);
  border-radius: 0.75rem; padding: 1rem; margin: 1.5rem 0;
}
.article-content .tip-title { color: hsl(var(--casino-gold)); font-weight: 500; }
.article-content .bullet { width: 0.5rem; height: 0.5rem; background: hsl(var(--casino-gold)); border-radius: 50%; flex-shrink: 0; margin-top: 0.5rem; }

/* ========== Promo Featured ========== */
.promo-featured {
  position: relative; overflow: hidden; border-radius: 1rem;
  background: linear-gradient(135deg, hsl(var(--casino-gold) / 0.2), hsl(var(--bg)), hsl(var(--casino-red) / 0.2));
  border: 1px solid hsl(var(--casino-gold) / 0.3); padding: 2rem;
}
@media (min-width: 768px) { .promo-featured { padding: 3rem; } }
.promo-featured .promo-deco {
  position: absolute; top: 0; left: 0; width: 24rem; height: 24rem;
  background: hsl(var(--casino-gold) / 0.1); border-radius: 50%; filter: blur(48px);
}

/* ========== Promo Detail Card ========== */
.promo-detail .promo-header { padding: 1.5rem; border-bottom: 1px solid hsl(var(--border)); }
.promo-detail .promo-icon { display: inline-flex; padding: 0.75rem; border-radius: 0.75rem; margin-bottom: 1rem; font-size: 2rem; }
.promo-detail .promo-terms { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; }
.promo-detail .promo-terms .label { color: hsl(var(--muted-fg)); }
.promo-detail .promo-terms .value { color: hsl(var(--fg)); }

/* ========== Sport Categories ========== */
.sport-cat {
  flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; background: hsl(var(--muted)); border-radius: 0.75rem;
  border: 1px solid hsl(var(--border)); transition: all 0.3s; cursor: pointer;
}
.sport-cat:hover { border-color: hsl(var(--casino-gold) / 0.5); }
.sport-emoji { font-size: 1.5rem; }
.sport-name { font-weight: 700; color: hsl(var(--fg)); }
.sport-count { font-size: 0.75rem; color: hsl(var(--muted-fg)); }

/* ========== Sidebar ========== */
.sidebar-box { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 0.75rem; padding: 1.25rem; }
.sidebar-title { font-weight: 700; color: hsl(var(--fg)); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-link {
  display: block; width: 100%; text-align: right; padding: 0.5rem 0.75rem;
  border-radius: var(--radius); color: hsl(var(--muted-fg)); transition: all 0.3s; background: none; border: none; font-family: inherit;
}
.sidebar-link:hover { background: hsl(var(--muted)); }
.sidebar-link.active { background: hsl(var(--casino-gold) / 0.2); color: hsl(var(--casino-gold)); }

/* ========== Contact CTA ========== */
.contact-cta {
  max-width: 42rem; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--muted)));
  border: 1px solid hsl(var(--casino-gold) / 0.3); border-radius: 1rem; padding: 2rem;
}

/* ========== Two Column Layout ========== */
.layout-2col { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .layout-2col { grid-template-columns: 2fr 1fr; } }

/* ========== Blog List Item ========== */
.blog-list-item {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1rem; transition: all 0.3s;
}
@media (min-width: 768px) { .blog-list-item { flex-direction: row; } }
.blog-list-item .blog-thumb { width: 100%; height: 8rem; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: hsl(var(--muted)); }
@media (min-width: 768px) { .blog-list-item .blog-thumb { width: 12rem; } }
.blog-list-item .blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-list-item:hover .blog-thumb img { transform: scale(1.05); }

/* ========== Page Header ========== */
.page-header { padding: 2rem 0; background: var(--gradient-hero, linear-gradient(180deg, hsl(var(--card)) 0%, hsl(var(--bg)) 100%)); }
@media (min-width: 768px) { .page-header { padding: 3rem 0; } }

/* ========== App Features ========== */
.feature-item { display: flex; align-items: center; gap: 0.5rem; }
.feature-star { color: hsl(var(--casino-gold)); }

/* ========== Print ========== */
@media print {
  .header, .footer, .mobile-menu-btn { display: none; }
  body { background: white; color: black; }
}
