/* ============================================================
   УСТЬ-ЛАМЕНКА 2.0 — ЕДИНЫЙ СТИЛЕВОЙ ФАЙЛ
   Полная совместимость с базой, картой, историей и архивом.
   ============================================================ */

:root {
    --primary: #0C3B2E;    /* Лесной зеленый */
    --primary-rgb: 12, 59, 46;
    --accent: #BB8A52;     /* Бронза */
    --accent-gold: #FFBA00;
    --bg: #FDFBF7;         /* Бумага */
    --white: #FFFFFF;
    --text: #1A1A1A;
    --border: rgba(12, 59, 46, 0.15);
    --font-main: 'Golos Text', sans-serif;
    --font-title: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- 1. ГЛОБАЛЬНЫЙ СБРОС --- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; height: 100%; }
body { font-family: var(--font-main); background: var(--bg); color: var(--text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
.ust-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ust-divider { width: 60px; height: 3px; background: var(--accent); margin: 20px 0; }
.ust-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; background: var(--primary); color: var(--white); border: none; font-family: var(--font-main); font-weight: 600; text-transform: uppercase; cursor: pointer; transition: var(--transition); text-decoration: none; font-size: 0.8rem; letter-spacing: 1px; }
.ust-btn:hover { background: var(--accent); transform: translateY(-2px); }
.ust-btn.btn-secondary { background: transparent; border: 1px solid var(--white); }

/* --- 2. ШАПКА И МОБИЛЬНОЕ МЕНЮ --- */
.ust-navbar { background: var(--primary); height: 80px; position: sticky; top: 0; z-index: 2500; display: flex; align-items: center; border-bottom: 3px solid var(--accent-gold); }
.ust-nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.ust-logo { color: var(--white); font-family: var(--font-title); font-size: 1.4rem; font-weight: 900; text-decoration: none; letter-spacing: 1px; }
.ust-nav-links { display: none; gap: 25px; } /* Скрыто на мобилках */
.ust-nav-links a { color: var(--white); text-decoration: none; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; transition: 0.3s; }
.ust-nav-links a:hover, .ust-nav-links a.active { color: var(--accent-gold); }

.ust-burger { background: none; border: none; width: 30px; height: 20px; position: relative; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.ust-burger span { display: block; width: 100%; height: 2px; background: var(--white); transition: 0.3s; }
.ust-burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.ust-burger.active span:nth-child(2) { transform: rotate(-45deg); }

.ust-mobile-overlay { position: fixed; top: 80px; left: 0; width: 100%; height: 0; background: var(--primary); overflow: hidden; transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: 2400; }
.ust-mobile-overlay.active { height: calc(100vh - 80px); }
.ust-mobile-links { display: flex; flex-direction: column; padding: 40px 20px; gap: 20px; }
.ust-mobile-links a { color: var(--white); font-size: 1.5rem; font-family: var(--font-title); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

/* --- 3. ГЛАВНАЯ (INDEX) --- */
.ust-hero { height: 80vh; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; color: var(--white); }
.hero-wrapper { position: relative; z-index: 2; }
.hero-label { font-family: var(--font-mono); color: var(--accent-gold); font-size: 0.7rem; margin-bottom: 10px; }
.hero-title { font-size: clamp(2.5rem, 8vw, 5rem); margin-bottom: 20px; }
.hero-subtitle { font-size: 1.1rem; max-width: 600px; margin-bottom: 30px; }

.ust-about { padding: 80px 0; }
.about-grid { display: grid; gap: 50px; grid-template-columns: 1fr; }
.section-heading { font-size: 2.2rem; color: var(--primary); }
.stats-card { background: var(--primary); color: white; padding: 40px; display: grid; gap: 30px; }
.stat-num { display: block; font-size: 2.5rem; font-weight: 800; color: var(--accent-gold); font-family: var(--font-title); }
.stat-label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; opacity: 0.8; }

.hub-grid { display: grid; gap: 20px; margin-top: 40px; }
.hub-card { background: white; border: 1px solid var(--border); padding: 30px; text-decoration: none; color: inherit; transition: var(--transition); }
.hub-card:hover { border-color: var(--accent); transform: translateY(-10px); }
.hub-icon { font-size: 2.5rem; margin-bottom: 15px; }

/* --- 4. КАРТА И САЙДБАР --- */
.ust-map-page { position: relative; height: calc(100vh - 80px); width: 100%; overflow: hidden; }
.ust-map-canvas { width: 100%; height: 100%; }
.ust-map-ui { position: absolute; top: 20px; left: 20px; z-index: 100; width: 260px; }
.ust-filter-box { background: rgba(253, 251, 247, 0.95); padding: 20px; border: 1px solid var(--accent); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.filter-label-mono { font-family: var(--font-mono); font-size: 0.6rem; color: var(--accent); margin-bottom: 15px; }
.filter-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.85rem; cursor: pointer; }

/* Сайдбар / Bottom Sheet */
.ust-map-sidebar { position: fixed; bottom: -100%; left: 0; width: 100%; height: 85vh; background: var(--bg); z-index: 2600; transition: var(--transition); border-radius: 20px 20px 0 0; box-shadow: 0 -15px 40px rgba(0,0,0,0.2); display: flex; flex-direction: column; }
.ust-map-sidebar.active { bottom: 0; }
.sidebar-close { position: absolute; top: 15px; right: 20px; background: var(--primary); color: white; border: none; width: 36px; height: 36px; border-radius: 50%; z-index: 10; cursor: pointer; }
.sidebar-drag-handle { width: 40px; height: 4px; background: #ddd; margin: 12px auto; border-radius: 2px; }
.sidebar-body { flex: 1; overflow-y: auto; }

/* Слайдер Было/Стало */
.compare-container { position: relative; width: 100%; height: 280px; overflow: hidden; background: #000; }
.compare-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.compare-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#side-img-then-wrap { width: 50%; z-index: 2; border-right: 2px solid var(--accent); overflow: hidden; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--accent); z-index: 3; transform: translateX(-50%); cursor: ew-resize; }
.handle-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; background: var(--accent); border: 3px solid white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: bold; }

.sidebar-content { padding: 25px; }
.location-tag { display: inline-block; padding: 4px 10px; background: rgba(187, 138, 82, 0.15); color: var(--accent); font-family: var(--font-mono); font-size: 0.65rem; font-weight: bold; margin-bottom: 10px; }
.location-title { font-size: 1.6rem; color: var(--primary); font-family: var(--font-title); }

/* --- 5. ТАЙМЛАЙН (HISTORY) --- */
.ust-timeline { padding: 60px 0; }
.timeline-wrapper { position: relative; padding-left: 30px; }
.timeline-wrapper::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: 0.3; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot { position: absolute; left: -39px; top: 5px; width: 16px; height: 16px; background: var(--accent); border-radius: 50%; border: 4px solid var(--bg); z-index: 2; }
.timeline-date { font-family: var(--font-title); font-size: 1.4rem; color: var(--accent); font-weight: 800; }
.timeline-card { background: white; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-radius: 8px; border-left: 4px solid var(--primary); }
.timeline-img { width: 100%; border-radius: 4px; margin-bottom: 15px; }

/* --- 6. АРХИВ (GALLERY) --- */
.archive-filters-section { padding: 10px 0; background: white; border-bottom: 1px solid #eee; position: sticky; top: 80px; z-index: 100; }
.filters-scroll-wrapper { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.filters-scroll-wrapper::-webkit-scrollbar { display: none; }
.filters-container { display: flex; gap: 10px; }
.filter-btn { padding: 8px 18px; border: 1px solid var(--accent); background: none; color: var(--accent); border-radius: 50px; cursor: pointer; font-size: 0.8rem; font-weight: 600; }
.filter-btn.active { background: var(--accent); color: white; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; padding: 30px 0; }
.archive-item { background: white; border: 1px solid #eee; padding: 8px; cursor: pointer; }
.archive-item-frame { position: relative; aspect-ratio: 1; overflow: hidden; background: #f0f0f0; }
.archive-item-frame img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.2); }
.archive-item-year { position: absolute; bottom: 5px; right: 5px; background: var(--primary); color: white; font-size: 0.6rem; padding: 2px 6px; font-family: var(--font-mono); }

/* --- 7. ПОДВАЛ (FOOTER) --- */
.ust-footer { background: var(--primary); color: white; padding: 40px 0; margin-top: auto; }
.ust-footer-grid { text-align: center; display: flex; flex-direction: column; gap: 20px; }
.ust-admin-link { color: inherit; text-decoration: none; opacity: 0.4; cursor: default; }

/* ============================================================
   АДАПТАЦИЯ ДЛЯ ПК (МЕДИА-ЗАПРОСЫ)
   ============================================================ */
@media (min-width: 1024px) {
    .ust-nav-links { display: flex; }
    .ust-burger { display: none; }
    .about-grid { grid-template-columns: 1.2fr 0.8fr; }
    .hub-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* Карта на ПК: Сайдбар справа */
    .ust-map-sidebar { top: 80px; right: -450px; bottom: auto; left: auto; width: 450px; height: calc(100vh - 80px); border-radius: 0; border-left: 2px solid var(--accent); }
    .ust-map-sidebar.active { right: 0; }
    
    /* Таймлайн шахматкой */
    .timeline-wrapper { padding-left: 0; }
    .timeline-wrapper::before { left: 50%; margin-left: -1px; }
    .timeline-item { width: 50%; padding: 0 40px; }
    .timeline-item.left { text-align: right; margin-right: auto; }
    .timeline-item.right { margin-left: auto; }
    .timeline-dot { left: 50%; margin-left: -8px; }
    
    .archive-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .ust-footer-grid { flex-direction: row; justify-content: space-between; text-align: left; }
}


/* --- 8. ЛАЙТБОКС (ДЛЯ АРХИВА) --- */
.ust-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    z-index: 5000; display: none; padding: 20px;
    backdrop-filter: blur(10px);
}
.ust-lightbox.active { display: flex; flex-direction: column; }

.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    background: var(--primary); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10;
}

.lightbox-content {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 30px;
}

.lightbox-img-side img {
    max-height: 50vh; max-width: 100%; object-fit: contain;
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-text-side { color: white; max-width: 600px; }
.lb-tag { 
    font-family: var(--font-mono); font-size: 0.6rem; 
    background: var(--accent); padding: 3px 8px; margin-right: 10px;
}
.lb-title { font-size: 1.5rem; margin: 15px 0; font-family: var(--font-title); }
.lb-desc { opacity: 0.8; font-size: 0.9rem; line-height: 1.6; }

/* --- 9. СТРАНИЦА ЛОКАЦИИ (ДОПОЛНЕНИЕ) --- */
.location-hero {
    height: 40vh; display: flex; align-items: center;
    background-size: cover; background-position: center;
    position: relative; color: white; text-align: center;
}
.location-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(12,59,46,0.4), var(--primary));
}
.location-hero-content { position: relative; z-index: 2; width: 100%; }

.location-main-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }

.location-fact-card {
    background: white; border: 1px solid var(--border);
    padding: 25px; border-radius: var(--radius);
}
.fact-header { 
    font-family: var(--font-mono); font-size: 0.6rem; 
    color: var(--accent); text-transform: uppercase; margin-top: 15px;
}
.fact-value { font-weight: 700; color: var(--primary); }

.location-comments { margin-top: 40px; }
.comments-container { margin: 20px 0; display: grid; gap: 15px; }
.comment-card { 
    background: #f0f0f0; padding: 15px; border-radius: 4px;
    font-size: 0.9rem; border-left: 3px solid var(--accent);
}

/* --- 10. АДМИН-ИНТЕРФЕЙС (ПОДСВЕТКА) --- */
{% if current_user.is_authenticated and current_user.is_admin %}
.editable-field {
    cursor: pointer; position: relative; transition: 0.3s;
}
.editable-field:hover {
    background: rgba(187, 138, 82, 0.1);
    outline: 1px dashed var(--accent);
}
.admin-edit-btn {
    background: var(--accent); color: white; border: none;
    padding: 4px 10px; font-family: var(--font-mono);
    font-size: 0.6rem; cursor: pointer; margin-top: 10px;
}
{% endif %}

/* --- ПК АДАПТАЦИЯ ДЛЯ LIGHTBOX --- */
@media (min-width: 1024px) {
    .lightbox-content { flex-direction: row; padding: 0 10%; }
    .lightbox-img-side img { max-height: 80vh; }
    .location-main-grid { grid-template-columns: 1.5fr 1fr; }
}

/* --- 11. СТИЛИ СТРАНИЦЫ 404 --- */
.ust-404-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
}

.error-label-mono {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.error-main-content {
    max-width: 700px;
    margin: 0 auto;
}

.error-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--primary);
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.error-description {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 3rem;
    opacity: 0.8;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Декоративный штамп в углу */
.error-stamp-seal {
    position: absolute;
    bottom: 40px;
    right: 40px;
    border: 3px double var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    transform: rotate(-15deg);
    opacity: 0.2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .error-title { font-size: 3rem; }
    .error-description { font-size: 1rem; }
    .error-actions .ust-btn { width: 100%; }
}


/* --- 12. ПАНЕЛЬ УПРАВЛЕНИЯ (ADMIN) --- */
.ust-admin-page {
    padding: 40px 0 100px;
    background-color: var(--bg);
    min-height: calc(100vh - 80px);
}

.admin-header { margin-bottom: 40px; }
.admin-id-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    margin-bottom: 10px;
}
.admin-page-title { font-size: 2.2rem; color: var(--primary); }

/* Вкладки (Tabs) */
.admin-tabs {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary);
    scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 12px 25px;
    background: #eee;
    border: none;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    color: var(--text-muted);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

/* Карточки админки */
.admin-card {
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.admin-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.admin-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

/* Формы */
.admin-form { display: grid; gap: 20px; }
.admin-form input, 
.admin-form select, 
.admin-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-family: var(--font-main);
    font-size: 0.95rem;
    background: #fafafa;
}

.admin-form textarea { min-height: 120px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.file-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #f0f0f0;
    padding: 20px;
    border-radius: 4px;
}

.file-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    margin-bottom: 8px;
    color: var(--primary);
}

/* Таблицы реестра */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 12px;
    background: #f4f4f4;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.era-tag {
    font-size: 0.7rem;
    background: #e8e8e8;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.btn-del {
    background: none;
    border: 1px solid #ff4444;
    color: #ff4444;
    width: 28px; height: 28px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-del:hover { background: #ff4444; color: white; }

/* Уведомления */
.notif-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    margin-left: 5px;
}

/* Секции (скрытие/показ) */
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .form-row, .file-inputs { grid-template-columns: 1fr; }
    .admin-card { padding: 20px; }
}

/* --- 13. ДОПОЛНЕНИЯ ДЛЯ ПРОФЕССИОНАЛЬНОЙ АДМИНКИ --- */

/* Карта-выбиратор в админке */
.admin-map-picker {
    height: 400px;
    width: 100%;
    border: 2px solid var(--primary);
    background-color: #eee;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

/* Панель инструментов редактора (Rich Text) */
.rich-toolbar {
    background: #f4f4f4;
    padding: 8px;
    border: 1px solid #ddd;
    border-bottom: none;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.rich-toolbar .tool-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    transition: 0.2s;
}

.rich-toolbar .tool-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Поле редактора */
#rich-editor {
    min-height: 250px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    line-height: 1.7;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
}

#rich-editor:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(187, 138, 82, 0.1);
}

/* Сетка загрузки файлов 10+10 */
.file-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
}

.file-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Подписи к слайдеру на странице локации */
.compare-labels {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Блок аудиогида */
.loc-audio-block {
    background: var(--primary);
    color: white;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: var(--radius);
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-icon { font-size: 1.5rem; }
.audio-label { font-weight: 700; font-size: 0.9rem; }
.audio-sub { font-size: 0.7rem; opacity: 0.7; font-family: var(--font-mono); }

/* Адаптация для мобилок */
@media (max-width: 600px) {
    .file-inputs-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-map-picker {
        height: 300px;
    }
}


/* --- 14. СИСТЕМА УВЕДОМЛЕНИЙ И МОДАЛЬНЫХ ОКОН --- */

/* Фон затемнения */
.ust-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 22, 18, 0.9); /* Глубокий хвойный полупрозрачный */
    z-index: 9999;
    display: none; /* Скрыто по умолчанию */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 20px;
}

/* Окно активно */
.ust-modal-overlay.active {
    display: flex;
}

/* Само окно */
.ust-modal {
    background: var(--bg);
    border: 2px solid var(--primary);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.ust-modal-stamp {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ust-modal h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.ust-modal p {
    color: var(--text);
    margin-bottom: 30px;
    font-size: 1rem;
}

.ust-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Всплывающие уведомления (Toasts) */
.ust-toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ust-toast {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-left: 5px solid var(--accent-gold);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: toastSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.ust-toast.error {
    border-left-color: #ff4444;
}

.ust-toast.fade-out {
    animation: toastFadeOut 0.5s forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
    to { transform: translateX(100%); opacity: 0; }
}

/* Исправление кнопки "Скрыть/Показать" */
.btn-admin-tool {
    font-size: 0.65rem !important;
    padding: 8px 15px !important;
    background: var(--primary) !important;
    color: var(--white) !important; /* Белый текст на зеленом */
    border: 1px solid var(--accent-gold) !important;
}

.btn-admin-tool:hover {
    background: var(--accent) !important;
    color: var(--white) !important;
}

/* Адаптация для мобильных модалок */
@media (max-width: 600px) {
    .ust-modal { padding: 30px 20px; }
    .ust-modal-actions { flex-direction: column; }
    .ust-modal-actions .ust-btn { width: 100%; }
}