/* ── Oasis Fortune Wheel – Styles ── */

/* Overlay */
.ofw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}
.ofw-overlay.ofw-visible {
    opacity: 1;
}

/* Popup */
.ofw-popup {
    position: relative;
    background: #0B0B0B;
    border: 2px solid #C5A059;
    border-radius: 16px;
    max-width: 720px;
    width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(197, 160, 89, .15);
    animation: ofwSlideIn .4s ease forwards;
}
@keyframes ofwSlideIn {
    from { transform: translateY(30px) scale(.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Close button */
.ofw-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #C5A059;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color .2s;
}
.ofw-close:hover { color: #F5F5F5; }

/* Inner layout */
.ofw-popup-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px 36px;
}

/* Left panel */
.ofw-left {
    flex: 1;
    min-width: 0;
}
.ofw-title {
    font-family: 'Georgia', serif;
    font-size: 32px;
    color: #C5A059;
    margin: 0 0 8px;
    letter-spacing: .5px;
}
.ofw-subtitle {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
}

/* Email form */
.ofw-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ofw-email-input {
    padding: 12px 16px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    color: #F5F5F5;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
}
.ofw-email-input:focus {
    border-color: #C5A059;
}
.ofw-email-input::placeholder {
    color: #777;
}
.ofw-spin-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #C5A059 0%, #B8860B 100%);
    color: #0B0B0B;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.ofw-spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, .35);
}
.ofw-spin-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spins left */
.ofw-spins-left {
    color: #888;
    font-size: 13px;
    margin-top: 10px;
}

/* Result */
.ofw-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}
.ofw-result.ofw-win {
    background: linear-gradient(135deg, rgba(197,160,89,.15), rgba(197,160,89,.05));
    border: 1px solid #C5A059;
    color: #C5A059;
}
.ofw-result.ofw-lose {
    background: rgba(255,255,255,.05);
    border: 1px solid #444;
    color: #aaa;
}
.ofw-result .ofw-coupon-code {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    background: #C5A059;
    color: #0B0B0B;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    border-radius: 6px;
    user-select: all;
}

/* Right panel – Wheel */
.ofw-right {
    flex-shrink: 0;
}
.ofw-wheel-container {
    position: relative;
    display: inline-block;
    width: 340px;
    height: 340px;
}
.ofw-wheel-container canvas {
    display: block;
}
.ofw-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid #C5A059;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
    z-index: 2;
}

/* ── Side Launcher ── */
.ofw-launcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C5A059 0%, #B8860B 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(197, 160, 89, .4);
    transition: transform .2s, box-shadow .2s;
    animation: ofwPulse 2.5s ease-in-out infinite;
}
.ofw-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(197, 160, 89, .55);
}
@keyframes ofwPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(197, 160, 89, .4); }
    50%      { box-shadow: 0 4px 30px rgba(197, 160, 89, .7); }
}

/* ── Responsive ── */
@media (max-width: 680px) {
    .ofw-popup-inner {
        flex-direction: column-reverse;
        padding: 28px 20px;
        gap: 16px;
    }
    .ofw-wheel-container {
        width: 260px;
        height: 260px;
    }
    .ofw-wheel-container canvas {
        width: 260px;
        height: 260px;
    }
    .ofw-title {
        font-size: 24px;
        text-align: center;
    }
    .ofw-subtitle {
        text-align: center;
    }
    .ofw-popup {
        max-width: 95vw;
    }
}
