/* ==========================================================================
   Home VIP banner — "crown medallion + validity ring" (VIP design 1-A)
   Markup: partials/home/vip-banner.php
   The banner stays dark in day mode too: it reads as a premium gold-on-black card.
   ========================================================================== */

.atv-vip {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1320px; /* same column as the home rows */
    margin: 34px auto 0;
    padding: 1.5px;
    border-radius: 34px;
    overflow: hidden;
    direction: rtl;
    color: #eef0f4;
    background: rgba(245, 196, 81, 0.22);
    box-shadow: 0 40px 80px -56px rgba(245, 185, 66, 0.6);
}
/* a gold light that keeps travelling around the frame */
.atv-vip::before {
    content: "";
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 217, 138, 0.95) 80%, transparent 90%);
    animation: atvVipSweep 7s linear infinite;
}
.atv-vip *,
.atv-vip *::before,
.atv-vip *::after {
    box-sizing: border-box;
}
@keyframes atvVipSweep {
    to { transform: rotate(360deg); }
}
@keyframes atvVipTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.25); }
}
@keyframes atvVipBob {
    50% { transform: translateY(-7px); }
}

.atv-vip__box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 40px;
    align-items: center;
    padding: 44px 48px;
    border-radius: 33px;
    overflow: hidden;
    background:
        radial-gradient(700px 360px at 0% 50%, rgba(245, 185, 66, 0.16), transparent 70%),
        radial-gradient(600px 300px at 100% 0%, rgba(245, 185, 66, 0.08), transparent 70%),
        #121319;
}
.atv-vip__box::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 217, 138, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%);
    mask-image: linear-gradient(90deg, #000, transparent 55%);
}
.atv-vip__en {
    font-family: 'AtvKalameh', 'Vazirmatn', sans-serif;
}

/* ---------- Pitch ---------- */
.atv-vip__info {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.atv-vip__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.atv-vip__pill {
    height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 9px;
    font-family: 'AtvKalameh', 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.6px;
    color: #1c1503;
    background: linear-gradient(180deg, #ffd98a, #f0ab22);
    box-shadow: 0 0 22px -4px rgba(245, 185, 66, 0.8);
}
.atv-vip__pill svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.atv-vip__eyebrow-txt {
    font-size: 13px;
    font-weight: 700;
    color: #f5c451;
}
.atv-vip .atv-vip__title {
    margin: 14px 0 0;
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.45;
    color: #ffffff;
}
.atv-vip__title em {
    font-style: normal;
    white-space: nowrap; /* keep «کیفیت Full HD» / «۱۲ روز باقی مانده» on one line */
    background: linear-gradient(110deg, #ffd98a, #f0ab22 60%, #fff1c9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.atv-vip .atv-vip__desc {
    margin: 10px 0 0;
    max-width: 620px;
    font-size: 14.5px;
    line-height: 2;
    color: #aab0bd;
}
.atv-vip__feats {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    max-width: 640px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
}
.atv-vip__feats li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.atv-vip__feats li > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}
.atv-vip__feats b {
    font-size: 14px;
    color: #ffffff;
}
.atv-vip__feats small {
    font-size: 12.5px;
    color: #8b92a1;
}
.atv-vip__ic {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
    color: #f5c451;
    background: linear-gradient(180deg, rgba(245, 196, 81, 0.18), rgba(245, 196, 81, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 217, 138, 0.25), inset 0 0 0 1px rgba(245, 196, 81, 0.22);
}
.atv-vip__ic svg {
    width: 18px;
    height: 18px;
}
.atv-vip__ic svg.is-fill {
    fill: currentColor;
}
.atv-vip__ic svg.is-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.atv-vip__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 28px;
}
.atv-vip .atv-vip__buy {
    height: 54px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 900;
    color: #1c1503;
    text-decoration: none;
    background: linear-gradient(180deg, #ffd98a, #f0ab22);
    box-shadow: 0 18px 40px -14px rgba(245, 185, 66, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.atv-vip__buy svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.atv-vip__buy i {
    font-size: 13px;
}
.atv-vip .atv-vip__buy:hover {
    color: #1c1503;
    transform: translateY(-2px);
    box-shadow: 0 24px 46px -14px rgba(245, 185, 66, 1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.atv-vip .atv-vip__buy:focus-visible {
    outline: 2px solid #ffd98a;
    outline-offset: 3px;
}
.atv-vip__price {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.atv-vip__price small {
    font-size: 12px;
    color: #8b92a1;
}
.atv-vip__price b {
    font-size: 17px;
    color: #ffd98a;
}
.atv-vip.is-member .atv-vip__price b {
    font-size: 14px;
}

/* ---------- Crown medallion ---------- */
.atv-vip__stage {
    position: relative;
    height: 340px;
    display: grid;
    place-items: center;
}
.atv-vip__rays {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 217, 138, 0.15) 0 5deg, rgba(255, 217, 138, 0) 5deg 15deg);
    -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
    animation: atvVipSweep 50s linear infinite;
}
.atv-vip__halo {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(245, 185, 66, 0.5), rgba(245, 185, 66, 0));
    filter: blur(12px);
}
.atv-vip__medal {
    position: relative;
    width: 250px;
    height: 250px;
    display: grid;
    place-items: center;
}
.atv-vip__ring {
    position: absolute;
    inset: 0;
    width: 250px;
    height: 250px;
    transform: rotate(-90deg);
}
.atv-vip__ring-track {
    fill: none;
    stroke: rgba(255, 217, 138, 0.14);
    stroke-width: 8;
}
.atv-vip__ring-fill {
    fill: none;
    stroke: url(#atvVipGold);
    stroke-width: 8;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(245, 185, 66, 0.85));
}
.atv-vip__dots {
    position: absolute;
    inset: 0;
    animation: atvVipSweep 34s linear infinite reverse;
}
.atv-vip__dots svg {
    width: 250px;
    height: 250px;
}
.atv-vip__dots circle {
    fill: none;
    stroke: rgba(255, 217, 138, 0.5);
    stroke-width: 2;
    stroke-dasharray: 2 9;
}
.atv-vip__core {
    position: relative;
    width: 186px;
    height: 186px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    background: radial-gradient(circle at 35% 25%, #2d2615, #13110b 72%);
    box-shadow:
        inset 0 2px 0 rgba(255, 217, 138, 0.35),
        inset 0 -12px 30px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(245, 196, 81, 0.5),
        0 24px 50px -14px rgba(245, 185, 66, 0.75);
}
.atv-vip__core svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 14px rgba(245, 185, 66, 0.85));
}
.atv-vip__core b {
    margin-top: 4px;
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff1c9, #f5c451 55%, #c98a1c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.atv-vip__core small {
    font-size: 12px;
    font-weight: 700;
    color: #d9b96a;
}
.atv-vip__spark {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd98a;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: atvVipTwinkle 2.6s ease-in-out infinite;
}
.atv-vip__spark.is-sm {
    width: 7px;
    height: 7px;
}
.atv-vip__perk {
    position: absolute;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #ffd98a;
    white-space: nowrap;
    background: rgba(18, 19, 26, 0.8);
    border: 1px solid rgba(245, 196, 81, 0.35);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9);
    animation: atvVipBob 4.5s ease-in-out infinite;
}

/* ---------- Day theme: "champagne" ----------
   The banner used to stay dark on the light page (a heavy black slab between light sections). In day mode it is a
   warm cream-and-gold card; the medal core stays a dark jewel so the crown still glows. */
#animetvApp.day .atv-vip {
    color: #2b2110;
    background: rgba(212, 138, 12, 0.3);
    box-shadow: 0 40px 80px -50px rgba(180, 95, 6, 0.5);
}
#animetvApp.day .atv-vip__box {
    background:
        radial-gradient(700px 360px at 0% 50%, rgba(245, 185, 66, 0.3), transparent 70%),
        radial-gradient(600px 300px at 100% 0%, rgba(255, 217, 138, 0.4), transparent 70%),
        linear-gradient(135deg, #fffaf0, #fdefd0);
}
#animetvApp.day .atv-vip__box::after {
    background-image: radial-gradient(rgba(180, 95, 6, 0.14) 1px, transparent 1px);
}
#animetvApp.day .atv-vip__eyebrow-txt {
    color: #a16207;
}
#animetvApp.day .atv-vip .atv-vip__title {
    color: #1c1503;
}
#animetvApp.day .atv-vip__title em {
    background: linear-gradient(110deg, #d48a0c, #a85a05 60%, #e9a52a);
    -webkit-background-clip: text;
    background-clip: text;
}
#animetvApp.day .atv-vip .atv-vip__desc {
    color: #6b5a3a;
}
#animetvApp.day .atv-vip__feats b {
    color: #2b2110;
}
#animetvApp.day .atv-vip__feats small,
#animetvApp.day .atv-vip__price small {
    color: #8a7a5c;
}
#animetvApp.day .atv-vip__ic {
    color: #b7791f;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 214, 0.9));
    box-shadow: inset 0 0 0 1px rgba(212, 138, 12, 0.3), 0 8px 18px -12px rgba(180, 95, 6, 0.6);
}
#animetvApp.day .atv-vip__price b {
    color: #a85a05;
}
#animetvApp.day .atv-vip__rays {
    background: repeating-conic-gradient(from 0deg, rgba(212, 138, 12, 0.2) 0 5deg, rgba(212, 138, 12, 0) 5deg 15deg);
}
#animetvApp.day .atv-vip__halo {
    background: radial-gradient(closest-side, rgba(245, 185, 66, 0.55), rgba(245, 185, 66, 0));
}
#animetvApp.day .atv-vip__ring-track {
    stroke: rgba(180, 95, 6, 0.16);
}
#animetvApp.day .atv-vip__dots circle {
    stroke: rgba(180, 95, 6, 0.45);
}
#animetvApp.day .atv-vip__spark {
    background: #f0ab22;
}
#animetvApp.day .atv-vip__perk {
    color: #8a5a00;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(212, 138, 12, 0.35);
    box-shadow: 0 10px 24px -14px rgba(180, 95, 6, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .atv-vip__box {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 24px;
        padding: 40px 36px;
    }
    .atv-vip__stage {
        transform: scale(0.86);
    }
    .atv-vip .atv-vip__title {
        font-size: 30px;
    }
}
@media (max-width: 980px) {
    .atv-vip__box {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .atv-vip__stage {
        order: -1;
        height: 300px;
        transform: none;
    }
}
@media (max-width: 640px) {
    .atv-vip {
        width: calc(100% - 32px);
        margin-top: 24px;
        border-radius: 28px;
    }
    .atv-vip__box {
        padding: 22px 18px 26px;
        border-radius: 27px;
    }
    .atv-vip__stage {
        height: 250px;
        margin: -10px 0 0;
    }
    .atv-vip__rays {
        width: 330px;
        height: 330px;
    }
    .atv-vip__medal {
        transform: scale(0.78);
    }
    .atv-vip__perk {
        transform-origin: center;
        height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }
    .atv-vip .atv-vip__title {
        font-size: 23px;
        line-height: 1.55;
    }
    .atv-vip .atv-vip__desc {
        font-size: 13.5px;
    }
    .atv-vip__feats {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .atv-vip__cta {
        flex-direction: column;
        align-items: stretch;
    }
    .atv-vip .atv-vip__buy {
        justify-content: center;
    }
    .atv-vip__price {
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atv-vip::before,
    .atv-vip__rays,
    .atv-vip__dots,
    .atv-vip__spark,
    .atv-vip__perk {
        animation: none;
    }
}
