/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0b0e14;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.page-wrapper {
  display: flex;
  flex: 1;
  width: 100%;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background-color: #161a23;
  border-right: 1px solid #252a36;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #252a36;
  flex-shrink: 0;
}
.sidebar-logo img { height: 32px; }

.sidebar-section { padding: 10px 0; }

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #9aa4bf;
  font-weight: 500;
}
.sidebar-item:hover {
  background-color: #1f2430;
  color: #fff;
}
.s-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-icon svg { width: 100%; height: 100%; }

.sidebar-divider {
  height: 1px;
  background-color: #252a36;
  margin: 5px 20px;
}

/* Main Content */
.main-wrap {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  width: calc(100% - 240px);
  min-height: 100vh;
}

/* Header */
.header {
  height: 60px;
  background-color: #161a23;
  border-bottom: 1px solid #252a36;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-mobile-logo { display: none; }
.header-mobile-logo img { height: 32px; }

.header-left { display: flex; align-items: center; gap: 20px; }
.header-nav-item {
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-nav-item svg { width: 18px; height: 18px; color: #ffcc00; }

.header-bonus {
  color: #ffcc00;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.header-right { display: flex; align-items: center; gap: 10px; }

.btn-reg {
  background: linear-gradient(90deg, #ff3f3f 0%, #d32f2f 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
}
.btn-reg:hover { filter: brightness(1.1); }

.btn-login {
  background-color: #2c3242;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
}
.btn-login:hover { background-color: #384052; }

/* Banners */
.banners-wrap { padding: 20px; }
.banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.banner {
  border-radius: 8px;
  overflow: hidden;
}
.banner:hover img { transform: scale(1.02); transition: 0.3s; }

/* Content */
.content {
  padding: 0 20px 40px;
  flex: 1;
}

/* Slots Block */
.slots-block {
  background-color: #161a23;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.section-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: #9aa4bf;
  margin-bottom: 20px;
}

/* Tabs */
.game-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.g-tab {
  background-color: #252a36;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.g-tab:hover, .g-tab.active {
  background-color: #384052;
  color: #ffcc00;
}

/* Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.game-card {
  border-radius: 8px;
  overflow: hidden;
  background-color: #0b0e14;
  aspect-ratio: 1.4; /* Standard slot ratio */
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card:hover { transform: translateY(-3px); }

.btn-center-wrap { text-align: center; margin-top: 20px; }
.btn-red {
  display: inline-block;
  background: linear-gradient(90deg, #ff3f3f 0%, #d32f2f 100%);
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
}

/* Article */
.article-wrap {
  background-color: #161a23;
  border-radius: 8px;
  padding: 30px;
  color: #cdd2e0;
  line-height: 1.6;
}
.article-wrap h1 { font-size: 28px; margin-bottom: 20px; color: #fff; }
.article-wrap h2 { font-size: 22px; margin: 30px 0 15px; color: #fff; }
.article-wrap p { margin-bottom: 15px; }
.article-wrap ul { list-style: disc; padding-left: 20px; margin-bottom: 15px; }
.article-wrap li { margin-bottom: 5px; }

/* Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #1f2430;
  border-radius: 8px;
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #2c3242;
}
.info-table th { background-color: #252a36; color: #fff; }

/* FAQ */
.faq-item {
  background-color: #1f2430;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.faq-item strong { display: block; margin-bottom: 5px; color: #fff; }

/* Footer */
.footer {
  background-color: #0b0e14;
  border-top: 1px solid #252a36;
  padding: 30px 20px;
  margin-top: auto;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-nav a { color: #9aa4bf; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 12px; color: #5f687d; }

/* Mobile Responsive */
@media (max-width: 992px) {
  .sidebar { display: none; }
  
  .main-wrap {
    margin-left: 0;
    width: 100%;
  }
  
  .header-left { display: none; }
  .header-bonus { display: none; }
  .header-mobile-logo { display: block; }
  
  .banners { grid-template-columns: 1fr; }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .article-wrap { padding: 20px; }
  .article-wrap h1 { font-size: 24px; }
  
  .info-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .header { padding: 0 15px; }
  .btn-reg, .btn-login { padding: 6px 12px; font-size: 13px; }
  .section-heading { font-size: 20px; }
}