/* Premium download page — scoped so no other public page is affected. */
body.download-premium-page {
    --download-bg: #080713;
    --download-panel: rgba(17, 15, 35, .88);
    --download-panel-strong: rgba(24, 19, 46, .96);
    --download-line: rgba(238, 211, 145, .22);
    --download-line-soft: rgba(215, 198, 255, .14);
    --download-gold: #f4d58a;
    --download-gold-strong: #e7b94e;
    --download-pink: #f09abd;
    --download-violet: #a997ff;
    --download-cyan: #8ce8ff;
    --download-text: #fffaf2;
    --download-muted: #cec4d7;
    color: var(--download-text);
    background: var(--download-bg);
}

body.download-premium-page:not(.celestial-home)::before {
    background: #080713 !important;
    opacity: 1 !important;
}

.download-premium-page .public-page.download-premium {
    min-height: calc(100vh - 92px);
    padding: clamp(118px, 12vw, 154px) clamp(16px, 5vw, 74px) 96px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--download-text) !important;
    background: linear-gradient(180deg, rgba(5, 5, 17, .3), #080713 72%, #070610 100%) !important;
}

.download-premium-page .public-page.download-premium::before {
    content: "" !important;
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(6, 5, 18, .97) 0%, rgba(10, 7, 24, .88) 45%, rgba(12, 8, 24, .66) 72%, rgba(6, 5, 16, .9) 100%),
        linear-gradient(180deg, rgba(8, 6, 20, .16), rgba(8, 7, 19, .84) 73%, #080713 100%),
        url('../celestial-kingdom-hero.png') 67% center / cover no-repeat !important;
    filter: saturate(.82) contrast(1.05);
}

.download-premium-page .public-page.download-premium::after {
    content: "" !important;
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 13%, rgba(127, 100, 255, .22), transparent 28%),
        radial-gradient(circle at 17% 38%, rgba(245, 197, 103, .1), transparent 24%),
        linear-gradient(180deg, transparent 43%, rgba(8, 7, 19, .86) 81%, #080713 100%);
}

.download-premium-page .public-page-inner {
    width: min(1240px, 100%);
    position: relative;
    z-index: 1;
}

.download-intro {
    max-width: 890px;
    margin-bottom: 34px;
}

.download-eyebrow,
.download-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--download-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .22em;
}

.download-eyebrow i {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--download-gold));
    box-shadow: 0 0 12px rgba(244, 213, 138, .55);
}

.download-intro h1 {
    margin: 12px 0 16px;
    color: var(--download-text) !important;
    font-family: var(--royal-display, 'Mali', sans-serif);
    font-size: clamp(44px, 7.2vw, 82px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
    text-shadow: 0 9px 36px rgba(0, 0, 0, .52);
}

.download-intro h1 em {
    display: inline-block;
    color: var(--download-gold);
    font-style: normal;
    background: linear-gradient(90deg, #fff0bd 0%, #e9b84f 46%, #f3a9c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-intro > p {
    max-width: 750px;
    margin: 0;
    color: #e5dce9 !important;
    font-size: clamp(15px, 1.7vw, 18px);
    font-weight: 500;
    line-height: 1.82;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .66);
}

.download-trust-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-trust-row > span {
    min-height: 42px;
    padding: 8px 14px 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(236, 212, 154, .22);
    border-radius: 999px;
    color: #eee6f0;
    background: rgba(17, 13, 33, .62);
    box-shadow: inset 0 1px rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
}

.download-trust-row b {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #211626;
    background: linear-gradient(145deg, #ffe9a8, #ddaa42);
    font-size: 13px;
}

.download-trust-row small {
    color: inherit;
    font-size: 12px;
    font-weight: 800;
}

.download-showcase {
    min-height: 350px;
    padding: clamp(30px, 5vw, 58px);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 42px;
    overflow: hidden;
    border: 1px solid rgba(243, 208, 126, .34);
    border-radius: 34px;
    background:
        radial-gradient(circle at 85% 17%, rgba(142, 112, 255, .32), transparent 31%),
        radial-gradient(circle at 3% 100%, rgba(234, 172, 83, .13), transparent 32%),
        linear-gradient(135deg, rgba(27, 18, 48, .97), rgba(12, 12, 31, .96) 54%, rgba(20, 13, 39, .96));
    box-shadow: 0 34px 90px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .08);
}

.download-showcase::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffe29a, #dc8dac, transparent);
    box-shadow: 0 0 22px rgba(255, 220, 141, .5);
}

.download-showcase::after {
    content: "";
    width: 270px;
    height: 270px;
    position: absolute;
    right: -85px;
    bottom: -155px;
    border-radius: 50%;
    background: rgba(244, 198, 95, .13);
    filter: blur(9px);
}

.download-showcase-copy,
.download-crest {
    position: relative;
    z-index: 1;
}

.download-showcase h2 {
    margin: 11px 0 12px;
    color: #fffaf4 !important;
    font-family: var(--royal-display, 'Mali', sans-serif);
    font-size: clamp(35px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.12;
}

.download-showcase-copy > p {
    max-width: 620px;
    margin: 0;
    color: #d7cddd !important;
    font-size: 15px;
    line-height: 1.8;
}

.download-requirements {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.download-requirements > span {
    min-height: 75px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(220, 203, 255, .14);
    border-radius: 15px;
    background: rgba(255, 255, 255, .045);
}

.download-requirements small,
.download-requirements b {
    display: block;
}

.download-requirements small {
    margin-bottom: 4px;
    color: #ae9fba;
    font-size: 10px;
    letter-spacing: .04em;
}

.download-requirements b {
    color: #fff8ee;
    font-size: 13px;
}

.download-crest {
    width: 224px;
    height: 224px;
    display: grid;
    place-items: center;
    justify-self: end;
    border: 1px solid rgba(249, 219, 143, .4);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 207, 124, .17), rgba(129, 91, 208, .13) 48%, rgba(7, 7, 22, .55) 70%);
    box-shadow: inset 0 0 54px rgba(243, 207, 124, .1), 0 0 70px rgba(145, 108, 255, .18);
}

.download-crest-ring {
    position: absolute;
    inset: 15px;
    border: 1px dashed rgba(255, 226, 157, .55);
    border-radius: 50%;
    animation: download-ring 24s linear infinite;
}

.download-crest-ring::before,
.download-crest-ring::after {
    content: "✦";
    position: absolute;
    color: #ffe29b;
    text-shadow: 0 0 15px rgba(255, 217, 128, .8);
}

.download-crest-ring::before { top: 8px; left: 18px; }
.download-crest-ring::after { right: 9px; bottom: 24px; }

.download-crest > div {
    width: 142px;
    height: 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 229, 169, .3);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 232, 176, .14), rgba(80, 56, 131, .3));
    box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 16px 45px rgba(0, 0, 0, .32);
}

.download-crest small,
.download-crest em {
    color: #e8ca89;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .23em;
}

.download-crest b {
    margin: 1px 0;
    color: #fff4d6;
    font-family: Georgia, serif;
    font-size: 58px;
    line-height: 1;
    text-shadow: 0 0 26px rgba(246, 207, 119, .36);
}

.download-section,
.download-install {
    margin-top: 30px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--download-line-soft);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(20, 16, 40, .91), rgba(11, 11, 27, .94));
    box-shadow: 0 25px 64px rgba(0, 0, 0, .31), inset 0 1px rgba(255, 255, 255, .055);
    backdrop-filter: blur(18px);
}

.download-section-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 17px;
}

.download-section-heading > span {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid rgba(244, 213, 138, .31);
    border-radius: 999px;
    color: #2b1d24;
    background: linear-gradient(135deg, #ffe7a8, #dca841);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    box-shadow: 0 7px 22px rgba(222, 169, 64, .19);
}

.download-section-heading h2,
.download-help-heading h2 {
    margin: 0;
    color: #fffaf2 !important;
    font-family: var(--royal-display, 'Mali', sans-serif);
    font-size: clamp(25px, 3.2vw, 35px);
    font-weight: 800;
    line-height: 1.25;
}

.download-section-heading p,
.download-help-heading p {
    margin: 5px 0 0;
    color: var(--download-muted) !important;
    font-size: 13px;
    line-height: 1.65;
}

.download-mirror-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.download-mirror-card {
    min-height: 174px;
    padding: 24px;
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    overflow: hidden;
    border: 1px solid rgba(205, 191, 239, .2);
    border-radius: 22px;
    color: var(--download-text) !important;
    text-decoration: none;
    background:
        radial-gradient(circle at 100% 0, rgba(144, 111, 255, .17), transparent 36%),
        linear-gradient(145deg, rgba(34, 26, 62, .96), rgba(14, 14, 34, .98));
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 38px rgba(0, 0, 0, .25);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.download-mirror-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 238, 190, .1) 48%, transparent 72%);
    transform: translateX(-55%);
    transition: opacity .22s ease, transform .55s ease;
}

.download-mirror-card.is-primary {
    border-color: rgba(246, 210, 126, .43);
    background:
        radial-gradient(circle at 100% 0, rgba(237, 179, 65, .16), transparent 37%),
        linear-gradient(145deg, rgba(45, 31, 58, .98), rgba(18, 15, 35, .98));
}

.download-mirror-card:hover {
    transform: translateY(-5px);
    border-color: rgba(248, 217, 142, .72);
    box-shadow: 0 27px 58px rgba(0, 0, 0, .39), 0 0 34px rgba(180, 130, 255, .11);
}

.download-mirror-card:hover::before {
    opacity: 1;
    transform: translateX(55%);
}

.download-mirror-card:focus-visible {
    outline: 3px solid var(--download-cyan);
    outline-offset: 4px;
}

.mirror-number {
    position: absolute;
    right: 14px;
    top: -14px;
    color: rgba(255, 255, 255, .045);
    font-family: Georgia, serif;
    font-size: 86px;
    font-weight: 700;
    line-height: 1;
}

.mirror-icon {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(239, 214, 154, .32);
    border-radius: 18px;
    color: #fff0be;
    background: linear-gradient(145deg, rgba(255, 228, 160, .16), rgba(155, 109, 238, .16));
    box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 10px 24px rgba(0, 0, 0, .23);
    font-size: 29px;
    font-weight: 700;
}

.mirror-copy,
.mirror-copy small,
.mirror-copy b,
.mirror-copy > span {
    display: block;
    position: relative;
    z-index: 1;
}

.mirror-copy small {
    color: var(--download-gold) !important;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.mirror-copy b {
    margin: 5px 0 4px;
    color: #fffaf2 !important;
    font-size: clamp(19px, 2.2vw, 25px);
    font-weight: 800;
}

.mirror-copy > span {
    color: #c8bdcf !important;
    font-size: 12px;
}

.mirror-cta {
    min-width: 144px;
    min-height: 52px;
    padding: 0 17px;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255, 240, 194, .38);
    border-radius: 14px;
    color: #251822;
    background: linear-gradient(135deg, #fff0b9 0%, #e6b84f 63%, #e998b6 132%);
    box-shadow: 0 13px 30px rgba(224, 170, 62, .22), inset 0 1px rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 900;
}

.mirror-cta i {
    font-size: 18px;
    font-style: normal;
}

.download-browser-help {
    margin-top: 30px;
    padding: clamp(24px, 4vw, 38px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 205, 113, .42);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(235, 151, 186, .17), transparent 34%),
        linear-gradient(145deg, rgba(42, 27, 50, .97), rgba(18, 14, 35, .98));
    box-shadow: 0 26px 65px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .07);
}

.download-browser-help::after {
    content: "!";
    position: absolute;
    right: 26px;
    top: -38px;
    color: rgba(255, 231, 172, .055);
    font-family: Georgia, serif;
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
}

.download-help-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 17px;
}

.download-help-badge {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(255, 221, 144, .43);
    border-radius: 999px;
    color: #fff3c7;
    background: rgba(236, 179, 67, .15);
    font-size: 10px;
    font-weight: 900;
}

.download-help-steps {
    margin: 24px 0 0;
    padding: 0;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    list-style: none;
}

.download-help-steps li {
    min-height: 142px;
    padding: 18px;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: start;
    gap: 12px;
    border: 1px solid rgba(235, 218, 255, .14);
    border-radius: 17px;
    color: var(--download-text) !important;
    background: rgba(255, 255, 255, .045);
}

.help-step-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #281a25;
    background: linear-gradient(145deg, #ffe7a7, #dea943);
    font-size: 13px;
    font-weight: 900;
}

.download-help-steps small,
.download-help-steps b,
.download-help-steps p {
    display: block;
}

.download-help-steps small {
    color: #c5b7cb;
    font-size: 10px;
}

.download-help-steps b {
    margin: 4px 0;
    color: #fff0b9 !important;
    font-size: 15px;
}

.download-help-steps p {
    margin: 0;
    color: #d1c5d6 !important;
    font-size: 11px;
    line-height: 1.58;
}

.download-safety {
    margin: 14px 0 0;
    padding: 12px 15px;
    position: relative;
    z-index: 1;
    border-left: 3px solid var(--download-gold-strong);
    border-radius: 7px;
    color: #e8dfe9 !important;
    background: rgba(244, 204, 111, .07);
    font-size: 11px;
    line-height: 1.65;
}

.download-safety b { color: #ffe39a; }

.download-install-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.download-install-grid article {
    min-height: 150px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(214, 199, 241, .15);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
}

.download-install-grid article::after {
    content: "";
    width: 90px;
    height: 90px;
    position: absolute;
    right: -54px;
    bottom: -54px;
    border-radius: 50%;
    background: rgba(166, 127, 246, .12);
}

.download-install-grid article > span {
    width: 37px;
    height: 37px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(244, 212, 137, .34);
    border-radius: 12px;
    color: var(--download-gold);
    background: rgba(244, 212, 137, .08);
    font-size: 11px;
    font-weight: 900;
}

.download-install-grid b {
    display: block;
    color: #fffaf2;
    font-size: 14px;
}

.download-install-grid p {
    margin: 7px 0 0;
    color: #c9becf !important;
    font-size: 11px;
    line-height: 1.6;
}

.download-premium-page .public-site-footer {
    border-top-color: rgba(234, 205, 135, .12) !important;
    color: #9d90a5 !important;
    background: #070610 !important;
}

@keyframes download-ring {
    to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
    .download-showcase { grid-template-columns: minmax(0, 1fr) 205px; }
    .download-crest { width: 192px; height: 192px; }
    .download-crest > div { width: 122px; height: 122px; }
    .download-crest b { font-size: 49px; }
    .download-mirror-grid { grid-template-columns: 1fr; }
    .download-install-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .download-premium-page .public-page.download-premium { padding: 112px 13px 76px; }
    .download-intro h1 { font-size: clamp(40px, 12vw, 62px); }
    .download-intro > p { font-size: 15px; }
    .download-showcase { min-height: 0; padding: 28px 22px; grid-template-columns: 1fr; }
    .download-crest { display: none; }
    .download-requirements { grid-template-columns: 1fr; }
    .download-section,
    .download-install,
    .download-browser-help { padding: 23px 18px; border-radius: 22px; }
    .download-section-heading,
    .download-help-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .download-help-steps { grid-template-columns: 1fr; }
    .download-help-steps li { min-height: 0; }
}

@media (max-width: 590px) {
    .download-trust-row { display: grid; grid-template-columns: 1fr; }
    .download-trust-row > span { width: 100%; }
    .download-mirror-card { padding: 19px; grid-template-columns: 52px minmax(0, 1fr); gap: 13px; }
    .mirror-icon { width: 50px; height: 50px; border-radius: 15px; }
    .mirror-cta { min-width: 0; width: 100%; grid-column: 1 / -1; }
    .download-install-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .download-crest-ring { animation: none; }
    .download-mirror-card,
    .download-mirror-card::before { transition: none; }
}
