:root {
  --bg: #05070b;
  --panel: #12141b;
  --panel-soft: #181b23;
  --accent: #0fd3ff;
  --accent2: #2fffaf;
  --text: #f3f5ff;
  --muted: #9ca4b8;
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #141826 0, #05070b 55%, #020308 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============= SIDEBAR ============= */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #151822 0%, #090b11 60%, #05070b 100%);
  color: var(--text);
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-right: 10px;
}

.sidebar-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
}

.sidebar-title small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}

.sidebar-section-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 16px 4px 6px;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-link span.icon {
  width: 26px;
  display: inline-flex;
  justify-content: center;
  font-size: 16px;
  margin-right: 10px;
}

.nav-link.active,
.nav-link:hover {
  background: radial-gradient(circle at 30% 0, rgba(15, 211, 255, 0.18), transparent 50%),
              #181b24;
  color: var(--text);
  transform: translateY(-1px);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--muted);
}

/* ============= MOBILE TOP BAR ============= */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(5, 7, 11, 0.96);
  backdrop-filter: blur(10px);
  padding: 0 14px;
  align-items: center;
  justify-content: flex-start;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.topbar-logo-circle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

.topbar-logo-circle,
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: none !important;
  padding: 0;
}

/* logo images */
.topbar-logo-circle img,
.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* backdrop for mobile sidebar */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-link .icon {
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-link .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px; /* optional */
}

/* ============= MAIN CONTENT ============= */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 26px 30px 40px;
  max-width: 1600px;
  margin-right: auto;
}

.section {
  margin-bottom: 30px;
}

.section-text {
  font-size: 13px;
  color: var(--muted);
  max-width: 720px;
}

.page-footer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

/* HERO */
.hero-banner {
  background: linear-gradient(135deg, #1f2435 0%, #111523 45%, #0a101b 100%);
  border-radius: 24px;
  padding: 26px 26px 24px;
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 18px;
  margin-bottom: 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
  font-size: 30px;
  margin-bottom: 6px;
}

.hero-text p {
  color: var(--muted);
  font-size: 14px;
  max-width: 420px;
  margin-bottom: 18px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 211, 255, 0.16);
  color: var(--accent2);
  margin-bottom: 6px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.hero-right {
  border-radius: 18px;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.16), transparent 60%),
              linear-gradient(135deg, #0b7cff 0%, #00c2ff 40%, #00ffb0 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.hero-card {
  background: rgba(5, 7, 11, 0.82);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  width: 100%;
}

.hero-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

/* PARTNER GRID */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 20px;
}

.section-head span {
  font-size: 12px;
  color: var(--muted);
}

/* ===== PARTNER GRID ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

/* ===== PARTNER CARD ===== */
.partner-card {
  background:
    radial-gradient(circle at top, rgba(15, 211, 255, 0.18), transparent 52%),
    #11141f;
  border-radius: 20px;
  padding: 14px 14px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
}

/* upper text block */
.partner-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* tag pill */
.partner-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.85);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

/* name & description */
.partner-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.partner-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ===== FOOTER (bonus text + buttons) ===== */
.partner-footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.partner-highlight {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

/* button row */
.partner-actions {
  display: flex;
  gap: 8px;
}

/* CTA buttons */
.partner-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: #00c2ff;
  color: #020617;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-cta:hover {
  background: #00e6ff;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 230, 255, 0.65);
}

/* ===== MOBILE TWEAKS ===== */
@media (max-width: 600px) {
  .partner-actions {
    width: 100%;
    flex-direction: column;    /* stack buttons */
  }

  .partner-cta {
    flex: 1;
    text-align: center;
  }
}

/* bottom-nav default: hidden on desktop */
.bottom-nav {
  display: none;
}

/* ============= MOBILE ============= */
@media (max-width: 980px) {
  body {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .topbar {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 70px 16px 70px;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }
}

.bottom-nav button.active {
  color: var(--accent);
}

/* simple bottom nav like app bar */
@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: rgba(5, 7, 11, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 35;
  }

  .bottom-nav button {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .bottom-nav button span.icon {
    font-size: 18px;
  }

  .bottom-nav button.active {
    color: var(--accent);
  }
}

/* Bonus section when it lives inside hero */
.hero-bonus {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bonus h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.hero-bonus p {
  font-size: 12px;
  color: var(--muted);
  max-width: none;
}

/* ===== ALL GAMES STRIP ===== */

.section-games {
  margin-top: 6px;
}

.section-games .section-head {
  align-items: center;
}

/* horizontal scroll like 1win */
.games-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 6px;
}

.games-row::-webkit-scrollbar {
  height: 6px;
}

.games-row::-webkit-scrollbar-thumb {
  background: rgba(120, 130, 155, 0.6);
  border-radius: 999px;
}

.games-row::-webkit-scrollbar-track {
  background: transparent;
}

.game-card {
  min-width: 180px;
  max-width: 180px;
  border-radius: 18px;
  background: #11141f;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.7);
  transition: 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 200, 255, 0.25);
}

.game-art {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  transition: 0.3s;
}

.game-card:hover .game-art {
  transform: scale(1.06);
}

.game-art.game-1 { background-image: url("../img/games/918kiss.png"); }
.game-art.game-2 { background-image: url("../img/games/918kaya.png"); }
.game-art.game-3 { background-image: url("../img/games/mega888.png"); }
.game-art.game-4 { background-image: url("../img/games/pussy888.png"); }
.game-art.game-5 { background-image: url("../img/games/ace333.png"); }
.game-art.game-6 { background-image: url("../img/games/evo888.png"); }
.game-art.game-7 { background-image: url("../img/games/joker.png"); }
.game-art.game-8 { background-image: url("../img/games/gw99.png"); }
.game-art.game-9 { background-image: url("../img/games/3win8.png"); }
.game-art.game-10 { background-image: url("../img/games/xe88.png"); }
.game-art.game-11 { background-image: url("../img/games/live22.png"); }
.game-art.game-12 { background-image: url("../img/games/obet.png"); }

.game-info {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-title {
  font-size: 13px;
  font-weight: 600;
}

.game-provider {
  font-size: 11px;
  color: var(--muted);
}

.game-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity .25s ease;
  border-radius: 14px;
  pointer-events: none;
}

.game-card:hover .game-hover {
  opacity: 1;
  pointer-events: auto;
}

.game-download-btn {
  padding: 8px 14px;
  background: #00c2ff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.6);
  transition: background .25s ease, transform .25s ease;
}

.game-download-btn:hover {
  background: #00e6ff;
  transform: scale(1.05);
}

/* ===== BONUS PAGE CARDS ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.bonus-card {
  background: #11141f;
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  color: var(--muted);
}

.bonus-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}

.bonus-card p {
  margin-bottom: 8px;
}

.bonus-card ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.bonus-card li {
  margin-bottom: 4px;
}

.bonus-hero {
  margin-bottom: 26px;
}

/* ===== ASIACROWN888 BRAND PAGE ===== */

.ac-hero {
  margin-bottom: 26px;
}

/* Slight tweak to make right side look balanced on this page */
.ac-hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Action area under hero text */
.ac-hero-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ac-hero-note {
  font-size: 11px;
  color: var(--muted);
}

/* Gradient highlight for ASIACROWN888 */
.ac-highlight {
  background: linear-gradient(135deg, #3b82f6, #0fd3ff);
}

/* Bonus box on right side in hero */
.ac-bonus-card {
  background: #11141f;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75);
}

.ac-bonus-card h3 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.ac-bonus-card ul {
  margin-top: 6px;
  padding-left: 18px;
  list-style: disc;
}

.ac-bonus-card li {
  margin-bottom: 3px;
}

/* Quick facts grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.brand-card {
  background: #11141f;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  color: var(--muted);
}

.brand-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

/* Reuse bonus-grid style but give a little spacing tweak for this page */
.ac-bonus-detail .bonus-grid {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .ac-hero {
    flex-direction: column;
  }

  .ac-hero-right {
    width: 100%;
  }
}

/* ===== GAME DOWNLOAD PREMIUM GRID ===== */

.section-downloads {
  margin-top: 12px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding-top: 12px;
}

/* Card */
.download-card {
  position: relative;
  border-radius: 20px;
  padding: 16px 16px 14px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    #0b1020;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* subtle gradient border */
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #3b82f6, #22c55e, #06b6d4);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(34, 197, 94, 0.35);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), transparent 60%),
    #050816;
}

/* Top row: logo + name + chip */
.download-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* logo box */
.download-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
}

.download-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* name + label */
.download-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.download-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.download-label {
  font-size: 12px;
  color: var(--muted);
}

/* category chip on right */
.download-chip {
  margin-left: auto;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* links list */
.download-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-links li a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.5);
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.download-links li a:hover {
  background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

/* mobile tweaks */
@media (max-width: 600px) {
  .download-card {
    padding: 14px 12px 12px;
    border-radius: 18px;
  }

  .download-name {
    font-size: 15px;
  }

  .download-logo {
    width: 52px;
    height: 52px;
  }
}
