/* Frontend Popup Stilleri */
.dck-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dck-popup-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

.dck-close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.dck-close-popup:hover {
    background: #ff3838;
    transform: rotate(90deg);
}

.dck-popup-inner {
    padding: 40px 30px;
}

.dck-popup-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.dck-popup-description {
    text-align: center;
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Form Styles */
.dck-form-container {
    max-width: 400px;
    margin: 0 auto;
}

.dck-form-group {
    margin-bottom: 15px;
}

.dck-form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.dck-form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dck-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.dck-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.dck-submit-btn:active {
    transform: translateY(0);
}

/* Wheel Container */
.dck-wheel-container {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 500px;
    padding: 20px;
}

#dck-canvas {
    max-width: 100%;
    width: 500px;
    height: 500px;
    display: block;
    margin: 0 auto;
}

.dck-spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: 5px solid white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
    transition: all 0.3s;
    z-index: 10;
}

.dck-spin-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.7);
}

.dck-spin-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.dck-spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translate(-50%, -50%) scale(1);
}

/* Result Container */
.dck-result-container {
    text-align: center;
    padding: 20px;
}

.dck-confetti {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.dck-result-title {
    font-size: 36px;
    font-weight: bold;
    color: #27ae60;
    margin: 0 0 15px 0;
}

.dck-result-message {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.dck-coupon-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.dck-coupon-code strong {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dck-coupon-code code {
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.dck-copy-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.dck-copy-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .dck-popup-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .dck-popup-inner {
        padding: 30px 20px;
    }
    
    .dck-popup-title {
        font-size: 24px;
    }
    
    .dck-popup-description {
        font-size: 14px;
    }
    
    .dck-spin-button {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }
    
    #dck-canvas {
        max-width: 100%;
        width: 350px;
        height: 350px;
    }
}

/* Loading Spinner */
.dck-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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