.p_header {
    margin-bottom: 32px;
}

/* Статистика (3 колонки) */
.p_stats_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    /* Внутренние отступы сверху/снизу */
}

.p_stat_item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.p_stat_value {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1;
}

.p_stat_label {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.p_stat_divider {
    width: 1px;
    height: 40px;
    background: #333;
    /* Цвет разделителя */
}

/* Карточка языка */
.p_lang_card {
    cursor: pointer;
    /* Делаем кликабельной */
}

.p_belt_badge {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    font-weight: 800;
}

/* График активности */
.p_chart_box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 80px;
    /* Высота области графика */
    padding-bottom: 4px;
}

.p_chart_col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
}

.p_bar {
    width: 100%;
    max-width: 40px;
    /* Ширина полоски */
    background: #333;
    /* Цвет пустой/неактивной полоски */
    border-radius: 4px;
    margin-bottom: 12px;
    min-height: 4px;
    /* Чтобы пустые дни тоже было видно полосочкой */
}

/* Активная полоска (текущий день или если есть активность) */
.p_bar_active {
    background: var(--c-accent-blue);
    box-shadow: 0 0 10px rgba(24, 101, 242, 0.4);
}

.p_day_label {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
}

.p_day_active {
    color: var(--c-text-main);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.c_words_list_wrapper {
    display: flex;
    flex-direction: column;
}

/* --- Mastered Badge & Tooltip --- */

.c_mastered_badge {
    color: #f2c94c;
    /* Золотой цвет (как у ранга) */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
    /* Чтобы тултип позиционировался относительно иконки */
    cursor: help;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.c_mastered_badge:hover {
    opacity: 1;
}

/* --- Звезда (Избранное) --- */
.c_word_status_icon {
    color: var(--c-text-muted);
    /* Серый по умолчанию */
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s;
}

/* При наведении на строку — чуть светлее */
.c_word_row:hover .c_word_status_icon {
    color: #fff;
}

/* Если слово добавлено в избранное — ЯРКАЯ ЗВЕЗДА */
.c_word_status_icon.is_starred {
    color: #f2c94c !important;
    /* Золотой (важно перебить hover) */
    transform: scale(1.1);
    /* Чуть крупнее */
}

.c_close_search:hover {
    cursor: pointer;
}







/***************************************************/
.exam_icon_glow {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exam_info {
    flex: 1;
    min-width: 140px;
    /* Чтобы текст не сжимался слишком сильно */
}

.exam_type_label {
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.exam_rank_name {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.exam_action_area {
    display: flex;
    align-items: center;
}

.exam_btn_start {
    width: auto !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #131415 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap;
}

.exam_timer {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Адаптивная анимация (использует переменную цвета) */
@keyframes exam-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 5px var(--exam-color);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--exam-color);
        transform: scale(1.01);
    }
}


















/* Обертка FAB */
.fab_wrapper {
    position: fixed;
    bottom: 100px;

    /* 1. По умолчанию (мобилки) — центр экрана */
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: var(--content-max-width);
    /* Например, 600px */
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
    box-sizing: border-box;
}

.fab_Wrapper_no_footer {
    bottom: 50px;
}

/* 2. ДЛЯ КОМПЬЮТЕРА (когда появилось левое меню) */
@media (min-width: 1024px) {
    .fab_wrapper {
        /* Допустим, ширина вашего меню 250px. 
           Мы смещаем центр на половину этой ширины вправо. */
        left: calc(50% + (var(--sidebar-width, 220px) / 2));
        bottom: 50px;

        /* Если у вас сайдбар узкий (например, 70px), 
           просто поменяйте 250px на 70px здесь или в :root */
    }
}

.btn_fab {
    pointer-events: auto;
    /* Возвращаем кликабельность кнопке */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--c-accent-blue);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(24, 101, 242, 0.7);
    /* Для анимации */
    transition: transform 0.2s;
}

.btn_fab:hover {
    animation: fab-pulse 2s infinite;
    /* Запуск пульсации */
}

/* Эффект пульсации (тени) */
@keyframes fab-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(24, 101, 242, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(24, 101, 242, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(24, 101, 242, 0);
    }
}

.btn_fab:active {
    transform: scale(0.9);
    animation: none;
    /* Отключаем пульс при нажатии */
}





/* Контейнер списка */
.notif_log_container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 4px 0;
}

/* Строка уведомления */
.notif_log_row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    text-align: left;
}

.notif_log_row:last-child {
    border-bottom: none;
}

/* Иконка */
.notif_log_icon_box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 12px;
}

.notif_log_icon_box .g_icon {
    width: 20px;
    height: 20px;
}

/* Текстовая часть */
.notif_log_body {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.notif_log_text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    font-weight: 500;
}

.notif_log_text b {
    font-weight: 800;
    color: #fff;
}

.notif_log_date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2px;
}

/* Непрочитанные */
.notif_log_row.notif_unread .notif_log_text {
    color: #fff;
    font-weight: 600;
}

/* Кликабельные */
.notif_clickable {
    cursor: pointer;
}

.notif_clickable:active {
    background: rgba(255, 255, 255, 0.05);
}

/* Стрелка */
.notif_log_arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
    font-weight: 300;
    margin-left: 8px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Пустое состояние */
.notif_empty_state {
    padding: 20px;
    text-align: center;
    color: var(--c-text-muted);
}

.notif_empty_state .g_icon {
    width: 48px;
    height: 48px;
    opacity: 0.15;
    margin-bottom: 16px;
}


.w_error {
    background: rgba(235, 87, 87, 0.15);
    color: #eb5757;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.h_flag_wrap {
    width: 48px;
    height: 34px;
    border-radius: 7px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.h_flag_img {
    width: 30px;
    height: 30px;
    -o-object-fit: contain;
    object-fit: contain;
    filter: brightness(1.1);
}


.course_list .course_card {
    margin-bottom: 12px;
}

.course_list .course_card:last-child {
    margin-bottom: 0;
}


.course_card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 3px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    min-height: 72px;
}


.course_card.is_active {
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.1);
}

.course_card.is_active:active {
    background: rgba(255, 255, 255, 0.07);
}

.course_card.is_locked {
    opacity: 0.45;
}

.course_card_flag {
    width: 56px;
    height: 40px;
    border-radius: 7px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.12);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.course_card_flag img {
    width: 38px;
    height: 38px;
    -o-object-fit: contain;
    object-fit: contain;
}

.course_card_body {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    margin-left: 14px;
}

.course_card_desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.course_card_arrow {
    color: rgba(255, 255, 255, 0.25);
    margin-left: 8px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.course_card_name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.course_card_soon {
    color: var(--c-accent-yellow);
    font-weight: 700;
    font-size: 11px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile_signup_banner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 14px 16px;
    background: rgba(235, 87, 87, 0.1);
    border: 1px solid rgba(235, 87, 87, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.profile_signup_banner:active {
    background: rgba(235, 87, 87, 0.15);
}

.w_back_bar {
    padding: 12px 16px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.w_back_btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
}

.w_back_btn .g_icon {
    margin-right: 4px;
}

.w_back_btn:active {
    color: #fff;
}

.s_back_link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

.s_back_link:active {
    color: #fff;
}

.s_field_group {
    margin-bottom: 18px;
}

.s_field_label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.s_logout_btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #eb5757;
    background: none;
    border: 1px solid rgba(235, 87, 87, 0.2);
    border-radius: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.s_logout_btn:active {
    background: rgba(235, 87, 87, 0.1);
}

.w_success {
    background: rgba(35, 172, 94, 0.15);
    color: #23ac5e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.s_field_group .w_input {
    margin-bottom: 8px;
}

.s_field_group .w_input:last-child {
    margin-bottom: 0;
}

@media (max-width: 420px) {
    .p_lang_card {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .p_lang_card .p_belt_badge {
        width: auto;
        margin-top: 8px;
        margin-left: 0;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }

    .rank_name_progress {
        display: none;
    }
}
