/* ==========================================================================
   VIP checkout — page design 1 "crown medallion + receipt" (used by /vip/ and the profile «اشتراک ویژه» tab)
   Markup: partials/profile/vip.php · behaviour: public/js/animetv-pages.js
   Same gold family as the home VIP banner (home-vip.css); stays dark in day mode.
   ========================================================================== */

.atv-vc {
    --vc-gold: #f5c451;
    --vc-gold-2: #ffd98a;
    --vc-gold-3: #f0ab22;
    --vc-ink: #1c1503;
    --vc-text: #eef0f4;
    --vc-text-2: #aab0bd;
    --vc-muted: #8b92a1;
    --vc-line: #2a2d38;

    width: calc(100% - 48px);
    max-width: 1320px;
    margin: 26px auto 40px;
    direction: rtl;
    color: var(--vc-text);
    line-height: 1.7;
}
.animetv-profile-content .atv-vc {
    width: 100%;
    margin: 0;
}
.atv-vc *,
.atv-vc *::before,
.atv-vc *::after {
    box-sizing: border-box;
}
@keyframes atvVcSweep {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Steps ---------- */
.atv-vc__steps {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.atv-vc__step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.atv-vc__snum {
    position: relative;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
    color: var(--vc-text-2);
    background: #1d1f27;
    border: 1px solid #2e333e;
    transition: background 0.3s, box-shadow 0.3s;
}
.atv-vc__snum i {
    display: none;
    font-size: 13px;
}
.atv-vc__stx {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}
.atv-vc__stx strong {
    font-size: 13.5px;
    color: #c3c8d2;
}
.atv-vc__stx small {
    font-size: 12px;
    color: var(--vc-muted);
}
.atv-vc__step.is-active .atv-vc__snum {
    color: var(--vc-ink);
    border-color: transparent;
    background: linear-gradient(180deg, var(--vc-gold-2), var(--vc-gold-3));
    box-shadow: 0 0 0 5px rgba(245, 185, 66, 0.15), 0 0 20px -4px rgba(245, 185, 66, 0.9);
}
.atv-vc__step.is-active .atv-vc__stx strong {
    color: var(--vc-gold-2);
}
.atv-vc__step.is-done .atv-vc__snum {
    color: #06240f;
    border-color: transparent;
    background: #7be3a3;
    box-shadow: none;
}
.atv-vc__step.is-done .atv-vc__snum b {
    display: none;
}
.atv-vc__step.is-done .atv-vc__snum i {
    display: block;
}
.atv-vc__sline {
    flex: 1;
    min-width: 30px;
    height: 2px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, #2e333e 0 6px, transparent 6px 12px);
}
.atv-vc__sline.is-filled {
    background: linear-gradient(270deg, #7be3a3, var(--vc-gold));
}

/* ---------- Hero: crown medallion + validity ring ---------- */
.atv-vc__hero {
    position: relative;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 20px;
    padding: 30px 38px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(245, 196, 81, 0.22);
    background: radial-gradient(600px 340px at 100% 40%, rgba(245, 185, 66, 0.16), transparent 70%),
        radial-gradient(500px 300px at 0% 100%, rgba(245, 185, 66, 0.08), transparent 70%), #121319;
}
.atv-vc__hero::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(270deg, #000, transparent 50%);
    mask-image: linear-gradient(270deg, #000, transparent 50%);
}
.atv-vc__stage {
    position: relative;
    height: 250px;
    display: grid;
    place-items: center;
}
.atv-vc__rays {
    position: absolute;
    width: 330px;
    height: 330px;
    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: atvVcSweep 50s linear infinite;
}
.atv-vc__medal {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
}
.atv-vc__ring {
    position: absolute;
    inset: 0;
    width: 220px;
    height: 220px;
    transform: rotate(-90deg);
}
.atv-vc__ring-tr {
    fill: none;
    stroke: rgba(255, 217, 138, 0.14);
    stroke-width: 8;
}
.atv-vc__ring-pg {
    fill: none;
    stroke: url(#atvVcGold);
    stroke-width: 8;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(245, 185, 66, 0.85));
}
.atv-vc__core {
    width: 164px;
    height: 164px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1.25;
    text-align: center;
    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-vc__core svg {
    width: 54px;
    height: 54px;
    filter: drop-shadow(0 4px 14px rgba(245, 185, 66, 0.85));
}
.atv-vc__core b {
    margin-top: 4px;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff1c9, var(--vc-gold) 55%, #c98a1c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.atv-vc__core b.is-latin {
    font-family: 'AtvKalameh', 'Vazirmatn', sans-serif;
}
.atv-vc__core small {
    font-size: 11.5px;
    font-weight: 700;
    color: #d9b96a;
}
.atv-vc__intro {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.atv-vc__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: var(--vc-ink);
    background: linear-gradient(180deg, var(--vc-gold-2), var(--vc-gold-3));
    box-shadow: 0 0 22px -4px rgba(245, 185, 66, 0.8);
}
.atv-vc__pill svg {
    width: 14px;
    height: 14px;
}
.atv-vc .atv-vc__title {
    margin: 12px 0 0;
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.45;
    color: #ffffff;
}
.atv-vc__title em,
.atv-vc__done h2 em {
    font-style: normal;
    background: linear-gradient(110deg, var(--vc-gold-2), var(--vc-gold-3) 60%, #fff1c9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.atv-vc .atv-vc__lead {
    margin: 8px 0 0;
    max-width: 640px;
    font-size: 14.5px;
    line-height: 2;
    color: var(--vc-text-2);
}
.atv-vc__perks {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.atv-vc__perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.atv-vc__pic {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 15px;
    color: var(--vc-gold);
    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-vc__pic.is-txt {
    font-size: 12.5px;
    font-weight: 900;
}
.atv-vc__perks li > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}
.atv-vc__perks b {
    font-size: 13.5px;
    color: #ffffff;
}
.atv-vc__perks small {
    font-size: 12px;
    color: var(--vc-muted);
}

/* ---------- Plans + receipt ---------- */
.atv-vc__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}
.atv-vc__plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.atv-vc__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}
.atv-vc__label small {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--vc-muted);
}
.atv-vc__plan {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid var(--vc-line);
    background: #16171e;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
}
.atv-vc__plan:focus-visible {
    outline: 2px solid var(--vc-gold);
    outline-offset: 3px;
}
.atv-vc__radio {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #454c5a;
    font-size: 12px;
    color: transparent;
    transition: all 0.25s;
}
.atv-vc__plan.is-selected {
    border-color: rgba(245, 196, 81, 0.7);
    background: radial-gradient(500px 160px at 100% 0%, rgba(245, 185, 66, 0.14), transparent 70%), #19170f;
    box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.12), 0 22px 44px -24px rgba(245, 185, 66, 0.8);
}
.atv-vc__plan.is-selected .atv-vc__radio {
    border-color: transparent;
    color: var(--vc-ink);
    background: linear-gradient(180deg, var(--vc-gold-2), var(--vc-gold-3));
    box-shadow: 0 0 14px rgba(245, 185, 66, 0.8);
}
.atv-vc__pinfo {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.atv-vc__ptitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.atv-vc__ptitle strong {
    font-size: 16.5px;
    font-weight: 900;
    color: #ffffff;
}
.atv-vc__save {
    height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--vc-ink);
    background: linear-gradient(180deg, var(--vc-gold-2), var(--vc-gold-3));
}
.atv-vc__pdesc {
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--vc-muted);
}
.atv-vc__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
    text-align: left;
}
.atv-vc__price del {
    font-size: 12px;
    color: #6b7180;
}
.atv-vc__price strong {
    font-size: 25px;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
}
.atv-vc__price strong small {
    margin-right: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--vc-text-2);
}
.atv-vc__plan.is-selected .atv-vc__price strong {
    color: var(--vc-gold-2);
}
.atv-vc__price > span {
    font-size: 12px;
    color: var(--vc-muted);
    white-space: nowrap;
}

.atv-vc__receipt {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(180deg, #1b1a16, #14151b);
    border: 1px solid rgba(245, 196, 81, 0.3);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 50px -30px rgba(245, 185, 66, 0.8);
}
.atv-vc__receipt::before {
    content: "";
    position: absolute;
    top: 0;
    right: 30px;
    left: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 217, 138, 0.8), transparent);
}
.atv-vc__rhead {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.atv-vc__ric {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--vc-gold);
    background: rgba(245, 196, 81, 0.12);
    box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.3);
}
.atv-vc__ric svg {
    width: 22px;
    height: 22px;
}
.atv-vc__rhead > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}
.atv-vc__rhead strong {
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: #ffffff;
}
.atv-vc__rhead small {
    font-size: 12px;
    color: var(--vc-muted);
}
.atv-vc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    font-size: 13.5px;
    color: var(--vc-text-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.atv-vc__row strong {
    color: #ffffff;
    text-align: left;
}
.atv-vc__row strong.is-save {
    color: #7be3a3;
}
.atv-vc__row strong.is-gold {
    color: var(--vc-gold-2);
}
.atv-vc .atv-vc__charge {
    margin-right: 6px;
    font-weight: 800;
    color: var(--vc-gold);
    text-decoration: none;
}
.atv-vc__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 16px 0 4px;
    border-top: 1px dashed rgba(245, 196, 81, 0.35);
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}
.atv-vc__total strong {
    font-size: 15px;
    color: #ffd98a;
}
.atv-vc__total strong b {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff1c9, var(--vc-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.atv-vc .atv-vc__btn {
    height: 54px;
    margin: 0;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.atv-vc .atv-vc__btn.is-block {
    width: 100%;
    margin-top: 12px;
}
.atv-vc .atv-vc__btn.is-gold {
    color: var(--vc-ink);
    background: linear-gradient(180deg, var(--vc-gold-2), var(--vc-gold-3));
    box-shadow: 0 18px 40px -14px rgba(245, 185, 66, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.atv-vc .atv-vc__btn.is-gold:hover {
    color: var(--vc-ink);
    transform: translateY(-2px);
}
.atv-vc .atv-vc__btn.is-ghost,
.atv-vc .atv-vc__btn.is-wallet {
    color: #e6e8ed;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 800;
    font-size: 13.5px;
}
.atv-vc .atv-vc__btn.is-wallet:hover {
    border-color: rgba(245, 196, 81, 0.45);
}
.atv-vc .atv-vc__btn.is-wallet.is-short {
    color: var(--vc-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #3a3f4c;
}
.atv-vc .atv-vc__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.atv-vc .atv-vc__btn:focus-visible,
.atv-vc .atv-vc__more:focus-visible {
    outline: 2px solid var(--vc-gold);
    outline-offset: 3px;
}
.atv-vc .atv-vc__secure {
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--vc-muted);
}

/* ---------- Activated stage ---------- */
.atv-vc__done {
    position: relative;
    margin-top: 20px;
    padding: 30px 34px;
    border-radius: 28px;
    text-align: center;
    border: 1px solid rgba(123, 227, 163, 0.35);
    background: radial-gradient(600px 260px at 50% 0%, rgba(123, 227, 163, 0.14), transparent 70%), #121319;
}
.atv-vc__done-badge {
    height: 32px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #06240f;
    background: #7be3a3;
}
.atv-vc .atv-vc__done h2 {
    margin: 14px 0 0;
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #ffffff;
}
.atv-vc .atv-vc__done p {
    max-width: 720px;
    margin: 8px auto 0;
    font-size: 14px;
    line-height: 2;
    color: var(--vc-text-2);
}
.atv-vc__done-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}
.atv-vc__done-stats > div {
    min-width: 170px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.atv-vc__done-stats small {
    display: block;
    font-size: 12px;
    color: var(--vc-muted);
}
.atv-vc__done-stats strong {
    font-size: 16px;
    color: #ffffff;
}
.atv-vc__done-acts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.atv-vc .atv-vc__more {
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--vc-gold);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

/* ---------- Day mode: the gold cards stay dark, only the loose text on the page background flips ---------- */
#animetvApp.day .atv-vc__steps {
    background: #15161c;
    border-color: #15161c;
}
#animetvApp.day .atv-vc__label {
    color: #1e2230;
}
#animetvApp.day .atv-vc__label small {
    color: #6b7280;
}

/* ---------- Responsive ---------- */
@media (hover: hover) {
    .atv-vc__plan:hover {
        border-color: #3a3f4c;
        transform: translateY(-2px);
    }
    .atv-vc__plan.is-selected:hover {
        border-color: rgba(245, 196, 81, 0.8);
    }
}
@media (max-width: 1100px) {
    .atv-vc__main {
        grid-template-columns: minmax(0, 1fr);
    }
    .atv-vc__receipt {
        position: static;
    }
    .atv-vc__perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .atv-vc {
        width: calc(100% - 32px);
        margin-top: 18px;
    }
    .atv-vc__steps {
        gap: 10px;
        padding: 10px 12px;
    }
    .atv-vc__stx small,
    .atv-vc__step:not(.is-active) .atv-vc__stx {
        display: none;
    }
    .atv-vc__sline {
        min-width: 16px;
    }
    .atv-vc__hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 22px 18px;
        text-align: center;
    }
    .atv-vc__stage {
        height: 220px;
    }
    .atv-vc .atv-vc__title {
        font-size: 23px;
    }
    .atv-vc__perks {
        text-align: right;
    }
    .atv-vc__plan {
        grid-template-columns: 26px minmax(0, 1fr);
        padding: 16px;
    }
    .atv-vc__price {
        grid-column: 2;
        align-items: flex-start;
        text-align: right;
    }
}
@media (prefers-reduced-motion: reduce) {
    .atv-vc__rays {
        animation: none;
    }
    .atv-vc__plan,
    .atv-vc__btn {
        transition: none;
    }
}
