/* All class selectors are now prefixed with d1- for diamond spinner isolation */

/* Use unified overlay system - remove custom width/centering */
/* The unified overlay system in popup-overlays.css handles the base styling */

/* Main content container */
.diamond-spin-content {
  background: transparent;
  border-radius: 20px;
  padding: 30px 20px;
  width: 100%;
  text-align: center;
}

.diamond-spin-content h2 {
  color: #fbbf24;
  font-size: 2.2em;
  margin: 0 0 10px 0;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.diamond-spin-content p {
  color: #e5e7eb;
  font-size: 1.1em;
  margin: 0 0 25px 0;
  opacity: 0.9;
}

/* Buy Spins Section */
.d1-buy-spins-section {
  margin: 35px 0 20px 0;
  position: relative;
  z-index: 2;
}
  
.d1-buy-spins-section h3 {
  color: #fbbf24;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.6em;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
  background: linear-gradient(45deg, #7c3aed, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
  
.d1-spin-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}
  
.d1-spin-package {
  background: linear-gradient(145deg, rgba(45, 30, 90, 0.8), rgba(26, 26, 46, 0.8));
  border: 2px solid #7c3aed;
  border-radius: 18px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  backdrop-filter: blur(5px);
  margin-top: 20px;
}

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

.d1-spin-package:hover::before {
  left: 100%;
}
  
.d1-spin-package:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
  border-color: #3b82f6;
}
  
.d1-spin-package.featured {
  border-color: #fbbf24;
  background: linear-gradient(145deg, rgba(45, 30, 90, 0.9), rgba(26, 26, 46, 0.9));
  position: relative;
  transform: scale(1.05);
}

.d1-spin-package.featured::after {
  content: '★ MOST POPULAR ★';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: bold;
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  z-index: 10;
  white-space: nowrap;
}
  
.d1-spin-package.featured:hover {
  border-color: #f59e0b;
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4);
  transform: translateY(-8px) scale(1.07);
}
  
.d1-package-icon {
  font-size: 2.8em;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 12px gold);
  animation: pulseLogo 3s ease-in-out infinite;
  display: block;
  text-align: center;
}
  
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px gold); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 20px gold); }
}
  
.d1-spin-package h4 {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 1.3em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  font-weight: 600;
}
  
.d1-price {
  color: #fbbf24;
  font-size: 1.6em;
  font-weight: bold;
  margin: 0 0 8px 0;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}
  
.d1-savings {
  color: #4ade80;
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 0 20px 0;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}
  
.d1-buy-btn {
  background: linear-gradient(145deg, #7c3aed, #6d28d9);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.d1-buy-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;
}
  
.d1-buy-btn:hover::before {
  left: 100%;
}
  
.d1-buy-btn:hover {
  background: linear-gradient(145deg, #6d28d9, #5b21b6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}
  
.d1-buy-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.d1-buy-btn:disabled {
  background: linear-gradient(145deg, #6b7280, #4b5563);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

/* Spin Wheel Styles - Centered */
.d1-spin-wheel-container {
  margin: 35px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 2;
}
  
.d1-spin-counter {
  font-family: 'Arial', sans-serif;
  font-size: 1.6rem;
  color: #FFD700;
  margin: 25px 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  padding: 18px 30px;
  display: inline-block;
  text-align: center;
  min-width: 220px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.d1-spin-counter:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.3);
}

.d1-spin-counter h3 {
  margin: 0;
  font-size: 1em;
  color: #e5e7eb;
  font-weight: 500;
}

.d1-spin-counter span {
  font-weight: bold;
  font-size: 1.2em;
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}
  
.d1-wheel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
  width: 100%;
}
  
#d1-spin-wheel-canvas {
  border-radius: 50%;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 0 4px #7c3aed,
    0 0 0 8px rgba(124, 58, 237, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  margin: 25px auto;
}

#d1-spin-wheel-canvas:hover {
  transform: scale(1.03);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 0 4px #3b82f6,
    0 0 0 8px rgba(59, 130, 246, 0.3);
}
  
/* Spin Button */
.d1-spin-btn {
  font-family: 'Arial', sans-serif;
  font-size: 1.6rem;
  color: white;
  background: linear-gradient(145deg, #7c3aed, #6d28d9);
  border: none;
  border-radius: 30px;
  padding: 18px 45px;
  margin-top: 25px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.d1-spin-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.6s ease;
}

.d1-spin-btn:hover::before {
  left: 100%;
}
  
.d1-spin-btn:hover {
  background: linear-gradient(145deg, #6d28d9, #5b21b6);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}
  
.d1-spin-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}
  
.d1-spin-btn:disabled {
  background: linear-gradient(145deg, #6b7280, #4b5563);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
  border-color: rgba(107, 114, 128, 0.3);
}
  
.d1-wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}
  
.d1-spin-result {
  margin: 25px 0;
  padding: 20px;
  background: transparent;
  border: none;
  border-radius: 15px;
  color: #FFD700;
  font-size: 1.4em;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.d1-spin-result.show {
  opacity: 1;
  transform: scale(1);
}
  
@keyframes resultBounce {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
  
.d1-win-history {
  margin: 30px 0 20px 0;
  padding: 20px;
  background: linear-gradient(145deg, rgba(45, 30, 90, 0.3), rgba(26, 26, 46, 0.3));
  border-radius: 15px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(5px);
}
  
.d1-win-history h4 {
  color: #fbbf24;
  margin: 0 0 15px 0;
  font-size: 1.3em;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
  
.d1-win-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}
  
.d1-win-history-item {
  background: linear-gradient(145deg, rgba(74, 222, 128, 0.1), rgba(34, 197, 94, 0.1));
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 10px;
  padding: 10px 15px;
  color: #4ade80;
  font-weight: 500;
  text-align: center;
  animation: historySlideIn 0.5s ease-out;
  backdrop-filter: blur(3px);
}
  
@keyframes historySlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading state styling */
.d1-spin-counter.loading span {
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .diamond-spin-content h2 {
    font-size: 1.8em;
  }
  
  .d1-spin-packages {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .d1-spin-package {
    padding: 20px 15px;
  }
  
  .d1-package-icon {
    font-size: 2.4em;
  }
  
  .d1-spin-package h4 {
    font-size: 1.1em;
  }
  
  .d1-price {
    font-size: 1.4em;
  }
  
  #d1-spin-wheel-canvas {
    width: 280px;
    height: 280px;
  }
  
  .d1-spin-counter {
    font-size: 1.4rem;
    padding: 15px 25px;
    min-width: 200px;
  }
  
  .d1-spin-result {
    font-size: 1.2em;
    padding: 15px;
  }
  
  .d1-win-history {
    margin: 25px 0 15px 0;
    padding: 15px;
  }
  
  .d1-win-history h4 {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .diamond-spin-content h2 {
    font-size: 1.6em;
  }
  
  .d1-spin-packages {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .d1-spin-package {
    padding: 18px 15px;
  }
  
  .d1-package-icon {
    font-size: 2.2em;
  }
  
  #d1-spin-wheel-canvas {
    width: 260px;
    height: 260px;
  }
  
  .d1-wheel-pointer {
    width: 36px;
    height: 36px;
  }
  
  .d1-spin-counter {
    font-size: 1.3rem;
    padding: 12px 20px;
    min-width: 180px;
  }
  
  .d1-win-history {
    margin: 20px 0 10px 0;
    padding: 12px;
  }
  
  .d1-win-history h4 {
    font-size: 1.1em;
  }
  
  .d1-buy-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .d1-spin-btn {
    padding: 15px 35px;
    font-size: 1.4rem;
  }
} 