/* ============================================
   CSS Variables (dapat di-override dari database)
   ============================================ */
:root {
  /* Primary Colors - Gold Theme */
  --color-primary: #FFD700;
  --color-primary-dark: #B8860B;
  --color-primary-light: #FFF8DC;
  
  /* Secondary Colors - Red */
  --color-secondary: #DC2626;
  --color-secondary-dark: #991B1B;
  
  /* Accent Colors - Blue */
  --color-accent: #3B82F6;
  --color-accent-dark: #1D4ED8;
  
  /* Background */
  --color-bg-dark: #0A0A0A;
  --color-bg-card: #1A1A1A;
  --color-bg-input: #2A2A2A;
  
  /* Text */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #9CA3AF;
  --color-text-muted: #6B7280;
}

/* ============================================
   Base Styles
   ============================================ */
body {
  background-color: var(--color-bg-dark);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  transition: color 0.2s ease;
}

input, select, textarea {
  background-color: #1A1A1A;
  border: 1px solid #3A3A3A;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: #fff;
}

input::placeholder, textarea::placeholder {
  color: #6B7280;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(to right, #FFD700, #B8860B);
  color: #0A0A0A;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: linear-gradient(to right, #DC2626, #991B1B);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-accent {
  background: linear-gradient(to right, #3B82F6, #1D4ED8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-accent:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #0A0A0A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}

.btn-ghost {
  background: transparent;
  color: #9CA3AF;
}

.btn-ghost:hover {
  color: #fff;
  background: #1A1A1A;
}

/* ============================================
   Card Styles
   ============================================ */
.card {
  background-color: #1A1A1A;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #3A3A3A;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: rgba(255, 215, 0, 0.2);
}

.card-gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(184, 134, 11, 0.1));
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 24px rgba(255, 215, 0, 0.1);
}

.card-gold:hover {
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

.card-glass {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   Form Styles
   ============================================ */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #D1D5DB;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background-color: #1A1A1A;
  border: 1px solid #3A3A3A;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* ============================================
   Navigation Styles
   ============================================ */
.nav-link {
  padding: 0.5rem 1rem;
  color: #D1D5DB;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================
   Game Card Styles
   ============================================ */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.game-card img {
  width: 100%;
  height: auto;
}

.game-card .badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.25rem;
}

.game-card .badge-hot {
  background-color: #EF4444;
  color: #fff;
}

.game-card .badge-new {
  background-color: #22C55E;
  color: #fff;
}

/* ============================================
   Sidebar Styles
   ============================================ */
.sidebar-mobile {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 18rem;
  transform: translateX(-100%);
  z-index: 50;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 215, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-mobile.active {
  transform: translateX(0) !important;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 40;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #D1D5DB;
  border-radius: 0.5rem;
  margin: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  color: var(--color-primary);
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateX(4px);
}

.sidebar-link.active {
  color: var(--color-primary);
  background-color: rgba(255, 215, 0, 0.15);
  border-left: 3px solid var(--color-primary);
}

/* ============================================
   Bottom Navigation
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1A1A1A;
  border-top: 1px solid #3A3A3A;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 30;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: #9CA3AF;
  transition: color 0.2s ease;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
  color: var(--color-primary);
}

/* ============================================
   Spinner/Loader
   ============================================ */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 4px solid var(--color-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Alert Styles
   ============================================ */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-success {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.alert-warning {
  background-color: rgba(234, 179, 8, 0.2);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.5);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

/* ============================================
   Tab Styles
   ============================================ */
.tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.tab:not(.active) {
  background-color: #1A1A1A;
  color: #9CA3AF;
  border-color: #3A3A3A;
}

.tab:not(.active):hover {
  background-color: #2A2A2A;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tab.active {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

/* Deposit Tabs - Larger buttons with icons */
.deposit-tabs .tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  flex: 1;
  justify-content: center;
}

.deposit-tabs .tab img {
  transition: filter 0.2s ease;
}

.deposit-tabs .tab:not(.active) img {
  filter: brightness(0) invert(0.6);
}

.deposit-tabs .tab:hover img,
.deposit-tabs .tab.active img {
  filter: invert(76%) sepia(60%) saturate(500%) hue-rotate(6deg) brightness(104%) contrast(104%);
}

/* ============================================
   Quick Action Styles
   ============================================ */
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #3A3A3A;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  transform: scale(1.05);
}

/* ============================================
   Amount Button Styles
   ============================================ */
.amount-btn {
  padding: 0.5rem 0.75rem;
  background-color: #1A1A1A;
  border: 1px solid #3A3A3A;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #D1D5DB;
  transition: all 0.2s ease;
}

.amount-btn:hover, .amount-btn.active {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================
   Payment Method Styles
   ============================================ */
.payment-method-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #1A1A1A;
  border: 1px solid #3A3A3A;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: rgba(255, 215, 0, 0.5);
}

.payment-method-card.selected {
  border-color: var(--color-primary);
  background-color: rgba(255, 215, 0, 0.1);
}

.payment-method-card input[type="radio"] {
  display: none;
}

/* ============================================
   QRIS Container
   ============================================ */
.qris-container {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.qris-container img {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gold {
  color: var(--color-primary);
}

.bg-gold {
  background-color: var(--color-primary);
}

.border-gold {
  border-color: var(--color-primary);
}

.glow-gold {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-custom {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg-card);
}

.scrollbar-custom::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-custom::-webkit-scrollbar-track {
  background: var(--color-bg-card);
  border-radius: 3px;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes jackpot-counter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.jackpot-number {
  animation: jackpot-counter 0.5s ease-in-out infinite;
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Progress bar animation */
@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.animate-progress {
  animation: progress 2s ease-in-out infinite;
}

/* Skeleton shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.1) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

/* Slide up animation */
@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(10px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideUp {
  animation: slideUp 0.3s ease-out;
}

/* Loading state for buttons */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulse animation for status indicators */
.status-pulse {
  position: relative;
}

.status-pulse::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  animation: statusPulse 2s ease-out infinite;
}

@keyframes statusPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

/* Loading overlay transition */
.loading-overlay {
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Modern Visual Effects
   ============================================ */

/* Glass morphism effect */
.glass {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-primary {
  background: rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Gradient borders */
.gradient-border {
  position: relative;
  background: var(--color-bg-card);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}

/* Glow effects */
.glow-primary {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.glow-primary:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.glow-secondary {
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.glow-accent {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Text gradient */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-rainbow {
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ripple effect for buttons */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn-ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Card hover effects */
.card-interactive {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.4s ease;
}

.img-zoom:hover img {
  transform: scale(1.1);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Pulse glow animation */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Shine effect */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.shine:hover::before {
  left: 100%;
}

/* Focus ring */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Smooth transitions for all interactive elements */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scale on click */
.scale-click:active {
  transform: scale(0.97);
}

/* Badge animations */
.badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Gradient background animation */
.bg-gradient-animate {
  background: linear-gradient(-45deg, #1a1a1a, #2d2d2d, #1a1a1a, #2d2d2d);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Number counter animation */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* Stagger animation for lists */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: 6px 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 50;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: var(--color-bg-input);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Shake animation for error feedback */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

/* ============================================
   Article Content Styling
   ============================================ */
.article-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.article-content h4,
.article-content h5,
.article-content h6 {
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content h4 {
  font-size: 1.125rem;
}

.article-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}

.article-content li::marker {
  color: var(--color-primary);
}

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--color-primary-light);
}

.article-content strong,
.article-content b {
  color: #fff;
  font-weight: 600;
}

.article-content em,
.article-content i {
  font-style: italic;
  color: var(--color-text-secondary);
}

/* ============================================
   Popular Games Infinite Slider
   ============================================ */
.popular-slider-wrapper {
  position: relative;
  padding: 0 2rem;
}

.popular-slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.popular-game-item {
  flex-shrink: 0;
  padding: 0 6px;
}

/* Mobile: 3 items */
@media (max-width: 639px) {
  .popular-game-item {
    width: calc(100% / 3) !important;
  }
}

/* Tablet: 4 items */
@media (min-width: 640px) and (max-width: 1023px) {
  .popular-game-item {
    width: calc(100% / 4) !important;
  }
}

/* Desktop: 5 items */
@media (min-width: 1024px) {
  .popular-game-item {
    width: calc(100% / 5) !important;
  }
}

.popular-slider-nav {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.popular-slider-nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.popular-slider-nav.prev {
  left: 0;
}

.popular-slider-nav.next {
  right: 0;
}

/* Auto scroll animation */
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.popular-slider-track.auto-scroll {
  animation: infiniteScroll 30s linear infinite;
}

.popular-slider-track.auto-scroll:hover {
  animation-play-state: paused;
}
