.squarewoo-gift-wheel {
    --sqwgw-bg: linear-gradient(165deg, #ece6f8 0%, #ddd5f1 48%, #d3cce9 100%);
    --sqwgw-border: rgba(255, 255, 255, 0.58);
    --sqwgw-title: #18152a;
    --sqwgw-subtitle: #564f73;
    --sqwgw-wheel-size: min(76vw, 360px);
    --sqwgw-frame-size: calc(var(--sqwgw-wheel-size) + 58px);
    --sqwgw-button-bg: linear-gradient(180deg, #ff8615 0%, #ff6200 100%);
    --sqwgw-button-text: #ffffff;
    --sqwgw-shadow: 0 26px 50px -30px rgba(35, 26, 75, 0.72);
    position: relative;
    overflow: hidden;
    background: var(--sqwgw-bg);
    border: 1px solid var(--sqwgw-border);
    border-radius: 30px;
    box-shadow: var(--sqwgw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 24px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.squarewoo-gift-wheel::before,
.squarewoo-gift-wheel::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: 0.55;
}

.squarewoo-gift-wheel::before {
    width: 180px;
    height: 180px;
    left: -42px;
    bottom: -58px;
    background:
        radial-gradient(circle at 24% 28%, rgba(255, 108, 108, 0.88) 0 12px, transparent 13px),
        radial-gradient(circle at 76% 30%, rgba(255, 211, 92, 0.84) 0 10px, transparent 11px),
        radial-gradient(circle at 42% 76%, rgba(63, 208, 196, 0.85) 0 14px, transparent 15px),
        radial-gradient(circle at 72% 72%, rgba(124, 95, 214, 0.9) 0 13px, transparent 14px);
    filter: blur(0.1px);
}

.squarewoo-gift-wheel::after {
    width: 165px;
    height: 165px;
    right: -38px;
    top: -48px;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 99, 99, 0.86) 0 10px, transparent 11px),
        radial-gradient(circle at 70% 26%, rgba(106, 225, 131, 0.9) 0 12px, transparent 13px),
        radial-gradient(circle at 36% 70%, rgba(255, 188, 56, 0.88) 0 9px, transparent 10px),
        radial-gradient(circle at 76% 74%, rgba(46, 196, 232, 0.9) 0 13px, transparent 14px);
    filter: blur(0.1px);
}

.squarewoo-gift-wheel__header {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    text-align: center;
}

.squarewoo-gift-wheel__title {
    margin: 0;
    color: var(--sqwgw-title);
    font-size: clamp(1.35rem, 2.7vw, 2rem);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.squarewoo-gift-wheel__subtitle {
    margin: 7px 0 0;
    color: var(--sqwgw-subtitle);
    font-size: 0.95rem;
    font-weight: 600;
}

.squarewoo-gift-wheel__stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    padding-top: 18px;
}

.squarewoo-gift-wheel__pointer {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 19px solid transparent;
    border-right: 19px solid transparent;
    border-top: 40px solid #f59e0b;
    z-index: 10;
    transform: translateX(-50%);
    filter: drop-shadow(0 9px 12px rgba(15, 23, 42, 0.28));
}

.squarewoo-gift-wheel__pointer::before {
    content: '';
    position: absolute;
    top: -38px;
    left: -13px;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 24px solid #fff4bf;
}

.squarewoo-gift-wheel__pointer-core {
    position: absolute;
    left: 50%;
    top: -43px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #fff8db 0%, #facc15 56%, #d97706 100%);
    border: 2px solid #f59e0b;
    transform: translateX(-50%);
}

.squarewoo-gift-wheel__frame {
    position: relative;
    width: var(--sqwgw-frame-size);
    height: var(--sqwgw-frame-size);
    border-radius: 999px;
    padding: 24px;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.66), transparent 40%),
        linear-gradient(145deg, #ffeaa8 0%, #f8cc58 33%, #f59e0b 64%, #ca6d00 100%);
    box-shadow:
        inset 0 0 0 2px rgba(255, 251, 235, 0.78),
        inset 0 -6px 14px rgba(120, 53, 15, 0.32),
        0 16px 28px -14px rgba(120, 53, 15, 0.58);
}

.squarewoo-gift-wheel__frame::before {
    content: 'BOŞ YOK';
    position: absolute;
    right: -18px;
    top: 34px;
    width: 94px;
    height: 94px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 34% 28%, #9f93dd 0%, #7f71ca 58%, #6150b6 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0.03em;
    text-align: center;
    box-shadow: 0 14px 22px -16px rgba(52, 40, 122, 0.72);
    z-index: 12;
}

.squarewoo-gift-wheel__frame::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
    pointer-events: none;
}

.squarewoo-gift-wheel__lights {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.squarewoo-gift-wheel__lights::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: repeating-conic-gradient(
        from -90deg,
        #fffef0 0deg 3.8deg,
        #fef3ad 3.8deg 8.2deg,
        transparent 8.2deg 13.2deg
    );
    -webkit-mask: radial-gradient(circle at center, transparent 61%, #000 62%, #000 73.5%, transparent 74.4%);
    mask: radial-gradient(circle at center, transparent 61%, #000 62%, #000 73.5%, transparent 74.4%);
    opacity: 0.98;
    animation: sqwgw-light-pulse 1.8s linear infinite;
}

.squarewoo-gift-wheel__lights::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, transparent 65%, rgba(255, 236, 132, 0.38) 71%, transparent 80%);
    filter: blur(0.6px);
    pointer-events: none;
}

.squarewoo-gift-wheel__wheel {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 6px solid rgba(255, 255, 255, 0.86);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.56),
        inset 0 -8px 16px rgba(15, 23, 42, 0.22);
    background: conic-gradient(from -90deg, #64748b 0% 100%);
    position: relative;
    overflow: hidden;
    transition: transform 4.2s cubic-bezier(0.1, 0.7, 0.1, 1);
    z-index: 3;
}

.squarewoo-gift-wheel__wheel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.23), transparent 44%);
    pointer-events: none;
    z-index: 1;
}

.squarewoo-gift-wheel__wheel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(circle at center, transparent 44%, rgba(15, 23, 42, 0.18) 100%);
    pointer-events: none;
    z-index: 2;
}

.squarewoo-gift-wheel__segments {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
}

.squarewoo-gift-wheel__segment-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    z-index: 4;
    pointer-events: none;
}

.squarewoo-gift-wheel__segment-text {
    display: inline-block;
    max-width: calc(var(--sqwgw-wheel-size) * 0.3);
    font-size: var(--sqwgw-label-size, 11px);
    line-height: 1.07;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    text-transform: uppercase;
    color: var(--sqwgw-label-color, #ffffff);
    text-shadow: 0 2px 5px rgba(39, 29, 98, 0.42);
}

.squarewoo-gift-wheel__hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(circle at 32% 30%, #fff8d8 0%, #facc15 48%, #d97706 100%);
    border: 4px solid rgba(255, 247, 204, 0.92);
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.52),
        0 8px 14px rgba(120, 53, 15, 0.38);
    z-index: 7;
}

.squarewoo-gift-wheel__hub::after {
    content: 'ÇEVİR';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    letter-spacing: 0.09em;
    font-weight: 900;
    color: #7c2d12;
}

.squarewoo-gift-wheel__actions {
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.squarewoo-gift-wheel__spin-button {
    border: 0;
    border-radius: 16px;
    height: 50px;
    background: var(--sqwgw-button-bg);
    color: var(--sqwgw-button-text);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 16px 24px -16px rgba(247, 96, 8, 0.95);
}

.squarewoo-gift-wheel__spin-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.squarewoo-gift-wheel__spin-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.squarewoo-gift-wheel__result {
    min-height: 24px;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.34);
}

.squarewoo-gift-wheel__result.is-success {
    color: #14532d;
    background: rgba(74, 222, 128, 0.2);
}

.squarewoo-gift-wheel__result.is-error {
    color: #7f1d1d;
    background: rgba(252, 165, 165, 0.24);
}

.squarewoo-gift-wheel__result.is-info {
    color: #0f172a;
    background: rgba(147, 197, 253, 0.26);
}

.squarewoo-gift-wheel-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.squarewoo-gift-wheel-popup.is-visible {
    display: block;
}

.squarewoo-gift-wheel-popup__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 16, 44, 0.62);
    backdrop-filter: blur(2px);
    padding: 0;
    cursor: pointer;
}

.squarewoo-gift-wheel-popup__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(95vw, 760px);
    max-height: 92vh;
    overflow: auto;
    padding: 12px;
}

.squarewoo-gift-wheel-popup__close {
    position: absolute;
    right: 24px;
    top: 20px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 16, 44, 0.84);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 14;
    display: grid;
    place-items: center;
}

.squarewoo-gift-wheel-popup .squarewoo-gift-wheel {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

@keyframes sqwgw-light-pulse {
    0%,
    100% {
        opacity: 0.86;
    }

    50% {
        opacity: 1;
    }
}

body.sqwgw-popup-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .squarewoo-gift-wheel {
        padding: 28px 30px;
    }
}

@media (max-width: 767px) {
    .squarewoo-gift-wheel-popup__dialog {
        width: min(96vw, 760px);
        padding: 8px;
    }

    .squarewoo-gift-wheel-popup__close {
        right: 16px;
        top: 12px;
    }

    .squarewoo-gift-wheel {
        --sqwgw-wheel-size: min(79vw, 308px);
        --sqwgw-frame-size: calc(var(--sqwgw-wheel-size) + 42px);
    }

    .squarewoo-gift-wheel__frame {
        padding: 18px;
    }

    .squarewoo-gift-wheel__frame::before {
        right: -10px;
        top: 40px;
        width: 76px;
        height: 76px;
        font-size: 0.9rem;
    }

    .squarewoo-gift-wheel__segment-text {
        max-width: calc(var(--sqwgw-wheel-size) * 0.24);
        font-size: 9.5px;
    }
}
