/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f1114;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1d22; }
::-webkit-scrollbar-thumb { background: #2e333b; border-radius: 3px; }

/* ===================== HEADER ===================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 52px;
  background: #13161b;
  border-bottom: 1px solid #1e2228;
  display: flex; align-items: center;
  padding: 0 16px 0 0;
}
.header-logo {
  width: 220px;
  display: flex; align-items: center;
  padding-left: 20px;
  flex-shrink: 0;
  gap: 10px;
}
.logo-text {
  font-size: 18px; font-weight: 900; letter-spacing: 2px;
  color: #fff; text-transform: uppercase;
  text-decoration: none;
}
.logo-text span { color: #00c74b; }
.header-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1; overflow: hidden;
}
.nav-item {
  padding: 6px 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8a9099;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
}
.nav-item:hover { color: #fff; }
.nav-item.active { color: #fff; background: #1e2228; }
.nav-item .vip-icon { color: #f5a623; }
.header-right {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.header-search {
  width: 32px; height: 32px;
  background: transparent; border: none;
  color: #8a9099; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.header-search:hover { background: #1e2228; color: #fff; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: #1e2228; border: none; color: #fff;
  padding: 5px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.toggle-wrap {
  display: flex; align-items: center;
  background: #1e2228; border-radius: 20px; padding: 3px;
}
.toggle-track {
  width: 38px; height: 20px;
  background: #00c74b; border-radius: 10px;
  position: relative; cursor: pointer;
}
.toggle-thumb {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
}
.btn-login {
  background: transparent; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 7px 18px;
  border: 1px solid #2e333b; border-radius: 6px;
  letter-spacing: 0.3px; transition: background 0.2s;
}
.btn-login:hover { background: #1e2228; }
.btn-signup {
  background: #00c74b; color: #000;
  font-size: 12px; font-weight: 700;
  padding: 7px 18px; border-radius: 6px;
  letter-spacing: 0.3px; transition: background 0.2s;
}
.btn-signup:hover { background: #00e55a; }

/* ===================== LAYOUT ===================== */
.layout { display: flex; padding-top: 52px; min-height: 100vh; }

/* ===================== SIDEBAR ===================== */
.sidebar {
  width: 220px; flex-shrink: 0;
  background: #13161b;
  border-right: 1px solid #1e2228;
  position: fixed; top: 52px; left: 0; bottom: 0;
  overflow-y: auto;
  display: flex; flex-direction: column;
  transition: transform 0.3s;
}
.sidebar-top { padding: 12px 8px 8px; border-bottom: 1px solid #1e2228; }
.sidebar-util-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 6px;
  color: #8a9099; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.sidebar-util-btn:hover { background: #1e2228; color: #fff; }
.sidebar-nav { padding: 8px; flex: 1; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 6px;
  color: #8a9099; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  position: relative; text-decoration: none;
}
.sidebar-nav-item:hover { background: #1e2228; color: #fff; }
.sidebar-nav-item.active { background: #1e2228; color: #fff; }
.sidebar-nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: #00c74b;
  border-radius: 0 2px 2px 0;
}
.sidebar-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px;
}
.sidebar-bottom { padding: 12px; border-top: 1px solid #1e2228; }
.btn-help {
  width: 100%; background: #1e2228; color: #8a9099;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 10px; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-help:hover { background: #252a32; color: #fff; }

/* ===================== MAIN CONTENT ===================== */
.main { margin-left: 220px; flex: 1; padding: 60px 20px 40px; min-width: 0; }

/* ===================== BANNERS ===================== */
.banners-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 28px;
}
.banner-card {
  border-radius: 12px; overflow: hidden;
  position: relative; height: 160px; cursor: pointer;
  text-decoration: none; display: block;
}
.banner-card-1 { background: linear-gradient(135deg, #1a0a00 0%, #8a1c00 50%, #ff4500 100%); }
.banner-card-2 { background: linear-gradient(135deg, #0d1a2e 0%, #1a3a6e 50%, #2060b0 100%); }
.banner-card-3 { background: linear-gradient(135deg, #0d1a0d 0%, #1a3a1a 50%, #006400 100%); }
.banner-content {
  position: absolute; inset: 0; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.banner-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.3);
  display: inline-block; padding: 3px 8px; border-radius: 3px; width: fit-content;
}
.banner-title {
  font-size: 22px; font-weight: 900; line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5); margin-top: 8px;
}
.banner-title span { color: #ffcc00; display: block; }
.banner-subtitle { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.banner-btn {
  background: #00c74b; color: #000;
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  padding: 8px 18px; border-radius: 6px;
  border: none; cursor: pointer; transition: background 0.2s;
  text-transform: uppercase; width: fit-content;
}
.banner-btn:hover { background: #00e55a; }

/* ===================== SECTION HEADER ===================== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title { font-size: 18px; font-weight: 700; }
.section-controls { display: flex; align-items: center; gap: 8px; }
.btn-show-all {
  background: #1e2228; color: #8a9099;
  font-size: 11px; font-weight: 600;
  padding: 6px 14px; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-show-all:hover { background: #252a32; color: #fff; }
.btn-arrow {
  width: 28px; height: 28px;
  background: #1e2228; color: #8a9099;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background 0.2s, color 0.2s;
}
.btn-arrow:hover { background: #252a32; color: #fff; }

/* ===================== WINNERS SECTION ===================== */
.winners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 28px;
}
.winner-card {
  background: #1a1d22; border-radius: 10px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #1e2228;
  text-decoration: none;
  transition: border-color 0.2s;
}
.winner-card:hover { border-color: #2e333b; }
.winner-thumb {
  width: 52px; height: 52px; border-radius: 8px;
  background: #252a32; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.winner-info { flex: 1; min-width: 0; }
.winner-game {
  font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.winner-amount { font-size: 16px; font-weight: 700; color: #00c74b; }
.winner-name {
  font-size: 11px; color: #8a9099; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===================== GAMES SECTION ===================== */
.games-section { margin-bottom: 32px; }
.games-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
.game-card {
  border-radius: 10px; overflow: hidden;
  background: #1a1d22; cursor: pointer;
  position: relative; border: 1px solid #1e2228;
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none; display: block;
}
.game-card:hover { transform: translateY(-3px); border-color: #2e333b; }
.game-thumb {
  width: 100%; aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.game-thumb-placeholder { opacity: 0.15; }
.game-badge {
  position: absolute; top: 6px; left: 6px;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.5px; z-index: 1;
}
.badge-exclusive { background: #7c3aed; color: #fff; }
.badge-hot { background: #e53e3e; color: #fff; }
.badge-new { background: #00c74b; color: #000; }
.game-jackpot {
  position: absolute; bottom: 6px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75); color: #f5a623;
  font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  white-space: nowrap; z-index: 1;
}
.game-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; z-index: 2;
}
.game-card:hover .game-overlay { opacity: 1; }
.btn-play {
  background: #00c74b; color: #000;
  font-size: 11px; font-weight: 800;
  padding: 7px 18px; border-radius: 6px;
  text-transform: uppercase; border: none; cursor: pointer;
}
.btn-play:hover { background: #00e55a; }
.game-name {
  padding: 6px 8px 8px;
  font-size: 11px; font-weight: 500; color: #8a9099;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}

/* Game thumbnail background */
.game-thumb { background: #1a1d22; }
.game-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===================== H1 ===================== */
.page-h1 {
  font-size: 22px; font-weight: 800;
  color: #fff;
  margin: 0 0 24px;
  padding: 14px 20px;
  background: #1a1d22;
  border-radius: 10px;
  border-left: 4px solid #00c74b;
  line-height: 1.3;
}

/* ===================== ARTICLE SECTION ===================== */
.article-section { margin: 8px 0 32px; }
.article-inner {
  background: #1a1d22;
  border-radius: 10px;
  padding: 24px;
  color: #8a9099;
  font-size: 14px; line-height: 1.7;
  border: 1px solid #1e2228;
}
/* --- Headings --- */
.article-inner h2 {
  color: #fff; font-size: 18px; font-weight: 700;
  margin: 28px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid #2e333b;
}
.article-inner h3 {
  color: #d0d4db; font-size: 15px; font-weight: 700;
  margin: 20px 0 8px;
}
.article-inner h4 {
  color: #b0b5bf; font-size: 14px; font-weight: 600;
  margin: 16px 0 6px;
}

/* --- Paragraphs & inline --- */
.article-inner p { margin-bottom: 12px; line-height: 1.75; }
.article-inner strong { color: #fff; font-weight: 700; }
.article-inner a { color: #00c74b; text-decoration: underline; }
.article-inner a:hover { color: #00e55a; }

/* --- Lists --- */
.article-inner ul,
.article-inner ol {
  margin: 10px 0 14px 20px;
  padding-left: 4px;
}
.article-inner ul { list-style: disc; }
.article-inner ol { list-style: decimal; }
.article-inner li { margin-bottom: 6px; line-height: 1.7; }

/* --- Tables --- */
.article-inner table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0 20px; font-size: 13px;
}
.article-inner thead tr { background: #1e2228; }
.article-inner th {
  padding: 10px 12px; text-align: left;
  color: #fff; font-weight: 700;
  border: 1px solid #2e333b;
}
.article-inner td {
  padding: 9px 12px;
  color: #8a9099;
  border: 1px solid #2e333b;
}
.article-inner tr:nth-child(even) td { background: #16191e; }
.article-inner tr:hover td { background: #1e2228; color: #fff; }

/* ===================== FOOTER ===================== */
.footer { background: #0d0f12; border-top: 1px solid #1e2228; padding: 32px 20px; }
.footer-top {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-bottom: 28px;
}
.footer-col-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #8a9099; margin-bottom: 12px;
}
.footer-col a {
  display: block; font-size: 13px; color: #5a6070;
  margin-bottom: 8px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e2228; padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-size: 20px; font-weight: 900; letter-spacing: 2px; color: #fff; }
.footer-logo span { color: #00c74b; }
.footer-copy { font-size: 11px; color: #5a6070; }
.footer-badges { display: flex; gap: 10px; }
.footer-badge {
  width: 40px; height: 26px; background: #1e2228;
  border-radius: 4px; display: flex; align-items: center;
  justify-content: center; font-size: 9px; color: #5a6070; font-weight: 700;
}

/* ===================== MOBILE MENU TOGGLE ===================== */
.mobile-menu-btn {
  display: none;
  width: 36px; height: 36px; background: #1e2228;
  border-radius: 6px; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; border: none; flex-shrink: 0;
}
.mobile-menu-btn span {
  width: 18px; height: 2px; background: #fff;
  border-radius: 1px; display: block;
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 99;
}
.sidebar-overlay.open { display: block; }

/* ===================== MOBILE BOTTOM NAV ===================== */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #13161b; border-top: 1px solid #1e2228;
  z-index: 200; padding: 6px 0 8px;
}
.mobile-bottom-nav ul { display: flex; justify-content: space-around; }
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #5a6070; font-size: 9px; font-weight: 600;
  text-transform: uppercase; padding: 4px 8px; cursor: pointer;
  transition: color 0.2s;
}
.mobile-nav-item.active { color: #00c74b; }
.mobile-nav-item:hover { color: #fff; }
.mobile-nav-item svg { width: 20px; height: 20px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .games-grid { grid-template-columns: repeat(6, 1fr); }
  .winners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); z-index: 100; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .footer { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .header-logo { width: auto; }
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-item { display: none; }
  .nav-item.active { display: flex; }
  .mobile-bottom-nav { display: block; }
  .main { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .header { padding: 0 10px 0 0; }
  .header-logo { padding-left: 10px; }
  .logo-text { font-size: 18px; }
  .main { padding: 12px 10px 72px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .winners-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .winner-amount { font-size: 13px; }
  .section-title { font-size: 15px; }
  .banners-row { grid-template-columns: 1fr; }
  .banner-card:not(:first-child) { display: none; }
  .banner-card { height: 150px; }
  .btn-login { display: none; }
  .lang-btn { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 400px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
