/* 33BMW Gaming Portal - Static Site Styles */
:root {
  --bg: hsl(220, 20%, 8%);
  --bg-card: hsl(220, 18%, 12%);
  --bg-muted: hsl(220, 18%, 18%);
  --fg: hsl(45, 100%, 96%);
  --fg-muted: hsl(220, 10%, 60%);
  --primary: hsl(43, 74%, 52%);
  --primary-fg: hsl(220, 20%, 8%);
  --border: hsl(220, 15%, 20%);
  --destructive: hsl(0, 84%, 60%);
  --gold-gradient: linear-gradient(135deg, hsl(43, 74%, 52%), hsl(35, 80%, 45%));
  --shadow-gold: 0 4px 30px hsla(43, 74%, 52%, 0.3);
  --radius: 0.75rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsla(220, 20%, 8%, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 1rem;
}
.header-logo img { height: 40px; width: auto; }
.header-nav { display: flex; gap: 1.5rem; align-items: center; }
.header-nav a {
  color: hsla(45, 100%, 96%, 0.8); font-size: 0.875rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; transition: color 0.2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--primary); text-decoration: none; }
.header-actions { display: flex; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary {
  background: var(--gold-gradient); color: var(--primary-fg);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { opacity: 0.9; text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1px solid hsla(43, 74%, 52%, 0.5);
}
.btn-outline:hover { background: hsla(43, 74%, 52%, 0.1); text-decoration: none; }
.btn-ghost {
  background: transparent; color: hsla(45, 100%, 96%, 0.8);
  border: none;
}
.btn-ghost:hover { color: var(--fg); text-decoration: none; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.125rem; }

/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; color: var(--fg); font-size: 1.5rem; cursor: pointer; }
.mobile-nav { display: none; padding: 1rem 0; border-top: 1px solid var(--border); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.75rem 0; color: hsla(45, 100%, 96%, 0.8); font-weight: 500; }
@media (max-width: 1023px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .btn-login-desktop { display: none !important; }
}

/* Hero Banner */
.hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg), hsla(220, 20%, 8%, 0.6), transparent);
}
.hero-content { position: relative; z-index: 10; padding: 2rem 1rem; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: hsla(43, 74%, 52%, 0.2); border: 1px solid hsla(43, 74%, 52%, 0.3);
  border-radius: 9999px; padding: 0.5rem 1rem; margin-bottom: 1.5rem;
  font-size: 0.875rem; color: var(--primary);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 .gold { color: var(--primary); }
.hero p { font-size: 1.25rem; color: var(--fg-muted); margin-bottom: 2rem; max-width: 600px; margin-inline: auto; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 3rem; max-width: 400px; margin-inline: auto;
}
.hero-stats .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.hero-stats .stat-label { font-size: 0.75rem; color: var(--fg-muted); }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* H1 SEO Section */
.seo-title-section {
  background: linear-gradient(to right, hsla(43, 74%, 52%, 0.1), var(--bg), hsla(43, 74%, 52%, 0.1));
  padding: 1.5rem 1rem; text-align: center;
}
.seo-title-section h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
.seo-title-section p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-muted); }

/* Page Hero (subpages) */
.page-hero {
  position: relative; padding: 6rem 1rem 3rem; text-align: center;
  background: linear-gradient(to bottom, hsla(43, 74%, 52%, 0.1), transparent);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  background: linear-gradient(90deg, var(--primary), hsl(43, 80%, 65%), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}
.page-hero p { color: var(--fg-muted); font-size: 1.125rem; margin-top: 1rem; max-width: 640px; margin-inline: auto; }
@keyframes shimmer { to { background-position: 200% center; } }

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 1rem; font-size: 0.75rem; color: var(--fg-muted);
  max-width: 1200px; margin: 80px auto 0;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 0.5rem; }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color 0.3s;
}
.card:hover { border-color: hsla(43, 74%, 52%, 0.5); }
.card-body { padding: 1.5rem; }

/* Game Section */
.game-section { padding: 3rem 0; }
.game-section.alt { background: hsla(220, 18%, 18%, 0.3); }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.section-header .title-group { display: flex; align-items: center; gap: 0.75rem; }
.section-icon {
  width: 40px; height: 40px; border-radius: 0.5rem;
  background: var(--gold-gradient); display: flex;
  align-items: center; justify-content: center;
  color: var(--primary-fg); font-size: 1.25rem;
}
.section-header h2 { font-size: 1.5rem; font-weight: 700; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.game-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
  display: block; text-decoration: none;
}
.game-card:hover { transform: scale(1.05); box-shadow: var(--shadow-gold); text-decoration: none; }
.game-card .game-img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.game-card .game-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: hsla(220, 20%, 8%, 0.8); backdrop-filter: blur(4px);
  border-radius: 0.5rem; padding: 0.25rem 0.5rem;
  font-size: 0.75rem; font-weight: 700; color: var(--primary);
}
.game-card .game-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.75rem; background: linear-gradient(to top, var(--bg), transparent);
}
.game-card .game-info h3 { font-size: 0.875rem; font-weight: 600; color: var(--fg); }
.game-card .game-info p { font-size: 0.75rem; color: var(--fg-muted); }

/* Blog Grid */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-card .blog-img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.blog-card .blog-content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card .blog-category {
  font-size: 0.75rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.blog-card h2 { font-size: 1.125rem; font-weight: 700; margin: 0.5rem 0; color: var(--fg); }
.blog-card .blog-excerpt { font-size: 0.875rem; color: var(--fg-muted); flex: 1; }
.blog-card .blog-meta {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--fg-muted); margin-top: 1rem;
  padding-top: 0.75rem; border-top: 1px solid var(--border);
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; align-items: center; }
.pagination a, .pagination span, .pagination button {
  padding: 0.5rem 1rem; border-radius: 0.375rem;
  font-size: 0.875rem; transition: all 0.2s;
  border: none; cursor: pointer;
}
.pagination a { background: var(--bg-card); color: var(--fg); text-decoration: none; }
.pagination a:hover { background: hsla(43, 74%, 52%, 0.2); text-decoration: none; }
.pagination .active { background: var(--primary); color: var(--primary-fg); }
.pagination .jump-input {
  width: 60px; padding: 0.5rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 0.375rem;
  color: var(--fg); text-align: center; font-size: 0.875rem;
}

/* Loading & Error */
.loading { text-align: center; padding: 3rem; }
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-box {
  text-align: center; padding: 2rem;
  background: hsla(0, 84%, 60%, 0.1); border: 1px solid hsla(0, 84%, 60%, 0.3);
  border-radius: var(--radius); color: var(--destructive);
}

/* FAQ Accordion */
.accordion-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden;
}
.accordion-trigger {
  width: 100%; padding: 1rem 1.25rem; background: none; border: none;
  color: var(--fg); font-size: 1rem; font-weight: 600;
  text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.accordion-trigger:hover { background: hsla(220, 18%, 18%, 0.5); }
.accordion-trigger::after { content: '+'; font-size: 1.25rem; color: var(--primary); transition: transform 0.3s; }
.accordion-item.open .accordion-trigger::after { content: '−'; }
.accordion-content {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0 1.25rem; color: var(--fg-muted); font-size: 0.9375rem;
}
.accordion-item.open .accordion-content { max-height: 500px; padding-bottom: 1rem; }

/* VIP Tiers */
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.vip-card {
  border-radius: 1rem; overflow: hidden; border: 2px solid var(--border);
  background: var(--bg-card); transition: transform 0.3s, box-shadow 0.3s;
}
.vip-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px hsla(0, 0%, 0%, 0.3); }
.vip-card .vip-header { padding: 1.5rem; text-align: center; color: #fff; }
.vip-card .vip-header.bronze { background: linear-gradient(135deg, #b45309, #78350f); }
.vip-card .vip-header.silver { background: linear-gradient(135deg, #94a3b8, #475569); }
.vip-card .vip-header.gold { background: linear-gradient(135deg, #eab308, #d97706); }
.vip-card .vip-header.diamond { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.vip-card .vip-header h3 { font-size: 1.5rem; font-weight: 800; }
.vip-card .vip-body { padding: 1.5rem; }
.vip-card .vip-body .deposit { text-align: center; margin-bottom: 1rem; }
.vip-card .vip-body .deposit .amount { font-size: 1.75rem; font-weight: 800; }
.vip-card .vip-body .cashback-box {
  background: hsla(43, 74%, 52%, 0.1); border: 1px solid hsla(43, 74%, 52%, 0.3);
  border-radius: 0.75rem; padding: 1rem; text-align: center; margin-bottom: 1rem;
}
.vip-card .vip-body .cashback-value { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.vip-card .vip-body ul { list-style: none; padding: 0; }
.vip-card .vip-body li { padding: 0.5rem 0; font-size: 0.875rem; color: var(--fg-muted); display: flex; align-items: center; gap: 0.5rem; }
.vip-card .vip-body li::before { content: '⭐'; font-size: 0.75rem; }
.vip-popular { position: relative; }
.vip-popular::before {
  content: 'জনপ্রিয়'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold-gradient); color: var(--primary-fg); font-size: 0.75rem;
  font-weight: 700; padding: 0.25rem 1rem; border-radius: 9999px; z-index: 10;
}

/* Content sections (Terms, Privacy, Rule) */
.content-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 2rem; margin-bottom: 1.5rem;
}
.content-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.content-section p, .content-section li { color: var(--fg-muted); margin-bottom: 0.75rem; }
.content-section ul { padding-left: 1.5rem; }
.content-section li { list-style: disc; }
.content-section strong { color: var(--fg); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 0.875rem; color: var(--fg-muted); margin-top: 0.25rem; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.feature-card { text-align: center; }
.feature-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--fg-muted); }

/* Team Grid */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

/* Promotions */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.promo-card .promo-header { padding: 1rem 1.5rem; color: #fff; display: flex; align-items: center; gap: 0.75rem; }
.promo-card .promo-header h3 { font-size: 1.125rem; font-weight: 700; }
.promo-card .promo-body { padding: 1rem 1.5rem; }
.promo-card .promo-body p { font-size: 0.875rem; color: var(--fg-muted); }

/* Daily Check-in */
.checkin-grid { display: flex; align-items: flex-end; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.checkin-day {
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid var(--border); border-radius: 0.75rem;
  width: 80px; transition: all 0.3s; overflow: hidden;
}
.checkin-day.claimed { border-color: var(--primary); background: hsla(43, 74%, 52%, 0.1); }
.checkin-day.active { border-color: var(--primary); animation: pulse 2s infinite; }
.checkin-day .day-label { width: 100%; text-align: center; padding: 0.5rem; font-size: 0.75rem; font-weight: 500; color: var(--fg-muted); background: hsla(220, 18%, 18%, 0.5); }
.checkin-day .day-bonus { padding: 0.75rem 0.5rem; font-size: 1rem; font-weight: 800; color: var(--fg); }
.checkin-day.claimed .day-bonus { color: var(--primary); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* Footer */
.site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  margin-top: 4rem; padding: 3rem 0 1.5rem; position: relative; z-index: 10;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h3 { font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--fg-muted); font-size: 0.875rem; text-decoration: none; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.75rem; color: var(--fg-muted); margin-bottom: 0.5rem; }
.footer-trust { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: 0.75rem; color: var(--fg-muted); }
.trust-item .trust-icon { font-size: 1.5rem; color: var(--primary); }
.trust-item .trust-label { font-size: 0.875rem; font-weight: 600; color: var(--fg); }
.trust-item .trust-sub { font-size: 0.75rem; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  border: none; font-size: 1.25rem; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold); z-index: 40; transition: opacity 0.3s;
}
.back-to-top.visible { display: flex; }

/* Notice box */
.notice-box {
  background: hsla(0, 84%, 60%, 0.1); border: 1px solid hsla(0, 84%, 60%, 0.3);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.notice-box .notice-icon { font-size: 1.5rem; flex-shrink: 0; }
.notice-box h3 { font-weight: 700; margin-bottom: 0.5rem; }
.notice-box p { color: var(--fg-muted); font-size: 0.9375rem; }

/* CTA Box */
.cta-box {
  background: linear-gradient(to right, hsla(43, 74%, 52%, 0.1), hsla(43, 74%, 52%, 0.05));
  border: 1px solid hsla(43, 74%, 52%, 0.2);
  border-radius: var(--radius); padding: 2rem; text-align: center; margin-top: 2rem;
}
.cta-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-box p { color: var(--fg-muted); }

/* Utility */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--fg-muted); }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .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; }
.hidden { display: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
@media (max-width: 768px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .vip-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { max-width: 300px; }
}

/* Noscript */
noscript .noscript-links { padding: 2rem 1rem; }
noscript .noscript-links ul { list-style: none; padding: 0; }
noscript .noscript-links li { margin-bottom: 0.5rem; }
noscript .noscript-links a { color: var(--primary); }

/* Background overlay for subpages */
.page-bg {
  position: fixed; inset: 0; z-index: -1;
}
.page-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.page-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg), hsla(220, 20%, 8%, 0.9), var(--bg));
}

/* Category emoji tags */
.category-tag { display: inline-flex; align-items: center; gap: 0.25rem; }
