/* ==========================================================================
   Fortune Wheel Raffle Styling (varikozanet.pro)
   ========================================================================== */

/* Floating Left Trigger Button - Perfect Circle */
.vrk-wheel-trigger {
  position: fixed;
  left: 20px;
  bottom: 25%;
  z-index: 99990;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4ecde7 0%, #39a7c1 60%, #1e7d94 100%);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 10px 28px rgba(57, 167, 193, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  user-select: none;
}

.vrk-wheel-trigger:hover {
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 14px 36px rgba(57, 167, 193, 0.75), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.vrk-wheel-trigger-badge {
  position: absolute;
  top: -11px;
  background: linear-gradient(135deg, #FF2E63 0%, #D61A4C 100%);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  border: 1px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  animation: vrkPulseBadge 2s infinite ease-in-out;
}

.vrk-wheel-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.25));
}

.vrk-wheel-trigger-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid #39a7c1;
  opacity: 0.7;
  animation: vrkPulseRing 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

@keyframes vrkPulseRing {
  0% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(0.96); opacity: 0; }
}

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

@keyframes vrkPulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

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

/* Modal Overlay */
.vrk-wheel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vrk-wheel-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal Window */
.vrk-wheel-modal {
  position: relative;
  background: radial-gradient(circle at 20% 30%, #1a1a24 0%, #0d0d12 100%);
  border: 2px solid #D4AF37;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(212, 175, 55, 0.25);
  width: 100%;
  max-width: 920px;
  overflow: hidden;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vrk-wheel-overlay.is-open .vrk-wheel-modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.vrk-wheel-close {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #D4AF37;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.vrk-wheel-close:hover {
  background: #D4AF37;
  color: #000;
  transform: rotate(90deg);
}

/* Modal Body Layout */
.vrk-wheel-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 480px;
  padding: 30px;
  gap: 30px;
  box-sizing: border-box;
}

/* Left Column: Wheel */
.vrk-wheel-left {
  flex: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vrk-wheel-container {
  position: relative;
  width: 390px;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#vrk-wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.3), inset 0 0 15px rgba(0,0,0,0.8);
}

/* Pointer Arrow (At 3 o'clock position pointing LEFT into wheel) */
.vrk-wheel-pointer {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  z-index: 10;
  filter: drop-shadow(-4px 0 6px rgba(0,0,0,0.7));
}

/* Center Cap */
.vrk-wheel-center-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE600 0%, #D4AF37 55%, #7A5200 100%);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 2px 4px rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

/* Right Column: Content & Form */
.vrk-wheel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 15px;
}

.vrk-wheel-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px 0;
  background: linear-gradient(135deg, #FFFFFF 30%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.vrk-wheel-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #D4AF37;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.vrk-wheel-desc {
  font-size: 13.5px;
  color: #A0A0B0;
  line-height: 1.45;
  margin: 0 0 20px 0;
}

/* Form Controls */
.vrk-wheel-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 4px 12px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.vrk-wheel-input-group:focus-within {
  border-color: #FFD700;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.vrk-wheel-flag-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #E0E0E0;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  user-select: none;
}

.vrk-wheel-phone {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 10px;
  letter-spacing: 0.5px;
}

.vrk-wheel-phone::placeholder {
  color: #666;
  font-weight: 400;
}

/* Checkbox */
.vrk-wheel-checkbox-group {
  margin-bottom: 18px;
}

.vrk-wheel-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: #888899;
  cursor: pointer;
  line-height: 1.35;
}

.vrk-wheel-checkbox-label input[type="checkbox"] {
  accent-color: #D4AF37;
  margin-top: 2px;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Error message */
.vrk-wheel-error {
  color: #FF4D4D;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
  display: none;
}

/* Spin Button */
.vrk-wheel-spin-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFE600 0%, #D4AF37 50%, #996515 100%);
  color: #0d0d12;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
}

.vrk-wheel-spin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
  filter: brightness(1.08);
}

.vrk-wheel-spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Result State */
.vrk-wheel-congratulation-icon {
  font-size: 44px;
  margin-bottom: 8px;
}

.vrk-wheel-prize-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 230, 0, 0.05) 100%);
  border: 1.5px solid #FFD700;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 15px 0;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.vrk-wheel-prize-text {
  font-size: 20px;
  font-weight: 800;
  color: #FFD700;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.vrk-wheel-desc-success {
  color: #D0D0E0;
  font-size: 14px;
}

.vrk-wheel-note {
  font-size: 11px;
  color: #777788;
  margin-top: 15px;
  font-style: italic;
}

/* Responsive styles */
@media (max-width: 820px) {
  .vrk-wheel-body {
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
  }
  
  .vrk-wheel-container {
    width: 300px;
    height: 300px;
  }
  
  .vrk-wheel-right {
    padding-right: 0;
    width: 100%;
    text-align: center;
  }
  
  .vrk-wheel-title {
    font-size: 24px;
  }

  .vrk-wheel-pointer {
    right: -8px;
  }
}

@media (max-width: 480px) {
  .vrk-wheel-trigger {
    left: 12px;
    bottom: 20%;
    width: 58px;
    height: 58px;
  }

  .vrk-wheel-container {
    width: 250px;
    height: 250px;
  }

  .vrk-wheel-modal {
    border-radius: 18px;
  }

  .vrk-wheel-title {
    font-size: 20px;
  }

  .vrk-wheel-prize-text {
    font-size: 17px;
  }
}
