/*
 * ============================================================
 * BLOODMOON GRID
 * Account pages
 * ============================================================
 *
 * Version : 2026-09-09 08:55
 *
 * Shared styles for ACCOUNT pages.
 * First implementation: Viewer / Add Grid.
 */


.account-page {
    min-height: 70vh;
    background:
        linear-gradient(
            180deg,
            #f8f9fb 0%,
            #ffffff 34%,
            #f8f8f6 100%
        );
}


.account-container {
    width:
        min(
            1180px,
            calc(
                100% - 40px
            )
        );
    margin:
        0 auto;
}


/* ============================================================
   HERO
============================================================ */

.account-hero {
    padding:
        54px 0 48px;
    border-bottom:
        1px solid #eadedb;
    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(
                158,
                29,
                55,
                0.08
            ),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fff3f0 60%,
            #f8f8f7 100%
        );
}


.account-topbar {
    display:
        flex;
    justify-content:
        flex-end;
    margin-bottom:
        16px;
}


.account-language-switch {
    display:
        inline-flex;
    gap:
        4px;
    padding:
        4px;
    border:
        1px solid #e5d8d5;
    border-radius:
        10px;
    background:
        rgba(
            255,
            255,
            255,
            0.74
        );
}


.account-language-switch a {
    display:
        inline-flex;
    align-items:
        center;
    justify-content:
        center;
    min-width:
        44px;
    min-height:
        32px;
    padding:
        6px 10px;
    border-radius:
        7px;
    text-decoration:
        none;
    font-size:
        0.72rem;
    font-weight:
        900;
    color:
        #7b818b;
}


.account-language-switch a.is-active {
    background:
        #9e1d37;
    color:
        #ffffff;
}


.account-kicker,
.account-section-kicker {
    display:
        inline-block;
    margin-bottom:
        8px;
    font-size:
        0.7rem;
    font-weight:
        900;
    letter-spacing:
        0.1em;
    text-transform:
        uppercase;
    color:
        #9e1d37;
}


.account-hero h1 {
    margin:
        0;
    font-size:
        clamp(
            2.15rem,
            4vw,
            3.5rem
        );
    line-height:
        1.04;
    color:
        #202632;
}


.account-hero-subtitle {
    max-width:
        790px;
    margin:
        15px 0 0;
    font-size:
        1rem;
    line-height:
        1.7;
    color:
        #697181;
}


/* ============================================================
   LAYOUT / TYPOGRAPHY
============================================================ */

.account-section {
    padding:
        38px 0 64px;
}


.account-intro {
    max-width:
        820px;
    margin-bottom:
        24px;
}


.account-intro h2,
.account-section-heading h2,
.viewer-step-card h2,
.viewer-login-card h2,
.account-cta-card h2 {
    margin:
        0;
    color:
        #292f3b;
}


.account-intro h2 {
    font-size:
        1.45rem;
}


.account-intro p,
.account-section-heading p {
    margin:
        9px 0 0;
    font-size:
        0.84rem;
    line-height:
        1.65;
    color:
        #747c89;
}


.account-section-heading {
    display:
        flex;
    align-items:
        flex-start;
    gap:
        14px;
    margin-bottom:
        16px;
}


.account-section-heading h2 {
    font-size:
        1.28rem;
}


/* ============================================================
   BUTTONS
============================================================ */

.account-button {
    display:
        inline-flex;
    align-items:
        center;
    justify-content:
        center;
    min-height:
        42px;
    padding:
        10px 16px;
    border:
        1px solid #9e1d37;
    border-radius:
        10px;
    background:
        #9e1d37;
    text-decoration:
        none;
    font-size:
        0.78rem;
    font-weight:
        850;
    color:
        #ffffff;
    box-shadow:
        0 7px 16px
        rgba(
            158,
            29,
            55,
            0.14
        );
    transition:
        transform 150ms ease,
        background 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}


.account-button:hover {
    transform:
        translateY(
            -1px
        );
    border-color:
        #86182e;
    background:
        #86182e;
    color:
        #ffffff;
    box-shadow:
        0 9px 20px
        rgba(
            158,
            29,
            55,
            0.2
        );
}


.account-button.is-secondary {
    border-color:
        #d8c4c0;
    background:
        #ffffff;
    color:
        #8d1b32;
    box-shadow:
        none;
}


.account-button.is-secondary:hover {
    border-color:
        #c9a7ae;
    background:
        #fff4f2;
    color:
        #771529;
}


/* ============================================================
   VIEWER - MAIN STEPS
============================================================ */

.viewer-main-steps {
    display:
        grid;
    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );
    gap:
        16px;
    align-items:
        stretch;
}


.viewer-step-card {
    padding:
        20px;
    border:
        1px solid #e7e3e0;
    border-radius:
        18px;
    background:
        #ffffff;
    box-shadow:
        0 10px 28px
        rgba(
            29,
            35,
            47,
            0.045
        );
}


.viewer-step-copy {
    display:
        grid;
    grid-template-columns:
        38px
        minmax(
            0,
            1fr
        );
    align-items:
        flex-start;
    gap:
        13px;
}


.viewer-step-number {
    display:
        inline-flex;
    align-items:
        center;
    justify-content:
        center;
    width:
        38px;
    height:
        38px;
    margin:
        0;
    border-radius:
        11px;
    background:
        #9e1d37;
    font-size:
        0.72rem;
    font-weight:
        900;
    color:
        #ffffff;
}


.viewer-step-card h2 {
    margin:
        1px 0 0;
    font-size:
        1.08rem;
}


.viewer-step-card p {
    margin:
        6px 0 0;
    font-size:
        0.78rem;
    line-height:
        1.55;
    color:
        #777f8b;
}


.viewer-account-card {
    display:
        flex;
    flex-direction:
        column;
    justify-content:
        space-between;
    min-height:
        168px;
}


.viewer-account-card > .account-button {
    align-self:
        center;
    margin-top:
        18px;
}


.viewer-download-card {
    display:
        grid;
    grid-template-columns:
        minmax(
            0,
            1fr
        )
        100px;
    align-items:
        center;
    gap:
        18px;
    min-height:
        168px;
}


.viewer-download-copy {
    display:
        flex;
    flex-direction:
        column;
    min-width:
        0;
}


.viewer-download-copy > .account-button {
    align-self:
        center;
    margin-top:
        18px;
}


.viewer-download-logo {
    display:
        flex;
    align-items:
        center;
    justify-content:
        center;
    width:
        100px;
    height:
        100px;
    border:
        1px solid #ece8e4;
    border-radius:
        14px;
    background:
        #fbfaf8;
}


.viewer-download-logo img {
    display:
        block;
    max-width:
        78px;
    max-height:
        78px;
    object-fit:
        contain;
}


/* ============================================================
   VIEWER - ADD GRID
============================================================ */

.viewer-add-grid-section {
    margin-top:
        28px;
}


.viewer-add-grid-methods {
    display:
        grid;
    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );
    gap:
        16px;
}


.viewer-method-card {
    padding:
        22px;
    border:
        1px solid #e5e2df;
    border-radius:
        18px;
    background:
        #ffffff;
}


.viewer-method-card.is-automatic {
    border-color:
        #efd5d0;
    background:
        linear-gradient(
            135deg,
            #fff8f6 0%,
            #ffffff 75%
        );
}


.viewer-method-card h3 {
    margin:
        0;
    font-size:
        1.05rem;
    color:
        #303642;
}


.viewer-method-card p {
    margin:
        8px 0 16px;
    font-size:
        0.78rem;
    line-height:
        1.58;
    color:
        #777f8b;
}


.viewer-method-note {
    margin-top:
        14px !important;
    padding-top:
        12px;
    border-top:
        1px solid #eee6e3;
    font-size:
        0.7rem !important;
    color:
        #8b7c80 !important;
}


.viewer-manual-list {
    margin:
        13px 0 0;
    padding-left:
        20px;
    color:
        #656d79;
}


.viewer-manual-list li {
    margin-bottom:
        9px;
    padding-left:
        3px;
    font-size:
        0.78rem;
    line-height:
        1.55;
}


.viewer-login-uri {
    margin-top:
        17px;
    padding:
        13px 14px;
    border:
        1px solid #dfe3e8;
    border-radius:
        11px;
    background:
        #f7f8fa;
}


.viewer-login-uri span {
    display:
        block;
    margin-bottom:
        4px;
    font-size:
        0.64rem;
    font-weight:
        900;
    letter-spacing:
        0.05em;
    text-transform:
        uppercase;
    color:
        #89919c;
}


.viewer-login-uri strong {
    display:
        block;
    overflow-wrap:
        anywhere;
    font-size:
        0.94rem;
    color:
        #9e1d37;
}


/* ============================================================
   VIEWER - SCREENSHOTS
============================================================ */

.viewer-screenshots {
    margin-top:
        30px;
}


.viewer-screenshot-stack {
    display:
        grid;
    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );
    gap:
        15px;
}


.viewer-screenshot {
    position:
        relative;
    margin:
        0;
    overflow:
        hidden;
    border:
        1px solid #e3e5e8;
    border-radius:
        16px;
    background:
        #f5f6f8;
    box-shadow:
        0 9px 24px
        rgba(
            29,
            35,
            47,
            0.05
        );
}


.viewer-screenshot img {
    display:
        block;
    width:
        100%;
    height:
        240px;
    object-fit:
        contain;
    background:
        #f5f6f8;
}


.viewer-screenshot figcaption {
    position:
        absolute;
    top:
        10px;
    left:
        10px;
    display:
        flex;
    align-items:
        center;
    justify-content:
        center;
    width:
        30px;
    height:
        30px;
    border-radius:
        9px;
    background:
        rgba(
            158,
            29,
            55,
            0.92
        );
    font-size:
        0.7rem;
    font-weight:
        900;
    color:
        #ffffff;
}


/* ============================================================
   VIEWER - LOGIN / CTA
============================================================ */

.viewer-login-card {
    display:
        grid;
    grid-template-columns:
        44px
        minmax(
            0,
            1fr
        );
    align-items:
        flex-start;
    gap:
        16px;
    margin-top:
        26px;
    padding:
        22px;
    border:
        1px solid #dce4ed;
    border-radius:
        17px;
    background:
        #f7fafc;
}


.viewer-login-card .viewer-step-number {
    margin:
        0;
}


.viewer-login-card h2 {
    font-size:
        1.14rem;
}


.viewer-login-card p {
    margin:
        7px 0 0;
    font-size:
        0.8rem;
    line-height:
        1.6;
    color:
        #707986;
}


.account-cta-card {
    display:
        flex;
    align-items:
        center;
    justify-content:
        space-between;
    gap:
        28px;
    margin-top:
        26px;
    padding:
        25px 27px;
    border:
        1px solid #f0dad5;
    border-radius:
        19px;
    background:
        #fff1ee;
}


.account-cta-card h2 {
    font-size:
        1.28rem;
}


.account-cta-card p {
    max-width:
        720px;
    margin:
        8px 0 0;
    font-size:
        0.8rem;
    line-height:
        1.58;
    color:
        #766f74;
}


.account-cta-actions {
    display:
        flex;
    flex: 0 0 auto;
    gap:
        9px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 920px) {

    .viewer-screenshot-stack {
        grid-template-columns:
            1fr;
    }


    .viewer-screenshot img {
        height:
            auto;
        max-height:
            520px;
    }

}


@media (max-width: 760px) {

    .viewer-main-steps,
    .viewer-add-grid-methods {
        grid-template-columns:
            1fr;
    }


    .account-cta-card {
        align-items:
            flex-start;
        flex-direction:
            column;
    }


    .account-cta-actions {
        flex-wrap:
            wrap;
    }

}


@media (max-width: 560px) {

    .account-container {
        width:
            min(
                100% - 28px,
                1180px
            );
    }


    .account-hero {
        padding:
            42px 0 38px;
    }


    .account-section {
        padding:
            28px 0 48px;
    }


    .viewer-download-card {
        grid-template-columns:
            1fr;
    }


    .viewer-download-logo {
        width:
            96px;
        height:
            96px;
        margin:
            0 auto;
    }


    .viewer-login-card {
        grid-template-columns:
            1fr;
    }


    .account-cta-actions {
        width:
            100%;
        flex-direction:
            column;
    }


    .account-cta-actions .account-button {
        width:
            100%;
    }

}
