/* Shared pages + mobile + bonus modal */

/* Mobile sidebar */
.sb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 90;
}
body.sb-open { overflow: hidden; }

@media (max-width: 900px) {
  body { overflow: auto; display: block; }
  .sb {
    display: flex !important;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    width: min(280px, 86vw);
    max-width: 280px;
    height: 100%;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 32px rgba(0,0,0,0.45);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .sb.open { transform: translateX(0); }
  .main-wrap {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
  }
  .content {
    overflow: visible;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .hdr {
    padding: 0 10px;
    height: 56px;
    min-height: 56px;
    box-sizing: border-box;
  }
  .hdr-menu { flex-shrink: 0; }
  .hero {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .hero-title { font-size: 26px !important; line-height: 1.2 !important; }
  .hero-cards {
    max-width: none !important;
    grid-template-columns: 1fr !important;
  }
  .hero-card-img { width: 100%; height: auto; aspect-ratio: 350/230; }
  .games-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    justify-content: stretch !important;
    padding-bottom: 100px;
  }
  .games-scroll.games-scroll--top,
  #top-games {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    max-width: 380px !important;
    padding-bottom: 18px !important;
  }
  .game-tile, .game-img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
  }
  .game-tile {
    background: #0f212e !important;
  }
  .game-img {
    aspect-ratio: 339 / 180;
    object-fit: contain;
    object-position: center;
    background: #0f212e;
  }
  .games-scroll.games-scroll--top .game-tile,
  #top-games .game-tile {
    background: #213743 !important;
  }
  .games-scroll.games-scroll--top .game-img,
  #top-games .game-img,
  .game-img--square {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    background: #213743 !important;
  }
  .wallet-wrap { height: 36px; }
  .wallet-balance, .btn-deposit { height: 36px; font-size: 12px; padding: 0 10px; }
  .hdr-icon-btn { width: 34px; height: 34px; }
  .btn-login, .btn-register {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .float-chat { bottom: 16px; right: 16px; }
  .page-wrap { padding: 16px 0 80px; }
  .page-title { font-size: 22px; }
}

@media (min-width: 480px) and (max-width: 900px) {
  .games-scroll {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .games-scroll.games-scroll--top,
  #top-games {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 460px !important;
  }
}

/* Casino | Sports tabs */
.sb-tabs { justify-content: stretch; }
.sb-tab--casino,
.sb-tab--sport {
  flex: 1;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}
.sb-item.active {
  background: rgba(255,255,255,0.06);
  color: #f7fafc;
}

/* Page content */
.page-hero {
  margin: 8px 0 24px;
}
.page-hero h1 {
  margin: 0 0 8px;
  color: #f7fafc;
  font-size: 28px;
  font-weight: 700;
}
.page-hero p {
  margin: 0;
  color: #9fbed0;
  max-width: 640px;
  line-height: 1.5;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.promo-pack {
  position: relative;
  background: linear-gradient(160deg, #213743 0%, #0f212e 70%);
  border: 1px solid #2f4553;
  border-radius: 12px;
  padding: 22px 18px 18px;
  overflow: hidden;
}
.promo-pack::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(20,117,225,0.18);
}
.promo-pack.gold::before { background: rgba(0,231,1,0.12); }
.promo-pack.hot::before { background: rgba(252,87,74,0.14); }
.promo-tag {
  position: relative;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20,117,225,0.2);
  color: #7eb6f5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.promo-pack.gold .promo-tag { background: rgba(0,231,1,0.15); color: #00e701; }
.promo-pack.hot .promo-tag { background: rgba(252,87,74,0.18); color: #fc574a; }
.promo-dep {
  position: relative;
  font-size: 34px;
  font-weight: 800;
  color: #f7fafc;
  line-height: 1;
}
.promo-plus {
  position: relative;
  margin: 6px 0;
  color: #b1bad3;
  font-weight: 700;
}
.promo-bonus {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: #00e701;
  margin-bottom: 8px;
}
.promo-total {
  position: relative;
  color: #9fbed0;
  font-size: 13px;
  margin-bottom: 16px;
}
.promo-cta {
  position: relative;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #1475e1;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.promo-cta:hover { background: #4391e7; }

.cards-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.info-card {
  background: #1a2c38;
  border: 1px solid #2f4553;
  border-radius: 10px;
  padding: 18px 20px;
}
.info-card h3 {
  margin: 0 0 8px;
  color: #f7fafc;
  font-size: 16px;
}
.info-card p, .info-card li {
  margin: 0;
  color: #9fbed0;
  font-size: 14px;
  line-height: 1.5;
}
.info-card ul { margin: 8px 0 0; padding-left: 18px; }
.info-card a.btn-link {
  display: inline-flex;
  margin-top: 12px;
  color: #4391e7;
  font-weight: 600;
}

.vip-status { margin-bottom: 14px; }
.vip-status-card {
  background: linear-gradient(160deg, #1d3342, #132430);
  border: 1px solid #2f4553;
  border-radius: 14px;
  padding: 16px;
}
.vip-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #9fbed0;
  font-size: 14px;
}
.vip-status-row strong { color: #fff; }
.vip-progress-wrap { margin: 12px 0; }
.vip-progress-meta { font-size: 13px; color: #b1bad3; margin-bottom: 8px; }
.vip-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #0f212e;
  overflow: hidden;
  border: 1px solid #2f4553;
}
.vip-progress-bar.thin { height: 6px; margin: 10px 0; }
.vip-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--vip-color, #1475e1), #00e701);
  border-radius: inherit;
}
.vip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #1475e1;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.vip-btn.sm { height: 32px; padding: 0 12px; font-size: 12px; }
.vip-btn:hover { filter: brightness(1.08); color: #fff; }
.vip-max { margin: 8px 0 0; color: #00e701; font-weight: 700; }
.vip-levels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.vip-level {
  background: #0f212e;
  border: 1px solid #2f4553;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  border-top: 3px solid var(--vip-color, #1475e1);
}
.vip-level.is-current { box-shadow: 0 0 0 1px var(--vip-color, #1475e1); }
.vip-level.is-unlocked { background: linear-gradient(165deg, rgba(0,231,1,0.06), #0f212e 50%); }
.vip-level-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
}
.vip-level strong { color: #f7fafc; font-size: 16px; display: block; margin-bottom: 0; }
.vip-level-min { color: #7eb6f5; font-size: 12px; font-weight: 700; }
.vip-level-perk { margin: 0; color: #9fbed0; font-size: 13px; min-height: 36px; }
.vip-level-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.vip-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,210,122,0.12);
  color: #ffd27a;
  font-size: 11px;
  font-weight: 700;
}
.vip-pill.ok { background: rgba(0,231,1,0.12); color: #00e701; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.blog-card {
  background: #1a2c38;
  border: 1px solid #2f4553;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  color: inherit;
  transition: border-color 0.15s;
}
.blog-card:hover { border-color: #1475e1; }
.blog-card-img {
  height: 120px;
  background: linear-gradient(135deg, #1475e1, #0f212e);
}
.blog-card-body { padding: 14px 16px 18px; }
.blog-card-body h3 { margin: 0 0 6px; color: #f7fafc; font-size: 15px; }
.blog-card-body p { margin: 0; color: #9fbed0; font-size: 13px; }

.forum-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.forum-panel-head h2 { margin: 0 0 4px; color: #fff; font-size: 18px; }
.forum-panel-head p { margin: 0; color: #9fbed0; font-size: 13px; }
.forum-threads { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.forum-thread {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2f4553;
  background: #0f212e;
  color: #f7fafc;
  cursor: pointer;
  font: inherit;
}
.forum-thread:hover { border-color: #1475e1; }
.forum-thread span { color: #9fbed0; font-size: 12px; white-space: nowrap; }
.forum-hint { color: #7a8fa3; font-size: 12px; margin: 0 0 12px; }
a.btn-link.is-active { color: #00e701; }

/* Bonus modal */
.bonus-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 10, 16, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bonus-overlay[hidden] { display: none !important; }
.bonus-modal {
  position: relative;
  width: min(680px, 100%);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(20, 117, 225, 0.35), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(0, 231, 1, 0.12), transparent 50%),
    linear-gradient(165deg, #1d3342 0%, #132430 55%, #0f212e 100%);
  border: 1px solid rgba(126, 182, 245, 0.28);
  border-radius: 16px;
  padding: 22px 20px 16px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.bonus-modal-shine {
  position: absolute;
  inset: 0 auto auto 0;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  pointer-events: none;
}
.bonus-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 33, 46, 0.65);
  color: #b1bad3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bonus-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.bonus-head { text-align: center; margin-bottom: 14px; padding: 0 28px; }
.bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.28), rgba(20, 117, 225, 0.28));
  border: 1px solid rgba(255, 210, 122, 0.45);
  color: #ffd27a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  box-shadow: 0 0 22px rgba(255, 176, 32, 0.2);
}
.bonus-modal h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 10%, #ffd27a 45%, #00e701 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bonus-lead {
  margin: 0;
  color: #b8c9d9;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
.bonus-wager-note {
  margin: 0 0 12px;
  text-align: center;
  color: #9fbed0;
  font-size: 12px;
}
.bonus-lead strong {
  color: #fff;
  font-weight: 800;
  -webkit-text-fill-color: #fff;
}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.bonus-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 10px 12px;
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.bonus-card-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
.bonus-card--starter {
  background: linear-gradient(160deg, #163a5c 0%, #0f212e 70%);
  border-color: rgba(78, 168, 255, 0.45);
  box-shadow: 0 8px 24px rgba(20, 117, 225, 0.18);
}
.bonus-card--starter .bonus-card-glow { background: #1475e1; }
.bonus-card--starter .bonus-card-tag { color: #7eb6f5; }
.bonus-card--starter .bonus-card-mult {
  background: rgba(20, 117, 225, 0.25);
  color: #9fd0ff;
}

.bonus-card--plus {
  background: linear-gradient(160deg, #124a2a 0%, #0f212e 70%);
  border-color: rgba(0, 231, 1, 0.45);
  box-shadow: 0 8px 24px rgba(0, 231, 1, 0.16);
}
.bonus-card--plus .bonus-card-glow { background: #00e701; }
.bonus-card--plus .bonus-card-tag { color: #7dff7e; }
.bonus-card--plus .bonus-card-mult {
  background: rgba(0, 231, 1, 0.22);
  color: #00e701;
}

.bonus-card--max {
  background: linear-gradient(160deg, #4a3812 0%, #0f212e 70%);
  border-color: rgba(255, 196, 64, 0.5);
  box-shadow: 0 8px 24px rgba(255, 180, 40, 0.18);
}
.bonus-card--max .bonus-card-glow { background: #ffb020; }
.bonus-card--max .bonus-card-tag { color: #ffd27a; }
.bonus-card--max .bonus-card-mult {
  background: rgba(255, 176, 32, 0.22);
  color: #ffd27a;
}

.bonus-card:hover {
  transform: translateY(-3px) scale(1.02);
}
.bonus-card:active { transform: scale(0.98); }
.bonus-card-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.bonus-card-mult {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
}
.bonus-card-dep {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.bonus-card-plus {
  color: rgba(255, 255, 255, 0.45);
  margin: 1px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.bonus-card-bonus {
  font-size: 15px;
  font-weight: 800;
  color: #00e701;
  text-shadow: 0 0 16px rgba(0, 231, 1, 0.35);
}
.bonus-card--starter .bonus-card-bonus { color: #7eb6f5; text-shadow: 0 0 16px rgba(20,117,225,0.4); }
.bonus-card--max .bonus-card-bonus { color: #ffd27a; text-shadow: 0 0 16px rgba(255,176,32,0.4); }
.bonus-card-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: #d5e3ef;
}
.bonus-later {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(47, 69, 83, 0.85);
  color: #c5d0de;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.bonus-later:hover { filter: brightness(1.1); color: #fff; }

@media (max-width: 800px) {
  .promo-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 22px; }
  .bonus-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .bonus-modal {
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    padding: 14px 12px max(12px, env(safe-area-inset-bottom, 12px));
    max-height: none;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    animation: bonus-sheet-up 0.28s ease;
  }
  .bonus-head {
    margin-bottom: 10px;
    padding: 0 28px 0 4px;
    text-align: center;
  }
  .bonus-badge {
    margin-bottom: 6px;
    font-size: 9px;
    padding: 4px 10px;
    letter-spacing: 0.1em;
  }
  .bonus-modal h2 {
    font-size: 17px;
    margin-bottom: 4px;
  }
  .bonus-lead {
    font-size: 13px;
  }
  .bonus-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
  }
  .bonus-card {
    padding: 10px 6px 10px;
    border-radius: 12px;
    min-height: 0;
  }
  .bonus-card-tag { font-size: 9px; margin-bottom: 4px; letter-spacing: 0.04em; }
  .bonus-card-mult { margin-bottom: 4px; font-size: 9px; padding: 1px 6px; }
  .bonus-card-dep { font-size: 18px; }
  .bonus-card-plus { font-size: 12px; margin: 0; }
  .bonus-card-bonus { font-size: 13px; }
  .bonus-card-total {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 11px;
  }
  .bonus-later { height: 38px; border-radius: 10px; }
  .bonus-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }
}

@keyframes bonus-sheet-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 360px) {
  .bonus-card-dep { font-size: 16px; }
  .bonus-card-bonus { font-size: 12px; }
  .bonus-card-total { font-size: 10px; }
}
