.fortune-module {
    padding: 20px 0;
    text-align: center;
}

.fortune-container {
    max-width: 600px;
    margin: 0 auto;
}

.fortune-wheel-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

#fortuneWheel {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#fortuneWheel:hover {
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #e74c3c;
    z-index: 10;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.wheel-pointer:after {
    content: '';
    position: absolute;
    top: -36px;
    left: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #fff;
}

.fortune-controls {
    margin-bottom: 20px;
}

.fortune-spin-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b) !important;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: white;
}

.fortune-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #c0392b, #a93226);
    color: white;
	border-radius: 25px;
}

.fortune-spin-btn:focus {
    color: white;
	border-radius: 25px;
}

.fortune-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
	border-radius: 25px;
}

.fortune-attempts {
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

.fortune-no-attempts {
    margin-top: 10px;
    color: #e74c3c;
    font-weight: bold;
}

.fortune-info-top {
    margin-bottom: 40px;
}

.fortune-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.fortune-info p {
    color: #7f8c8d;
    font-size: 16px;
}

.fortune-login-required {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fortune-login-icon {
    margin-bottom: 20px;
    color: #3498db;
}

.fortune-prize {
    padding: 20px;
}

.prize-icon .fa {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

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

.prize-description {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 20px;
}

.coupon-code {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.code-display {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    font-family: monospace;
    background: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 2px dashed #bdc3c7;
}

.fortune-fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.firework {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: firework-animation 2s ease-out;
}

@keyframes firework-animation {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(8) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(20) rotate(360deg);
        opacity: 0;
    }
}

.spinning {
    pointer-events: none;
}

#fortune-float {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 20px rgb(0 0 0 / 30%);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

#fortune-float:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

#fortune-float .wheel-svg {
    width: 60px;
    height: 60px;
    animation: wheelSpin 4s ease-in-out infinite;
}

@keyframes wheelSpin {
    0% { 
        transform: rotate(0deg);
    }
    50% { 
        transform: rotate(1800deg);
    }
    100% { 
        transform: rotate(1800deg);
    }
}

#fortune-float-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

#fortune-float-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

#fortune-float:hover #fortune-float-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .fortune-container {
        padding: 0 10px;
    }
    
    #fortuneWheel {
        width: 320px !important;
        height: 320px !important;
    }
    
    .wheel-pointer {
        top: -12px;
        border-left: 16px solid transparent;
        border-right: 16px solid transparent;
        border-top: 32px solid #e74c3c;
    }
    
    .fortune-spin-btn {
        padding: 12px 24px;
        font-size: 16px;
        width: 100%;
        max-width: 250px;
    }
    
    .fortune-info h3 {
        font-size: 20px;
    }
    
    .fortune-info p {
        font-size: 14px;
    }
    
    .modal-content {
        margin: 10px;
        max-width: none;
        width: auto;
    }
    
    .prize-text {
        font-size: 24px;
    }
    
    .code-display {
        font-size: 18px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    #fortuneWheel {
        width: 280px !important;
        height: 280px !important;
    }
    
    .wheel-pointer {
        top: -10px;
        border-left: 14px solid transparent;
        border-right: 14px solid transparent;
        border-top: 28px solid #e74c3c;
    }
    
    .fortune-spin-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .prize-text {
        font-size: 20px;
    }
}