.optin-wheel-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.optin-wheel-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.optin-wheel-title {
    text-align: center;
    color: #fff;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.optin-wheel-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin: 0 0 30px 0;
}

.optin-wheel-content {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
    min-height: 400px;
}

.wheel-outer {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 50%;
    border: 6px solid #dc2626;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.optin-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transform: rotate(0deg);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    min-height: 400px;
    background: conic-gradient(
        #FF6B6B 0deg 60deg,
        #4ECDC4 60deg 120deg,
        #45B7D1 120deg 180deg,
        #FFA07A 180deg 240deg,
        #98D8C8 240deg 300deg,
        #F7DC6F 300deg 360deg
    );
}

.wheel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.prize-label {
    position: absolute;
    text-align: center;
    transform-origin: center;
}

.prize-text {
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    word-break: break-word;
    line-height: 1.2;
    transform-origin: center;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: #fbbf24;
    border-radius: 50%;
    border: 3px solid #f59e0b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.wheel-center-inner {
    width: 40px;
    height: 40px;
    background: #fb923c;
    border-radius: 50%;
}

.wheel-pointer {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 25px solid #fbbf24;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spin-button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.optin-wheel-form-container {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-width: 350px;
    max-width: 400px;
}

.optin-wheel-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input.error-field {
    border-color: #f5576c;
    box-shadow: 0 0 0 2px rgba(245, 87, 108, 0.2);
}

.submit-button {
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Modal */
.optin-wheel-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.optin-wheel-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s;
    text-align: center;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body h3 {
    color: #667eea;
    font-size: 2em;
    margin: 0 0 20px 0;
}

.modal-body p {
    color: #666;
    font-size: 1.1em;
    margin: 0 0 20px 0;
}

.modal-prize {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .optin-wheel-content {
        flex-direction: column;
    }
    
    .optin-wheel-title {
        font-size: 2em;
    }
    
    #optin-wheel-canvas {
        width: 300px;
        height: 300px;
    }
    
    .optin-wheel-form-container {
        width: 100%;
        max-width: 100%;
    }
}

