
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --bg-image: url('bg-pattern.png');
  --bg-main: #0c0203;           
  --header-bg: #800000;         
  --bg-card: rgba(23, 4, 6, 0.92);           
  --border-crimson: #660000;    
  --border-gold: #f5a623;       
  --gold-main: #ffb800;         
  --gold-hover: #e0a000;        
  --red-accent: #d90429;        
  --text-white: #ffffff;
  --text-muted: #b09a9e;
  --green-gacor: #22c55e;
  --yellow-medium: #eab308;
}

body {
  background-color: var(--bg-main);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.py-4 { padding-top: 12px; padding-bottom: 20px; }
.mb-2 { margin-bottom: 6px; }
.mb-3 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 14px; }
.mb-5 { margin-bottom: 18px; }
.mb-6 { margin-bottom: 22px; }
.mt-3 { margin-top: 10px; }
.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; }


.main-header {
  background: linear-gradient(180deg, #900000 0%, #6b0000 100%);
  border-bottom: 2px solid var(--gold-main);
  padding: 8px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  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: 8px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  max-height: 32px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.logo-text span { color: var(--gold-main); }

.badge-rtp {
  background: var(--gold-main);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}

.header-buttons {
  display: flex;
  gap: 6px;
}


.btn {
  display: inline-block;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 11px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-login {
  background: #333333;
  color: white;
  border: 1px solid #555;
}

.btn-register {
  background: linear-gradient(180deg, #ffc800 0%, #f5a623 100%);
  color: #000;
}

.btn-generate {
  background: linear-gradient(180deg, #e60000 0%, #a30000 100%);
  color: white;
  padding: 9px;
  border: 1px solid #ff4d4d;
}

.btn-gold {
  background: linear-gradient(180deg, #ffc800 0%, #f5a623 100%);
  color: #000;
  font-weight: 800;
}

.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: 8px 8px 8px 32px;
  background-color: #080203;
  border: 1px solid #4a0e17;
  border-radius: 6px;
  color: white;
  outline: none;
  font-size: 11px;
}

select { padding-left: 8px; }


.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
}


.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.filter-grid .search-box {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .filter-grid .search-box {
    grid-column: span 1;
  }
}

.card {
  background-color: var(--bg-card);
  padding: 14px;
  border-radius: 8px;
}

.border-gold {
  border: 1px solid rgba(245, 166, 35, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.card-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.form-group { margin-bottom: 10px; }

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.card-promo {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}

/* SLIDING BANNER CLEAN CONTAINER */
.banner-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
}

.banner-slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.promo-banner-img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}


.provider-wrapper {
  position: relative;
  background-color: rgba(23, 4, 6, 0.95);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 8px;
  padding: 12px 6px 6px 6px;
}

.sticky-provider {
  position: sticky;
  top: 48px;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}

.provider-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #900000, #c00000);
  color: #fff;
  border: 1px solid var(--gold-main);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.provider-slider-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.provider-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0;
  width: 100%;
  align-items: center;
}

.provider-list::-webkit-scrollbar { display: none; }

.slide-btn {
  background: #33080e;
  border: 1px solid #5e0f1a;
  color: white;
  padding: 5px 7px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 10px;
}

.provider-btn {
  background-color: #080203;
  border: 1px solid #4a0e17;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: auto;
  min-width: max-content;
  flex-shrink: 0;
}

.provider-btn.active, .provider-btn:hover {
  border-color: var(--gold-main);
  color: var(--gold-main);
  background: #240509;
}

.provider-img {
  max-height: 24px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}


.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 520px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (min-width: 768px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
  .game-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}

.game-card {
  background-color: var(--bg-card);
  border: 1px solid #4a0e17;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-main);
}

.game-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #080203;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ai-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 2, 3, 0.82);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  z-index: 3;
}

.game-img-wrapper:hover .ai-hover-overlay {
  opacity: 1;
}

.ai-hover-btn {
  background: linear-gradient(180deg, #ffc800 0%, #f5a623 100%);
  color: #000;
  font-weight: 900;
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 0 10px 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: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--gold-main);
  border: 1px solid var(--gold-main);
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  z-index: 2;
}

.game-info {
  padding: 6px;
  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: 4px;
  color: #fff;
}

@media (min-width: 640px) {
  .game-title { font-size: 11px; }
  .game-info { padding: 8px; }
}

.rtp-bar-bg {
  width: 100%;
  background-color: #240509;
  height: 15px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
  border: 1px solid #3d080e;
}

.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: 5px;
  font-size: 9px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  display: block;
}


.main-footer {
  background: linear-gradient(180deg, #900000 0%, #6b0000 100%);
  border-top: 2px solid var(--gold-main);
  padding: 14px 0;
  margin-top: 30px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.6);
}

.copyright-text {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 12px;
}

.modal-content {
  background: #140305;
  border-radius: 10px;
  padding: 16px;
  width: 100%;
  max-width: 400px;
  position: relative;
  color: #fff;
}

.border-gold-glow {
  border: 1px solid var(--gold-main);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.2);
}

.modal-lg {
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #33080e;
  border-top: 3px solid var(--gold-main);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.loading-sub { font-size: 10px; color: var(--text-muted); margin-bottom: 12px; }

.progress-bar-container {
  width: 100%;
  height: 5px;
  background: #33080e;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f5a623, #ffc800);
  transition: width 0.3s ease;
}

.modal-header-info {
  border-bottom: 1px solid #33080e;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 11px;
}

.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.target-box {
  background: #080203;
  border: 1px solid #33080e;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.target-label { font-size: 9px; color: var(--text-muted); }
.target-value { font-size: 13px; font-weight: 800; }

.bet-info-box {
  background: #080203;
  border: 1px solid #33080e;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bet-label { font-size: 10px; color: var(--text-muted); }
.bet-value { font-size: 12px; font-weight: 800; }

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-card {
  background: #080203;
  border: 1px solid #33080e;
  border-left: 3px solid var(--gold-main);
  border-radius: 4px;
  padding: 6px 8px;
}

.step-header { font-size: 9px; color: var(--gold-main); font-weight: 700; }
.step-detail { font-size: 10px; color: #e2e8f0; font-weight: 600; }

.recom-games-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recom-game-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #080203;
  border: 1px solid #33080e;
  border-radius: 6px;
  padding: 6px;
}

.recom-game-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.recom-game-info { flex: 1; }
.recom-game-title { font-size: 11px; font-weight: 700; color: #fff; }
.recom-game-provider { font-size: 9px; color: var(--text-muted); }

.disclaimer-box {
  background: rgba(8, 2, 3, 0.8);
  border-top: 1px solid #33080e;
  padding-top: 8px;
  font-size: 10px;
}