/* General Body Styles */
/* body {
    font-family: "Inter", sans-serif; 
    background-image: linear-gradient(to bottom right, #0f172a, #334155); 
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
  }
   */

/* to see */
#discount-modal{
    font-family: "Inter", sans-serif; 
    background-image: rgba (0,0,0,0.92)
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
  }


  #discount-modal .container {
    
 
    border-radius: 12px; /* rounded-xl */
    margin: auto;
    width: 100%;
    max-width: 448px; /* max-w-md */
    text-align: center;
  }
  

  #spinWheelApp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .pointer-container {
    position: relative; /* For pointer positioning */
    height: 30px; /* Approximate height for pointer */
    margin-bottom: 6px; /* Original mb-6 was on the whole relative div */
  }
  
  #pointer {
    position: absolute;
    top: 10px; /* As in original */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  
  #pointer img {
    width: 24px; /* w-6 */
    height: auto;
  }
  
  #wheelContainer {
  position: relative;
  width: 90vw; /* 90% of viewport width on mobile */
  height: 90vw; /* maintain aspect ratio */
  max-width: 400px; /* maximum size on larger screens */
  max-height: 400px;
      /* Add the animation properties below */
    animation: subtleWheelSpin 1s ease-in-out infinite alternate; /* 3 seconds duration, ease-in-out timing, infinite loop, alternates direction */
    transform-origin: center center; /* Ensure rotation happens from the center */
  }
  @keyframes subtleWheelSpin {
    0% {
        transform: rotate(-5deg); /* Slightly rotate to the left */
    }
    100% {
        transform: rotate(5deg); /* Slightly rotate to the right */
    }
}
  #wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* rounded-full */
    border: 4px solid #ffffff; /* border-4 border-white */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-2xl */
    position: relative;
    overflow: hidden;
    transition-property: transform;
    transition-duration: 5000ms;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  
  #centerCircle {
    position: absolute;
    top: 30%;
    left: 30%;
    right: 30%;
    bottom: 30%;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff3b0, #dcba60); /* User's gradient */
    border: 4px solid #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); /* shadow-inner */
    z-index: 5;
  }
  
  #centerCircle .center-text-line1 {
    font-size: 10px;
    color: #000000;
    font-weight: 600; /* font-semibold */
    text-transform: uppercase;
    white-space: nowrap;
  }
  
  #centerCircle .center-text-line2 {
    font-size: 22px;
    color: #000000;
    font-weight: 700; /* font-bold */
    text-transform: uppercase;
  }
  
  #centerCircle .italic-light {
    font-style: italic;
    font-weight: 300; /* font-light */
  }
  
  #spinButton {
    width: auto; /* sm:w-auto */
    margin-top: 16px; /* mt-4 */
    padding: 16px 40px; /* px-10 py-4 */
    background-color: #dcba60; /* Original bg */
    color: #0f172a; /* slate-900 */
    font-size: 18px; /* text-lg */
    font-weight: 700; /* font-bold */
    border-radius: 8px; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    transition-property: background-color, transform, box-shadow;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
    border: none;
    cursor: pointer;
    outline: none;
  }
  
  #spinButton:hover {
    background-color: #f59e0b; /* amber-400 */
    transform: scale(1.05);
  }
  
  #spinButton:active {
    background-color: #d97706; /* amber-600 */
  }
  
  #spinButton:focus {
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.5); /* ring-4 ring-amber-300 (approx) */
  }
  
  #spinButton.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1); /* Prevent hover scale when disabled */
  }
  #spinButton.disabled:hover {
    background-color: #dcba60; /* Keep original bg when disabled and hovered */
  }
  
  
  #resultDisplayWrapper {
    margin-top: 32px; /* mt-8 */
    width: 100%;
    height: 80px; /* h-20 */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #resultDisplay {
    padding: 12px 16px; /* p-3 sm:p-4 */
    background-color: #334155; /* slate-700 */
    border-radius: 8px; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    font-size: 18px; /* text-lg */
    font-weight: 500; /* font-medium */
    color: #f59e0b; /* amber-400 */
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition-property: opacity, transform;
    transition-duration: 300ms;
    opacity: 0;
    transform: scale(0.9);
  }
  
 
  /* Segment Label Styles */
  .segment-label-container {
      
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform-origin: center center;
  }
  
  .segment-text { /* Base class for text elements within labels */
      
    text-align: center;
    text-transform: uppercase;
    /* Other common styles like tracking can be added here if consistent */
  }
  .segment-text:last-child { /* For the percentage part */
      font-weight: 700; /* font-bold */
      font-size: 1.3rem! important; /* text-2xl */
    
  
  }
  /* Specific text colors */
  .text-color-black { color: #000000; }
  .text-color-white { color: #ffffff; }
  
  
  /* Animation for the pointer image */
  @keyframes imagePointerTick {
    0%,
    100% {
      transform: rotate(12deg);
    }
    25% {
      transform: rotate(0deg);
    }
    50% {
      transform: rotate(-12deg);
    }
    75% {
      transform: rotate(0deg);
    }
  }
  #pointer img.pointer-tick-animate {
    transform-origin: center top;
    animation: imagePointerTick 0.5s ease-in-out;
  }
  
  
  
  /* Styles for multi-line text in segments (from user's code) */
  .segment-text div { /* For the percentage part */
      font-weight: 700; /* font-bold */
      letter-spacing: normal; 
      line-height: 1;
      font-size: 1.8rem; /* text-2xl */
  }
  .segment-text div:last-child { /* For "OFF" */
      font-size: 1.3rem;
      letter-spacing: 0.15em; /* tracking-[0.15em] */
      font-weight: 500; /* font-medium */
  }
  
  