.swcp-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--swcp-overlay-bg, rgba(0, 0, 0, 0.7));
    padding: 24px;
    z-index: 999999;
}

.swcp-overlay.swcp-visible {
    display: flex;
}

.swcp-modal {
    position: relative;
    width: min(100%, var(--swcp-popup-max-width, 1160px));
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--swcp-popup-bg, #0d1126), color-mix(in srgb, var(--swcp-popup-bg, #0d1126) 65%, #1d2857));
    color: var(--swcp-text, #fff);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.swcp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255,255,255,0.12);
    color: #fff;
    z-index: 3;
}

.swcp-layout {
    display: grid;
    grid-template-columns: minmax(520px, 1.2fr) minmax(320px, 0.8fr);
    min-height: 720px;
}

.swcp-wheel-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14), rgba(255,255,255,0) 52%),
        linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
}

.swcp-wheel-wrap {
    position: relative;
    width: min(100%, var(--swcp-wheel-size, 600px));
    aspect-ratio: 1 / 1;
}

.swcp-wheel-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    filter: drop-shadow(0 18px 36px rgba(0,0,0,0.35));
}

.swcp-pointer {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 0;
    border-bottom: 54px solid var(--swcp-pointer, #ffda6b);
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}

.swcp-wheel-center {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: #fff;
    color: #0c1022;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.18em;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    z-index: 1;
}

.swcp-form-panel {
    background: var(--swcp-panel-bg, #151b35);
    display: flex;
    align-items: center;
}

.swcp-content {
    width: 100%;
    padding: 52px 42px;
}

.swcp-kicker {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--swcp-muted-text, #cbd5ff);
}

.swcp-content h2 {
    margin: 0 0 14px;
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1.02;
    color: var(--swcp-text, #fff);
}

.swcp-subheadline,
.swcp-success-text,
.swcp-message {
    color: var(--swcp-muted-text, #d8def5);
    font-size: 16px;
    line-height: 1.55;
}

.swcp-form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.swcp-form label {
    font-size: 13px;
    font-weight: 600;
}

.swcp-form input {
    height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: var(--swcp-input-bg, #fff);
    color: var(--swcp-input-text, #101828);
    padding: 0 16px;
    font-size: 16px;
}

.swcp-submit,
.swcp-copy-code {
    height: 54px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    background: var(--swcp-button-bg, #f5ca62);
    color: var(--swcp-button-text, #111);
}

.swcp-submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

.swcp-message {
    min-height: 28px;
    margin-top: 16px;
}

.swcp-result {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
}

.swcp-win-label {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.swcp-code-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.swcp-code {
    flex: 1;
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(0,0,0,0.22);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .swcp-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .swcp-wheel-panel {
        padding: 26px 20px 10px;
    }

    .swcp-form-panel {
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .swcp-content {
        padding: 30px 22px 28px;
    }
}

@media (max-width: 640px) {
    .swcp-overlay {
        padding: 12px;
    }

    .swcp-modal {
        border-radius: 22px;
    }

    .swcp-wheel-center {
        width: 92px;
        height: 92px;
        font-size: 12px;
    }

    .swcp-pointer {
        border-left-width: 18px;
        border-right-width: 18px;
        border-bottom-width: 40px;
    }
}
