:root {
  --bg-main: #111111;
  --bg-secondary: #1a1a1a;
  --bg-card: #222222;
  --accent-green: #1ba164;
  --accent-light: #26b47a;
  --text-white: #ffffff;
  --text-gray: #a1a9b1;
  --border: #333333;
}

body {
  background-color: var(--bg-main);
  color: var(--text-gray);
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

a,
button,
.cat-item,
.game-card,
.btn-reg,
.btn-log {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header {
  background: #000000;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.logo-area img {
  height: 32px;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.btn-log {
  color: #26b47a;
  text-decoration: none;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid transparent;
  font-weight: bold;
}

.btn-log:hover {
  background: #444;
  color: var(--accent-green);
  border-color: var(--border);
}

.btn-reg {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent-green) 100%);
  color: var(--text-white);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}

.btn-reg:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(27, 161, 100, 0.4);
}

.content-wrapper ul {
  padding-inline-start: 0;
}

.promo-img1 {
  background: url('/img/baji-live-win.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-white);
  border-bottom: 1px solid var(--border);
  height: 300px;
}
.promo-img2 {
  background: url('/img/baji-live-app.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-white);
  border-bottom: 1px solid var(--border);
  height: 300px;
}
.promo-img3 {
  background: url('/img/baji-live-login.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-white);
  border-bottom: 1px solid var(--border);
  height: 300px;
}
.promo-img4 {
  background: url('/img/baji-live-casino.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-white);
  border-bottom: 1px solid var(--border);
  height: 300px;
}
.promo-img5 {
  background: url('/img/baji-live-signup.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-white);
  border-bottom: 1px solid var(--border);
  height: 300px;
}
.promo-img6 {
  background: url('/img/baji-live-bonus.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-white);
  border-bottom: 1px solid var(--border);
  height: 300px;
}

h1 {
  font-size: 2.2rem;
  color: #fff;
  margin: 0 0 10px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 15px;
}

.category-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-bar a.cat-item {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  color: #e0e0e0;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  display: inline-block;
  border: 1px solid #444;
}

.category-bar a.cat-item.active {
  background-color: var(--accent-green);
  color: var(--text-white);
  border-color: var(--accent-green);
  box-shadow: 0 4px 12px rgba(27, 161, 100, 0.4);
}

.category-bar a.cat-item:not(.active):hover {
  background-color: #2a2a2a;
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--bg-card);
  height: 240px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  cursor: pointer;
}

.game-card:hover {
  transform: scale(1.03);
  border-color: var(--accent-green);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

h2 {
  color: var(--text-white);
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

.imgmain {
  width: 100%;
  border-radius: 12px;
  margin: 0 10px;
  float: left;
  max-width: 400px;
}

.feature-list {
  padding: 0;
}

.feature-list li {
  list-style: none;
  background: var(--bg-secondary);
  margin-bottom: 8px;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid var(--accent-green);
}

.feature-list li:hover {
  background: #252525;
  transform: translateX(5px);
}

#content a {
  text-decoration: none;
}

#content a:hover {
  border-bottom: 1px solid var(--accent-green);
}

.table-holder {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  table-layout: auto;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  background: #000;
  color: var(--accent-green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}

.main-footer {
  background: #000;
  padding: 40px 15px;
  text-align: center;
  border-top: 2px solid var(--accent-green);
}

.footer-top-row {
  max-width: 1100px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.footer-service,
.footer-payments {
  flex: 1;
}

.pay-title {
  display: block;
  font-size: 14px;
  margin-bottom: 15px;
  color: var(--text-white);
}

.pay-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.pay-icons img {
  filter: grayscale(1) opacity(0.6);
  transition: all 0.3s ease;
}

.pay-icons img:hover {
  filter: grayscale(0) opacity(1);
}

.f-logo {
  height: 30px;
  opacity: 0.7;
  margin-bottom: 10px;
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--accent-green);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top::after {
  content: '▲';
  color: #fff;
}

.scroll-top:hover {
  background: var(--accent-light);
  transform: scale(1.1);
}

.lang-switcher {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.lang-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-white);
  background: var(--bg-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 14px;
  transition: all 0.3s ease;
}

.lang-link:hover {
  border-color: var(--accent-green);
  background: #252525;
}

.lang-icon {
  width: 24px;
  height: auto;
  border-radius: 2px;
}

.menu-footer,
.pay-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.serv {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.serv a.cat-item {
  background: var(--bg-secondary);
  color: var(--text-gray);
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--border);
}

.serv a.cat-item:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
  background: #222;
}

.pay-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.pay-icons img {
  height: 30px;
  filter: grayscale(1) opacity(0.7);
  transition: all 0.3s ease;
}

.pay-icons img:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-3px);
}

@media (min-width: 601px) and (max-width: 1000px) {
  .promo-slider {
    height: 200px;
  }
  .imgmain {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  .footer-top-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .serv {
    width: 100%;
    margin: 0 auto;
  }

  .serv a.cat-item {
    text-align: center;
    width: 100%;
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .table-holder {
    display: block;
  }
  .lang-link {
    padding: 10px 20px;
    font-size: 16px;
  }
  .imgmain {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
  }
  .promo-slider {
    height: auto;
  }
  .header-inner {
    flex-direction: column;
    gap: 15px;
    padding: 10px 15px;
  }

  .logo-area img {
    height: 60px;
  }

  .user-actions {
    width: 100%;
    gap: 8px;
  }

  .btn-log {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 28px;
    border-radius: 6px;
  }
  .btn-reg {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 20px;
    border-radius: 6px;
    height: 50%;
    margin: auto;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 1.6rem;
  }
  th,
  td {
    padding: 10px;
    font-size: 13px;
  }
}
