/* ==========================================================================
   App downloads page (/application/) — "AppDock"
   Markup: partials/apps/main.php · behaviour: public/js/animetv-pages.js (#atvApps: device detection, card spotlight)
   Hero = text + a phone / laptop mock-up made of the site's posters; platform cards take their accent from --c.
   Day mode at the end (the device mock-ups stay dark, like real screens).
   ========================================================================== */

.atv-ap {
    --ap-text: #eef0f4;
    --ap-text-2: #b4bac6;
    --ap-muted: #8b92a1;
    --ap-line: rgba(255, 255, 255, 0.08);
    --ap-line-2: rgba(255, 255, 255, 0.14);
    --ap-card: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    --ap-card-solid: #1a1c24;
    --ap-gold: #f5b942;
    --ap-gold-2: #ffd98a;
    --ap-ink: #17130a;
    --ap-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);

    width: calc(100% - 48px);
    max-width: 1320px;
    margin: 22px auto 56px;
    direction: rtl;
    color: var(--ap-text);
    line-height: 1.8;
}
.atv-ap *,
.atv-ap *::before,
.atv-ap *::after {
    box-sizing: border-box;
}
.atv-ap h1,
.atv-ap h2,
.atv-ap h3,
.atv-ap p,
.atv-ap ol {
    margin: 0;
    padding: 0;
}
.atv-ap [hidden] {
    display: none !important;
}
.atv-ap a {
    color: inherit;
    text-decoration: none;
}
.atv-ap a:focus-visible,
.atv-ap summary:focus-visible {
    outline: 2px solid var(--ap-gold);
    outline-offset: 3px;
}

/* ---------- Hero ---------- */
.atv-ap-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 560px;
    align-items: center;
    gap: 40px;
    padding: 54px 52px;
    border-radius: 34px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(245, 185, 66, 0.13), transparent 55%),
        radial-gradient(90% 90% at 0% 100%, rgba(122, 92, 255, 0.16), transparent 60%),
        linear-gradient(160deg, #191b24 0%, #12131a 100%);
    border: 1px solid var(--ap-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--ap-shadow);
}
.atv-ap-hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(80% 80% at 30% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(80% 80% at 30% 50%, #000 20%, transparent 75%);
}
.atv-ap-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    animation: atvApOrb 14s ease-in-out infinite alternate;
}
.atv-ap-orb.is-a {
    width: 360px;
    height: 360px;
    left: 8%;
    top: -80px;
    background: rgba(253, 143, 0, 0.28);
}
.atv-ap-orb.is-b {
    width: 420px;
    height: 420px;
    left: 26%;
    bottom: -200px;
    background: rgba(120, 90, 255, 0.3);
    animation-delay: -6s;
}
@keyframes atvApOrb {
    to {
        transform: translate(40px, 30px) scale(1.12);
    }
}

.atv-ap-hero__text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.atv-ap-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ap-gold-2);
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.28);
    box-shadow: 0 0 24px -6px rgba(245, 185, 66, 0.45);
}
.atv-ap-title {
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 900;
    line-height: 1.35;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.atv-ap-title span {
    font-family: inherit;
    background: linear-gradient(100deg, #ffe3a1 0%, #f5b942 45%, #fd8f00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 6px 22px rgba(253, 143, 0, 0.35));
}
.atv-ap-lead {
    max-width: 560px;
    font-size: 15px;
    line-height: 2.05;
    color: var(--ap-text-2);
}

.atv-ap-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.atv-ap-quick__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    height: 58px;
    padding: 0 16px 0 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ap-line-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.atv-ap-quick__btn > i {
    font-size: 24px;
    width: 26px;
    text-align: center;
    color: #ffffff;
}
.atv-ap-quick__btn > span {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.atv-ap-quick__btn small {
    font-size: 10.5px;
    color: var(--ap-muted);
}
.atv-ap-quick__btn b {
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ap-text);
}
.atv-ap-quick__btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}
.atv-ap-quick__btn.is-suggested {
    background: linear-gradient(135deg, #ffd98a, #f5b942 55%, #f09a1d);
    border-color: transparent;
    box-shadow: 0 16px 34px -14px rgba(245, 160, 40, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.atv-ap-quick__btn.is-suggested > i,
.atv-ap-quick__btn.is-suggested b {
    color: var(--ap-ink);
}
.atv-ap-quick__btn.is-suggested small {
    color: rgba(23, 19, 10, 0.7);
}
.atv-ap-quick__tag {
    position: absolute;
    top: -9px;
    left: 12px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 20px;
    color: #ffffff;
    background: #12131a;
    border: 1px solid rgba(245, 185, 66, 0.6);
}

.atv-ap-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.atv-ap-stat {
    display: flex;
    flex-direction: column;
    min-width: 116px;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ap-line);
    line-height: 1.5;
}
.atv-ap-stat b {
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
}
.atv-ap-stat small {
    font-size: 11.5px;
    color: var(--ap-muted);
}

/* ---------- Device stage (fixed 560 × 440 box, zoomed down on small screens) ---------- */
.atv-ap-stage {
    position: relative;
    z-index: 1;
    width: 560px;
    height: 440px;
    justify-self: end;
}
.atv-ap-stage [style*='background-image'] {
    background-size: cover;
    background-position: center;
}
.atv-ap-laptop {
    position: absolute;
    left: 0;
    top: 34px;
    width: 452px;
    animation: atvApFloat 7s ease-in-out infinite;
}
.atv-ap-laptop__screen {
    position: relative;
    height: 286px;
    padding: 10px;
    border-radius: 18px 18px 6px 6px;
    background: linear-gradient(180deg, #2a2c36, #17181f);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.atv-ap-laptop__base {
    position: relative;
    height: 16px;
    margin: 0 -34px;
    border-radius: 2px 2px 18px 18px;
    background: linear-gradient(180deg, #3a3d49, #1d1f27 70%);
    box-shadow: 0 22px 30px -16px rgba(0, 0, 0, 0.9);
}
.atv-ap-laptop__base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 90px;
    height: 6px;
    margin-left: -45px;
    border-radius: 0 0 8px 8px;
    background: #14151b;
}
.atv-ap-win-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    direction: ltr;
}
.atv-ap-win-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
}
.atv-ap-win-bar i:nth-child(2) {
    background: #febc2e;
}
.atv-ap-win-bar i:nth-child(3) {
    background: #28c840;
}
.atv-ap-win-bar span {
    margin-left: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #8b92a1;
    direction: ltr;
}
.atv-ap-win-body {
    display: flex;
    gap: 8px;
    height: calc(100% - 22px);
    padding: 8px;
    border-radius: 10px;
    background: #0f1016;
    overflow: hidden;
}
.atv-ap-win-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 30px;
    padding-top: 6px;
    align-items: center;
    font-size: 11px;
    color: #5d6270;
}
.atv-ap-win-side i:first-child {
    color: var(--ap-gold);
}
.atv-ap-win-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.atv-ap-win-hero {
    position: relative;
    flex: 1;
    border-radius: 10px;
    background-color: #20222c;
    overflow: hidden;
}
.atv-ap-win-hero span {
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(10, 11, 16, 0.94) 10%, rgba(10, 11, 16, 0.2) 70%);
}
.atv-ap-win-hero b {
    position: absolute;
    right: 14px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
}
.atv-ap-win-hero b:nth-of-type(1) {
    top: 34px;
    width: 120px;
    height: 12px;
}
.atv-ap-win-hero b:nth-of-type(2) {
    top: 56px;
    width: 76px;
    background: var(--ap-gold);
    box-shadow: 0 0 14px rgba(245, 185, 66, 0.6);
}
.atv-ap-win-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    height: 92px;
}
.atv-ap-win-row span {
    border-radius: 7px;
    background-color: #20222c;
}

.atv-ap-phone {
    position: absolute;
    right: 8px;
    bottom: 0;
    width: 196px;
    height: 396px;
    padding: 9px;
    border-radius: 38px;
    background: linear-gradient(160deg, #3a3d49, #15161c 60%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 50px 80px -34px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 6px rgba(255, 255, 255, 0.02);
    transform: rotate(-5deg);
    animation: atvApFloatTilt 6s ease-in-out infinite;
}
.atv-ap-phone__island {
    position: absolute;
    top: 17px;
    left: 50%;
    z-index: 3;
    width: 62px;
    height: 18px;
    margin-left: -31px;
    border-radius: 999px;
    background: #050507;
}
.atv-ap-phone__screen {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 36px 9px 52px;
    border-radius: 30px;
    background: #0e0f15;
    overflow: hidden;
}
.atv-ap-ph-hero {
    position: relative;
    height: 170px;
    border-radius: 18px;
    background-color: #20222c;
    overflow: hidden;
    box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.9);
}
.atv-ap-ph-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 11, 16, 0.95) 8%, rgba(10, 11, 16, 0) 60%);
}
.atv-ap-ph-hero b {
    position: absolute;
    z-index: 1;
    right: 12px;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
}
.atv-ap-ph-hero b:nth-of-type(1) {
    bottom: 30px;
    width: 92px;
    height: 10px;
}
.atv-ap-ph-hero b:nth-of-type(2) {
    bottom: 15px;
    width: 58px;
    background: rgba(255, 255, 255, 0.45);
}
.atv-ap-ph-play {
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: var(--ap-ink);
    background: linear-gradient(135deg, #ffd98a, #f5b942);
    box-shadow: 0 0 0 0 rgba(245, 185, 66, 0.6);
    animation: atvApPulse 2.4s ease-out infinite;
}
.atv-ap-ph-chips {
    display: flex;
    gap: 5px;
}
.atv-ap-ph-chips span {
    height: 16px;
    flex: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}
.atv-ap-ph-chips span:first-child {
    background: rgba(245, 185, 66, 0.85);
}
.atv-ap-ph-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    flex: 1;
}
.atv-ap-ph-row span {
    border-radius: 10px;
    background-color: #20222c;
}
.atv-ap-ph-tab {
    position: absolute;
    right: 9px;
    bottom: 9px;
    left: 9px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 14px;
    font-size: 12px;
    color: #5d6270;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.atv-ap-ph-tab i:first-child {
    color: var(--ap-gold);
}

.atv-ap-toast,
.atv-ap-dl {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 10px;
    border-radius: 18px;
    background: rgba(26, 28, 37, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.atv-ap-toast {
    top: 0;
    right: 150px;
    max-width: 250px;
    animation: atvApFloat 6.5s ease-in-out -2s infinite;
}
.atv-ap-toast__th {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: #2a2c36;
}
.atv-ap-toast__tx,
.atv-ap-dl__tx {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.5;
}
.atv-ap-toast__tx b,
.atv-ap-dl__tx b {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
}
.atv-ap-toast__tx small,
.atv-ap-dl__tx small {
    font-size: 10.5px;
    color: var(--ap-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.atv-ap-toast::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5d73;
    box-shadow: 0 0 10px #ff5d73;
}
.atv-ap-dl {
    left: 40px;
    bottom: 22px;
    width: 220px;
    flex-wrap: wrap;
    row-gap: 8px;
    animation: atvApFloat 7.5s ease-in-out -4s infinite;
}
.atv-ap-dl > i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: #0e2a1a;
    background: linear-gradient(135deg, #8ef0b5, #3ddc84);
}
.atv-ap-dl__bar {
    flex-basis: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.atv-ap-dl__bar span {
    display: block;
    height: 100%;
    width: 30%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3ddc84, #b7ffd5);
    box-shadow: 0 0 10px rgba(61, 220, 132, 0.8);
    animation: atvApLoad 4.5s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes atvApFloat {
    50% {
        transform: translateY(-10px);
    }
}
@keyframes atvApFloatTilt {
    0%,
    100% {
        transform: rotate(-5deg) translateY(0);
    }
    50% {
        transform: rotate(-3.5deg) translateY(-12px);
    }
}
@keyframes atvApPulse {
    70% {
        box-shadow: 0 0 0 12px rgba(245, 185, 66, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 185, 66, 0);
    }
}
@keyframes atvApLoad {
    0% {
        width: 8%;
    }
    80%,
    100% {
        width: 100%;
    }
}

/* ---------- Sections ---------- */
.atv-ap-sec {
    margin-top: 54px;
}
.atv-ap-sec__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}
.atv-ap-sec__kicker {
    font-size: 12px;
    font-weight: 700;
    color: #c4c4d0;
}
.atv-ap-sec__title {
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.5;
    background: linear-gradient(90deg, #ffe7b0, #f5b942);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    align-self: flex-start;
}

/* ---------- Platform cards ---------- */
.atv-ap-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.atv-ap-card {
    --c: #f5b942;
    --c-2: #ffe1a1;
    --c-ink: #17130a;
    --c-rgb: 245, 185, 66;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border-radius: 28px;
    background: var(--ap-card);
    border: 1px solid var(--ap-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--ap-shadow);
    overflow: hidden;
    isolation: isolate;
    scroll-margin-top: 110px;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}
.atv-ap-card.is-android {
    --c: #3ddc84;
    --c-2: #b5ffd4;
    --c-ink: #06271a;
    --c-rgb: 61, 220, 132;
}
.atv-ap-card.is-windows {
    --c: #3ea6ff;
    --c-2: #bfe2ff;
    --c-ink: #051d33;
    --c-rgb: 62, 166, 255;
}
.atv-ap-card.is-ios {
    --c: #d7dcf0;
    --c-2: #ffffff;
    --c-ink: #14161f;
    --c-rgb: 200, 208, 240;
}
.atv-ap-card__glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(260px circle at var(--mx, 80%) var(--my, 0%), rgba(var(--c-rgb), 0.16), transparent 70%),
        radial-gradient(120% 60% at 100% 0%, rgba(var(--c-rgb), 0.1), transparent 60%);
    transition: opacity 0.35s;
}
.atv-ap-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--c-rgb), 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(var(--c-rgb), 0.45);
}
.atv-ap-card.is-suggested {
    order: -1;
    border-color: rgba(var(--c-rgb), 0.55);
    box-shadow: 0 0 0 1px rgba(var(--c-rgb), 0.25), 0 30px 70px -30px rgba(var(--c-rgb), 0.6);
}
.atv-ap-card__pick {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: var(--c-ink);
    background: linear-gradient(135deg, var(--c-2), var(--c));
    box-shadow: 0 8px 20px -8px rgba(var(--c-rgb), 0.9);
}
.atv-ap-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.atv-ap-card__ic {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: var(--c-ink);
    background: linear-gradient(145deg, var(--c-2), var(--c));
    box-shadow: 0 18px 34px -14px rgba(var(--c-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 8px rgba(0, 0, 0, 0.12);
}
.atv-ap-card__ic::after {
    content: '';
    position: absolute;
    inset: 4px 6px auto;
    height: 40%;
    border-radius: 14px 14px 40% 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.atv-ap-card__name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.5;
}
.atv-ap-card__name h3 {
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 19px;
    font-weight: 900;
    color: #ffffff;
}
.atv-ap-card__name small {
    font-size: 12px;
    color: var(--ap-muted);
}
.atv-ap-ver {
    margin-right: auto;
    align-self: flex-start;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 26px;
    direction: ltr;
    unicode-bidi: isolate;
    color: var(--c-2);
    background: rgba(var(--c-rgb), 0.1);
    border: 1px solid rgba(var(--c-rgb), 0.28);
}
.atv-ap-ver.is-soon {
    direction: rtl;
    color: var(--ap-text-2);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ap-line-2);
}
.atv-ap-card.is-suggested .atv-ap-ver {
    margin-top: 34px;
}

.atv-ap-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.atv-ap-steps li {
    position: relative;
    display: flex;
    gap: 12px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--ap-text-2);
}
.atv-ap-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: 13px;
    bottom: -10px;
    width: 1px;
    background: linear-gradient(180deg, rgba(var(--c-rgb), 0.4), rgba(var(--c-rgb), 0));
}
.atv-ap-steps__n {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-2);
    background: rgba(var(--c-rgb), 0.1);
    border: 1px solid rgba(var(--c-rgb), 0.35);
}

.atv-ap-card__act {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.atv-ap-btn {
    position: relative;
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ap-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ap-line-2);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s, filter 0.25s;
}
.atv-ap-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}
.atv-ap-btn.is-primary {
    color: var(--c-ink, var(--ap-ink));
    background: linear-gradient(135deg, var(--c-2, #ffd98a), var(--c, #f5b942));
    border-color: transparent;
    box-shadow: 0 16px 30px -14px rgba(var(--c-rgb, 245, 185, 66), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.atv-ap-btn.is-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 20px 36px -14px rgba(var(--c-rgb, 245, 185, 66), 1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.atv-ap-btn.is-off {
    cursor: default;
    color: var(--ap-muted);
    border-style: dashed;
}
.atv-ap-btn.is-off:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ap-line-2);
}
.atv-ap-btn__tag {
    position: absolute;
    top: -9px;
    left: 10px;
    height: 19px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 800;
    line-height: 19px;
    color: #ffffff;
    background: #12131a;
    border: 1px solid rgba(var(--c-rgb, 245, 185, 66), 0.7);
}

/* ---------- Features ---------- */
.atv-ap-feats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.atv-ap-feat {
    --f: 245, 185, 66;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: 24px;
    background: var(--ap-card);
    border: 1px solid var(--ap-line);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    animation: atvApRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}
.atv-ap-feat:nth-child(6n + 2) {
    --f: 61, 220, 132;
}
.atv-ap-feat:nth-child(6n + 3) {
    --f: 255, 107, 157;
}
.atv-ap-feat:nth-child(6n + 4) {
    --f: 62, 166, 255;
}
.atv-ap-feat:nth-child(6n + 5) {
    --f: 183, 151, 255;
}
.atv-ap-feat:nth-child(6n + 6) {
    --f: 76, 222, 178;
}
.atv-ap-feat::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--f), 0.16), transparent);
    transition: transform 0.5s;
}
.atv-ap-feat:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--f), 0.35);
}
.atv-ap-feat:hover::before {
    transform: scale(1.5);
}
.atv-ap-feat__ic {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: rgb(var(--f));
    background: rgba(var(--f), 0.12);
    border: 1px solid rgba(var(--f), 0.3);
    box-shadow: 0 0 22px -6px rgba(var(--f), 0.6);
}
.atv-ap-feat h3 {
    position: relative;
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 15.5px;
    font-weight: 800;
    color: #ffffff;
}
.atv-ap-feat p {
    position: relative;
    font-size: 13px;
    line-height: 1.95;
    color: var(--ap-text-2);
}
@keyframes atvApRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* ---------- FAQ + support ---------- */
.atv-ap-help__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}
.atv-ap-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.atv-ap-faq__item {
    border-radius: 20px;
    background: var(--ap-card);
    border: 1px solid var(--ap-line);
    transition: border-color 0.3s, background 0.3s;
}
.atv-ap-faq__item[open] {
    border-color: rgba(245, 185, 66, 0.32);
    background: linear-gradient(180deg, rgba(245, 185, 66, 0.06), rgba(255, 255, 255, 0.015));
}
.atv-ap-faq__item summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 0 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    color: var(--ap-text);
}
.atv-ap-faq__item summary::-webkit-details-marker {
    display: none;
}
.atv-ap-faq__item summary span {
    flex: 1;
}
.atv-ap-faq__item summary i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--ap-gold-2);
    background: rgba(245, 185, 66, 0.1);
    transition: transform 0.3s, background 0.3s, color 0.3s;
}
.atv-ap-faq__item[open] summary i {
    transform: rotate(45deg);
    color: var(--ap-ink);
    background: var(--ap-gold);
}
.atv-ap-faq__item p {
    padding: 0 20px 18px 64px;
    font-size: 13.5px;
    line-height: 2.05;
    color: var(--ap-text-2);
    animation: atvApRise 0.35s ease both;
}

.atv-ap-cta {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border-radius: 26px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(122, 92, 255, 0.22), transparent 60%),
        radial-gradient(100% 70% at 100% 100%, rgba(253, 143, 0, 0.16), transparent 60%),
        #171821;
    border: 1px solid var(--ap-line-2);
    box-shadow: var(--ap-shadow);
}
.atv-ap-cta__ic {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #ffffff;
    background: linear-gradient(145deg, #9d86ff, #6b4dff);
    box-shadow: 0 16px 30px -12px rgba(122, 92, 255, 0.9);
}
.atv-ap-cta h3 {
    font-family: 'IRANYekanX', 'Vazirmatn', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: #ffffff;
}
.atv-ap-cta p {
    font-size: 13px;
    line-height: 2;
    color: var(--ap-text-2);
}
.atv-ap-cta__act {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.atv-ap-cta__act .atv-ap-btn {
    flex: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
    .atv-ap-hero {
        grid-template-columns: minmax(0, 1fr) 470px;
        padding: 44px 36px;
    }
    .atv-ap-stage {
        zoom: 0.84;
    }
}
@media (max-width: 1120px) {
    .atv-ap-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }
    .atv-ap-stage {
        justify-self: center;
        zoom: 0.9;
    }
}
@media (max-width: 1000px) {
    .atv-ap-cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .atv-ap-feats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .atv-ap-help__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .atv-ap-cta {
        position: relative;
        top: auto;
    }
}
@media (max-width: 640px) {
    .atv-ap {
        width: calc(100% - 32px);
        margin-top: 14px;
    }
    .atv-ap-hero {
        padding: 30px 20px 26px;
        border-radius: 26px;
    }
    .atv-ap-lead {
        font-size: 14px;
    }
    .atv-ap-quick {
        width: 100%;
    }
    .atv-ap-quick__btn {
        flex: 1 1 140px;
    }
    .atv-ap-stage {
        zoom: 0.56;
    }
    .atv-ap-feats {
        grid-template-columns: minmax(0, 1fr);
    }
    .atv-ap-card {
        padding: 20px;
    }
    .atv-ap-faq__item p {
        padding-left: 20px;
    }
    .atv-ap-sec {
        margin-top: 40px;
    }
}
@media (max-width: 420px) {
    .atv-ap-stage {
        zoom: 0.5;
    }
}
@media (max-width: 360px) {
    .atv-ap-stage {
        zoom: 0.44;
    }
}
@media (prefers-reduced-motion: reduce) {
    .atv-ap-orb,
    .atv-ap-laptop,
    .atv-ap-phone,
    .atv-ap-toast,
    .atv-ap-dl,
    .atv-ap-dl__bar span,
    .atv-ap-ph-play,
    .atv-ap-feat,
    .atv-ap-faq__item p {
        animation: none;
    }
    .atv-ap-phone {
        transform: rotate(-5deg);
    }
    .atv-ap-dl__bar span {
        width: 72%;
    }
}

/* ---------- Day mode ---------- */
#animetvApp.day .atv-ap {
    --ap-text: #1e2230;
    --ap-text-2: #4b5263;
    --ap-muted: #6b7280;
    --ap-line: rgba(15, 23, 42, 0.08);
    --ap-line-2: rgba(15, 23, 42, 0.14);
    --ap-card: linear-gradient(180deg, #ffffff, #fbfbfd);
    --ap-shadow: 0 24px 50px -32px rgba(15, 23, 42, 0.35);
}
#animetvApp.day .atv-ap-hero {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(245, 185, 66, 0.22), transparent 55%),
        radial-gradient(90% 90% at 0% 100%, rgba(122, 92, 255, 0.16), transparent 60%),
        linear-gradient(160deg, #fffaf0 0%, #f3f1fb 100%);
}
#animetvApp.day .atv-ap-hero__grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}
#animetvApp.day .atv-ap-orb.is-a {
    background: rgba(253, 160, 40, 0.3);
}
#animetvApp.day .atv-ap-orb.is-b {
    background: rgba(140, 110, 255, 0.24);
}
#animetvApp.day .atv-ap-title,
#animetvApp.day .atv-ap-stat b,
#animetvApp.day .atv-ap-card__name h3,
#animetvApp.day .atv-ap-feat h3 {
    color: #141722;
}
#animetvApp.day .atv-ap-title span {
    background: linear-gradient(100deg, #e9a21d 0%, #f08a00 60%, #e06a00 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
#animetvApp.day .atv-ap-kicker {
    color: #a15c00;
    background: rgba(245, 185, 66, 0.16);
    border-color: rgba(214, 138, 12, 0.35);
}
#animetvApp.day .atv-ap-quick__btn,
#animetvApp.day .atv-ap-stat {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.4);
}
#animetvApp.day .atv-ap-quick__btn > i {
    color: #1e2230;
}
#animetvApp.day .atv-ap-quick__btn.is-suggested {
    background: linear-gradient(135deg, #ffd98a, #f5b942 55%, #f09a1d);
}
#animetvApp.day .atv-ap-sec__kicker {
    color: #6b7280;
}
#animetvApp.day .atv-ap-sec__title {
    background: linear-gradient(90deg, #d48a0c, #a15c00);
    -webkit-background-clip: text;
    background-clip: text;
}
#animetvApp.day .atv-ap-card.is-ios {
    --c: #8e9bc4;
    --c-2: #c9d1ec;
    --c-rgb: 120, 135, 190;
}
#animetvApp.day .atv-ap-ver,
#animetvApp.day .atv-ap-steps__n {
    color: rgb(var(--c-rgb));
    filter: saturate(1.2) brightness(0.8);
}
#animetvApp.day .atv-ap-btn {
    background: #f4f5f9;
}
#animetvApp.day .atv-ap-btn.is-primary {
    background: linear-gradient(135deg, var(--c-2, #ffd98a), var(--c, #f5b942));
}
#animetvApp.day .atv-ap-btn__tag,
#animetvApp.day .atv-ap-quick__tag {
    color: #1e2230;
    background: #ffffff;
}
#animetvApp.day .atv-ap-faq__item summary i {
    color: #a15c00;
}
#animetvApp.day .atv-ap-faq__item[open] summary i {
    color: var(--ap-ink);
}
#animetvApp.day .atv-ap-faq__item[open] {
    background: linear-gradient(180deg, rgba(245, 185, 66, 0.1), #ffffff);
}
#animetvApp.day .atv-ap-cta {
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(122, 92, 255, 0.16), transparent 60%),
        radial-gradient(100% 70% at 100% 100%, rgba(253, 143, 0, 0.14), transparent 60%),
        #ffffff;
}
#animetvApp.day .atv-ap-cta h3 {
    color: #141722;
}
