/* --- RESET & FONTS --- */
* {
  box-sizing: border-box;
}

body, html {
  /* Background dengan gambar dan fallback gradient */
  background-image: url('../img/background.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  background-color: #000000 !important; /* Fallback color jika gambar gagal load */
  
  color: #000000;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* --- PLAY BUTTON STYLES --- */
.play-now-btn {
  font-family: 'Winky Rough', 'Arial Black', Arial, Helvetica, sans-serif !important;
  font-weight: bold !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
  position: relative;
  overflow: hidden;
}

.play-now-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;
}

.play-now-btn:hover::before {
  left: 100%;
}

.play-now-btn:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7) !important;
}

img {
  max-width: 100%;
  border-radius: 5px;
}

#bodywrapper {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- PROVIDER BAR --- */
.provider, .jamgacor, .pola, .provider a, .provider a h5 {
  font-family: 'Winky Rough', Arial, Helvetica, sans-serif;
}
.provider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: #181818;
  padding: 16px 0;
  border-radius: 12px;
  margin: 20px auto 48px auto;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}
.provider a {
  width: 150px;
  height: 180px;
  min-width: 150px;
  max-width: 150px;
  min-height: 180px;
  max-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 10px;
  margin: 0 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid #222;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.provider a:hover, .provider a:focus {
  background-color: #840196;
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.25),
    0 0 20px rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}
.provider a h5 {
  margin: 8px 0 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px #000;
}
.provider a img {
  width: 100px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 8px;
  opacity: 0;
  transform: scale(0.8);
  -webkit-transform: scale(0.8);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  -webkit-transition: opacity 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.provider a img.loaded {
  opacity: 1;
  transform: scale(1);
  -webkit-transform: scale(1);
}

/* Efek cahaya sederhana */
.light-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: lightSweep 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes lightSweep {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* --- SLOT CARD --- */
.wrapslot {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px;
  justify-content: flex-start;
  background-color: #0d0d0d;
}

@media (max-width: 900px) {
  .wrapslot {
    width: 660px;
  }
}

@media (max-width: 600px) {
  .wrapslot {
    width: 320px;
    gap: 8px;
    padding: 4px;
  }
}
.card {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 0 0 calc((100% - 5 * 16px) / 6);
  box-sizing: border-box;
  height: 100%;
  min-height: 320px;
  max-width: 150px;
}
.namagame {
  font-family: 'Montserrat', Arial, sans-serif;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.4em;
  max-height: 2.4em;
  position: relative;
  background: linear-gradient(90deg, #fff 0%, #fffb00 40%, #ffffff 60%, #fffb00 100%);
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 2s linear infinite;
  white-space: normal;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  width: 100%;
  max-width: 100%;
}
@keyframes shine {
  to { background-position: 200% center; }
}

@media (max-width: 900px) {
  .namagame {
    font-size: 13px;
    min-height: 2.4em;
    max-height: 2.4em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

@media (max-width: 600px) {
  .namagame {
    font-size: 12px;
    min-height: 2.4em;
    max-height: 2.4em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* --- JAM GACOR & POLA --- */
.contentcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
}
.d-grid.jam {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}
.jamgacor, .pola {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.jamgacor {
  border-radius: 6px 6px 0 0;
  border: 0.1px solid #ffffff;
  background-color: #0d7bbb;
  color: #fff;
  margin-bottom: 0;
  padding: 4px 0;
}
.jamgacor h5:first-child {
  font-size: 13px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
}
.jamgacorRange {
  color: #ffe600;
  font-size: 15px;
  font-weight: bold;
  margin: 2px 0 0 0;
  letter-spacing: 0.5px;
}
.pola {
  border-radius: 0 0 12px 12px;
  border: 0.1px solid #000;
  background-color: #079737;
  color: #fff;
  margin-top: 0;
  height: 100px;
}
.pola h5 {
  font-size: 13px;
  color: #fff;
  font-weight: bold;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pola1, .pola2, .pola3 {
  color: #fff;
  font-size: 13px;
  margin: 0;
  font-weight: normal;
  letter-spacing: 0.5px;
}

/* --- PERCENT BAR --- */
.percent {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  background: none;
}
.percent {
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  border-radius: 18px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.percent-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 18px;
  z-index: 1;
  transition: width 0.6s ease;
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  from { background-position: 1rem 0; }
  to { background-position: 0 0; }
}
.percent-txt {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  font-family: 'Winky Rough', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #000;
  font-size: 16px;
  background: none;
  pointer-events: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.blue { background-color: #0d7bbb; }
.gray { background-color: #5a5959; }

/* --- SLIDER & RUNNING TEXT --- */
.slider-wrapper {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 12px;
  margin: 20px auto;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.running-text {
  background: linear-gradient(90deg, #e9a40e, #7203b3, #feca57, #3e0266);
  padding: 12px 20px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.clock-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  min-width: 120px;
  justify-content: center;
}

.clock-label {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.clock-time {
  font-size: 14px;
  font-weight: 700;
  color: #feca57;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.running-text marquee {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive untuk clock */
@media (max-width: 768px) {
  .running-text {
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
  }
  
  .clock-container {
    min-width: 100px;
    padding: 4px 8px;
  }
  
  .clock-label {
    font-size: 11px;
  }
  
  .clock-time {
    font-size: 12px;
  }
  
  .running-text marquee {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .running-text {
    padding: 8px 12px;
  }
  
  .clock-container {
    min-width: 90px;
    padding: 3px 6px;
  }
  
  .clock-label {
    font-size: 10px;
  }
  
  .clock-time {
    font-size: 11px;
  }
  
  .running-text marquee {
    font-size: 11px;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  #bodywrapper {
    padding: 0 15px;
    max-width: 100%;
  }
  
  .provider {
    gap: 12px;
    padding: 12px 0;
    margin: 20px auto 48px auto;
    justify-content: center;
    align-items: center;
  }
  
  .provider a {
    width: 120px;
    height: 140px;
    min-width: 120px;
    max-width: 120px;
    min-height: 140px;
    max-height: 140px;
    margin: 0 6px;
  }
  
  .provider a img {
    width: 70px;
    height: 48px;
    margin-bottom: 6px;
  }
  
  .provider a h5 {
    font-size: 15px;
  }
  
  .card {
    min-height: 220px;
    max-width: 120px;
  }
  
  .wrapslot {
    gap: 8px;
    padding: 4px;
    justify-content: center;
    align-items: center;
  }
  
  .jamgacor h5:first-child,
  .pola h5 {
    font-size: 12px;
  }
  
  .jamgacorRange {
    font-size: 13px;
  }
  
  .pola1, .pola2, .pola3 {
    font-size: 12px;
  }
}

/* DateTime Container Styles */
.datetime-container {
  background: linear-gradient(135deg, #f0d807 0%, #590569 100%);
  padding: 12px 20px;
  margin: 0 auto;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.datetime-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.datetime-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.date-display, .time-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.date-display:hover, .time-display:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.date-label, .time-label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

#wib-date, #wib-time {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  min-width: 80px;
  text-align: center;
}

#wib-time {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
  animation: pulse 2s infinite;
}

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

/* Responsive untuk tablet */
@media (max-width: 768px) {
  .datetime-container {
    padding: 10px 15px;
    border-radius: 0 0 12px 12px;
  }
  
  .datetime-wrapper {
    gap: 20px;
  }
  
  .date-display, .time-display {
    padding: 6px 12px;
    gap: 6px;
  }
  
  .date-label, .time-label {
    font-size: 13px;
  }
  
  #wib-date, #wib-time {
    font-size: 14px;
    min-width: 70px;
  }
}

/* Responsive untuk mobile */
@media (max-width: 480px) {
  .datetime-container {
    padding: 8px 12px;
    border-radius: 0 0 10px 10px;
  }
  
  .datetime-wrapper {
    gap: 15px;
    flex-direction: column;
  }
  
  .date-display, .time-display {
    padding: 5px 10px;
    gap: 5px;
    width: 100%;
    justify-content: center;
  }
  
  .date-label, .time-label {
    font-size: 12px;
  }
  
  #wib-date, #wib-time {
    font-size: 13px;
    min-width: 60px;
  }
}

/* Responsive untuk mobile landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .datetime-wrapper {
    flex-direction: row;
    gap: 15px;
  }
  
  .date-display, .time-display {
    width: auto;
  }
}

@media (max-width: 600px) {
  #bodywrapper {
    padding: 0 5px;
    max-width: 100%;
  }
  
  .provider {
    gap: 8px;
    padding: 8px 4px;
    margin: 10px auto 24px auto;
    justify-content: center;
    align-items: center;
  }
  
  .provider a {
    width: calc(50% - 8px);
    min-width: 120px;
    max-width: 150px;
    height: 100px;
    min-height: 100px;
    max-height: 120px;
    margin: 0 4px 8px 4px;
    padding: 4px 0 0 0;
    box-sizing: border-box;
  }
  
  .provider a img {
    width: 40px;
    height: 32px;
    margin-bottom: 4px;
  }
  
  .provider a h5 {
    font-size: 13px;
    margin: 4px 0 0 0;
  }
  
  .wrapslot {
    gap: 8px;
    padding: 8px 4px;
    justify-content: center;
    align-items: center;
  }
  
  .card {
    min-height: 100px;
    max-width: calc(33.333% - 8px);
    flex: 0 0 calc(33.333% - 8px);
    margin: 0;
  }
  
  .jamgacor h5:first-child,
  .pola h5 {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  
  .jamgacorRange {
    font-size: 11px;
    margin: 1px 0 0 0;
  }
  
  .pola1, .pola2, .pola3 {
    font-size: 11px;
  }
}

/* Tablet specific fixes */
@media (min-width: 601px) and (max-width: 900px) {
  #bodywrapper {
    padding: 0 20px;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .provider {
    gap: 15px;
    padding: 15px 0;
    margin: 20px auto 48px auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .provider a {
    width: 130px;
    height: 150px;
    min-width: 130px;
    max-width: 130px;
    min-height: 150px;
    max-height: 150px;
    margin: 0 8px;
  }
  
  .wrapslot {
    gap: 12px;
    padding: 8px;
    justify-content: center;
    align-items: center;
  }
  
  .card {
    min-height: 240px;
    max-width: 130px;
    flex: 0 0 calc((100% - 5 * 12px) / 6);
  }
}

/* LOADING SPINNER */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.loading-spinner {
    text-align: center;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ad46dd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.spinner-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Responsive loading spinner */
@media (max-width: 768px) {
    .spinner-ring {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .spinner-text {
        font-size: 14px;
    }
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ad46dd, #6c12e2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
    /* Optimasi performa */
    will-change: transform;
    transform: translateZ(0);
}
.back-to-top:hover {
    background: linear-gradient(135deg, #e2b900, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.2s ease;
    /* Optimasi performa */
    will-change: transform, opacity;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.fixed-contact {
  position: fixed;
  left: 0;
  bottom: 30px;
  width: 120px;
  padding: 15px 10px 15px 20px;
  background: rgba(0,0,0,0.85);
  border-radius: 10px;
  border: 3px solid #2a0274;
  box-shadow: 0 0 12px 2px #2a0274;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  transition: left 0.3s;
}
.fixed-contact.hide {
  left: -110px;
}
.fixed-contact a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  transition: transform 0.2s;
}
.fixed-contact a:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}
.fixed-contact img {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 8px;
  box-shadow: 0 0 8px 2px#5d49a5;
}
.fixed-contact-arrow {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  background: #2a0274;
  width: 25px;
  height: 50px;
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 0 8px 2px #2a0274;
}
.fixed-contact.hide .fixed-contact-arrow span {
  transform: rotate(360deg);
}
.fixed-contact-arrow span {
  display: block;
  font-size: 24px;
  color: #fff;
  user-select: none;
  transition: transform 0.3s;
}
.livechat-font {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 700;
}

/* --- ANIMASI FADE IN UNTUK GAMBAR --- */
.imgslot {
  opacity: 0;
  transform: translateY(20px);
  -webkit-transform: translateY(20px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  -webkit-transition: opacity 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.imgslot.fade-in {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
}

/* Animasi fade in untuk card */
.card {
  opacity: 0;
  transform: translateY(30px);
  -webkit-transform: translateY(30px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  -webkit-transition: opacity 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card.fade-in {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
}

/* Animasi stagger untuk multiple cards */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }
.card:nth-child(5) { transition-delay: 0.5s; }
.card:nth-child(6) { transition-delay: 0.6s; }
.card:nth-child(7) { transition-delay: 0.7s; }
.card:nth-child(8) { transition-delay: 0.8s; }
.card:nth-child(9) { transition-delay: 0.9s; }
.card:nth-child(10) { transition-delay: 1.0s; }
.card:nth-child(11) { transition-delay: 1.1s; }
.card:nth-child(12) { transition-delay: 1.2s; }

/* Hover effect untuk gambar */
.imgslot:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

/* Fallback untuk browser yang tidak mendukung will-change */
@supports not (will-change: opacity) {
  .imgslot, .card, .provider a img {
    will-change: auto;
  }
}

/* Optimasi untuk mobile devices */
@media (max-width: 768px) {
  .imgslot, .card {
    transition-duration: 0.4s;
  }
  
  .provider a img {
    transition-duration: 0.3s;
  }
  
  /* Reduce motion untuk user yang preferensi reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .imgslot, .card, .provider a img {
      transition: none;
      animation: none;
    }
  }
}

/* Reduce motion untuk accessibility */
@media (prefers-reduced-motion: reduce) {
  .imgslot, .card, .provider a img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    -webkit-transform: none !important;
  }
}

/* Fallback untuk browser lama */
@supports not (transition: opacity 0.6s ease-in-out) {
  .imgslot, .card, .provider a img {
    opacity: 1;
    transform: none;
    -webkit-transform: none;
  }
}

/* Optimasi untuk performa */
.imgslot, .card, .provider a img {
  contain: layout style paint;
}

/* Smooth scrolling untuk seluruh halaman */
html {
  scroll-behavior: smooth;
}

/* Optimasi untuk GPU acceleration */
.imgslot, .card {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Optimasi untuk provider images */
.provider a img {
  transform: translateZ(0) scale(0.8);
  -webkit-transform: translateZ(0) scale(0.8);
}

.provider a img.loaded {
  transform: translateZ(0) scale(1);
  -webkit-transform: translateZ(0) scale(1);
}

/* Efek parallax ringan untuk gambar */
.imgslot {
  transform-style: preserve-3d;
  perspective: 1000px;
  -webkit-transform-style: preserve-3d;
  -webkit-perspective: 1000px;
}

.imgslot:hover {
  transform: scale(1.05) rotateY(2deg);
  -webkit-transform: scale(1.05) rotateY(2deg);
  transition: transform 0.3s ease-in-out;
}

/* Animasi pulse untuk loading state */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.imgslot.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Loading state untuk gambar dengan shimmer effect */
.imgslot.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}