.blk-wheel-wrap {
  background: radial-gradient(circle at 50% 20%, #2e103d 0%, #170720 50%, #08020c 100%) !important;
  color: #fff;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blk-wheel-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.wheel-container {
  width: 100%;
  max-width: min(660px, 100%);
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Header */
.wheel-header {
  margin-bottom: 20px;
}

.wheel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.35));
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.wheel-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  letter-spacing: -0.5px;
}

.wheel-sub {
  font-size: 0.98rem;
  color: #e2e8f0;
  margin: 0 0 20px 0;
  opacity: 0.9;
}

/* Theme Selector Pills */
.wheel-theme-pills-bar {
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
}

.theme-pills-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.theme-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.theme-pill-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-pill-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fff;
  transform: translateY(-1px);
}

.theme-pill-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fbbf24;
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.theme-pill-btn.custom-toggle {
  background: rgba(147, 51, 234, 0.2);
  border-color: #9333ea;
  color: #c084fc;
}

.theme-pill-btn.custom-toggle:hover {
  background: rgba(147, 51, 234, 0.35);
  color: #fff;
}

/* Customizer Drawer */
.wheel-customizer-drawer {
  background: rgba(20, 8, 28, 0.95);
  border: 1.5px solid #9333ea;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: wSlideDown 0.3s ease;
}

@keyframes wSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.customizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.customizer-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #c084fc;
  font-weight: 800;
}

.btn-close-custom {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-custom:hover { color: #fff; }

.customizer-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 0 14px 0;
}

.custom-slices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}

.custom-slice-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-slice-color {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.custom-slice-text {
  flex: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.85rem;
}

.custom-slice-desc {
  flex: 3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.btn-del-slice {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-del-slice:hover { background: #ef4444; color: #fff; }

.customizer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-add-slice {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-apply-custom {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

/* Stage Box */
.wheel-stage-box {
  position: relative;
  width: min(380px, 86vw);
  height: min(380px, 86vw);
  max-width: 90vw;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.wheel-glow-outer {
  position: absolute;
  top: -15px; left: -15px; right: -15px; bottom: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: wGlowPulse 3s infinite alternate;
}

@keyframes wGlowPulse {
  0% { transform: scale(0.98); opacity: 0.6; }
  100% { transform: scale(1.04); opacity: 1; }
}

/* Pointer Arrow */
.wheel-pointer-arrow {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pointer-needle {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid #fbbf24;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

.pointer-jewel {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #f59e0b 80%);
  margin-top: -38px;
  box-shadow: 0 0 8px #f59e0b;
}

#dateWheelCanvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.3);
  display: block;
}

/* Center Spin Button */
.btn-spin-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(86px, 24vw);
  height: min(86px, 24vw);
  min-width: 60px;
  min-height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fbbf24 0%, #d97706 60%, #78350f 100%);
  border: 3.5px solid #fff;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.6);
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.spin-label {
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.spin-sub {
  font-size: 0.75rem;
  color: #fef08a;
  margin-top: -2px;
}

.btn-spin-wheel:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.9);
}

.btn-spin-wheel:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Winner Box */
.wheel-winner-box {
  background: rgba(28, 10, 38, 0.92);
  border: 2px solid #f59e0b;
  border-radius: 24px;
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.25);
  animation: wFadeIn 0.4s ease;
  margin-top: 10px;
}

@keyframes wFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.winner-congrats-banner {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fbbf24;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.winner-trophy-icon {
  font-size: 1.2rem;
  color: #f59e0b;
}

.winner-prize-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(147, 51, 234, 0.2));
  border: 1.5px dashed #f59e0b;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.prize-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  border: 2px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fbbf24;
  margin: 0 auto 12px;
}

.prize-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.prize-desc {
  font-size: 0.95rem;
  color: #fef08a;
  margin: 0;
  line-height: 1.4;
}

/* Date Form */
.wheel-date-form {
  text-align: left;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 6px;
}

.wheel-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.wheel-input:focus {
  outline: none;
  border-color: #fbbf24;
  background: rgba(255, 255, 255, 0.12);
}

.btn-claim-wheel {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  margin-top: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-claim-wheel:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.55);
}

/* ==========================================================================
   ULTRA LUXURY GOLD FOIL VIP TICKET CARD
   ========================================================================== */
.wheel-ticket-wrapper {
  text-align: center;
}

.gold-foil-ticket {
  background: radial-gradient(circle at top left, #2c1404 0%, #170a02 60%, #0c0501 100%);
  border: 3px solid #d4af37;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.35);
  position: relative;
  text-align: left;
  max-width: 580px;
  margin: 0 auto;
}

.ticket-gold-border {
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  border-radius: 14px;
  padding: 22px 20px;
  position: relative;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.ticket-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ticket-gold-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
  color: #1a0a00;
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 6px;
}

.ticket-gold-stamp {
  border: 1.5px solid #d4af37;
  color: #fbbf24;
  border-radius: 6px;
  padding: 3px 8px;
  text-align: center;
  transform: rotate(-3deg);
}

.ticket-gold-stamp span {
  display: block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.ticket-gold-stamp small {
  font-size: 0.6rem;
  color: #fde68a;
}

.ticket-couple-banner {
  margin-bottom: 16px;
}

.ticket-couple-title {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px 0;
  font-family: Georgia, 'Times New Roman', serif;
}

.ticket-couple-title .heart-pulse {
  color: #e11d48;
  display: inline-block;
  animation: tktHeart 1.5s infinite;
}

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

.ticket-subtitle-line {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d4af37;
}

/* Ticket Perforation */
.ticket-perforation {
  position: relative;
  height: 20px;
  margin: 10px -28px 16px;
  display: flex;
  align-items: center;
}

.ticket-perforation .notch {
  width: 20px;
  height: 20px;
  background: #170720;
  border-radius: 50%;
  position: absolute;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

.ticket-perforation .notch.left { left: 0; }
.ticket-perforation .notch.right { right: 0; }

.ticket-perforation .dash-line {
  width: 100%;
  border-bottom: 2px dashed rgba(212, 175, 55, 0.4);
  margin: 0 24px;
}

/* Content Grid */
.ticket-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .ticket-content-grid { grid-template-columns: 1fr; }
}

.tkt-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
}

.tkt-col.prize-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(147, 51, 234, 0.1));
  border-color: #d4af37;
}

.tkt-col.full-row {
  grid-column: 1 / -1;
}

.tkt-lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.tkt-val {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.tkt-val.prize-name {
  font-size: 1.25rem;
  color: #fef08a;
}

.tkt-sub {
  display: block;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.tkt-note-box {
  font-size: 0.88rem;
  font-style: italic;
  color: #fde68a;
  line-height: 1.3;
}

/* Ticket Footer */
.ticket-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
  padding-top: 12px;
}

.barcode-visual {
  text-align: left;
}

.barcode-lines {
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: -2px;
  color: #d4af37;
  font-weight: 900;
  opacity: 0.85;
}

.barcode-code {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1px;
}

.ticket-signature {
  text-align: right;
}

.ticket-signature span {
  display: block;
  font-size: 0.6rem;
  color: #94a3b8;
  letter-spacing: 1px;
}

.ticket-signature strong {
  font-size: 0.72rem;
  color: #fbbf24;
  font-weight: 900;
}

/* Ticket Action Buttons */
.ticket-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ticket-act {
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-download-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-whatsapp-share {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-ticket-act.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-ticket-act:hover {
  transform: translateY(-2px);
}

.wheel-confetti-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 3px;
  z-index: 100;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & SAFE AREA
   ========================================================================== */
@media (max-width: 640px) {
  .wheel-theme-pills-bar {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .theme-pill-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .wheel-winner-box {
    padding: 20px 14px;
    border-radius: 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .winner-prize-card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .prize-title {
    font-size: 1.25rem;
  }

  .prize-desc {
    font-size: 0.85rem;
  }

  .btn-claim-wheel {
    padding: 14px 20px;
    font-size: 1rem;
    min-height: 50px;
    border-radius: 25px;
  }

  .gold-foil-ticket {
    padding: 4px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .ticket-gold-border {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .ticket-content-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ticket-actions-row {
    flex-direction: column;
    width: 100%;
  }

  .btn-ticket-act {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 380px) {
  .wheel-stage-box {
    width: 88vw;
    height: 88vw;
  }
}
