:root {
    --fn-font: 'Nexa', sans-serif;
    --fn-weight-thin: 100;
    --fn-weight-light: 300;
    --fn-weight-regular: 400;
    --fn-weight-medium: 500;
    --fn-weight-bold: 700;
    --fn-weight-heavy: 800;
    --fn-weight-black: 900;

    --fn-heavy-size: 44px;
    --fn-h1-size: 32px;
    --fn-h2-size: 30px;
    --fn-h3-size: 22px;
    --fn-h4-size: 18px;
    --fn-h5-size: 16px;
    --fn-h6-size: 14px;

    --fn-body-size: 14px;
    --fn-small-size: 13px;
    --fn-xs-size: 12px;

    --fn-lh-tight: 1.05;
    --fn-lh-normal: 1.2;
    --fn-lh-relaxed: 1.35;

    --fn-black: #0a0a0a;
    --fn-purple: #7b68ee;
    --fn-blue: #3C4399;
    --fn-gray: #C6C6D0;
    --fn-light-gray: #EFEFF5;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nexa', sans-serif;
    display: flex;
    justify-content: center;
    background: #F2F2F2;
}

p, span, li, a, button {
    font-weight: var(--fn-weight-regular);
}
a {
    text-decoration: none;
    color: var(--fn-black);
}
.fn-app {
    width: 100%;
    max-width: 390px;
    min-height: 100vh;
    /*padding-bottom: 40px;*/
    display: flex;
    flex-direction: column;
}

h1 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-black);
    font-size: var(--fn-h1-size);
    line-height: var(--fn-lh-tight);
    margin: 0;
}

h2 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-heavy);
    font-size: var(--fn-h2-size);
    line-height: var(--fn-lh-tight);
    margin: 0;
}

h3 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-bold);
    font-size: var(--fn-h3-size);
    line-height: var(--fn-lh-normal);
    margin: 0;
}

h4 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-regular);
    font-size: var(--fn-h4-size);
    margin: 0;
}

h5 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-regular);
    font-size: var(--fn-h5-size);
    margin: 0;
}

h6 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-light);
    font-size: var(--fn-h6-size);
    margin: 0;
}

.fn-heavy-title h1 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-heavy);
    font-size: var(--fn-heavy-size);
    line-height: var(--fn-lh-tight);
    margin: 5px 0;
}

.fn-heavy-title p {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-light);
    font-size: var(--fn-heavy-size);
    line-height: var(--fn-lh-tight);
    margin: 0;
}

.fn-subtitle-light {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-light);
    color: #6D6D6D;
    font-size: 20px;
}

.fn-section-title {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-bold);
    font-size: var(--fn-h5-size);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.fn-title-custom {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-black);
    font-size: var(--fn-h1-size);
    line-height: 1.05;
    text-transform: uppercase;
}

.fn-text-light {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-light);
    font-size: var(--fn-body-size);
    color: #6D6D6D;
}

.fn-text-small {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-light);
    font-size: var(--fn-small-size);
}

.ft-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ft-header h3 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-heavy);
    font-size: var(--fn-h3-size);
    line-height: 1;
}

.ft-close {
    background: #E6E6F0;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    cursor: pointer;
}

.ft-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
}

.ft-progress-fill {
    height: 100%;
    background: var(--fn-blue);
}

main {
    flex: 1;
    display: block;
}
main.workout-bg,
main.error-bg {
    min-height: 100%;
}

main.workout-bg {
    position: relative;
    background-image: var(--fn-workout-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

main.error-bg {
    position: relative;
    background-image: var(--fn-waiting-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.75) contrast(1.05);
}
main.error-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(212, 185, 124, 0.45);
    z-index: 2;
}

/* NAVBAR */
.fn-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #F2F2F2;
}

.fn-navbar-left a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.fn-logo {
    height: 35px;
    width: auto;
}

.fn-logotype img {
    height: 12px;
    padding: 2px 0 0 10px;
}


/* LANGUAGE SELECTOR */
.fn-navbar-center {
    position: relative;
}

.fn-navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fn-lang-wrapper {
    position: relative;
}


.fn-lang-btn .fn-lang-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--fn-blue);
    margin-top: 2px;
}

.fn-lang-btn.active .fn-lang-arrow {
    border-top: none;
    border-bottom: 6px solid var(--fn-blue);
}


/* LANGUAGE DROPDOWN */
.fn-lang-dropdown {
    display: none;
    position: absolute;
    top: 38px;
    right: 0;

    width: 100%;
    background: #FFFFFF;

    border: 1px solid rgba(0,0,0,0.08);
    border-top: none;

    border-radius: 0 0 10px 10px;

    padding: 6px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);

    z-index: 20;
}

.fn-lang-dropdown.show {
    display: block;
}

.fn-lang-dropdown a {
    display: block;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    color: var(--fn-blue);
}
.fn-lang-dropdown a:hover {
    background: rgba(85,54,255,0.06);
}
.fn-lang-btn {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 6px 14px;
    font-weight: 600;
    color: var(--fn-blue);
    display: flex;
    align-items: center;
    gap: 6px;

    z-index: 21;
    position: relative;
}

.fn-lang-btn.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* END LANGUAGE DROPDOWN */

.fn-menu-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
}

.menu-icon {
    width: 100%;
    height: 3px;
    background: #000;
    box-shadow: 0 7px #000, 0 -7px #000;
}

/* SIDE MENU */
.fn-side-menu {
    position: fixed;
    top: 0;
    right: -85%;
    width: 85%;
    height: 100%;
    background: #C5C196;
    z-index: 999;
    padding: 20px;
    transition: right 0.3s ease;
}

.fn-side-menu.open {
    right: 0;
}

.fn-side-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    background: beige;
    border-radius: 50%;
    border: none;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;
    cursor: pointer;
    z-index: 3;
}

.fn-side-close img {
    width: 12px;
    height: 12px;
}

.fn-side-items {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-end;
    text-align: right;
}


.fn-side-items a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    letter-spacing: 1px;
}

.fn-side-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    opacity: 1;
}

.fn-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
}

.fn-overlay.show {
    display: block;
}
/* END NAVBAR */

.ft-bottom-nav {
    position: fixed;
    left: 0;
    bottom: 20px;
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 1000;
}

.ft-btn-light {
    flex: 1;
    margin-right: 10px;
    background: #E6E6F0;
    color: #000;
    border: none;
    font-size: 16px;
    padding: 14px;
    border-radius: 28px;
}

.ft-btn-dark {
    position: relative;
    width: 65%;
    padding: 14px 22px;
    border-radius: 30px;
    background: #120A05;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.ft-btn-dark img {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    pointer-events: none;
}

/* AI-PLAN BANNER ------------------------- */
.fn-plan-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.fn-plan-inner {
    background: #3C4399;
    border-radius: 5px;
    padding: 24px 15px 10px;
    margin-top: 50px;
    color: white;
    position: relative;
    z-index: 2;
    opacity: 0.6;
}

.fn-plan-hero-img {
    position: absolute;
    right: -16px;
    top: -161px;
    width: 146px;
    height: auto;
    z-index: 1;
    object-fit: contain;
    pointer-events: none;
}

.fn-plan-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    z-index: 4;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
}

.fn-plan-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.fn-plan-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0.9;
}


.fn-thumbs {
    display: flex;
    gap: 8px;
    padding-top: 8px;
}


.fn-ex-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid #fff;
}

.fn-next-btn {
    width: 42px;
    height: 42px;
    background: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 10;
}

.fn-next-btn img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}


.fn-plan-over {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    z-index: 3;
    pointer-events: none;
}
/* END AI-PLAN BANNER ------------------------- */

/* BMI ------------------------- */

.bmi-wrapper {
    margin-top: 60px;
    position: relative;
}

.bmi-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bmi-label {
    font-size: 18px;
    font-weight: 300;
}

.bmi-value {
    font-size: 48px;
    font-weight: 700;
    opacity: 0.8;
    color: #3C439999;
}

.bmi-bars {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bmi-bars .bar {
    height: 18px;
    border-radius: 6px;
}

.bmi-bars .active {
    height: 38px;
}

.bmi-bars .bar.low   { background:var(--fn-blue); }
.bmi-bars .bar.mid   { background:var(--fn-blue); }
.bmi-bars .bar.high1 { background:#C9D1FF; }
.bmi-bars .bar.high2 { background:#DFE5FF; }

.bmi-indicator {
    position:absolute;
    width:10px;
    height:55px;
    background:black;
    border-radius:5px;
    border: 2px solid #fff;
    top:-13px;
}

.bmi-level {
    font-size: 12px;
}

/* END BMI ------------------------- */

/* USER DATA CARD ------------------------- */
.fn-usercard {
    background: #ffffff;
    border-radius: 7px;
    margin-top: 48px;
    padding: 22px 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    position: relative;
}

.fn-usercard-badge {
    position: absolute;
    top: -14px;
    left: 18px;
    background: #D4D2A4;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 10px;
    color: #5A5940;
    letter-spacing: 0.5px;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.12);
}

.fn-usercard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 22px;
    row-gap: 14px;
    margin-top: 12px;
}

.fn-usercard-grid strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--fn-blue);
    margin-bottom: 2px;
}

.fn-usercard-grid span {
    font-size: 15px;
    font-weight: 500;
    color: #111;
}
/* END USER DATA CARD ------------------------- */

/* PLAN PAGE ------------------------- */
.ai-week-card {
    background: #F5F4F8;
    border-radius: 16px;
    padding: 20px;
    position: relative;
}

.ai-week-badge {
    position: absolute;
    top: -12px;
    left: 12px;
    background: #D9D5FF;
    color: var(--fn-blue);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 10px;
}

.ai-week-toggle {
    width: 36px;
    height: 36px;
    background: #E4E1FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fn-blue);
    font-weight: bold;
    font-size: 16px;
    transition: 0.25s ease;
    cursor: pointer;
}

.ai-week-toggle::before {
    content: "▼";
    font-size: 16px;
    margin-top: 2px;
}

.ai-week-toggle[aria-expanded="true"]::before {
    content: "▲";
    margin-top: -2px;
}

.ai-week-images img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.ai-exercise-card {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    align-items: center;
}

.ai-exercise-card img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.ai-ex-meta {
    font-size: 13px;
    color: #8C8896;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.ai-ex-title {
    font-weight: 700;
    font-size: 15px;
    color: #2e2b36;
}

.ai-ex-desc {
    font-size: 13px;
    color: #7b7684;
    margin-top: -2px;
}

.ai-ex-time {
    font-weight: 600;
    color: #7b7684;
    font-size: 13px;
    white-space: nowrap;
    width: 70px;
    text-align: right;
}

.cursor-pointer {
    cursor: pointer;
}

.ai-day-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 12px 0;
}

.ai-day-divider .line {
    flex-grow: 1;
    height: 1px;
    background: #CFCBD9;
}

.ai-day-divider .label {
    padding: 0 12px;
    font-weight: 700;
    color: #6D6484;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}


.ai-week-progress {
    background: #E9E9F5;
    height: 8px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.ai-week-progress-fill {
    height: 100%;
    background: var(--fn-blue);
    width: 0%;
    transition: width .3s ease;
}

.ai-badge {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.ai-badge-upcoming {
    background: #E5E5E7;
    color: #555;
}

.ai-badge-inprogress {
    background: #EEE5FF;
    color: var(--fn-blue);
}

.ai-badge-completed {
    background: #D4F7D0;
    color: #2D9A2D;
}

.ai-continue-btn {
    background: var(--fn-blue);
    border-radius: 10px;
    padding: 5px 0;
    font-weight: 600;
    font-size: 12px;
    border: none;
}

.ai-continue-btn:hover {
    background: #4838dd;
}
/* END PLAN PAGE ------------------------- */

/* ================================
   SWIPE CONTAINER
================================ */
/* NEW: wrapper that allows vertical overflow */
.fn-horizontal-scroll-wrapper {
    overflow-y: visible !important;
    position: relative; /* for stability */
}

/* Actual swipe zone */
.fn-horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    padding-bottom: 5px;
    padding-top: 55px;
}
.fn-horizontal-scroll::-webkit-scrollbar {
    display: none;
}


/* Swipe card full width */
.fn-card-full {
    min-width: 92%;
    max-width: 92%;
    height: 300px;
    border-radius: 24px;
    position: relative;
    overflow: visible;
    scroll-snap-align: start;
    padding: 26px 22px;
    color: white;
}

.fn-card-badge {
    position: absolute;
    top: -14px;
    left: 22px;
    z-index: 5;

    padding: 4px 10px;
    background: #E6E6D0;
    color: var(--fn-black);;
    font-size: 8px;
    font-weight: var(--fn-weight-bold);
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.fn-card-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}
.fn-card-person {
    position: absolute;
    right: -21px;
    top: -55px;
    height: 118%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}
.fn-card-content {
    position: relative;
    z-index: 3;
    width: 58%;
}
.fn-btn-white {
    width: 100%;
    background: white;
    color: black;
    border-radius: 30px;
    padding: 12px 0;
    font-weight: 600;
    border: none;
}
.fn-btn-white:active {
    background: #eaeaea;
}
.fn-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 6px;
}
.fn-dot {
    width: 6px;
    height: 6px;
    background: #D0D0D8;
    border-radius: 50%;
    transition: 0.25s ease;
}
.fn-dot.active {
    width: 22px;
    border-radius: 6px;
    background: #000;
}


/* CUSTOM WORKOUT SECTION */
.fn-divider-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 0 10px;
}
.fn-divider-title::before,
.fn-divider-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #C6C6D0;
}
.fn-divider-title span {
    font-size: 11px;
    font-weight: var(--fn-weight-medium);
    color: #6D6D6D;
    letter-spacing: 1px;
    white-space: nowrap;
}
.fn-custom-workout-block {
    margin: 30px 0;
}
.fn-cw-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.fn-cw-top img {
    width: 46%;
    margin-top: -10px;
    margin-bottom: -25px;
}
.fn-cw-text {
    flex: 1;
    padding-top: 18px;
}
.fn-cw-text h2 {
    font-weight: var(--fn-weight-black);
    font-size: 32px;
    line-height: 1.05;
    text-transform: uppercase;
}
.fn-cw-text span {
    color: var(--fn-blue);
    font-weight: var(--fn-weight-black);
}
.fn-outline-card {
    margin-top: 26px;
    background: #DDE0EF;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
}
.fn-outline-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}
.fn-outline-text h5 {
    font-size: 16px;
    line-height: var(--fn-lh-tight);
    font-weight: var(--fn-weight-bold);
    color: #3F3E59;
}
.fn-outline-text span {
    font-size: 14px;
    font-weight: var(--fn-weight-light);
    color: #3F3E59;
}
.fn-addmore {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    margin-top: 18px;
}
.fn-addmore:active {
    opacity: 0.7;
}
.fn-add-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fn-add-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.fn-section-title {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-heavy);
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--fn-blue);
    margin-top: 22px;
    margin-bottom: 14px;
}

/* WORKOUT CARDS  ------------------------- */
.fn-workout-scroll .fn-card {
    min-width: 48%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}
.fn-workout-scroll a {
    min-width: 48%;
    display: block;
}
.fn-card {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    /*background: #fff;*/
}
.fn-card-img {
    height: 150px;
    overflow: hidden;
    position: relative;
}
.fn-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fn-card-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #EDEDF3;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    cursor: pointer;
    transition: opacity .15s;
}
.fn-card-close img {
    width: 12px;
    height: 12px;
    opacity: 0.75;
}
.fn-card-close:active {
    opacity: .6;
}
.fn-card-body {
    padding: 18px 16px 20px;
    border-radius: 0 0 14px 14px;
    background: #fff;
}
.fn-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.fn-workout-scroll .fn-card-title {
    font-size: 13px;
}
.fn-card-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
    line-height: 1.07;
}
.fn-card-level,
.fn-card-duration {
    font-size: 13px;
    opacity: 0.8;
}
.fn-card-subtitle {
    font-size: 12px;
    opacity: 0.8;
}
.fn-card-description {
    font-size: 12px;
    opacity: 0.78;
    line-height: 1.35;
}
.fn-card-goal .fn-card-body {
    background: #0C0705;
    color: #fff;
}
.fn-card-popular-beginner .fn-card-body {
    background: #E8E9F7;
    color: #000;
}
.fn-card-popular-intermediate .fn-card-body {
    background: #D6DBFF;
    color: #000;
}
.fn-card-popular-expert .fn-card-body {
    background: #D3CBA5;
    color: #000;
}
.fn-workout-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 25px;
}
.fn-workout-scroll::-webkit-scrollbar { display: none; }
.ai-card {
    background: linear-gradient(135deg, #f9f6dd 0%, #d6e0ff 60%, #cbd2ff 100%);
    border: 1px solid #e2e8ff;
}
/* END WORKOUT CARDS  ------------------------- */
/* PUBLIC WORKOUT START  ------------------------- */
.fn-ex-list-box {
    position: relative;
}

.fn-ex-list-scroll {
    max-height: 60vh;
    overflow-y: auto;
    position: relative;
    padding: 10px 0;
}

.fn-start-sticky {
    position: sticky;
    bottom: 20%;
    z-index: 50;
    pointer-events: none;
}

.fn-start-sticky-inner {
    transform: translateY(-50%);
    display: flex;
    justify-content: center;

    padding: 45px 0 0;
    background: rgba(242,242,242,0.8);
}

.fn-start-sticky-inner a {
    pointer-events: auto;
}
/* PUBLIC WORKOUT START  ------------------------- */
/* WORKOUT START  ------------------------- */
.fn-workout-start {
    background: #000;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.fn-workout-video {
    width: 100%;
    height: 42vh;
    background: #000;
    position: relative;
    overflow: hidden;
}

.fn-workout-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fn-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;

    background: #E6E6F0;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    cursor: pointer;
}

.fn-workout-block {
    padding: 28px 20px 40px;
    min-width: 180px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    background: white;

    height: 68vh;

    margin-top: -24px;
    position: relative;
    z-index: 10;
}

.fn-timer-box {
    background: #F4F4F7;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
}

.fn-timer-progress {
    height: 16px;
    width: 100%;
    background: repeating-linear-gradient(
            to right,
            #D4D4D8 0px,
            #D4D4D8 4px,
            transparent 4px,
            transparent 8px
    );
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.fn-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 77, 92, 0.4);
    transition: width 1s linear;
}

.fn-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.fn-skip-btn {
    background: #fff;
    border: 1px solid #DDD;
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 14px;
}

.fn-stop-btn {
    background: #FF4D5C;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 14px;
}

.fn-start-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 14px;
    transition: 0.2s;
}

.fn-timer-time {
    font-size: 32px;
    font-weight: 700;
    color: #181A2A;
}

.fn-timer-sub {
    font-size: 14px;
    color: #8A8A9B;
}

.fn-next-label {
    margin-top: 22px;
    font-size: 14px;
    color: #808080;
}

.fn-next-list {
    margin-top: 12px;

    max-height: 26vh;
    overflow-y: auto;
    padding-right: 6px;
}

.fn-next-item {
    display: flex;
    align-items: center;
    background: #F7F7FA;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 10px;
}

.fn-next-img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
}

.fn-next-info {
    margin-left: 14px;
    font-size: 16px;
    font-weight: 500;
}

.fn-ai-coach {
    position: absolute;
    bottom: 110px;
    right: 20px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    text-decoration: none;
    z-index: 50;
}

.fn-ai-bubble {
    background: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4C4C62;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);

    margin-right: 0;
    border-right: none !important;
}

.fn-ai-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;

    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
/* END WORKOUT START  ------------------------- */

/* WAITING PAGE ------------------------- */
#waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    z-index: 9999;
}

#waiting-overlay #wait-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

#waiting-overlay::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, #ffffff 60%, rgba(255,255,255,0));
    z-index: -1;
}

#waiting-overlay #wait-text {
    margin-top: 40px;
    font-size: 18px;
    letter-spacing: .4px;
    font-weight: 300;
    color: rgba(0,0,0,0.75);
    text-align: center;
    z-index: 1;
    transform: translateY(-60px);
}

#wait-animation {
    position: relative;
    width: 180px;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: -100px;
}

#wait-logo {
    width: 160px;
    clip-path: inset(60% 0 0 0);
    animation: revealLoop 4s ease-in-out infinite;
}

@keyframes revealLoop {
    0% {
        clip-path: inset(90% 0 0 0);
        opacity: 1;
    }
    25% {
        clip-path: inset(40% 0 0 0);
        opacity: 1;
    }
    50% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    65% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    100% {
        clip-path: inset(90% 0 0 0);
        opacity: 1;
    }
}
/* END WAITING PAGE ------------------------- */

/* END CUSTOM WORKOUT BLOCK ------------------------- */
.fn-swipe {
    margin-bottom: 14px;
}

.fn-swipe-inner {
    position: relative;

}

.fn-swipe-action {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    width: 48px;
    border-radius: 8px;
    border: 0;
    padding: 0;

    background: #E15757;
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 1;
}

.fn-swipe-action img {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.fn-swipe-content {
    position: relative;
    z-index: 2;

    display: flex;
    width: 100%;
    box-sizing: border-box;

    background: #DDE0EF;
    border-radius: 8px;

    transform: translateX(0);
    transition: transform 0.22s ease;
    will-change: transform;
    flex: 0 0 auto;
}

.fn-swipe.open .fn-swipe-content {
    transform: translateX(-52px);
}
/* CUSTOM WORKOUT BLOCK ------------------------- */

/* WORKOUT PAGE ------------------------- */
.fn-w-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-family: NexaBook, sans-serif;
    border-radius: 6px;
    border: 1.5px solid #A7A6C5;
    outline: none;
    background: #F2F2F2;
    box-sizing: border-box;
}

.fn-w-input::placeholder {
    color: #A7A6C5;
    letter-spacing: 0.5px;
}

.fn-w-input:focus {
    border-color: #6D6BCE;
}

.fn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: NexaBold, sans-serif;
    font-size: 14px;
    letter-spacing: 0.4px;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    user-select: none;
    transition: 0.15s ease;
}

.fn-btn-danger {
    background: transparent;
    color: #c3c0c0;
    font-size: 12px;
    text-transform: uppercase;
    border: none;
}

.fn-btn-circle {
    width: 48px;
    height: 48px;
    background: #0C0704;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.fn-workout-wrapper {
    padding: 20px 16px 40px;
    background: #f0efef;
    min-height: 100vh;
}

.fn-workout-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.fn-workout-title {
    font-family: NexaBold, sans-serif;
    font-size: 24px;
    line-height: 26px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    max-width: 200px;
}

.fn-input-group {
    margin-bottom: 8px;
}

.fn-input-error {
    margin-top: 4px;
    font-size: 12px;
    color: #E15757;
    font-family: NexaBook, sans-serif;
}

.fn-input--invalid {
    border-color: #E15757;
}


.fn-workout-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fn-workout-add-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 70px;
    text-decoration: none;
    color: #fff;
}

.fn-workout-add-label {
    margin-top: 6px;
    font-size: 12px;
    text-transform: uppercase;
    font-family: NexaBold, sans-serif;
    color: #000;
}

.fn-workout-empty {
    margin-top: 40px;
    text-align: center;
    font-family: NexaBold, sans-serif;
    color: #7E82B8;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fn-picker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #EFEEEE;
    border-radius: 11px 11px 0 0;
    padding: 24px 20px 30px;
    max-height: 95vh;
    height: 95vh;
    overflow-y: auto;
    box-shadow: 0 -4px 22px rgba(0,0,0,0.15);
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.fn-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.fn-picker-title {
    font-family: NexaBold, sans-serif;
    font-size: 16px;
    text-align: center;
    width: 100%;
    color: #6D6BCE;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.fn-search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.fn-search-input {
    width: 100%;
    height: 42px;
    background: #F3F2F4;
    border: none;
    border-radius: 14px;
    padding: 0 16px 0 42px;
    font-family: NexaBook, sans-serif;
    font-size: 15px;
    color: #3D3A59;
    outline: none;
    box-sizing: border-box;
}

.fn-search-input::placeholder {
    color: #7E82B8;
    opacity: 1;
}

.fn-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.85;
    pointer-events: none;
}

.fn-filter-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.fn-btn-dark {
    background: #0C0704;
    color: #fff;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fn-filter-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.fn-exercise-card {
    background: #EEF0F8;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: 0.15s ease;
}

.fn-exercise-card:hover {
    background: #e4e6ef;
}

.fn-exercise-thumb {
    width: 63px;
    height: 63px;
    border-radius: 8px;
    object-fit: cover;

    background-color: #e3e5ee;
    background-image: var(--fn-placeholder-thumb);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
}


.fn-exercise-name {
    font-family: NexaBold, sans-serif;
    font-size: 15px;
    color: #000000;
    text-transform: uppercase;
    flex-grow: 1;

    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.fn-exercise-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;

    border: 2px solid #A7A6C5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    flex-shrink: 0;
    line-height: 0;

    transition: 0.15s ease;
}
.fn-exercise-check.checked {
    background: #6D6BCE;
    border-color: #6D6BCE;
    box-shadow: inset 0 0 0 3px white;
    box-sizing: border-box;
}

#exercise-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#exercise-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 90px;
}

#add-exercises-btn img{
    right: 52px;
    width: 24px;
    height: 24px;
}

#add-exercises-btn {
    position: sticky;
    bottom: 0;
    z-index: 5;

    margin-top: auto;
    margin-bottom: 0;

    background: #120A05;
}

.fn-delete-action {
    display: flex;
    align-items: center;
    gap: 8px;

    background: transparent;
    border: none;
    padding: 0;

    font-family: NexaBold, sans-serif;
    font-size: 12px;
    text-transform: uppercase;

    color: #c3c0c0;
    cursor: not-allowed;
    transition: color .15s ease;
}

.fn-delete-action:disabled {
    opacity: 1;
}

.fn-delete-action:not(:disabled) {
    color: #6D6BCE;
    cursor: pointer;
}

.fn-delete-icon {
    padding: 8px;
}

.fn-delete-action:not(:disabled):hover {
    color: #4F4DC8;
}

.hidden {
    display: none !important;
}

.fn-filter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.fn-filter-delete {
    font-family: NexaBold, sans-serif;
    font-size: 14px;
    color: #E15757;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fn-filter-title {
    font-family: NexaBold, sans-serif;
    font-size: 15px;
    color: #2D2B41;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fn-filter-done {
    font-family: NexaBold, sans-serif;
    font-size: 14px;
    color: #6D6BCE;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    background: #EEF0F8;
    border-radius: 12px;
    padding: 14px;
    /*margin-bottom: 14px;*/
    gap: 14px;
}

.fn-filter-label {
    margin: 12px 0 10px;
    font-family: NexaBold, sans-serif;
    font-size: 13px;
    color: #2D2B41;
    letter-spacing: 0.8px;
}

.fn-muscle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 10px;
    margin-top: 10px;
}

.fn-muscle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.fn-muscle-item img {
    width: 58px;
    height: 58px;
    padding: 10px;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px #E5E6F0;
    object-fit: contain;
}

.fn-muscle-label {
    margin-top: 6px;
    font-size: 11px;
    font-family: NexaBook, sans-serif;
    color: #6D6BCE;
    text-transform: uppercase;
    text-align: center;
}

.fn-muscle-item.active img {
    box-shadow: 0 0 0 2px #6D6BCE;
    background: #EFEFFD;
}

.fn-muscle-item.active .fn-muscle-label {
    color: #6D6BCE;
    font-family: NexaBold, sans-serif;
}

.fn-level-options {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.fn-level-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-family: NexaBold, sans-serif;
    font-size: 12px;
    letter-spacing: 0.4px;
    border: 1.6px solid #D3D2E5;
    color: #B4B3CB;
    background: #F4F4F7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fn-level-btn.active {
    background: #FFFFFF;
    border-color: #6D6BCE;
    color: #2D2B41;
}

.fn-level-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fn-equip-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.fn-equip-btn {
    padding: 14px 20px;
    border-radius: 12px;
    border: 1.6px solid #D3D2E5;
    background: white;
    font-family: NexaBold, sans-serif;
    font-size: 12px;
    color: #2D2B41;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fn-equip-btn.active {
    background: #EEF0FF;
    border-color: #6D6BCE;
}

.fn-equip-btn.disabled {
    background: #F5F5F6;
    color: #B4B3CB;
    border-color: #E1E0EC;
    cursor: not-allowed;
}

/* END WORKOUT PAGE ------------------------- */

/* ERROR PAGE ------------------------- */
.fn-error-page {
    position: relative;
    width: 100%;
    max-width: 390px;
    min-height: calc(100vh);
    overflow: hidden;
}

.fn-error-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 120px;
    padding-left: 20px;
    padding-right: 20px;
}

.fn-error-content h1 {
    font-size: 64px;
    font-weight: 900;
    color: #0a0a0a;
    margin-bottom: 10px;
}

.fn-error-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}

.fn-error-text {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 40px;
}

.fn-error-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #0a0a0a;
    color: white;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.fn-error-btn:active {
    opacity: .8;
}


.fn-error-logo {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 60%;
    max-width: 240px;
    opacity: 1;
    z-index: 6;
    pointer-events: none;
}

.fn-error-logo img {
    width: 100%;
    height: auto;
    display: block;
}
/* END ERROR PAGE ------------------------- */

/* ACCOUNT PAGE ------------------------- */
.reset-btn {
    font-weight: 700;
    color: var(--fn-blue) !important;
}
.reset-btn:hover {
    text-decoration: underline;
}


.fn-subscription-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 18px;
    margin-top: 14px;
    box-shadow: 0px 8px 22px rgba(0,0,0,0.07);
    font-size: 14px;
    line-height: 1.45;
}

.fn-subscription-card a {
    color: var(--fn-blue);
    font-weight: 600;
    text-decoration: underline;
}
/* END ACCOUNT PAGE ------------------------- */

/* CONTACT_US PAGE ------------------------- */
.fn-input {
    background: #D9E2FF;
    border: none;
    padding: 14px;
    border-radius: 10px;
    width: 100%;
    font-size: 15px;
}
.fn-label {
    margin-top: 24px;
    margin-bottom: 8px;
    font-family: NexaBold, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: #7E82B8;
}
.fn-select {
    background: #D9E2FF;
    border-radius: 10px;
    padding: 14px;
    border: none;
    font-size: 15px;
    width: 100%;
}
textarea.fn-input {
    height: 160px;
}
.fn-label-required {
    color: #d00;
    font-size: 14px;
    margin-top: -6px;
    display: block;
}
.fn-upload-btn {
    background: #C7D4FF;
    border: 1px solid #B0C2FF;
    padding: 6px 18px;
    border-radius: 8px;
}
.fn-send-btn {
    background: #1A1A1A;
    color: #fff;
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border-radius: 30px;
    margin-top: 25px;
}
/* END CONTACT_US PAGE ------------------------- */

/* TERMS PAGE ------------------------- */
.terms-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.terms-title {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
}

.terms-text {
    font-size: 15px;
    line-height: 1.55;
    color: #333;
    white-space: pre-line;
}
/* END TERMS PAGE ------------------------- */

/* END FAQ PAGE ------------------------- */
.faq-accordion .accordion-item {
    background: transparent !important;
    border: none !important;
    margin-bottom: 4px;
}

.faq-btn {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 0;
    padding-right: 0;
}

.accordion-button::after { display: none !important; }

.faq-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #E2E6F3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #4A6CF7;
    margin-right: 10px;
}

.faq-question-text {
    flex: 1;
    white-space: normal;
    word-break: break-word;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.accordion-button:not(.collapsed) .faq-question-text {
    font-weight: 700;
}

.accordion-button:not(.collapsed) {
    color: #000 !important;
    background: transparent !important;
}

.faq-answer {
    color: #555;
    font-size: 14px;
    margin-top: 6px;
    margin-left: 8px;
}

/* END FAQ PAGE ------------------------- */

/* FOOTER ------------------------- */
.fn-footer {
    margin-top: 40px;
    text-align: center;
    color: #6D6D6D;
    font-family: var(--fn-font);
}


.fn-footer-links {
    display: flex;
    justify-content: center;
    gap: 38px;
    margin-bottom: 18px;
}

.fn-footer-links a {
    font-size: 14px;
    font-weight: 400;
    color: #6D6D6D;
    text-decoration: none;
}

.fn-footer-links a:hover {
    opacity: .7;
}

.fn-footer-copy {
    font-size: 12px;
    opacity: .75;
    letter-spacing: 0.3px;
}

.fn-footer[dir="rtl"] {
    direction: rtl;
    text-align: center;
}

.fn-footer[dir="rtl"] .fn-footer-links {
    flex-direction: row-reverse;
}
/* END FOOTER ------------------------- */

/* MODAL ------------------------- */
.modal.show {
    background-color: rgba(0, 0, 0, 0.85) !important;
}
#aiFitnessTestModal .modal-dialog {
    max-width: 390px;
    margin: 0 auto;
}

#aiFitnessTestModal .modal-content {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ai-modal-inner {
    margin-top: 60px;
    position: relative;
}

.ai-card-container {
    position: relative;
    overflow: visible !important;
    padding: 0 20px;
}
.modal .fn-card-full {
    min-width: 100%;
    max-width: 100%;
}

.modal .ai-person {
    position: absolute;
    right: -10px;
    top: -54px;
    width: 200px;
    z-index: 5;
    pointer-events: none;
}

.modal .ai-modal-caption {
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.modal .fn-card-badge {
    width: 20%;
    left: 35px;
}
/* END MODAL ------------------------- */

/* LOGIN PAGE ------------------------- */
.fn-login-top {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #E7EAFF 60%, #DDE3FF 100%);
    height: 420px;
}

.fn-login-hero-img {
    position: absolute;
    top: 0;
    width: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

[dir="rtl"] .fn-login-hero-img {
    right: auto;
    left: -24px;
    transform: scaleX(-1);
}

.fn-login-title {
    position: absolute;
    left: 16px;
    bottom: 18px;
    z-index: 2;
}

.fn-login-title h1 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-light);
    font-size: var(--fn-h2-size);
    line-height: var(--fn-lh-tight);
}

.fn-login-title h2 {
    font-family: var(--fn-font);
    font-weight: var(--fn-weight-bold);
    font-size: var(--fn-h2-size);
}

[dir="rtl"] .fn-login-title {
    left: auto;
    right: 16px;
    text-align: right;
}

.fn-login-top::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    background: linear-gradient(to top, #ffffff 25%, rgba(255,255,255,0) 100%);
    z-index: 1;
}
/* END LOGIN PAGE ------------------------- */
