/* ==========================================================================
   ONIRIC USERS DASHBOARD
   --------------------------------------------------------------------------
   Extensiones específicas del dashboard.
   El sistema general de módulos vive en oniric-modules.css.
   ========================================================================== */

.oniric-users-dashboard {
    background: #050505;
}

.oniric-users-dashboard__hero {
    position: relative;
    padding-block: clamp(14rem, 19vw, 19rem)
        clamp(5rem, 8vw, 8rem);
    background:
        radial-gradient(circle at 84% 20%, rgba(225, 82, 62, 0.18), transparent 30%),
        radial-gradient(circle at 10% 88%, rgba(130, 93, 199, 0.12), transparent 26%),
        #050505;
}

.oniric-users-dashboard__hero-content {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--oniric-module-gap);
    align-items: end;
}

.oniric-users-dashboard__hero-copy {
    grid-column: 1 / span 8;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.oniric-users-dashboard__hero-title {
    max-width: 12ch;
    margin: 0;
    color: #fff;
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 300;
    line-height: .95;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.oniric-users-dashboard__hero-content > .oniric-module-actions {
    grid-column: 10 / -1;
    justify-content: flex-end;
}

.oniric-users-dashboard__notices {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 2rem;
}

.oniric-users-dashboard__notice {
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 1rem;
    background: rgba(255,255,255,.04);
}

.oniric-users-dashboard__notice.is-success {
    border-color: rgba(253,218,37,.28);
}

.oniric-users-dashboard__notice.is-error {
    border-color: rgba(225,82,62,.38);
}

.oniric-users-dashboard__summary-stats .oniric-module-stat__value {
    white-space: nowrap;
}

.oniric-users-dashboard__direction-value,
.oniric-users-dashboard__direction-symbol {
    color: #FDDA25;
}

.oniric-users-dashboard__profile-card {
    min-height: 26rem;
}

.oniric-users-dashboard__card-meta,
.oniric-users-dashboard__tracking-card-top,
.oniric-users-dashboard__latest-header,
.oniric-users-dashboard__history-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.oniric-users-dashboard__card-meta {
    color: rgba(255,255,255,.48);
    font-size: .8rem;
}

.oniric-users-dashboard__status,
.oniric-users-dashboard__today-done {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255,255,255,.72);
    font-size: .85rem;
}

.oniric-users-dashboard__status-dot {
    width: .45rem;
    height: .45rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #FDDA25;
    box-shadow: 0 0 1rem rgba(253,218,37,.35);
}

.oniric-users-dashboard__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
}

.oniric-users-dashboard__text-link {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s ease;
}

.oniric-users-dashboard__text-link:hover {
    color: #fff;
}

.oniric-users-dashboard__tracking-section {
    overflow: visible;
}

.oniric-users-dashboard__tracking-card {
    min-height: 31rem;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );
}

.oniric-users-dashboard__tracking-card::before {
    background:
        radial-gradient(circle at 85% 10%, rgba(225,82,62,.14), transparent 34%),
        linear-gradient(
            180deg,
            rgba(27,31,36,.82) 0%,
            rgba(14,17,21,.72) 52%,
            rgba(5,5,5,.82) 100%
        );
}

.oniric-users-dashboard__tracking-number,
.oniric-users-dashboard__direction-symbol {
    font-size: clamp(3.75rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: .9;
    letter-spacing: -.055em;
}

.oniric-users-dashboard__latest {
    margin-top: clamp(4rem, 7vw, 6rem);
    padding-top: clamp(2rem, 3vw, 3rem);
    border-top: 1px solid var(--oniric-module-line);
}

.oniric-users-dashboard__latest-header h3 {
    margin: .7rem 0 0;
    font-size: clamp(1.75rem, 2.4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -.03em;
}

.oniric-users-dashboard__latest-header > span {
    color: rgba(255,255,255,.42);
}

.oniric-users-dashboard__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 2rem;
}

.oniric-users-dashboard__day {
    min-height: 9.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.15rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1.25rem;
    background: rgba(255,255,255,.025);
}

.oniric-users-dashboard__day span,
.oniric-users-dashboard__day small {
    color: rgba(255,255,255,.46);
}

.oniric-users-dashboard__day strong {
    font-size: 1.4rem;
    font-weight: 400;
}

.oniric-users-dashboard__history-content {
    width: 100%;
}

.oniric-users-dashboard__history-content h3 {
    margin-bottom: .55rem;
}

.oniric-users-dashboard__history-content p {
    color: rgba(241,241,238,.52);
}

	.oniric-custom-navbar-desktop {
        top: 100px!important;
    }

    .oniric-custom-navbar-desktop.scrolled {
        top: 0 !important;
    }

@media (max-width: 991.98px) {
    .oniric-users-dashboard__hero-copy,
    .oniric-users-dashboard__hero-content > .oniric-module-actions {
        grid-column: 1 / -1;
    }

    .oniric-users-dashboard__hero-content {
        row-gap: 3rem;
    }

    .oniric-users-dashboard__hero-content > .oniric-module-actions {
        justify-content: flex-start;
    }

    .oniric-users-dashboard__days {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
	

	
}

@media (max-width: 767.98px) {
    .oniric-users-dashboard__hero {
        padding-top: 8rem;
    }

    .oniric-users-dashboard__hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .oniric-users-dashboard__card-meta,
    .oniric-users-dashboard__tracking-card-top,
    .oniric-users-dashboard__latest-header,
    .oniric-users-dashboard__history-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .oniric-users-dashboard__days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .oniric-users-dashboard__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .oniric-users-dashboard__actions .btn-oniric-glass-3 {
        width: 100%;
        justify-content: center;
    }

    .oniric-users-dashboard__days {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RECOVERY SNAPSHOT HERO
   ========================================================================== */

.oniric-users-dashboard__snapshot-hero {
    position: relative;

    width: 100%;

    min-height: 720px;

    overflow: hidden;

    background: #050506;
}


/* ==========================================================================
   FIXED INTERNAL FRAME
   --------------------------------------------------------------------------
   No dependemos aquí de oniric-page-frame porque queremos garantizar
   exactamente el mismo margen izquierdo/derecho en todo el Hero.
   ========================================================================== */

.oniric-users-dashboard__snapshot-frame {
    position: relative;

    z-index: 5;

    width: min(
        calc(100% - 4rem),
        80rem
    );

    min-height: 720px;

    margin-inline: auto;
}


/* ==========================================================================
   BACKGROUND
   ========================================================================== */

.oniric-users-dashboard__snapshot-background {
    position: absolute;

    z-index: 0;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


/*
 * Imagen independiente de GSAP / Osmo.
 */

.oniric-users-dashboard__snapshot-background-image {
    position: absolute;

    top: 0;
    right: 0;

    width: 62%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    opacity: .72;

    transform: none !important;
}


/*
 * El degradado hace que el visual desaparezca progresivamente
 * hacia la zona del score.
 */

.oniric-users-dashboard__snapshot-background-overlay {
    position: absolute;

    z-index: 2;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            #050506 0%,
            #050506 29%,
            rgba(5, 5, 6, .91) 39%,
            rgba(5, 5, 6, .56) 58%,
            rgba(5, 5, 6, .20) 78%,
            rgba(5, 5, 6, .08) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 5, 6, .15) 0%,
            rgba(5, 5, 6, 0) 45%,
            #050506 100%
        );
}


/*
 * Halo Performance muy sutil.
 */

.oniric-users-dashboard__snapshot-background::after {
    content: '';

    position: absolute;

    z-index: 1;

    top: 12%;
    right: 6%;

    width: 52%;
    height: 72%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(130, 93, 199, .10) 0%,
            rgba(130, 93, 199, .035) 38%,
            transparent 70%
        );

    pointer-events: none;
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.oniric-users-dashboard__snapshot-content {
    position: relative;

    z-index: 5;

    min-height: 720px;

    display: flex;
    align-items: center;

    padding-top: 13rem;
    padding-bottom: 5rem;
}


/* ==========================================================================
   COPY
   ========================================================================== */

.oniric-users-dashboard__snapshot-copy {
    position: relative;

    width: min(
        100%,
        610px
    );
}


/* ==========================================================================
   META
   ========================================================================== */

.oniric-users-dashboard__snapshot-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 2rem;

    margin-bottom: 2.6rem;
}


.oniric-users-dashboard__snapshot-date {
    display: block;

    margin-top: .6rem;

    color:
        rgba(241, 241, 238, .42);

    font-size: .75rem;

    line-height: 1.4;
}


/* ==========================================================================
   STATUS
   ========================================================================== */

.oniric-users-dashboard__snapshot-status {
    display: inline-flex;
    align-items: center;

    gap: .55rem;

    margin-top: .05rem;

    color:
        rgba(241, 241, 238, .50);

    font-size: .72rem;

    line-height: 1.4;

    white-space: nowrap;
}


.oniric-users-dashboard__snapshot-status-dot {
    width: .45rem;
    height: .45rem;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #fdda25;

    box-shadow:
        0 0 14px
        rgba(253, 218, 37, .32);
}


/* ==========================================================================
   SCORE
   ========================================================================== */

.oniric-users-dashboard__snapshot-score {
    display: flex;

    align-items: flex-end;

    gap: .75rem;

    margin-bottom: 1.4rem;
}


.oniric-users-dashboard__snapshot-score strong {
    display: block;

    color: #ffffff;

    font-size:
        clamp(
            7rem,
            10vw,
            10.5rem
        );

    font-weight: 300;

    line-height: .78;

    letter-spacing: -.075em;
}


.oniric-users-dashboard__snapshot-score span {
    display: block;

    margin-bottom: .75rem;

    color:
        rgba(241, 241, 238, .34);

    font-size: 1.35rem;

    font-weight: 400;

    line-height: 1;
}


/* ==========================================================================
   TITLE
   ========================================================================== */

.oniric-users-dashboard__snapshot-title {
    max-width: 11ch;

    margin:
        0
        0
        1.4rem;

    color: #ffffff;

    font-size:
        clamp(
            3rem,
            5vw,
            5.25rem
        );

    font-weight: 300;

    line-height: .98;

    letter-spacing: -.055em;
}


/* ==========================================================================
   DESCRIPTION
   ========================================================================== */

.oniric-users-dashboard__snapshot-description {
    max-width: 34rem;

    margin:
        0
        0
        2rem;

    color:
        rgba(241, 241, 238, .65);

    font-size:
        clamp(
            .98rem,
            1.15vw,
            1.1rem
        );

    line-height: 1.65;
}


/* ==========================================================================
   ACTIONS
   ========================================================================== */

.oniric-users-dashboard__snapshot-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap:
        1rem
        1.5rem;
}


/* ==========================================================================
   FOOTNOTE
   ========================================================================== */

.oniric-users-dashboard__snapshot-footnote {
    max-width: 33rem;

    margin:
        2rem
        0
        0;

    padding-top: 1.25rem;

    border-top:
        1px solid
        rgba(255, 255, 255, .08);

    color:
        rgba(241, 241, 238, .31);

    font-size: .71rem;

    line-height: 1.55;
}


/* ==========================================================================
   NOTICES
   ========================================================================== */

.oniric-users-dashboard__snapshot-frame
.oniric-users-dashboard__notices {
    position: absolute;

    z-index: 10;

    top: 2rem;
    left: 0;
    right: 0;
}


/* ==========================================================================
   EMPTY
   ========================================================================== */

.oniric-users-dashboard__snapshot-content--empty
.oniric-users-dashboard__snapshot-copy {
    width: min(
        100%,
        650px
    );
}


/* ==========================================================================
   TRACKING TOTAL
   ========================================================================== */

.oniric-users-dashboard__tracking-total {
    display: flex;

    flex-direction: column;

    align-items: flex-end;
}


.oniric-users-dashboard__tracking-total strong {
    color: #ffffff;

    font-size:
        clamp(
            3rem,
            5vw,
            4.8rem
        );

    font-weight: 300;

    line-height: .9;

    letter-spacing: -.05em;
}


.oniric-users-dashboard__tracking-total span {
    margin-top: .55rem;

    color:
        rgba(241, 241, 238, .38);

    font-size: .64rem;

    letter-spacing: .04em;
}


/* ==========================================================================
   DESKTOP WIDE
   ========================================================================== */

@media (min-width: 1400px) {

    .oniric-users-dashboard__snapshot-frame {
        width: min(
            calc(100% - 6rem),
            80rem
        );
    }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 991.98px) {

    .oniric-users-dashboard__snapshot-hero,
    .oniric-users-dashboard__snapshot-frame,
    .oniric-users-dashboard__snapshot-content {
        min-height: 680px;
    }


    .oniric-users-dashboard__snapshot-frame {
        width: min(
            calc(100% - 3rem),
            80rem
        );
    }


    .oniric-users-dashboard__snapshot-background-image {
        width: 72%;

        opacity: .56;
    }


    .oniric-users-dashboard__snapshot-background-overlay {
        background:
            linear-gradient(
                90deg,
                #050506 0%,
                #050506 28%,
                rgba(5, 5, 6, .91) 43%,
                rgba(5, 5, 6, .42) 72%,
                rgba(5, 5, 6, .12) 100%
            ),
            linear-gradient(
                180deg,
                rgba(5, 5, 6, .12) 0%,
                rgba(5, 5, 6, 0) 45%,
                #050506 100%
            );
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767.98px) {

    .oniric-users-dashboard__snapshot-hero {
        min-height: auto;
    }


    .oniric-users-dashboard__snapshot-frame {
        width:
            calc(100% - 2rem);

        min-height: auto;
    }


    .oniric-users-dashboard__snapshot-content {
        min-height: 680px;

        align-items: flex-end;

        padding-top: 12rem;
        padding-bottom: 3.5rem;
    }


    .oniric-users-dashboard__snapshot-background-image {
        top: 0;
        right: -22%;

        width: 120%;
        height: 68%;

        opacity: .42;

        object-position: center top;
    }


    .oniric-users-dashboard__snapshot-background-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(5, 5, 6, .03) 0%,
                rgba(5, 5, 6, .15) 32%,
                rgba(5, 5, 6, .76) 58%,
                #050506 82%
            );
    }


    .oniric-users-dashboard__snapshot-background::after {
        display: none;
    }


    .oniric-users-dashboard__snapshot-meta {
        margin-bottom: 2rem;
    }


    .oniric-users-dashboard__snapshot-status {
        display: none;
    }


    .oniric-users-dashboard__snapshot-score strong {
        font-size:
            clamp(
                6rem,
                27vw,
                8.5rem
            );
    }


    .oniric-users-dashboard__snapshot-title {
        max-width: 12ch;

        font-size:
            clamp(
                2.6rem,
                12vw,
                4.25rem
            );
    }


    .oniric-users-dashboard__snapshot-actions {
        flex-direction: column;

        align-items: flex-start;
    }


    .oniric-users-dashboard__snapshot-footnote {
        margin-top: 1.5rem;
    }

}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .oniric-users-dashboard__snapshot-frame {
        width:
            calc(100% - 1.5rem);
    }


    .oniric-users-dashboard__snapshot-content {
        padding-bottom: 3rem;
    }

}

/* ==========================================================================
   RECOVERY SNAPSHOT HERO
   ========================================================================== */

.oniric-users-dashboard__snapshot-hero {
    position: relative;
    width: 100%;
    min-height: 760px;
    overflow: hidden;
    background: #050506;
}


/* ==========================================================================
   FRAME
   ========================================================================== */

.oniric-users-dashboard__snapshot-frame {
    position: relative;
    z-index: 5;

    width: min(
        calc(100% - 4rem),
        80rem
    );

    min-height: 760px;

    margin-inline: auto;
}


/* ==========================================================================
   BACKGROUND
   ========================================================================== */

.oniric-users-dashboard__snapshot-background {
    position: absolute;
    z-index: 0;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


.oniric-users-dashboard__snapshot-background-image {
    position: absolute;

    top: 0;
    right: 0;

    width: 62%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    opacity: .72;

    transform: none !important;
}


.oniric-users-dashboard__snapshot-background-overlay {
    position: absolute;
    z-index: 2;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            #050506 0%,
            #050506 29%,
            rgba(5, 5, 6, .91) 39%,
            rgba(5, 5, 6, .55) 58%,
            rgba(5, 5, 6, .16) 82%,
            rgba(5, 5, 6, .04) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 5, 6, .12) 0%,
            rgba(5, 5, 6, 0) 55%,
            #050506 100%
        );
}


.oniric-users-dashboard__snapshot-background::after {
    content: '';

    position: absolute;
    z-index: 1;

    top: 12%;
    right: 5%;

    width: 54%;
    height: 74%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(130, 93, 199, .10),
            transparent 70%
        );

    pointer-events: none;
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.oniric-users-dashboard__snapshot-content {
    position: relative;
    z-index: 5;

    min-height: 760px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(240px, 300px);

    grid-template-areas:
        "main score"
        "actions score"
        "foot score";

    column-gap:
        clamp(3rem, 7vw, 7rem);

    align-content: center;
    align-items: center;

    padding:
        12rem
        0
        5rem;
}


.oniric-users-dashboard__snapshot-main {
    grid-area: main;

    width: min(
        100%,
        610px
    );
}


/* ==========================================================================
   META
   ========================================================================== */

.oniric-users-dashboard__snapshot-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 2rem;
}


.oniric-users-dashboard__snapshot-date {
    display: block;

    margin-top: .55rem;

    color:
        rgba(241, 241, 238, .42);

    font-size: .75rem;

    line-height: 1.4;
}


.oniric-users-dashboard__snapshot-user {
    margin:
        .45rem
        0
        0;

    color: #ffffff;

    font-size:
        clamp(
            1.05rem,
            1.5vw,
            1.4rem
        );

    font-weight: 400;

    line-height: 1.25;

    letter-spacing: -.025em;
}


/* ==========================================================================
   STATUS
   ========================================================================== */

.oniric-users-dashboard__snapshot-status {
    display: inline-flex;
    align-items: center;

    gap: .5rem;

    color:
        rgba(241, 241, 238, .48);

    font-size: .72rem;

    white-space: nowrap;
}


.oniric-users-dashboard__snapshot-status-dot {
    width: .45rem;
    height: .45rem;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #fdda25;

    box-shadow:
        0 0 14px
        rgba(253, 218, 37, .30);
}


/* ==========================================================================
   READING
   ========================================================================== */

.oniric-users-dashboard__snapshot-reading-label {
    display: block;

    margin:
        0
        0
        .7rem;

    color:
        rgba(241, 241, 238, .38);

    font-size: .62rem;
    font-weight: 600;

    letter-spacing: .11em;

    text-transform: uppercase;
}


.oniric-users-dashboard__snapshot-title {
    max-width: 11ch;

    margin:
        0
        0
        1.4rem;

    color: #ffffff;

    font-size:
        clamp(
            3rem,
            5vw,
            5.15rem
        );

    font-weight: 300;

    line-height: .98;

    letter-spacing: -.055em;
}


.oniric-users-dashboard__snapshot-description {
    max-width: 34rem;

    margin: 0;

    color:
        rgba(241, 241, 238, .64);

    font-size:
        clamp(
            .98rem,
            1.15vw,
            1.1rem
        );

    line-height: 1.65;
}


/* ==========================================================================
   SCORE CARD
   ========================================================================== */

.oniric-users-dashboard__snapshot-score-card {
    grid-area: score;

    position: relative;

    width: 100%;

    padding:
        1.6rem
        1.7rem
        1.5rem;

    border:
        1px solid
        rgba(255, 255, 255, .16);

    border-radius: 1.4rem;

    background:
        linear-gradient(
            145deg,
            rgba(25, 25, 28, .69),
            rgba(18, 18, 20, .43)
        );

    -webkit-backdrop-filter:
        blur(12px);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, .32);
}


.oniric-users-dashboard__snapshot-score-card-eyebrow {
    display: block;

    margin-bottom: 1.2rem;

    color:
        rgba(241, 241, 238, .48);

    font-size: .62rem;
    font-weight: 600;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.oniric-users-dashboard__snapshot-score-card-value {
    display: flex;
    align-items: flex-end;

    gap: .45rem;
}


.oniric-users-dashboard__snapshot-score-card-value strong {
    color: #ffffff;

    font-size:
        clamp(
            4rem,
            6vw,
            6.2rem
        );

    font-weight: 300;

    line-height: .85;

    letter-spacing: -.07em;
}


.oniric-users-dashboard__snapshot-score-card-value span {
    margin-bottom: .55rem;

    color:
        rgba(241, 241, 238, .48);

    font-size: 1rem;

    line-height: 1;
}


.oniric-users-dashboard__snapshot-score-card-text {
    margin:
        1.15rem
        0
        0;

    padding-top: 1rem;

    border-top:
        1px solid
        rgba(255, 255, 255, .10);

    color:
        rgba(241, 241, 238, .50);

    font-size: .72rem;

    line-height: 1.5;
}


/* ==========================================================================
   ACTIONS
   ========================================================================== */

.oniric-users-dashboard__snapshot-actions {
    grid-area: actions;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap:
        1rem
        1.5rem;

    margin-top: 2rem;
}


/* ==========================================================================
   FOOTNOTE
   ========================================================================== */

.oniric-users-dashboard__snapshot-footnote {
    grid-area: foot;

    max-width: 34rem;

    margin:
        2rem
        0
        0;

    padding-top: 1.25rem;

    border-top:
        1px solid
        rgba(255, 255, 255, .08);

    color:
        rgba(241, 241, 238, .30);

    font-size: .71rem;

    line-height: 1.55;
}


/* ==========================================================================
   NOTICES
   ========================================================================== */

.oniric-users-dashboard__snapshot-frame
.oniric-users-dashboard__notices {
    position: absolute;

    z-index: 10;

    top: 2rem;
    left: 0;
    right: 0;
}


/* ==========================================================================
   EMPTY
   ========================================================================== */

.oniric-users-dashboard__snapshot-content--empty {
    grid-template-columns: 1fr;

    grid-template-areas:
        "main"
        "actions";
}


.oniric-users-dashboard__snapshot-content--empty
.oniric-users-dashboard__snapshot-main {
    max-width: 650px;
}


/* ==========================================================================
   TRACKING TOTAL
   ========================================================================== */

.oniric-users-dashboard__tracking-total {
    display: flex;
    flex-direction: column;

    align-items: flex-end;
}


.oniric-users-dashboard__tracking-total strong {
    color: #ffffff;

    font-size:
        clamp(
            3rem,
            5vw,
            4.8rem
        );

    font-weight: 300;

    line-height: .9;

    letter-spacing: -.05em;
}


.oniric-users-dashboard__tracking-total span {
    margin-top: .55rem;

    color:
        rgba(241, 241, 238, .38);

    font-size: .64rem;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 991.98px) {

    .oniric-users-dashboard__snapshot-frame {
        width:
            calc(100% - 3rem);
    }


    .oniric-users-dashboard__snapshot-content {
        grid-template-columns:
            minmax(0, 1fr)
            250px;

        column-gap: 2rem;

        padding-top: 10rem;
    }


    .oniric-users-dashboard__snapshot-background-image {
        width: 75%;

        opacity: .52;
    }


    .oniric-users-dashboard__snapshot-title {
        font-size:
            clamp(
                2.7rem,
                6vw,
                4.2rem
            );
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767.98px) {

    /*
     * HERO
     */

    .oniric-users-dashboard__snapshot-hero {
        min-height: auto;

        overflow: hidden;
    }


    .oniric-users-dashboard__snapshot-frame {
        width:
            calc(100% - 2rem);

        min-height: auto;
    }


    /*
     * Imagen pasa a ser una cabecera visual,
     * no el fondo dominante de toda la sección.
     */

    .oniric-users-dashboard__snapshot-background-image {
        top: 0;
        right: -20%;

        width: 115%;
        height: 21rem;

        opacity: .36;

        object-position:
            65% center;
    }


    .oniric-users-dashboard__snapshot-background-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(5, 5, 6, .10) 0%,
                rgba(5, 5, 6, .30) 32%,
                rgba(5, 5, 6, .90) 77%,
                #050506 100%
            );
    }


    .oniric-users-dashboard__snapshot-background::after {
        display: none;
    }


    /*
     * El contenido entra en flujo normal.
     */

    .oniric-users-dashboard__snapshot-content {
        min-height: auto;

        display: flex;
        flex-direction: column;

        align-items: stretch;

        padding:
            9.5rem
            0
            3.5rem;
    }


    .oniric-users-dashboard__snapshot-main {
        width: 100%;
    }


    /*
     * Meta
     */

    .oniric-users-dashboard__snapshot-meta {
        margin-bottom: 2.6rem;
    }


    .oniric-users-dashboard__snapshot-status {
        display: none;
    }


    .oniric-users-dashboard__snapshot-user {
        margin-top: .35rem;

        font-size: 1rem;
    }


    /*
     * Lectura
     */

    .oniric-users-dashboard__snapshot-reading-label {
        margin-bottom: .55rem;
    }


    .oniric-users-dashboard__snapshot-title {
        max-width: none;

        margin-bottom: 1.1rem;

        font-size:
            clamp(
                2.45rem,
                11.5vw,
                3.45rem
            );

        line-height: 1.01;

        letter-spacing: -.045em;

        overflow-wrap: anywhere;
    }


    .oniric-users-dashboard__snapshot-description {
        max-width: none;

        font-size: .93rem;

        line-height: 1.65;
    }


    /*
     * Snapshot:
     * deja de flotar y pasa debajo de la lectura.
     */

    .oniric-users-dashboard__snapshot-score-card {
        order: 2;

        width: 100%;

        margin-top: 2rem;

        padding:
            1.35rem
            1.4rem;

        border-radius: 1.15rem;

        display: grid;

        grid-template-columns:
            minmax(0, auto)
            1fr;

        grid-template-areas:
            "eyebrow eyebrow"
            "value text";

        column-gap: 1.5rem;

        align-items: center;
    }


    .oniric-users-dashboard__snapshot-score-card-eyebrow {
        grid-area: eyebrow;

        margin-bottom: 1rem;
    }


    .oniric-users-dashboard__snapshot-score-card-value {
        grid-area: value;
    }


    .oniric-users-dashboard__snapshot-score-card-value strong {
        font-size:
            clamp(
                4rem,
                19vw,
                5.4rem
            );
    }


    .oniric-users-dashboard__snapshot-score-card-value span {
        margin-bottom: .4rem;

        font-size: .85rem;
    }


    .oniric-users-dashboard__snapshot-score-card-text {
        grid-area: text;

        margin: 0;
        padding: 0;

        border: 0;

        font-size: .68rem;

        line-height: 1.5;
    }


    /*
     * CTA
     */

    .oniric-users-dashboard__snapshot-actions {
        order: 3;

        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: .85rem;

        margin-top: 1.4rem;
    }


    .oniric-users-dashboard__snapshot-actions
    .btn-oniric-glass-3 {
        width: 100%;

        justify-content: center;
    }


    .oniric-users-dashboard__snapshot-actions
    .oniric-users-dashboard__text-link {
        display: block;

        padding:
            .65rem
            .2rem;

        text-align: center;
    }


    /*
     * Footnote
     */

    .oniric-users-dashboard__snapshot-footnote {
        order: 4;

        max-width: none;

        margin-top: 1.25rem;

        font-size: .66rem;
    }


    /*
     * Notices
     */

    .oniric-users-dashboard__snapshot-frame
    .oniric-users-dashboard__notices {
        position: relative;

        top: auto;
        left: auto;
        right: auto;

        padding-top: 7rem;

        margin-bottom: -7rem;
    }


    /* ============================================================= */
    /* EVOLUCIÓN RECIENTE                                            */
    /* ============================================================= */

    .oniric-users-dashboard__summary-stats
    .oniric-module-stats__intro {
        margin-bottom: 2rem;
    }


    .oniric-users-dashboard__summary-stats
    .oniric-section-heading {
        max-width: 14ch;

        font-size:
            clamp(
                2rem,
                9vw,
                2.75rem
            );

        line-height: 1.05;
    }


    /*
     * Tres métricas como mini-cards.
     */

    .oniric-users-dashboard__summary-stats
    .oniric-module-stats__grid {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: .65rem;
    }


    .oniric-users-dashboard__summary-stats
    .oniric-module-stat {
        min-height: 8.5rem;

        padding: 1rem;

        border:
            1px solid
            rgba(255, 255, 255, .09);

        border-radius: 1rem;

        background:
            rgba(255, 255, 255, .025);
    }


    .oniric-users-dashboard__summary-stats
    .oniric-module-stat:last-child {
        grid-column: 1 / -1;
    }


    .oniric-users-dashboard__summary-stats
    .oniric-module-stat__value {
        font-size:
            clamp(
                2.5rem,
                12vw,
                3.5rem
            );
    }


    /* ============================================================= */
    /* TRACKING                                                      */
    /* ============================================================= */

    .oniric-users-dashboard__tracking-section
    .oniric-module-double-cards__grid {
        grid-template-columns: 1fr;

        gap: 1rem;
    }


    .oniric-users-dashboard__tracking-card {
        min-height: auto;
    }


    .oniric-users-dashboard__tracking-card-top {
        flex-direction: row;

        align-items: flex-start;

        justify-content: space-between;
    }


    .oniric-users-dashboard__tracking-total {
        align-items: flex-end;
    }


    .oniric-users-dashboard__tracking-total strong {
        font-size: 3.25rem;
    }


    /*
     * Últimos días:
     * carrusel horizontal táctil.
     */

    .oniric-users-dashboard__days {
        display: flex;

        grid-template-columns: none;

        gap: .7rem;

        width:
            calc(100vw - 1rem);

        margin-top: 1.5rem;

        overflow-x: auto;

        padding:
            0
            1rem
            .7rem
            0;

        scroll-snap-type:
            x mandatory;

        overscroll-behavior-x:
            contain;

        scrollbar-width: none;
    }


    .oniric-users-dashboard__days::-webkit-scrollbar {
        display: none;
    }


    .oniric-users-dashboard__day {
        flex:
            0
            0
            8.75rem;

        min-height: 8.5rem;

        padding: 1rem;

        scroll-snap-align: start;
    }


    .oniric-users-dashboard__latest-header {
        flex-direction: row;

        align-items: flex-end;

        justify-content: space-between;
    }


    .oniric-users-dashboard__latest-header h3 {
        font-size: 1.7rem;
    }


    /* ============================================================= */
    /* HISTORY                                                       */
    /* ============================================================= */

    .oniric-users-dashboard__history-row {
        padding-block:
            1.5rem;
    }


    .oniric-users-dashboard__history-content {
        width: 100%;

        flex-direction: column;

        align-items: flex-start;

        gap: 1rem;
    }


    .oniric-users-dashboard__history-content
    .oniric-users-dashboard__actions {
        width: 100%;

        flex-direction: row;

        justify-content: flex-start;
    }

}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .oniric-users-dashboard__snapshot-frame {
        width:
            calc(100% - 1.25rem);
    }


    .oniric-users-dashboard__snapshot-content {
        padding-top: 9rem;
    }


    .oniric-users-dashboard__snapshot-score-card {
        column-gap: 1rem;
    }


    .oniric-users-dashboard__snapshot-score-card-value strong {
        font-size:
            clamp(
                3.8rem,
                20vw,
                4.8rem
            );
    }

}