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

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #1a1b30;
  --bg-secondary: #222341;
  --bg-card: #2a2b4a;
  --bg-card-hover: #33345a;
  --bg-header: rgba(20, 21, 40, 0.97);
  --bg-footer: #131428;
  --text-primary: #ffffff;
  --text-secondary: #9a9bc0;
  --text-muted: #6b6c8a;
  --border-color: #2e2f4e;
  --tab-slots: #17eada;
  --tab-live: #de593e;
  --tab-sport: #9a5cff;
  --tab-crash: #6ef770;
  --tab-tournament: #e8ce3a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url('../img/imgi_268_body_strips.526a52983c17baa3c7e277b3f871e06e.svg');
  background-repeat: repeat;
  background-size: 4px;
  background-blend-mode: overlay;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo { flex-shrink: 0; }
.header__logo img { height: 26px; width: auto; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.btn-login {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 22px;
  transition: background 0.2s;
  letter-spacing: 0.5px;
}
.btn-login:hover { background: rgba(255,255,255,0.08); }

.btn-register {
  display: inline-block;
  background: #e8175d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.btn-register:hover {
  background: #ff2a6d;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(232,23,93,0.45);
}

.header__help {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 8px;
}
.header__help:hover { color: var(--text-primary); }
.header__help svg { width: 22px; height: 22px; }
.header__help .svg_color { stroke: #646a87; transition: stroke 0.2s; }
.header__help:hover .svg_color { stroke: #fff; }

/* Banner */
.hero-banner {
  background: #0d0e1f;
  line-height: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nav tabs */
.nav-tabs-wrap {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.nav-tabs {
  padding: 0 40px;
  display: flex;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-tabs__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  user-select: none;
}

.nav-tabs__item:hover { color: var(--text-secondary); }

.nav-tabs__item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  border-radius: 2px;
}

.nav-tabs__item img { width: 26px; height: 26px; }

.nav-tabs__item--slots.active { color: var(--tab-slots); }
.nav-tabs__item--slots.active::after { background: var(--tab-slots); }
.nav-tabs__item--live.active { color: var(--tab-live); }
.nav-tabs__item--live.active::after { background: var(--tab-live); }
.nav-tabs__item--sport.active { color: var(--tab-sport); }
.nav-tabs__item--sport.active::after { background: var(--tab-sport); }
.nav-tabs__item--crash.active { color: var(--tab-crash); }
.nav-tabs__item--crash.active::after { background: var(--tab-crash); }
.nav-tabs__item--tournament.active { color: var(--tab-tournament); }
.nav-tabs__item--tournament.active::after { background: var(--tab-tournament); }

/* Filters */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

.filter-bar__left { display: flex; align-items: center; gap: 10px; }

.filter-bar__providers {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s;
}
.filter-bar__providers:hover { border-color: rgba(255,255,255,0.15); }
.filter-bar__providers img { width: 10px; height: auto; flex-shrink: 0; opacity: 0.7; }

.filter-bar__badges { display: flex; gap: 6px; }

.filter-bar__badge {
  width: 30px;
  height: 36px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.filter-bar__badge:hover,
.filter-bar__badge.active { opacity: 1; }

.filter-bar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 230px;
  transition: border-color 0.2s;
}
.filter-bar__search:hover { border-color: rgba(255,255,255,0.15); }

.filter-bar__search-placeholder {
  color: var(--text-muted);
  font-size: 13px;
  flex: 1;
}
.filter-bar__search img { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.4; }

/* Game grid */
.games {
  padding: 0 40px 10px;
  max-width: 1280px;
  margin: 0 auto;
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.game-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--bg-card);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 2;
}

.game-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.35;
  background: var(--bg-secondary);
}

.game-card__image > img:not(.game-card__flag) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.game-card:hover .game-card__image > img:not(.game-card__flag) { transform: scale(1.08); }

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.game-card:hover .game-card__overlay { opacity: 1; }

.game-card__play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd000, #ff9500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255,153,0,0.4);
  transition: transform 0.2s;
}
.game-card:hover .game-card__play-btn { transform: scale(1.1); }

.game-card__play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #1a1a1a;
  margin-left: 3px;
}

.game-card__flag {
  position: absolute;
  top: 0;
  left: 6px;
  width: 32px !important;
  height: 38px !important;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  object-fit: contain;
}

.game-card__provider {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.55);
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

.game-card__name {
  padding: 10px 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* More games btn */
.more-games {
  text-align: center;
  padding: 20px 0 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.btn-more {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-muted);
  padding: 12px 44px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-more:hover {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

/* Footer */
.footer {
  background: var(--bg-footer);
  padding: 28px 40px 22px;
  border-top: 1px solid var(--border-color);
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 22px;
}

.footer__link {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 2px 0;
}
.footer__link:hover { color: var(--text-primary); }

.footer__apps-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.footer__app-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 8px 18px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.footer__app-btn:hover {
  border-color: rgba(255,255,255,0.2);
  background: var(--bg-card-hover);
}
.footer__app-btn img { flex-shrink: 0; }

.footer__social-links { display: flex; gap: 8px; margin-left: 6px; }

.footer__social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.footer__social-btn:hover {
  border-color: rgba(255,255,255,0.2);
  background: var(--bg-card-hover);
}
.footer__social-btn img { width: 16px; height: 16px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.footer__disclaimer { display: flex; align-items: center; gap: 12px; max-width: 660px; }
.footer__age-badge { flex-shrink: 0; }
.footer__age-badge img { width: 36px; height: 36px; }

.footer__disclaimer-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__language {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.footer__language:hover { background: rgba(255,255,255,0.04); }

.footer__language-flag { width: 22px; height: 22px; border-radius: 50%; }

.footer__language-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.footer__language .dropdown-arrow {
  width: 10px;
  height: auto;
  opacity: 0.6;
  transition: transform 0.25s;
}
.footer__language.open .dropdown-arrow { transform: rotate(180deg); }

.language-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 0;
  min-width: 420px;
  display: none;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  z-index: 50;
}
.language-dropdown.open {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.language-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.language-dropdown__item:hover { background: rgba(255,255,255,0.05); }
.language-dropdown__item img { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }

/* Responsive */
@media (max-width: 1200px) {
  .games__grid { grid-template-columns: repeat(4, 1fr); }
  .header, .filter-bar, .games, .footer, .nav-tabs { padding-left: 24px; padding-right: 24px; }
  .jackpot__content { padding: 0 24px; }
}

@media (max-width: 900px) {
  .games__grid { grid-template-columns: repeat(3, 1fr); }
  .nav-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tabs__item { padding: 14px 20px; }
  .footer__apps-social { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .header { padding: 0 16px; height: 54px; }
  .header__logo img { height: 22px; }
  .btn-login { padding: 7px 14px; font-size: 12px; }
  .btn-register { padding: 8px 16px; font-size: 11px; }
  .header__help span { display: none; }
  .filter-bar { padding: 10px 16px; flex-wrap: wrap; }
  .filter-bar__search { min-width: 0; flex: 1; }
  .games { padding: 0 12px 10px; }
  .games__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav-tabs { padding: 0 12px; }
  .nav-tabs__item { padding: 12px 16px; font-size: 11px; }
  .nav-tabs__item img { width: 22px; height: 22px; }
  .footer { padding: 20px 16px 16px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer__language { justify-content: center; }
  .language-dropdown { min-width: 300px; right: 50%; transform: translateX(50%); }
}

/* SEO text */
.seo-text {
  padding: 0 40px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.seo-text__inner {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 40px 40px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.seo-text h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.seo-text h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.seo-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: #c0c1e0;
  margin-top: 22px;
  margin-bottom: 10px;
}

.seo-text p {
  margin-bottom: 14px;
}

.seo-text strong { color: var(--text-primary); }

.seo-text em { color: #b8a0ff; font-style: italic; }

.seo-text ul,
.seo-text ol {
  margin: 10px 0 16px 20px;
}

.seo-text li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.seo-text ol li { list-style-type: decimal; }
.seo-text ul li { list-style-type: disc; }

.seo-text__provider {
  color: var(--text-muted);
  font-size: 13px;
}

/* Tables */
.seo-text__table-wrap {
  overflow-x: auto;
  margin: 12px 0 18px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.seo-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.seo-text thead {
  background: rgba(255,255,255,0.04);
}

.seo-text th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.seo-text td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
}

.seo-text tbody tr:last-child td { border-bottom: none; }

.seo-text tbody tr:hover { background: rgba(255,255,255,0.02); }

/* FAQ Accordion */
.seo-text__faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 18px;
}

.seo-text__faq details {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.2s;
}

.seo-text__faq details[open] {
  background: rgba(255,255,255,0.04);
}

.seo-text__faq summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: color 0.2s;
}

.seo-text__faq summary::-webkit-details-marker { display: none; }

.seo-text__faq summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.seo-text__faq details[open] summary::after {
  content: '−';
}

.seo-text__faq summary:hover { color: #fff; }

.seo-text__faq details p {
  padding: 0 18px 14px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

/* Reviews */
.seo-text__reviews {
  display: grid;
  gap: 12px;
  margin: 14px 0 20px;
}

.seo-text__reviews blockquote {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0;
  position: relative;
}

.seo-text__reviews blockquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 40px;
  color: rgba(255,215,0,0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.seo-text__reviews blockquote p {
  margin: 0 0 8px;
  padding-left: 24px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary);
}

.seo-text__reviews cite {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: #e8ce3a;
  font-style: normal;
}

/* Footer note */
.seo-text__footer-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.seo-text__footer-note p {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* SEO responsive */
@media (max-width: 900px) {
  .seo-text { padding: 0 24px 30px; }
  .seo-text__inner { padding: 28px 24px 30px; }
  .seo-text h1 { font-size: 19px; }
  .seo-text h2 { font-size: 16px; }
}

@media (max-width: 640px) {
  .seo-text { padding: 0 12px 20px; }
  .seo-text__inner { padding: 20px 16px 24px; font-size: 13px; }
  .seo-text h1 { font-size: 17px; }
  .seo-text h2 { font-size: 15px; margin-top: 24px; }
  .seo-text h3 { font-size: 14px; }
  .seo-text__reviews { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
