/* Custom Lucky Wheel Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Cairo:wght@400;600;700&display=swap');

.arzum-wl-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    direction: ltr; /* English / LTR */
}

.arzum-wl-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: rgba(18, 18, 20, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 30px;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 50px rgba(212, 175, 55, 0.15); /* Gold glow */
    gap: 40px;
    box-sizing: border-box;
}

/* Left side: Wheel Canvas Box (Enlarged) */
.arzum-wl-wheel-box {
    flex: 1.3;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.arzum-wl-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 530px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

#arzum-wl-canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 530px;
    max-height: 530px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    z-index: 2;
}

.arzum-wl-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 88px;
    background: transparent; /* Make transparent to reveal the canvas logo */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.arzum-wl-pointer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%; /* Pointing to the right */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid #d4af37; /* Elegant Gold arrow pointer tip */
    margin-left: -6px;
    filter: drop-shadow(3px 2px 4px rgba(0, 0, 0, 0.45));
}

/* Right side: Form / Content */
.arzum-wl-content-box {
    flex: 0.9;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 380px;
}

.arzum-wl-form-container h2, 
.arzum-wl-success-container h2 {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-align: center;
}

.arzum-wl-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

/* Fields Styling (LTR) */
.arzum-wl-field {
    position: relative;
    margin-bottom: 22px;
    width: 100%;
}

.arzum-wl-field input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s ease;
}

.arzum-wl-field input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #d4af37; /* Gold */
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.arzum-wl-field label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.arzum-wl-field input:focus ~ label,
.arzum-wl-field input:not(:placeholder-shown) ~ label {
    top: 0;
    left: 12px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #d4af37; /* Gold */
    background: #121214;
    padding: 0 6px;
    border-radius: 4px;
}

/* Button */
.arzum-wl-btn {
    width: 100%;
    padding: 16px;
    background: #6f4e37; /* Coffee Brown */
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(111, 78, 55, 0.3);
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 10px;
}

.arzum-wl-btn:hover {
    background: #5c3d2e; /* Darker Brown */
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(92, 61, 46, 0.45);
}

.arzum-wl-error-msg {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    min-height: 20px;
}

/* Success Panel Sizing */
.arzum-wl-success-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.6s ease forwards;
}

.arzum-wl-success-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.arzum-wl-prize-value {
    font-size: 44px;
    font-weight: 700;
    color: #d4af37; /* Gold */
    margin: 15px 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.arzum-wl-success-note {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 320px;
}

.arzum-wl-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.arzum-wl-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

/* ----------------------------------------------------
   FLOATING LAUNCHER ICON & MODAL OVERLAY STYLES
---------------------------------------------------- */

#arzum-wl-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    cursor: pointer;
    display: flex;
    align-items: center;
    direction: ltr; /* Ensure layout remains correct regardless of body direction */
}

.arzum-wl-launcher-circle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #8b5a2b 0%, #6f4e37 100%); /* Coffee Brown gradient */
    border: 2.5px solid #d4af37; /* Gold border */
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(111, 78, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    animation: launcherPulse 2.5s infinite;
}

.arzum-wl-launcher-circle svg {
    color: #ffffff !important;
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#arzum-wl-launcher:hover .arzum-wl-launcher-circle {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 30px rgba(111, 78, 55, 0.6);
}

.arzum-wl-launcher-badge {
    position: absolute;
    right: 75px; /* Positioned left of the circle */
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%); /* Gold gradient */
    color: #121214 !important;
    padding: 8px 16px;
    border-radius: 30px;
    font-family: 'Cairo', 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    border: 1.5px solid #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    transform-origin: right center;
    z-index: 1;
    animation: badgePulse 3s infinite ease-in-out;
}

/* Speech bubble pointer pointing to the circle */
.arzum-wl-launcher-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #b8860b;
}

#arzum-wl-launcher:hover .arzum-wl-launcher-badge {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
}

@keyframes badgePulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.03); }
}

/* Modal Overlay Container */
#arzum-wl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
}

#arzum-wl-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Inner Box */
#arzum-wl-modal-body {
    position: relative;
    width: 100%;
    max-width: 1050px;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

#arzum-wl-modal-overlay.active #arzum-wl-modal-body {
    transform: translateY(0);
}

/* Close Button (Fixed to viewport) */
#arzum-wl-modal-close {
    position: fixed;
    top: calc(25px + env(safe-area-inset-top, 0px));
    right: calc(25px + env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    background: #6f4e37; /* Coffee Brown */
    color: #ffffff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000002;
    transition: all 0.3s ease;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

#arzum-wl-modal-close:hover {
    background: #5c3d2e;
    transform: scale(1.1) rotate(90deg);
}

/* Hide launcher button on the dedicated lucky wheel pages to avoid redundancy */
body.page-id-122797 #arzum-wl-launcher,
body.page-id-161397 #arzum-wl-launcher {
    display: none !important;
}

/* Keyframes */
@keyframes launcherPulse {
    0% {
        box-shadow: 0 8px 25px rgba(111, 78, 55, 0.4), 0 0 0 0px rgba(111, 78, 55, 0.4);
    }
    70% {
        box-shadow: 0 8px 25px rgba(111, 78, 55, 0.4), 0 0 0 15px rgba(111, 78, 55, 0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(111, 78, 55, 0.4), 0 0 0 0px rgba(111, 78, 55, 0);
    }
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Responsive Design */
@media (max-width: 991px) {
    #arzum-wl-modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 70px 10px 30px 10px;
    }

    #arzum-wl-modal-body {
        margin: 0 auto;
    }

    .arzum-wl-container {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }
    
    .arzum-wl-wheel-box {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .arzum-wl-content-box {
        width: 100%;
        min-height: auto;
    }
    
    #arzum-wl-modal-close {
        position: fixed;
        top: calc(15px + env(safe-area-inset-top, 0px));
        right: calc(15px + env(safe-area-inset-right, 0px));
        width: 44px;
        height: 44px;
        z-index: 1000002;
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
}

@media (max-width: 480px) {
    #arzum-wl-launcher {
        bottom: 20px;
        right: 20px;
    }
    
    .arzum-wl-launcher-circle {
        width: 52px;
        height: 52px;
        border-width: 2px;
    }
    
    .arzum-wl-launcher-circle svg {
        width: 24px;
        height: 24px;
    }
    
    .arzum-wl-launcher-badge {
        right: 60px;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .arzum-wl-container {
        padding: 15px;
        gap: 15px;
    }

    .arzum-wl-form-container h2, 
    .arzum-wl-success-container h2 {
        font-size: 24px;
    }

    .arzum-wl-success-icon {
        font-size: 48px;
        margin-bottom: 10px;
    }

    .arzum-wl-prize-value {
        font-size: 32px;
        margin: 10px 0;
    }

    .arzum-wl-success-note {
        font-size: 13px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
}
