.spin-wheel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.spin-wheel-overlay.active {
  display: flex;
}

body.spin-wheel-open {
  overflow: hidden;
}

.spin-wheel-container {
  background: #fff;
  border-radius: 20px;
  padding: 20px 25px;
  max-width: 400px;
  width: 100%;
  max-height: 95vh;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.spin-wheel-content {
  overflow: hidden auto;
  max-height: calc(95vh - 40px);
  padding-right: 5px;
}

.spin-wheel-content::-webkit-scrollbar {
  width: 6px;
}

.spin-wheel-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.spin-wheel-content::-webkit-scrollbar-thumb {
  background: #4fc3f7;
  border-radius: 10px;
}

.spin-wheel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 0, 0, 0.89);
  border: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 28px;
  height: 28px;
  color: #fff;
  z-index: 10;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  letter-spacing: -0.5px;
  backdrop-filter: blur(10px);
}

.spin-wheel-close:hover {
  background: rgb(255, 70, 70);
  transform: scale(1.08);
}

.spin-wheel-canvas-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.spin-wheel-canvas {
  width: 100%;
  height: 100%;
}

.spin-wheel-pin {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 35px solid #e63946;
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.spin-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid #e0e0e0;
}

.spin-wheel-logo {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.spin-wheel-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #333;
  flex-shrink: 0;
}

.spin-wheel-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.spin-wheel-input-group {
  text-align: left;
}

.spin-wheel-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.spin-wheel-phone,
.spin-wheel-name,
.spin-wheel-birth {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.spin-wheel-phone:focus,
.spin-wheel-name:focus,
.spin-wheel-birth:focus {
  outline: none;
  border-color: #4fc3f7;
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.spin-wheel-phone.error,
.spin-wheel-name.error,
.spin-wheel-birth.error {
  border-color: #e74c3c;
  background-color: #fff5f5;
}

.spin-wheel-error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.spin-wheel-error-message.show {
  display: block;
}

.spin-wheel-phone-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.spin-wheel-phone-prefix {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.spin-wheel-phone {
  flex: 1 1 0%;
  min-width: 0;
}

.spin-wheel-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 12px;
  color: #666;
}

.spin-wheel-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.spin-wheel-submit {
  background: #4fc3f7;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
}

.spin-wheel-submit:hover {
  background: #29b6f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 195, 247, 0.4);
}

.spin-wheel-result {
  display: none;
  text-align: center;
  flex-shrink: 0;
}

.spin-wheel-result.active {
  display: block;
}

.spin-wheel-result h3 {
  font-size: 22px;
  color: #4fc3f7;
  margin: 0 0 12px;
}

.spin-wheel-result p {
  font-size: 16px;
  margin: 0 0 12px;
}

.spin-wheel-copy-code {
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}

.spin-wheel-copy-code:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.spin-wheel-try-again {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  display: none;
  transition: 0.3s;
}

@media (max-width: 480px) {
  .spin-wheel-overlay {
    padding: 10px;
  }

  .spin-wheel-container {
    padding: 20px;
    max-height: 98vh;
  }

  .spin-wheel-content {
    max-height: calc(98vh - 30px);
  }

  .spin-wheel-canvas-wrapper {
    width: 240px;
    height: 240px;
    margin-bottom: 15px;
  }

  .spin-wheel-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .spin-wheel-form {
    gap: 10px;
  }
}
