.lts-popup {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: ltsFadeIn 0.3s;
}

.lts-popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.lts-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.lts-close:hover {
    color: #333;
}

.lts-wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 20px auto;
}

#lts-wheel {
    width: 100%;
    height: 100%;
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.15, 1);
}

.lts-spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ff6b6b;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, background 0.3s;
}

.lts-spin-btn:hover {
    background: #ff5252;
    transform: translate(-50%, -50%) scale(1.1);
}

.lts-spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translate(-50%, -50%);
}

.lts-email-form {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

#lts-email {
    flex: 1;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#lts-email:focus {
    outline: none;
    border-color: #4CAF50;
}

#lts-submit-email {
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#lts-submit-email:hover {
    background: #45a049;
}

#lts-submit-email:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.lts-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

.lts-result-message {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.lts-coupon-info {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    animation: ltsSlideUp 0.5s ease;
}

.lts-coupon-code-label {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    font-weight: normal;
}

.lts-coupon-code {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
    margin: 10px 0;
}

.lts-coupon-code:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
    border-color: #fff;
}

.lts-coupon-note {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
    font-style: italic;
}

/* Error and Warning Messages */
.lts-error {
    background: #f44336;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    animation: ltsShake 0.5s ease;
}

.lts-warning {
    background: #ff9800;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    animation: ltsPulse 0.5s ease;
}

.lts-success {
    background: #4CAF50;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    animation: ltsSlideUp 0.5s ease;
}

/* Loading Spinner */
.lts-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ltsSpin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Disabled button state */
.lts-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animations */
@keyframes ltsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes ltsShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes ltsPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes ltsSpin {
    to { transform: rotate(360deg); }
}

/* Tooltip for coupon code */
.lts-coupon-code {
    position: relative;
}

.lts-coupon-code::after {
    content: "📋 Click to copy";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
}

.lts-coupon-code:hover::after {
    opacity: 1;
}

/* Confetti effect for winner */
.lts-confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f00;
    position: absolute;
    animation: ltsConfettiFall 3s linear forwards;
    pointer-events: none;
    z-index: 1000000;
}

@keyframes ltsConfettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Progress bar for spin */
.lts-progress {
    width: 100%;
    height: 3px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.lts-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    animation: ltsProgress 3s linear forwards;
    border-radius: 3px;
}

@keyframes ltsProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lts-popup-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        overflow-y: auto;
        padding: 20px;
    }
    
    .lts-wheel-container {
        width: 300px;
        height: 300px;
    }
    
    .lts-email-form {
        flex-direction: column;
    }
    
    .lts-spin-btn {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
    
    .lts-coupon-code {
        font-size: 18px;
        padding: 8px 15px;
    }
    
    .lts-result-message {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .lts-wheel-container {
        width: 250px;
        height: 250px;
    }
    
    .lts-popup-content {
        padding: 15px;
    }
    
    .lts-coupon-code {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .lts-coupon-code::after {
        font-size: 10px;
        bottom: -25px;
        white-space: normal;
        width: max-content;
    }
}

/* Print styles - hide popup when printing */
@media print {
    .lts-popup {
        display: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .lts-popup-content {
        background-color: #1e1e1e;
        color: #fff;
    }
    
    .lts-result {
        background: #2d2d2d;
        color: #fff;
    }
    
    .lts-result-message {
        color: #fff;
    }
    
    #lts-email {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    
    #lts-email:focus {
        border-color: #4CAF50;
    }
    
    .lts-close {
        color: #666;
    }
    
    .lts-close:hover {
        color: #fff;
    }
}

/* Smooth scrolling for popup content */
.lts-popup-content {
    scroll-behavior: smooth;
}

/* Custom scrollbar for popup */
.lts-popup-content::-webkit-scrollbar {
    width: 8px;
}

.lts-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.lts-popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.lts-popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}