#dd-spin-popup {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  background: linear-gradient(to bottom, #fff8fb, #ffe3ec);
  border: 3px solid #e91e63;
  border-radius: 12px;
  padding: 0;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 0.8s ease-in-out;
}

/* Close button */
#dd-close-popup {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  font-weight: bold;
  color: #e91e63;
  cursor: pointer;
  z-index: 10000;
}

/* Top section with graphic + message */
.dd-popup-top {
  background: url('https://copilot.microsoft.com/th/id/BCO.9cafc145-43d9-4efa-bcf9-2f2f88c83c95.png') no-repeat center top;
  background-size: cover;
  padding: 100px 20px 20px 20px;
  text-align: center;
  animation: pulse 2s infinite;
}

.dd-popup-top .dd-message {
  font-size: 16px;
  font-weight: bold;
  color: #2c2c2c;
  background: rgba(255,255,255,0.8);
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Bottom section with wheel */
.dd-popup-bottom {
  padding: 20px;
  text-align: center;
}

/* Wheel container */
.dd-wheel-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #e91e63;
  background-color: #fff;
}

/* Wheel segments */
.dd-wheel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform 4s cubic-bezier(0.33, 1, 0.68, 1);
}

.dd-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  background-color: #f8bbd0;
  color: #333;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 100% 100%;
}

/* Pointer */
.dd-pointer {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #e91e63;
  margin: 10px auto;
}

/* Email form */
.dd-email-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dd-email-form input[type="email"] {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.dd-email-form button {
  padding: 12px;
  background-color: #e91e63;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.dd-email-form button:hover {
  background-color: #d81b60;
}

.dd-thank-you {
  font-size: 18px;
  color: #4caf50;
  margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
