.lucky-wheel-modal {
    background: linear-gradient(135deg, #1a1f35, #101624);
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(45deg, #1a1f35, #101624);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: #ffd700;
}

.wheel-container {
    background: linear-gradient(135deg, #1e2338, #141829);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.token-balance-wrapper {
    background: linear-gradient(45deg, #2a3154, #1e2338);
    padding: 12px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-balance {
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-balance i {
    color: #ffd700;
}

.wheel-wrapper {
    position: relative;
    width: min(400px, 90vw);
    height: min(400px, 90vw);
    margin: 20px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    border: 15px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.2);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: rotate(0deg);
    background: #1e2338;
}

.wheel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

.segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 0 100%;
    left: 50%;
    top: 0;
    clip-path: polygon(0 0, 50% 100%, -50% 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.segment-content {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 2px 8px;
    text-align: center;
    z-index: 100;
    background: none;
    border-radius: 0;
    left: 0;
    top: 0;
    transform-origin: 0 0;
}

.segment-content i {
    font-size: 0.9rem;
    color: #ffffff;
}

.segment-content span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.segment[data-prize='empty'] {
    background: linear-gradient(135deg, #2a3154, #1e2338);
    opacity: 0.85;
}

.segment[data-prize='1x'] {
    background: linear-gradient(135deg, #4158d0, #3243b8);
}

.segment[data-prize='2x'] {
    background: linear-gradient(135deg, #f857a6, #e92e6c);
}

.segment[data-prize='freespin'] {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.segment.active {
    filter: brightness(1.3);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.spin-button-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    border: none;
    cursor: pointer;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.spin-button-center:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.spin-button-center:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.spin-button-center i {
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
}

.spin-button-center span {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.wheel-pointer {
    position: absolute;
    width: 40px;
    height: 60px;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.pointer-triangle {
    width: 100%;
    height: 100%;
    background: #ffd700;
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: pointerGlow 1.5s ease-in-out infinite;
}

@keyframes pointerGlow {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.spin-info {
    margin-top: 20px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
}

.spin-cost {
    color: #ffd700;
    font-weight: 600;
}

.prize-display {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    padding: 10px;
}

.prize-amount {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.prize-message {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.prize-value {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.spin-again-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #fff;
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spin-again-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .wheel-wrapper {
        width: min(300px, 85vw);
        height: min(300px, 85vw);
    }

    .wheel-center {
        width: 80px;
        height: 80px;
    }

    .segment-content i {
        font-size: 1rem;
    }

    .segment-content span {
        font-size: 0.75rem;
    }

    .spin-button-center i {
        font-size: 20px;
    }

    .spin-button-center span {
        font-size: 14px;
    }

    .result-container {
        width: 80%;
        padding: 15px 20px;
    }
}

/* Animations */
@keyframes wheelGlow {
    0%,
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    }
}

.wheel.spinning {
    animation: wheelGlow 1s infinite;
}

.celebration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 215, 0, 0.2));
    animation: celebrate 2s ease-out forwards;
}

@keyframes celebrate {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.segment.active {
    opacity: 1;
    filter: brightness(1.3);
    z-index: 2;
}

.segment.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 215, 0, 0.2);
    animation: glowPulse 1s infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

.wheel.spinning .segment-content {
    transition: none;
}

.result-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #2a3154, #1e2338);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    min-width: 200px;
}

.result-message {
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.result-value {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.result-button {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
