#ksw-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#ksw-overlay.active {
    display: flex;
}

#ksw-popup {
    background: #fff;
    border-radius: 16px;
    width: 820px;
    max-width: 96vw;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.35);
}

#ksw-close {
    position: absolute;
    top: 12px; right: 14px;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 30px;
    text-align: center;
    z-index: 10;
}

#ksw-close:hover { background: #ddd; }

/* ── SOL: Çark ── */
#ksw-left {
    background: #e8f0e3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    min-width: 320px;
}

#ksw-wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
}

#ksw-canvas {
    display: block;
}

#ksw-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    z-index: 2;
    line-height: 1;
}

/* ── Logo ── */
#ksw-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-sizing: border-box;
    z-index: 3;
    pointer-events: none;
}

/* ── SAĞ: Form ── */
#ksw-right {
    padding: 32px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#ksw-right h2 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #111;
    letter-spacing: 0.3px;
}

#ksw-right > p {
    font-size: 13px;
    color: #888;
    margin: 0 0 16px;
}

/* Inputlar */
#ksw-form input[type="text"],
#ksw-form input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 10px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    color: #222;
    transition: border 0.2s;
    background: #fafafa;
}

#ksw-form input:focus {
    border-color: #2e7d32;
    background: #fff;
    outline: none;
}

/* Checkboxlar */
.ksw-checkbox-wrap {
    margin-bottom: 9px;
}

.ksw-checkbox-wrap label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.ksw-checkbox-wrap input[type="checkbox"] {
    margin-top: 2px;
    min-width: 15px;
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #2e7d32;
    flex-shrink: 0;
}

.ksw-checkbox-wrap span {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
}

.ksw-checkbox-wrap a {
    color: #2e7d32;
    text-decoration: underline;
}

/* Buton */
#ksw-spin-btn {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: background 0.25s;
    letter-spacing: 0.3px;
}

#ksw-spin-btn:hover    { background: #1b5e20; }
#ksw-spin-btn:disabled { background: #aaa; cursor: not-allowed; }

/* Hata */
#ksw-error {
    margin-top: 8px;
    font-size: 12px;
    color: #fff;
    background: #c62828;
    border-radius: 6px;
    padding: 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

#ksw-error.show {
    padding: 9px 12px;
    max-height: 80px;
}

/* Sonuç */
#ksw-result {
    display: none;
    margin-top: 10px;
}

#ksw-result-inner {
    background: #f1f8e9;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    border: 1.5px solid #c8e6c9;
}

#ksw-prize-label {
    font-size: 14px;
    color: #555;
    margin: 0 0 4px;
    font-weight: 600;
}

#ksw-prize-text {
    font-size: 22px;
    font-weight: 800;
    color: #1b5e20;
    margin: 0 0 14px;
}

#ksw-coupon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#ksw-coupon-code {
    font-size: 22px;
    font-weight: 800;
    color: #1b5e20;
    letter-spacing: 3px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px dashed #2e7d32;
    display: inline-block;
}

#ksw-copy-btn {
    background: #2e7d32;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

#ksw-copy-btn:hover { background: #1b5e20; }

/* ── MOBİL ── */
@media (max-width: 620px) {
    #ksw-popup {
        flex-direction: column;
        width: 94vw;
        max-height: 94vh;
        overflow-y: auto;
        border-radius: 12px;
    }

    #ksw-left {
        min-width: unset;
        padding: 24px 16px 16px;
    }

    #ksw-wheel-container {
        width: 220px;
        height: 220px;
        margin: 0 auto;
        position: relative;
    }

    #ksw-canvas {
        width: 220px !important;
        height: 220px !important;
    }

    #ksw-right {
        padding: 20px 18px 24px;
    }

    #ksw-right h2 {
        font-size: 16px;
    }
}