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

.pkd-spinner-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.pkd-wheel-container {
    margin: auto;
    position: relative;
    width: min(37.5rem, 90vw, 90vh);
    height: min(37.5rem, 90vw, 90vh);
    margin-bottom: clamp(2rem, 5vw, 5rem);
}

.pkd-wheel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.pkd-wheel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: clamp(0.25rem, 0.8vw, 0.5rem) solid #d4af37;
    box-shadow: 0 0 clamp(1rem, 3vw, 2rem) rgba(212, 175, 55, 0.5);
    background: #000;
    overflow: hidden;
}

.pkd-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(4rem, 13.5vw, 8rem);
    height: clamp(4rem, 13.5vw, 8rem);
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 clamp(0.75rem, 2.5vw, 1.5rem) rgba(212, 175, 55, 0.8);
}

.pkd-wheel-center-text {
    font-size: clamp(1rem, 3.4vw, 2rem);
    font-weight: bold;
    color: #000;
    letter-spacing: clamp(0.0625rem, 0.2vw, 0.125rem);
}

.pkd-segment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%);
    background: #000;
}

.pkd-segment::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: clamp(0.0625rem, 0.2vw, 0.125rem);
    height: 50%;
    background: #d4af37;
    transform-origin: bottom center;
}

.pkd-segment-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: clamp(1rem, 3.4vw, 2rem);
}

.pkd-segment-image {
    width: clamp(3rem, 10vw, 6rem);
    height: clamp(2.25rem, 7.5vw, 4.5rem);
    object-fit: cover;
    margin-bottom: clamp(0.25rem, 0.8vw, 0.5rem);
    border-radius: clamp(0.125rem, 0.4vw, 0.25rem);
}

.pkd-segment-text {
    font-size: clamp(0.5rem, 1.5vw, 0.875rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: clamp(0.03rem, 0.1vw, 0.0625rem);
    color: #F5DEB3;
    margin-bottom: clamp(0.125rem, 0.4vw, 0.25rem);
}

.pkd-segment-discount {
    font-size: clamp(0.625rem, 1.9vw, 1.125rem);
    font-weight: bold;
    color: #FFD700;
}

.pkd-pointer {
    position: absolute;
    top: 48%;
    left: 46%;
    width: 0;
    height: 0;
    border-left: clamp(0.625rem, 2.1vw, 1.25rem) solid transparent;
    border-right: clamp(0.625rem, 2.1vw, 1.25rem) solid transparent;
    border-bottom: clamp(1.25rem, 4.2vw, 2.5rem) solid #d4af37;
    z-index: 15;
    filter: drop-shadow(0 clamp(0.125rem, 0.4vw, 0.25rem) clamp(0.25rem, 0.8vw, 0.5rem) rgba(212, 175, 55, 0.8));
    margin-top: calc(clamp(4rem, 13.5vw, 8rem) / 2);
    transform: scaleY(-1);
}

.pkd-pointer::before {
    content: '';
    position: absolute;
    top: clamp(1.25rem, 4.2vw, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(0.375rem, 1.3vw, 0.75rem);
    height: clamp(0.375rem, 1.3vw, 0.75rem);
    background: #d4af37;
    border-radius: 50%;
}

.pkd-spin-button {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000;
    border: none;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: clamp(0.0625rem, 0.2vw, 0.125rem);
    border-radius: clamp(1.5rem, 5vw, 3.125rem);
    cursor: pointer;
    box-shadow: 0 clamp(0.25rem, 0.8vw, 0.5rem) clamp(0.75rem, 2.5vw, 1.5rem) rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 20px;
}

.pkd-spin-button:hover:not(:disabled) {
    transform: translateY(clamp(-0.0625rem, -0.2vw, -0.125rem));
    box-shadow: 0 clamp(0.375rem, 1.3vw, 0.75rem) clamp(1rem, 3.4vw, 2rem) rgba(212, 175, 55, 0.7);
}

.pkd-spin-button:active:not(:disabled) {
    transform: translateY(0);
}

.pkd-spin-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pkd-result-display {
    margin-top: clamp(1rem, 3vw, 2rem);
    text-align: center;
    min-height: clamp(2rem, 5vw, 4rem);
    padding: 0 1rem;
}

.pkd-result-text {
    color: #d4af37;
    font-size: clamp(1rem, 2.9vw, 1.75rem);
    font-weight: bold;
    text-shadow: 0 clamp(0.125rem, 0.4vw, 0.25rem) clamp(0.25rem, 0.8vw, 0.5rem) rgba(212, 175, 55, 0.5);
}

@media (max-width: 575.98px) {
    body {
        padding: 0.5rem;
    }

    .pkd-wheel-container {
        width: min(90vw, 90vh);
        height: min(90vw, 90vh);
        margin-bottom: 2rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .pkd-wheel-container {
        width: min(80vw, 80vh);
        height: min(80vw, 80vh);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .pkd-wheel-container {
        width: min(70vw, 70vh);
        height: min(70vw, 70vh);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .pkd-wheel-container {
        width: min(60vw, 60vh);
        height: min(60vw, 60vh);
    }
}

@media (min-width: 1200px) {
    .pkd-wheel-container {
        width: 37.5rem;
        height: 37.5rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    body {
        justify-content: flex-start;
        padding-top: 1rem;
    }

    .pkd-wheel-container {
        width: min(60vh, 90vw);
        height: min(60vh, 90vw);
        margin-bottom: 1rem;
    }

    .pkd-result-display {
        margin-top: 0.5rem;
        min-height: 2rem;
    }
}

@media (max-width: 360px) {
    .pkd-segment-text {
        font-size: 0.4rem;
    }

    .pkd-segment-discount {
        font-size: 0.55rem;
    }
}

/* Popup Styles */
.pkd-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.pkd-popup-overlay.pkd-active {
    display: flex;
}

.pkd-popup-container {
    position: relative;
    background: #000;
    border: 2px solid #d4af37;
    border-radius: 1rem;
    max-width: 64.25rem;
    width: 90%;
    padding: 3rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 0 2rem rgba(212, 175, 55, 0.5);
}

.pkd-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #d4af37;
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pkd-popup-close:hover {
    color: #f4d03f;
    transform: rotate(90deg);
}

.pkd-popup-title {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: capitalize;
}

.pkd-popup-image-container {
    margin-bottom: 2rem;
}

.pkd-popup-product-image {
    max-width: 12.5rem;
    height: auto;
    object-fit: contain;
}

.pkd-popup-discount {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
}

.pkd-popup-description {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.pkd-popup-code-container {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pkd-popup-code {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.125rem;
}

.pkd-popup-copy-button {
    background: #fff;
    border: 2px solid #000;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.pkd-popup-copy-button:hover {
    background: #000;
    color: #fff;
    border-color: #d4af37;
}

@media (max-width: 575.98px) {
    .pkd-popup-container {
        padding: 2rem 1.5rem 1.5rem;
    }

    .pkd-popup-title {
        font-size: 2rem;
    }

    .pkd-popup-discount {
        font-size: 2rem;
    }

    .pkd-popup-code {
        font-size: 1.125rem;
    }
}