* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --bg-main: #0a0506;
  --bg-card: rgba(20, 6, 8, 0.94);
  --bg-input: #100406;
  --header-bg: linear-gradient(180deg, #6b0a0a 0%, #3d0202 100%);
  --gold-main: #FFD700;
  --gold-dark: #D4AF37;
  --gold-hover: #FFE44D;
  --red-accent: #c00000;
  --red-dark: #8B0000;
  --border-gold: rgba(255, 215, 0, 0.45);
  --text-white: #ffffff;
  --text-muted: #c9b8bc;
  --green-gacor: #22c55e;
  --yellow-medium: #eab308;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body {
  background: radial-gradient(circle at top, #1a080a 0%, var(--bg-main) 60%);
  color: var(--text-white);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.py-4 { padding-top: 16px; padding-bottom: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-3 { margin-top: 12px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }

.text-gold { color: var(--gold-main); }
.text-red { color: #ff4d4d; }
.text-green { color: var(--green-gacor); }
.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 11px; }

/* ========== HEADER ========== */
.main-header {
  background: var(--header-bg);
  border-bottom: 2px solid var(--gold-main);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.7);
  position: sticky;
  top: 0;
  z-index: 102;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  max-height: 36px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.logo-text {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo-text span { color: var(--gold-main); }

.badge-rtp {
  background: linear-gradient(180deg, var(--gold-main), var(--gold-dark));
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.header-buttons {
  display: flex;
  gap: 8px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 7px 14px;
  font-weight: 800;
  font-size: 11px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
  letter-spacing: 0.3px;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-login {
  background: #2a2a2a;
  color: white;
  border: 1px solid #555;
}

.btn-register,
.btn-gold {
  background: linear-gradient(180deg, #ffd54a 0%, #f5a623 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.35);
}

.btn-generate {
  background: linear-gradient(180deg, #e60000 0%, #a30000 100%);
  color: white;
  padding: 10px;
  border: 1px solid #ff4d4d;
  box-shadow: 0 4px 12px rgba(200, 0, 0, 0.4);
}

/* ========== INPUTS ========== */
.input-icon {
  position: relative;
  width: 100%;
}

.input-icon i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
}

.input-icon input, select {
  width: 100%;
  padding: 9px 10px 9px 32px;
  background-color: var(--bg-input);
  border: 1px solid #4a1a1f;
  border-radius: 6px;
  color: white;
  outline: none;
  font-size: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-icon input:focus, select:focus {
  border-color: var(--gold-main);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
}

select { padding-left: 10px; }

/* ========== LAYOUT ========== */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 18px; }
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.filter-grid .search-box {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .filter-grid .search-box {
    grid-column: span 1;
  }
}

/* ========== CARDS ========== */
.card {
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.border-gold {
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 215, 0, 0.05);
}

.card-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.form-group { margin-bottom: 12px; }

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-muted);
}

.card-promo {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}

/* ========== BANNER SLIDER ========== */
.banner-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.banner-slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.promo-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
}

/* ========== PROVIDER ========== */
.provider-wrapper {
  position: relative;
  background-color: rgba(20, 6, 8, 0.96);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 14px 8px 8px 8px;
  box-shadow: var(--shadow);
}

.sticky-provider {
  position: sticky;
  top: 52px;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.75);
}

.provider-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #8a0007, #c00000);
  color: #fff;
  border: 1px solid var(--gold-main);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 12px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.provider-slider-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.provider-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 0;
  width: 100%;
  align-items: center;
}

.provider-list::-webkit-scrollbar { display: none; }

.slide-btn {
  background: #2a0a10;
  border: 1px solid #5e1a22;
  color: white;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 11px;
  transition: all 0.2s;
}

.slide-btn:hover {
  background: #3d0e16;
  border-color: var(--gold-main);
}

.provider-btn {
  background-color: #100406;
  border: 1px solid #4a1a1f;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  flex-shrink: 0;
}

.provider-btn.active,
.provider-btn:hover {
  border-color: var(--gold-main);
  color: var(--gold-main);
  background: #24080c;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.provider-img {
  max-height: 26px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}

/* ========== GAME GRID ========== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 520px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 768px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (min-width: 1024px) {
  .game-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}

.game-card {
  background-color: var(--bg-card);
  border: 1px solid #4a1a1f;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-main);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 12px rgba(255, 215, 0, 0.1);
}

.game-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #100406;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-img {
  transform: scale(1.06);
}

.ai-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 4, 6, 0.85);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.game-img-wrapper:hover .ai-hover-overlay {
  opacity: 1;
}

.ai-hover-btn {
  background: linear-gradient(180deg, #ffd54a 0%, #f5a623 100%);
  color: #000;
  font-weight: 900;
  font-size: 10px;
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.5);
  text-transform: uppercase;
}

.ai-hover-badge {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.provider-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--gold-main);
  border: 1px solid var(--gold-main);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  z-index: 2;
}

.game-info {
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.game-title {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  color: #fff;
}

@media (min-width: 640px) {
  .game-title { font-size: 11px; }
  .game-info { padding: 10px; }
}

.rtp-bar-bg {
  width: 100%;
  background-color: #24080c;
  height: 16px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 5px;
  border: 1px solid #3d0e16;
}

.rtp-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s ease-in-out;
}

.rtp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #000;
}

.gacor-time {
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 6px;
}

.btn-play-game {
  padding: 6px;
  font-size: 9px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  display: block;
}

/* ========== FOOTER ========== */
.main-footer {
  background: var(--header-bg);
  border-top: 2px solid var(--gold-main);
  padding: 16px 0;
  margin-top: 36px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.6);
}

.copyright-text {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.modal-content {
  background: #160406;
  border-radius: 12px;
  padding: 18px;
  width: 100%;
  max-width: 420px;
  position: relative;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.border-gold-glow {
  border: 1px solid var(--gold-main);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.25);
}

.modal-lg {
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gold-main);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #330a10;
  border-top: 3px solid var(--gold-main);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.loading-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: #330a10;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-main));
  transition: width 0.3s ease;
}

.modal-header-info {
  border-bottom: 1px solid #330a10;
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-size: 12px;
}

.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.target-box {
  background: #100406;
  border: 1px solid #330a10;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.target-label { font-size: 9px; color: var(--text-muted); }
.target-value { font-size: 14px; font-weight: 800; }

.bet-info-box {
  background: #100406;
  border: 1px solid #330a10;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bet-label { font-size: 10px; color: var(--text-muted); }
.bet-value { font-size: 13px; font-weight: 800; }

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-card {
  background: #100406;
  border: 1px solid #330a10;
  border-left: 3px solid var(--gold-main);
  border-radius: 6px;
  padding: 8px 10px;
}

.step-header { font-size: 9px; color: var(--gold-main); font-weight: 700; }
.step-detail { font-size: 11px; color: #e2e8f0; font-weight: 600; }

.recom-games-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recom-game-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #100406;
  border: 1px solid #330a10;
  border-radius: 8px;
  padding: 8px;
}

.recom-game-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.recom-game-info { flex: 1; }
.recom-game-title { font-size: 12px; font-weight: 700; color: #fff; }
.recom-game-provider { font-size: 9px; color: var(--text-muted); }

.disclaimer-box {
  background: rgba(16, 4, 6, 0.85);
  border-top: 1px solid #330a10;
  padding-top: 10px;
  font-size: 10px;
}