/* ============================================
   🚀 GLOBAL OPTIMIZATION - HP SPEC KENTANG
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --bg-color: #001a2d;
  --text-first: #f8e9c0;
  --text-second: #e9e1d1;
  --first-color: #001525;
  --second-color: #00e6ff;
  --third-color: #ff3333;
  --fourth-color: #ff1a1a;
  --fifth-color: #d4af37;
  --sixth-color: #001220;
  --card-bg: rgba(0, 26, 45, 0.85);
  --card-border: rgba(0, 230, 255, 0.3);
}

body {
  font-family: 'Georgia', serif;
  background: var(--bg-color);
  color: var(--text-first);
  min-height: 100vh;
  line-height: 1.5;
  background-image: linear-gradient(rgba(0, 26, 45, 0.95), rgba(0, 18, 32, 0.98)), url('https://www.transparenttextures.com/patterns/aztec.png');
  background-attachment: fixed;
  padding-bottom: 30px;
}

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 15px; overflow-x: visible; }

/* ✅ Logo */
.logo { text-align: center; padding: 20px 0 10px; }
.logo-text {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--second-color), var(--fifth-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px var(--second-color);
}

/* ✅ Running Text */
.running-text {
  background: linear-gradient(90deg, var(--sixth-color), var(--ancient-sky), var(--prehistoric-water), var(--sixth-color));
  padding: 12px 0;
  border-radius: 10px;
  margin: 10px 0 15px;
  border-top: 2.5px solid #ffffff;
  border-bottom: 2.5px solid #ffffff;
}
.running-text marquee { color: var(--fifth-color); font-weight: 700; font-size: 14px; text-shadow: 0 0 12px rgba(212, 175, 55, 0.9); letter-spacing: 1.5px; }

/* ✅ Buttons Row */
.btn-row { display: flex; gap: 10px; margin-bottom: 15px; }
.btn-login, .btn-daftar {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: 'Georgia', serif;
  letter-spacing: 2.5px;
}
a.btn-login, a.btn-daftar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-login { background: linear-gradient(0deg, #0055aa 0%, #0099ff 25%, var(--second-color) 100%); color: white; border: 2.5px solid var(--second-color); box-shadow: 0 0 30px rgba(0, 212, 255, 0.9); }
.btn-daftar { background: linear-gradient(0deg, #004499 0%, #0077dd 25%, #00aaff 100%); color: white; border: 2.5px solid #00aaff; box-shadow: 0 0 30px rgba(0, 191, 255, 0.9); }
.btn-login:hover, .btn-daftar:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 0 50px var(--second-color), 0 15px 35px rgba(0, 80, 150, 0.6); }

/* ============================================
   ✅ PROVIDER GRID - HORIZONTAL SCROLL
   ============================================ */
.provider-item {
  background: rgba(0, 20, 42, 0.7);
  padding: 12px 10px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid rgba(0, 210, 200, 0.4);
  min-width: 75px;
  max-width: 75px;
  width: 75px;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  transform: translateZ(0);
  will-change: background, border-color;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.provider-item:hover, .provider-item.active { background: rgba(0, 224, 213, 0.25); border-color: var(--second-color); box-shadow: 0 0 25px rgba(0, 230, 255, 0.5); }

.provider-logo { width: 42px; height: 42px; object-fit: contain; margin: 0 auto 5px; display: block; border-radius: 8px; background: rgba(0, 20, 42, 0.5); padding: 4px; aspect-ratio: 1/1; flex-shrink: 0; }
.provider-code { display: block; font-size: 18px; font-weight: 700; color: var(--second-color); text-shadow: 0 0 8px var(--second-color); margin-bottom: 3px; flex-shrink: 0; line-height: 1; }
.provider-name { display: block; font-size: 9px; color: var(--second-color); margin-top: 2px; text-shadow: 0 0 8px var(--second-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; flex-shrink: 0; line-height: 1.2; }

/* ✅ Update Time */
.update-time { text-align: center; color: var(--text-second); font-size: 14px; margin: 10px 0 15px; }
.update-time strong { color: var(--fifth-color); text-shadow: 0 0 10px var(--fifth-color); }

/* ✅ Search Bar */
.search-bar { background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); padding: 15px; border-radius: 12px; margin-bottom: 20px; border: 2px solid rgba(0, 230, 255, 0.3); box-shadow: 0 0 20px rgba(0, 210, 200, 0.3); }

/* ✅ Filter Buttons - DENGAN KONTROL GIF YANG LEBIH BAIK */
.filter-btns { 
  display: flex; 
  gap: 10px; 
  margin-bottom: 10px;
  align-items: center;
}

.filter-btn {
  flex: 1;
  padding: 12px 16px;
  background: rgba(0, 20, 42, 0.7);
  border: 1.5px solid rgba(0, 210, 200, 0.4);
  border-radius: 8px;
  color: var(--second-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
  text-shadow: 0 0 8px var(--second-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  max-height: 52px;
  line-height: 1.2;
}

/* ✅ FILTER HOT GIF - KONTROL UKURAN PENUH */
.filter-hot-gif {
  height: 20px;
  width: auto;
  max-width: 40px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
  flex-shrink: 0;
}

.filter-btn.active { 
  background: rgba(0, 224, 213, 0.3);
  border-color: #fff;
  box-shadow: 0 0 25px var(--second-color);
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 20, 42, 0.7);
  border: 1.5px solid rgba(0, 210, 200, 0.4);
  border-radius: 8px;
  color: var(--text-first);
  font-size: 14px;
  font-family: 'Georgia', serif;
  outline: none;
}
.search-input::placeholder { color: var(--text-second); }

/* ============================================
   ✅ GAMES GRID - No Overlapping
   ============================================ */
.games-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, 1fr); transform: translateZ(0); will-change: contents; transition: opacity 0.15s ease; }
.games-grid.updating { opacity: 0.85; pointer-events: none; }

/* ✅ GAME CARD - Flex column, NO OVERLAP */
.game-card {
  background: linear-gradient(165deg, rgba(0, 18, 32, 0.85) 0%, rgba(0, 42, 64, 0.85) 28%, rgba(0, 58, 85, 0.85) 58%, rgba(0, 230, 255, 0.85) 100%);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 2.5px solid rgba(0, 230, 255, 0.5);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.4), 0 15px 35px rgba(0, 18, 28, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  min-height: 400px;
  will-change: transform;
  transform: translateZ(0);
  contain: layout style paint;
}
.game-card:hover { transform: translateZ(0) translateY(-3px) scale(1.01); border-color: var(--second-color); box-shadow: 0 0 40px rgba(0, 230, 255, 0.6), 0 20px 50px rgba(0, 15, 25, 0.8); }

/* ✅ HOT BADGE - GIF Animation + Fallback */
.hot-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 52px;
  height: 24px;
  background: url('assets/images/setting/hot.gif') no-repeat center center;
  background-size: contain;
  border-radius: 12px;
  z-index: 20;
  pointer-events: none;
}
.hot-badge::after {
  content: '🔥 HOT';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
  font-size: 9px;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}
.hot-badge img { display: none; }
.hot-badge:has(img[src]:not([src=""]))::after { display: none; }
.hot-badge:has(img[src]:not([src=""])) img { display: block; }

@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.9; } 100% { transform: scale(1); opacity: 1; } }

/* ✅ PROVIDER BADGE - SMALL CORNER BADGE (24px) */
.provider-icon-top { position: absolute; top: 8px; right: 8px; z-index: 20; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.provider-badge-img { width: 24px; height: 24px; object-fit: contain; border-radius: 50%; background: rgba(0, 20, 42, 0.9); border: 1px solid rgba(212, 175, 55, 0.6); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); display: block; flex-shrink: 0; padding: 2px; box-sizing: border-box; }
.provider-badge-text { display: none; align-items: center; justify-content: center; width: 24px; height: 24px; background: rgba(0, 20, 42, 0.9); border-radius: 50%; font-size: 9px; font-weight: 700; color: var(--fifth-color); border: 1px solid rgba(212, 175, 55, 0.6); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); flex-shrink: 0; line-height: 1; padding: 0; box-sizing: border-box; }

/* ✅ GAME IMAGE AREA */
.game-image { padding: 25px 20px 15px; text-align: center; position: relative; z-index: 2; width: 100%; box-sizing: border-box; height: 160px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.game-img { width: 100%; max-width: 120px; height: 120px; object-fit: contain; object-position: center; border-radius: 30px; background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); border: 2px solid var(--fifth-color); box-shadow: 0 0 20px var(--fifth-color); display: block; margin: 0 auto; opacity: 1; transition: opacity 0.2s ease; flex-shrink: 0; }
.game-img[loading="lazy"] { opacity: 1; }
.game-icon { display: none; align-items: center; justify-content: center; width: 100%; max-width: 120px; height: 120px; background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); border-radius: 30px; font-size: 24px; font-weight: bold; color: var(--second-color); border: 2px solid var(--fifth-color); box-shadow: 0 0 20px var(--fifth-color); box-sizing: border-box; flex-shrink: 0; }

/* ============================================
   ✅ RTP SECTION - MODERN & COMPACT (UPDATED)
   ============================================ */
.rtp-section {
  margin: 0 12px 8px;
  padding: 5px 10px;
  background: rgba(0, 30, 50, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(0, 230, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rtp-section p {
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  color: var(--text-first);
  white-space: nowrap;
  min-width: 44px;
  text-shadow: 0 0 6px currentColor;
}
.rtp-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.rtp-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s linear;
  position: relative;
}
.rtp-fill.great { background: linear-gradient(90deg, #00d26a, #00ff88); }
.rtp-fill.good { background: linear-gradient(90deg, #ffc107, #ffdb58); }
.rtp-fill.low { background: linear-gradient(90deg, #dc3545, #ff6b6b); }

/* ✅ Shine Animation - PC Only */
@media (min-width: 769px) {
  .rtp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: rtpShine 2.5s infinite;
  }
  @keyframes rtpShine { 0% { left: -100%; } 100% { left: 200%; } }
  .rtp-fill.great { box-shadow: 0 0 8px rgba(0, 210, 106, 0.3); }
}

/* ============================================
   ✅ PATTERN SECTION - Mobile Optimized
   ============================================ */
.pattern-section {
  background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9));
  margin: 0 12px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid rgba(0, 230, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 210, 200, 0.3);
  position: relative;
  z-index: 2;
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: auto;
}
.pattern-section h4 { font-size: 10px; color: var(--second-color); margin: 0 0 8px; text-align: center; text-shadow: 0 0 12px var(--second-color); text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
.pattern-boxes { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; flex-grow: 0; min-height: auto; }
.pattern-box { display: flex; justify-content: space-between; align-items: center; background: rgba(0, 230, 255, 0.1); border: 1px solid rgba(0, 230, 255, 0.3); border-radius: 6px; padding: 6px 10px; flex-shrink: 0; flex-wrap: wrap; }
.pattern-spin { font-size: 9px; color: var(--text-first); font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.pattern-speed { font-size: 8px; color: var(--sixth-color); background: var(--fifth-color); padding: 2px 7px; border-radius: 8px; font-weight: 600; flex-shrink: 0; }
.gacor-hour { font-size: 9px; color: var(--second-color); margin: 8px 0 0; text-align: center; text-shadow: 0 0 10px var(--second-color); flex-shrink: 0; }

/* ✅ PLAY BUTTON */
.play-btn {
  width: calc(100% - 24px);
  margin: 0 12px 14px;
  padding: 10px;
  background: linear-gradient(0deg, rgba(140, 112, 75, 0.9) 0%, rgba(0, 42, 64, 0.9) 55%, rgba(0, 58, 85, 0.9) 100%);
  border: 2.5px solid var(--fifth-color);
  border-radius: 12px;
  color: var(--fifth-color);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  letter-spacing: 2.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.5);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.play-btn:hover { background: linear-gradient(0deg, var(--second-color) 0%, rgba(0, 42, 64, 0.95) 55%, var(--sixth-color) 100%); color: #000; box-shadow: 0 0 40px var(--second-color), 0 10px 30px rgba(0, 15, 30, 0.8); transform: scale(1.05) translateY(-2px); }

/* ✅ Hologram shine - decorative only */
.game-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 120%;
  height: 200%;
  background: linear-gradient(125deg, transparent, rgba(255, 255, 255, 0.15), rgba(0, 230, 255, 0.2), transparent);
  transform: rotate(25deg);
  animation: shine 8s infinite linear;
  pointer-events: none;
  z-index: 1;
}
@keyframes shine {
  0% { left: -120%; top: -50%; opacity: 0; }
  20% { left: 110%; top: -10%; opacity: 1; }
  40% { left: 110%; top: 30%; opacity: 1; }
  60% { left: -30%; top: 70%; opacity: 0.5; }
  80% { left: -120%; top: 110%; opacity: 0; }
  100% { left: -120%; top: -50%; opacity: 0; }
}

/* ============================================
   ✅ MODAL STYLES - Z-Index Fix
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000 !important;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: linear-gradient(165deg, rgba(0, 18, 32, 0.95) 0%, rgba(0, 42, 64, 0.95) 50%, rgba(0, 58, 85, 0.95) 100%);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlide 0.3s ease;
  border: 2.5px solid rgba(0, 230, 255, 0.5);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
  z-index: 10001 !important;
}
@keyframes modalSlide { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

.modal-header {
  background: linear-gradient(0deg, #0055aa 0%, #0099ff 25%, var(--second-color) 100%);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2.5px solid var(--fifth-color);
}
.modal-header h3 { font-size: 17px; color: white; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); margin: 0; }
.modal-close {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--fifth-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.modal-body { padding: 18px 20px 20px; }

.modal-game-img { width: 100px; height: 100px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); border-radius: 25px; border: 2px solid var(--fifth-color); box-shadow: 0 0 20px var(--fifth-color); }
.game-code { font-size: 34px; font-weight: bold; color: var(--second-color); text-shadow: 0 0 15px var(--second-color); }
.modal-game-image { opacity: 1 !important; display: block !important; width: 100px !important; height: 100px !important; margin: 0 auto !important; object-fit: contain; border-radius: 25px; }

.modal-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.info-box { background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); padding: 10px; border-radius: 10px; text-align: center; border: 1.5px solid rgba(0, 230, 255, 0.3); }
.info-box h5 { font-size: 10px; color: var(--text-second); margin: 0 0 4px; }
.info-box p { font-size: 13px; font-weight: 600; color: var(--fifth-color); text-shadow: 0 0 10px var(--fifth-color); margin: 0; }

.jam-gacor-box { background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); border: 2px solid var(--second-color); border-radius: 12px; padding: 12px 15px; margin-bottom: 18px; box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
.jam-gacor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; color: var(--second-color); text-shadow: 0 0 10px var(--second-color); font-size: 13px; }
.jam-time { background: var(--second-color); color: var(--sixth-color); padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.jam-gacor-footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-second); }
.jam-tingkat { color: var(--fifth-color); font-weight: 600; text-shadow: 0 0 10px var(--fifth-color); }

.bet-section { background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); border-radius: 12px; padding: 12px 15px; margin-bottom: 18px; border: 1.5px solid rgba(0, 230, 255, 0.3); }
.bet-section h4 { font-size: 13px; color: var(--fifth-color); margin: 0 0 10px; text-shadow: 0 0 10px var(--fifth-color); }
.bet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bet-item { text-align: center; padding: 8px; background: rgba(0, 20, 42, 0.7); border-radius: 8px; border: 1px solid rgba(0, 230, 255, 0.2); }
.bet-item.recommended { background: rgba(0, 230, 255, 0.15); border: 1px solid var(--second-color); box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); }
.bet-label { display: block; font-size: 9px; color: var(--text-second); margin-bottom: 4px; }
.bet-value { font-size: 11px; font-weight: 600; color: var(--text-first); }

.target-section { margin-bottom: 18px; }
.target-section h4 { font-size: 13px; color: var(--fifth-color); margin: 0 0 10px; text-shadow: 0 0 10px var(--fifth-color); }
.target-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.target-item { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; }
.target-item.win { background: linear-gradient(145deg, rgba(38, 245, 0, 0.15), rgba(0, 210, 106, 0.1)); border: 1px solid rgba(38, 245, 0, 0.3); }
.target-item.loss { background: linear-gradient(145deg, rgba(255, 26, 26, 0.15), rgba(220, 53, 69, 0.1)); border: 1px solid rgba(255, 26, 26, 0.3); }
.target-icon { font-size: 20px; flex-shrink: 0; }
.target-info { display: flex; flex-direction: column; min-width: 0; }
.target-label { font-size: 9px; color: var(--text-second); }
.target-value { font-size: 12px; font-weight: 600; color: var(--text-first); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pattern-full-section { background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); border-radius: 12px; padding: 12px 15px; margin-bottom: 18px; border: 2px solid rgba(0, 230, 255, 0.3); box-shadow: 0 0 20px rgba(0, 210, 200, 0.3); }
.pattern-full-section h4 { font-size: 13px; color: var(--second-color); text-align: center; margin: 0 0 12px; text-shadow: 0 0 12px var(--second-color); text-transform: uppercase; letter-spacing: 1px; }
.pattern-steps-full { display: flex; flex-direction: column; gap: 6px; }
.pattern-step-full { background: rgba(0, 230, 255, 0.1); border: 1px solid rgba(0, 230, 255, 0.3); border-radius: 8px; padding: 8px 12px; text-align: center; }
.step-details { display: flex; justify-content: center; }
.step-row { display: flex; justify-content: center; }
.step-value { font-size: 12px; color: var(--text-first); font-weight: 600; }
.step-value.highlight { color: var(--fifth-color); text-shadow: 0 0 10px var(--fifth-color); }

.generate-pattern-btn { width: 100%; margin-top: 12px; padding: 10px; background: linear-gradient(0deg, rgba(140, 112, 75, 0.9) 0%, rgba(0, 42, 64, 0.9) 55%, rgba(0, 58, 85, 0.9) 100%); border: 2.5px solid var(--fifth-color); border-radius: 12px; color: var(--fifth-color); font-weight: 600; font-size: 13px; cursor: pointer; font-family: 'Georgia', serif; letter-spacing: 2px; transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.5); }
.generate-pattern-btn:hover { background: linear-gradient(0deg, var(--second-color) 0%, rgba(0, 42, 64, 0.95) 55%, var(--sixth-color) 100%); color: #000; box-shadow: 0 0 40px var(--second-color), 0 10px 30px rgba(0, 15, 30, 0.8); transform: translateY(-2px); }

.tips-section { background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); border: 2px solid var(--fifth-color); border-radius: 12px; padding: 12px 15px; margin-bottom: 18px; box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
.tips-section h4 { font-size: 13px; color: var(--fifth-color); margin: 0 0 10px; text-shadow: 0 0 10px var(--fifth-color); }
.tips-list { list-style: none; padding: 0; margin: 0; }
.tips-list li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 11px; color: var(--text-first); line-height: 1.4; }
.tips-list li::before { content: '💡'; position: absolute; left: 0; font-size: 9px; }

a.modal-play-btn { width: 100%; padding: 14px; background: linear-gradient(0deg, #0055aa 0%, #0099ff 25%, var(--second-color) 100%); border: 2.5px solid var(--second-color); border-radius: 12px; color: white; font-weight: 600; font-size: 15px; cursor: pointer; font-family: 'Georgia', serif; letter-spacing: 2.5px; box-shadow: 0 0 30px rgba(0, 212, 255, 0.9); transition: all 0.3s ease; display: block; text-align: center; text-decoration: none; }
a.modal-play-btn:hover { box-shadow: 0 0 50px var(--second-color), 0 15px 35px rgba(0, 80, 150, 0.6); transform: translateY(-2px); }

.footer { background: linear-gradient(145deg, rgba(0, 18, 32, 0.9), rgba(0, 42, 64, 0.9)); padding: 20px; text-align: center; margin-top: 25px; border-radius: 12px; border: 2px solid rgba(0, 230, 255, 0.3); }
.footer p { color: var(--text-second); font-size: 12px; margin: 0; }

/* ============================================
   ✅ RESPONSIVE - Games Grid Only
   ============================================ */
@media (min-width: 768px) { .container { max-width: 720px; } .games-grid { grid-template-columns: repeat(3, 1fr); } .logo-text { font-size: 30px; } }
@media (min-width: 992px) { .container { max-width: 960px; } .games-grid { grid-template-columns: repeat(4, 1fr); } .logo-text { font-size: 32px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } .games-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1400px) { .container { max-width: 1320px; padding: 20px; } .games-grid { grid-template-columns: repeat(6, 1fr); } }

/* ============================================
   ✅ MOBILE OPTIMIZATION - Spec Kentang Friendly
   ============================================ */
@media (max-width: 575px) {
  .pattern-section { margin: 0 10px 8px; padding: 8px 10px; flex-grow: 0 !important; flex-shrink: 0 !important; min-height: auto !important; }
  .pattern-section h4 { font-size: 9px; margin: 0 0 6px; }
  .pattern-boxes { gap: 4px; margin-bottom: 6px; }
  .pattern-box { padding: 5px 8px; flex-wrap: wrap; }
  .pattern-spin { font-size: 8px; max-width: 55%; }
  .pattern-speed { font-size: 7px; padding: 2px 5px; }
  .gacor-hour { font-size: 8px; margin: 6px 0 0; }
  
  .bet-grid, .target-grid { grid-template-columns: 1fr !important; }
  .game-card { min-height: 380px; }
  .game-image { height: 155px; }
  .game-img, .game-icon { max-width: 115px; height: 115px; }
  
  .rtp-section { margin: 0 10px 6px; padding: 4px 8px; gap: 6px; }
  .rtp-section p { font-size: 10px; min-width: 40px; }
  .rtp-bar { height: 3px; }
  
  /* ✅ FILTER BUTTON MOBILE - GIF LEBIH KECIL */
  .filter-btn {
    padding: 10px 12px;
    min-height: 44px;
    max-height: 48px;
    font-size: 12px;
  }
  
  .filter-hot-gif {
    height: 16px;
    max-width: 32px;
  }
}

/* ✅ Fade in animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   ✅ PROMO SLIDER - Lightweight
   ============================================ */
.promo-slider { position: relative; margin: 16px auto; max-width: 1900px; width: 96%; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.5); background: #111; aspect-ratio: 5 / 1; }
@media (max-width: 768px) { .promo-slider { aspect-ratio: 5 / 1; border-radius: 10px; margin: 12px auto; } }

.slider-track { display: flex; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.slide { min-width: 100%; line-height: 0; position: relative; }
.slide picture, .slide picture img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }

.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; pointer-events: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.3s ease; pointer-events: auto; }
.dot.active { background: #ffd700; transform: scale(1.25); box-shadow: 0 0 6px rgba(255,215,0,0.6); }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; border-radius: 50%; transition: all 0.2s ease; z-index: 10; pointer-events: auto !important; backdrop-filter: blur(4px); }
.slider-arrow:hover { background: rgba(255,215,0,0.9); color: #000; }
.prev { left: 12px; } .next { right: 12px; }
@media (max-width: 768px) { .slider-arrow { width: 34px; height: 34px; font-size: 14px; } }

/* ============================================
   ✅ PROVIDER SLIDER - Arrows Visible on PC
   ============================================ */
.provider-slider-wrapper { position: relative; width: 100%; max-width: 1200px; margin: 16px auto; padding: 0 44px; box-sizing: border-box; }
.provider-scroll-container { overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 4px 12px; scrollbar-width: none; width: 100%; }
.provider-scroll-container::-webkit-scrollbar { display: none; }
.provider-grid { display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; width: max-content; padding: 0; margin: 0; }
.provider-grid > * { flex: 0 0 auto; }

.provider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #ffd700;
  border: 2px solid rgba(255, 215, 0, 0.5);
  font-size: 18px;
  cursor: pointer;
  z-index: 500 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  user-select: none;
  transition: all 0.2s ease;
  opacity: 1;
  visibility: visible;
}
.provider-arrow:hover { background: #ffd700; color: #000; transform: translateY(-50%) scale(1.05); }
.provider-arrow:active { transform: translateY(-50%) scale(0.95); }
.provider-arrow.prev { left: 0; }
.provider-arrow.next { right: 0; }

/* ✅ Hide provider arrows ONLY when modal is active */
.modal-overlay.active ~ .provider-slider-wrapper .provider-arrow,
.modal-overlay.active + .provider-slider-wrapper .provider-arrow,
body.modal-open .provider-arrow { display: none !important; pointer-events: none !important; }

@media (max-width: 768px) { .provider-slider-wrapper { padding: 0 36px; } .provider-arrow { width: 32px; height: 32px; font-size: 14px; } }

/* ============================================
   ✅ LOGO IMAGE - Responsive
   ============================================ */
.logo { text-align: center; padding: 18px 0 12px; }
.logo-link { display: inline-block; cursor: pointer; transition: transform 0.3s ease; line-height: 0; }
.logo-link:hover { transform: scale(1.02); }
.logo-img { display: block; height: auto; width: 500px; max-width: 1200px; filter: drop-shadow(0 0 12px rgba(0, 230, 255, 0.5)); transition: filter 0.3s ease; }
.logo-link:hover .logo-img { filter: drop-shadow(0 0 18px rgba(0, 230, 255, 0.8)); }
@media (max-width: 991px) { .logo-img { width: 240px; max-width: 85vw; } }
@media (max-width: 768px) { .logo { padding: 14px 0 8px; } .logo-img { width: 210px; max-width: 90vw; filter: drop-shadow(0 0 10px rgba(0, 230, 255, 0.4)); } }
@media (max-width: 480px) { .logo-img { width: 180px; max-width: 85vw; } }
@media (max-width: 360px) { .logo-img { width: 160px; } }

/* ============================================
   ✅ LOAD MORE BUTTON - Theme Match
   ============================================ */
.load-more-btn {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px 32px;
  background: linear-gradient(145deg, rgba(0, 18, 32, 0.95), rgba(0, 42, 64, 0.95));
  color: var(--second-color);
  border: 2px solid rgba(0, 230, 255, 0.4);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin: 20px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}
.load-more-btn:hover { background: linear-gradient(145deg, rgba(0, 42, 64, 0.95), rgba(0, 58, 85, 0.95)); color: var(--fifth-color); border-color: var(--fifth-color); transform: translateY(-2px); box-shadow: 0 0 20px rgba(0, 230, 255, 0.3); }
@media (max-width: 768px) { .load-more-btn { padding: 14px 24px; font-size: 13px; } }

/* ============================================
   ✅ PERFORMANCE OPTIMIZATION - Final
   ============================================ */
.game-card { contain: layout style paint; will-change: transform; backface-visibility: hidden; }

@media (max-width: 768px) {
  .game-card { backdrop-filter: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
  .game-card::before { display: none; }
  .rtp-fill::after { display: none; }
  .rtp-fill.great { box-shadow: none; }
}