@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== ПЕРЕМЕННЫЕ ДЛЯ ТЕМ ===== */
:root {
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-display: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #444;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
    --bg-hero: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --bg-footer: #0f2027;
    --badge-light: #f8f9fa;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --header-height: 56px;
}

[data-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-sidebar: #1e1e1e;
    --bg-display: #1e1e1e;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --border-color: #333;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.5);
    --bg-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    --bg-footer: #0a0a0a;
    --badge-light: #2a2a2a;
    --input-bg: #2a2a2a;
    --input-border: #444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    padding-top: var(--header-height);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: #2c5364;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ===== */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.theme-toggle:hover { transform: scale(1.05); }
.theme-toggle .icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.theme-toggle .icon.active { background: #2c5364; color: white; }

/* ===== ШАПКА (УМЕНЬШЕНА НА 10px) ===== */
.hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: white;
    padding: 10px 0 14px;  /* было 15px 0 20px → уменьшено на 5-6px */
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 0.2;
}
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 2px; }  /* уменьшен отступ */
.hero-subtitle { font-size: 1rem; opacity: 0.9; margin-bottom: 2px; }  /* уменьшен отступ */

/* ===== КАРУСЕЛЬ — ФИКСИРОВАННЫЕ ОКНА ===== */
.carousel-multi {
    padding: 6px 0;  /* было 10px → уменьшено */
    overflow: hidden;
}

.carousel-multi-inner {
    overflow: hidden;
    position: relative;
}

.carousel-multi-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-height: 210px;  /* было 220px → уменьшено */
    padding: 6px 0;  /* было 10px → уменьшено */
    position: relative;
}

.carousel-window {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3);
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    cursor: pointer;
}
.carousel-window:hover {
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.02);
}
.carousel-window.center {
    width: 280px;
    height: 175px;  /* было 180px → уменьшено */
    border-color: rgba(255,255,255,0.4);
    border-width: 3px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.carousel-window.side {
    width: 160px;
    height: 100px;  /* было 105px → уменьшено */
}
.carousel-window.edge {
    width: 110px;
    height: 70px;  /* было 75px → уменьшено */
}

.carousel-window .carousel-multi-item {
    width: 100%;
    height: 100%;
    position: relative;
    display: block !important;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.carousel-window:nth-child(1) .carousel-multi-item { animation-delay: 0s; }
.carousel-window:nth-child(2) .carousel-multi-item { animation-delay: 0.15s; }
.carousel-window:nth-child(3) .carousel-multi-item { animation-delay: 0.3s; }
.carousel-window:nth-child(4) .carousel-multi-item { animation-delay: 0.45s; }
.carousel-window:nth-child(5) .carousel-multi-item { animation-delay: 0.6s; }

.carousel-window .carousel-multi-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-window .carousel-multi-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.3);
    font-size: 1.5rem;
}

/* ===== БАННЕР ===== */
.ad-banner {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 6px 14px;  /* было 8px 16px → уменьшено */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    flex-wrap: wrap;
    gap: 6px;  /* было 8px → уменьшено */
    font-size: 0.85rem;
}
.ad-banner i { font-size: 1.1rem; }  /* было 1.2rem → уменьшено */

/* ===== ОСТАЛЬНЫЕ СТИЛИ ===== */
.main-section { background: var(--bg-body); min-height: calc(100vh - 160px); transition: background 0.3s ease; }

.sidebar-card {
    background: var(--bg-sidebar);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: auto;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.sw-block {
    height: auto !important;
    align-self: flex-start;
}

.subscribe-block {
    background: var(--badge-light);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border 0.3s ease;
}
.subscribe-block h6 { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.subscribe-block .form-control-sm {
    font-size: 0.8rem;
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}
.subscribe-block .alert-sm { font-size: 0.75rem; padding: 4px 8px; margin-bottom: 6px; }

.search-area .form-control:focus {
    border-color: #2c5364;
    box-shadow: 0 0 0 0.2rem rgba(44, 83, 100, 0.15);
}
.search-area .form-control {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

.filter-btn {
    font-size: 0.75rem;
    padding: 4px 12px;
    transition: all 0.2s;
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
}
.filter-btn.active { background: #2c5364; color: white; border-color: #2c5364; }
.filter-btn:hover { transform: scale(1.05); }

.content-list {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 12px;
}
.content-list::-webkit-scrollbar { width: 4px; }
.content-list::-webkit-scrollbar-thumb { background: #c1c7cd; border-radius: 4px; }
[data-theme="dark"] .content-list::-webkit-scrollbar-thumb { background: #444; }

.content-item {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin-bottom: 4px;
    background: var(--bg-card);
}
.content-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
    border-left-color: #2c5364;
}
.content-item.active { background: var(--badge-light); border-left-color: #2c5364; }
.content-item .item-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.content-item .item-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

.content-display {
    background: var(--bg-display);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    min-height: 500px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.display-title { font-weight: 700; font-size: 1.6rem; color: var(--text-primary); }
.display-body { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); white-space: pre-wrap; }

.page-header {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: white;
    padding: 40px 0 30px;
    transition: background 0.3s ease;
}

.gallery-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%;
}
.gallery-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.gallery-icon { font-size: 2.5rem; color: #2c5364; margin-bottom: 12px; }
.gallery-title { font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.gallery-meta { margin-top: 10px; color: var(--text-muted); }

.about-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card {
    background: var(--badge-light);
    border-radius: 16px;
    padding: 20px 16px;
    transition: all 0.3s ease;
    height: 100%;
}
.benefit-card:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
.benefit-card h5 { color: var(--text-primary); }
.benefit-card .text-muted { color: var(--text-muted) !important; }

.footer {
    background: var(--bg-footer);
    color: #bbb;
    padding: 30px 0 15px;
    margin-top: 30px;
    transition: background 0.3s ease;
}
.footer h5 { color: white; font-size: 0.95rem; }
.footer a:hover { color: white !important; }

.modal-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.modal-header { border-bottom-color: var(--border-color); }
.modal-footer { border-top-color: var(--border-color); }
.modal .form-control {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}
.modal .form-label { color: var(--text-primary); }
.modal .text-muted { color: var(--text-muted) !important; }

/* ===== КОММЕНТАРИИ ===== */
.comments-section {
    border-top-color: var(--border-color) !important;
}
.comment-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}
.comment-item:hover {
    border-color: var(--text-muted);
}
.comment-author {
    color: var(--text-primary);
    font-size: 0.95rem;
}
.comment-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 4px 0 6px;
    word-wrap: break-word;
}
.comment-actions .btn {
    font-size: 0.75rem;
    padding: 2px 8px;
}
.comment-actions .btn .vote-count {
    font-weight: 600;
}
.comment-rating {
    font-size: 0.7rem;
    padding: 2px 8px;
}
.reply-form-container {
    background: var(--badge-light);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid var(--border-color);
}
.replies-list {
    border-left: 2px solid var(--border-color);
    padding-left: 12px;
}
.comment-delete-btn {
    font-size: 0.7rem;
    padding: 2px 6px;
}
.comment-form textarea {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}
.comment-form textarea:focus {
    border-color: #2c5364;
    box-shadow: 0 0 0 0.2rem rgba(44, 83, 100, 0.15);
}

/* ============================================================ */
/* ===== АДАПТИВНАЯ ВЕРСТКА ===== */
/* ============================================================ */

/* ===== ПЛАНШЕТЫ (до 992px) ===== */
@media (max-width: 992px) {
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .content-display { min-height: 300px; }
    .sidebar-card { margin-bottom: 20px; }
    
    /* Карусель */
    .carousel-window.center { width: 200px; height: 125px; }
    .carousel-window.side { width: 120px; height: 75px; }
    .carousel-window.edge { width: 80px; height: 50px; }
    .carousel-multi-wrapper { gap: 12px; min-height: 150px; }
}

/* ===== МОБИЛЬНЫЕ (до 768px) ===== */
@media (max-width: 768px) {
    /* Шапка */
    .hero { padding: 8px 0 10px; }
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: 0.85rem; }
    
    /* Контент */
    .content-display { padding: 15px; min-height: 200px; }
    .display-title { font-size: 1.2rem; }
    
    /* Баннер */
    .ad-banner { font-size: 0.75rem; padding: 4px 10px; flex-wrap: wrap; }
    .ad-banner i { font-size: 0.9rem; }
    .ad-banner .btn-sm { font-size: 0.65rem; padding: 2px 8px; }
    
    /* Карусель */
    .carousel-window.center { width: 155px; height: 100px; }
    .carousel-window.side { width: 95px; height: 60px; }
    .carousel-window.edge { width: 65px; height: 40px; }
    .carousel-multi-wrapper { gap: 8px; min-height: 115px; }
    
    /* Переключатель темы */
    .theme-toggle { font-size: 0.7rem; padding: 2px 6px; }
    .theme-toggle .icon { width: 22px; height: 22px; font-size: 0.7rem; }
    
    /* Меню */
    .navbar-brand { font-size: 1rem; }
    .navbar-nav .nav-link { font-size: 0.9rem; padding: 0.5rem 0.75rem; }
    
    /* Список контента */
    .content-item { padding: 8px 10px; }
    .content-item .item-title { font-size: 0.8rem; }
    .content-item .item-meta { font-size: 0.6rem; }
    
    /* Категории */
    .filter-btn { font-size: 0.65rem; padding: 3px 8px; }
    
    /* Подвал */
    .footer .col-md-4 { margin-bottom: 15px !important; }
    .footer h5 { font-size: 0.85rem; }
    
    /* Страницы */
    .page-header { padding: 25px 0 20px; }
    .page-header h1 { font-size: 1.5rem; }
    
    /* Галерея */
    .gallery-card { padding: 15px; }
    .gallery-title { font-size: 0.9rem; }
    
    /* О нас */
    .about-content { padding: 20px; }
    .benefit-card { padding: 15px; }
    .benefit-card h5 { font-size: 0.9rem; }
    
    /* Комментарии */
    .comment-item { padding: 10px 12px; }
    .comment-author { font-size: 0.85rem; }
    .comment-text { font-size: 0.85rem; }
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 576px) ===== */
@media (max-width: 576px) {
    /* Шапка */
    .hero-title { font-size: 1.1rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .hero { padding: 6px 0 8px; }
    
    /* Карусель */
    .carousel-window.center { width: 115px; height: 75px; }
    .carousel-window.side { width: 70px; height: 45px; }
    .carousel-window.edge { width: 45px; height: 30px; }
    .carousel-multi-wrapper { gap: 5px; min-height: 85px; }
    .carousel-window .carousel-multi-placeholder { font-size: 1rem; }
    
    /* Баннер */
    .ad-banner { font-size: 0.65rem; padding: 3px 6px; }
    .ad-banner .btn-sm { font-size: 0.55rem; padding: 1px 6px; }
    .ad-banner i { font-size: 0.8rem; }
    
    /* Контент */
    .content-display { padding: 12px; }
    .display-title { font-size: 1rem; }
    .display-body { font-size: 0.85rem; }
    .display-meta { font-size: 0.7rem !important; }
    
    /* Сайдбар */
    .sidebar-card { padding: 12px; }
    .subscribe-block { padding: 10px; }
    .subscribe-block h6 { font-size: 0.8rem; }
    
    /* Список */
    .content-list { max-height: 300px; }
    .content-item { padding: 6px 8px; }
    .content-item .item-title { font-size: 0.75rem; }
    
    /* Модалки */
    .modal-body { padding: 15px; }
    .modal .form-control { font-size: 0.85rem; }
    
    /* Кнопки */
    .btn-sm { font-size: 0.7rem; padding: 3px 8px; }
    .btn-group-sm .btn { font-size: 0.65rem; padding: 2px 6px; }
    
    /* Подвал */
    .footer { padding: 20px 0 10px; }
    .footer h5 { font-size: 0.8rem; }
    .footer .list-unstyled { font-size: 0.75rem; }
    
    /* Админ-панель */
    .table-responsive { font-size: 0.75rem; }
    .table td, .table th { padding: 4px 6px; }
    .stats-card { padding: 12px; }
    .stats-card h3 { font-size: 1.3rem; }
    .stats-card p { font-size: 0.7rem; }
    code { font-size: 0.6rem !important; }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 400px) ===== */
@media (max-width: 400px) {
    .hero-title { font-size: 0.95rem; }
    .hero-subtitle { font-size: 0.7rem; }
    
    .carousel-window.center { width: 85px; height: 55px; }
    .carousel-window.side { width: 55px; height: 35px; }
    .carousel-window.edge { width: 35px; height: 25px; }
    .carousel-multi-wrapper { gap: 4px; min-height: 65px; }
    
    .ad-banner { font-size: 0.55rem; padding: 2px 4px; }
    .ad-banner .btn-sm { font-size: 0.5rem; padding: 1px 4px; }
    
    .display-title { font-size: 0.9rem; }
    .display-body { font-size: 0.8rem; }
    
    .content-item .item-title { font-size: 0.7rem; }
    
    .btn-sm { font-size: 0.6rem; padding: 2px 6px; }
}

/* ===== ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА ДЛЯ ТАБЛИЦ В АДМИНКЕ ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive table {
    min-width: 600px;
}

/* ===== УЛУЧШЕНИЯ ДЛЯ КАРУСЕЛИ НА МОБИЛЬНЫХ ===== */
@media (max-width: 576px) {
    .carousel-window {
        border-radius: 6px;
        border-width: 1px;
    }
    .carousel-window.center {
        border-width: 2px;
        border-color: rgba(255,255,255,0.5);
    }
}

/* ===== УЛУЧШЕНИЯ ДЛЯ ФОРМ НА МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px !important; /* Предотвращает зум на iOS */
    }
    .form-select {
        font-size: 16px !important;
    }
}

/* ===== КНОПКИ ДЕЙСТВИЙ В АДМИНКЕ ===== */
@media (max-width: 768px) {
    .btn-group .btn {
        padding: 2px 6px !important;
        font-size: 12px !important;
    }
    .btn-group .btn .fas {
        font-size: 10px !important;
    }
}
/* ===== БЛОК СОЦИАЛЬНЫХ КНОПОК ===== */
.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--badge-light, #f8f9fa);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e9ecef);
    transition: background 0.3s ease, border 0.3s ease;
}

.share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #6c757d);
    white-space: nowrap;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.social-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.social-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    opacity: 0.95;
}

.social-btn-copy {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.social-btn-copy:hover {
    transform: scale(1.15);
}

/* Тёмная тема для блока шаринга */
[data-theme="dark"] .social-share {
    background: #2a2a2a;
    border-color: #444;
}

/* ===== АДАПТИВ: СОЦИАЛЬНЫЕ КНОПКИ ===== */
@media (max-width: 576px) {
    .social-share {
        padding: 10px 12px;
        gap: 6px;
    }
    .social-btn,
    .social-btn-copy {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .share-label {
        font-size: 0.75rem;
        width: 100%;
    }
}

/* ===== КНОПКА "ПОДЕЛИТЬСЯ" В ГАЛЕРЕЕ ===== */
.gallery-share-btn {
    font-size: 0.75rem;
    padding: 3px 8px;
    transition: all 0.2s ease;
}

.gallery-share-menu {
    font-size: 0.85rem;
    min-width: 185px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    border: 1px solid var(--border-color, #e9ecef);
    background: var(--bg-card, #fff);
    color: var(--text-primary, #1a1a2e);
}

.gallery-share-menu .dropdown-item {
    padding: 7px 14px;
    font-size: 0.85rem;
    color: var(--text-primary, #1a1a2e);
    transition: background 0.15s ease;
}

.gallery-share-menu .dropdown-item:hover {
    background: var(--badge-light, #f8f9fa);
}

.gallery-share-menu .dropdown-header {
    color: var(--text-muted, #6c757d);
    font-size: 0.75rem;
    padding: 6px 14px;
}

[data-theme="dark"] .gallery-share-menu {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .gallery-share-menu .dropdown-item {
    color: #e8e8e8;
}

[data-theme="dark"] .gallery-share-menu .dropdown-item:hover {
    background: #333;
}

/* ===== ТОСТ-УВЕДОМЛЕНИЕ ===== */
#galleryToast,
#copyToast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    animation: fadeInUp 0.3s ease forwards;
}
