/* ============================================
   RTP Landing Page - Dark Casino Theme
   ============================================
   Style: Dark Casino Modern + Gold Accent
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --bg: linear-gradient(135deg, #090e1b, #101a31);
  --bg-card: rgba(23, 34, 59, 1);
  --bg-card-2: linear-gradient(135deg, #090e1b, #101a31);
  --bg-card-3: #17223b;
  --gold: #f0c040;
  --gold-light: #f8da80;
  --gold-dark: #c49a20;
  --gold-dim: rgba(240, 192, 64, 0.12);
  --gold-glow: rgba(240, 192, 64, 0.28);
  --red: #e53935;
  --red-dark: #b71c1c;
  --red-light: #ff6f60;
  --red-dim: rgba(229, 57, 53, 0.12);
  --red-glow: rgba(229, 57, 53, 0.28);
  --white: #ffffff;
  --grey-100: #f0f0f0;
  --grey-200: #d4d4d4;
  --grey-300: #9a9a9a;
  --grey-400: #6e6e6e;
  --grey-500: #464646;
  --grey-600: #2c2c2c;
  --rtp-high: #00e676;
  --rtp-medium: #ffd700;
  --rtp-low: #ff5252;
  --font-display: 'Lexend Deca', sans-serif;
  --font-body: 'Lexend Deca', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --header-height: 65px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --border: #26324d;
  --mute: #93a4c7;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input,
select {
  font-family: inherit;
  outline: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes skeletonShimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: calc(400px + 100%) 0;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0e0f13;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 4px 18px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-dim);
}

.btn-accent {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(240, 192, 64, 0.3);
}

.btn-accent:hover {
  background: rgba(240, 192, 64, 0.2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.68rem;
}
.btn-lg {
  padding: 13px 30px;
  font-size: 0.85rem;
}

/* Navbar buttons */
.btn-nav-outline {
  padding: 7px 18px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-nav-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-nav-gold {
  padding: 7px 18px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  border: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-nav-gold:hover {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  box-shadow: 0 3px 14px var(--red-glow);
}

/* Red CTA button */
.btn-red {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  border: none;
}

.btn-red:hover {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  box-shadow: 0 4px 18px var(--red-glow);
  transform: translateY(-1px);
}

/* Icon buttons (filter/search) */
.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--grey-300);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.icon-btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #0e0f13;
}

.icon-btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.icon-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-normal);
}

.header.scrolled {
  background: var(--bg-card);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .22);
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
}

/* Mobile-only CTA buttons (hidden on desktop) */
.nav-mobile-actions {
  display: none;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-300);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--bg-card-3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== PROVIDERS SECTION ===== */
.section-providers {
  padding: calc(var(--header-height) + 20px) 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.providers-header {
  margin-bottom: 14px;
}

.providers-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
}

/* Provider slider */
.provider-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.provider-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  flex: 1;
}

.provider-slider::-webkit-scrollbar {
  display: none;
}

.slider-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--grey-300);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.provider-card {
  flex: 0 0 auto;
  min-width: 110px;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  animation: fadeIn 0.4s ease;
  position: relative;
  overflow: hidden;
}

.provider-card:hover {
  border-color: rgba(240, 192, 64, 0.4);
  background: var(--bg-card-2);
}

.provider-card.active {
  border-color: var(--gold);
  background: var(--bg-card-2);
}

.provider-logo {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  overflow: hidden;
}

.provider-logo img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

.provider-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.provider-card.active .provider-name,
.provider-card:hover .provider-name {
  color: var(--gold);
}

/* HOT badge on provider card */
.provider-hot {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 5px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 3px;
  line-height: 1.4;
  z-index: 1;
}

/* Skeleton loading */
.loading-skeleton {
  display: flex;
  gap: 10px;
  overflow: hidden;
}

.skeleton-provider {
  flex: 0 0 110px;
  height: 64px;
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-2) 50%, var(--bg-card) 100%);
  background-size: 400px 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ===== GAMES SECTION ===== */
.section {
  padding: 14px 0 60px;
}

/* Games section header */
.games-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.games-title {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 3vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.games-title i {
  margin-right: 8px;
  color: var(--grey-300);
}

.games-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search box */
.search-box {
  position: relative;
}

.search-box input {
  width: 230px;
  padding: 10px 36px 10px 14px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.search-box input::placeholder {
  color: var(--grey-400);
}

.search-box input:focus {
  border-color: rgba(240, 192, 64, 0.4);
  background: var(--bg-card);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
  font-size: 0.8rem;
  padding: 3px;
  transition: var(--transition-fast);
}

.search-clear:hover {
  color: var(--white);
}

/* Filter panel */
.filter-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
  animation: fadeIn 0.22s ease;
}

.filter-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
}

.filter-select {
  padding: 9px 30px 9px 12px;
  background: var(--bg-card-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.78rem;
  min-width: 140px;
  cursor: pointer;
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23f0c040' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:focus {
  border-color: rgba(240, 192, 64, 0.4);
}

.filter-select option {
  background: var(--bg-card-2);
  color: var(--grey-600);
}

/* Active filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.filter-tag button {
  font-size: 0.62rem;
  color: var(--grey-300);
  transition: var(--transition-fast);
}

.filter-tag button:hover {
  color: var(--white);
}

/* Results info */
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 2px;
}

#resultsCount {
  font-size: 0.82rem;
  color: var(--white);
}

#resultsCount strong {
  color: var(--gold);
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--mute);
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.view-btn.active,
.view-btn:hover {
  color: var(--gold);
  border-color: rgba(240, 192, 64, 0.3);
  background: rgba(240, 192, 64, 0.08);
}

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.games-grid.list-view {
  grid-template-columns: 1fr;
}

#gamesLoading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.skeleton-card {
  height: 360px;
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-2) 50%, var(--bg-card) 100%);
  background-size: 400px 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}

/* ===== GAME CARD ===== */
.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  animation: fadeInUp 0.4s ease both;
  position: relative;
  box-shadow: 0 6px 24px rgb(229 222 53 / 25%);
}

.game-card:hover {
  border-color: rgba(240, 192, 64, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* Card image area */
.game-card-header {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-card-3);
}

.game-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.game-card:hover .game-card-header img {
  transform: scale(1.05);
}

/* Badges */
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 2;
}

.badge-promo {
  background: rgba(0, 175, 90, 0.9);
  color: #fff;
}
.badge-hot {
  background: rgba(215, 40, 40, 0.9);
  color: #fff;
}
.badge-new {
  background: rgba(0, 145, 215, 0.9);
  color: #fff;
}

/* Online count badge */
.game-online {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--white);
  z-index: 2;
}

.game-online .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rtp-high);
  animation: pulse 1.5s infinite;
}

/* Provider badge on image */
.game-provider-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 4px;
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}

/* Full-width RTP bar row (between image and card body) */
.game-rtp-bar-row {
  position: relative;
  width: 100%;
  height: 30px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.game-rtp-bar-row.high {
  border-bottom: 2px solid rgba(0, 230, 118, 0.4);
  border-top: 1px solid rgba(0, 230, 118, 0.4);
}
.game-rtp-bar-row.medium {
  border-bottom: 2px solid rgba(255, 215, 0, 0.4);
  border-top: 1px solid rgba(255, 215, 0, 0.4);
}
.game-rtp-bar-row.low {
  border-bottom: 2px solid rgba(255, 82, 82, 0.4);
  border-top: 1px solid rgba(255, 82, 82, 0.4);
}

.game-rtp-bar-fill {
  height: 100%;
  transition: width 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: absolute;
  left: 0;
  top: 0;
}

.game-rtp-bar-fill.high {
  background: linear-gradient(90deg, rgba(0, 168, 69, 0.85), rgba(0, 230, 118, 0.9));
  box-shadow: inset 0 0 12px rgba(0, 230, 118, 0.3);
}
.game-rtp-bar-fill.medium {
  background: linear-gradient(90deg, rgba(196, 154, 0, 0.85), rgba(255, 215, 0, 0.9));
  box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.3);
}
.game-rtp-bar-fill.low {
  background: linear-gradient(90deg, rgba(168, 32, 32, 0.85), rgba(255, 82, 82, 0.9));
  box-shadow: inset 0 0 12px rgba(255, 82, 82, 0.3);
}

/* Shimmer animation on high RTP */
.game-rtp-bar-fill.high::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: rtpShimmer 2.5s ease-in-out infinite;
}

@keyframes rtpShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* RTP bar content (status + percentage) */
.game-rtp-bar-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.game-rtp-status {
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgb(0 0 0 / 79%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-rtp-status i {
  font-size: 0.58rem;
}

.game-rtp-status.high {
  color: var(--rtp-high);
}
.game-rtp-status.high i {
  color: var(--rtp-high);
}
.game-rtp-status.medium {
  color: var(--rtp-medium);
}
.game-rtp-status.medium i {
  color: var(--rtp-medium);
}
.game-rtp-status.low {
  color: var(--rtp-low);
}
.game-rtp-status.low i {
  color: var(--rtp-low);
}

.game-rtp-bar-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.5px;
}

.game-rtp-bar-pct.high {
  color: #fff;
}
.game-rtp-bar-pct.medium {
  color: #fff;
}
.game-rtp-bar-pct.low {
  color: rgba(255, 255, 255, 0.9);
}

/* Card body */
.game-card-body {
  padding: 11px 12px 10px;
}

.game-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-provider-text {
  font-size: 0.68rem;
  color: var(--gold);
  margin-bottom: 10px;
}

/* Pola list */
.game-pola {
  list-style: none;
  margin-bottom: 6px;
}

.game-pola li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  font-size: 0.7rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.game-pola li:last-child {
  border-bottom: none;
}

.game-pola li i {
  color: var(--gold);
  font-size: 0.54rem;
  width: 12px;
}

.game-pola-note {
  font-size: 0.62rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 10px;
}

/* Card actions */
.game-card-actions {
  display: flex;
  gap: 7px;
}

.game-card-actions .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.68rem;
  border-radius: 6px;
}

/* List view */
.games-grid.list-view .game-card {
  display: grid;
  grid-template-columns: 170px 1fr;
}

.games-grid.list-view .game-card-header {
  aspect-ratio: 1;
}

.games-grid.list-view .game-rtp-bar-row {
  display: none;
}

.games-grid.list-view .game-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== POLA MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 100%;
  max-width: 340px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.3s ease;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.modal-content::-webkit-scrollbar {
  width: 4px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
}

/* Modal topbar */
.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-badge-promo {
  padding: 2px 8px;
  background: var(--red-dim);
  border: 1px solid rgba(229, 57, 53, 0.4);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.modal-dot-sep {
  color: var(--grey-400);
  font-size: 0.75rem;
}

.modal-online-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--white);
}

.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rtp-high);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

.modal-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--mute);
  font-size: 0.78rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 82, 82, 0.25);
  color: #fff;
}

/* Modal game header */
.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-game-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.modal-game-info {
  flex: 1;
  min-width: 0;
}

.modal-game-info h3 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.modal-provider {
  font-size: 0.72rem;
  color: var(--gold);
  display: block;
  margin-bottom: 7px;
}

.modal-rtp-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.modal-rtp-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.modal-rtp-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rtp-high);
}

.modal-rtp-val.medium {
  color: var(--rtp-medium);
}
.modal-rtp-val.low {
  color: var(--rtp-low);
}

/* Modal sections */
.modal-section {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-section-last {
  border-bottom: none;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.jam-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 0.78rem;
  color: var(--white);
}

.jam-row span:first-child {
  color: var(--white);
  font-size: 0.72rem;
}

.jam-row span:last-child {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--white);
}

/* Pola pills in modal */
.pola-pills {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pola-pill {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--white);
  text-align: left;
  cursor: default;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.pola-pill:hover {
  border-color: rgba(240, 192, 64, 0.35);
  background: rgba(240, 192, 64, 0.05);
}

/* Spin settings */
.settings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.settings-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  font-size: 0.8rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-list li:last-child {
  border-bottom: none;
}

.settings-list li i {
  color: var(--gold);
  font-size: 0.74rem;
  flex-shrink: 0;
}

.toggle-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 14px;
}

.toggle-badge.on {
  background: rgba(0, 230, 118, 0.14);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.32);
}
.toggle-badge.off {
  background: rgba(255, 82, 82, 0.12);
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.28);
}

/* Modal footer */
.modal-footer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.modal-footer .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.76rem;
}

/* ===== LOAD MORE ===== */
.load-more-wrapper {
  text-align: center;
  margin-top: 30px;
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 50px 20px;
  color: var(--grey-500);
}

.no-results i {
  font-size: 2.5rem;
  margin-bottom: 14px;
  color: var(--grey-600);
}

.no-results p {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--grey-400);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-2);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--gold);
  font-size: 0.9rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card-3);
  border-top: 1px solid var(--border);
  padding: 36px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--grey-400);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.74rem;
  color: var(--mute);
}

.footer-bottom a {
  color: var(--gold);
}

/* ===== LIVECHAT BUTTON ===== */
.livechat-btn {
  position: fixed;
  bottom: 28px;
  left: 24px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.3rem;
  z-index: 998;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: var(--transition-normal);
}

.livechat-btn:hover {
  transform: scale(1.08);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-card-3);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card-2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 192, 64, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(14, 15, 19, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    padding: 10px 14px;
  }

  .hamburger {
    display: flex;
  }

  .btn-nav-outline,
  .btn-nav-gold {
    display: none;
  }

  .nav-mobile-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }

  .btn-mobile-login,
  .btn-mobile-daftar {
    padding: 6px 14px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: none;
    white-space: nowrap;
    transition: var(--transition-fast);
  }

  .btn-mobile-login {
    background: var(--gold);
    color: var(--grey-600);
  }

  .btn-mobile-daftar {
    background: var(--red);
    color: var(--white);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }

  .games-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .games-search-row {
    width: 100%;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .games-grid,
  #gamesLoading {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .skeleton-card {
    height: 270px;
  }

  .game-card-body {
    padding: 9px 8px 8px;
  }

  .game-card-actions .btn {
    padding: 7px 6px;
    font-size: 0.63rem;
  }

  .modal-content {
    max-width: 100%;
  }

  .games-grid.list-view .game-card {
    grid-template-columns: 130px 1fr;
  }

  .results-info {
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-controls {
    flex-wrap: wrap;
  }

  .filter-select {
    flex: 1;
    min-width: 120px;
  }

  .back-to-top {
    bottom: 20px;
    right: 18px;
    width: 38px;
    height: 38px;
  }

  .livechat-btn {
    bottom: 20px;
    left: 18px;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .games-grid,
  #gamesLoading {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .game-name {
    font-size: 0.74rem;
  }

  .modal-content {
    border-radius: var(--radius);
  }
}

@media (max-width: 360px) {
  .games-grid,
  #gamesLoading {
    grid-template-columns: 1fr;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .back-to-top,
  .livechat-btn,
  .modal-overlay {
    display: none !important;
  }
}

/* ===== PROFESSIONAL GAME DETAIL MODAL V3.7 ===== */
.modal-overlay {
  background: rgba(3, 8, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

.modal-content {
  width: min(100%, 480px);
  max-width: 480px;
  max-height: min(90vh, 760px);
  background: linear-gradient(180deg, #101b32 0%, #091426 100%);
  border: 1px solid rgba(123, 151, 202, 0.24);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0,0,0,.52), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow-x: hidden;
}

.modal-topbar {
  min-height: 58px;
  padding: 12px 16px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(123,151,202,.18);
}

.modal-topbar-left { gap: 9px; }
.modal-badge-promo {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 194, 61, .12);
  border-color: rgba(255, 194, 61, .28);
  color: #ffc94d;
}
.modal-online-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(49, 211, 145, .08);
  border: 1px solid rgba(49,211,145,.18);
  color: #a9f5d5;
}
.modal-dot-sep { display:none; }
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(123,151,202,.2);
  background: rgba(255,255,255,.055);
  color: #aebbd3;
}
.modal-close:hover { background: rgba(255,82,110,.12); border-color: rgba(255,82,110,.3); color:#ff718c; }

.modal-header {
  gap: 15px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255,194,61,.055), rgba(57,92,154,.035));
  border-bottom-color: rgba(123,151,202,.16);
}
.modal-game-img {
  width: 82px;
  height: 82px;
  border-radius: 13px;
  border: 1px solid rgba(255,194,61,.25);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
}
.modal-game-info h3 { font-size: 1.05rem; line-height:1.3; margin-bottom:5px; }
.modal-provider { color:#aebbd3; font-size:.75rem; margin-bottom:10px; }
.modal-rtp-row { gap:8px; }
.modal-rtp-label {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(49,211,145,.1);
  color:#7ee8bb;
}
.modal-rtp-val { font-size:1rem; }

.modal-section { padding: 16px 18px; border-bottom-color: rgba(123,151,202,.14); }
.modal-section-title {
  margin-bottom: 12px;
  text-align:left;
  letter-spacing:.8px;
  font-family:var(--font-body);
  font-size:.7rem;
  color:#8fa1c0;
}
.jam-row {
  padding: 9px 11px;
  margin-top:6px;
  border:1px solid rgba(123,151,202,.13);
  border-radius:9px;
  background:rgba(255,255,255,.025);
}
.jam-row span:first-child { color:#8fa1c0; }
.jam-row span:last-child { color:#e9eef8; font-weight:600; }
.pola-pills { gap:8px; }
.pola-pill {
  padding: 10px 12px;
  border-radius:9px;
  border-color:rgba(123,151,202,.16);
  background:rgba(255,255,255,.025);
}
.pola-pill:hover { border-color:rgba(255,194,61,.35); background:rgba(255,194,61,.06); }
.settings-list li { padding:10px 4px; border-bottom-color:rgba(123,151,202,.1); }
.toggle-badge { padding:4px 9px; }

.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 14px 18px 16px;
  background: rgba(9,20,38,.96);
  backdrop-filter: blur(10px);
  border-top-color: rgba(123,151,202,.18);
}
.modal-footer .btn {
  min-height: 44px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.modal-footer .btn-red,
.modal-footer .btn-primary {
  background: linear-gradient(135deg, #f4bd3f, #d99b1d);
  border-color: rgba(255,211,103,.35);
  color:#111827;
}
.modal-footer .btn-red:hover,
.modal-footer .btn-primary:hover { filter:brightness(1.06); transform:translateY(-1px); }

@media (max-width: 520px) {
  .modal-overlay { padding: 12px; align-items:flex-end; }
  .modal-content { max-width:none; width:100%; max-height:92vh; border-radius:18px 18px 12px 12px; }
  .modal-header { padding:15px; }
  .modal-game-img { width:72px; height:72px; }
  .modal-section { padding:14px 15px; }
  .modal-footer { padding:12px 15px 14px; }
}
