/**
 * NEVSOFT SPIN WHEEL - CSS STYLESHEET
 * Scandinavian Clean White & Crimson Red Theme (KAFFZ Brand)
 */

/* 1. SIDE-DOCKED SEMICIRCLE WHEEL (TELEFONDAKİ GİBİ SOL EKRAN KENARINDA DÖNEN YARIM ÇARK) */
#ns-wheel-fab {
  position: fixed !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 99998 !important;
  width: 38px !important;
  height: 72px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#ns-wheel-fab.ns-wheel-fab-bottom_right {
  left: auto !important;
  right: 0 !important;
}
#ns-wheel-fab.ns-wheel-fab-bottom_right #ns-btn-open-wheel {
  border-left: 2.2px solid #e5c07b !important;
  border-right: none !important;
  border-radius: 36px 0 0 36px !important;
}
#ns-wheel-fab.ns-wheel-fab-bottom_right .ns-side-wheel-disc {
  left: auto !important;
  right: -36px !important;
}
#ns-wheel-fab.ns-wheel-fab-bottom_right .ns-side-center-badge {
  left: auto !important;
  right: 0 !important;
  border-left: 1.5px solid #e5c07b !important;
  border-right: none !important;
  border-radius: 14px 0 0 14px !important;
  padding-left: 0 !important;
  padding-right: 2px !important;
}
#ns-wheel-fab.ns-wheel-fab-bottom_right .ns-side-edge-pointer {
  right: auto !important;
  left: 1px !important;
  border-left: none !important;
  border-right: 7px solid #6A1311 !important;
}

#ns-btn-open-wheel {
  position: relative !important;
  display: block !important;
  width: 38px !important;
  height: 72px !important;
  background: transparent !important;
  border: 2.2px solid #e5c07b !important;
  border-left: none !important;
  border-top-right-radius: 36px !important;
  border-bottom-right-radius: 36px !important;
  padding: 0 !important;
  cursor: pointer !important;
  overflow: hidden !important;
  box-shadow: 3px 4px 16px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  outline: none !important;
  text-decoration: none !important;
}
#ns-btn-open-wheel:hover {
  transform: scale(1.08) !important;
  box-shadow: 4px 8px 24px rgba(185, 28, 28, 0.35) !important;
}

.ns-side-wheel-disc {
  position: absolute !important;
  left: -36px !important;
  top: 0 !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.ns-side-wheel-spin {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  animation: ns-wheel-icon-spin 10s linear infinite !important;
}
@keyframes ns-wheel-icon-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ns-side-wedge {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  clip-path: polygon(50% 50%, 40% 0%, 60% 0%) !important;
  -webkit-clip-path: polygon(50% 50%, 40% 0%, 60% 0%) !important;
}
.ns-w-1 { transform: rotate(0deg); background: #6A1311; }
.ns-w-2 { transform: rotate(45deg); background: #faf5f0; }
.ns-w-3 { transform: rotate(90deg); background: #ecd5cf; }
.ns-w-4 { transform: rotate(135deg); background: #4E0D0C; }
.ns-w-5 { transform: rotate(180deg); background: #faf5f0; }
.ns-w-6 { transform: rotate(225deg); background: #ecd5cf; }
.ns-w-7 { transform: rotate(270deg); background: #6A1311; }
.ns-w-8 { transform: rotate(315deg); background: #faf5f0; }

.ns-side-center-badge {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 28px !important;
  background: #ffffff !important;
  border: 1.5px solid #e5c07b !important;
  border-left: none !important;
  border-top-right-radius: 14px !important;
  border-bottom-right-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  padding-left: 2px !important;
  box-sizing: border-box !important;
}

.ns-side-edge-pointer {
  position: absolute !important;
  right: 1px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 5px solid transparent !important;
  border-bottom: 5px solid transparent !important;
  border-left: 7px solid #6A1311 !important;
  z-index: 12 !important;
}

/* 2. MODAL OVERLAY & CLEAN WHITE CARD DIALOG */
.ns-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto;
}
.ns-wheel-modal-dialog {
  position: relative;
  width: 94%;
  max-width: 440px;
  background: #ffffff !important;
  color: #111827 !important;
  border-radius: 26px;
  padding: 22px 24px 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  margin: auto;
  box-sizing: border-box;
  animation: ns-modal-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@keyframes ns-modal-pop {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* TOP BAR (LOGO & CLOSE) */
.ns-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ns-brand-logo {
  font-size: 20px;
  font-weight: 800;
  color: #6A1311;
  letter-spacing: -0.5px;
  user-select: none;
}
.ns-brand-logo strong {
  font-weight: 800;
}
.ns-modal-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s, transform 0.2s;
}
.ns-modal-close:hover {
  color: #111827;
  transform: scale(1.15);
}

/* HEADER AREA */
.ns-badge-reward {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}
.ns-modal-title {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.4px;
  line-height: 1.25;
}
.ns-modal-subtitle {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.4;
}

/* 3. WHEEL STAGE & CANVAS */
.ns-wheel-stage {
  position: relative;
  width: 295px;
  height: 295px;
  margin: 0 auto 16px;
}
.ns-wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.25));
  transform-origin: 50% 15%;
  transition: transform 0.1s ease;
}
.ns-wheel-pointer.ns-ticking,
.ns-wheel-pointer.ns-ticking-fast {
  animation: ns-ticker-fast 0.08s infinite ease-in-out alternate;
}
.ns-wheel-pointer.ns-ticking-slow {
  animation: ns-ticker-slow 0.22s infinite ease-in-out alternate;
}
@keyframes ns-ticker-fast {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(-16deg); }
}
@keyframes ns-ticker-slow {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(-9deg); }
}
.ns-wheel-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #E5CDAE;
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.08);
  overflow: hidden;
}
#ns-wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  will-change: transform;
}

/* CENTER HUB (SHOPPING BAG ICON BADGE) */
.ns-wheel-center-hub {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 3px solid #E5CDAE !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  z-index: 60 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.ns-wheel-center-hub:hover {
  transform: translate(-50%, -50%) scale(1.08) !important;
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.2) !important;
}

/* 4. ACTIONS (MAIN FULL-WIDTH SPIN BUTTON & FOOTER NOTE) */
.ns-wheel-actions {
  margin-top: 6px !important;
  position: relative !important;
  z-index: 50 !important;
}
.ns-btn-spin-main {
  width: 100% !important;
  background: linear-gradient(135deg, #6A1311 0%, #4E0D0C 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 13px 20px !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 60 !important;
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.ns-btn-spin-main:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(185, 28, 28, 0.5);
  background: linear-gradient(135deg, #cc1414 0%, #a51818 100%);
}
.ns-btn-spin-main:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.ns-wheel-terms-note {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

/* 5. COUNTDOWN / COOLDOWN CARD */
.ns-cooldown-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 12px;
  margin-top: 14px;
}
.ns-cooldown-icon {
  font-size: 26px;
  margin-bottom: 4px;
}
.ns-cooldown-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #1e293b;
  font-weight: 700;
}
.ns-cooldown-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
}
.ns-countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ns-timer-unit {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 50px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ns-timer-unit span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #6A1311;
}
.ns-timer-unit small {
  display: block;
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
}
.ns-timer-sep {
  font-size: 18px;
  font-weight: bold;
  color: #94a3b8;
}
.ns-btn-reset-daily {
  background: #ffffff;
  border: 1px solid #fecaca;
  color: #6A1311;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.1);
}
.ns-btn-reset-daily:hover {
  background: #FFF0DC;
  border-color: #6A1311;
  transform: scale(1.03);
}

/* 6. WINNER CELEBRATION OVERLAY */
#ns-wheel-winner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 26px;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  z-index: 60;
  animation: ns-fade-in 0.3s ease;
}
#ns-wheel-winner-overlay.ns-active {
  display: flex !important;
}
@keyframes ns-fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.ns-winner-trophy {
  font-size: 46px;
  margin-bottom: 8px;
  animation: ns-bounce 1s infinite alternate;
}
@keyframes ns-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
.ns-winner-card h3 {
  font-size: 22px;
  color: #111827;
  margin: 0 0 8px;
  font-weight: 800;
}
.ns-winner-msg {
  font-size: 14px;
  color: #475569;
  margin: 0 0 16px;
  line-height: 1.4;
}
.ns-coupon-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFF0DC;
  border: 2px dashed #6A1311;
  border-radius: 10px;
  padding: 8px 16px;
  margin-bottom: 20px;
}
.ns-coupon-code-badge span {
  font-family: monospace;
  font-size: 19px;
  font-weight: 800;
  color: #6A1311;
  letter-spacing: 2px;
}
#ns-btn-winner-shop {
  background: linear-gradient(135deg, #6A1311 0%, #4E0D0C 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 20px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.35);
}
#ns-btn-winner-shop:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* 7. RESPONSIVE */
@media (max-width: 480px) {
  .ns-wheel-stage {
    width: 270px;
    height: 270px;
  }
  .ns-wheel-center-hub {
    width: 52px;
    height: 52px;
  }
  .ns-modal-title {
    font-size: 20px;
  }
}
