/* ========================================
   MUJAM PAGE WRAPPER
   ======================================== */
.mujam-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--page-bg, #f0f2f0);
    color: #1f2937;
}

/* Основной контейнер */
.mujam-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 24px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Секции (переключение) */
.mujam-section { display: none; }
.mujam-section.active { display: block; }

/* Пустое состояние */
.mujam-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.mujam-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    stroke: #d1d5db;
}
.mujam-empty-state p {
    font-size: 15px;
}

/* Спиннер загрузки */
.mujam-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--emerald);
    border-radius: 50%;
    animation: mujam-spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes mujam-spin {
    to { transform: rotate(360deg); }
}

/* Статистика */
.mujam-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 24px;
    margin: 0 auto 0;
    max-width: 520px;
    background: var(--emerald-50, #ecfdf5);
    border: 1px solid color-mix(in srgb, var(--emerald, #059669) 30%, transparent);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--emerald-dark, #065f46);
}
.mujam-stats-bar b { font-weight: 700; }
.mujam-stats-dot { color: var(--emerald-light, #6ee7b7); }

/* ── Кнопка «Наверх» (FAB) ── */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--emerald, #059669);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--emerald) 35%, transparent);
    /* Скрыта по умолчанию */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    box-shadow: 0 6px 20px color-mix(in srgb, var(--emerald) 50%, transparent);
    background: var(--emerald-dark, #047857);
}
.scroll-top-btn:active { transform: translateY(1px); }
.scroll-top-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
