.vip-page {
    position: relative;
    overflow: hidden;
    margin: 0 0 8px;
    padding: 4px 8px 10px;
    border: 1px solid #3a3a3a;
    background: #161616;
}

.vip-rain {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.vip-coin {
    position: absolute;
    top: -28px;
    left: var(--x);
    width: 16px;
    height: 16px;
    opacity: 0;
    image-rendering: pixelated;
    animation: vip-fall var(--dur) linear infinite;
    animation-delay: var(--delay);
}

.vip-page-body {
    position: relative;
    z-index: 1;
}

.vip-page .page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 10px;
    color: #fcd330;
    font-size: 22px;
    letter-spacing: 0.12em;
}

.vip-title-crown {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.vip-flash {
    margin: 0 0 12px;
    padding: 8px 10px;
    color: #fff4c2;
    background: rgba(42, 34, 8, 0.9);
    border: 1px solid #fcd330;
}

.vip-hero {
    margin: 0 0 14px;
    padding: 14px 12px 12px;
    background: #1c1c1c;
    border: 1px solid #4a4a4a;
}

.vip-kicker {
    margin: 0 0 4px;
    color: #fcd330;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vip-hero h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
}

.vip-status,
.vip-balance {
    margin: 0;
    color: #d4d4d4;
    font-size: 13px;
}

.vip-balance {
    margin-top: 8px;
}

.vip-balance strong,
.vip-status strong {
    color: #fcd330;
}

.vip-perks {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.vip-perks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 8px;
    padding: 8px;
    background: #222;
    border: 1px solid #3e3e3e;
    box-shadow: inset 2px 0 0 #6e6240;
}

.vip-perk-value {
    flex: 0 0 52px;
    color: #fcd330;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
}

.vip-perks li span:last-child {
    color: #ddd;
    font-size: 13px;
    line-height: 1.35;
}

.vip-chest-car {
    margin: 0 0 16px;
    padding: 12px;
    background: #1c1a16;
    border: 1px solid #8a7340;
}

.vip-chest-car h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
}

.vip-chest-car p:last-child {
    margin: 8px 0 0;
    color: #ddd;
    font-size: 13px;
    line-height: 1.4;
}

.vip-chest-car strong {
    color: #fcd330;
}

.vip-chest-car-sprite {
    margin: 4px 0 2px;
    line-height: 0;
}

.vip-soon {
    margin: 0 0 16px;
    padding: 8px 10px;
    color: #fcd330;
    font-size: 13px;
    line-height: 1.35;
    background: #1c1a16;
    border: 1px solid #6e6240;
}

.vip-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.vip-plan {
    position: relative;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #3e3e3e;
}

.vip-plan.is-featured {
    background: #1c1a16;
    border-color: #8a7340;
}

.vip-plan-note {
    margin: 0 0 4px;
    color: #fcd330;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vip-plan h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.vip-plan-price {
    margin: 6px 0 0;
    color: #fcd330;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.vip-ex {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    image-rendering: pixelated;
}

.vip-plan-day,
.vip-plan-short {
    margin: 4px 0 8px;
    color: #aaa;
    font-size: 12px;
}

.vip-plan form {
    margin: 0;
}

.vip-page .vip-buy {
    position: relative;
    overflow: hidden;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #fff1b0;
    border-bottom-color: #8a5a08;
    border-right-color: #8a5a08;
    background: linear-gradient(180deg, #fff3c0 0%, #fcd330 46%, #c89212 100%);
    color: #2a1c00;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.vip-page .vip-buy:hover {
    background: linear-gradient(180deg, #fff8dc 0%, #ffe27a 46%, #e0ad22 100%);
    color: #2a1c00;
}

.vip-plan.is-featured .vip-buy::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 28%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: vip-shine 2.6s ease-in-out infinite;
}

.vip-page .vip-buy:disabled {
    opacity: 0.45;
    filter: grayscale(0.35);
    cursor: default;
    box-shadow: none;
}

.vip-page .vip-buy:disabled::after {
    display: none;
}

.vip-page .main-menu {
    margin-top: 4px;
}

.vip-nick {
    display: inline-block;
    margin-left: 4px;
    padding: 0 4px;
    color: #1a1400 !important;
    background: #fcd330;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 14px;
    vertical-align: 1px;
    text-decoration: none;
}

.vip-icon {
    width: 14px;
    height: 14px;
    margin: 0 2px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.main-menu > .menu-item > a > img[src*="vip.png"] {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.vip-hint {
    margin: 8px 0;
    color: #fcd330;
    font-size: 13px;
}

@keyframes vip-fall {
    0% {
        transform: translate3d(0, -36px, 0) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--drift), 1280px, 0) rotate(var(--spin));
        opacity: 0.15;
    }
}

@keyframes vip-shine {
    0% {
        left: -40%;
    }
    55%,
    100% {
        left: 140%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vip-rain {
        display: none;
    }

    .vip-plan.is-featured,
    .vip-plan.is-featured .vip-buy::after {
        animation: none;
    }
}
