/* Hide scrollbars globally on all befayr pages */
body:has(.befayr_container),
body:has(.befayr_container) *  {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body:has(.befayr_container)::-webkit-scrollbar,
body:has(.befayr_container) *::-webkit-scrollbar {
    display: none;
}

.befayr_tabcontent {
    display: flex;
}

.befayr_selection_wrapper {
    width: 100%;
    box-sizing: border-box;
}

.befayr_selection_header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.befayr_icon_large {
    border-radius: 200px;
    padding: 15px;
    width: fit-content;
}

.befayr_icon_large.premium {
    background-color: #42DBA8!important;
    color: white;
}

.befayr_icon_large.lite {
    background-color: #8097F9!important;
    color: white;
}

.befayr_icon_large.error {
    background-color: rgba(246, 146, 30, 0.12)!important;
    color: #f6921e;
}

.befayr_icon_blue {
    background-color: #272F68;
    color: white;
}

.befayr_section_title_w_icon {
    display: flex;
    flex-direction: row!important;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.befayr_section_title_w_icon .text_title {
    margin-bottom: 0;
    font-size: 18px;
}

.befayr_subtitle {
    color: #272F68;
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
}

.befayr_selection_container {
    border-top: 1px solid #F1F4FF;
    padding: 20px 0 0 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.befayr_selection_container_2 {
    border-top: 1px solid #F1F4FF;
    border-bottom: 1px solid #F1F4FF;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.befayr_selection_container_3 {
    border-top: 1px solid #F1F4FF;
    padding-top: 8px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.befayr_icon_small {
    padding: 10px;
    width: fit-content;
    height: fit-content;
    border-radius: 200px;
}

.befayr_icon_small.premium_annual {
    padding: 10px;
    width: fit-content;
    height: fit-content;
    border-radius: 200px;
    background-color: #F6921E;
    color: white;
}

.befayr_icon_small.premium_monthly {
    padding: 10px;
    width: fit-content;
    height: fit-content;
    border-radius: 200px;
    background-color: #8097F9;
    color: white;
}

.befayr_selection_button.premium_monthly:hover {
    background-color: #272F68;
}

.befayr_icon_light_blue {
    color: white;
    background-color: #8097F9;
}

.befayr_light_blue_color {
    color: #8097F9!important;
}


.befayr_green_color {
    color: #42DBA8!important;
}

.befayr_selection_top{
    display: flex;
    flex-direction: row!important;
    gap: 10px;
    align-items: center!important;
}

.befayr_selection_top_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.befayr_selection_button {
    text-decoration: none;
    background-color: #8097F9;
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 0;
    transition: ease-in-out 0.3s;
    display: block;
}

.befayr_selection_top_title {
    color: #272F68;
    font-weight: 550;
    font-size: 14px;
}

.befayr_selection_top_description {
    font-size: 13px;
    font-weight: 400;
    color: #676A7A;
}

.befayr_selection_button.premium {
    background-color: #42DBA8;
}

.befayr_selection_button.referral_badge {
    background-color: #6C63FF;
    cursor: default;
    pointer-events: none;
}

.befayr_selection_button:hover {
    background-color: #272F68;
}

.befayr_icon_small.premium {
    background-color: #42DBA8;
    color: white;
}

.befayr_icon_small_premium_annual {
    background-color: #F6921E;
    color: white;
}

.befayr_selection_button.premium_annual {
    background-color: #F6921E;
}

.befayr_selection_button.premium_annual:hover {
    background-color: #272F68;
}

.befayr_premium_perks_wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.befayr_premium_perks_item {
    display: flex;
    flex-direction: row!important;
    align-items: center;
    flex-wrap: wrap;
}

.befayr_premium_perks_item span {
    color: #42DBA8;
    font-size: 20px;
}

.befayr_premium_perk_text {
    font-size: 13px;
    font-weight: 400;
    color: #676A7A;
}

.befayr_text_small {
    font-weight: 400;
    color: #676A7A;
    text-align: left;
}

.befayr_app_button_wrapper {
    display: flex;
    flex-direction: row!important;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.befayr_app_button {
    width: 49%;
}

.befayr_app_button_img {
    width: 100%!important;
}

.text_align_center {
    text-align: center;
}

.befayr_pill_button {
    display: flex;
    flex-direction: row!important;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    background-color: #e2e7ff;
    color: #8097F9;
    width: fit-content;
    padding: 4px 12px 4px 8px;
    cursor: pointer;
    margin-bottom: 20px;
}

.befayr_pill_button span {
    font-size: 18px;
}

.befayr_pill_button_text {
    font-size: 13px;
    font-weight: 500;
}

.card_right {
    height: -webkit-fill-available;
}

.befayr_account_info_row {
    display: flex;
    flex-direction: row!important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F1F4FF;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.befayr_account_info_row_2 {
    display: flex;
    flex-direction: row!important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F1F4FF;
    padding-bottom: 7px;
}

.befayr_account_label {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    color: #98a7bf;
}

.befayr_account_label span {
    font-size: 12px;
    color: inherit;
}

.befayr_account_info_wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 40px;
}

.stripe_card_element {
    border: 2px solid #F0F0F0;
    border-radius: 6px;
    padding: 10px 16px;
    background: white;
    transition: border-color ease-in-out 0.3s;
}

.stripe_card_element:hover {
    border-color: #8097F9;
}

.befayr_input_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px; 
}

.input_half {
    width: calc(50% - 5px);
    margin-top: 0;
}

.input_half input {
    width: calc(100% - 36px);
}

.befayr_img {
    width: 100%;
    height: 160px;
    margin-top: 40px;
}

.befayr_img_register {
    width: 100%;
    height: 60px;
    margin-top: 40px;
}

.befayr_container{
    display: flex;
    flex-direction: column!important;
    justify-content: space-between!important;
}

.befayr_header {
    background-color: #272F68;
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.befayr_header img {
    height: clamp(32px, 5vw, 50px);
    width: auto;
}

.befayr_footer {
    width: 100%;
    background-color: #272F68;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;

}

.befayr_footer a {
    text-decoration: none;
    /* text-transform: uppercase; */
    color: white;
    font-weight: 400;
    padding: 10px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: ease-in-out 0.3s;
}

.befayr_footer a:hover {
    opacity: 0.7;
}

/* Status dot (Plan row) */
.befayr_status_dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.befayr_status_dot::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.befayr_status_dot.dot_blue::before   { background-color: #8097F9; }  /* Lite */
.befayr_status_dot.dot_green::before  { background-color: #42DBA8; }  /* Premium */
.befayr_status_dot.dot_orange::before { background-color: #F6921E; }  /* Referral Code */

/* Status pill (Next renewal row) */
.befayr_status_pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
}
.befayr_status_pill.pill_grey   { background-color: #F1F4FF; color: #98a7bf; }
.befayr_status_pill.pill_green  { background-color: #42DBA8; color: white; }
.befayr_status_pill.pill_blue   { background-color: rgba(128, 151, 249, 0.12); color: #8097F9; }
.befayr_status_pill.pill_orange { background-color: rgba(246, 146, 30, 0.12); color: #e07b00; }
.befayr_status_pill.pill_yellow { background-color: rgba(234, 179, 8, 0.12); color: #ca8a04; }
.befayr_status_pill.pill_red    { background-color: rgba(231, 76, 60, 0.1); color: #e74c3c; }

.befayr_status_pill.pill_with_icon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.befayr_status_pill.pill_with_icon .material-symbols-rounded {
    font-size: 14px;
}

/* Skeleton loader */
.befayr_skeleton {
    display: inline-block;
    height: 22px;
    border-radius: 20px;
    background: linear-gradient(90deg, #f0f4ff 25%, #e4eaff 50%, #f0f4ff 75%);
    background-size: 200% 100%;
    animation: befayr_shimmer 1.4s infinite linear;
    vertical-align: middle;
}

@keyframes befayr_shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Lock profile value cells to skeleton height so content swap causes no twitch */
.befayr_account_info_row_2 .befayr_premium_perk_text {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
}

/* Plans page notice / context box */
.befayr_notice {
    background-color: rgba(128, 151, 249, 0.08);
    border-left: 3px solid #8097F9;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 400;
    color: #272F68;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Free-user variant: blue tint, shows perks list */
.befayr_notice.notice_perks {
    background-color: rgba(128, 151, 249, 0.08);
    border-left-color: #8097F9;
}
.befayr_notice.notice_perks .material-symbols-rounded {
    color: #8097F9;
}

/* Strikethrough original price */
.befayr_price_strike {
    text-decoration: line-through;
    color: #b0b0b0;
    margin-left: 4px;
    font-size: 12px;
}

/* Promo card — green tint, overrides befayr_selection_container / _2 borders */
.befayr_selection_container.befayr_promo_container,
.befayr_selection_container_2.befayr_promo_container {
    position: relative;
    overflow: hidden;
    background-color: rgba(66, 219, 168, 0.06);
    border-top: none;
    border-bottom: none;
    border-left: 3px solid #42DBA8;
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
    margin-top: 20px;
}

/* Corner ribbon — wrapper box clipped to upper-right corner */
.befayr_promo_ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 130px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Diagonal band inside the corner box */
.befayr_promo_ribbon span {
    position: absolute;
    display: block;
    width: 185px;
    padding: 5px 0 4px;
    background: #8097F9;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transform: rotate(45deg);
    top: 15px;
    right: -65px;
}

/* Mini corner ribbon for the Upgrade to Premium button */
.befayr_promo_btn_ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.befayr_promo_btn_ribbon span {
    position: absolute;
    display: block;
    width: 103px;
    padding: 4px 0 2px;
    background: #8097f9;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transform: rotate(45deg);
    top: 10px;
    right: -34px;
}

/* Discounted price — bold dark blue */
.befayr_promo_price {
    font-weight: 600;
    color: #8097F9;
}

/* Discount label — e.g. "(50% off)" used in checkout total row */
.befayr_promo_discount_label {
    color: #8097F9!important;
    font-size: 11px;
    font-weight: 600;
}

/* Promo expiry text — shown under the promo button */
.befayr_promo_expiry_text {
    text-align: center;
    font-size: 11px;
    color: #8097F9;
    font-weight: 450;
}

/* iOS subscription steps variant */
.befayr_notice.notice_steps {
    margin-top: 8px;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.befayr_ios_step_row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
}

.befayr_ios_step_icon {
    background-color: #e2e7ff;
    border-radius: 50%;
    padding: 10px;
    flex-shrink: 0;
}

.befayr_ios_step_icon .material-symbols-rounded {
    font-size: 20px;
    color: #8097F9;
    display: block;
}

.befayr_ios_step_title {
    font-size: 13px;
    color: #272F68;
    font-weight: 600;
}

.befayr_ios_step_subtitle {
    font-size: 11px;
    color: #98a7bf;
}

.befayr_ios_arrow_row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 3px 12px;
}

.befayr_ios_arrow_row .material-symbols-rounded {
    font-size: 14px;
    color: #d0d8f0;
    padding: 3px 12px;
}

/* Legal modal (ToS / Privacy Policy) */
.fayr_legal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.fayr_legal_modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.fayr_legal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F1F4FF;
    flex-shrink: 0;
}

.fayr_legal_title {
    font-size: 14px;
    font-weight: 600;
    color: #272F68;
}

.fayr_legal_close_btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #98a7bf;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.fayr_legal_close_btn:hover {
    color: #272F68;
}

.fayr_legal_close_btn .material-symbols-rounded {
    font-size: 20px;
}

.fayr_legal_body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    font-size: 12px;
    font-weight: 400;
    color: #676A7A;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: #e2e7ff transparent;
}

.fayr_legal_body h4 {
    color: #272F68;
    font-size: 13px;
    font-weight: 600;
    margin: 14px 0 4px;
}

.fayr_legal_body h4:first-child {
    margin-top: 0;
}

/* Alert modal style */

.fayr_modal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.fayr_modal {
    background: white;
    border-radius: 16px;
    /* padding: 32px 28px 24px; */
    max-width: 320px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.fayr_modal_icon {
    font-size: 48px;
    margin-bottom: 4px;
}
.fayr_modal_icon.error   {
    color: #e74c3c;
    margin-top: 20px;
    font-size: 24px;
    background-color: rgb(255 0 0 / 10%);
    border-radius: 200px;
    padding: 10px;
 }

.fayr_modal_icon.warning  {
    color: #f39c12;
    margin-top: 20px;
    font-size: 24px;
    background-color: rgba(255, 187, 0, 0.1);
    border-radius: 200px;
    padding: 10px;
}

.fayr_modal_icon.success  {
    color: #42DBA8;
    margin-top: 20px;
    font-size: 24px;
    background-color: rgba(0, 255, 64, 0.1);
    border-radius: 200px;
    padding: 10px;
}

.fayr_modal_icon.info  {
    color: #272F68;
    margin-top: 20px;
    font-size: 24px;
    background-color: rgba(0, 17, 255, 0.1);
    border-radius: 200px;
    padding: 10px;
}

.fayr_modal_title {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.fayr_modal_buttons {
    display: flex;
    gap: 0;
    width: 100%;
    border-top: 1px solid #eee;
    margin-top: 8px;
}
.fayr_modal_btn {
    flex: 1;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 400;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s;
}
.fayr_modal_btn:hover { background: #f5f5f5; }
.fayr_modal_btn.confirm  { color: #272F68; border-radius: 0 0 0 16px; }
.fayr_modal_btn.cancel   { color: #999; border-left: 1px solid #eee; border-radius: 0 0 16px 0; }
.fayr_modal_btn.ok       { color: #272F68; border-radius: 0 0 16px 16px; }
.fayr_modal_btn.cancel_sub { color: #e74c3c; border-radius: 0 0 0 16px; }
.fayr_modal_btn.keep_sub   { color: #272F68; border-left: 1px solid #eee; border-radius: 0 0 16px 0; }

@media screen and (min-width: 481px) and (max-width: 768px) {
    body:has(.befayr_container) {
        overflow-y: auto;
    }

    .befayr_container main {
        flex: 1;
        overflow-y: visible;
    }
}

@media screen and (max-width: 480px) {
    .befayr_container main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .befayr_container .tabcontent {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column;
        padding: 0 !important;
        width: 100% !important;
    }

    .befayr_container .card_main {
        flex: 1 !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
    }

    .befayr_container .card_left {
        flex: 1 !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
    }

    .befayr_container .card_container {
        flex: 1;
        width: 100%;
        box-sizing: border-box;
        overflow-y: visible;
        height: auto;
        padding-bottom: 0;
    }

    .befayr_footer a {
        font-size: 11px;
        padding: 8px 5px;
    }
}