@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #2856F6;           
    --primary-hover: #1E40AF;     
    --primary-light: #f9fafb;     
    --bg-body: #f9fafb;           
    --bg-card: #f9fafb;           
    --text-main: #111827;         
    --text-secondary: #6B7280;    
    --border-color: #E5E7EB;      
    --success: #10B981;           
    --danger: #EF4444;            
    --warning: #F59E0B;
    --slot-busy: #FCA5A5;         
    --slot-free: #6EE7B7;         
    --radius: 16px; 
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; font-family: 'Montserrat', sans-serif; }

/* === ОСНОВНОЙ BODY (ЛК) === */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; padding: 0; line-height: 1.5;
}

/* === BODY ПУБЛИЧНЫХ СТРАНИЦ === */
body.public-body { 
    display: block; 
    padding: 0; 
    background-color: #FAFAFA; 
    height: auto; 
    overflow-x: hidden; 
    overflow-y: auto;
}

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--text-main); margin-bottom: 20px; }
a { text-decoration: none; color: inherit; }
p { margin-bottom: 15px; color: var(--text-secondary); }

.about-text, 
.profile-name-new, 
.service-name, 
.ri-text, 
.mod-desc,
.list-desc,
.av-ad-title {
    overflow-wrap: break-word !important; /* Современный стандарт */
    word-wrap: break-word !important;     /* Для старых браузеров */
    word-break: break-word !important;    /* Жесткий разрыв длинных слов */
    white-space: normal !important;       /* Запрет на одну строку */
    max-width: 100% !important;           /* Ограничение по контейнеру */
}

@media (max-width: 982px) {
    /* Фон */
    .modal-overlay { padding: 0 !important; }
    
    /* Контейнер модалки */
    .modal-box, #custom-modal .modal-box {
        width: 96% !important;
        max-width: 100% !important;
        padding: 40px !important;
        border-radius: 40px !important;
    }

    /* Заголовок (Просмотр) */
    .modal-title, #modal-title {
        font-size: 50px !important; /* Очень крупно */
        margin-bottom: 30px !important;
    }

    /* Картинка (в 1.5 раза больше и по центру) */
    #modal-text img, #img-zoom-target {
        width: 100% !important;
        height: auto !important;
        transform: scale(1.1); /* Легкий зум, чтобы не вылезло за края */
        margin: 20px 0 !important;
        border-radius: 20px !important;
    }

    /* Кнопка "Закрыть" */
    .modal-btn.cancel {
        font-size: 40px !important;    /* Шрифт 40px как просили */
        height: 100px !important;      /* Высокая кнопка */
        border-radius: 25px !important;
        margin-top: 30px !important;
    }
}

/* ==========================================================
   АВТОРИЗАЦИЯ
   ========================================================== */
.auth-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(40, 86, 246, 0.9); display: flex; justify-content: center; align-items: center; z-index: 999; }
.auth-card { background: var(--bg-card); width: 420px; max-width: 90%; padding: 40px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); text-align: center; display: none; animation: slideUp 0.4s ease; }
.auth-card.active { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.auth-logo { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.form-input, .form-select { width: 100%; height: 48px; border: 1px solid var(--border-color); border-radius: 12px; padding: 0 15px; font-size: 14px; background: #F9FAFB; transition: 0.2s; }
.form-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(40, 86, 246, 0.1); }
textarea.form-input { height: 100px; padding-top: 12px; resize: vertical; }
.auth-btn { width: 100%; height: 48px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; margin-top: 15px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; transition: 0.2s; }
.auth-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-dark { background: var(--text-main); color: white; }
.btn-dark:hover { background: #000; }
.auth-switch { margin-top: 20px; font-size: 13px; color: var(--text-secondary); }
.auth-switch span { color: var(--primary); cursor: pointer; font-weight: 600; }
.error-msg { color: var(--danger); font-size: 13px; margin-bottom: 15px; display: none; background: #FEF2F2; padding: 10px; border-radius: 8px; border: 1px solid #FECACA; }

/* ==========================================================
   LAYOUT ЛИЧНОГО КАБИНЕТА
   ========================================================== */
.app-container { display: flex; width: 100%; height: 100vh; background-color: var(--bg-body); overflow: hidden; }

.sidebar { width: 260px; background-color: var(--bg-card); padding: 24px; display: flex; flex-direction: column; border-right: 1px solid var(--border-color); flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; padding-left: 10px; }
.brand-logo { width: 32px; height: 32px; background: var(--primary); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--text-main); }
.nav-item { display: flex; align-items: center; padding: 14px 16px; border-radius: 12px; color: var(--text-secondary); cursor: pointer; font-weight: 500; margin-bottom: 5px; transition: 0.2s; }
.nav-item:hover { background: var(--bg-body); color: var(--text-main); }
.nav-item.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(40, 86, 246, 0.3); }
.nav-item i { width: 24px; font-size: 18px; }

/* Главный контейнер контента */
.main-content { flex-grow: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; transition: 0.2s; position: relative; }

/* ХАК: Убираем отступы, когда активен чат */
.main-content.chat-mode { padding: 0 !important; overflow: hidden; height: 100vh; }

/* Добавьте в конец style.css */
.section {
    display: none; /* Скрыто по умолчанию */
    height: 100%;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: flex; /* Показываем активную */
}

/* Фикс для календаря внутри секции */
.crm-layout {
    height: 100%;
    overflow: hidden;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================
   ЧАТ (AVITO STYLE - ИСПРАВЛЕННЫЙ)
   ========================================================== */

/* Контейнер чата */
#chat.section { display: none; }
#chat.section.active { display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; }

/* Список чатов (Dashboard) */
.avito-dashboard { flex: 1; display: flex; flex-direction: column; width: 100%; background: #fff; overflow: hidden; }

/* Шапка списка */
.avito-header-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 15px 20px; }
.avito-header-row h1 { margin: 0; font-size: 28px; }
.avito-settings-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: #333; }

/* Поиск */
.avito-search-bar { position: relative; margin: 0 20px 15px 20px; }
.avito-search-bar input { width: 100%; height: 44px; background: #F2F3F5; border: none; border-radius: 12px; padding-left: 45px; font-size: 15px; outline: none; }
.avito-search-bar input:focus { background: white; box-shadow: 0 0 0 2px rgba(0,0,0,0.1); }
.search-icon { position: absolute; left: 15px; top: 14px; color: #9CA3AF; }

/* Фильтры */
.avito-filters-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 15px 20px; }
.avito-filter-pill { padding: 8px 16px; border-radius: 20px; background: #F2F3F5; border: none; font-size: 14px; cursor: pointer; white-space: nowrap; transition: 0.2s; }
.avito-filter-pill.active { background: #333; color: white; }

/* Баннер поддержки */
.avito-support-banner { background: #EAF6FF; border-radius: 16px; padding: 15px; display: flex; align-items: center; gap: 15px; margin: 0 20px 20px 20px; }
.support-avatar-circle { width: 40px; height: 40px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; }
.support-text-col { display: flex; flex-direction: column; }
.support-title { font-weight: 700; font-size: 15px; }
.support-sub { font-size: 13px; color: #555; }

/* Список сообщений */
.avito-chat-list { flex-grow: 1; overflow-y: auto; padding-bottom: 80px; }
.avito-chat-row { display: flex; padding: 12px 20px; border-bottom: 1px solid #F2F3F5; cursor: pointer; transition: 0.1s; }
.avito-chat-row:hover { background-color: #FAFAFA; }

.check-col { width: 30px; padding-top: 5px; }
.avito-checkbox { width: 18px; height: 18px; border: 2px solid #D1D5DB; border-radius: 4px; cursor: pointer; accent-color: #000; }

.avatar-col { margin-right: 15px; position: relative; }
.ad-img-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #eee; }

.content-col { flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.row-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.partner-name { font-weight: 700; font-size: 15px; color: #111; }
.chat-date { font-size: 12px; color: #9CA3AF; }
.row-ad-title { font-size: 13px; color: #111; font-weight: 500; margin-bottom: 4px; }
.row-last-msg { font-size: 14px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Плавающий бар снизу */
.avito-floating-bar { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: #222; color: white; padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); z-index: 1000; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; }
.avito-floating-bar.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.float-action-btn { background: none; color: white; border: none; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.float-action-btn:hover { opacity: 0.8; }
.check-white-icon { width: 20px; height: 20px; border: 2px solid #fff; border-radius: 4px; display: flex; justify-content: center; align-items: center; }

/* Окно переписки */
#avito-conversation-view { width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff; z-index: 100; }

.conversation-header { height: 60px; padding: 0 15px; border-bottom: 1px solid #F2F3F5; display: flex; justify-content: space-between; align-items: center; background: #fff; flex-shrink: 0; }
.btn-icon-back { background: none; border: none; font-size: 18px; color: #000; cursor: pointer; padding: 5px; margin-right: 10px; }
.header-ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #eee; }
.header-name { font-weight: 600; font-size: 15px; color: #000; line-height: 1.2; }
.header-status { font-size: 12px; color: #888; }
.header-actions button { background: none; border: none; font-size: 18px; color: #333; cursor: pointer; margin-left: 15px; }




/* ==========================================================
   СТАРЫЙ ЧАТ (ДЛЯ УЧЕНИКА)
   ========================================================== */
.chat-container { flex-grow: 1; background: var(--bg-card); border-radius: 20px; display: flex; overflow: hidden; height: calc(100vh - 100px); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.chat-sidebar { width: 300px; background: var(--bg-card); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
.chat-search-box { padding: 20px; border-bottom: 1px solid transparent; }
.chat-search-input { width: 100%; height: 40px; background: var(--bg-body); border: none; border-radius: 10px; padding: 0 15px; font-size: 14px; color: var(--text-main); }
.chat-users-list-scroll { flex: 1; overflow-y: auto; padding: 10px; }
.chat-user-item { padding: 12px 15px; cursor: pointer; border-radius: 12px; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; transition: 0.2s; border: 1px solid transparent; }
.chat-user-item:hover { background: var(--bg-body); }
.chat-user-item.active { background: var(--primary-light); border-color: rgba(40, 86, 246, 0.1); }
.chat-user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #ddd; flex-shrink: 0; }
.chat-user-info { display: flex; flex-direction: column; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-user-name { font-size: 14px; font-weight: 600; color: var(--text-main); }
.chat-main { flex: 1; display: flex; flex-direction: column; background: #F9FAFB; position: relative; }
.chat-header { height: 60px; background: var(--bg-card); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; padding: 0 20px; font-weight: 700; font-size: 16px; }
.chat-input-area { padding: 20px; background: var(--bg-card); border-top: 1px solid var(--border-color); display: flex; gap: 15px; align-items: center; }
.chat-input-field { flex: 1; height: 45px; background: #F3F4F6; border: 1px solid transparent; border-radius: 12px; padding: 0 15px; font-size: 14px; color: var(--text-main); outline: none; transition: 0.2s; }

/* Дизайн карточек модерации в админке */
.mod-review-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mod-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
    border-color: #111 !important;
}

.mod-review-card button {
    transition: opacity 0.2s, transform 0.1s;
}

.mod-review-card button:hover {
    opacity: 0.8;
}

.mod-review-card button:active {
    transform: scale(0.96);
}

/* Закрепленный (ваш) отзыв */
.my-review-box {
    background: #f0f7ff;
    border: 2px solid #3b4cca;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
}
.my-review-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #3b4cca;
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 800;
}
.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    border-top: 1px solid #d1e3ff;
    padding-top: 10px;
}
.rev-action-btn {
    font-size: 13px;
    background: none;
    border: none;
    color: #3b4cca;
    font-weight: 700;
    cursor: pointer;
}
.rev-action-btn.del { color: #ef4444; }

/* Звезды */
.rf-star { font-size: 20px; color: #d1d5db; cursor: pointer; transition: 0.2s; }
.rf-star.active { color: #F59E0B; }

/* Контейнер для среднего рейтинга в шапке книги */
.bd-rating-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.rating-big-num {
    font-size: 36px;
    font-weight: 800;
    color: #111;
}
.rating-stats-col {
    display: flex;
    flex-direction: column;
}

/* Карточки отзывов от других читателей */
.public-review-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.pr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pr-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #3b4cca;
    font-size: 14px;
}

.pr-name {
    font-weight: 700;
    color: #111;
    font-size: 15px;
}

.pr-date {
    font-size: 12px;
    color: #999;
}

.pr-stars {
    color: #F59E0B;
    font-size: 12px;
    margin-bottom: 8px;
}

.pr-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Контейнер сетки */
.lib-grid-wide {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Внешний белый контейнер книги */
.book-container-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.book-container-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #2856F6;
}

/* Карточка внутри */
.book-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

/* Обложка */
.book-cover-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #f8f9fa;
    margin-bottom: 12px;
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.book-container-item:hover .book-cover {
    transform: scale(1.05);
}

/* Кнопка лайка */
.book-like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    z-index: 10;
    transition: 0.2s;
}

/* Текстовый блок */
.book-info-content {
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.book-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px; /* Фикс для 2-х строк */
}

.book-author {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 15px;
}

/* Рейтинг и Цена */
.book-meta-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.premium-rating-box {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #FFFBEB;
    color: #B45309;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.premium-price-tag {
    font-weight: 800;
    color: #111;
    font-size: 17px;
}

/* Кнопка подробнее */
.btn-details-modern {
    width: 100%;
    height: 42px;
    background: #F3F4F6;
    color: #111;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    margin-top: auto;
}

.btn-details-modern:hover {
    background: #111;
    color: #fff;
}

/* ==========================================================
   ПУБЛИЧНЫЕ СТРАНИЦЫ
   ========================================================== */
.public-container { width: 100%; min-height: 100vh; }
.public-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.public-nav { display: flex; gap: 20px; }
.nav-link { font-weight: 600; color: var(--text-secondary); font-size: 14px; transition: 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.hero-section { background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%); padding: 60px 20px 40px; text-align: center; border-bottom: 1px solid var(--border-color); margin-bottom: 40px; }
.hero-title { font-size: 36px; font-weight: 800; color: var(--text-main); margin-bottom: 15px; }
.hero-desc { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 30px; }

.page-layout { max-width: 1280px; margin: 0 auto; padding: 0 20px 60px; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.grid-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: 0.3s; display: flex; flex-direction: column; }
.grid-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img-top { height: 160px; width: 100%; object-fit: cover; }
.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #F3F4F6; display: flex; justify-content: space-between; align-items: center; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tag { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 8px; }

/* Список репетиторов */
.pro-list-layout { max-width: 1200px; margin: 30px auto; padding: 0 20px; display: flex; gap: 30px; align-items: flex-start; }
.pro-filters-sidebar { width: 280px; background: white; padding: 25px; border-radius: 16px; border: 1px solid #E5E7EB; position: sticky; top: 100px; flex-shrink: 0; }
.pro-list-content { flex: 1; min-width: 0; }
.pro-filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #F3F4F6; }
.pro-input { width: 100%; height: 44px; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 10px; padding: 0 15px; font-size: 14px; transition: 0.2s; }

.tutor-card-clean { background: white; border-radius: 24px; padding: 25px; display: flex; gap: 30px; border: 1px solid #E5E7EB; margin-bottom: 20px; transition: 0.2s; position: relative; }
.tutor-card-clean:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.06); transform: translateY(-2px); }
.list-avatar-col { flex-shrink: 0; }
.list-avatar { width: 140px; height: 140px; border-radius: 16px; object-fit: cover; background: #F3F4F6; }
.list-content-col { flex: 1; display: flex; flex-direction: column; }
.list-name { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 5px; cursor: pointer; }
.list-name:hover { color: var(--primary); }
.list-role { font-size: 14px; color: #6B7280; margin-bottom: 12px; }
.list-rating-row { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.list-stars { color: #F59E0B; font-size: 14px; }
.list-badge-praise { background: #FFFBEB; color: #B45309; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.list-desc { font-size: 14px; color: #374151; line-height: 1.6; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.list-action-col { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid #F3F4F6; padding-left: 25px; }
.list-price-val { font-size: 22px; font-weight: 800; color: var(--text-main); text-align: right; }
.btn-clean-primary { background: var(--text-main); color: white; border: none; border-radius: 12px; height: 44px; font-weight: 600; cursor: pointer; width: 100%; margin-bottom: 10px; }
.btn-clean-outline { background: white; border: 1px solid #E5E7EB; color: var(--text-main); border-radius: 12px; height: 44px; font-weight: 600; cursor: pointer; width: 100%; }


/* ==========================================================
   АДМИН ПАНЕЛЬ (СТИЛИ)
   ========================================================== */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th { background: #F9FAFB; padding: 15px 20px; text-align: left; color: #6B7280; font-weight: 600; border-bottom: 1px solid #eee; }
.admin-table td { padding: 15px 20px; border-bottom: 1px solid #eee; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: #F9FAFB; }
.admin-actions { display: flex; gap: 8px; }

.badge-status { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }
.badge-approved { background: #D1FAE5; color: #065F46; }
.badge-pending { background: #FEF3C7; color: #B45309; }
.badge-rejected { background: #FEE2E2; color: #991B1B; }


/* ==========================================================
   УТИЛИТЫ И КОМПОНЕНТЫ
   ========================================================== */
.breadcrumbs { display: flex; align-items: center; margin-bottom: 20px; font-size: 14px; color: var(--text-secondary); }
.breadcrumb-list { display: flex; align-items: center; list-style: none; padding: 0; }
.breadcrumb-separator { margin: 0 8px; color: #D1D5DB; }
.breadcrumb-link { text-decoration: none; color: var(--text-main); font-weight: 500; }

.profile-card { background: var(--bg-card); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); width: 100%; margin-bottom: 25px; }
.file-upload-box { border: 2px dashed var(--border-color); border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; background: #F9FAFB; color: var(--text-secondary); }
.file-upload-btn { display: inline-block; padding: 8px 16px; background: #F3F4F6; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; margin-top: 10px; color: var(--text-main); }

/* Avito Dashboard Ads */
.ad-card-item { display: flex; background: white; border-radius: 12px; padding: 15px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: 0.2s; border: 1px solid transparent; cursor: pointer; margin-bottom: 15px; }
.ad-card-item:hover { box-shadow: 0 6px 15px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: #E0E3EB; }
.ad-img-preview { width: 160px; height: 120px; border-radius: 8px; object-fit: cover; background: #eee; flex-shrink: 0; }
.ad-content-center { flex: 1; padding: 0 20px; display: flex; flex-direction: column; }
.ad-title-link { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.ad-price-avito { font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.ad-meta { font-size: 13px; color: #777; margin-top: auto; display: flex; align-items: center; gap: 8px; }
.ad-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ad-right-stats { width: 200px; border-left: 1px solid #F2F3F5; padding-left: 20px; display: flex; flex-direction: column; justify-content: center; }
.view-stats { font-size: 13px; color: #555; display: flex; gap: 15px; }

.avito-tabs { display: flex; gap: 20px; border-bottom: 2px solid #F2F3F5; margin-bottom: 25px; }
.avito-tab { padding-bottom: 12px; font-size: 15px; font-weight: 600; color: #999; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.avito-tab.active { color: var(--text-main); border-color: var(--text-main); }
.counter { font-size: 12px; color: #999; font-weight: 400; margin-left: 4px; }

/* КАЛЕНДАРЬ */
.scheduler-wrapper { display: flex; height: 1750px; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); overflow: hidden; font-family: 'Inter', sans-serif; position: relative; }
.scheduler-sidebar { width: 260px; background: #F9FAFB; border-right: 1px solid #E5E7EB; display: flex; flex-direction: column; flex-shrink: 0; }
.mini-calendar { padding: 20px; border-bottom: 1px solid #E5E7EB; }
.mini-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-weight: 700; font-size: 14px; }
.mini-cal-nav-btn { background: none; border: none; cursor: pointer; color: #6B7280; padding: 4px; }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-day-head { font-size: 11px; color: #9CA3AF; margin-bottom: 5px; font-weight: 600; }
.mini-day-cell { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: 50%; cursor: pointer; }
.mini-day-cell:hover { background: #E5E7EB; }
.mini-day-cell.active { background: #2856F6; color: white; font-weight: 600; }

.sidebar-filters { padding: 20px; overflow-y: auto; flex: 1; }
.filter-heading { font-size: 12px; text-transform: uppercase; color: #9CA3AF; font-weight: 700; margin-bottom: 15px; }
.filter-checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.checkbox-dot { width: 10px; height: 10px; border-radius: 3px; }
.create-btn-sidebar { margin: 15px; background: #2856F6; color: white; border: none; padding: 10px; border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }

.scheduler-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: white; }
.scheduler-toolbar { height: 60px; border-bottom: 1px solid #E5E7EB; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #FFFFFF; }
.toolbar-group { display: flex; align-items: center; gap: 10px; }
.btn-today { background: white; border: 1px solid #D1D5DB; padding: 6px 12px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 13px; }
.nav-arrows-btn { background: none; border: none; cursor: pointer; font-size: 16px; color: #555; }
.current-date-label { font-size: 18px; font-weight: 700; margin-left: 10px; }
.view-switcher { background: #F3F4F6; padding: 4px; border-radius: 8px; display: flex; gap: 2px; }
.view-btn { border: none; background: transparent; padding: 6px 12px; font-size: 12px; font-weight: 600; color: #6B7280; border-radius: 6px; cursor: pointer; }
.view-btn.active { background: white; color: #1F2937; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

.scheduler-view-container { flex: 1; overflow-y: auto; position: relative; }
.week-header-row { display: grid; grid-template-columns: 60px repeat(7, 1fr); border-bottom: 1px solid #E5E7EB; background: white; position: sticky; top: 0; z-index: 10; }
.day-header-cell { padding: 15px 5px; text-align: center; border-right: 1px solid #F3F4F6; }
.day-header-cell.today .day-date-lg { color: #2856F6; }
.day-name-lg { font-size: 13px; font-weight: 600; color: #4B5563; text-transform: uppercase; }
.day-date-lg { font-size: 18px; color: #1F2937; margin-top: 4px; }
.week-body-grid { display: flex; position: relative; }
.time-labels-col { width: 60px; flex-shrink: 0; border-right: 1px solid #E5E7EB; background: white; }
.time-label-cell { height: 60px; text-align: right; padding-right: 8px; font-size: 11px; color: #9CA3AF; transform: translateY(-8px); }
.days-cols-container { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.day-column { border-right: 1px solid #F3F4F6; position: relative; background-image: linear-gradient(#F9FAFB 1px, transparent 1px); background-size: 100% 60px; }
.event-card { position: absolute; left: 2px; right: 4px; border-radius: 4px; padding: 4px 8px; font-size: 12px; border-left: 4px solid; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow: hidden; transition: 0.1s; z-index: 5; background: rgba(255,255,255,0.9); }
.event-card:hover { z-index: 10; transform: scale(1.02); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.ev-time { font-size: 10px; font-weight: 700; opacity: 0.7; }
.ev-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Календарь (Сетка выбора) */
.weekly-schedule-wrapper { overflow-x: auto; }
.schedule-grid-container { min-width: 700px; }
.schedule-header { display: grid; grid-template-columns: 40px repeat(18, 1fr); gap: 4px; margin-bottom: 6px; }
.time-label { font-size: 11px; color: var(--text-secondary); text-align: center; }
.schedule-row { display: grid; grid-template-columns: 40px repeat(18, 1fr); gap: 4px; margin-bottom: 4px; align-items: center; }
.day-label { font-size: 13px; font-weight: 600; color: var(--text-main); }
.slot-cell { height: 32px; border-radius: 6px; cursor: pointer; transition: 0.1s; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 600; }
.slot-cell.busy { background-color: var(--slot-busy); }
.slot-cell.free { background-color: var(--slot-free); }
.schedule-legend { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.legend-item { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.legend-box { width: 14px; height: 14px; border-radius: 4px; } 

/* Agenda View */
.agenda-view { padding: 20px; }
.agenda-date-group { display: flex; margin-bottom: 20px; border-bottom: 1px solid #F3F4F6; padding-bottom: 20px; }
.agenda-date-col { width: 120px; flex-shrink: 0; text-align: right; padding-right: 20px; }
.agenda-day-big { font-size: 28px; font-weight: 300; line-height: 1; }
.agenda-day-name { font-size: 13px; color: #9CA3AF; text-transform: uppercase; font-weight: 600; margin-top: 5px; }
.agenda-events-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.agenda-event-card { background: #F9FAFB; border-radius: 8px; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid #2856F6; cursor: pointer; transition: 0.2s; }
.agenda-event-card:hover { background: #EFF6FF; transform: translateX(5px); }
.ag-time { font-weight: 700; font-size: 14px; width: 100px; }
.ag-title { font-weight: 600; font-size: 15px; flex: 1; }
.ag-student { font-size: 13px; color: #6B7280; background: #fff; padding: 4px 10px; border-radius: 20px; border: 1px solid #E5E7EB; }

/* Модалки */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(4px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box { background: #fff; padding: 30px; border-radius: 24px; width: 90%; max-width: 450px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); transform: translateY(20px); transition: 0.3s; text-align: center; }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.modal-buttons { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.modal-btn { flex: 1; padding: 12px; border-radius: 12px; border: none; font-weight: 600; cursor: pointer; }
.modal-btn.confirm { background: var(--primary); color: white; }
.modal-btn.cancel { background: #F3F4F6; }

/* Event Modal */
.event-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(2px); }
.event-modal-overlay.active { display: flex; }
.event-modal-box { background: #FFFFFF; width: 450px; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow: hidden; animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ev-modal-header { background: #F3F4F6; padding: 15px 20px; border-bottom: 1px solid #E5E7EB; display: flex; justify-content: space-between; align-items: center; }
.ev-modal-title { font-size: 16px; font-weight: 700; }
.ev-close-btn { background: none; border: none; cursor: pointer; color: #6B7280; font-size: 18px; }
.ev-modal-body { padding: 20px; }
.ev-field { margin-bottom: 15px; }
.ev-label { display: block; font-size: 12px; font-weight: 600; color: #6B7280; margin-bottom: 5px; }
.ev-input, .ev-select { width: 100%; height: 40px; border: 1px solid #E5E7EB; border-radius: 8px; padding: 0 12px; font-size: 14px; background: #F9FAFB; }
.ev-row { display: flex; gap: 15px; }
.ev-row .ev-field { flex: 1; }
.ev-modal-footer { padding: 15px 20px; border-top: 1px solid #E5E7EB; display: flex; justify-content: space-between; align-items: center; background: #F9FAFB; }
.btn-ev-save { background: #2856F6; color: white; border: none; padding: 8px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-ev-delete { background: transparent; color: #EF4444; border: 1px solid #EF4444; padding: 8px 15px; border-radius: 6px; font-weight: 600; cursor: pointer; }

/* ==========================================================================
   TOAST NOTIFICATIONS (FAST SLIDE + LONG STAY)
   ========================================================================== */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    align-items: flex-end;
}

.tw-alert {
    pointer-events: auto;
    width: fit-content;
    min-width: 260px;
    max-width: 400px;
    
    min-height: 40px;
    padding: 10px 14px;
    
    background-color: #ffffff;
    border-radius: 6px;
    border-left-width: 4px;
    border-left-style: solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    display: flex;
    align-items: center;
    
    transition: transform 0.2s ease;
    cursor: pointer;
    
    /* БЫСТРЫЙ И ПЛАВНЫЙ ВЛЕТ (0.4s) */
    animation: toastSlideInRight 0.4s ease-out forwards;
}

.tw-alert:hover {
    transform: translateX(-3px);
}

/* БЫСТРЫЙ ВЫЛЕТ (0.4s) */
.tw-alert.closing {
    animation: toastSlideOutRight 0.4s ease-in forwards;
}

@keyframes toastSlideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(120%); }
}

/* Иконка и контент */
.tw-icon {
    height: 18px; width: 18px; flex-shrink: 0; margin-right: 12px;
    align-self: flex-start; margin-top: 2px;
}
.tw-content {
    font-size: 13px; color: #374151; line-height: 1.4; word-break: break-word;
}
.tw-title { font-weight: 700; margin-right: 4px; }
.tw-sep { color: #9CA3AF; margin-right: 6px; }
.tw-msg { font-weight: 500; }

/* Цвета */
.tw-success { border-color: #10B981; } .tw-success .tw-icon { color: #10B981; }
.tw-error { border-color: #EF4444; } .tw-error .tw-icon { color: #EF4444; }
.tw-info { border-color: #3B82F6; } .tw-info .tw-icon { color: #3B82F6; }
.tw-warning { border-color: #F59E0B; } .tw-warning .tw-icon { color: #F59E0B; }

/* ==========================================================
   GLOBAL GALLERY ZOOM (Свайпы + Листание + Красивый Close)
   ========================================================== */

#global-zoom-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px); /* Сильное размытие фона */
    z-index: 2147483647;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    touch-action: pan-y; /* Разрешаем вертикальный скролл (чтобы не блокировать браузер), но перехватываем горизонтальный */
}

#global-zoom-overlay.active {
    opacity: 1; visibility: visible;
}

.zoom-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex; justify-content: center; align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#global-zoom-overlay.active .zoom-wrapper {
    transform: scale(1);
}

#global-zoom-img {
    max-width: 100%; max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain;
    user-select: none;
    /* Важно: эти свойства позволяют жесты на фото, но мы перехватываем их контейнером */
    pointer-events: auto; 
}

/* === НОВАЯ КНОПКА ЗАКРЫТИЯ (iPhone Style) === */
.zoom-close-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1000;
}
.zoom-close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* === НАВИГАЦИЯ (СТРЕЛКИ) === */
.zoom-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.05);
    color: white;
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 500;
}
.zoom-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.zoom-prev { left: 30px; }
.zoom-next { right: 30px; }

/* === СЧЕТЧИК (1 / 5) === */
.zoom-counter {
    position: fixed;
    bottom: 30px;
    left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 14px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: rgba(0,0,0,0.5);
    padding: 6px 14px;
    border-radius: 20px;
}

/* АДАПТИВ */
@media (max-width: 900px) {
    #global-zoom-img { border-radius: 0; max-height: 80vh; max-width: 100vw; }
    /* Скрываем большие стрелки на телефоне, там свайпы */
    .zoom-nav-btn { display: none; }
    .zoom-close-btn { top: 15px; right: 15px; background: rgba(0,0,0,0.5); }
}
/* ==========================================================================
   2. SYSTEM MODALS (Popup Style)
   ========================================================================== */

/* Затемнение фона */
.sys-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 100000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.2s;
    backdrop-filter: blur(4px);
}
.sys-modal-overlay.active { opacity: 1; visibility: visible; }

/* Само окно */
.sys-modal-box {
    background: #fff; width: 320px; border-radius: 20px;
    padding: 30px 25px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9); transition: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sys-modal-overlay.active .sys-modal-box { transform: scale(1); }

/* Иконки в попапе */
.sys-icon-wrap {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 15px auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.sys-icon-danger { background: #FEE2E2; color: #EF4444; }
.sys-icon-info { background: #EFF6FF; color: #2563EB; }

.sys-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 8px; }
.sys-desc { font-size: 14px; color: #6B7280; margin-bottom: 25px; line-height: 1.5; }

.sys-btns { display: flex; gap: 10px; justify-content: center; }
.sys-btn { flex: 1; height: 44px; border-radius: 12px; border: none; font-weight: 600; cursor: pointer; font-size: 14px; transition: 0.2s; }
.sys-btn-gray { background: #F3F4F6; color: #374151; }
.sys-btn-gray:hover { background: #E5E7EB; }
.sys-btn-red { background: #EF4444; color: white; }
.sys-btn-red:hover { background: #DC2626; }
.sys-btn-blue { background: #2563EB; color: white; }
.sys-btn-blue:hover { background: #1E40AF; }

/* Logout Button */
.logout-footer { margin-top: auto; padding: 10px; }
.Btn { display: flex; align-items: center; justify-content: flex-start; width: 45px; height: 45px; border: none; border-radius: 50%; cursor: pointer; position: relative; overflow: hidden; transition-duration: .3s; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199); background-color: rgb(255, 65, 65); }
.sign { width: 100%; transition-duration: .3s; display: flex; align-items: center; justify-content: center; }
.sign svg { width: 17px; fill: white; }
.text { position: absolute; right: 0%; width: 0%; opacity: 0; color: white; font-size: 1.2em; font-weight: 600; transition-duration: .3s; }
.Btn:hover { width: 125px; border-radius: 40px; transition-duration: .3s; }
.Btn:hover .sign { width: 30%; padding-left: 20px; }
.Btn:hover .text { opacity: 1; width: 70%; padding-right: 10px; }
.Btn:active { transform: translate(2px ,2px); }

/* АДАПТИВ */
@media (max-width: 900px) {
    .app-container { flex-direction: column; height: 100vh; }
    .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); padding: 15px; flex-direction: row; overflow-x: auto; gap: 10px; }
    .nav-item { margin: 0; white-space: nowrap; }
    .logout-footer { display: none; }
    .details-page-layout, .pro-list-layout { flex-direction: column; }
    .details-sidebar, .pro-filters-sidebar { width: 100%; position: static; margin-bottom: 20px; }
    .tutor-card-clean { flex-direction: column; }
    .list-action-col { width: 100%; border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 15px; flex-direction: row; align-items: center; }
}

/* МОДАЛКА ПРОСМОТРА ПОЛНОГО ПРОФИЛЯ */
.full-view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.view-group { margin-bottom: 15px; }
.view-label { font-size: 11px; color: #888; text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }
.view-value { font-size: 14px; color: #111; background: #f9f9f9; padding: 10px; border-radius: 8px; white-space: pre-wrap; }
.view-imgs img { height: 80px; border-radius: 8px; margin-right: 5px; border: 1px solid #eee; }
/* ==========================================================
   СТИЛИ ДЛЯ TUTOR-DETAILS.HTML (ПУБЛИЧНЫЙ ПРОФИЛЬ)
   ========================================================== */

/* Важно: Сбрасываем флекс-центровку body для публичных страниц, чтобы работал скролл */
body.public-body {
    display: block !important;
    height: auto !important;
    overflow-y: auto !important;
    background-color: #f9fafb;
    padding: 0;
}

/* Контейнер публичной страницы */
.public-container {
    width: 100%;
    min-height: 100vh;
}

/* Шапка */
.public-header {
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.public-nav {
    display: flex;
    gap: 20px;
}
.nav-link {
    text-decoration: none;
    color: #4B5563;
    font-weight: 500;
    font-size: 14px;
}
.nav-link.active { color: var(--primary); }

/* Макет страницы деталей */
.details-page-layout {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    opacity: 0; /* Для плавной загрузки */
    transition: opacity 0.3s;
}
.details-page-layout.loaded { opacity: 1; }

/* Сайдбар (Меню слева) */
.details-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}
.details-nav-menu {
    background: white;
    border-radius: 16px;
    padding: 10px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.details-nav-item {
    display: block;
    padding: 12px 15px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: 0.2s;
}
.details-nav-item:hover { background: #F3F4F6; }
.details-nav-item.active { background: #EFF6FF; color: var(--primary); font-weight: 600; }

/* Основной контент */
.details-content {
    flex: 1;
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Шапка профиля внутри контента */
.profile-header-new {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #F3F4F6;
}
.profile-avatar-new {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.profile-info-new {
    flex: 1;
}
.profile-name-new {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.2;
}
.profile-last-seen {
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 15px;
}
.rating-row-new {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.rating-val { font-weight: 700; font-size: 16px; color: #111; }
.reviews-count-new { color: #4B5563; font-size: 14px; text-decoration: underline; cursor: pointer; }
.praise-badge {
    background: #FEF3C7;
    color: #B45309;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.verified-badge {
    color: #059669;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}
.write-msg-btn {
    background: #111;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.write-msg-btn:hover { background: #333; transform: translateY(-2px); }

/* Секции */
.detail-section { margin-bottom: 50px; }
.detail-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: #111; }

/* Текст о себе */
.about-text {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

/* Галерея результатов */
.results-gallery {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.result-item {
    width: 150px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid #eee;
    transition: 0.2s;
}
.result-item:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.result-img { width: 100%; height: 100%; object-fit: cover; }

/* Списки с галочками */
.check-list { list-style: none; padding: 0; }
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #374151;
    font-size: 15px;
}
.check-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--success);
    font-size: 14px;
}

/* Услуги */
.pro-services-list { border: 1px solid #F3F4F6; border-radius: 12px; padding: 0 20px; }
.service-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 15px;
}
.service-row:last-child { border-bottom: none; }
.service-name { color: #374151; }
.service-price { font-weight: 700; color: #111; }

/* Адаптив */
@media (max-width: 900px) {
    .details-page-layout { flex-direction: column; }
    .details-sidebar { width: 100%; position: static; margin-bottom: 20px; z-index: 1; }
    .details-nav-menu { display: flex; overflow-x: auto; gap: 10px; padding: 10px; }
    .details-nav-item { white-space: nowrap; margin-bottom: 0; background: #F9FAFB; }
    .profile-header-new { flex-direction: column; text-align: center; }
    .profile-info-new { display: flex; flex-direction: column; align-items: center; }
    .rating-row-new { justify-content: center; }
}

/* Обновленная Админ-таблица */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 10px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th {
    background: #F9FAFB;
    padding: 16px;
    text-align: left;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid #EEF2F6;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
    color: #374151;
    font-size: 14px;
}

.admin-table tr:hover { background: #FDFDFD; }

.user-cell { display: flex; align-items: center; gap: 12px; }
.user-avatar-small { 
    width: 36px; height: 36px; 
    border-radius: 10px; object-fit: cover; 
    background: #eee; border: 1px solid #f0f0f0;
}

.admin-btn {
    border: none; padding: 8px; border-radius: 8px;
    cursor: pointer; transition: 0.2s; font-size: 14px;
}
.admin-btn.edit { background: #EFF6FF; color: #2563EB; }
.admin-btn.edit:hover { background: #DBEAFE; }
.admin-btn.del { background: #FEF2F2; color: #EF4444; }
.admin-btn.del:hover { background: #FEE2E2; }

/* Стиль аудиосообщения */
.msg-bubble audio {
    height: 35px;
    max-width: 210px;
    border-radius: 20px;
}

/* Красивые статусы */
.badge-status {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.badge-approved { background: #DCFCE7; color: #15803D; }
.badge-pending { background: #FEF9C3; color: #854D0E; }
.badge-rejected { background: #FEE2E2; color: #B91C1C; }

/* Новые карточки объявлений */
.ad-card-item {
    display: flex; gap: 20px; background: #fff; padding: 20px;
    border-radius: 20px; border: 1px solid #f0f0f0; margin-bottom: 15px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.ad-card-item:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.ad-img-preview { width: 140px; height: 110px; border-radius: 14px; object-fit: cover; }
.ad-content-center { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ad-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; width: fit-content; text-transform: uppercase; margin-top: 10px; }

/* Красивое редактирование */
#ad-editor-container {
    display: none;
    height: calc(100vh - 100px); /* Высота экрана минус шапка */
    overflow-y: auto;            /* Включаем скролл */
    padding: 20px;
    padding-bottom: 120px;       /* Отступ снизу для панели кнопок */
    box-sizing: border-box;
}
.services-row { display: flex; gap: 10px; background: #f8fafc; padding: 12px; border-radius: 12px; margin-bottom: 8px; border: 1px solid #e2e8f0; }
.results-preview-item { position: relative; width: 80px; height: 80px; transition: 0.2s; }
.results-preview-item img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
/* Современные индикаторы статуса */
.status-badge-new {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 6px 14px; border-radius: 50px; display: inline-flex;
    align-items: center; gap: 6px; letter-spacing: 0.5px;
}
.st-approved { background: #ECFDF5; color: #059669; border: 1px solid #D1FAE5; }
.st-pending { background: #FFF7ED; color: #EA580C; border: 1px solid #FFEDD5; }
.st-rejected { background: #FEF2F2; color: #DC2626; border: 1px solid #FEE2E2; }

/* ==========================================================================
   NEW: BEAUTIFUL AD CARD DESIGN
   ========================================================================== */

/* Контейнер карточки с эффектом стекла и подъемом */
.ad-glass-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px;
    display: flex;
    gap: 30px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.ad-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: rgba(40, 86, 246, 0.2);
}

/* Секция картинки */
.ad-card-media {
    position: relative;
    width: 220px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
}

.ad-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.ad-glass-card:hover .ad-card-media img {
    transform: scale(1.05);
}

/* Основной контент */
.ad-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ad-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.ad-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 12px;
}

.ad-price-big {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
}

.ad-price-sub {
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
}

.ad-card-desc-preview {
    color: #4B5563;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Статус-бейджи (Новый стиль) */
.status-pill-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 15px;
}

.st-approved-new { background: #ECFDF5; color: #059669; border: 1px solid #D1FAE5; }
.st-pending-new { background: #FFF7ED; color: #EA580C; border: 1px solid #FFEDD5; }
.st-rejected-new { background: #FEF2F2; color: #DC2626; border: 1px solid #FEE2E2; }

/* Зона действий (Кнопки) */
.ad-action-zone {
    width: 80px;
    border-left: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
}

.ad-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #E5E7EB;
    background: white;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s;
}

.ad-action-btn:hover {
    background: #F9FAFB;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Сообщение об ошибке (отклонено) */
.reject-alert-modern {
    margin-top: 15px;
    background: #FEF2F2;
    border-radius: 12px;
    padding: 12px 16px;
    color: #991B1B;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #FEE2E2;
}

/* ==========================================================================
   POPUP ANIMATIONS
   ========================================================================== */

/* Фон затемнения */
.sys-modal-overlay {
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}

/* Анимация появления окна (Пружинистая) */
@keyframes popupEntrance {
    0% { opacity: 0; transform: scale(0.5) translateY(30px); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.sys-modal-box {
    transform-origin: center;
    /* Стартовое состояние (когда скрыто): чуть меньше и прозрачное */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.25s ease-out;
}

.sys-modal-overlay.active .sys-modal-box {
    transform: scale(1);
    opacity: 1;
    /* Мы убрали animation keyframes, используем transition для максимальной плавности без дерганий */
}

/* Иконки в попапе */
.sys-icon-wrap {
    font-size: 30px !important;
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
/* Красивое редактирование (поля) */
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.edit-section-label { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.input-premium { 
    background: #F9FAFB !important; border: 2px solid #F3F4F6 !important; 
    border-radius: 14px !important; font-weight: 500 !important;
}
.input-premium:focus { border-color: var(--primary) !important; background: #fff !important; }
.schedule-premium-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
}
.schedule-header-new {
    display: grid;
    grid-template-columns: 50px repeat(17, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}
.time-label-new {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
}
.schedule-row-new {
    display: grid;
    grid-template-columns: 50px repeat(17, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.day-label-new {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
}
.slot-pill {
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}
.slot-pill.busy {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.slot-pill.free {
    background: #dcfce7;
    border-color: #bbf7d0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    position: relative;
}
.slot-pill.free::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}
.slot-pill:hover {
    transform: scale(1.05);
    filter: brightness(0.95);
}

/* Дизайн графика СТРОГО ПО СКРИНШОТУ */
.schedule-title-block { margin-bottom: 20px; }
.schedule-title-main { font-size: 22px; font-weight: 700; color: #1a1d1f; margin-bottom: 4px; }
.schedule-subtitle-gray { font-size: 14px; color: #555; margin-bottom: 25px; }

.schedule-header-new {
    display: grid;
    grid-template-columns: 45px repeat(18, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.time-lbl { font-size: 12px; color: #666; text-align: center; }

.schedule-row-new {
    display: grid;
    grid-template-columns: 45px repeat(18, 1fr);
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.day-lbl { font-size: 13px; font-weight: 500; color: #333; }

.slot-box {
    height: 44px;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.slot-box.busy { background-color: #E5A1A1; } /* Нежно-красный */
.slot-box.free { background-color: #B2E3D8; } /* Нежно-зеленый */
.slot-box:hover { filter: brightness(0.9); }

.schedule-legend { display: flex; gap: 10px; margin-top: 20px; }
.legend-btn { padding: 8px 16px; border-radius: 6px; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.lg-free { background: #B2E3D8; color: #1e3932; }
.lg-busy { background: #E5A1A1; color: #3b1d1d; }
.schedule-premium-container { background: #fff; padding: 25px; border-radius: 12px; }
.schedule-header-new { display: grid; grid-template-columns: 50px repeat(18, 1fr); gap: 5px; margin-bottom: 10px; }
.schedule-row-new { display: grid; grid-template-columns: 50px repeat(18, 1fr); gap: 5px; align-items: center; margin-bottom: 5px; }
.slot-pill { height: 40px; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.slot-pill.busy { background-color: #E5A1A1; }
.slot-pill.free { background-color: #B2E3D8; }

/* === NEW AD FULL-WIDTH UI === */
#avito-ads-list { 
    width: 100%; 
    max-width: 100%; /* Можно убрать ограничение или оставить 1400px, но убрать auto */
    margin: 0;       /* Прижимаем влево */
}

/* Пустое состояние (Fullscreen Call-to-Action) */
.ad-empty-fullscreen {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 40px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    text-align: center;
}
.ad-empty-glow {
    position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(40, 86, 246, 0.05) 0%, rgba(255,255,255,0) 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ad-empty-content { z-index: 2; max-width: 500px; }
.ad-empty-icon { font-size: 80px; color: var(--primary); margin-bottom: 24px; opacity: 0.8; }
.ad-empty-content h1 { font-size: 36px; color: #111; margin-bottom: 16px; }
.ad-empty-content p { color: #64748b; font-size: 16px; margin-bottom: 32px; line-height: 1.6; }

/* Шапка раздела */
.ad-wide-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 40px; padding: 0 10px;
}
.ad-wide-header h1 { font-size: 32px; margin-bottom: 8px; }
.ad-wide-header .highlight { color: var(--primary); font-weight: 700; }

/* Современные вкладки */
.ad-modern-tabs { display: flex; gap: 12px; margin-bottom: 30px; }
.ad-modern-tabs button {
    border: none; background: #fff; padding: 12px 24px;
    border-radius: 14px; cursor: pointer; font-weight: 600;
    color: #64748b; transition: 0.2s; display: flex; align-items: center; gap: 8px;
    border: 1px solid #f1f5f9;
}
.ad-modern-tabs button.active { background: #111; color: #fff; border-color: #111; }
.ad-modern-tabs .tag { font-size: 11px; padding: 2px 8px; background: #f1f5f9; border-radius: 6px; }
.ad-modern-tabs button.active .tag { background: rgba(255,255,255,0.2); }
.ad-modern-tabs .tag.alert { background: #fee2e2; color: #dc2626; }

/* Карточка объявления на всю ширину */
.ad-card-full {
    display: flex; gap: 40px; background: #fff; padding: 40px;
    border-radius: 32px; border: 1px solid #f1f5f9;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    align-items: center; margin-bottom: 20px;
    animation: slideUp 0.4s ease-out;
}
.card-image-col { position: relative; width: 220px; height: 180px; flex-shrink: 0; }
.card-image-col img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.status-pill {
    position: absolute; top: -10px; left: -10px; padding: 6px 14px;
    border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.status-pill.approved { background: #dcfce7; color: #15803d; }
.status-pill.pending { background: #fef9c3; color: #854d0e; }
.status-pill.rejected { background: #fee2e2; color: #b91c1c; }
.status-pill.archive { background: #f1f5f9; color: #64748b; }

.card-info-col { flex: 1; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.card-title-row h2 { font-size: 26px; margin: 0; color: #111; }
.card-price-premium { font-size: 28px; font-weight: 900; color: var(--primary); }
.card-price-premium span { font-size: 14px; color: #94a3b8; font-weight: 500; }
.card-desc { color: #475569; font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Бокс с ошибкой */
.rejection-box {
    margin-top: 20px; background: #fff5f5; border-radius: 14px;
    padding: 15px; border-left: 5px solid #feb2b2;
    display: flex; gap: 12px; align-items: center; color: #c53030; font-size: 14px;
}

/* Колонка кнопок управления */
.card-controls-col { display: flex; flex-direction: column; gap: 10px; }
.ad-btn-icon {
    width: 48px; height: 48px; border-radius: 12px; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; transition: 0.2s;
}
.ad-btn-icon.secondary { background: #f8fafc; color: #64748b; border: 1px solid #f1f5f9; }
.ad-btn-icon.secondary:hover { background: #f1f5f9; color: #111; }
.ad-btn-icon.danger { background: #fff1f2; color: #e11d48; }

/* Общие кнопки */
.ad-primary-btn {
    background: #111; color: #fff; border: none; padding: 0 24px;
    height: 52px; border-radius: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px; transition: 0.2s;
}
.ad-primary-btn:hover { background: #222; transform: translateY(-2px); }
.ad-primary-btn.big { height: 60px; padding: 0 40px; font-size: 17px; }

@keyframes slideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

/* ==========================================================
   CRM LAYOUT (Дизайн "Как на фото")
   ========================================================== */

/* Сброс внутренних отступов для секции, чтобы был общий серый фон */
#my-classes.section {
    background: transparent !important;
    padding: 0 !important;
    height: 100%;
}
#my-classes.section.active { display: flex; }

.crm-layout {
    display: flex; width: 100%; height: 100%; 
    gap: 20px; padding: 20px; box-sizing: border-box;
}

/* ЛЕВАЯ КОЛОНКА */
.crm-sidebar {
    width: 320px; display: flex; flex-direction: column; gap: 20px; flex-shrink: 0;
}
.crm-card {
    background: #ffffff; border-radius: 24px; 
    padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

/* Мини Календарь (Clean) */
.mini-cal-header-clean { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; margin-bottom: 20px; }
.mini-nav-btn { background: none; border: none; cursor: pointer; color: #111; padding: 5px; }
.mini-cal-grid-clean { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 12px; text-align: center; }
.mini-day-cell { 
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 13px; cursor: pointer; color: #555; transition: 0.2s; margin: 0 auto;
}
.mini-day-cell:hover { background: #f0f0f0; }
.mini-day-cell.active { background: #2856F6; color: white; font-weight: 600; box-shadow: 0 4px 10px rgba(40,86,246,0.3); }

/* Карточка Ученики */
.crm-tabs-row { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.crm-text-tab { font-weight: 600; color: #999; cursor: pointer; font-size: 14px; }
.crm-text-tab.active { color: #111; background: #eee; padding: 4px 10px; border-radius: 8px; }
.crm-plus-btn { margin-left: auto; width: 32px; height: 32px; background: #F0F2F5; border: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: 0.2s; }
.crm-plus-btn:hover { background: #e4e6eb; }
.crm-student-row { display: flex; align-items: center; gap: 0; padding: 10px 8px; border-bottom: 1px solid #F9FAFB; cursor: pointer; transition: 0.2s; }
.crm-st-ava { 
    width: 36px; height: 36px; 
    border-radius: 50%; 
    object-fit: cover; 
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}
.crm-scroll-list { overflow-y: auto; height: 200px; padding-right: 5px; }
.crm-student-row:hover { background: #F9FAFB; }

/* ПРАВАЯ ОБЛАСТЬ */
.crm-workspace { flex: 1; background: white; border-radius: 24px; padding: 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.crm-topbar { height: 80px; padding: 0 30px; border-bottom: 1px solid #F0F2F5; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.crm-pill-tabs { background: #F3F4F6; padding: 4px; border-radius: 12px; display: flex; gap: 4px; }
.pill-tab { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; color: #555; }
.pill-tab.active { background: white; color: #111; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.crm-top-right { display: flex; gap: 12px; }
.btn-crm-outline { background: white; border: 1px solid #ddd; padding: 0 20px; height: 40px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; color: #333; transition: 0.2s; }
.btn-crm-primary { background: #2856F6; border: none; padding: 0 20px; height: 40px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; color: white; display: flex; align-items: center; gap: 8px; }
.btn-crm-primary:hover { background: #1e40af; }

/* ОБЛАСТЬ КОНТЕНТА И EMPTY STATE */
.crm-content-area { flex: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; }

/* Состояние "Как на фото" */
.crm-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; }
.crm-illustration { width: 180px; margin-bottom: 30px; opacity: 0.8; }
.crm-empty-title { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 10px; }
.crm-empty-desc { color: #888; font-size: 14px; margin-bottom: 25px; max-width: 400px; line-height: 1.5; }
.crm-action-btn-lg { background: #F3F4F6; color: #111; border: none; padding: 12px 24px; border-radius: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.crm-action-btn-lg:hover { background: #e5e7eb; }

/* Корректировка таблицы сетки для нового контейнера */
.crm-content-area .week-header-row { padding-left: 20px; padding-right: 20px; border-bottom: none; }
.crm-content-area .week-body-grid { padding-left: 20px; padding-right: 20px; flex: 1; overflow-y: auto; padding-top: 10px; }
.time-labels-col { border-right: none; }
.day-column { border-right: 1px dashed #f0f0f0; background-image: none; position: relative; }
/* Горизонтальные линии для сетки */
.day-column::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(transparent, transparent 79px, #f0f2f5 79px, #f0f2f5 80px); pointer-events: none; }
.event-card { border-radius: 6px; box-shadow: none; border-left: none; padding: 6px; font-size: 11px; }

/* Адаптив для списка */
@media (max-width: 900px) { .crm-layout { flex-direction: column; overflow-y: auto; } .crm-sidebar { width: 100%; } }

/* ==========================================================
   СТИЛИ НОВОЙ ФОРМЫ (КАК НА ФОТО)
   ========================================================== */

.crm-create-scroll {
    flex: 1;
    overflow-y: auto;
    background: #F0F2F5; /* Фон страницы */
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.crm-form-card-big {
    max-width: 100%;
    margin-bottom: 80px; /* место для футера */
}

/* Группы полей (белые блоки с радиусом) */
.crm-input-group {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E0E2E8; /* Светлая рамка */
    margin-bottom: 12px;
    padding: 4px 0; /* внутренний отступ для линий */
}

.crm-field-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    min-height: 50px;
}
.crm-field-row.border-bottom {
    border-bottom: 1px solid #F0F2F5;
}
.crm-field-row.gap-sm {
    gap: 0;
    padding-top: 10px; padding-bottom: 10px;
}
.crm-field-row.clickable {
    cursor: pointer;
}
.crm-field-row.clickable:hover .crm-text-link, 
.crm-field-row.clickable:hover .crm-text-label {
    opacity: 0.7;
}

/* Колонки */
.crm-icon-col {
    width: 40px;
    font-size: 18px;
    color: #9CA3AF;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.crm-input-col {
    flex: 1;
}
.crm-action-col {
    padding-left: 10px;
}

/* Инпуты (Чистые, без рамок) */
.crm-input-clean {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #111;
    background: transparent;
    padding: 0;
}
.crm-input-clean::placeholder {
    color: #9CA3AF;
}
/* Кастомный select без стандартного стиля (упрощенно) */
select.crm-input-clean {
    cursor: pointer;
    background: white; /* фикс для select */
}

.crm-input-clean-sm {
    border: none;
    outline: none;
    font-size: 15px;
    color: #111;
    background: transparent;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

/* Вспомогательные классы */
.flex-center { display: flex; align-items: center; flex-wrap: wrap; }

.crm-text-label { font-size: 15px; color: #9CA3AF; }
.crm-text-link { font-size: 15px; color: #2856F6; font-weight: 500; }

.notify-row { margin-bottom: 12px; }
.notify-row:last-child { margin-bottom: 0; }

/* Футер формы (плавающий или статический) */
.crm-create-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
}

.crm-btn-cancel {
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}
.crm-btn-cancel:hover { background: #E5E7EB; }

.crm-btn-save {
    background: #2856F6;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
}
.crm-btn-save:hover { background: #1e40af; }

/* Стили модалки добавления ученика */
.add-st-toggle-bg {
    background: #F3F4F6;
    border-radius: 10px;
    padding: 4px;
    display: flex;
    position: relative;
}

.add-st-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
    z-index: 2;
}

.add-st-tab.active {
    background: #FFFFFF;
    color: #111;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.invite-link-box {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.invite-link-box input {
    flex: 1;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0 12px;
    color: #374151;
    font-size: 13px;
    font-family: monospace;
    outline: none;
}

.invite-link-box button {
    background: #2856F6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    height: 40px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.invite-link-box button:hover { background: #1E40AF; }

/* === НОВЫЕ СТИЛИ ДЛЯ ЗАДАНИЙ И ПОВТОРЕНИЙ === */

.crm-textarea-clean {
    width: 100%;
    min-height: 80px;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
    padding: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #111;
    resize: vertical;
    outline: none;
    margin-top: 5px;
    background: #FAFAFA;
}
.crm-textarea-clean:focus { background: #fff; border-color: #E5E7EB; }

.crm-select-clean {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #111;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    font-weight: 500;
}

.crm-attach-btn {
    background: #F3F4F6;
    border: 1px dashed #D1D5DB;
    color: #555;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    margin-top: 8px;
}
.crm-attach-btn:hover { background: #E5E7EB; color: #111; border-style: solid; }

.crm-file-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.crm-file-chip {
    background: #E0F2FF;
    color: #0066CC;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.crm-file-remove { cursor: pointer; opacity: 0.6; }
.crm-file-remove:hover { opacity: 1; }

/* ==========================================================
   СТИЛИ НОВОГО РАСПИСАНИЯ (AGENDA / СПИСОК КАК НА ФОТО)
   ========================================================== */

/* Контейнер списка */
.crm-agenda-container {
    padding: 0 30px 30px 30px; /* Отступы как в макете */
    overflow-y: auto;
    height: 100%;
}

/* Заголовок даты (17 января суббота) */
.crm-agenda-date {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-top: 25px;
    margin-bottom: 12px;
    text-transform: lowercase; /* суббота с маленькой */
}
.crm-agenda-date::first-letter {
    text-transform: uppercase;
}

/* Карточка занятия */
.crm-agenda-card {
    background: #f9fafb; /* Светло-серый фон */
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    transition: 0.2s;
    border: 1px solid transparent;
}
.crm-agenda-card:hover {
    background: #eef0f4;
    border-color: #e5e7eb;
}

/* Левая часть: Время */
.crm-ag-time-block {
    display: flex;
    flex-direction: column;
    min-width: 70px;
}
.crm-ag-time {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}
.crm-ag-dur {
    font-size: 11px;
    color: #6B7280;
}


/* --- СТИЛИ ДЛЯ НОВОГО ЛОГОТИПА --- */

/* Маленький логотип (в шапке сайта и в меню ЛК) */
.brand-logo-img {
    width: 40px; 
    height: 40px; 
    border-radius: 8px; /* Немного скругляем углы картинки */
    object-fit: cover;
    display: block;
}

/* Большой логотип (на странице входа) */
.auth-logo-img {
    width: 80px; 
    height: 80px; 
    border-radius: 16px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(40, 86, 246, 0.3); /* Тень в цвет логотипа */
}

/* --- СТИЛИ ДЛЯ АДМИН-ПРОВЕРКИ И ВЫДЕЛЕНИЯ --- */

/* Поле с ошибкой (красная рамка) */
.field-error {
    border: 2px solid #EF4444 !important;
    background-color: #FEF2F2 !important;
}


.field-error-label {
    color: #EF4444;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    display: block;
}

/* Блок предупреждения сверху */
.reject-alert-box {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.reject-icon {
    color: #EF4444;
    font-size: 20px;
    margin-top: 2px;
}

/* Сообщение об ошибке под полем */
.error-badge-msg {
    display: block;
    color: #EF4444;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
}

/* Кнопка "Ошибка" для Админа */
.admin-mark-error-btn {
    font-size: 11px;
    padding: 2px 8px;
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.2s;
}
.admin-mark-error-btn.active {
    background: #B91C1C;
    color: white;
}

/* Пульсация слота при выборе интервала */
@keyframes slotPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 86, 246, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(40, 86, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 86, 246, 0); }
}
.slot-box.selecting-start {
    background-color: #60A5FA !important; /* Ярко-синий */
    animation: slotPulse 1.5s infinite;
    z-index: 10;
}

/* --- CSS: ИСПРАВЛЕНИЕ АДМИН ТАБЛИЦЫ --- */
.admin-table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.admin-table th {
    text-align: left;
    padding: 18px 20px;
    background: #F9FAFB;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #E5E7EB;
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
    font-size: 14px;
    color: #111;
}

.admin-table tr:hover td {
    background-color: #F9FAFB;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-cell img {
    width: 40px; height: 40px; 
    border-radius: 50%; 
    object-fit: cover;
    border: 1px solid #eee;
}

/* Кнопки действий */
.admin-actions {
    display: flex;
    gap: 8px;
}
.admin-btn {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 14px;
}
.admin-btn.edit { background: #EFF6FF; color: #2563EB; }
.admin-btn.del { background: #FEF2F2; color: #DC2626; }

/* СТИЛИ ДЛЯ ВЫДЕЛЕНИЯ ОШИБОК КРАСНЫМ */
.error-field-wrapper {
    position: relative;
    transition: 0.3s;
}
.error-field-wrapper.marked-error input,
.error-field-wrapper.marked-error textarea,
.error-field-wrapper.marked-error select {
    border: 2px solid #EF4444 !important;
    background: #FEF2F2 !important;
}

.admin-error-toggler {
    font-size: 11px;
    cursor: pointer;
    margin-left: 10px;
    color: #EF4444;
    text-decoration: underline;
    opacity: 0.7;
}
.admin-error-toggler:hover { opacity: 1; font-weight: bold; }

/* Сообщение об ошибке для учителя */
.tutor-alert-msg {
    color: #DC2626;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
/* === TOAST NOTIFICATIONS (Tailwind Style) === */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.tw-alert {
    width: 320px;
    padding: 8px; /* p-2 */
    border-radius: 8px; /* rounded-lg */
    display: flex;
    align-items: center;
    border-left-width: 4px;
    border-left-style: solid;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: white; /* fallback */
}

/* Hover Animation */
.tw-alert:hover {
    transform: scale(1.05); /* hover:scale-105 */
}

/* Icons */
.tw-icon {
    height: 20px; /* h-5 */
    width: 20px;  /* w-5 */
    flex-shrink: 0;
    margin-right: 8px; /* mr-2 */
}

/* Text */
.tw-text {
    font-size: 12px; /* text-xs */
    font-weight: 600; /* font-semibold */
}

/* COLORS */
/* Success */
.tw-success { background-color: #dcfce7; border-color: #22c55e; color: #14532d; }
.tw-success:hover { background-color: #bbf7d0; }
.tw-success .tw-icon { color: #16a34a; }

/* Info */
.tw-info { background-color: #dbeafe; border-color: #3b82f6; color: #1e3a8a; }
.tw-info:hover { background-color: #bfdbfe; }
.tw-info .tw-icon { color: #2563eb; }

/* Warning */
.tw-warning { background-color: #fef9c3; border-color: #eab308; color: #713f12; }
.tw-warning:hover { background-color: #fef08a; }
.tw-warning .tw-icon { color: #ca8a04; }

/* Error */
.tw-error { background-color: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.tw-error:hover { background-color: #fecaca; }
.tw-error .tw-icon { color: #dc2626; }

/* === MODERN DATA TABLE (DESIGN LIKE PHOTO) === */

/* Контейнер и общие стили */
.modern-table-wrapper {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
    color: #111827;
}

/* Верхние табы и фильтры */
.mt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.mt-tabs { display: flex; gap: 8px; }
.mt-tab {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: 0.2s;
}
.mt-tab:hover { background: #F3F4F6; }
.mt-tab.active { background: #F3F4F6; font-weight: 600; color: #111; }
.mt-badge-counter {
    background: #E5E7EB;
    color: #374151;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}

/* Сама таблица */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.modern-table th {
    text-align: left;
    padding: 12px 16px;
    background: #F9FAFB;
    color: #374151;
    font-weight: 600;
    border-bottom: 1px solid #E5E7EB;
}
.modern-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
    color: #111827;
}
.modern-table tr:hover td { background: #F9FAFB; }

/* Элементы внутри ячейки */
.cell-drag-handle { color: #D1D5DB; margin-right: 10px; cursor: grab; font-size: 14px; }
.cell-checkbox { 
    width: 16px; height: 16px; border-radius: 4px; 
    border: 2px solid #D1D5DB; cursor: pointer; margin-right: 10px; accent-color: #111; 
}
.cell-title-wrap { display: flex; align-items: center; }
.cell-title { font-weight: 500; color: #111; font-size: 14px; }

/* Бейджики (Тип, Статус) */
.mt-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}
.badge-role { background: #F3F4F6; color: #4B5563; border-color: #E5E7EB; }
.badge-status-green { background: #DCFCE7; color: #166534; border-color: #bbf7d0; } /* Done */
.badge-status-gray { background: #F3F4F6; color: #4B5563; border-color: #E5E7EB; }   /* In Process */
.badge-status-red { background: #FEE2E2; color: #991B1B; border-color: #Fecaca; }     /* Rejected */

.status-dot-icon { margin-right: 6px; font-size: 8px; }

/* Поле Reviewer (Actions) */
.reviewer-box {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid #E5E7EB; padding: 4px 8px; border-radius: 6px;
    background: #fff; cursor: pointer; color: #374151; width: fit-content;
}
.reviewer-box:hover { background: #F9FAFB; border-color: #D1D5DB; }

/* Меню действий (Три точки) */
.action-dots-btn {
    color: #9CA3AF; cursor: pointer; padding: 6px; 
    border-radius: 4px; border: none; background: transparent; font-size: 16px;
}
.action-dots-btn:hover { background: #E5E7EB; color: #111; }

/* Контекстное меню (выпадашка) */
.context-menu-popup {
    position: absolute;
    right: 30px;
    background: white;
    border: 1px solid #E5E7EB;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    width: 160px;
    z-index: 50;
    display: none;
    padding: 4px;
}
.context-menu-popup.active { display: block; animation: fadeIn 0.1s ease-out; }
.cm-item {
    display: block;
    padding: 8px 12px;
    color: #374151;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    border: none;
    width: 100%;
    background: none;
}
.cm-item:hover { background: #F3F4F6; }
.cm-item.delete { color: #DC2626; }
.cm-item.delete:hover { background: #FEE2E2; }

/* Футер таблицы */
.mt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #E5E7EB;
    background: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 13px;
    color: #6B7280;
}
.mt-pagination { display: flex; gap: 5px; align-items: center; }
.mt-page-btn {
    width: 28px; height: 28px; 
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #E5E7EB; background: #fff; border-radius: 4px; cursor: pointer; color: #374151;
}
.mt-page-btn:hover { background: #F9FAFB; }
/* SYSTEM MODALS (Alert & Confirm) */
.sys-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 100000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.2s;
    backdrop-filter: blur(4px);
}
.sys-modal-overlay.active { opacity: 1; visibility: visible; }
.sys-modal-box {
    background: #fff; width: 320px; border-radius: 20px;
    padding: 30px 25px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9); transition: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sys-modal-overlay.active .sys-modal-box { transform: scale(1); }

.sys-icon-wrap {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 15px auto;
}
.sys-icon-danger { background: #FEE2E2; color: #EF4444; }
.sys-icon-info { background: #EFF6FF; color: #2563EB; }

.sys-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 8px; }
.sys-desc { font-size: 14px; color: #6B7280; margin-bottom: 25px; line-height: 1.5; }

.sys-btns { display: flex; gap: 10px; justify-content: center; }
.sys-btn { flex: 1; height: 44px; border-radius: 12px; border: none; font-weight: 600; cursor: pointer; font-size: 14px; transition: 0.2s; }
.sys-btn-gray { background: #F3F4F6; color: #374151; }
.sys-btn-gray:hover { background: #E5E7EB; }
.sys-btn-red { background: #EF4444; color: white; }
.sys-btn-red:hover { background: #DC2626; }
.sys-btn-blue { background: #2563EB; color: white; }
.sys-btn-blue:hover { background: #1E40AF; }
/* ==========================================================================
   NEW: BEAUTIFUL AD CARD DESIGN
   ========================================================================== */

/* Контейнер карточки с эффектом стекла и подъемом */
.ad-glass-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px;
    display: flex;
    gap: 30px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.ad-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: rgba(40, 86, 246, 0.2);
}

/* Секция картинки */
.ad-card-media {
    position: relative;
    width: 220px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
}

.ad-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.ad-glass-card:hover .ad-card-media img {
    transform: scale(1.05);
}

/* Основной контент */
.ad-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ad-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.ad-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 12px;
}

.ad-price-big {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
}

.ad-price-sub {
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
}

.ad-card-desc-preview {
    color: #4B5563;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Статус-бейджи (Новый стиль) */
.status-pill-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 15px;
}

.st-approved-new { background: #ECFDF5; color: #059669; border: 1px solid #D1FAE5; }
.st-pending-new { background: #FFF7ED; color: #EA580C; border: 1px solid #FFEDD5; }
.st-rejected-new { background: #FEF2F2; color: #DC2626; border: 1px solid #FEE2E2; }

/* Зона действий (Кнопки) */
.ad-action-zone {
    width: 80px;
    border-left: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
}

.ad-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #E5E7EB;
    background: white;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s;
}

.ad-action-btn:hover {
    background: #F9FAFB;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Сообщение об ошибке (отклонено) */
.reject-alert-modern {
    margin-top: 15px;
    background: #FEF2F2;
    border-radius: 12px;
    padding: 12px 16px;
    color: #991B1B;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #FEE2E2;
}

/* ==========================================================================
   УНИВЕРСАЛЬНЫЙ СТИЛЬ ДЛЯ ВСЕХ МОДАЛОК (Плавный Fade + Scale)
   ========================================================================== */

/* 1. СТИЛИ ФОНА (ЗАТЕМНЕНИЕ)
   Применяется к sys-modal (удаление/ошибки), modal (формы), event-modal (события) */
.sys-modal-overlay,
.modal-overlay,
.event-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Полупрозрачный фон */
    z-index: 10000;
    
    display: flex;
    justify-content: center;
    align-items: center;

    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    
    /* Очень плавная анимация появления фона */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px); /* Легкое размытие заднего плана */
}

/* АКТИВНОЕ СОСТОЯНИЕ ФОНА */
.sys-modal-overlay.active,
.modal-overlay.active,
.event-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. СТИЛИ САМОГО ОКНА (Белый блок) */
.sys-modal-box,
.modal-box,
.event-modal-box {
    /* Фиксируем стиль, сбрасываем старые анимации */
    animation: none !important; 
    transform-origin: center center;

    /* НАЧАЛЬНОЕ СОСТОЯНИЕ (скрыто) */
    opacity: 0;
    transform: scale(0.96); /* Чуть уменьшено (96%) */

    /* ПЛАВНЫЙ ПЕРЕХОД */
    /* cubic-bezier дает приятную инерцию без пружинистости */
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease-out;
}

/* АКТИВНОЕ СОСТОЯНИЕ ОКНА (показано) */
.sys-modal-overlay.active .sys-modal-box,
.modal-overlay.active .modal-box,
.event-modal-overlay.active .event-modal-box {
    opacity: 1;
    transform: scale(1); /* Возвращаем к 100% размеру */
}

/* Исправление отступов для конкретных окон (оставляем специфику размеров, но анимация общая) */
.sys-modal-box {
    background: #fff; width: 320px; border-radius: 20px;
    padding: 30px 25px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-box {
    background: #fff; padding: 30px; border-radius: 24px;
    width: 90%; max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.event-modal-box {
    background: #fff; width: 450px; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* 3. УБИРАЕМ СТАРЫЕ @KEYFRAMES (если они остались в файле) */
@keyframes popupEntrance { from{opacity:0;} to{opacity:1;} } /* Заглушка, чтобы не ломалось */
@keyframes modalSlide { from{opacity:0;} to{opacity:1;} }    /* Заглушка */
/* ==========================================================================
   PRELOADER (WELCOME SCREEN)
   ========================================================================== */

#app-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff; /* Или #F5F7FA */
    z-index: 9999999; /* Поверх всего */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#app-preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.welcome-content {
    text-align: center;
    animation: welcomeFadeUp 1s ease-out;
}

.welcome-logo {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite;
}

.welcome-text {
    font-size: 16px;
    color: #6B7280;
    font-weight: 500;
    margin-bottom: 5px;
}

.welcome-name {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    background: linear-gradient(90deg, #111, #2856F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Animations */
@keyframes welcomeFadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* ======================================================
   CLASSROOM PAGE STYLES (NEW)
   ====================================================== */

/* --- Layout --- */
.float-widget { position: absolute; z-index: 100; display: flex; align-items: center; }
.top-left { top: 20px; left: 20px; }
.top-center { top: 20px; left: 50%; transform: translateX(-50%); flex-direction: column; align-items: center;}
.top-right { top: 20px; right: 20px; gap: 10px; }

.float-bar {
    position: absolute; z-index: 100;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 50px; /* Сильное закругление */
    display: flex;
    padding: 6px;
    border: 1px solid rgba(0,0,0,0.03);
}
.left-bar { 
    top: 50%; left: 20px; transform: translateY(-50%); 
    flex-direction: column; width: 50px; padding: 10px 0; gap: 8px; border-radius: 20px;
}
.bottom-bar { 
    bottom: 20px; left: 50%; transform: translateX(-50%);
    gap: 15px; padding: 6px 20px; height: 64px; border-radius: 16px;
    align-items: center;
}

/* --- Buttons --- */
.tool-btn {
    width: 36px; height: 36px;
    border: none; background: transparent;
    border-radius: 8px; cursor: pointer; color: #4B5563; font-size: 16px;
    display: flex; justify-content: center; align-items: center; transition: 0.1s;
}
.tool-btn:hover { background: #F3F4F6; }
.tool-btn.active { background: #EFF6FF; color: #2563EB; }
.tool-btn img { width: 24px; height: 24px; object-fit: contain; }

.tool-btn-sm {
    width: 32px; height: 32px; border:none; background:transparent; 
    border-radius:6px; cursor:pointer; color:#374151; font-weight:600; font-size:14px;
}
.tool-btn-sm:hover { background: #f3f4f6; }

.v-divider { width: 80%; height: 1px; background: #E5E7EB; margin: 4px 0; }
.tool-group { display: flex; align-items: center; gap: 5px; border-right: 1px solid #E5E7EB; padding-right: 15px; }
.tool-extended-group { display: flex; align-items: center; gap: 8px; padding-left: 5px; }

/* Color Dots */
.color-dots { display: flex; gap: 4px; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #fff; padding: 3px 6px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.dot { width: 10px; height: 10px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(0,0,0,0.1); }
.dot:hover { transform: scale(1.2); }
.d-black { background: #111; }
.d-red { background: #EF4444; }
.d-blue { background: #2563EB; }
.d-green { background: #10B981; }
.tool-stack { position: relative; }
.active-color-preview { width: 20px; height: 20px; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd; }

/* --- Top Menu --- */
.top-menu-bar { 
    background: #fff; border-radius: 12px; padding: 6px 10px; display: flex; gap: 10px; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.tm-title-box { padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 14px; display:flex; gap:8px; align-items:center;}
.tm-title-box:hover { background: #f9f9f9; border-radius: 8px; }
.tm-search { width: 32px; height: 32px; display:flex; align-items:center; justify-content:center; color:#666; cursor:pointer; }

/* --- Top Right Btns --- */
.btn-share-white { background: white; border: 1px solid #ddd; padding: 8px 16px; border-radius: 8px; font-weight:600; cursor:pointer; color:#333; display:flex; gap:6px; align-items:center; box-shadow: 0 2px 5px rgba(0,0,0,0.05);}
.btn-end-red { background: #EF4444; border:none; color:white; padding: 8px 16px; border-radius: 8px; font-weight:600; cursor:pointer; box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);}

/* --- Timer Widget --- */
.timer-compact { background: #F3F4F6; border-radius: 12px; padding: 8px 16px; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:8px; color:#111; transition:0.2s;}
.timer-compact:hover { background: #E5E7EB; }

.timer-popup { 
    position: absolute; top: 50px; left: 0; background: #fff; padding: 20px; border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); width: 200px; display: none; flex-direction:column; align-items:center; 
}
.timer-popup.active { display: flex; }
.tp-header { width: 100%; display: flex; justify-content:space-between; font-size:13px; font-weight:600; color:#666; margin-bottom:15px; }
.tp-header i { cursor:pointer; }
.tp-time-big { font-size: 32px; font-weight:800; font-variant-numeric: tabular-nums; margin-bottom:15px; }
.tp-controls { display:flex; width:100%; gap:10px; justify-content:space-between; align-items:center;}
.tp-btn-group { display:flex; background:#f3f4f6; border-radius:8px; padding:2px; }
.tp-btn { width:32px; height:32px; background:white; border:none; border-radius:6px; cursor:pointer; font-weight:700; }
.tp-play { width:36px; height:36px; border-radius:8px; border:none; background:#2563EB; color:white; cursor:pointer; display:flex; align-items:center; justify-content:center;}

/* --- Video Widget --- */
.video-widget-float { 
    position:absolute; bottom:20px; right:20px; width:280px; height:180px; 
    background:#1f2937; border-radius:16px; overflow:hidden; z-index:90; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); display:flex; flex-direction:column;
}
.vw-content { flex:1; position:relative; background: black; }
.vw-content video { width:100%; height:100%; object-fit:cover; transform:scaleX(-1); }
.vw-placeholder { position:absolute; top:0; left:0; width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:#111; z-index:2; display:none; }
.vw-avatar { width:50px; height:50px; background:#10B981; border-radius:50%; color:white; display:flex; align-items:center; justify-content:center; font-weight:700;}
.vw-controls { height: 44px; background: rgba(0,0,0,0.6); backdrop-filter:blur(4px); position:absolute; bottom:0; left:0; width:100%; display:flex; align-items:center; padding:0 10px; gap:8px; opacity:0; transition:0.2s;}
.video-widget-float:hover .vw-controls { opacity:1; }
.vw-btn { width:32px; height:32px; background:rgba(255,255,255,0.2); border-radius:6px; color:white; border:none; cursor:pointer; display:flex; justify-content:center; align-items:center;}
.vw-btn.off { background:#EF4444; }

/* --- Dropdown Menu --- */
.menu-dropdown { 
    position: absolute; top: 60px; left: 0; background: #fff; width: 220px; 
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 8px; display: none; flex-direction: column; 
}
.menu-dropdown.active { display: flex; }
.menu-item { padding: 10px 12px; border-radius: 8px; display:flex; align-items:center; gap:10px; font-size:14px; cursor:pointer; color:#333;}
.menu-item:hover { background: #f3f4f6; }
.arrow-r { margin-left: auto; font-size: 10px; color: #999; }

/* --- Full Screen Prejoin --- */
.full-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:white; z-index:10000; display:none; align-items:center; justify-content:center;}
.full-overlay.active { display:flex; }
.pj-container { width:100%; max-width:600px; text-align:center; }
.pj-video-box { width:100%; height:340px; background:#eee; border-radius:24px; position:relative; overflow:hidden; margin-bottom:30px; border: 1px solid #ddd;}
.pj-video-box video { width:100%; height:100%; object-fit:cover; transform:scaleX(-1); }
.pj-msg-center { position:absolute; top:0; left:0; width:100%; height:100%; background:#F3F4F6; z-index:5; display:none; flex-direction:column; justify-content:center; align-items:center; color:#555;}
.pj-toggles { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); z-index:10; display:flex; gap:15px; }
.pj-toggle { width:50px; height:50px; border-radius:50%; background:white; border:none; box-shadow:0 4px 10px rgba(0,0,0,0.1); font-size:18px; color:#555; cursor:pointer; display:flex; justify-content:center; align-items:center;}
.pj-toggle.off { background:#FEF2F2; color:#DC2626; }
.pj-join-btn { background:#2563EB; color:white; border:none; font-size:18px; font-weight:700; padding:15px 60px; border-radius:12px; cursor:pointer; }
.pj-join-btn:hover { background:#1E40AF; }

/* --- Share Modal (Simple) --- */
.simple-modal-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:9000; display:none; justify-content:center; align-items:center;}
.simple-modal-overlay.active { display:flex; }
.simple-modal-box { background:white; width:400px; border-radius:16px; padding:24px; }
.sm-header { display:flex; justify-content:space-between; margin-bottom:10px; font-size:18px; font-weight:700;}
.sm-header i { cursor:pointer; }
.link-copier { display:flex; border:1px solid #2563EB; border-radius:8px; overflow:hidden;}
.link-copier input { border:none; padding:10px; width:100%; background:#EFF6FF; color:#2563EB; font-family:monospace; }
.link-copier button { border:none; background:white; width:50px; cursor:pointer; border-left:1px solid #eee; }

/* Обнови этот блок для canvas-контейнеров */
canvas#board-canvas {
    touch-action: none; /* Важно для тачпадов */
}

/* Стили для курсора руки при перемещении */
canvas.grab-cursor {
    cursor: grab !important;
}
canvas.grabbing-cursor {
    cursor: grabbing !important;
}
/* === MODERN SIDEBAR (FIXED: SVG Selectors + Big Gap) === */
:root {
    --sb-w-expanded: 17rem;
    --sb-w-collapsed: 5.5rem;
    --sb-bg: #FFFFFF;
    --sb-border: #E5E7EB;
    
    /* Colors */
    --sb-active-blue: #2856F6;
    --sb-active-fg: #FFFFFF;
    --sb-text: #4B5563;
    
    --transition: 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.app-container { display: flex; background: #F9FAFB; height: 100vh; overflow: hidden; padding: 0; }

/* MAIN SIDEBAR CONTAINER */
.modern-sidebar {
    width: var(--sb-w-expanded); height: 100%; background: var(--sb-bg);
    border-right: 1px solid var(--sb-border);
    display: flex; flex-direction: column; flex-shrink: 0;
    transition: width var(--transition);
    z-index: 100; position: relative;
    font-family: 'Montserrat', sans-serif;
}
.modern-sidebar[data-state="collapsed"] { width: var(--sb-w-collapsed); }

/* HEADER */
.sidebar-header {
    height: 4.5rem;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.25rem; border-bottom: 1px solid transparent;
}
.header-logo-container {
    display: flex; align-items: center; overflow: hidden; white-space: nowrap;
    transition: opacity 0.2s; opacity: 1;
}
.modern-sidebar[data-state="collapsed"] .header-logo-container { opacity: 0; pointer-events: none; width: 0; }

.logo-box {
    width: 2.25rem; height: 2.25rem; color: #fff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(40, 86, 246, 0.2);
}
.logo-text { margin-left: 12px; display: flex; flex-direction: column; }
.title { font-size: 15px; font-weight: 700; color: #111; letter-spacing: -0.3px; }
.subtitle { font-size: 11px; color: #999; font-weight: 500; }

/* КНОПКА СВОРАЧИВАНИЯ */
.toggle-btn {
    background: transparent; border: none; cursor: pointer;
    padding: 8px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #000; 
    transition: 0.2s;
    width: 36px; height: 36px; flex-shrink: 0;
}
.toggle-btn:hover { background: rgba(0,0,0,0.05); }

/* Иконка внутри кнопки */
.toggle-btn svg, .toggle-btn i {
    width: 20px; height: 20px;
}

.modern-sidebar[data-state="collapsed"] .toggle-btn { transform: rotate(180deg); margin: 0 auto; }
.modern-sidebar[data-state="collapsed"] .sidebar-header { justify-content: center; padding: 0; }

/* MENU */
.sidebar-scroll-area { flex: 1; padding: 1.5rem 1rem; overflow-y: auto; overflow-x: hidden; }

.sidebar-group-label {
    padding-left: 12px; font-size: 11px; font-weight: 700; color: #9CA3AF;
    text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.8px; white-space: nowrap;
}
.mt-label { margin-top: 1.5rem; }
.modern-sidebar[data-state="collapsed"] .sidebar-group-label { display: none; }

/* ПУНКТЫ МЕНЮ */
.sidebar-item {
    display: flex; align-items: center;
    padding: 0.85rem 0.85rem; 
    border-radius: 10px;
    cursor: pointer;
    color: var(--sb-text);
    font-weight: 600; 
    margin-bottom: 5px;
    transition: all 0.2s ease;
}
.sidebar-item:hover { background: #F3F4F6; color: #111; }

.sidebar-item.active {
    background: var(--sb-active-blue);
    color: #FFFFFF;
    box-shadow: 0 6px 15px rgba(40, 86, 246, 0.25);
}

/* === ИКОНКИ (СЕЛЕКТОР ИСПРАВЛЕН НА SVG) === */
.sidebar-item svg, 
.sidebar-item i, 
.user-menu-btn svg, 
.user-menu-btn i {
    /* Размер иконки */
    width: 18px; 
    height: 18px;
    
    stroke-width: 2px;
    flex-shrink: 0;
    
    /* >>>> ВОТ ЗДЕСЬ ОТСТУП <<<< */
    margin-right: 14px; 
    
    transition: margin 0.3s;
    stroke: currentColor;
}
.sidebar-item.active svg { stroke: #FFFFFF; }

.sidebar-item .label { font-size: 14px; white-space: nowrap; transition: 0.2s; letter-spacing: -0.2px; }

/* Свернутое состояние */
.modern-sidebar[data-state="collapsed"] .sidebar-item { justify-content: center; padding: 1rem 0; }
/* Убираем отступ при сворачивании, чтобы иконка была по центру */
.modern-sidebar[data-state="collapsed"] .sidebar-item svg { margin-right: 0; width: 22px; height: 22px; }
.modern-sidebar[data-state="collapsed"] .sidebar-item .label { opacity: 0; width: 0; display: none; }

/* TOOLTIPS */
.sidebar-item .tooltip, .user-menu-btn .tooltip {
    position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
    background: #111; color: white; padding: 6px 14px; border-radius: 6px;
    font-size: 13px; opacity: 0; visibility: hidden; pointer-events: none; z-index: 200;
    margin-left: 15px; font-weight: 500; font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.sidebar-item .tooltip::before {
    content: ""; position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
    border-width: 4px; border-style: solid; border-color: transparent #111 transparent transparent;
}
.modern-sidebar[data-state="collapsed"] .sidebar-item:hover .tooltip,
.modern-sidebar[data-state="collapsed"] .user-menu-btn:hover .tooltip { opacity: 1; visibility: visible; }

/* FOOTER */
.sidebar-footer { border-top: 1px solid #eee; padding: 1rem; }
.user-menu-btn {
    display: flex; align-items: center; padding: 0.75rem;
    border-radius: 10px; color: #4B5563; cursor: pointer; position: relative;
    font-size: 14px; font-weight: 600;
}
.user-menu-btn:hover { background: #FEF2F2; color: #DC2626; }
.modern-sidebar[data-state="collapsed"] .user-menu-btn { justify-content: center; }
.modern-sidebar[data-state="collapsed"] .user-text { display: none; }
.user-info-row { display: flex; align-items: center; gap: 0; width: 100%; }

.main-content.inset-style {
    flex: 1; 
    margin: 15px 15px 15px 0;
    
    /* ИСПРАВЛЕНИЕ: Фон должен быть прозрачным или серым, 
       чтобы карточки CRM внутри выделялись */
    background: transparent; 
    
    border: none; /* Убираем рамку общего контейнера */
    box-shadow: none; /* Убираем тень общего контейнера */
    
    border-radius: 16px;
    overflow-y: hidden; /* Важно для CRM, скролл внутри колонок */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ==========================================================
   СТИЛИ ДЛЯ МОДАЛКИ Д/З И СПИСКА ЗАДАНИЙ
   ========================================================== */

/* Сетка карточек во вкладке "Домашка" */
.homework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.hw-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.hw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hw-date { font-size: 12px; color: #9CA3AF; margin-bottom: 5px; font-weight: 600; text-transform: uppercase;}
.hw-title { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 10px; }
.hw-preview { font-size: 13px; color: #6B7280; line-height: 1.5; margin-bottom: 15px; flex: 1; 
              display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hw-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #F3F4F6; padding-top: 10px;}
.hw-files-count { font-size: 12px; color: #2563EB; font-weight: 600; display: flex; align-items: center; gap: 5px; }

/* Модалка просмотра (Read Only) */
.modal-readonly-box {
    background: #fff; width: 500px; max-width: 90%;
    border-radius: 20px; padding: 0; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden; text-align: left;
}
.modal-ro-header {
    background: #F9FAFB; padding: 20px 25px; border-bottom: 1px solid #E5E7EB;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-ro-title { font-size: 18px; font-weight: 700; color: #111; }
.modal-ro-close { cursor: pointer; font-size: 20px; color: #9CA3AF; transition: 0.2s; }
.modal-ro-close:hover { color: #EF4444; }

.modal-ro-body { padding: 25px; max-height: 60vh; overflow-y: auto; }
.modal-ro-text { white-space: pre-wrap; font-size: 15px; color: #374151; line-height: 1.6; }
.modal-ro-files { margin-top: 20px; padding-top: 20px; border-top: 1px dashed #E5E7EB; }
.modal-file-row {
    display: flex; align-items: center; gap: 10px; background: #F3F4F6;
    padding: 8px 12px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; color: #111;
}
.modal-file-icon { color: #2563EB; }

/* ==========================================================
   EXACT ALERT STYLES (Based on User Request)
   ========================================================== */

/* Анимация появления */
.alert-transition {
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: center right;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Общие утилиты, эмулирующие Tailwind */
.rounded-lg { border-radius: 0.5rem; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.p-2 { padding: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.cursor-pointer { cursor: pointer; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }

/* -- ЦВЕТА (GREEN / SUCCESS) -- */
.bg-green-100 { background-color: #dcfce7; }
.border-green-500 { border-color: #22c55e; }
.text-green-900 { color: #14532d; }
.hover\:bg-green-200:hover { background-color: #bbf7d0; }
.text-green-600 { color: #16a34a; }

/* -- ЦВЕТА (BLUE / INFO) -- */
.bg-blue-100 { background-color: #dbeafe; }
.border-blue-500 { border-color: #3b82f6; }
.text-blue-900 { color: #1e3a8a; }
.hover\:bg-blue-200:hover { background-color: #bfdbfe; }
.text-blue-600 { color: #2563eb; }

/* -- ЦВЕТА (YELLOW / WARNING) -- */
.bg-yellow-100 { background-color: #fef9c3; }
.border-yellow-500 { border-color: #eab308; }
.text-yellow-900 { color: #713f12; }
.hover\:bg-yellow-200:hover { background-color: #fef08a; }
.text-yellow-600 { color: #ca8a04; }

/* -- ЦВЕТА (RED / ERROR) -- */
.bg-red-100 { background-color: #fee2e2; }
.border-red-500 { border-color: #ef4444; }
.text-red-900 { color: #7f1d1d; }
.hover\:bg-red-200:hover { background-color: #fecaca; }
.text-red-600 { color: #dc2626; }

/* Hover scale effect */
.hover\:scale-105:hover { transform: scale(1.05); }

/* Фиксатор сетки, чтобы фильтр не улетал в центр */
.pro-list-layout {
    display: flex;
    align-items: flex-start; /* Фиксирует сайдбар по верхнему краю */
    gap: 30px;
    width: 100%;
}

.pro-list-content {
    flex: 1; /* Список занимает все остальное место */
    min-height: 500px; /* Чтобы страница не схлопывалась */
}

/* === СТИЛИ ШКАЛЫ С ДВУМЯ ПОЛЗУНКАМИ === */
.range-slider-wrapper {
    position: relative;
    width: 100%;
    height: 35px;
    margin-top: 10px;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: #E5E7EB;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.range-slider-fill {
    position: absolute;
    height: 6px;
    background-color: #2856F6;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.double-range-input {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    -webkit-appearance: none;
    background: none;
    pointer-events: none; /* Пропускает клики насквозь */
    z-index: 3;
    margin: 0;
}

.double-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #2856F6;
    cursor: pointer;
    pointer-events: auto; /* Включает клик только для самого ползунка */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-values-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
}

/* РАЗБЛОКИРОВКА СКРОЛЛА */
.main-content.inset-style {
    flex: 1;
    overflow-y: auto; /* Позволяет основному окну скроллиться */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.section {
    display: none;
    flex: 1;
    overflow-y: visible; /* Убираем блокировку внутри секции */
}

.section.active {
    display: block; /* Важно: для скролла каталога лучше block, чем flex */
}

/* Фиксация фильтра (чтобы не уезжал в центр) */
.pro-list-layout {
    display: flex;
    align-items: flex-start !important; /* Фиксирует по верхнему краю */
    gap: 30px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS (DESIGN: STRICT COMPLIANCE)
   ========================================================================== */

/* Контейнер для уведомлений (фиксирован справа сверху) */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px; /* space-y-2 */
    padding: 16px; /* p-4 */
    pointer-events: none; /* Пропускаем клики сквозь контейнер */
}

/* Базовые стили эмуляции Tailwind */
.notification-card {
    pointer-events: auto;
    min-width: 320px;
    max-width: 400px; /* Ограничим ширину, чтобы не растягивалось слишком сильно */
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    
    /* ЦЕНТРИРОВАНИЕ */
    display: flex;
    align-items: center; /* Вертикально */
    justify-content: center; /* Горизонтально */
    
    border-left-width: 4px;
    border-left-style: solid;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: white; 
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Эффекты при наведении */
.notification-card:hover {
    transform: scale(1.05); /* hover:scale-105 */
}

/* Уходящая анимация */
.notification-card.closing {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* SVG и Текст */
.notif-icon {
    height: 1.25rem;
    width: 1.25rem;
    flex-shrink: 0;
    margin-right: 0.75rem; 
}

.notif-text {
    font-size: 0.85rem;
    font-weight: 600;
    /* Центрируем сам текст, если он переносится на новую строку */
    text-align: center;
    flex-grow: 1; /* Чтобы текст занимал пространство и центрировался корректно относительно иконки */
}

/* --- ЦВЕТА (TAILWIND MAPPING) --- */

/* GREEN */
.bg-green-100 { background-color: #dcfce7; }
.border-green-500 { border-color: #22c55e; }
.text-green-900 { color: #14532d; }
.text-green-600 { color: #16a34a; }
.hover\:bg-green-200:hover { background-color: #bbf7d0; }

/* BLUE */
.bg-blue-100 { background-color: #dbeafe; }
.border-blue-500 { border-color: #3b82f6; }
.text-blue-900 { color: #1e3a8a; }
.text-blue-600 { color: #2563eb; }
.hover\:bg-blue-200:hover { background-color: #bfdbfe; }

/* YELLOW */
.bg-yellow-100 { background-color: #fef9c3; }
.border-yellow-500 { border-color: #eab308; }
.text-yellow-900 { color: #713f12; }
.text-yellow-600 { color: #ca8a04; }
.hover\:bg-yellow-200:hover { background-color: #fef08a; }

/* RED */
.bg-red-100 { background-color: #fee2e2; }
.border-red-500 { border-color: #ef4444; }
.text-red-900 { color: #7f1d1d; }
.text-red-600 { color: #dc2626; }
.hover\:bg-red-200:hover { background-color: #fecaca; }

/* --- НОВЫЙ ДИЗАЙН: КАРТОЧКИ В СПИСКЕ (SIDEBAR) --- */
.crm-list-item-modern {
    display: flex;
    align-items: center;
    background: #F3F4F6; /* Светло-серый фон как на фото */
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.crm-list-item-modern:hover {
    background: #E5E7EB;
}

/* Аватар с индикатором статуса */
.avatar-wrapper-modern {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
}

.avatar-img-modern {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #23a6f0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.status-icon-modern {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #2563EB; /* Синий цвет */
    color: white;
    border: 2px solid #F3F4F6; /* Обводка под цвет фона */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.name-modern {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-dots-modern {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
}
.menu-dots-modern:hover {
    background: rgba(0,0,0,0.05);
}

/* --- НОВЫЙ ДИЗАЙН: ПУСТЫЕ СОСТОЯНИЯ (Empty States) --- */
.empty-state-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.empty-img-modern {
    width: 180px;  /* Размер как на макете */
    height: auto;
    margin-bottom: 25px;
    opacity: 0.9;
}

.empty-title-modern {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.empty-desc-modern {
    font-size: 16px;
    color: #6B7280;
    max-width: 400px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-modern-grey {
    background: #F3F4F6;
    color: #111;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.btn-modern-grey:hover {
    background: #E5E7EB;
}

/* --- НОВЫЙ ДИЗАЙН: СПИСОК УРОКОВ (Clean Yandex Style) --- */

/* Заголовок даты */
.crm-date-header-modern {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #111;
    font-weight: 700;
}
.crm-date-today-label {
    color: #2563EB; /* Синий цвет */
    margin-left: 6px;
    cursor: pointer;
}

/* Карточка урока */
.crm-lesson-card-modern {
    background: #F3F4F6; /* Светло-серый фон */
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    transition: 0.2s;
    border: 1px solid transparent;
}
.crm-lesson-card-modern:hover {
    background: #EBEDF0; /* Чуть темнее при наведении */
}

/* Колонки внутри карточки */
.cl-time-col {
    display: flex;
    flex-direction: column;
    min-width: 60px;
    margin-right: 20px;
}
.cl-time-main { font-size: 18px; font-weight: 500; color: #111; line-height: 1; }
.cl-time-sub { font-size: 11px; color: #888; margin-top: 4px; font-weight: 500; }

.cl-profile-col {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px; /* Фикс ширина для выравнивания */
}
.cl-avatar { 
    width: 40px; height: 40px; border-radius: 50%; 
    object-fit: cover; background: #23a6f0; 
    color: white; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.cl-names { display: flex; flex-direction: column; line-height: 1.2; }
.cl-name-main { font-size: 14px; color: #333; font-weight: 500; }
.cl-grade-sub { font-size: 11px; color: #888; }

.cl-subject-col {
    flex: 1;
    font-size: 15px;
    color: #111;
    font-weight: 500;
}

/* Кнопки справа */
.cl-actions-col { display: flex; gap: 8px; align-items: center; }

.cl-btn-icon {
    width: 36px; height: 36px;
    background: #FFFFFF;
    border-radius: 10px;
    border: none;
    display: flex; align-items: center; justify-content: center;
    color: #4B5563;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    position: relative; /* Для тултипа */
}
.cl-btn-icon:hover { color: #111; box-shadow: 0 2px 5px rgba(0,0,0,0.08); }

/* --- Черный тултип "Перейти на доску" --- */
.tooltip-trigger:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 45px; /* Поднимаем над кнопкой */
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937; /* Темно-серый/черный */
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* Стрелочка тултипа */
.tooltip-trigger:hover::before {
    content: '';
    position: absolute;
    bottom: 40px; /* Чуть ниже тултипа */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1F2937 transparent transparent transparent;
    z-index: 100;
}

/* === EMPTY STATES MODERN (ДИЗАЙНЫ ИЗ СКРИНШОТОВ) === */
.empty-modern-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    text-align: center;
    padding: 20px;
    background: white;
}

.empty-modern-img {
    width: 200px; /* Размер как на макете */
    height: auto;
    margin-bottom: 30px;
    opacity: 0.9;
}

.empty-modern-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.empty-modern-text {
    font-size: 15px;
    color: #6B7280;
    margin-bottom: 30px;
    max-width: 450px;
    line-height: 1.5;
}

.btn-modern-plan-grey {
    background: #F3F4F6;
    color: #111;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.btn-modern-plan-grey:hover {
    background: #E5E7EB;
    transform: translateY(-1px);
}

/* Фикс для кнопки в заглушке */
.ad-primary-btn {
    background: #111; color: white; border: none; padding: 12px 24px;
    border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; transition: 0.2s;
}
.ad-primary-btn:hover { background: #333; transform: translateY(-1px); }

/* Эффект для кнопок редактирования */
button[onclick*="openAdEditor"]:hover, button[onclick*="tutor-details"]:hover {
    background: #F9FAFB !important;
    border-color: #d1d5db !important;
    transform: translateY(-1px);
}

/* === НОВЫЙ ДИЗАЙН МОДЕРАЦИИ === */
.moderation-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 50px; /* Важно для скролла */
}

.mod-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.mod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

.mod-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: #F3F4F6;
}

.mod-content {
    flex: 1;
    min-width: 0; /* Чтобы текст сокращался */
}

.mod-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.mod-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

.mod-email {
    font-size: 12px;
    color: #9CA3AF;
}

.mod-ad-title {
    font-size: 14px;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 4px;
}

.mod-desc {
    font-size: 13px;
    color: #4B5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mod-btn {
    background: #111;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.mod-btn:hover {
    background: #333;
}

/* === AVITO STYLE CARD (NO PHOTO VERSION) === */
.avito-item-card {
    display: flex;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    gap: 20px;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Фото убрали, расширяем среднюю колонку */
.av-col-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.av-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #000;
    cursor: pointer;
}
.av-title:hover { color: #ff0000; }

.av-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

.av-badge {
    background: #95F397;
    color: #111;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    width: fit-content;
    margin-bottom: 15px;
    padding-right: 20px;
}

.av-meta-row {
    margin-top: auto;
    font-size: 13px;
    color: #838383;
    line-height: 1.5;
}

/* Колонка действий */
.av-col-right {
    width: 260px;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    border-left: 1px solid #f0f0f0;
}

.av-stats-row {
    display: flex;
    gap: 20px;
    color: #000;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}
.av-stat { display: flex; align-items: center; gap: 6px; }

.av-expire-text {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

/* === КНОПКА ИЗБРАННОГО (СЕРДЕЧКО) === */
.btn-fav {
    background: white;
    border: 1px solid #E5E7EB;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #9CA3AF;
    transition: 0.2s;
    margin-left: 10px;
}
.btn-fav:hover { border-color: #ff0000; color: #ff0000; }
.btn-fav.active { background: #FFF0F0; border-color: #ff0000; color: #ff0000; }

/* КНОПКИ В ЛИЧНОМ КАБИНЕТЕ УЧИТЕЛЯ (AVITO-СТИЛЬ) */
.av-btn-big {
    background: #F1F1F1;
    border: none;
    border-radius: 12px;
    height: 44px;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.av-btn-big:hover { background: #e5e5e5; }

.av-btns-row {
    display: flex;
    gap: 8px;
    width: 100%;
}
.av-btn-small { flex: 1; }
.av-btn-icon { width: 44px; flex-shrink: 0; font-size: 16px; color:#555; }

/* === ШИРОКИЕ КАРТОЧКИ ДЛЯ ИЗБРАННОГО === */
.fav-wide-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 40px;
}

.fav-wide-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    /* Убираем тень по умолчанию для чистоты, добавляем при ховере */
}

.fav-wide-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
    transform: translateX(3px); /* Легкий сдвиг вправо */
}

/* Левая часть: Фото */
.fav-wide-avatar {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    margin-right: 20px;
    background: #F3F4F6;
    flex-shrink: 0;
}

/* Средняя часть: Инфо */
.fav-wide-content {
    flex: 1;
    min-width: 0;
}

.fav-wide-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    cursor: pointer;
}
.fav-wide-name:hover { color: var(--primary); }

.fav-wide-role {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.fav-wide-price-tag {
    display: inline-flex;
    align-items: center;
    background: #F9FAFB;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    border: 1px solid #F3F4F6;
}

/* Правая часть: Действия */
.fav-wide-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

/* Круглая кнопка удаления (Крестик/Сердце разбитое) */
.btn-fav-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #E53E3E;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}
.btn-fav-remove:hover { background: #E53E3E; color: white; border-color: #E53E3E; }

/* Основная кнопка действия */
.btn-fav-go {
    padding: 8px 20px;
    background: #2856F6;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn-fav-go:hover { background: #1e40af; }

/* === ДИЗАЙН КАРТОЧЕК ИЗБРАННОГО (ПЛИТКИ) === */
.fav-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Адаптивная сетка */
    gap: 20px;
    padding-bottom: 40px;
}

.fav-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #F3F4F6;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.fav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1);
    border-color: #E5E7EB;
}

/* Область картинки */
.fav-img-box {
    width: 100%;
    height: 160px;
    background: #F9FAFB;
    position: relative;
}

.fav-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Кнопка "Сердечко" поверх фото */
.fav-heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF4444; /* Красное */
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
    border: none;
}
.fav-heart-btn:hover { transform: scale(1.1); }

/* Контент */
.fav-content {
    padding: 15px;
}

.fav-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.fav-price {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.fav-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #374151;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.fav-subject {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 15px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

/* Кнопка снизу */
.fav-action-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #E5E7EB;
    background: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: 0.2s;
}
.fav-action-btn:hover {
    background: #F3F4F6;
    color: #111;
}

/* === ШИРОКИЕ КАРТОЧКИ ДЛЯ ИЗБРАННОГО === */
.fav-wide-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 40px;
}

.fav-wide-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    /* Убираем тень по умолчанию для чистоты, добавляем при ховере */
}

.fav-wide-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
    transform: translateX(3px); /* Легкий сдвиг вправо */
}

/* Левая часть: Фото */
.fav-wide-avatar {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    margin-right: 20px;
    background: #F3F4F6;
    flex-shrink: 0;
}

/* Средняя часть: Инфо */
.fav-wide-content {
    flex: 1;
    min-width: 0;
}

.fav-wide-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    cursor: pointer;
}
.fav-wide-name:hover { color: var(--primary); }

.fav-wide-role {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.fav-wide-price-tag {
    display: inline-flex;
    align-items: center;
    background: #F9FAFB;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    border: 1px solid #F3F4F6;
}

/* Правая часть: Действия */
.fav-wide-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

/* Круглая кнопка удаления (Крестик/Сердце разбитое) */
.btn-fav-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #E53E3E;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}
.btn-fav-remove:hover { background: #E53E3E; color: white; border-color: #E53E3E; }

/* Основная кнопка действия */
.btn-fav-go {
    padding: 8px 20px;
    background: #2856F6;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn-fav-go:hover { background: #1e40af; }

/* =========================================================================
   ГЛОБАЛЬНАЯ ПЕРЕЗАГРУЗКА КНОПОК
   1. Фиксация цвета (чтобы не менялся).
   2. Единая анимация (прозрачность + масштаб).
   ========================================================================= */

/* --- 1. БАЗОВАЯ АНИМАЦИЯ ДЛЯ ВСЕХ КНОПОК --- */
button, 
.btn, 
[class*="btn-"], 
[class*="-btn"] {
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.2s ease !important;
}

/* --- 2. ЕДИНЫЙ ЭФФЕКТ ПРИ НАВЕДЕНИИ (Только прозрачность и масштаб) --- */
button:hover, 
.btn:hover, 
[class*="btn-"]:hover, 
[class*="-btn"]:hover {
    opacity: 0.85 !important;        /* Кнопка становится чуть легче */
    transform: scale(1.02) !important; /* Едва заметное увеличение */
    cursor: pointer;
}

/* --- 3. ЗАМОРОЗКА ЦВЕТОВ (Жестко фиксируем фон) --- */

/* Группа: СИНИЕ КНОПКИ ("Профиль", "Войти", основные действия) */
.btn-fav-go,
.auth-btn,
.btn-crm-primary,
.ad-primary-btn, /* Если используете синий, иначе перенесите в черные */
.pj-join-btn,
.vc-btn-join {
    background-color: #2856F6 !important;
    color: white !important;
    border: none !important;
}
/* При наведении они остаются СИНИМИ */
.btn-fav-go:hover,
.auth-btn:hover,
.btn-crm-primary:hover,
.ad-primary-btn:hover {
    background-color: #2856F6 !important; 
}

/* Группа: ЧЕРНЫЕ КНОПКИ ("Подробнее" в каталоге, "Создать") */
.btn-clean-primary,
.write-msg-btn,
.mod-btn {
    background-color: #111111 !important;
    color: white !important;
    border: none !important;
}
/* При наведении остаются ЧЕРНЫМИ */
.btn-clean-primary:hover,
.write-msg-btn:hover,
.mod-btn:hover {
    background-color: #111111 !important;
}

/* Группа: БЕЛЫЕ КНОПКИ / СТРОЧНЫЕ ("Написать", "Отмена", "В каталог") */
.btn-clean-outline,
.btn-crm-outline,
.ad-action-btn,
.fav-action-btn {
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #E5E7EB !important;
}
/* При наведении остаются БЕЛЫМИ */
.btn-clean-outline:hover,
.btn-crm-outline:hover,
.ad-action-btn:hover,
.fav-action-btn:hover {
    background-color: #ffffff !important;
    border-color: #E5E7EB !important;
    color: #111111 !important;
}

/* Группа: СЕРЫЕ КНОПКИ (В объявлениях учителя, как на Авито) */
.av-btn-big {
    background-color: #F1F1F1 !important;
    color: #000 !important;
    border: none !important;
}
.av-btn-big:hover {
    background-color: #F1F1F1 !important;
}

/* Группа: КНОПКИ УДАЛЕНИЯ / КРАСНЫЕ (Крестик в избранном) */
/* Мы фиксируем их "нежный" цвет, чтобы не краснели при наведении */
.btn-fav-remove {
    background-color: #FFF5F5 !important;
    color: #E53E3E !important;
    border: 1px solid #FED7D7 !important;
}
.btn-fav-remove:hover {
    background-color: #FFF5F5 !important;
    color: #E53E3E !important;
}

/* Группа: МЕЛКИЕ КНОПКИ В СПИСКАХ (Удалить ученика, Чат) */
/* Они обычно просто прозрачные или белые */
.crm-list-item-modern button {
    background-color: #ffffff !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: none !important;
}
.crm-list-item-modern button:hover {
    background-color: #ffffff !important;
}

/* Группа: МЕНЮ (Сайдбар) */
/* Ссылки меню не должны скакать, только менять прозрачность */
.sidebar-item:hover:not(.active) {
    background-color: transparent !important; /* Убираем фон */
    opacity: 0.6 !important;
}

/* =========================================================
   ФИНАЛЬНАЯ ЗАМОРОЗКА ЦВЕТА (SUPER HARD FIX)
   ========================================================= */

/* --- 1. Кнопка "ПОДРОБНЕЕ" (Public Tutors / Catalog) --- */
/* Всегда Черная */
body .btn-clean-primary,
body .btn-clean-primary:link,
body .btn-clean-primary:visited {
    background-color: #111111 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

/* При наведении: ТОЛЬКО прозрачность и масштаб */
body .btn-clean-primary:hover,
body .btn-clean-primary:active,
body .btn-clean-primary:focus,
.tutor-card-clean:hover .btn-clean-primary { /* Фикс для наведения на карточку */
    background-color: #111111 !important; /* Цвет НЕ МЕНЯЕМ */
    color: #ffffff !important;
    opacity: 0.8 !important;
    transform: scale(1.02) !important;
}


/* --- 2. Кнопка "ПРОФИЛЬ" (Избранное) --- */
/* Всегда Синяя */
body .btn-fav-go,
body .btn-fav-go:link {
    background-color: #2856F6 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

/* При наведении */
body .btn-fav-go:hover,
body .btn-fav-go:active,
body .fav-wide-card:hover .btn-fav-go { /* Фикс для наведения на карточку */
    background-color: #2856F6 !important; /* Цвет НЕ МЕНЯЕМ */
    opacity: 0.8 !important;
    transform: scale(1.02) !important;
}


/* --- 3. Кнопка "ОПЛАТИТЬ" / "ДЗ" (В расписании) --- */
/* Это фикс для белых кнопок, чтобы они не становились серыми */
body .crm-agenda-card button[onclick*="payForLesson"]:hover,
body .crm-agenda-card button[onclick*="openHomework"]:hover {
    background-color: #ffffff !important;
    filter: brightness(0.95); /* Чуть темнее */
    transform: translateY(-1px);
}

/* =========================================================================
   1. ВОССТАНОВЛЕНИЕ КЛАССИЧЕСКОЙ ШАПКИ
   ========================================================================= */
.public-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E5E7EB;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-nav {
    display: flex;
    gap: 25px;
    background: #F9FAFB; /* Подложка меню */
    padding: 5px 6px;
    border-radius: 12px;
}

.nav-link {
    text-decoration: none;
    color: #4B5563;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-link:hover { background: #fff; color: #111; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.nav-link.active { background: #fff; color: #111; font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* Лого */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 0; }
.brand-name { font-weight: 800; font-size: 18px; color: #111; }

/* === NEW MODERN FILTERS UI (DESIGN 2026) === */
.stylish-sidebar {
    width: 300px;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #F0F2F5;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sf-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sf-title { font-size: 18px; font-weight: 800; color: #111; letter-spacing: -0.5px; }

.sf-reset-btn {
    background: #F3F4F6;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: #6B7280;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.sf-reset-btn:hover { background: #fee2e2; color: #ef4444; transform: rotate(-90deg); }

.sf-group { margin-bottom: 24px; }
.sf-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sf-input {
    width: 100%;
    height: 44px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    color: #111;
    transition: 0.2s ease;
    outline: none;
}
.sf-input:focus {
    background: #fff;
    border-color: #2856F6;
    box-shadow: 0 0 0 4px rgba(40, 86, 246, 0.05);
}

/* Переключатель как в iOS */
.switch {
    position: relative;
    display: inline-block;
    width: 42px; height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #E5E7EB;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}
.slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
input:checked + .slider { background-color: #2856F6; }
input:checked + .slider:before { transform: translateX(18px); }

.sf-checkbox-wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 0;
}
.sf-check-label { font-size: 14px; color: #4B5563; font-weight: 500; }

/* Grid results adjustments */

/* =========================================================================
   NEW DESIGN: AIRBNB / IOS STYLE FILTER & MENU
   ========================================================================= */

/* --- 1. ШАПКА (ZEUS STYLE) --- */
.clean-header {
    background: #ffffff;
    border-bottom: 1px solid #f2f2f2;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.clean-nav {
    display: flex;
    gap: 30px;
}

.clean-nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 15px;
    transition: 0.2s;
}
.clean-nav a:hover, .clean-nav a.active { color: #111; font-weight: 600; }

.btn-cyan {
    background-color: #0ea5e9; /* Cyan like Zeus UI */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: 0.2s;
}
.btn-cyan:hover { background-color: #0284c7; }

/* --- 2. LAYOUT СТРАНИЦЫ --- */
.clean-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    gap: 40px;
    background: #f9fafb; /* Белый фон всей страницы */
    min-height: 100vh;
}

/* --- 3. ФИЛЬТР (SIDEBAR КАК НА ФОТО) --- */
.clean-filter-sidebar {
    width: 320px;
    flex-shrink: 0;
    padding: 20px;
    border: 1px solid #f2f2f2;
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.04);
    height: fit-content;
    background: #fff;
}

.cf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.cf-title { font-size: 22px; font-weight: 800; color: #111; }
.cf-reset {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
}

.cf-section { margin-bottom: 30px; }
.cf-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: block;
}

/* ГРУППА КНОПОК (Pills - House/Condo style) */
.cf-pills-bg {
    background: #F3F4F6;
    border-radius: 12px;
    padding: 4px;
    display: flex;
}
.cf-pill {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}
.cf-pill:hover { color: #111; }
.cf-pill.active {
    background: #fff;
    color: #111;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-color: #e5e7eb;
}

/* СЛАЙДЕР РЕЙТИНГА (Photo 2) */
.cf-rating-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cf-rating-input {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 10px 15px;
    width: 80px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #111;
}
/* Кастомный Range Slider */
input[type=range].cf-range {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range].cf-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #374151;
    cursor: pointer;
    margin-top: -10px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
input[type=range].cf-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
}

/* TOGGLES (iOS Switches) */
.cf-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.cf-toggle-label { font-size: 14px; color: #4B5563; }

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #E5E7EB;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
input:checked + .slider { background-color: #111; }
input:checked + .slider:before { transform: translateX(22px); }

/* FOOTER BUTTONS */
.cf-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid #f2f2f2;
    padding-top: 20px;
}
.btn-clean-text { border: 1px solid #e5e7eb; background: #fff; border-radius: 12px; padding: 12px 24px; cursor: pointer; font-weight: 600; color: #111; }
.btn-clean-black { background: #111; color: white; border-radius: 12px; padding: 12px 24px; border:none; cursor: pointer; font-weight: 600; transition:0.2s;}
.btn-clean-black:hover { opacity: 0.9; }

/* ОБЫЧНЫЙ INPUT (как для Предмета) */
.cf-input-box {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
.cf-input-box:focus { border-color: #111; }

/* Grid Result */
#tutors-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================================================================
   НОВЫЙ ДИЗАЙН: MENU (ZEUS STYLE) & FILTER (CLEAN STYLE)
   ========================================================================= */

/* --- 1. Глобальное меню (Как на фото 3) --- */
.modern-header-wrapper {
    background: transparent;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-banner-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.admin-banner-card img {
    height: 40px;
    width: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.modern-header-wrapper {
    /* Ранее было 40px, делаем 60px для солидного зазора */
    padding: 60px 20px 20px 20px !important; 
    width: 100%;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.modern-header-card {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
}

.mh-nav {
    display: flex;
    gap: 8px;
}

.mh-link {
    color: #4B5563;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 10px;
    transition: 0.2s;
    text-decoration: none;
}

.mh-link:hover {
    color: #111;
    background: #F3F4F6;
}

.mh-link.active {
    background: #EFF6FF; /* Светло-голубой фон */
    color: #2856F6;      /* Синий текст */
}

/* --- 2. Фильтр-сайдбар (Как на фото 1 и 2) --- */
.modern-filter-sidebar {
    width: 300px;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    height: fit-content;
}

.mf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.mf-title { font-size: 20px; font-weight: 800; color: #111; }
.mf-reset { font-size: 12px; color: #666; cursor: pointer; text-decoration: underline; }

/* Секции фильтра */
.mf-section { margin-bottom: 25px; }
.mf-label { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 12px; display: block; }

/* Pill Selection (Кнопки выбора как сверху на фото 1) */
.mf-pills-row {
    display: flex;
    background: #F3F4F6;
    padding: 4px;
    border-radius: 12px;
}
.mf-pill {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    color: #6B7280;
}
.mf-pill.active {
    background: white;
    color: #111;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Слайдер рейтинга (Фото 2) */
.mf-rating-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.mf-rating-box {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #E5E7EB;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 80px;
    justify-content: center;
}
.mf-range-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    outline: none;
}
.mf-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Input обычный */
.mf-input {
    width: 100%;
    height: 46px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
.mf-input:focus { border-color: #2856F6; }

/* Toggle Switch (Переключатель) */
.mf-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.mf-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.mf-switch input { opacity: 0; width: 0; height: 0; }
.mf-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #E5E7EB;
    transition: .4s;
    border-radius: 34px;
}
.mf-slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
input:checked + .mf-slider { background-color: #111; }
input:checked + .mf-slider:before { transform: translateX(20px); }

/* Кнопка "Show results" (Черная снизу) */
.mf-btn-show {
    width: 100%;
    background: #111;
    color: white;
    font-weight: 600;
    height: 50px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
    margin-top: 10px;
}
.mf-btn-show:hover { background: #333; }

/* === HERO UI STYLE SLIDERS === */

/* Контейнер слайдера */
.sf-slider-group {
    margin-bottom: 25px;
    position: relative;
}

.sf-slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

/* Стандартный Range Input (Рейтинг) */
input[type=range].hero-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Дорожка (Track) */
input[type=range].hero-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
}

/* Ползунок (Thumb) */
input[type=range].hero-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
    margin-top: -8px; /* Центрирование */
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}
input[type=range].hero-slider:active::-webkit-slider-thumb {
    transform: scale(1.1);
}

/* === DUAL RANGE SLIDER (ЦЕНА) === */
.dual-slider-container {
    position: relative;
    height: 20px;
    width: 100%;
}

.dual-track-bg {
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
}

/* Закрашенная часть (JS будет управлять шириной) */
.dual-track-fill {
    position: absolute;
    top: 50%; 
    height: 4px;
    background: #111;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 2;
}

/* Инпуты (накладываются друг на друга) */
.dual-input {
    -webkit-appearance: none;
    pointer-events: none; /* Чтобы клик прошел сквозь */
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: 3;
    margin: 0;
}

.dual-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto; /* Включаем клик только на кружок */
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
    box-shadow: 0 0 0 2px white, 0 2px 5px rgba(0,0,0,0.15);
}

/* Дополнение к фильтру */
.sf-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    color: #111;
}

/* Пол (Pills - как кнопки) */
.gender-select-row {
    display: flex;
    background: #F3F4F6;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.gender-option {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    color: #6B7280;
    transition: 0.2s;
}
.gender-option.active {
    background: white;
    color: #111;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Доп. стили для галочек */
.checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.checkbox-label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

/* =========================================================
   НОВЫЙ ДИЗАЙН КАРТОЧКИ ПРЕПОДАВАТЕЛЯ (PT-CARD)
   ========================================================= */
.pt-card {
    display: flex;
    background: #FFFFFF;
    border: 1px solid #E5E7EB; /* Светлая рамка */
    border-radius: 20px;
    padding: 24px;
    gap: 24px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Ховер эффект: легкая тень и синяя рамка */
.pt-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 12px 30px -10px rgba(40, 86, 246, 0.12);
    transform: translateY(-2px);
}

/* 1. АВАТАР */
.pt-avatar-col {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pt-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #F9FAFB;
}
.pt-verified {
    font-size: 11px;
    color: #059669;
    font-weight: 700;
    background: #ECFDF5;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

/* 2. ИНФОРМАЦИЯ */
.pt-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pt-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.pt-name {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}
.pt-name:hover { color: #2856F6; }

.pt-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 14px;
}
.pt-title {
    font-size: 14px;
    font-weight: 600;
    color: #2856F6;
    margin-bottom: 12px;
}
.pt-desc {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничение в 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}
.pt-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}
.pt-tag {
    font-size: 12px;
    background: #F3F4F6;
    padding: 4px 10px;
    border-radius: 8px;
    color: #6B7280;
}

/* 3. ДЕЙСТВИЯ (СПРАВА) */
.pt-actions-col {
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    padding-left: 20px;
    border-left: 1px dashed #F0F0F0;
}

.pt-price-big {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    margin-bottom: 4px;
}
.pt-price-label {
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 20px;
}

.pt-btns-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

/* Переопределение стиля сердечка для этой карточки */
.pt-fav-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 5;
    transition: 0.2s;
    color: #D1D5DB; /* Серый по дефолту */
}
.pt-fav-btn:hover { transform: scale(1.1); }
.pt-fav-btn.active { color: #EF4444; }

/* Адаптив для карточки */
@media (max-width: 768px) {
    .pt-card { flex-direction: column; }
    .pt-avatar-col { width: 100%; flex-direction: row; gap: 15px; align-items: center; }
    .pt-actions-col { width: 100%; padding-left: 0; border-left: none; border-top: 1px dashed #F0F0F0; padding-top: 20px; flex-direction: row; align-items: center; justify-content: space-between; }
    .pt-btns-stack { width: auto; flex-direction: row; }
    .pt-fav-btn { top: 20px; right: 20px; } /* На телефоне может накладываться, можно сдвинуть */
}

/* Кнопка сброса в фильтре */
.sf-reset-btn {
    background: transparent;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-reset-btn:hover {
    background: #FFF1F2;
    color: #E11D48; /* Розовый/Красный */
    border-color: #FECDD3;
}

/* =========================================================
   AVITO PRO CARD DESIGN (3-COLUMN LAYOUT)
   ========================================================= */
.av-pro-card {
    display: flex;
    background: #FFFFFF;
    border-radius: 20px; /* Скругление */
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #EAEAEA;
    transition: box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    gap: 24px;
    position: relative;
    cursor: pointer;
}

.av-pro-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* --- КОЛОНКА 1: БОЛЬШОЕ ФОТО --- */
.av-left-col {
    width: 220px;
    flex-shrink: 0;
}
.av-main-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    background: #f0f0f0;
}

/* --- КОЛОНКА 2: ЦЕНТР (ОПИСАНИЕ) --- */
.av-center-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Для работы text-overflow */
}

.av-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.av-ad-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}
.av-ad-title:hover { color: #000; text-decoration: underline; }

.av-price-big {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
}

/* Список услуг с точками (Service ......... Price) */
.av-services-list {
    margin-bottom: 15px;
}
.av-service-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
    color: #111;
}
.av-srv-name { color: #111; }
.av-srv-price { font-weight: 700; white-space: nowrap; margin-left: 10px; }
.av-srv-dots {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 5px 4px 5px;
}

.av-location {
    font-size: 13px;
    color: #111;
    margin-bottom: 10px;
}
.red-dot { color: #FF3B30; margin-right: 4px; }

.av-short-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

/* --- КОЛОНКА 3: ПРОФИЛЬ (СПРАВА) --- */
.av-right-col {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.av-profile-header {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
}
.av-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 8px; /* Квадратное со скруглением как на фото */
    object-fit: cover;
}
.av-tutor-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #111;
}

.av-rating-row {
    font-size: 14px;
    color: #111;
    margin-bottom: 12px;
}
.stars { color: #FFA800; letter-spacing: -2px; margin-right: 5px; }

/* Бейджики */
.av-badges-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.av-badge-blue {
    background: #D9F1FD; /* Голубой фон */
    color: #111;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
}

/* Сердечко */
.av-heart {
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: 0.2s;
    background: transparent;
    border: none;
    align-self: flex-end; /* Прижать вправо в блоке профиля или шапке */
    margin-bottom: 10px;
}
.av-heart.active { color: #E91E63; }
.av-heart:hover { transform: scale(1.1); }

@media (max-width: 900px) {
    .av-pro-card { flex-direction: column; gap: 15px; }
    .av-left-col { width: 100%; }
    .av-main-img { height: 200px; }
    .av-right-col { width: 100%; border-top: 1px solid #eee; padding-top: 15px; }
}

/* === ЖЕЛЕЗОБЕТОННЫЙ ФИКС КНОПКИ "ПОДРОБНЕЕ" === */

/* Обычное состояние */
.av-right-col .ad-primary-btn {
    background-color: #111111 !important; /* Всегда Черная */
    color: #ffffff !important;
    border: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Состояние при наведении */
.av-right-col .ad-primary-btn:hover,
.av-right-col .ad-primary-btn:focus,
.av-right-col .ad-primary-btn:active {
    background-color: #111111 !important; /* Цвет НЕ меняется */
    color: #ffffff !important;
    opacity: 0.85 !important;              /* Только прозрачность */
    transform: translateY(-1px) !important;
}

/* === БИБЛИОТЕКА (Книжная полка) === */
.lib-card {
    background: white; border:1px solid #E5E7EB;
    border-radius:16px; overflow:hidden;
    transition: 0.3s;
    display:flex; flex-direction:column;
}
.lib-card:hover { transform: translateY(-5px); box-shadow:0 15px 30px rgba(0,0,0,0.08); }

.lib-img-box {
    height: 180px; background:#F9FAFB;
    display:flex; align-items:center; justify-content:center;
    position:relative;
}
.lib-img { max-height:80%; max-width:60%; object-fit:contain; box-shadow:0 10px 20px rgba(0,0,0,0.15); }

.lib-badge {
    position:absolute; top:10px; right:10px; 
    font-size:11px; font-weight:700; padding:4px 8px; border-radius:6px;
}
.lib-badge.free { background:#D1FAE5; color:#065F46; }
.lib-badge.paid { background:#FEE2E2; color:#991B1B; }

.lib-info { padding:20px; flex:1; display:flex; flex-direction:column; }
.lib-title { font-weight:700; font-size:16px; margin-bottom:5px; color:#111; }
.lib-author { font-size:13px; color:#6B7280; margin-bottom:15px; }

.lib-btn {
    margin-top:auto; width:100%; border:none; padding:10px; 
    border-radius:8px; font-weight:600; cursor:pointer; font-size:13px;
    display:flex; justify-content:center; align-items:center; gap:8px; transition:0.2s;
}
.lib-btn-free { background:#F3F4F6; color:#374151; }
.lib-btn-free:hover { background:#E5E7EB; }

.lib-btn-buy { background:#111; color:white; }
.lib-btn-buy:hover { background:#333; }

/* Админка (Строка) */
.adm-lib-row {
    display:flex; gap:15px; align-items:center;
    border:1px solid #eee; padding:10px; border-radius:8px; background:white;
}

/* =========================================================
   LIBRARY REDESIGN (LITRES STYLE)
   ========================================================= */

/* --- LAYOUT --- */
.lib-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    gap: 40px;
}

/* --- SIDEBAR FILTERS --- */
.lib-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.lib-filter-group {
    margin-bottom: 30px;
}

.lib-filter-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
    display: flex;
    justify-content: space-between;
}

/* Переключатели (Toggles) */
.lib-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #111;
    font-weight: 600;
}

/* Чекбоксы (Квадратные) */
.lib-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.lib-check-input {
    width: 20px; 
    height: 20px; 
    border-radius: 4px;
    border: 1px solid #D1D5DB;
    cursor: pointer;
    accent-color: #2563EB;
}

/* --- GRID CONTENT --- */
.lib-content {
    flex: 1;
}

.lib-top-bar {
    display: flex;
    margin-bottom: 20px;
}
.lib-sort-select {
    border: 1px solid #E5E7EB;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    outline: none;
    background: #fff;
    cursor: pointer;
}

/* --- BOOK CARD (NEW) --- */
.lib-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px 20px;
}

.book-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
    background: transparent;
    border: none;
}
.book-card:hover .book-cover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Обложка */
.book-cover-wrap {
    position: relative;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
    aspect-ratio: 2 / 3; /* Вертикальный формат */
}
.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

/* Иконка сердца */
.book-like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #111;
    font-size: 14px;
}
.book-like-btn:hover { color: #ff0000; transform: scale(1.1); }

/* Информация */
.book-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 0.8;
    margin-bottom: 4px;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-author {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 8px;
}

/* === КУРСЫ: ПУБЛИЧНАЯ СТРАНИЦА === */
.courses-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Контейнер-обертка для каждого курса */
.course-container-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 12px;
    border: 1px solid #f2f2f2;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.course-container-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #2856F6;
}

.course-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 15px;
}

.course-school-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #2856F6;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Аналогично книгам, только настройки под формат курса */
.course-container-item .book-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.course-features {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #6B7280;
}

/* Мета данные (Формат, Рейтинг) */
.book-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #111;
}
.book-fmt {
    background: #F3F4F6;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.book-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

/* Цена */
.book-price-block {
    margin-top: auto;
}
.book-price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}
.book-price.free { color: #10B981; }

/* КНОПКИ В БИБЛИОТЕКЕ */
.book-actions-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.book-btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    border: none;
}

.bb-outline {
    background: #fff;
    border: 1px solid #E5E7EB;
    color: #111;
}
.bb-outline:hover { background: #F9FAFB; }

.bb-buy {
    background: #111;
    color: white;
}
.bb-buy:hover { opacity: 0.9; }

.bb-download {
    background: #10B981; /* Зеленый */
    color: white;
}
.bb-download:hover { background: #059669; }

/* Инпуты фильтра цен в сайдбаре */
.lib-price-row {
    display: flex;
    gap: 10px;
}
.lib-price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
}
.lib-search-input {
    width: 100%;
    padding: 10px 12px 10px 30px; /* отступ под иконку */
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    outline: none;
}

/* === КНОПКА В СПИСКЕ (ТОЛЬКО ПОДРОБНЕЕ) === */
.book-card .book-btn { width: 100%; margin-top: 10px; }

/* ==========================================================
   PUBLIC COURSES: PREMIUM GRID & CARDS
   ========================================================== */

/* Общий контейнер страницы */
.courses-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* 1. СТИЛИ ЧИПСОВ (КАТЕГОРИИ) */
.course-chips-row {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Скрываем скроллбар в FF */
}
.course-chips-row::-webkit-scrollbar { display: none; } /* Скрываем скроллбар в Chrome */

.course-chip {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid #E5E7EB;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: #4B5563;
}
.course-chip:hover {
    border-color: #2856F6;
    color: #2856F6;
    background: #F0F4FF;
}
.course-chip.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 2. КОНТЕЙНЕР-ОБЕРТКА КАРТОЧКИ (Аналогично библиотеке) */
.course-container-item {
    background: #ffffff;
    border-radius: 22px;
    padding: 14px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-container-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.07);
    border-color: #2856F6;
}

/* 3. ИЗОБРАЖЕНИЕ КУРСА (16:9) */
.course-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 18px;
    background: #F3F4F6;
}

/* 4. ТЕКСТОВЫЙ КОНТЕНТ */
.course-school-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #2856F6;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.course-container-item .book-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #111;
    height: 48px; /* Ограничение в 2 строки */
}

/* Характеристики (иконки под названием) */
.course-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}
.course-features i {
    margin-right: 4px;
    color: #9CA3AF;
    font-size: 14px;
}

/* 5. ЦЕНА И КНОПКА (ФУТЕР КАРТОЧКИ) */
.book-meta-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto; /* Прижать к низу */
    padding-top: 15px;
    border-top: 1px solid #F9FAFB;
}

.premium-price-tag {
    font-size: 20px;
    font-weight: 900;
    color: #111;
}

/* Кнопка "Перейти к обучению" */
.btn-details-modern {
    width: 100%;
    height: 48px;
    background: #111 !important; /* Насильно черный цвет */
    color: #fff !important;
    border: none !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-details-modern:hover {
    background: #333 !important;
    transform: scale(1.02);
}

/* Цвет для надписи "Бесплатно" */
.premium-price-tag span[style*="color:#10B981"] {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 16px;
}

/* Адаптив для планшетов/мобильных */
@media (max-width: 768px) {
    .courses-page-container {
        padding: 0 15px 40px;
    }
    .course-chips-row {
        margin-bottom: 25px;
    }
}

/* =========================================================
   BOOK DETAILS PAGE (Litres Design)
   ========================================================= */
.bd-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 240px 1fr 300px; /* 3 колонки: Фото, Текст, Цена */
    gap: 40px;
    align-items: start;
    font-family: 'Manrope', sans-serif;
}

/* 1. ЛЕВАЯ КОЛОНКА (ОБЛОЖКА) */
.bd-left { width: 100%; }
.bd-cover {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}
.bd-sec-btn {
    width: 100%;
    display: block;
    background: #F3F4F6;
    color: #2563EB;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.bd-sec-btn:hover { background: #E5E7EB; }

/* 2. ЦЕНТР (ОПИСАНИЕ) */
.bd-main { min-width: 0; }
.bd-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #111;
}
.bd-author { font-size: 16px; color: #2563EB; margin-bottom: 20px; font-weight: 500; }

.bd-formats { display: flex; gap: 10px; margin-bottom: 20px; }
.bd-fmt-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; border: 1px solid #E5E7EB; border-radius: 20px;
    font-size: 14px; cursor: pointer; color: #111;
}
.bd-fmt-chip.active { border-color: #2563EB; background: #EFF6FF; color: #2563EB; }

.bd-rating-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}
.bd-stars { color: #FFA800; font-size: 16px; margin-right: 5px; }
.bd-score { font-weight: 800; color: #111; font-size: 18px; margin-right: 5px; }

.bd-label { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #111; }
.bd-desc { font-size: 15px; line-height: 1.6; color: #333; margin-bottom: 30px; }

.bd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-tag { font-size: 13px; color: #2563EB; cursor: pointer; }
.bd-tag:hover { text-decoration: underline; }

/* 3. ПРАВАЯ (ЦЕНА) - Sticky */
.bd-sidebar {
    background: #fff;
    /* Можно добавить тень или оставить чистым */
}
.bd-price { font-size: 32px; font-weight: 800; margin-bottom: 20px; color: #111; }

.bd-main-btn {
    width: 100%;
    background: #3B4CCA; /* Цвет Литрес */
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(59, 76, 202, 0.3);
}
.bd-main-btn:hover { background: #303ea8; }

.bd-cart-btn {
    width: 100%;
    background: #F3F4F6;
    color: #111;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
}
.bd-cart-btn:hover { background: #E5E7EB; }

.bd-safe-block {
    margin-top: 20px;
    background: #F3F4F6;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .bd-wrapper { grid-template-columns: 1fr; }
    .bd-sidebar { grid-row: 1; }
    .bd-left { width: 160px; margin: 0 auto; }
}

/* === НОВЫЙ ДИЗАЙН SIDEBAR (ЦЕНА) === */
.price-card-modern {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px; /* Прилипание при скролле */
}

.pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.pc-price-val {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.pc-currency {
    font-size: 18px;
    font-weight: 600;
    color: #6B7280;
}

.pc-features {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #E5E7EB;
}

.pc-feat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 10px;
}

.pc-payment-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    opacity: 0.6;
}

.pc-pay-icon {
    font-size: 24px;
    color: #111;
}

/* === СТИЛИ ОТЗЫВОВ (BOOKS) === */
.reviews-wrapper {
    margin-top: 20px;
}

/* Форма отзыва */
.review-form-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.rf-star-select {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    cursor: pointer;
}

.rf-star {
    font-size: 24px;
    color: #D1D5DB; /* Серый */
    transition: 0.2s;
}
.rf-star.hovered, .rf-star.selected {
    color: #F59E0B; /* Золотой */
}

/* Карточка отзыва */
.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #F3F4F6;
}
.review-item:last-child { border-bottom: none; }

.ri-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ri-user {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

.ri-date {
    font-size: 12px;
    color: #9CA3AF;
}

.ri-stars {
    color: #F59E0B;
    font-size: 13px;
    margin-bottom: 8px;
}

.ri-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* Сообщение "Войдите, чтобы оставить отзыв" */
.auth-lock-msg {
    text-align: center;
    padding: 30px;
    background: #F9FAFB;
    border: 1px dashed #D1D5DB;
    border-radius: 16px;
    margin-bottom: 30px;
    color: #6B7280;
    font-size: 14px;
}
.auth-lock-msg a {
    color: #2856F6;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Стили для своего отзыва */
.review-item.my-review {
    background: #F0F9FF; /* Светло-голубой фон */
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.your-review-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: #0284C7;
    background: #E0F2FE;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Действия с отзывом (Редактировать) */
.review-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}
.btn-rev-action {
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}
.btn-rev-edit { color: #2563EB; }
.btn-rev-edit:hover { text-decoration: underline; }
.btn-rev-del { color: #EF4444; }
.btn-rev-del:hover { text-decoration: underline; }

/* ==============================================================
   SIDEBAR FIX FOR YOUR HTML
   ============================================================== */

:root {
    --sb-width: 260px;
    --sb-width-c: 80px; /* Ширина свернутого */
}

/* 1. ГЛАВНЫЙ БЛОК */
.modern-sidebar {
    width: var(--sb-width);
    height: 100vh;
    background: #FFFFFF;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    
    /* Анимация ширины */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    position: relative;
    z-index: 100;
    white-space: nowrap; 
    overflow-x: hidden;
}

/* Свернутое состояние */
.modern-sidebar[data-state="collapsed"] {
    width: var(--sb-width-c);
}

/* 2. ШАПКА (Логотип + Кнопка) */
.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    /* Кнопка прижата вправо, лого слева */
    justify-content: space-between; 
    padding: 0 18px;
    flex-shrink: 0;
}

/* Центрируем шапку, когда свернуто */
.modern-sidebar[data-state="collapsed"] .sidebar-header {
    justify-content: center;
    padding: 0;
}

/* 3. КОНТЕЙНЕР ЛОГОТИПА */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 1;
    width: auto;
    transition: opacity 0.2s, width 0.2s; /* Анимация исчезновения */
    overflow: hidden;
}

/* При сворачивании - скрываем лого */
.modern-sidebar[data-state="collapsed"] .header-logo-container {
    opacity: 0;
    width: 0;
    pointer-events: none;
    display: none; /* ЖЕСТКОЕ СКРЫТИЕ, чтобы не ломало верстку */
}

/* 4. КНОПКА ГАМБУРГЕР */
.toggle-btn {
    width: 36px; height: 36px;
    background: transparent; border: none; cursor: pointer;
    border-radius: 8px; 
    display: flex; align-items: center; justify-content: center;
    color: #374151;
    transition: 0.3s;
    margin-left: auto;
    flex-shrink: 0;
}
.toggle-btn:hover { background: #f3f4f6; }

/* Поворачиваем кнопку и центрируем, когда свернуто */
.modern-sidebar[data-state="collapsed"] .toggle-btn {
    transform: rotate(180deg);
    margin: 0;
}

/* 5. ПУНКТЫ МЕНЮ */
.sidebar-item {
    display: flex; 
    align-items: center;
    height: 48px;
    padding: 0 12px; 
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    color: #4B5563; 
    font-weight: 600;
    transition: background 0.2s;
}
.sidebar-item:hover { background: #F3F4F6; }
.sidebar-item.active { background: #2856F6; color: white; }

.sidebar-item svg, .sidebar-item i {
    width: 24px; text-align: center;
    margin-right: 12px; /* Отступ до текста */
    flex-shrink: 0;
}
/* Активная иконка белая */
.sidebar-item.active svg { stroke: white; }
.sidebar-item.active i { color: white; }

/* Если свернуто: иконка по центру, текст скрыт */
.modern-sidebar[data-state="collapsed"] .sidebar-item {
    justify-content: center;
    padding: 0;
}
.modern-sidebar[data-state="collapsed"] .sidebar-item svg,
.modern-sidebar[data-state="collapsed"] .sidebar-item i {
    margin-right: 0;
}
.modern-sidebar[data-state="collapsed"] .sidebar-item .label,
.modern-sidebar[data-state="collapsed"] .sidebar-group-label, 
.modern-sidebar[data-state="collapsed"] .user-menu-btn .name {
    display: none; /* Скрываем текст */
}
/* === АДМИНКА: ТАБЛИЦА ОТЗЫВОВ === */
.review-mod-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.rm-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6B7280;
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 8px;
}

.rm-book-link {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
}

.rm-text {
    background: #F9FAFB;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 15px;
    font-style: italic;
}

.rm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-approve { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; }
.btn-approve:hover { background: #BBF7D0; }

.btn-reject { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; }
.btn-reject:hover { background: #FECACA; }

/* Бейдж ожидания для пользователя */
.pending-badge {
    background: #FEF3C7;
    color: #B45309;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    border: 1px solid #FDE68A;
}

/* === МОДАЛКА ОПЛАТЫ (PAYMENT POPUP) === */
.pay-card-visual {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.pay-chip {
    width: 40px; height: 30px;
    background: linear-gradient(135deg, #FFD700, #FDB931);
    border-radius: 6px;
    margin-bottom: 20px;
}
.pay-card-number {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex; gap: 10px;
}
.pay-card-inputs {
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: white;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}
.pay-card-inputs::placeholder { color: #666; }

.pay-row-split { display: flex; gap: 15px; }
.pay-group { flex: 1; }
.pay-label { font-size: 10px; text-transform: uppercase; color: #aaa; margin-bottom: 4px; display: block; }
.pay-input-sm {
    width: 100%; background: #222; border: 1px solid #444;
    color: white; padding: 8px; border-radius: 6px; font-size: 14px;
}

.pay-total-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee;
}
.pay-total-label { font-size: 14px; color: #666; }
.pay-total-amount { font-size: 24px; font-weight: 800; color: #111; }

/* Сетка книг в личном кабинете */
.lk-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Кнопки в один ряд (Купить + Лайк) */
.pc-btns-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Кнопка Купить (широкая) */
.pc-btn-buy {
    flex: 1;
    background: #111;
    color: white;
    border: none;
    border-radius: 12px;
    height: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}
.pc-btn-buy:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Кнопка Лайк (квадратная) */
.pc-btn-like {
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6B7280; /* Серый по умолчанию */
    cursor: pointer;
    transition: 0.2s;
}
.pc-btn-like:hover {
    border-color: #EF4444;
    color: #EF4444;
}
.pc-btn-like.active {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #EF4444;
}

/* === КНОПКИ В ОДИН РЯД (BOOK DETAILS) === */
.pc-btns-row {
    display: flex;
    gap: 10px; /* Отступ между кнопками */
    margin-bottom: 20px;
    align-items: stretch; /* Чтобы высота была одинаковой */
}

/* Большая кнопка КУПИТЬ */
.pc-btn-buy {
    flex: 1; /* Занимает всё свободное место */
    background: #111;
    color: white;
    border: none;
    border-radius: 12px;
    height: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-btn-buy:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Квадратная кнопка ИЗБРАННОЕ */
.pc-btn-like {
    width: 50px; /* Фиксированная ширина */
    height: 50px; /* Фиксированная высота */
    flex-shrink: 0; /* Не сжиматься */
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #9CA3AF;
    cursor: pointer;
    transition: 0.2s;
}
.pc-btn-like:hover {
    border-color: #EF4444;
    color: #EF4444;
}
/* Активное состояние (когда лайкнуто) */
.pc-btn-like.active {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #EF4444;
}

/* === НОВЫЙ ДИЗАЙН БИБЛИОТЕКИ (БЕЗ САЙДБАРА) === */

/* Контейнер поиска */
.lib-search-container {
    max-width: 1000px; /* Чуть меньше чем header (обычно 1200px) */
    margin: 40px auto 30px auto; /* Отступы сверху/снизу */
    padding: 0 20px;
    position: relative;
}

/* Поле ввода */
.lib-search-large {
    width: 100%;
    height: 60px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding-left: 55px; /* Место под иконку */
    padding-right: 20px;
    font-size: 16px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    outline: none;
    transition: 0.2s;
}

.lib-search-large:focus {
    border-color: #2856F6;
    box-shadow: 0 4px 25px rgba(40, 86, 246, 0.1);
}

/* Иконка лупы */
.lib-search-icon {
    position: absolute;
    left: 40px; /* 20px padding контейнера + 20px отступ внутри */
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9CA3AF;
    pointer-events: none;
}

/* Сетка книг (на всю ширину) */
.lib-grid-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}
/* === ЗАГОЛОВОК БИБЛИОТЕКИ === */
.lib-hero-section {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 20px;
    background: linear-gradient(180deg, #f9fafb 0%, #f9fafb 100%);
}

.lib-main-title {
    font-size: 48px; /* Крупный текст */
    font-weight: 800;
    color: #111;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.lib-highlight {
    color: #2856F6; /* Синий акцент */
    position: relative;
    display: inline-block;
}

.lib-sub-title {
    font-size: 18px;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-weight: 500;
}

/* Секция случайных книг */
.lib-random-section {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.lib-section-label {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==============================================================
   АВАРИЙНЫЙ ФИКС ЦВЕТОВ КНОПОК (FORCE COLORS)
   ============================================================== */

/* 1. СИНЯЯ КНОПКА (СОЗДАТЬ) - ЖЕСТКАЯ ФИКСАЦИЯ */
.force-blue-btn {
    background-color: #2856F6 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    
    /* Параметры вида */
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    /* Отключаем плавные переходы, чтобы цвет не "мигал" */
    transition: none !important; 
}

/* ЗАЩИТА ОТ НАВЕДЕНИЯ (HOVER/FOCUS/ACTIVE) */
.force-blue-btn:hover,
.force-blue-btn:focus,
.force-blue-btn:active {
    background-color: #2856F6 !important; /* Цвет ТОТ ЖЕ */
    color: #ffffff !important;
    opacity: 1 !important;
}


/* 2. КРАСНАЯ КНОПКА (ИСПРАВИТЬ) - ЖЕСТКАЯ ФИКСАЦИЯ */
.force-red-btn {
    background-color: #DC2626 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    
    /* Параметры вида */
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    
    transition: none !important;
}

/* ЗАЩИТА ОТ НАВЕДЕНИЯ (HOVER/FOCUS/ACTIVE) */
.force-red-btn:hover,
.force-red-btn:focus,
.force-red-btn:active {
    background-color: #DC2626 !important; /* Цвет ТОТ ЖЕ */
    color: #ffffff !important;
    opacity: 1 !important;
}   

/* =========================================================
   СТАТУСЫ ОБЪЯВЛЕНИЙ (БЕЙДЖИ)
   ========================================================= */

/* Общий контейнер статуса */
.status-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Отступ иконки от текста */
    padding: 8px 16px;
    border-radius: 100px; /* Полное скругление (Pill style) */
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    user-select: none;
    line-height: 1;
}

/* 1. АКТИВНО (ЗЕЛЕНЫЙ) */
.st-lg-approved {
    background-color: #DCFCE7; /* Нежный зеленый фон */
    color: #166534;            /* Темно-зеленый текст */
    border: 1px solid #86EFAC; /* Зеленая рамка */
}

/* 2. НА МОДЕРАЦИИ (ЖЕЛТЫЙ) */
.st-lg-pending {
    background-color: #FEF9C3; /* Нежный желтый фон */
    color: #A16207;            /* Темно-золотой текст */
    border: 1px solid #FDE047; /* Желтая рамка */
}

/* 3. ОТКЛОНЕНО (КРАСНЫЙ) */
.st-lg-rejected {
    background-color: #FEE2E2; /* Нежный красный фон */
    color: #991B1B;            /* Темно-красный текст */
    border: 1px solid #FCA5A5; /* Красная рамка */
}

/* 4. ЧЕРНОВИК (СЕРЫЙ) */
.st-lg-none {
    background-color: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

/* === ПЛАШКА "ОСТАЛОСЬ ДНЕЙ" === */
.days-left-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #047857; /* Темно-зеленый */
    background: #ECFDF5; /* Светло-зеленый */
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 6px; /* Отступ от адреса */
}

/* === ВАШ БЛОК ОШИБКИ (Отказ) === */
.reject-alert-box {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.reject-icon {
    color: #DC2626; /* Красный */
    font-size: 24px;
    margin-top: 2px;
}

/* === НОВЕЙШИЕ 3D ИКОНКИ (ОБЯЗАТЕЛЬНО) === */

/* Базовый контейнер иконки */
.new-3d-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 20px !important;
    
    position: relative !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255,255,255,0.4) !important;
    transform: translateY(0);
    transition: transform 0.1s;
    border: 1px solid rgba(0,0,0,0.05);
}

.crm-agenda-card:hover .new-3d-wrapper {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255,255,255,0.4) !important;
}

/* 1. СИНИЙ (Для Ученика - видит Учителя/Портфель) */
.new-3d-blue {
    background: linear-gradient(145deg, #60A5FA, #2563EB) !important;
}
.new-3d-blue::after {
    content: '\f0b1' !important; /* Портфель */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 2. ЗЕЛЕНЫЙ (Для Учителя - видит Ученика/Книгу) */
.new-3d-green {
    background: linear-gradient(145deg, #34D399, #059669) !important;
}
.new-3d-green::after {
    content: '\f5d2' !important; /* Книга */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* === БАННЕР НАД МЕНЮ (РАЗМЕР КАК У МЕНЮ) === */
#promo-banner-container {
    width: 100%;
    max-width: 1200px; /* Ширина как у меню */
    margin: 20px auto 10px auto; /* 30px от верха экрана, 10px снизу до меню */
    display: none; /* Включится через JS */
}

#promo-banner-container img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Обертка меню */
.modern-header-wrapper {
    padding: 0 20px 20px 20px !important; /* Обнуляем верхний padding */
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1000;
}
/* === НОВОЕ МЕНЮ С ПОИСКОМ === */
.modern-header-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px 20px 20px; /* Отступы по краям экрана */
    position: sticky;
    top: 0;
    z-index: 999;
}

.modern-header-card {
    background: #fff;
    width: 100%;
    max-width: 1200px;
    border-radius: 16px;
    padding: 8px 12px; /* Компактные отступы внутри */
    display: flex;
    align-items: center;
    gap: 15px; /* Расстояние между элементами */
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}
.mh-logo1 {
    display: flex; align-items: center; gap: 8px; font-family: Montserrat; text-decoration: none;
    color: #111; font-weight: 600; font-size: 25px;
}
.mh-logo1 img { width: 50px; height: 50px; border-radius: 8px; }

.mh-logo2 img { width: 70px; height: 70px; border-radius: 8px; }

/* Лого */
.mh-logo {
    display: flex; align-items: center; gap: 8px; font-family: Montserrat; text-decoration: none;
    color: #111; font-weight: 600; font-size: 16px;
}
.mh-logo img { width: 32px; height: 32px; border-radius: 8px; }

/* Поиск (в центре, тянется) */
.mh-search-box {
    flex-grow: 1;
    position: relative;
    max-width: 300px; /* Ограничим ширину, чтобы меню не разрывало */
}
.mh-search-input {
    width: 100%;
    height: 38px;
    background: #F3F4F6;
    border: none;
    border-radius: 10px;
    padding: 0 15px 0 35px; /* Слева отступ под иконку */
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}
.mh-search-input:focus { background: #fff; box-shadow: 0 0 0 2px #2856F6; }
.mh-search-icon {
    position: absolute; left: 12px; top: 11px;
    color: #9CA3AF; font-size: 13px;
}

/* Навигация (Pills) - Скрываем текст на очень малых экранах если надо */
.mh-nav {
    display: flex; gap: 4px; background: #fff; padding: 0; border-radius: 0;
}
.mh-link {
    text-decoration: none; color: #4B5563;
    font-weight: 600; font-size: 13px;
    padding: 8px 12px; border-radius: 8px;
    transition: 0.2s;
}
.mh-link:hover { background: #F3F4F6; color: #111; }
.mh-link.active { background: #F3F4F6; color: #2856F6; }

/* Кнопка ЛК (с иконкой) */
.mh-btn-login {
    background: #111;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 18px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s;
}
.mh-btn-login:hover { background: #333; }

/* Навигация (меню) */
.mh-link {
    text-decoration: none;
    color: #4B5563; /* Серый по умолчанию */
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.2s;
}

.mh-link:hover {
    background: #F3F4F6;
    color: #111; /* При наведении чуть темнее */
}

/* АКТИВНЫЙ ПУНКТ (СИНИЙ ФОН + БЕЛЫЙ ТЕКСТ или СИНИЙ ТЕКСТ + БЕЛЫЙ ФОН) */
/* Ваш вариант: синий текст, белый фон */
.mh-link.active {
    background: #EFF6FF; /* Нежно-голубой */
    color: #2856F6;      /* Ваш фирменный синий */
    /* box-shadow: 0 2px 5px rgba(40, 86, 246, 0.15); — если нужна тень */
}


        .landing-main-footer[data-v-bff6ad20] {
            padding: var(--ui-size--5);
            color: var(--white);
            background-color: var(--black-1);
            border-radius: var(--ui-size--6)
        }

        .landing-main-footer__container[data-v-bff6ad20] {
            display: flex;
            flex-direction: column;
            gap: var(--ui-size--6)
        }

        .landing-main-footer__content[data-v-bff6ad20] {
            display: flex;
            flex-direction: column;
            gap: var(--ui-size--5)
        }

        .landing-main-footer__contact-info[data-v-bff6ad20],
        .landing-main-footer__logo-container[data-v-bff6ad20] {
            display: flex;
            flex-direction: column;
            gap: var(--ui-size--4)
        }

        .landing-main-footer__logo[data-v-bff6ad20] {
            display: flex;
            align-items: center;
            justify-content: center;
            width: var(--ui-size--14);
            height: var(--ui-size--14);
            background-color: var(--white);
            border-radius: var(--ui-size--3)
        }

        .landing-main-footer__logo-image[data-v-bff6ad20] {
            -o-object-fit: contain;
            object-fit: contain
        }

        .landing-main-footer__contact-details[data-v-bff6ad20] {
            display: flex;
            flex-direction: column;
            gap: var(--ui-size--2)
        }

        .landing-main-footer__phone[data-v-bff6ad20] {
            font-size: var(--ui-size--6);
            font-weight: 500;
            line-height: 1.33;
            color: var(--white);
            text-decoration: none;
            text-wrap: nowrap;
            transition: color .2s ease
        }

        .landing-main-footer__working-hours[data-v-bff6ad20] {
            width: 15.625rem;
            font-size: var(--ui-size--4);
            font-weight: 400;
            line-height: 1.43;
            color: var(--white)
        }

        .landing-main-footer__email[data-v-bff6ad20] {
            font-size: var(--ui-size--4);
            font-weight: 500;
            line-height: 1.43;
            color: var(--white);
            text-decoration: none;
            transition: color .2s ease
        }

        .landing-main-footer__social-media[data-v-bff6ad20] {
            display: flex;
            gap: var(--ui-size--4);
            align-items: center
        }

        .landing-main-footer__social-button[data-v-bff6ad20] {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 3.25rem;
            height: 3.25rem;
            background-color: var(--black-2);
            border-radius: var(--ui-size--3)
        }

        .landing-main-footer__social-button[data-v-bff6ad20]:hover {
            background-color: var(--black-3)
        }

        .landing-main-footer__email[data-v-bff6ad20]:hover {
            color: var(--black-5)
        }

        .landing-main-footer__social-icon[data-v-bff6ad20] {
            width: var(--ui-size--7);
            height: var(--ui-size--7)
        }

        .landing-main-footer__links-section[data-v-bff6ad20] {
            display: flex;
            flex-direction: column;
            gap: var(--ui-size--4)
        }

        .landing-main-footer__links-group[data-v-bff6ad20] {
            display: flex;
            flex-direction: column;
            gap: var(--ui-size--2)
        }

        .landing-main-footer__links-title[data-v-bff6ad20] {
            margin: 0;
            font-size: var(--ui-size--4);
            font-weight: 500;
            line-height: 1.5;
            color: var(--white)
        }

        .landing-main-footer__links-list[data-v-bff6ad20] {
            display: flex;
            flex-direction: column;
            gap: var(--ui-size--2);
            padding: 0;
            margin: 0;
            font-size: var(--ui-size--3-5)
        }

        .landing-main-footer__link[data-v-bff6ad20] {
            font-size: var(--ui-size--4);
            line-height: 1.43;
            color: var(--white)
        }

        .landing-main-footer__link[data-v-bff6ad20]:hover {
            color: var(--black-5)
        }

        .landing-main-footer__camp-image[data-v-bff6ad20] {
            display: none;
            align-items: center;
            justify-content: center;
            width: 100%
        }

        .landing-main-footer__camp-image-src[data-v-bff6ad20] {
            width: 100%;
            -o-object-fit: cover;
            object-fit: cover
        }

        .landing-main-footer__footer-container[data-v-bff6ad20] {
            display: flex;
            flex-direction: column;
            gap: var(--ui-size--3);
            align-items: stretch;
            justify-content: stretch;
            width: 100%
        }

        .landing-main-footer__footer-item[data-v-bff6ad20] {
            flex: 1;
            font-size: var(--ui-size--3);
            font-weight: 400;
            line-height: 1.33;
            color: var(--black-5);
            text-decoration: none
        }

        @media screen and (min-width: 64rem) {
            .landing-main-footer[data-v-bff6ad20] {
                padding: var(--ui-size--10);
                border-radius: var(--ui-size--10)
            }

            .landing-main-footer__container[data-v-bff6ad20],
            .landing-main-footer__content[data-v-bff6ad20],
            .landing-main-footer__contact-info[data-v-bff6ad20] {
                gap: var(--ui-size--8)
            }

            .landing-main-footer__logo-container[data-v-bff6ad20] {
                flex-direction: column;
                gap: var(--ui-size--8)
            }

            .landing-main-footer__logo[data-v-bff6ad20] {
                width: var(--ui-size--15);
                height: var(--ui-size--15)
            }

            .landing-main-footer__contact-details[data-v-bff6ad20] {
                gap: var(--ui-size--2)
            }

            .landing-main-footer__phone[data-v-bff6ad20] {
                font-size: var(--ui-size--8);
                line-height: 1.25
            }

            .landing-main-footer__working-hours[data-v-bff6ad20] {
                width: 100%;
                font-size: var(--ui-size--4)
            }

            .landing-main-footer__email[data-v-bff6ad20] {
                font-size: var(--ui-size--4)
            }

            .landing-main-footer__social-media[data-v-bff6ad20] {
                gap: var(--ui-size--4)
            }

            .landing-main-footer__social-button[data-v-bff6ad20] {
                width: 3.25rem;
                height: 3.25rem
            }

            .landing-main-footer__links-section[data-v-bff6ad20] {
                flex-direction: row;
                gap: var(--ui-size--8)
            }

            .landing-main-footer__links-group[data-v-bff6ad20] {
                flex: 1;
                gap: var(--ui-size--4)
            }

            .landing-main-footer__links-title[data-v-bff6ad20] {
                font-size: var(--ui-size--5);
                line-height: 1.4
            }

            .landing-main-footer__links-list[data-v-bff6ad20] {
                gap: var(--ui-size--3);
                font-size: var(--ui-size--4)
            }

            .landing-main-footer__link[data-v-bff6ad20] {
                font-size: var(--ui-size--4)
            }

            .landing-main-footer__footer-container[data-v-bff6ad20] {
                flex-direction: row;
                gap: var(--ui-size--8)
            }
        }

        @media screen and (min-width: 80rem) {
            .landing-main-footer[data-v-bff6ad20] {
                padding: var(--ui-size--16);
                border-radius: var(--ui-size--12)
            }

            .landing-main-footer__container[data-v-bff6ad20],
            .landing-main-footer__content[data-v-bff6ad20] {
                gap: var(--ui-size--12)
            }

            .landing-main-footer__contact-info[data-v-bff6ad20] {
                flex-direction: row;
                gap: var(--ui-size--12)
            }

            .landing-main-footer__logo-container[data-v-bff6ad20] {
                gap: var(--ui-size--8)
            }

            .landing-main-footer__logo[data-v-bff6ad20] {
                width: var(--ui-size--15);
                height: var(--ui-size--15)
            }

            .landing-main-footer__contact-details[data-v-bff6ad20] {
                gap: var(--ui-size--5)
            }

            .landing-main-footer__phone[data-v-bff6ad20] {
                font-size: var(--ui-size--8);
                line-height: 1.25
            }

            .landing-main-footer__working-hours[data-v-bff6ad20] {
                width: 15.625rem;
                font-size: var(--ui-size--4)
            }

            .landing-main-footer__email[data-v-bff6ad20] {
                font-size: var(--ui-size--4)
            }

            .landing-main-footer__social-media[data-v-bff6ad20] {
                gap: var(--ui-size--4)
            }

            .landing-main-footer__social-button[data-v-bff6ad20] {
                width: 3.25rem;
                height: 3.25rem
            }

            .landing-main-footer__links-section[data-v-bff6ad20] {
                gap: var(--ui-size--12);
                width: 100%
            }

            .landing-main-footer__links-group[data-v-bff6ad20] {
                gap: var(--ui-size--4)
            }

            .landing-main-footer__links-title[data-v-bff6ad20] {
                font-size: var(--ui-size--5);
                line-height: 1.4
            }

            .landing-main-footer__links-list[data-v-bff6ad20] {
                gap: var(--ui-size--3)
            }

            .landing-main-footer__link[data-v-bff6ad20] {
                font-size: var(--ui-size--4)
            }

            .landing-main-footer__camp-image[data-v-bff6ad20] {
                display: flex
            }

            .landing-main-footer__footer-container[data-v-bff6ad20] {
                gap: var(--ui-size--6)
            }
        }

/* ==========================================================
   DROPDOWN "СВЯЗАТЬСЯ" (New Style)
   ========================================================== */

/* Контейнер кнопок (Связаться + Сердце) */
.action-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* Отступ между кнопками */
    margin-top: 15px;
    position: relative; /* Чтобы дропдаун позиционировался отсюда */
}

/* Кнопка "Связаться" (Черная) */
.contact-dropdown-btn {
    background-color: #111111;
    color: white;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 48px; /* Фиксируем высоту как у сердца */
}

.contact-dropdown-btn:hover {
    background-color: #333333;
}

/* Выпадающее меню (Скрыто по умолчанию) */
.contact-menu {
    position: absolute;
    top: calc(100% + 10px); /* Отступ снизу */
    left: 0;
    z-index: 50;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 240px; /* Ширина меню */
    padding: 6px;
    display: none; /* Скрыто */
    animation: fadeIn 0.2s ease-out;
}

/* Показываем класс */
.contact-menu.show {
    display: block;
}

/* Пункты меню */
.contact-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1F2937;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.contact-item:hover {
    background-color: #F3F4F6;
    color: #111;
}

.contact-icon {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    font-size: 16px;
}