/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0f1419;
  --bg-darker: #0a0e13;
  --bg-card: #1a1f2e;
  --bg-card-hover: #232a3d;
  --accent: #ff6b00;
  --accent-hover: #ff8124;
  --accent-secondary: #ffb800;
  --gold: #ffd700;
  --text: #e8eaed;
  --text-muted: #8a92a3;
  --text-dim: #5a6275;
  --border: #2a3144;
  --green: #2ecc71;
  --red: #e74c3c;
  --sidebar-width: 260px;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Segoe UI Emoji', 'Segoe UI Symbol', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'EmojiOne Color', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.emoji {
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'EmojiOne Color', 'Segoe UI Symbol', sans-serif;
  font-style: normal;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

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

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-darker);
  border-right: 1px solid var(--border);
  padding: 22px 18px;
  padding-bottom: 80px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 0, .35) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 0, .35);
  border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 107, 0, .6); }
.sidebar::-webkit-scrollbar-button { display: none; height: 0; }

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}
.logo-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(255, 107, 0, .35);
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-text { color: #fff; }
.logo-text span { color: var(--accent); }

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 0;
  font-size: .95rem;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 107, 0, .45); color: #fff; }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }

.promo-banner {
  background: linear-gradient(135deg, #ff6b00 0%, #ff2a68 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
}
.promo-banner h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.promo-banner p { color: rgba(255,255,255,.92); font-size: .85rem; margin-bottom: 10px; }
.promo-banner .btn { padding: 7px 14px; font-size: .82rem; background: #fff; color: var(--accent); }

.nav-menu { list-style: none; }
.nav-menu li { margin-bottom: 4px; }
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
  transition: all .18s;
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--bg-card);
  color: #fff;
}
.nav-menu a.active { border-left: 3px solid var(--accent); padding-left: 11px; }
.nav-icon { font-size: 1.15rem; width: 22px; text-align: center; }

.sidebar-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-dim);
}

/* === MAIN === */
.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 24px 36px 60px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}
.topbar-logo { display: none; }
.topbar-logo img { height: 36px; width: auto; display: block; }
.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
}

.topbar-right { display: flex; gap: 10px; align-items: center; }
.lang-chip {
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* === HERO === */
.hero {
  background:
    linear-gradient(110deg, rgba(15,20,25,.95) 0%, rgba(35,42,61,.82) 55%, rgba(255,107,0,.45) 100%),
    url('assets/herosection1.jpg') center/cover no-repeat;
  border-radius: 16px;
  padding: 44px 38px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative; z-index: 2;
}
.hero p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 22px; max-width: 580px; position: relative; z-index: 2; }
.hero .btn { position: relative; z-index: 2; padding: 13px 28px; }

/* === SECTION === */
.section { margin-bottom: 38px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-head h2 { font-size: 1.45rem; }
.section-head a { font-size: .9rem; font-weight: 600; }

.grid {
  display: grid;
  gap: 16px;
}
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
  cursor: pointer;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-thumb {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #2a3144, #1a1f2e);
  display: grid;
  place-items: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform .3s;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb .badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.card-thumb .badge.hot { background: var(--red); }
.card-thumb .badge.new { background: var(--green); }
.card-body { padding: 12px 14px; }
.card-title { font-size: .92rem; font-weight: 600; margin-bottom: 3px; color: #fff; }
.card-meta { font-size: .78rem; color: var(--text-dim); }

/* === PROMO CARDS === */
.promo-card {
  background: linear-gradient(135deg, var(--bg-card), #2a1f3d);
  border-radius: 14px;
  padding: 26px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.promo-card.alt { background: linear-gradient(135deg, #1f2e2a, var(--bg-card)); }
.promo-card.gold { background: linear-gradient(135deg, #3d2f1a, var(--bg-card)); }
.promo-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.promo-card p { color: var(--text-muted); margin-bottom: 16px; font-size: .95rem; }
a.promo-card { display: block; color: inherit; text-decoration: none; }
a.promo-card:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }
.promo-card { transition: transform .2s, border-color .2s; }
.promo-card .tag {
  display: inline-block;
  background: rgba(255, 107, 0, .18);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* === VIP TIERS === */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; }
.tier {
  background: var(--bg-card);
  padding: 22px 18px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .2s;
}
.tier:hover { transform: translateY(-4px); }
.tier-icon { font-size: 2.2rem; margin-bottom: 8px; }
.tier h4 { margin-bottom: 6px; color: #fff; }
.tier p { color: var(--text-muted); font-size: .85rem; }
.tier.bronze { border-top: 3px solid #cd7f32; }
.tier.silver { border-top: 3px solid #c0c0c0; }
.tier.gold { border-top: 3px solid var(--gold); }
.tier.platinum { border-top: 3px solid #e5e4e2; }
.tier.diamond { border-top: 3px solid #b9f2ff; }

/* === PAYMENTS === */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.pay {
  background: var(--bg-card);
  padding: 22px 16px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border);
}
.pay-icon { font-size: 2rem; margin-bottom: 6px; }
.pay-icon img { width: 40px; height: 40px; object-fit: contain; margin: 0 auto; display: block; }
.pay h5 { font-size: .95rem; margin-bottom: 3px; color: #fff; }
.pay span { font-size: .78rem; color: var(--text-dim); }

/* === WINNERS === */
.winners-section .section-head h2 { text-align: center; width: 100%; font-size: 1.8rem; letter-spacing: 1px; text-transform: uppercase; }
.winners-section .section-head { justify-content: center; }
.winners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.winners-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
}
.winners-col h3 {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.winners-list { list-style: none; }
.winner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.winner-item:last-child { border-bottom: 0; }
.winner-thumb {
  width: 70px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.winner-info { flex: 1; min-width: 0; font-size: .88rem; line-height: 1.45; }
.winner-name { color: var(--text-muted); }
.winner-amount { color: var(--green); font-weight: 700; }
.winner-jackpot { color: var(--green); font-weight: 800; letter-spacing: 1px; }
.winner-game { color: var(--text-muted); font-size: .85rem; }
.winner-game a { color: var(--accent-secondary); text-decoration: underline; }
.winner-game a:hover { color: var(--accent-hover); }

@media (max-width: 900px) {
  .winners-grid { grid-template-columns: 1fr; }
}

/* === SEO CONTENT === */
.seo-content {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 38px 40px;
  margin-top: 40px;
  border: 1px solid var(--border);
}
.seo-content h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.6rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  display: inline-block;
}
.seo-content h3 {
  color: #fff;
  margin: 26px 0 10px;
  font-size: 1.2rem;
}
.seo-content p {
  color: #c5cad4;
  margin-bottom: 14px;
  font-size: .98rem;
  line-height: 1.75;
}
.seo-content ul, .seo-content ol {
  color: #c5cad4;
  margin: 12px 0 16px 22px;
}
.seo-content li { margin-bottom: 6px; line-height: 1.7; }
.seo-content strong { color: #fff; }
.seo-content .home-link {
  color: var(--accent-secondary);
  font-weight: 700;
  border-bottom: 1px dashed var(--accent-secondary);
}
.seo-content .home-link:hover { color: var(--accent-hover); }

/* === AUTH PAGES === */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,107,0,.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,42,104,.12), transparent 50%),
    var(--bg-dark);
}
.auth-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 38px 36px;
  max-width: 440px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.auth-card .logo { justify-content: center; margin-bottom: 22px; }
.auth-card h1 { text-align: center; font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 26px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 18px; font-size: .85rem; color: var(--text-muted); }
.checkbox-row input { margin-top: 3px; }
.auth-divider {
  text-align: center;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: .8rem;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%; width: 38%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--text-muted); }
.back-home { text-align: center; margin-top: 20px; font-size: .85rem; }

/* === FOOTER === */
.site-footer {
  margin-top: 40px;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .85rem;
  text-align: center;
}
.site-footer a { color: var(--text-muted); margin: 0 8px; }

/* === RESPONSIVE === */
.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s;
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 18px 18px 50px; }
  .menu-toggle { display: inline-block; }
  .topbar-right { display: none; }
  .topbar-logo {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
  .topbar-logo img { height: 30px; max-width: 60vw; object-fit: contain; }
  .hero { padding: 30px 22px; }
  .hero h1 { font-size: 1.7rem; }
  .seo-content { padding: 24px 22px; }
}
