.vip-page-container .wrapper {
    background-color: #ffffff;
}

.vip-page-container .wheel-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: auto;
    z-index: -2;
}

.vip-page-container svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
    transition: transform 5s cubic-bezier(0.33, 1, 0.68, 1);
}

.vip-page-container .pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, #cc0000, #990000);
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.vip-page-container .pointer::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 20%;
    width: 20%;
    height: 30%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.vip-page-container .spin-btn:hover {
    background: linear-gradient(to bottom, #ffe34d, #ff9900);
    box-shadow:
        0 5px 0 #c87e00,
        0 8px 18px rgba(0, 0, 0, 0.5),
        inset 0 -3px 5px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.vip-page-container .spin-btn:active {
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
}

.vip-page-container .result {
    margin-top: 20px;
    font-size: 20px;
    display: none;
    padding: 10px;
}

.vip-page-container .promo-code {
    font-weight: bold;
    color: #cc0000;
    cursor: pointer;
}

.vip-page-container .flyer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 20px 0;
}

.vip-page-container .flyer-title {
    width: 90%;
    margin: 0 auto;
}

.vip-page-container .flyer-title H2 {
    color: #666;
    font-size: 22px;
}

.vip-page-container .flyer {
    background-color: #ffffff;
    text-align: center;
    box-sizing: border-box;
    min-height: 400px;
    /* Preserve space for wheel */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vip-page-container .flyer-subtitle,
.vip-page-container .flyer-note,
.vip-page-container .flyer-footer {
    font-size: 16px;
    color: #444;
    margin: 12px 0;
    font-style: italic;
    max-width: 480px;
    margin: 0 auto 30px auto;
}

.vip-page-container .flyer-error {
    color: #d9534f;
    font-size: 16px;
}

.vip-page-container .promo-code-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 20px 0;
}

.vip-page-container .promo-label {
    font-size: 16px;
    color: #777;
    margin-bottom: 8px;
}

.vip-page-container #promoLabel,
.vip-page-container #promoCode,
.vip-page-container #promoCodeButton {
    display: none;
}

.vip-page-container .promo-code {
    font-size: 28px;
    font-weight: bold;
    color: #2d2d2d;
    background: #f0f0f0;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.vip-page-container .promo-code.flash {
    background-color: #d4edda;
    color: #155724;
    box-shadow: 0 0 0 3px #28a745;
}

.vip-page-container .flyer-copy-button {
    background-color: #4CAF50;
    color: white;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.vip-page-container .flyer-copy-button:hover {
    background-color: #45a049;
}

.vip-page-container .flyer-button {
    margin-top: 20px;
    display: inline-block;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 8px;
}

.vip-page-container .flyer .p_offer {
    font-size: 24px;
    font-weight: 900;
}

.vip-page-container .wheel-border {
    position: relative;
    width: 330px;
    /* Wider for balls */
    height: 330px;
    background: radial-gradient(circle, #2d2d2d, #1a1a1a);
    border: 12px solid #d4af37;
    border-radius: 50%;
    margin: auto;
    z-index: 15;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 4px #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(45deg, #d4af37 25%, transparent 25%),
        linear-gradient(-45deg, #d4af37 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #d4af37 75%),
        linear-gradient(-45deg, transparent 75%, #d4af37 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
}

/* Скляний блік поверх всього колеса */
.vip-page-container .wheel-gloss {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 50;
}

.vip-page-container .wheel-border::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #f6e27a 0%, #e0b100 60%, #8b6b00 100%);
    border-radius: 50%;
    z-index: 60;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    border: 2px solid #b8860b;
}

.vip-page-container .wheel-stand {
    position: relative;
    top: -15px;
    left: 27%;
    width: 180px;
    height: 45px;
    background: linear-gradient(to right, #d4af37, #956c09, #a68414);
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
    transform: translateX(-50%);
    z-index: 8;
    border-top: 2px solid #d4af37;
}

.vip-page-container .wheel-leg {
    position: relative;
    top: -15px;
    left: 36%;
    width: 240px;
    height: 20px;
    background: linear-gradient(to bottom, #d4af37, #8b6b00);
    border-radius: 10px;
    transform: translateX(-50%);
    z-index: 9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.vip-page-container .spin-btn {
    margin: 10px auto 10px auto;
    padding: 14px 40px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 3px #000;
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    border: 3px solid #fff5cc;
    border-radius: 12px;
    box-shadow:
        0 4px 0 #c87e00,
        0 6px 15px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: block;
}

.vip-page-container .spin-cta {
    font-size: 22px;
    font-weight: 800;
    color: #ff3c00;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 60, 0, 0.3);
    animation: pulseGame 1.5s infinite alternate ease-in-out;
    letter-spacing: 0.5px;
    line-height: 1.3;
    padding: 0 10px;
}

@keyframes pulseGame {
    from {
        transform: scale(1);
        color: #ff3c00;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 60, 0, 0.3);
    }

    to {
        transform: scale(1.08);
        color: #ff9900;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 153, 0, 0.5);
    }
}

.vip-page-container .win-animate {
    animation: winPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes winPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vip-page-container .promo-animate {
    animation: promoGlow 2s infinite alternate;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    border: 2px solid #ffd700;
}

@keyframes promoGlow {
    from {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        background-color: #f0f0f0;
    }

    to {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        background-color: #fff9db;
    }
}

.vip-page-container .restricted-notice {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    margin: 10px auto;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 10;
}

.vip-page-container .restricted-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.vip-page-container .restricted-notice h3 {
    color: #002741;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.vip-page-container .restricted-notice p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.vip-page-container .restricted-notice .small {
    font-size: 14px;
    color: #888;
}

.vip-page-container .vip-btn-restricted {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    margin-top: 10px;
    background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.vip-page-container .vip-btn-restricted:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.4);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vip-page-container .win-instructions {
    background: linear-gradient(135deg, #fff9db 0%, #fff3bf 100%);
    border: 2px dashed #ff9800;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0 25px 0;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    animation: glowPulse 2s infinite alternate;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.vip-page-container .win-instructions p {
    font-size: 16px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.vip-page-container .win-instructions strong {
    color: #cc0000;
    font-size: 18px;
}

@keyframes glowPulse {
    from {
        box-shadow: 0 4px 10px rgba(255, 152, 0, 0.2);
        border-color: #ff9800;
    }

    to {
        box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
        border-color: #f44336;
    }
}

.vip-page-container .terms-container {
    margin-top: 40px;
    background: #fdfdfd;
    border-top: 4px solid #002741;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.vip-page-container .terms-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.vip-page-container .terms-icon {
    font-size: 24px;
    margin-right: 12px;
}

.vip-page-container .terms-header h3 {
    margin: 0;
    font-size: 22px;
    color: #002741;
    font-weight: bold;
}

.vip-page-container .terms-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.vip-page-container .terms-content br {
    margin-bottom: 10px;
}

.vip-page-container .promo-history-container {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: left;
}

.vip-page-container .history-title {
    margin-bottom: 15px;
    font-size: 18px;
    color: #002741;
    font-weight: bold;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.vip-page-container .history-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.vip-page-container .history-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 5px;
}

.vip-page-container .history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vip-page-container .history-code {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 18px;
    color: #002741;
}

.vip-page-container .history-copy {
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.vip-page-container .history-copy:hover {
    background: #45a049;
    transform: scale(1.05);
}

.vip-page-container .history-code.flash {
    color: #4caf50;
    animation: flashGreen 0.6s ease;
}

@keyframes flashGreen {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .vip-page-container .terms-container {
        padding: 15px;
        margin-top: 20px;
    }

    .vip-page-container .terms-header h3 {
        font-size: 18px;
    }

    .vip-page-container .terms-content {
        font-size: 14px;
    }
}