.sfb-result-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: none;
    flex-direction: column;
}

.sfb-result-page.active { display: flex; }
.sfb-result-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.sfb-result-back-button {
    background: #151515;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    color: #FF6600;
    padding: 2rem 3rem;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    min-width: 15rem;
    min-height: 5rem;
}

.sfb-result-header-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sfb-result-help-button,
.sfb-result-menu-button,
.rip-result-help-button,
.rip-result-menu-button {
    background: #151515;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    color: #FF6600;
    min-height: 5rem;
    min-width: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    padding: 2rem 3rem;
}

/* Standing Forward Bend Help Modal Styles */
.standing-forward-bend-help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.standing-forward-bend-help-overlay.active {
    display: flex;
}

.standing-forward-bend-help-modal {
    width: calc(100% - 12rem);
    min-height: 90rem;
    background: #151515;
    border-radius: 1.2rem;
    padding: 2.4rem 3.2rem 2.8rem;
    display: flex;
    flex-direction: column;
}

.standing-forward-bend-help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.standing-forward-bend-help-modal-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.standing-forward-bend-help-modal-close {
    width: 4rem;
    height: 4rem;
    border: none;
    background-color: transparent;
    background-image: url('../icon/close.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.standing-forward-bend-help-modal-close:hover {
    opacity: 0.7;
}

.standing-forward-bend-help-modal-close:active {
    opacity: 0.5;
}

.standing-forward-bend-help-modal-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    text-align: justify;
    padding-right: 1.5rem;
}

.standing-forward-bend-help-question {
    margin: 2rem 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
}

.standing-forward-bend-help-modal-body p {
    margin: 0;
    padding-left: 3rem;
    text-align: left;
}

.standing-forward-bend-help-modal-body .standing-forward-bend-help-question + p,
.standing-forward-bend-help-modal-body .standing-forward-bend-help-question + ul {
    margin-top: 0;
    margin-bottom: 1.6rem;
    padding-left: 6rem;
}

.standing-forward-bend-help-modal-body .standing-forward-bend-help-question + ul {
    margin-left: 3rem;
    padding-left: 2rem;
}

.standing-forward-bend-help-modal-body .standing-forward-bend-help-question:first-child {
    margin-top: 0;
}

.sfb-result-content, .rip-result-content {
    padding: 0rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sfb-result-title { display: flex; flex-direction: column; margin-bottom: 2rem; }
.sfb-result-title-text { color: #FF6600; font-size: 3.5rem; font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif; margin-left: 6rem; }
.sfb-result-title-underline{ height: 2px; background-color: #FF6600; margin-top: 1rem; margin-left: 6rem; margin-right: 6rem; }

.sfb-result-rating-and-score-section{ padding: 0rem 7.5rem; }
.sfb-result-rating-score-container{ display: flex; gap: 3rem; align-items: stretch; }
.sfb-result-rating-section{ flex: 0 0 auto; }
.sfb-result-rating-box{ background-color: #000000; border: 3px solid #555555; border-radius: 1rem; padding: 2rem 2rem; min-width: 20rem; height: 100%; display: flex; flex-direction: column; position: relative; }
.sfb-result-rating-label { color: #FF6600; font-size: 2rem; font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif; margin-bottom: 1rem; align-self: flex-start; }
.sfb-result-rating-value { color: #ffffff; font-size: 12rem; font-family: 'Morganite-Black-2', Arial, sans-serif; text-align: center; flex: 1; display: flex; align-items: center; justify-content: center; }

.sfb-result-score-section { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; min-height: 20rem; align-items: flex-end; }
.sfb-result-score-label { color: #FF6600; font-size: 2rem; font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif; align-self: flex-start; }
.sfb-result-score-value-container { display: flex; align-items: baseline; gap: 0.5rem; width: 100%; justify-content: flex-end; margin-top: -6rem; }
.sfb-result-score-number { color: #ffffff; font-size: 12rem; font-family: 'Morganite-Black-2', Arial, sans-serif; line-height: 1; }
.sfb-result-score-unit { color: #ffffff; font-size: 3rem; font-family: 'HarmonyOS_Sans_SC_Light', Arial, sans-serif; }

.sfb-result-progress-bar-container { display: flex; flex-direction: column; gap: 0.8rem; width: 100%; align-items: flex-end; }
.sfb-result-progress-bar-track { display: grid; grid-template-columns: repeat(27, 1fr); gap: 2px; width: 100%; height: 3rem; border: 3px solid #272727; border-radius: 0.5rem; align-items: center; }
.sfb-result-progress-segment.filled { background: #ff6600; height: 2rem; border-radius: 0.3rem; }
.sfb-result-progress-text { color: #FF6600; font-size: 1.8rem; font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif; text-align: right; }
.sfb-result-progress-text .sfb-result-progress-value{ margin-right: 0.3rem; color: #ffffff; }
.sfb-result-progress-text .sfb-result-progress-value-suffix { margin-right: 0.3rem; color: #ffffff; }
.sfb-result-retest-button { background-color: #151515; border: 3px solid #FF6600; border-radius: 0.8rem; color: #FF6600; font-size: 2rem; font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif; padding: 1rem 2rem; cursor: pointer; transition: all 0.3s ease; align-self: stretch; width: 100%; text-align: center; min-height: 6rem; }
.sfb-result-nextup-section { padding: 0rem 7.5rem; }
.sfb-result-nextup-heading { color: #FF6600; font-size: 3rem; font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif; margin: 1rem 0; }
.sfb-result-nextup-card{ background-color: #151515; border-radius: 2rem; padding: 0.5rem 2rem; overflow: visible; display: flex; flex-direction: column;min-height: 46rem; }
.sfb-result-nextup-title { color: #FF6600; font-size: 3rem; font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif; margin: 0 0 1rem 0; }
.sfb-result-nextup-content{ display: flex; flex-direction: row; align-items: stretch; gap: 2rem; }
.sfb-result-nextup-text { flex: 1; }
.sfb-result-nextup-subtitle { color: #ff6600; font-size: 2.3rem; font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif; margin: 0 0 1rem 0; }
.sfb-result-nextup-instructions { color: #ffffff; font-size: 1.5rem; font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif; margin: 0 0 2rem 0; padding-left: 2rem; list-style-type: circle; }
.sfb-result-nextup-instructions li::marker{ color: #ff6600; }
.sfb-result-nextup-instructions  li { margin-bottom: 0.8rem; line-height: 1.4; }
.sfb-result-nextup-image{ display: flex; justify-content: center; align-items: center; background-color: #1b1b1b; padding: 0 1rem; min-width: 20rem; max-height: 25rem; }
.sfb-result-nextup-image img{ max-width: 100%; max-height: 25rem; object-fit: contain; }
.sfb-result-nextup-start { background-color: #FF6600; border: none; border-radius: 0.5rem; color: #000000; font-size: 2rem; font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif; padding: 1rem 2rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; width: 100%; height: 6rem; position: relative; margin-top: 7.1rem; }
.sfb-result-nextup-start span { position: absolute; left: 50%; transform: translateX(-50%); }
.sfb-result-nextup-arrow { width: 2rem; height: 2rem; object-fit: contain; position: absolute; right: 2rem; }