.spin-wheel-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    align-items: center;
}

.wheel-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.selector-arrow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #ff0000;
    z-index: 20;
    display: none;
}

.wheel {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: rotate(0deg);
}

.wheel-section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wheel-section span {
    display: block;
    width: 40%;
    text-align: center;
    position: absolute;
    top: 20px;
    right: 20px;
    transform: rotate(-22.5deg);
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.spinBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    color: #ff5722;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.spinBtn:hover {
    background: #f1f1f1;
}

.result {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

.prize-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.prize-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.prize-text {
    font-size: 30px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
}

.use-coupon-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.use-coupon-btn:hover {
    background-color: #27ae60;
}

/* Toggle button to show/hide wheel */
.toggle-wheel, .close-wheel {
    position: fixed;
    bottom: 50%;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ff5722;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    font-size: 24px;
}

.close-wheel {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #f44336;
}

/* Wheel colors */
.section-1 { background: #e74c3c; }
.section-2 { background: #3498db; }
.section-3 { background: #2ecc71; }
.section-4 { background: #f39c12; }
.section-5 { background: #9b59b6; }
.section-6 { background: #1abc9c; }
.section-7 { background: #e67e22; }
.section-8 { background: #95a5a6; }
