:root {
  --bg:#0f172a;
  --muted:#9ca3af;
  --text:#e5e7eb;
  --brand:#22d3ee;
  --brand-2:#a78bfa;
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

* {
  box-sizing:border-box;
  margin:0;
  padding:0
}

body {
  background:radial-gradient(1200px 800px at 80% -10%, rgba(167,139,250,.15), transparent 60%),
             radial-gradient(1000px 600px at 10% -20%, rgba(34,211,238,.15), transparent 60%),
             var(--bg);
  color:var(--text);
  font:16px/1.65 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial;
}

.container {
  max-width:1200px;
  margin:0 auto;
  padding:14px 24px
}

/* TOP BAR */
.topbar {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(15,23,42,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.topbar-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  flex:1
}

.brand img {
  height:36px
}

.nav {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  flex:2
}

.btn {
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:8px 14px;
  border-radius:999px;
  cursor:pointer;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  transition:.2s;
  display:flex;
  align-items:center;
  gap:5px;
}

.btn:hover {
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,0,0,.25)
}

.btn.active {
  border-color:transparent;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#0b1020
}

/* AUTH BUTTONS */
.auth {
  display:flex;
  gap:8px;
  justify-content:flex-end;
  flex:1
}

.btn-login {
  background:transparent;
  border:1px solid var(--brand);
  color:var(--brand)
}

.btn-daftar {
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  border:none;
  color:#0b1020
}

/* CARD */
.card {
  background:var(--card-bg);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:24px;
  box-shadow:0 10px 40px rgba(0,0,0,.35);
  margin-top:24px
}

/* TYPOGRAPHY */
h1 {
  margin-top:0;
  font-size:32px;
  color:var(--brand)
}

h2 {
  margin-top:20px;
  font-size:24px;
  color:var(--brand-2)
}

h3 {
  margin-top:15px;
  font-size:18px;
  color:var(--brand-2)
}

h4 {
  margin-top:10px;
  font-size:16px;
  color:var(--text)
}

.muted {
  color:var(--muted)
}

ul, ol {
  margin:8px 0 0 18px
}

li {
  margin:6px 0
}

p {
  margin-bottom:15px
}

.note {
  border-left:3px solid var(--brand);
  padding:10px 12px;
  background:rgba(255,255,255,.03);
  border-radius:12px;
  margin:20px 0
}

/* BREADCRUMB */
.breadcrumb {
  margin:20px 0;
  font-size:14px
}

.breadcrumb a {
  color:var(--brand);
  text-decoration:none
}

.breadcrumb span {
  color:var(--muted)
}

/* IMAGE BOX */
.img-box {
  text-align:center;
  margin:20px 0
}

.img-box img {
  max-width:100%;
  height:auto;
  border-radius:16px;
  box-shadow:0 5px 20px rgba(0,0,0,.3);
  cursor:pointer;
  transition:transform 0.3s
}

.img-box img:hover {
  transform:scale(1.02)
}

.img-caption {
  margin-top:10px;
  font-style:italic;
  color:var(--muted);
  font-size:14px
}

/* POPUP IMAGE */
.popup {
  display:none;
  position:fixed;
  z-index:9999;
  left:0;
  top:0;
  width:100%;
  height:100%;
  padding-top:60px;
  background:rgba(0,0,0,0.9);
  text-align:center
}

.popup img {
  max-width:90%;
  max-height:80%;
  border-radius:12px;
  box-shadow:0 0 25px rgba(0,0,0,0.6)
}

.popup .close {
  position:absolute;
  top:20px;
  right:35px;
  color:#fff;
  font-size:40px;
  font-weight:bold;
  cursor:pointer
}

.popup .close:hover {
  color:#f87171
}

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.category-card {
  background: rgba(255,255,255,.03);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,.4);
}

.category-header {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.category-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-title {
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.category-content {
  padding: 25px;
}

.category-description {
  margin-bottom: 20px;
  line-height: 1.6;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.game-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  transition: background 0.2s;
}

.game-item:hover {
  background: rgba(34,211,238,.1);
}

.game-icon {
  width: 24px;
  height: 24px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.game-name {
  font-size: 14px;
}

.category-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-count {
  font-size: 14px;
  color: var(--muted);
}

.explore-btn {
  background: linear-gradient(135deg,var(--brand),var(--brand-2));
  color: var(--bg);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.explore-btn:hover {
  transform: scale(1.05);
}

/* GAMES GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.game-card {
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.game-img {
  height: 180px;
  overflow: hidden;
}

.game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-card:hover .game-img img {
  transform: scale(1.05);
}

.game-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.game-content h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 20px;
}

.game-content p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 14px;
  flex-grow: 1;
}

.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-difficulty {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
}

.difficulty-easy {
  color: #4ade80;
}

.difficulty-medium {
  color: #fbbf24;
}

.difficulty-hard {
  color: #f87171;
}

.play-btn {
  background: var(--brand);
  color: var(--bg);
  border: none;
  padding: 8px 16px;
  border-radius: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}

.play-btn:hover {
  background: var(--brand-2);
}

/* GAME DETAIL HEADER */
.game-detail-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  background: rgba(255,255,255,.03);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.08);
}

.game-detail-content {
  flex: 1;
}

.game-detail-img {
  flex: 0 0 350px;
}

.game-detail-img img {
  width: 100%;
  border-radius: 12px;
}

.game-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  background: rgba(255,255,255,.05);
  padding: 15px;
  border-radius: 12px;
  min-width: 100px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  color: var(--brand);
  font-size: 18px;
  font-weight: bold;
}

/* QUICK NAVIGATION */
.quick-nav {
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
}

.quick-nav h3 {
  margin-bottom: 15px;
  color: var(--brand);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  background: rgba(255,255,255,.05);
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
  font-size: 14px;
}

.nav-links a:hover {
  background: rgba(34,211,238,.2);
}

/* FILTER TABS */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
}

.filter-tab.active {
  background: linear-gradient(135deg,var(--brand),var(--brand-2));
  color: var(--bg);
}

/* BET TYPES */
.bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.bet-type-card {
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 20px;
  border-left: 3px solid var(--brand);
}

.bet-type-card h3 {
  margin-top: 0;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
}

.payout-badge {
  background: var(--brand-2);
  color: var(--bg);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* HIGHLIGHT BOX */
.highlight-box {
  background: rgba(34,211,238,.1);
  border-left: 3px solid var(--brand);
  padding: 15px;
  border-radius: 12px;
  margin: 20px 0;
}

.highlight-box h3 {
  color: var(--brand);
  margin-bottom: 10px;
}

/* FEATURED GAMES */
.featured-section {
  margin: 50px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.featured-game {
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s;
  border: 1px solid rgba(255,255,255,.08);
}

.featured-game:hover {
  transform: translateY(-5px);
}

.featured-img {
  height: 120px;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-info {
  padding: 15px;
  text-align: center;
}

.featured-info h4 {
  margin: 0 0 5px;
  font-size: 16px;
}

.featured-info p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* RELATED GAMES */
.related-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.related-game {
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
  border: 1px solid rgba(255,255,255,.08);
}

.related-game:hover {
  transform: translateY(-3px);
}

.related-game-img {
  height: 120px;
  overflow: hidden;
}

.related-game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-game-content {
  padding: 15px;
  text-align: center;
}

.related-game-content h4 {
  margin: 0 0 10px;
  color: var(--brand-2);
}

.related-game-content a {
  display: inline-block;
  background: var(--brand);
  color: var(--bg);
  padding: 6px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}

/* QUICK STATS */
.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.stat-item {
  text-align: center;
  background: rgba(255,255,255,.03);
  padding: 20px;
  border-radius: 16px;
  min-width: 150px;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: var(--brand);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}

/* COMPARISON TABLE */
.comparison-table {
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.comparison-table th {
  background: rgba(34,211,238,.2);
  color: var(--brand);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table a {
  color: var(--brand);
  text-decoration: none;
}

/* CATEGORY HEADER PAGE */
.category-header-page {
  background: linear-gradient(135deg, rgba(34,211,238,.2), rgba(167,139,250,.2));
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  text-align: center;
}

.category-header-page h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

/* TOGEL MARKETS */
.togel-markets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.togel-market {
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 20px;
  border-left: 3px solid var(--brand);
}

.togel-market h3 {
  margin-top: 0;
  color: var(--brand);
}

.togel-market p {
  margin: 5px 0;
  font-size: 14px;
}

/* TOGEL BET TYPES */
.togel-bet-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.togel-bet-type {
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 20px;
  border-top: 3px solid var(--brand);
}

.togel-bet-type h3 {
  margin-top: 0;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
}

.togel-bet-type .example {
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  font-size: 14px;
}

.togel-bet-type .example strong {
  color: var(--brand-2);
}

/* SLOT FEATURES */
.slot-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.slot-feature {
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.slot-feature-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.slot-feature h3 {
  margin: 10px 0;
  color: var(--brand);
}

/* PARLAY STEPS */
.parlay-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.parlay-step {
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 20px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--brand);
  color: var(--bg);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.parlay-step h3 {
  margin-top: 10px;
  color: var(--brand);
}

/* FOOTER */
.footer {
  margin-top:40px;
  padding:20px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(15,23,42,.8);
}

/* RESPONSIVE */
@media (max-width:768px){
  .topbar-inner {
    flex-direction:column;
    align-items:flex-start
  }
  
.nav {
  display: flex;
  justify-content: center; /* rata tengah navbar */
  align-items: center;
  gap: 15px; /* jarak antar tombol */
  flex-wrap: wrap; /* agar responsive, tidak melebihi layar */
  padding: 10px 20px;
  background: #1f2937; /* ganti sesuai tema */
  border-radius: 12px; /* border membulat */
}

.nav a {
  display: flex;
  align-items: center;
  gap: 5px; /* jarak icon & teks */
  padding: 8px 14px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6); /* gradient button */
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

  
  .auth {
    width:100%;
    justify-content:flex-start
  }
  
  .btn {
    padding:8px 12px;
    font-size:13px
  }
  
  h1 {
    font-size:24px
  }
  
  h2 {
    font-size:20px
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .game-list {
    grid-template-columns: 1fr;
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .game-detail-header {
    flex-direction: column;
  }
  
  .game-detail-img {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .game-stats {
    justify-content: space-around;
  }
  
  .bet-types-grid {
    grid-template-columns: 1fr;
  }
  
  .related-games {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .togel-markets {
    grid-template-columns: 1fr;
  }
  
  .togel-bet-types {
    grid-template-columns: 1fr;
  }
  
  .slot-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .parlay-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width:480px){
  .container {
    padding:12px 16px
  }
  
  .brand img {
    height:28px
  }
  
  .btn {
    padding:6px 10px;
    font-size:12px
  }
  
  h1 {
    font-size:20px
  }
  
  .category-header-page {
    padding: 30px 20px;
  }
  
  .category-header-page h1 {
    font-size: 28px;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .related-games {
    grid-template-columns: 1fr;
  }
  
  .slot-features {
    grid-template-columns: 1fr;
  }
}

