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

:root {
  --bg-body:       #292230;
  --bg-sidebar:    #1e1830;
  --bg-header:     #1e1830;
  --bg-card:       #342c46;
  --bg-card-hover: #3d3455;
  --primary:       #22b8f0;
  --primary-dark:  #1a8fc0;
  --accent:        #f0a022;
  --text-primary:  #ffffff;
  --text-secondary:#b0a8c8;
  --text-muted:    #7a7090;
  --border:        rgba(255,255,255,0.08);
  --sidebar-w:     68px;
  --sidebar-open:  240px;
  --header-h:      60px;
  --radius:        10px;
}

html { font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

/* ── LAYOUT ── */
.layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 200;
}
.header__burger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  flex-shrink: 0; border-radius: 8px;
  transition: background .2s;
}
.header__burger:hover { background: rgba(255,255,255,0.08); }
.header__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.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); }

.header__logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.header__logo img { height: 34px; width: auto; }
.header__logo-text {
  font-size: 1.15rem; font-weight: 700;
  color: var(--primary);
  letter-spacing: -.3px;
}

.header__nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: 8px; overflow: hidden;
}
.header__nav a {
  padding: 6px 12px; border-radius: 6px;
  font-size: .85rem; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.header__nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.header__nav a.active { color: var(--primary); }

.header__spacer { flex: 1; }

.header__search {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 0 12px;
  gap: 8px; height: 36px;
}
.header__search input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: .85rem;
  width: 140px;
}
.header__search input::placeholder { color: var(--text-muted); }
.header__search svg { color: var(--text-muted); flex-shrink: 0; }

.header__actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-login {
  padding: 0 18px; height: 36px; border-radius: 8px;
  border: 1px solid var(--primary);
  color: var(--primary); font-size: .85rem; font-weight: 600;
  display: flex; align-items: center;
  transition: background .2s, color .2s;
}
.btn-login:hover { background: var(--primary); color: #fff; }
.btn-signup {
  padding: 0 18px; height: 36px; border-radius: 8px;
  background: var(--primary);
  color: #fff; font-size: .85rem; font-weight: 600;
  display: flex; align-items: center;
  transition: background .2s;
}
.btn-signup:hover { background: var(--primary-dark); }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width .28s cubic-bezier(.4,0,.2,1);
  z-index: 150;
}
.sidebar.open { width: var(--sidebar-open); }

.sidebar__nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; flex: 1; overflow-y: auto; overflow-x: hidden; }
.sidebar__nav::-webkit-scrollbar { width: 3px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar__link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  font-size: .875rem; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap; overflow: hidden;
  transition: background .2s, color .2s;
  min-width: 0;
}
.sidebar__link:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.sidebar__link.active { background: rgba(34,184,240,0.12); color: var(--primary); }
.sidebar__link svg { flex-shrink: 0; }
.sidebar__link-label { opacity: 0; transition: opacity .2s; pointer-events: none; }
.sidebar.open .sidebar__link-label { opacity: 1; }

.sidebar__divider {
  height: 1px; background: var(--border);
  margin: 6px 10px; flex-shrink: 0;
}

/* Promo block */
.sidebar__promo-wrap {
  display: none;
  position: relative;
  padding-top: 100px;
  margin: 8px 10px 12px;
  flex-shrink: 0;
}
.sidebar.open .sidebar__promo-wrap { display: block; }
.sidebar__promo-char {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  height: 170px; width: auto;
  object-fit: contain; z-index: 2; pointer-events: none;
}
.sidebar__promo {
  position: relative;
  background: linear-gradient(135deg, rgba(34,184,240,0.18) 0%, rgba(34,184,240,0.06) 100%);
  border: 1px solid rgba(34,184,240,0.25);
  border-radius: 14px;
  padding: 74px 14px 14px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.sidebar__promo-title {
  font-size: .8rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 2px;
  line-height: 1.3;
}
.sidebar__promo-sub {
  font-size: .7rem; color: var(--text-secondary);
  margin-bottom: 12px;
}
.sidebar__promo-btns { display: flex; gap: 6px; width: 100%; }
.btn-login-sm, .btn-signup-sm {
  flex: 1; height: 32px; border-radius: 16px;
  font-size: .75rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.btn-login-sm {
  border: 1px solid var(--primary); color: var(--primary);
}
.btn-login-sm:hover { background: var(--primary); color: #fff; }
.btn-signup-sm {
  background: var(--primary); color: #fff;
}
.btn-signup-sm:hover { background: var(--primary-dark); }

/* ── SIDEBAR OVERLAY ── */
.sidebar-overlay {
  display: none; position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0,0,0,0.5);
  z-index: 140;
}
.sidebar-overlay.active { display: block; }

/* ── MAIN ── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  transition: margin-left .28s cubic-bezier(.4,0,.2,1);
}
.sidebar.open ~ .main { margin-left: var(--sidebar-open); }

/* ── HERO / VIDEO BANNER ── */
.hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: #1a1228;
}
.hero__video {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(41,34,48,0.92) 0%,
    rgba(41,34,48,0.6)  45%,
    rgba(41,34,48,0.1)  100%);
}
.hero__content {
  position: relative; z-index: 2;
  height: 100%; display: flex;
  flex-direction: column; justify-content: center;
  padding: 0 48px; max-width: 520px;
}
.hero__tag {
  display: inline-block;
  background: var(--primary);
  color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 14px; align-self: flex-start;
}
.hero__h1 {
  font-size: 2.2rem; font-weight: 800;
  line-height: 1.15; margin-bottom: 10px;
  color: #fff;
}
.hero__amount {
  font-size: 2.6rem; font-weight: 900;
  color: var(--primary); line-height: 1; margin-bottom: 6px;
}
.hero__spins {
  font-size: 1.1rem; color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero__btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-size: .95rem; font-weight: 700;
  padding: 0 32px; height: 48px; border-radius: 10px;
  align-self: flex-start;
  transition: background .2s, transform .15s;
}
.hero__btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── PROMO CARDS ── */
.promos { padding: 24px 20px 8px; display: flex; gap: 16px; }
.promo-card {
  flex: 1; min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 290px;
  background: var(--bg-card);
}
.promo-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.promo-card:hover .promo-card__img { transform: scale(1.04); }
.promo-card__body {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0.92) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 14px;
}
.promo-card__tag {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--primary);
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.promo-card__title {
  font-size: 1.05rem; font-weight: 800;
  color: #fff; line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}
.promo-card__desc {
  font-size: .75rem; color: #d4cce8;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.promo-card__btn {
  display: inline-flex; align-items: center;
  background: var(--primary); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: 6px 14px; border-radius: 6px;
  margin-top: 8px; align-self: flex-start;
  transition: background .2s;
}
.promo-card__btn:hover { background: var(--primary-dark); }

/* ── SECTION ── */
.section { padding: 28px 20px 8px; }
.section__head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section__title {
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.section__title svg { color: var(--primary); }
.section__view-all {
  font-size: .8rem; font-weight: 600;
  color: var(--primary);
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(34,184,240,0.35);
  transition: background .2s;
}
.section__view-all:hover { background: rgba(34,184,240,0.1); }

/* ── CATEGORY TABS ── */
.cats-wrap { padding: 0 20px 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.cats-tab {
  padding: 6px 14px; border-radius: 20px;
  font-size: .8rem; font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.cats-tab:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.cats-tab.active {
  color: var(--primary);
  background: rgba(34,184,240,0.12);
  border-color: rgba(34,184,240,0.4);
}

/* ── GAME GRID ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 12px;
}

/* ── GAME THUMB ── */
.game-thumb { border-radius: var(--radius); overflow: hidden; }
.game-thumb__img-wrap {
  position: relative;
  width: 100%;
  height: 289px;
  background: var(--bg-card);
}
.game-thumb__img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.game-thumb:hover .game-thumb__img-wrap img { transform: scale(1.06); }

.game-thumb__badge {
  position: absolute; top: 6px; left: 6px;
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 4px; z-index: 2;
  pointer-events: none;
}
.badge--hot     { background: #e53935; color: #fff; }
.badge--new     { background: #22b8f0; color: #fff; }
.badge--jackpot { background: #f0a022; color: #fff; }

.game-thumb__overlay {
  position: absolute; inset: 0;
  background: rgba(41,34,48,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s; z-index: 3;
}
.game-thumb:hover .game-thumb__overlay { opacity: 1; }
.game-thumb__play {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: 8px 18px; border-radius: 8px;
  transition: background .2s, transform .15s;
}
.game-thumb__play:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ── SEO ── */
.seo-wrap { padding: 32px 20px 24px; }
.seo-content {
  color: var(--text-secondary);
  font-size: .85rem; line-height: 1.75;
  max-width: 900px; margin: 0 auto;
}
.seo-content h2 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary); margin: 20px 0 10px;
}
.seo-content h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary); margin: 14px 0 6px;
  cursor: pointer; user-select: none;
  padding: 10px 14px; background: var(--bg-card);
  border-radius: 8px; border: 1px solid var(--border);
  position: relative; display: flex;
  justify-content: space-between; align-items: center;
}
.seo-content h3::after { content: '+'; font-size: 1.1rem; opacity: .6; }
.seo-content h3.faq-open::after { content: '−'; }
.seo-content h3 + p,
.seo-content h3 + ul,
.seo-content h3 + ol {
  display: none; padding: 10px 14px 4px;
}
.seo-content h3.faq-open + p,
.seo-content h3.faq-open + ul,
.seo-content h3.faq-open + ol { display: block; }
.seo-content p { margin-bottom: 10px; }
.seo-content ul, .seo-content ol { padding-left: 20px; margin-bottom: 10px; }
.seo-content li { margin-bottom: 4px; }
.seo-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .85rem; }
.seo-content th, .seo-content td {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 14px; text-align: left; vertical-align: top;
}
.seo-content th { font-weight: 700; color: var(--text-primary); background: rgba(255,255,255,0.07); }
.seo-content tr:nth-child(even) td { background: rgba(255,255,255,0.03); }

/* ── FOOTER ── */
.footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
  margin-top: 16px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 20px;
  max-width: 1100px; margin: 0 auto;
}
.footer__col-title {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); margin-bottom: 14px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-size: .82rem; color: var(--text-secondary);
  transition: color .2s;
}
.footer__links a:hover { color: var(--text-primary); }
.footer__bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px; padding-top: 20px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.footer__payments {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-bottom: 16px;
  font-size: .8rem; color: var(--text-muted);
}
.footer__payment-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: .75rem; font-weight: 600;
  color: var(--text-secondary);
}
.footer__license {
  font-size: .75rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 12px;
}
.footer__copy { font-size: .75rem; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1); }
  .sidebar.open { transform: translateX(0); width: var(--sidebar-open); }
  .main { margin-left: 0 !important; }
  .hero { height: 340px; }
  .hero__content { padding: 0 24px; }
  .hero__h1 { font-size: 1.6rem; }
  .hero__amount { font-size: 2rem; }
  .promos { flex-direction: column; }
  .header__nav { display: none; }
  .header__search { display: none; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); }
}

@media (max-width: 600px) {
  .hero { height: 280px; }
  .hero__content { padding: 0 16px; }
  .hero__h1 { font-size: 1.3rem; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); gap: 8px; }
  .section { padding: 20px 12px 6px; }
  .cats-wrap { padding: 0 12px 4px; }
  .promos { padding: 16px 12px 6px; }
  .footer { padding: 28px 12px 20px; }
}
