/* =============================================================
   BANGER CASINO — Stylesheet
   Dark navy theme with purple + blue accents (Banger brand identity).
   ============================================================= */

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

/* --- CSS Variables (Banger brand palette) --- */
:root {
  /* Background & surfaces (DARK Banger theme) */
  --bg:            #0b0f19;
  --bg-section:    rgba(255,255,255,0.03);
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);

  /* Header / Sidebar */
  --header-bg:     rgba(11,15,25,0.85);
  --sidebar-bg:    rgba(11,15,25,0.55);
  --sidebar-border:rgba(255,255,255,0.08);

  /* Banger brand accents */
  --accent:        #8b5cf6;          /* purple */
  --accent2:       #4f8dff;          /* blue */
  --purple:        #8b5cf6;
  --blue:          #4f8dff;
  --blue-light:    #6ea3ff;
  --pink:          #c084fc;
  --gold:          #f59e0b;
  --green:         #16a34a;
  --red:           #ef4444;

  /* Text */
  --text:          #ffffff;
  --text-muted:    rgba(255,255,255,0.72);
  --text-light:    rgba(255,255,255,0.55);
  --text-on-dark:  #ffffff;
  --text-nav:      rgba(255,255,255,0.72);

  /* Borders */
  --border:        rgba(255,255,255,0.12);
  --border-dark:   rgba(255,255,255,0.08);

  /* Sizes */
  --header-h:      72px;
  --sidebar-w:     220px;
  --r-sm:          10px;
  --r-md:          16px;
  --r-lg:          22px;
  --t:             0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(139,92,246,0.18), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(79,141,255,0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; background: none; color: inherit; }

/* =============================================================
   HEADER
   ============================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Header nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.header__nav a {
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-nav);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.header__nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.header__nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139,92,246,0.20), rgba(79,141,255,0.18));
  border: 1px solid rgba(139,92,246,0.35);
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-signin {
  padding: 10px 22px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: background var(--t), transform var(--t);
}
.btn-signin:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }

.btn-signup {
  padding: 10px 22px;
  border-radius: var(--r-sm);
  background: var(--accent);
  border: 1px solid rgba(139,92,246,0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: filter var(--t), transform var(--t);
}
.btn-signup:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--r-sm);
}
.burger:hover { background: rgba(255,255,255,0.08); }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  padding: 20px;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-nav);
  border-bottom: 1px solid var(--border-dark);
  transition: color var(--t), background var(--t);
}
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; background: rgba(139,92,246,0.12); }

.mobile-nav .mob-actions { display: flex; gap: 10px; margin-top: 20px; }
.mobile-nav .mob-actions a { flex: 1; text-align: center; display: block; }

/* =============================================================
   PAGE LAYOUT
   ============================================================= */
.layout {
  display: flex;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  position: fixed;
  top: var(--header-h); bottom: 0; left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  padding: 14px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.sidebar__label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  padding: 10px 18px 6px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.sidebar__item:hover { background: rgba(139,92,246,0.10); color: #fff; }
.sidebar__item.active {
  background: linear-gradient(90deg, rgba(139,92,246,0.18), rgba(79,141,255,0.10));
  color: #fff;
  font-weight: 700;
}

.sidebar__icon { font-size: 15px; flex-shrink: 0; width: 18px; text-align: center; }
.sidebar__divider { height: 1px; background: var(--sidebar-border); margin: 8px 14px; }

/* Main */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  padding: 28px 28px 60px;
}

/* =============================================================
   HERO BANNER
   ============================================================= */
.hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  min-height: 270px;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  background-color: #1a1336;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,15,25,0.78) 0%, rgba(11,15,25,0.40) 60%, rgba(11,15,25,0.10) 100%),
    linear-gradient(180deg, rgba(11,15,25,0.20) 0%, rgba(11,15,25,0.18) 55%, rgba(11,15,25,0.32) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  padding: 36px 40px;
  max-width: 60%;
  z-index: 2;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero__title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero__title span { color: var(--accent); }

.hero__sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.55;
  max-width: 540px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  border: 1px solid rgba(139,92,246,0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 32px;
  border-radius: var(--r-sm);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: filter var(--t), transform var(--t);
}
.hero__cta:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* =============================================================
   SEARCH BAR
   ============================================================= */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.search-bar__wrap {
  flex: 1;
  position: relative;
}
.search-bar__wrap svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}
.search-bar__input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: inherit;
  color: #fff;
  transition: border-color var(--t), box-shadow var(--t);
}
.search-bar__input::placeholder { color: var(--text-light); }
.search-bar__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
}
.search-bar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--t);
}
.search-bar__sort:hover { border-color: var(--accent); color: #fff; }

/* =============================================================
   SECTION HEADER
   ============================================================= */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sec-head__left { display: flex; align-items: center; gap: 8px; }
.sec-head__icon { font-size: 18px; }
.sec-head__title { font-size: 15px; font-weight: 800; color: #fff; }
.sec-head__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  transition: color var(--t);
}
.sec-head__link:hover { color: #fff; }

/* =============================================================
   GAME CARDS
   ============================================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.game-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(139,92,246,0.20);
  border-color: rgba(139,92,246,0.45);
}

.game-card__face {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,15,25,0.92) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.game-card:hover .game-card__overlay { opacity: 1; }

.game-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 8px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-card__badge {
  position: absolute;
  top: 8px; left: 8px;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.55);
  letter-spacing: 0.5px;
}
.game-card__badge.new  { background: var(--green); }
.game-card__badge.hot  { background: var(--red); }

/* =============================================================
   STATS
   ============================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 16px;
  text-align: center;
}
.stat-card__val {
  font-family: 'Exo 2', sans-serif;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card__lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* =============================================================
   BONUS CARDS
   ============================================================= */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.bonus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139,92,246,0.45);
  box-shadow: 0 10px 28px rgba(139,92,246,0.18);
}
.bonus-card__img {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2a1f4d;
}
.bonus-card__body { padding: 18px; }
.bonus-card__tag {
  display: inline-block;
  background: rgba(139,92,246,0.18);
  color: var(--accent);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bonus-card__title {
  font-family: 'Exo 2', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.bonus-card__amount {
  font-family: 'Exo 2', sans-serif;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.bonus-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.bonus-card__cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: filter var(--t), transform var(--t);
}
.bonus-card__cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* =============================================================
   FAQ
   ============================================================= */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.open { border-color: rgba(139,92,246,0.45); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  gap: 16px;
  transition: background var(--t);
}
.faq-item__q:hover { background: rgba(139,92,246,0.06); }
.faq-item.open .faq-item__q {
  background: linear-gradient(90deg, rgba(139,92,246,0.14), rgba(79,141,255,0.10));
}
.faq-item__q h3, .faq-item__q-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}
.faq-item__q-icon {
  width: 28px; height: 28px;
  background: rgba(139,92,246,0.16);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  transition: transform var(--t), background var(--t);
}
.faq-item.open .faq-item__q-icon {
  transform: rotate(45deg);
  background: var(--accent);
}
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-item__a { max-height: 600px; }
.faq-item__a-inner {
  padding: 14px 20px 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-item__a-inner p { margin: 0 0 8px; }
.faq-item__a-inner p:last-child { margin: 0; }

/* =============================================================
   SEO TEXT BLOCK
   ============================================================= */
.seo-block {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 28px 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.seo-block h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}
.seo-block h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 26px 0 10px;
  letter-spacing: -0.2px;
}
.seo-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 18px 0 8px;
}
.seo-block p { margin: 0 0 12px; max-width: 90ch; }
.seo-block p:last-child { margin-bottom: 0; }
.seo-block ul, .seo-block ol { margin: 0 0 14px 22px; }
.seo-block li { margin: 6px 0; }
.seo-block a {
  color: var(--accent2);
  border-bottom: 1px dotted rgba(79,141,255,0.5);
  transition: color var(--t), border-color var(--t);
}
.seo-block a:hover { color: #fff; border-color: #fff; }
.seo-block strong { color: #fff; }

.seo-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 18px;
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.seo-block th, .seo-block td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.seo-block th {
  color: #fff;
  background: rgba(139,92,246,0.14);
  font-weight: 800;
}
.seo-block td { color: var(--text-muted); }

/* =============================================================
   STEPS / INSTALLATION
   ============================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
}
.step__num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Exo 2', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.step__title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.step__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* =============================================================
   APP PAGE  (combined hero + cta block)
   ============================================================= */
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.app-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  transition: border-color var(--t), transform var(--t);
}
.app-feature:hover { border-color: rgba(139,92,246,0.45); transform: translateY(-2px); }
.app-feature__icon { font-size: 30px; margin-bottom: 10px; }
.app-feature__title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.app-feature__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

.app-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
  font-family: inherit;
  text-align: left;
}
.app-btn:hover { border-color: var(--accent); background: rgba(139,92,246,0.08); transform: translateY(-1px); }
.app-btn__icon { font-size: 26px; }
.app-btn__text { display: flex; flex-direction: column; align-items: flex-start; }
.app-btn__text span:first-child { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.app-btn__text span:last-child { font-size: 15px; font-weight: 800; color: #fff; }

/* =============================================================
   PAGE TITLE (small page-level header above sections)
   ============================================================= */
.page-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.page-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.6;
  max-width: 720px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: rgba(11,15,25,0.85);
  border-top: 1px solid var(--border);
  margin-left: var(--sidebar-w);
  padding: 44px 28px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 32px;
}
.footer__brand-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer__brand-logo img { height: 42px; width: auto; }
.footer__brand-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }

.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-muted);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.footer__social a:hover { color: #fff; border-color: var(--accent); background: rgba(139,92,246,0.12); }

.footer__col-title {
  font-size: 12px; font-weight: 800; color: #fff;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1.5px;
}
.footer__col-list { display: flex; flex-direction: column; gap: 9px; }
.footer__col-list a {
  font-size: 13px; color: var(--text-muted);
  transition: color var(--t);
}
.footer__col-list a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer__copy { font-size: 12px; color: var(--text-light); }
.footer__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.footer__disclaimer {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.65;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .footer { margin-left: 0; }
  .header__nav { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__content { max-width: 80%; }
}

@media (max-width: 640px) {
  .header { padding: 0 14px; }
  .logo img { height: 42px; }
  .header__actions { gap: 6px; }
  .btn-signin, .btn-signup { padding: 9px 14px; font-size: 12px; }
  .main { padding: 16px 14px 50px; }
  .hero { min-height: 220px; }
  .hero__content { max-width: 100%; padding: 24px 20px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bonus-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .app-features { grid-template-columns: 1fr; }
  .app-buttons { flex-direction: column; }
  .app-btn { width: 100%; }
  .footer { padding: 30px 16px 20px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .seo-block { padding: 22px 18px; }
  .search-bar { flex-direction: column; }
  .search-bar__sort { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =============================================================
   URDU + RTL OVERRIDES
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

html[dir="rtl"] body,
html[lang="ur-PK"] body {
  font-family: 'Noto Nastaliq Urdu', 'Inter', system-ui, sans-serif;
  line-height: 1.9;
}

/* Latin brand & technical terms inside Urdu paragraphs use Inter for readability */
html[dir="rtl"] .latin,
html[lang="ur-PK"] .latin {
  font-family: 'Inter', sans-serif;
  unicode-bidi: isolate;
}

/* Sidebar moves to the right side in RTL */
html[dir="rtl"] .sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--sidebar-border);
}
html[dir="rtl"] .main {
  margin-left: 0;
  margin-right: var(--sidebar-w);
}
html[dir="rtl"] .footer {
  margin-left: 0;
  margin-right: var(--sidebar-w);
}

/* Headings — slightly larger line-height for Urdu */
html[dir="rtl"] .seo-block h1,
html[dir="rtl"] .seo-block h2,
html[dir="rtl"] .seo-block h3,
html[dir="rtl"] .hero__title,
html[dir="rtl"] .page-title {
  font-family: 'Noto Nastaliq Urdu', 'Exo 2', sans-serif;
  line-height: 1.7;
  font-weight: 700;
}

/* Lists need RTL bullet alignment */
html[dir="rtl"] .seo-block ul,
html[dir="rtl"] .seo-block ol {
  margin: 0 22px 14px 0;
  padding-right: 0;
}

/* Tables align right by default for Urdu */
html[dir="rtl"] .seo-block th,
html[dir="rtl"] .seo-block td {
  text-align: right;
}

/* Hero gradient flips — keep the dark side on the right (where text begins in RTL) */
html[dir="rtl"] .hero::after {
  background:
    linear-gradient(270deg, rgba(11,15,25,0.78) 0%, rgba(11,15,25,0.40) 60%, rgba(11,15,25,0.10) 100%),
    linear-gradient(180deg, rgba(11,15,25,0.20) 0%, rgba(11,15,25,0.18) 55%, rgba(11,15,25,0.32) 100%);
}

/* Search icon flips to the right side */
html[dir="rtl"] .search-bar__wrap svg {
  left: auto;
  right: 14px;
}
html[dir="rtl"] .search-bar__input {
  padding: 12px 42px 12px 16px;
}

/* FAQ icon stays visually on the right edge in RTL */
html[dir="rtl"] .faq-item__q {
  flex-direction: row;
}

/* Footer column titles align right */
html[dir="rtl"] .footer__col-title,
html[dir="rtl"] .footer__col-list a {
  text-align: right;
}

/* Section heads */
html[dir="rtl"] .sec-head__left {
  flex-direction: row;
}

/* Game cards play overlay text */
html[dir="rtl"] .game-card__badge {
  left: auto;
  right: 8px;
}

/* Sidebar item icons sit on the right edge in RTL */
html[dir="rtl"] .sidebar__item {
  flex-direction: row;
}

/* Mobile responsive — sidebar already hides at 1024px, just need to reset margin */
@media (max-width: 1024px) {
  html[dir="rtl"] .main { margin-right: 0; }
  html[dir="rtl"] .footer { margin-right: 0; }
}

/* Numeric content (PKR amounts in tables, dates, prices) keeps LTR direction */
html[dir="rtl"] .num,
html[dir="rtl"] .seo-block td:nth-child(2),
html[dir="rtl"] .seo-block td:nth-child(3) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Override: make the home page payments table cells render numbers correctly */
html[dir="rtl"] .stat-card__val,
html[dir="rtl"] .bonus-card__amount {
  direction: ltr;
  unicode-bidi: isolate;
}
