
        :root {
    --primary: #524438;
    --accent: #8A7E6E;
    --text: #1a1a1a;
    --text-light: #555;
    --bg: #FAF8F5;
    --card-bg: #ffffff;
    --border: #e5e5e5;
    --success: #10b981;
}

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
        }

        .dashboard {
            display: flex;
            min-height: 100vh;
        }

/* ===================== Сайдбар ===================== */
.sidebar {
    width: 280px;
    background: #524438;
    border-right: 1px solid #5E5040;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.logo {
    font-size: 0;
    padding: 0 20px;
    margin-bottom: 8px;
    margin-top: -80px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.logo-wrapper {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section:last-of-type {
    margin-bottom: 0;
}

/* Делаем нижний блок аккаунта чуть компактнее */
.sidebar-section[style*="margin-top: auto"] .nav-menu li > a {
    padding: 11px 28px;
    font-size: 0.96rem;
}

.sidebar-section-title {
    padding: 0 28px 10px 28px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8A7E6E;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ===================== Навигация ===================== */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.nav-menu li {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.97rem;
    font-weight: 500;
    color: #C0B8A8;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 2px 12px;
    border-radius: 12px;
    max-width: calc(100% - 24px);
    min-width: 0;
    box-sizing: border-box;
}

/* Реальные ссылки в сайдбаре (работают и на сервере) */
.nav-menu li > a {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    /* одинаковый padding active/inactive → размер не прыгает */
    padding: 12px 40px 12px 28px;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: inherit;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
}

.nav-menu li:hover {
    background: #5E5040;
    color: #FAF8F5;
}

.nav-menu li:hover > a {
    color: inherit;
}


/* Активная вкладка — тот же размер, что неактивная */
.nav-menu li.active {
    background: #FFFFFF;
    color: #524438;
    font-weight: 500;
    /* слева 12px как было, справа 17% */
    border-radius: 12px 17% 17% 12px;
    overflow: hidden;
}

.nav-menu li.active > a {
    color: inherit;
    font-weight: 500;
    padding: 12px 40px 12px 28px;
}

.nav-menu li.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 7px;
    background: #524438;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Усы справа — масштаб по высоте пункта, без выхода за границы */
.nav-menu li.active::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 72%;
    width: 28px;
    max-height: 28px;
    background: url('/static/images/sidebar_cat_whiskers.png') center / contain no-repeat;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 2;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid #5E5040;
}

/*
  ПК: убираем скролл сайдбара, уменьшая только вертикальные отступы
  между блоками. Кнопки (.nav-menu li) — без изменений.
*/
@media (min-width: 769px) {
    .sidebar {
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .sidebar-footer {
        flex-shrink: 0;
    }
}

/* Средняя высота: сжимаем только пробелы между секциями */
@media (min-width: 769px) and (max-height: 960px) {
    .sidebar {
        padding: 16px 0 8px;
    }

    .logo {
        margin-top: -64px;
        margin-bottom: 4px;
    }

    .sidebar-section {
        margin-bottom: 18px;
    }

    .sidebar-section-title {
        padding-bottom: 6px;
    }

    .sidebar-footer {
        padding: 10px 0;
    }

    .sidebar-footer p {
        padding-top: 8px !important;
        padding-bottom: 4px !important;
    }
}

/* Низкая высота: ещё плотнее отступы, кнопки те же */
@media (min-width: 769px) and (max-height: 820px) {
    .sidebar {
        padding: 12px 0 6px;
    }

    .logo {
        margin-top: -52px;
        margin-bottom: 2px;
    }

    .sidebar .logo img {
        width: 170px !important;
        top: 28px !important;
    }

    .sidebar-section {
        margin-bottom: 12px;
    }

    .sidebar-section-title {
        padding-bottom: 4px;
        padding-top: 0;
    }

    .sidebar-footer {
        padding: 6px 0;
    }
}

/* Очень низкая высота */
@media (min-width: 769px) and (max-height: 720px) {
    .sidebar {
        padding: 8px 0 4px;
    }

    .logo {
        margin-top: -40px;
        margin-bottom: 0;
    }

    .sidebar .logo img {
        width: 150px !important;
        top: 22px !important;
    }

    .sidebar-section {
        margin-bottom: 8px;
    }

    .sidebar-footer {
        padding: 4px 0;
    }
}
        /* ===================== Основная часть ===================== */
        .main-content {
            flex: 1;
            margin-left: 280px;
            padding: 32px 40px;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
        }

        .welcome {
            font-size: 1.8rem;
            font-weight: 600;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.2rem;
        }

        /* Карточки */
        .card {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 28px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.06);
            margin-bottom: 28px;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
            gap: 28px;
        }

        /* Следующий урок */
        .next-lesson {
            background: linear-gradient(135deg, #5e17eb, #7b3dff);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .next-lesson::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -30%;
            width: 200px;
            height: 200px;
            background: rgba(255,255,255,0.15);
            border-radius: 50%;
        }

        /* Прогресс */
        .progress-circle {
            width: 110px;
            height: 110px;
            border-radius: 50%;
            background: conic-gradient(var(--primary) 0% 68%, #e5e5e5 68% 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .progress-inner {
            width: 88px;
            height: 88px;
            background: white;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        /* Адаптив */
        @media (max-width: 992px) {
            .sidebar { width: 240px; }
            .main-content { margin-left: 240px; }
        }

        @media (max-width: 768px) {
            .dashboard { flex-direction: column; }
            .sidebar { position: relative; width: 100%; height: auto; }
            .main-content { margin-left: 0; }
            .grid { grid-template-columns: 1fr; }
        }

        /* Выпадающее меню пользователя */
.user-info {
    position: relative;
    cursor: pointer;
}
/* ===================== Выпадающее меню пользователя ===================== */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(82, 68, 56, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 260px;
    padding: 8px 6px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* Пункты меню — делаем в стиле сайдбара */
.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;           /* приближено к сайдбару */
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;           /* тот же размер, что в сайдбаре */
    border-radius: 12px;
    margin: 2px 6px;
    transition: all 0.25s ease;
    width: calc(100% - 12px);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #F5F1EC;
    color: #524438;
    transform: translateX(4px);
}

/* Иконки в выпадайке */
.user-dropdown a span,
.user-dropdown button span {
    font-size: 1.35rem;
    width: 24px;
    text-align: center;
    opacity: 0.85;
}

/* Выход — красный */
.user-dropdown .logout-item {
    color: #e11d48;
    margin-top: 6px;
}

.user-dropdown .logout-item:hover {
    background: #fff1f2;
    color: #e11d48;
}

/* Разделитель */
.user-dropdown hr {
    margin: 8px 12px;
    border: none;
    border-top: 1px solid #f0f0f0;
}

.user-dropdown a:hover span,
.user-dropdown button:hover span {
    color: #524438;
    opacity: 1;
}
/* ===================== ПАГИНАЦИЯ РАСПИСАНИЯ — ЧИСТЫЙ МИНИМАЛИЗМ ===================== */
.schedule-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 48px;
    font-size: 1.05rem;
}

.schedule-pagination button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 10px 16px;
    color: #777;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 12px;
}

.schedule-pagination button:hover {
    color: var(--primary);
    background: rgba(94, 23, 235, 0.06);
    transform: translateX(-2px);
}

.schedule-pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.schedule-pagination button i {
    font-size: 1.35rem;
}

.pagination-center {
    font-weight: 600;
    color: var(--text);
    min-width: 240px;
    text-align: center;
    letter-spacing: -0.2px;
}

.user-dropdown span {
    font-size: 1rem !important;
    font-weight: 500;
}
/* Стили для кнопки "Выйти" */
.logout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none !important;           /* Убираем рамку */
    outline: none;
    color: #ef4444;                    /* Красный цвет */
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-item:hover {
    background: #fee2e2;               /* Светло-красный фон при наведении */
    color: #dc2626;
}

.logout-item svg {
    color: #ef4444;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Колокольчик */
.notification-bell {
    position: relative;
    font-size: 1.45rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    background: #f1f5f9;
    color: #524438;
}

.notification-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Шторка уведомлений */
.notification-panel {
    position: fixed;
    width: 380px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    
    /* Убираем значения по умолчанию */
    top: auto;
    right: auto;
}

.notification-panel.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-header {
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    max-height: 520px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px 22px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f3e8ff;
}


.notif-panel {
    position: fixed;
    z-index: 9999;
    width: 380px;
    max-height: 560px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    /* НЕ ставим overflow: hidden здесь */
    animation: notifFadeIn 0.18s ease;
    box-sizing: border-box;
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin; /* ← тонкий скроллбар, не давит на контент */
}
@keyframes notifFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);     }
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
    border-bottom: 1px solid #f0f0f0;
}
.notif-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
.notif-panel-actions button {
    background: none;
    border: none;
    font-size: 12.5px;
    color: #524438;
    cursor: pointer;
    font-weight: 500;
}

.notif-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/* Последний таб не обрезаем */
.notif-tabs .notif-tab:last-child {
    margin-right: 4px;
}

.notif-tab {
    padding: 5px 12px;
    border: none;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;        /* ← всегда 600, чтобы не было сдвига */
    color: #777;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    /* Фиксируем ширину через псевдоэлемент */
    position: relative;
}

.notif-tab.active {
    background: #EDE8E0;
    color: #524438;
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    transition: background 0.12s;
}
.notif-item:hover { background: #f9f9f9; }
.notif-item.notif-unread { background: #FAF8F5; }
.notif-item.notif-unread:hover { background: #F5F1EC; }

.notif-icon-wrap {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.notif-body { flex: 1; min-width: 0; }
.notif-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-message {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}
.notif-label {
    font-size: 11px;
    font-weight: 600;
}
.notif-time {
    font-size: 11px;
    color: #aaa;
}

.notif-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.notif-item:hover .notif-actions { opacity: 1; }
.notif-btn-read, .notif-btn-del {
    width: 26px; height: 26px;
    border: none;
    border-radius: 6px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    transition: background 0.12s;
}
.notif-btn-read:hover { background: #d1fae5; color: #065f46; }
.notif-btn-del:hover  { background: #fee2e2; color: #991b1b; }

.notif-dot {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
}

.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 14px;
}
.notif-loading {
    text-align: center;
    padding: 30px;
    color: #aaa;
    font-size: 14px;
}

.notif-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}
.notif-footer button {
    background: none;
    border: none;
    color: #524438;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.notification-bell.active .fa-bell {
    color: #524438;
}

/* ===== МОДАЛКА УВЕДОМЛЕНИЯ ===== */
#notif-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
}

.notif-modal-box {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notif-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.notif-modal-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.notif-modal-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-modal-label {
    font-size: 12px;
    font-weight: 600;
}

.notif-modal-time {
    font-size: 11px;
    color: #aaa;
}

.notif-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.notif-modal-close:hover { background: #ebebeb; color: #333; }

.notif-modal-content {
    padding: 20px;
}

.notif-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.35;
}

.notif-modal-message {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
}

.notif-modal-sender {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

.notif-modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.notif-modal-btn-primary {
    flex: 1;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
}
.notif-modal-btn-primary:hover { filter: brightness(0.9); }

.notif-modal-btn-ghost {
    padding: 12px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: background 0.15s;
}
.notif-modal-btn-ghost:hover { background: #ebebeb; }

/* Анимация стека тостов */
#notif-toast-container .notif-toast:not(:last-child) {
    filter: brightness(0.97);
}

/* Hover эффект */
.notif-toast:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.18) !important;
    transform: translateX(-4px) !important;
}

.notif-panel {
    position: fixed;
    z-index: 9999;
    width: 380px;
    max-height: 560px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    /* НЕ ставим overflow: hidden здесь */
    animation: notifFadeIn 0.18s ease;
    box-sizing: border-box;
}

/* Скругление углов делаем только на первом и последнем дочернем */
.notif-panel-header {
    border-radius: 20px 20px 0 0;
}

.notif-footer {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    min-height: 0; /* ← важно для flex */
}

.notif-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 12px 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    overflow-x: visible; /* ← меняем на visible */
    flex-wrap: nowrap;
    scrollbar-width: none;
}


/* Логотип: нельзя выделить, перетащить, открыть как картинку */
.logo img,
.logo-wrapper img,
.sidebar .logo img,
.sidebar img[src*="logo"] {
    filter: brightness(0) invert(1);
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* ===================== ТОСТЫ (iOS Glass) — глобальные ===================== */
.toast-container {
    position: fixed;
    top: 28px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    padding: 15px 20px;
    box-shadow: 0 25px 35px -10px rgba(0,0,0,0.12), 0 8px 15px -5px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 270px;
    max-width: 380px;
    opacity: 0;
    transform: translateY(-40px) scale(0.92);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    font-size: 15.5px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.45;
}

.custom-toast.success {
    background: rgba(240, 253, 244, 0.78);
    border: 1px solid rgba(134, 239, 172, 0.4);
}
.custom-toast.error {
    background: rgba(254, 242, 242, 0.78);
    border: 1px solid rgba(248, 113, 113, 0.35);
}
.custom-toast.warning {
    background: rgba(254, 249, 195, 0.78);
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.custom-toast i {
    font-size: 1.4rem;
    width: 26px;
    flex-shrink: 0;
}
.custom-toast.success i { color: #4ade80; }
.custom-toast.error i   { color: #f87171; }
.custom-toast.warning i { color: #facc15; }

.custom-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.custom-toast.hide {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.35s ease;
}

/* Убираем старые уведомления */
.custom-notification { display: none !important; }

@media (max-width: 640px) {
    .toast-container { top: 16px; right: 16px; left: 16px; }
    .custom-toast { min-width: auto; max-width: none; }
}

