/* ─── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:       #0C092D;
  --bg-sidebar:    #13104A;
  --bg-card:       #1E1B5A;
  --bg-card-2:     #272370;
  --bg-card-3:     #302C85;
  --primary:       #B0FF3C;
  --primary-dark:  #8ED620;
  --primary-light: #E2FFB0;
  --text:          #FFFFFF;
  --text-muted:    #8884BB;
  --accent:        #F5E642;
  --radius:        12px;
  --radius-sm:     8px;
  --sidebar-w:     320px;
  --sidebar-w-sm:  70px;
  --header-h:      60px;
  --bottom-bar-h:  52px;
}

html, body {
  height: 100%;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Sansation', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; outline: none; }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
ul { list-style: none; }

/* ─── LAYOUT ──────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 90;
}
.sidebar-overlay.active { display: block; }

.sidebar {
  position: fixed;
  top: var(--header-h); left: 0;
  height: calc(100vh - var(--header-h));
  width: var(--sidebar-w-sm);
  background: var(--bg-sidebar);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card) transparent;
  padding-bottom: var(--bottom-bar-h);
  transition: width .28s ease;
}
.sidebar.open { width: var(--sidebar-w); }

.main-wrap {
  margin-left: var(--sidebar-w-sm);
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column;
  transition: margin-left .28s ease;
}
.sidebar.open ~ .main-wrap { margin-left: var(--sidebar-w); }

.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-sidebar);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; z-index: 110;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__divider { width: 1px; height: 28px; background: rgba(255,255,255,.12); flex-shrink: 0; margin-right: 6px; }
.header__logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header__logo-img { width: 28px; height: 28px; object-fit: contain; }
.header__logo-name { font-size: 16px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.header__spacer { flex: 1; }
.header__search {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; background: var(--bg-card);
  border-radius: 20px; color: var(--text-muted);
  font-size: 13px; cursor: pointer; transition: background .15s;
}
.header__search:hover { background: var(--bg-card-2); }
.main-content { flex: 1; padding-bottom: calc(var(--bottom-bar-h) + 24px); }
.container { max-width: 1400px; margin: 0 auto; padding: 20px 20px 0; }

/* ─── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 20px; height: 38px; border-radius: 8px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: opacity .15s, background .15s; cursor: pointer;
}
.btn--primary { background: var(--primary); color: #000; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.25); }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); }
.btn--banner { height: 40px; padding: 0 24px; font-size: 14px; margin-top: 16px; }

/* ─── SIDEBAR MINI-RAIL ───────────────────────────────────────────── */
.sidebar:not(.open) .sidebar__features { padding: 10px 0 6px; gap: 2px; align-items: center; }
.sidebar:not(.open) .sidebar__feat-row { flex-direction: column; gap: 2px; width: 100%; }
.sidebar:not(.open) .sidebar__feat { justify-content: center; padding: 10px 0; gap: 0; width: 100%; background: transparent; border-radius: 0; }
.sidebar:not(.open) .sidebar__feat:hover { background: var(--bg-card); border-radius: var(--radius-sm); }
.sidebar:not(.open) .sidebar__feat span { display: none; }
.sidebar:not(.open) .sidebar__feat-icon { width: 28px; height: 28px; }

.sidebar:not(.open) .sidebar__nav { padding: 6px 0; }
.sidebar:not(.open) .sidebar__group-btn,
.sidebar:not(.open) .sidebar__nav-item { justify-content: center; padding: 12px 0; }
.sidebar:not(.open) .sidebar__group-btn span,
.sidebar:not(.open) .sidebar__group-btn .sidebar__chevron,
.sidebar:not(.open) .sidebar__nav-item span { display: none; }
.sidebar:not(.open) .sidebar__group-sub { display: none !important; }

.sidebar:not(.open) .sidebar__bottom { padding: 12px 0; align-items: center; }
.sidebar:not(.open) .sidebar__help-row { flex-direction: column; }
.sidebar:not(.open) .sidebar__help-btn { display: none; }
.sidebar:not(.open) .sidebar__socials,
.sidebar:not(.open) .sidebar__app-banner,
.sidebar:not(.open) .sidebar__lang-wrap { display: none; }

/* ─── SIDEBAR EXPANDED ────────────────────────────────────────────── */
.sidebar__features { padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; overflow: hidden; }
.sidebar__feat-row { display: flex; gap: 6px; min-width: 0; }
.sidebar__feat {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--text);
  transition: background .15s;
}
.sidebar__feat:hover { background: var(--bg-card-2); }
.sidebar__feat--full { width: 100%; }
.sidebar__feat--half { flex: 1; min-width: 0; overflow: hidden; }
.sidebar__feat--half span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__feat-icon { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }

.sidebar__nav { padding: 6px 10px; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar__nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 10px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid rgba(255,255,255,.06); transition: color .15s; }
.sidebar__nav-item:hover { color: var(--primary); }
.sidebar__nav-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); }

.sidebar__group-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid rgba(255,255,255,.06); transition: color .15s; }
.sidebar__group-btn:hover { color: var(--primary); }
.sidebar__group-btn span { flex: 1; text-align: left; }
.sidebar__chevron { flex-shrink: 0; color: var(--text-muted); transition: transform .2s; }
.sidebar__group-btn[aria-expanded="true"] .sidebar__chevron { transform: rotate(180deg); }

.sidebar__group-sub { display: none; flex-direction: column; padding: 4px 0 6px 42px; gap: 1px; }
.sidebar__group-sub.open { display: flex; }
.sidebar__sub-item { padding: 7px 12px; font-size: 13px; color: var(--text-muted); border-radius: 6px; transition: color .15s, background .15s; }
.sidebar__sub-item:hover { color: var(--text); background: var(--bg-card); }

.sidebar__bottom { margin-top: auto; padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.sidebar__help-row { display: flex; gap: 8px; align-items: stretch; }
.sidebar__chat-btn { display: flex; align-items: center; justify-content: center; width: 46px; flex-shrink: 0; background: var(--bg-card); border-radius: var(--radius-sm); color: var(--text-muted); transition: background .15s, color .15s; }
.sidebar__chat-btn:hover { background: var(--bg-card-2); color: var(--text); }
.sidebar__help-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; background: var(--primary); color: #000; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; transition: background .15s; }
.sidebar__help-btn:hover { background: var(--primary-dark); }

.sidebar__lang-wrap { padding: 2px 0; }
.lang-select__btn--sidebar { width: 100%; background: var(--bg-card); border-radius: var(--radius-sm); justify-content: center; padding: 11px 16px; font-size: 14px; font-weight: 600; }

.sidebar__socials { display: flex; justify-content: center; gap: 8px; }
.sidebar__social { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--bg-card); border-radius: var(--radius-sm); color: var(--text-muted); transition: background .15s, color .15s; }
.sidebar__social:hover { background: var(--bg-card-2); color: var(--text); }

.sidebar__app-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-card); border-radius: var(--radius-sm); transition: background .15s; }
.sidebar__app-banner:hover { background: var(--bg-card-2); }
.sidebar__app-icon { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.sidebar__app-title { font-size: 13px; font-weight: 700; color: var(--text); }
.sidebar__app-sub { font-size: 11px; color: var(--text-muted); }

/* ─── HEADER BURGER ───────────────────────────────────────────────── */
.header__burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; flex-shrink: 0; }
.header__burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── LANG SELECT ──────────────────────────────────────────────────── */
.lang-select { position: relative; }
.lang-select__btn { display: flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--bg-card); border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.lang-select__btn:hover { background: var(--bg-card-2); }
.lang-select__globe, .lang-select__arrow { color: var(--text-muted); flex-shrink: 0; }
.lang-select__arrow { transition: transform .2s; }
.lang-select.open .lang-select__arrow { transform: rotate(180deg); }
.lang-select__dropdown { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: var(--bg-card-2); border-radius: var(--radius-sm); min-width: 140px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 200; }
.lang-select.open .lang-select__dropdown { display: block; }
.lang-select__option { padding: 10px 16px; font-size: 13px; cursor: pointer; transition: background .15s; }
.lang-select__option:hover { background: var(--bg-card-3); }
.lang-select__option--active { color: var(--primary); font-weight: 700; }

/* ─── 3 BANNERS ────────────────────────────────────────────────────── */
.banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.banner {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--bg-card);
}

.banner__bg {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right bottom;
  z-index: 0;
}

.banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,9,45,.92) 0%, rgba(12,9,45,.7) 60%, transparent 100%);
  z-index: 1;
}

.banner__content {
  position: relative; z-index: 2;
  padding: 24px 22px;
}

.banner__badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(80,100,220,.8);
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.banner__title {
  font-size: clamp(16px, 2vw, 24px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--accent) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.banner__amount {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}

/* ─── GAME SECTIONS ─────────────────────────────────────────────────── */
.games-section { margin-bottom: 32px; }
.games-section__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.games-section__title { font-size: 22px; font-weight: 700; color: var(--primary); }
.games-section__controls { display: flex; align-items: center; gap: 8px; }
.games-section__viewall { display: inline-flex; align-items: center; padding: 7px 18px; background: var(--bg-card-2); color: var(--text); border-radius: 20px; font-size: 13px; font-weight: 600; transition: background .15s; }
.games-section__viewall:hover { background: var(--bg-card-3); }
.games-section__arrow { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--bg-card-2); border-radius: var(--radius-sm); color: var(--text); transition: background .15s; }
.games-section__arrow:hover { background: var(--bg-card-3); }

.games-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.game-card { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-card); display: block; transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.game-card__img { width: 100%; height: 100%; object-fit: cover; }
.game-card__overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 55%; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 55%, transparent 100%); }
.game-card__heart { position: absolute; top: 7px; right: 7px; z-index: 3; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); border-radius: 50%; color: rgba(255,255,255,.65); transition: color .15s; }
.game-card__heart:hover { color: #ff4d6d; }
.game-card__heart.active { color: #ff4d6d; }
.game-card__heart.active svg { fill: #ff4d6d; }
.game-card__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 9px 9px; z-index: 2; }
.game-card__name { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card__provider { font-size: 9px; color: var(--text-muted); text-transform: uppercase; margin-top: 1px; }

/* ─── SEO CONTENT ───────────────────────────────────────────────────── */
.seo-content { margin: 8px 0 32px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.seo-content h1 { font-size: 24px; font-weight: 700; color: var(--text); margin: 0 0 16px; }
.seo-content h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.seo-content h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 18px 0 8px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-card); border-radius: var(--radius-sm); }
.seo-content h3::after { content: '+'; font-size: 18px; color: var(--primary); flex-shrink: 0; }
.seo-content h3.faq-open::after { content: '−'; }
.seo-content h3 + p { display: none; padding: 10px 16px 14px; background: var(--bg-card); border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-top: -4px; margin-bottom: 6px; }
.seo-content h3.faq-open + p { display: block; }
.seo-content p { margin-bottom: 12px; }
.seo-content a { color: var(--primary); }
.seo-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; background: transparent; }
.seo-content th { background: transparent; color: var(--text); font-weight: 700; text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--primary); }
.seo-content td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--text-muted); background: transparent; }
.seo-content tr:hover td { color: var(--text); }
.seo-content ul, .seo-content ol { margin: 8px 0 12px 20px; }
.seo-content ul { list-style: disc; }
.seo-content ol { list-style: decimal; }
.seo-content li { padding: 3px 0; color: var(--text-muted); }
.seo-content li::marker { color: var(--primary); }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer { background: var(--bg-sidebar); padding: 28px 24px 20px; border-top: 1px solid rgba(255,255,255,.07); }
.footer__payments { display: flex; align-items: center; justify-content: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 24px; }
.footer__payment-icon { height: 24px; width: auto; opacity: .75; transition: opacity .15s; }
.footer__payment-icon:hover { opacity: 1; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-bottom: 24px; }
.footer__col { min-width: 130px; }
.footer__col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 10px; }
.footer__link { display: block; font-size: 12px; color: var(--text-muted); padding: 3px 0; transition: color .15s; }
.footer__link:hover { color: var(--text); }
.footer__ssl { display: flex; justify-content: center; margin-bottom: 16px; }
.footer__ssl-img { height: 36px; width: auto; opacity: .6; }
.footer__copy { text-align: center; font-size: 11px; color: var(--text-muted); line-height: 1.6; }

/* ─── BOTTOM BAR ────────────────────────────────────────────────── */
.bottom-bar { position: fixed; bottom: 0; left: var(--sidebar-w-sm); right: 0; transition: left .28s ease; height: var(--bottom-bar-h); background: var(--bg-sidebar); border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; padding: 0 20px; gap: 16px; z-index: 50; }
.bottom-bar__help { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; background: var(--primary); color: #000; border-radius: 8px; font-size: 12px; font-weight: 700; transition: background .15s; }
.bottom-bar__help:hover { background: var(--primary-dark); }
body:has(.sidebar.open) .bottom-bar { left: var(--sidebar-w); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .games-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(5, 1fr); }
  .banners-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
