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

.custom-modal { max-width: 950px; width: 100%; }

        :root {
            --bg-primary: #0b0f19;
            --bg-secondary: #151b2b;
            --bg-card: #1e2538;
            --accent: #3b82f6;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #f1f5f9;
            --text-secondary: #94a3b8;
        }

        body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    min-height: 100vh;
                overflow-x: clip;
}
        .guide-btn-small {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.4);
            transition: all 0.3s ease;
            padding: 8px 12px;
            min-width: 90px;
        }
        .guide-btn-small:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px -3px rgba(59, 130, 246, 0.6);
        }

        .glass-card {
            background: rgba(30, 37, 56, 0.6);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.3s ease;
        }

        .glass-card:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
        }

       /* ── FEEDBACK BUTTON (desktop: над карточкой, mobile: внутри) ── */
.feedback-trigger-btn {
    position: absolute;
    right: 90px;
    top: -15px;          /* ← выше карточки, не перекрывает кнопки */
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(120, 80, 255, 0.4);
    color: #cbd5e1;
    box-shadow: 0 0 12px rgba(120, 80, 255, 0.4), 0 0 24px rgba(80, 120, 255, 0.3);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(8px); /* анимация сверху вниз */
    transition: all 0.25s ease;
    z-index: 20;
    pointer-events: none;
    white-space: nowrap;
}
.project-card-wrapper:hover .feedback-trigger-btn,
.glass-card:hover .feedback-trigger-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.feedback-trigger-btn:hover {
    background: rgba(50, 40, 90, 1);
    border-color: rgba(150, 120, 255, 0.6);
    color: #8ab4ff;
    transform: scale(1.04);
}

/* Mobile: в левом углу карточки, всегда видна */
@media (max-width: 768px) {
    .project-card-wrapper.glass-card { padding-top: 44px !important; }
    .feedback-trigger-btn {
        left: 10px !important; right: auto !important;
        top: 8px !important;
        opacity: 1 !important; transform: none !important;
        pointer-events: auto !important;
        font-size: 11px !important; padding: 5px 10px !important;
    }
    .feedback-trigger-btn:hover { transform: scale(1.03) !important; }
}

        .admin-feedback-btn { position: relative; }
        .admin-feedback-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background: #ef4444;
            color: white;
            font-size: 0.65rem;
            padding: 1px 4px;
            border-radius: 999px;
            font-weight: bold;
            border: 1px solid #1e2538;
        }

        /* ============ ЧАТ (Telegram-style) ============ */
.chat-history {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(15, 20, 35, 0.7);
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble {
    display: flex;
    gap: 8px;
    width: 100%;
    animation: bubblePop 0.25s ease;
}

.chat-bubble.user { justify-content: flex-end; }
.chat-bubble.user .chat-bubble-wrapper { align-items: flex-end; text-align: right; }
.chat-bubble.admin { justify-content: flex-start; }
.chat-bubble.admin .chat-bubble-wrapper { align-items: flex-start; text-align: left; }

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    opacity: 0.9;
    margin-top: auto;
}

.chat-bubble.user .chat-avatar {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.chat-bubble.admin .chat-avatar {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.3);
}

.chat-bubble-wrapper { display: flex; flex-direction: column; max-width: 75%; }

.chat-content {
    padding: 10px 14px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chat-bubble.user .chat-content {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-bubble.admin .chat-content {
    background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.2));
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(139,92,246,0.3);
}

.chat-bubble.user .chat-content::after,
.chat-bubble.admin .chat-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}
.chat-bubble.user .chat-content::after {
    right: -6px;
    border-left-color: #3b82f6;
    border-right: none;
}
.chat-bubble.admin .chat-content::after {
    left: -6px;
    border-right-color: rgba(139,92,246,0.25);
    border-left: none;
}

.chat-sender { font-size: 0.7rem; font-weight: 600; margin-bottom: 4px; color: #94a3b8; }
.chat-time   { font-size: 0.65rem; color: #64748b; margin-top: 3px; }

@keyframes bubblePop {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

        .glass-card.user-completed,
        .glass-card.daily-completed {
            opacity: 0.6;
            border-color: rgba(16, 185, 129, 0.5);
            background: rgba(16, 185, 129, 0.12);
        }
        .glass-card.user-completed:hover,
        .glass-card.daily-completed:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }

        .user-completed-icon {
            position: absolute; top: 10px; right: 10px;
            color: var(--success); font-size: 1.2rem;
            filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
            z-index: 10;
        }
        .daily-check-icon {
            position: absolute; top: 10px; right: 10px;
            color: #10b981; font-size: 1.2rem;
            filter: drop-shadow(0 0 5px rgba(16,185,129,0.5));
            z-index: 10;
        }

        .sidebar-link { transition: all 0.2s; border-left: 3px solid transparent; }
        .sidebar-link:hover, .sidebar-link.active {
            background: rgba(59, 130, 246, 0.1);
            border-left-color: var(--accent);
            color: white;
        }

        .status-active { background: rgba(16, 185, 129, 0.2); color: #34d399; }
        .status-soon   { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
        .status-ended  { background: rgba(239, 68, 68, 0.2);  color: #f87171; }

        .tag {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            font-size: 0.75rem;
            padding: 2px 8px;
            border-radius: 12px;
            color: #60a5fa;
        }

        .new-badge {
            background: linear-gradient(135deg, #ef4444, #f59e0b);
            color: white;
            font-size: 0.65rem;
            font-weight: bold;
            padding: 2px 8px;
            border-radius: 12px;
            animation: pulse 2s infinite;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 100;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal.active { display: flex; }

        .modal-content {
            background: var(--bg-card);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to   { transform: translateY(0); opacity: 1; }
        }

        .modal-large { max-width: 800px; }
        .modal-xl    { max-width: 1000px; }
        .modal-sm    { max-width: 400px; }

        .modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }
        .modal-body {
            padding: 20px 24px;
            overflow-y: auto;
            flex: 1;
            scroll-behavior: smooth;
        }
        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
            background: rgba(11, 15, 25, 0.95);
            backdrop-filter: blur(8px);
            border-radius: 0 0 16px 16px;
        }

        .favorite-btn { transition: all 0.2s; }
        .favorite-btn.active { color: #ef4444; transform: scale(1.1); }
        .favorite-btn:hover  { transform: scale(1.1); }
        .complete-btn { transition: all 0.2s; }
        .complete-btn:hover  { transform: scale(1.1); }
        .edit-btn { opacity: 0; transition: all 0.2s; }
        .glass-card:hover .edit-btn { opacity: 1; }
        .admin-badge { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
        .user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }

        .last-click-date {
            font-size: 0.7rem; padding: 2px 8px; border-radius: 12px;
            background: rgba(16, 185, 129, 0.2); color: #34d399; white-space: nowrap;
        }
        .last-click-date.older { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

        .last-updated-date {
            font-size: 0.75rem; padding: 2px 8px; border-radius: 8px;
            background: rgba(139, 92, 246, 0.25); color: #c4b5fd;
            white-space: nowrap; font-weight: 600;
            border: 1px solid rgba(139, 92, 246, 0.4);
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
        }

        .pagination-wrapper {
            margin-top: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
        }

        .page-btn {
            min-width: 36px; height: 36px; padding: 0 10px;
            border-radius: 8px;
            background: rgba(30, 37, 56, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #94a3b8; font-size: 0.9rem; cursor: pointer;
            transition: all 0.2s ease;
            display: flex; align-items: center; justify-content: center;
        }
        .page-btn:hover:not(:disabled) { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; color: white; }
        .page-btn.active    { background: #3b82f6; border-color: #3b82f6; color: white; font-weight: 600; }
        .page-btn:disabled  { opacity: 0.3; cursor: not-allowed; }
        .page-ellipsis      { color: #64748b; padding: 0 4px; }

        .accordion-header { cursor: pointer; user-select: none; }
        .accordion-content {
            transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
            max-height: 0; opacity: 0; overflow: hidden;
        }
        .accordion-content.open { max-height: 2000px; opacity: 1; margin-top: 0.75rem; }
        .rotate-180 { transform: rotate(180deg); }

        .category-block {
            background: rgba(30, 37, 56, 0.6);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px; padding: 12px; margin-top: 1rem;
        }

        ::-webkit-scrollbar       { width: 6px; }
        ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
        ::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

        .stats-btn { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(59,130,246,0.1)); border: 1px solid rgba(139,92,246,0.3); }
        .stats-btn:hover { background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(59,130,246,0.2)); }

        .notification-badge { animation: bounce 0.5s ease; }
        @keyframes bounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

        .notification-item         { transition: all 0.2s; }
        .notification-item:hover   { background: rgba(59, 130, 246, 0.1); }
        .notification-item.unread  { border-left: 3px solid #3b82f6; }

        .rich-content { line-height: 1.7; }
        .rich-content img {
            max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0;
            border: 1px solid rgba(255,255,255,0.1); display: block;
            cursor: pointer; transition: transform 0.2s ease;
        }
        .rich-content img:hover { transform: scale(1.02); }
        .rich-content img[style*="display: none"] { display: none !important; }
        .rich-content a { color: #60a5fa; text-decoration: none; border-bottom: 1px dashed #60a5fa; transition: all 0.2s; }
        .rich-content a:hover { color: #93c5fd; border-bottom-style: solid; }
        .rich-content p  { margin-bottom: 12px; }
        .rich-content ul, .rich-content ol { margin: 12px 0; padding-left: 24px; }
        .rich-content li { margin-bottom: 6px; }
        .rich-content h3 { font-size: 1.1rem; font-weight: 600; color: #60a5fa; margin: 16px 0 8px 0; }
        .rich-content blockquote { border-left: 3px solid #3b82f6; padding-left: 16px; margin: 12px 0; color: #94a3b8; font-style: italic; }
        .rich-content hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 16px 0; }

        .activity-item-admin {
            background: rgba(30, 37, 56, 0.4);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 8px; padding: 12px; margin-bottom: 8px;
            display: flex; justify-content: space-between; align-items: center;
        }
        .activity-item-admin:hover { border-color: rgba(59, 130, 246, 0.3); }

        .activity-block {
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px; margin-bottom: 1rem;
            overflow: hidden; display: flex; flex-direction: column;
        }

        .activity-header {
            padding: 16px; cursor: pointer;
            display: flex; justify-content: space-between; align-items: center;
            background: rgba(0,0,0,0.1); transition: background 0.2s; user-select: none;
        }
        .activity-header:hover { background: rgba(59, 130, 246, 0.1); }

        .activity-body-container {
            max-height: 0; opacity: 0; overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(0,0,0,0.2);
        }
        .activity-body-container.open { max-height: 10000px; opacity: 1; }
        .activity-body { padding: 20px; overflow-x: auto; }

        /* MERGED: из css (opacity, filter, header bg) + из html (background, border-left, text-decoration) */
        .activity-ended {
            opacity: 0.6;
            filter: grayscale(0.5);
            background: rgba(239, 68, 68, 0.1);
            border-left: 3px solid #ef4444;
        }
        .activity-ended .activity-header {
            background: rgba(239, 68, 68, 0.05);
            text-decoration: line-through;
        }

        .editor-toolbar {
            display: flex; gap: 4px; flex-wrap: wrap; padding: 8px;
            background: rgba(30, 37, 56, 0.8);
            border: 1px solid rgba(255,255,255,0.1);
            border-bottom: none; border-radius: 8px 8px 0 0;
        }
        .editor-toolbar button {
            padding: 6px 10px; background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 4px;
            color: #94a3b8; cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
        }
        .editor-toolbar button:hover { background: rgba(59, 130, 246, 0.2); color: white; border-color: #3b82f6; }

        .editor-textarea {
            width: 100%; min-height: 150px;
            background: rgba(30, 37, 56, 0.5);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 0 0 8px 8px; color: #f1f5f9;
            padding: 12px; font-size: 0.9rem; line-height: 1.6; resize: vertical;
        }
        .editor-textarea:focus { outline: none; border-color: #3b82f6; }

        .editor-help { font-size: 0.75rem; color: #64748b; padding: 8px; background: rgba(0,0,0,0.2); border-radius: 0 0 8px 8px; border-top: 1px solid rgba(255,255,255,0.05); }
        .editor-help code { background: rgba(59, 130, 246, 0.2); padding: 2px 6px; border-radius: 4px; color: #60a5fa; }

.deleted-project-card { opacity: 0.7; border: 1px solid rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.deleted-project-card:hover { opacity: 0.9; border-color: rgba(239,68,68,0.5); }

.restore-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white; border: none; padding: 6px 12px; border-radius: 6px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.restore-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }

.deleted-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}

/* Image modal — ОБЪЕДИНЁН (убран дублирующий блок) */
.image-modal {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.image-modal.active { display: flex; }

.image-modal-content {
    max-width: 90%; max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 100px rgba(59,130,246,0.1);
    animation: zoomIn 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}
.image-modal-content:hover {
    transform: scale(1.01);
    box-shadow: 0 0 60px rgba(0,0,0,0.9), 0 0 120px rgba(59,130,246,0.15);
}

@keyframes zoomIn {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.image-modal-close {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 40px; font-weight: bold;
    cursor: pointer; z-index: 1001;
    background: rgba(0,0,0,0.3); width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}
.image-modal-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }

.image-modal-nav {
    position: absolute; top: 50%; width: 100%;
    display: flex; justify-content: space-between; padding: 0 20px;
    transform: translateY(-50%); z-index: 1001;
}
.image-modal-nav button {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    color: white; font-size: 30px; width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; backdrop-filter: blur(5px);
}
.image-modal-nav button:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }

.image-caption {
    position: absolute; bottom: 20px; left: 0; width: 100%;
    text-align: center; color: white; padding: 15px;
    background: rgba(0,0,0,0.4); font-size: 16px;
    backdrop-filter: blur(5px); border-top: 1px solid rgba(255,255,255,0.1);
}

/* Right sidebar */
.right-sidebar {
    width: 19rem;
    flex-shrink: 0;
    margin-left: 1rem;
    position: sticky;
    top: 130px;
    align-self: flex-start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
    padding-right: 6px;
}

.right-sidebar::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 2px; height: 20px;
    background: linear-gradient(to bottom, rgba(34,211,238,0.5), transparent);
    border-radius: 1px; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.right-sidebar:hover::before { opacity: 1; }

.right-sidebar::-webkit-scrollbar       { width: 6px; }
.right-sidebar::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #334155, #475569); border-radius: 3px; }
.right-sidebar::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #475569, #64748b); }
.right-sidebar::-webkit-scrollbar-track { background: rgba(15,23,42,0.5); border-radius: 3px; }

#cr-widget-marquee {
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 8px; padding: 6px 10px;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15); margin: 0;
}
#cr-widget-marquee a { color: #60a5fa !important; font-size: 0.75rem !important; text-decoration: none !important; opacity: 0.8 !important; transition: opacity 0.2s !important; }
#cr-widget-marquee a:hover { opacity: 1 !important; text-decoration: underline !important; }

.guides-section { margin-top: 16px; }
.guides-section h3 { font-size: 1.15rem; font-weight: 600; color: #f1f5f9; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.guides-section h3 i { color: #3b82f6; }

.guide-card { background: rgba(30,37,56,0.75); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; transition: all 0.3s cubic-bezier(0.165,0.84,0.44,1); margin-bottom: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.guide-card:hover { transform: translateY(-3px); border-color: rgba(59,130,246,0.45); box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 0 15px rgba(59,130,246,0.12); }
.guide-banner { width: 100%; height: 75px; object-fit: cover; display: block; border-bottom: 1px solid rgba(59,130,246,0.2); background: linear-gradient(45deg, #1e293b, #0f172a); }
.guide-banner[src=""] { display: none; }
.guide-content { padding: 14px; }
.guide-title { font-size: 0.98rem; font-weight: 600; color: #fff; margin: 0 0 8px 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-desc  { font-size: 0.8rem; color: #94a3b8; margin: 0 0 12px 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-stats { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #64748b; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed rgba(148,163,184,0.22); }
.guide-badge { background: rgba(96,165,250,0.15); color: #60a5fa; padding: 2px 7px; border-radius: 20px; font-weight: 600; font-size: 0.73rem; letter-spacing: 0.03em; }
.guide-link  { display: inline-flex; align-items: center; justify-content: center; width: 100%; background: linear-gradient(90deg, #2563eb, #1d4ed8); color: white; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 0.88rem; text-decoration: none; transition: all 0.25s ease; box-shadow: 0 3px 10px rgba(37,99,235,0.35); border: 1px solid rgba(59,130,246,0.4); }
.guide-link:hover { background: linear-gradient(90deg, #3b82f6, #2563eb); transform: translateY(-1px); box-shadow: 0 5px 15px rgba(59,130,246,0.45); }
.guide-link i { margin-left: 5px; font-size: 1.05rem; transition: transform 0.3s ease; }
.guide-link:hover i { transform: translateX(2px); }

.crypto-bar-spacer { height: 60px; }

/* Hero section */
.hero-section { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; position: relative; }
.hero-section.collapsed { max-height: 0 !important; padding: 0 !important; margin: 0 !important; opacity: 0; transform: translateY(-10px); }
.hero-section.collapsed .hero-content,
.hero-section.collapsed .hero-collapse-btn { display: none !important; }

.hero-expand-btn {
    position: fixed; right: 15px; top: 80px; z-index: 100;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%; border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem; cursor: pointer;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    opacity: 0; transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-expand-btn:hover  { transform: scale(1.05); box-shadow: 0 6px 20px rgba(59,130,246,0.5); }
.hero-expand-btn.visible{ opacity: 1; transform: scale(1); }

.hero-collapse-btn {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    background: rgba(30,37,56,0.6); backdrop-filter: blur(8px);
    border: 1px solid rgba(59,130,246,0.2); padding: 0.4rem 1rem;
    border-radius: 999px; color: #64748b; font-size: 0.75rem;
    cursor: pointer; transition: all 0.3s ease; z-index: 10;
    display: flex; align-items: center; gap: 0.5rem;
}
.hero-collapse-btn:hover { background: rgba(59,130,246,0.15); border-color: #3b82f6; color: white; }

/* Admin action buttons */
.admin-action-btn {
    position: relative; padding: 8px 12px; border-radius: 10px;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid transparent; backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.admin-action-btn:hover i { animation: iconPulse 0.5s ease; }
@keyframes iconPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.admin-btn-purple  { background: linear-gradient(135deg,rgba(139,92,246,0.2),rgba(124,58,237,0.15)); border-color: rgba(139,92,246,0.4); color: #c4b5fd; box-shadow: 0 4px 15px rgba(139,92,246,0.2); }
.admin-btn-emerald { background: linear-gradient(135deg,rgba(16,185,129,0.2),rgba(5,150,105,0.15));  border-color: rgba(16,185,129,0.4);  color: #6ee7b7; box-shadow: 0 4px 15px rgba(16,185,129,0.2); }
.admin-btn-red     { background: linear-gradient(135deg,rgba(239,68,68,0.2),rgba(220,38,38,0.15));   border-color: rgba(239,68,68,0.4);   color: #fca5a5; box-shadow: 0 4px 15px rgba(239,68,68,0.2); }
.admin-btn-orange  { background: linear-gradient(135deg,rgba(249,115,22,0.2),rgba(234,88,12,0.15));  border-color: rgba(249,115,22,0.4);  color: #fed7aa; box-shadow: 0 4px 15px rgba(249,115,22,0.2); }

.admin-btn-purple:hover  { background: linear-gradient(135deg,rgba(139,92,246,0.3),rgba(124,58,237,0.25)); border-color:rgba(139,92,246,0.6); color:#e9d5ff; transform:translateY(-2px) scale(1.05); box-shadow:0 8px 25px rgba(139,92,246,0.4); }
.admin-btn-emerald:hover { background: linear-gradient(135deg,rgba(16,185,129,0.3),rgba(5,150,105,0.25));  border-color:rgba(16,185,129,0.6);  color:#a7f3d0; transform:translateY(-2px) scale(1.05); box-shadow:0 8px 25px rgba(16,185,129,0.4); }
.admin-btn-red:hover     { background: linear-gradient(135deg,rgba(239,68,68,0.3),rgba(220,38,38,0.25));   border-color:rgba(239,68,68,0.6);   color:#fecaca; transform:translateY(-2px) scale(1.05); box-shadow:0 8px 25px rgba(239,68,68,0.4); }
.admin-btn-orange:hover  { background: linear-gradient(135deg,rgba(249,115,22,0.3),rgba(234,88,12,0.25));  border-color:rgba(249,115,22,0.6);  color:#ffedd5; transform:translateY(-2px) scale(1.05); box-shadow:0 8px 25px rgba(249,115,22,0.4); }

/* Lab favorite & complete buttons */
.lab-favorite-btn {
  position: relative; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(30,37,56,0.4); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06); color: #64748b; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
.lab-favorite-btn:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(59,130,246,0.15); }
.lab-favorite-btn.active {
  background: linear-gradient(135deg,rgba(239,68,68,0.2),rgba(220,38,38,0.15));
  border-color: rgba(239,68,68,0.4); color: #ef4444;
  box-shadow: 0 0 20px rgba(239,68,68,0.4), 0 0 40px rgba(239,68,68,0.2), inset 0 0 20px rgba(239,68,68,0.1);
  animation: neonFlash 0.3s ease;
}
.lab-favorite-btn.active:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 0 25px rgba(239,68,68,0.5), 0 0 50px rgba(239,68,68,0.3); }
.lab-favorite-btn svg { width: 20px; height: 20px; transition: transform 0.3s ease; }
.lab-favorite-btn:hover svg { transform: scale(1.1); }
.lab-favorite-btn:active { transform: scale(0.95); }

.lab-favorite-btn .heart-fill    { opacity: 0; fill: #ef4444; transition: opacity 0.3s ease; }
.lab-favorite-btn .heart-outline { opacity: 1; transition: opacity 0.3s ease; }
.lab-favorite-btn .heart-pulse   { opacity: 0; }
.lab-favorite-btn .heart-particle-1,
.lab-favorite-btn .heart-particle-2,
.lab-favorite-btn .heart-particle-3 { opacity: 0; fill: #ef4444; }

.lab-favorite-btn.active .heart-fill    { opacity: 1; animation: heartFillIn 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }
.lab-favorite-btn.active .heart-outline { opacity: 0; }
.lab-favorite-btn.active .heart-pulse   { animation: heartPulse 2s ease-in-out infinite; stroke: #ef4444; }
.lab-favorite-btn.active .heart-particle-1 { animation: floatParticle 2s   ease-in-out infinite; }
.lab-favorite-btn.active .heart-particle-2 { animation: floatParticle 2.5s ease-in-out 0.3s infinite; }
.lab-favorite-btn.active .heart-particle-3 { animation: floatParticle 2.2s ease-in-out 0.6s infinite; }

@keyframes heartFillIn   { 0%{opacity:0;transform:scale(0.8)} 50%{opacity:1;transform:scale(1.15)} 100%{opacity:1;transform:scale(1)} }
@keyframes heartPulse    { 0%,100%{opacity:0;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.2)} }
@keyframes floatParticle { 0%,100%{opacity:0;transform:translateY(0) scale(0)} 50%{opacity:1;transform:translateY(-4px) scale(1)} }
@keyframes neonFlash     { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.5) drop-shadow(0 0 10px currentColor)} }

.lab-complete-btn {
  position: relative; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(30,37,56,0.4); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06); color: #64748b; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; align-items: center; justify-content: center;
}
.lab-complete-btn:hover { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(16,185,129,0.15); }
.lab-complete-btn.active {
  background: linear-gradient(135deg,rgba(16,185,129,0.2),rgba(5,150,105,0.15));
  border-color: rgba(16,185,129,0.4); color: #10b981;
  box-shadow: 0 0 20px rgba(16,185,129,0.4), 0 0 40px rgba(16,185,129,0.2), inset 0 0 20px rgba(16,185,129,0.1);
  animation: neonFlash 0.3s ease;
}
.lab-complete-btn.active:hover { transform: translateY(-2px) scale(1.05); }
.lab-complete-btn svg { width: 20px; height: 20px; transition: transform 0.3s ease; }
.lab-complete-btn:hover svg { transform: rotate(5deg) scale(1.1); }
.lab-complete-btn:active { transform: scale(0.95); }

.lab-complete-btn .check-fill { opacity: 0; fill: #10b981; transition: opacity 0.3s ease; }
.lab-complete-btn .check-mark { opacity: 0; stroke: white; stroke-width: 2.5; transition: opacity 0.3s ease; }
.lab-complete-btn .check-bg   { opacity: 1; transition: opacity 0.3s ease; }
.lab-complete-btn.active .check-fill { opacity: 1; animation: checkFillIn 0.5s ease forwards; }
.lab-complete-btn.active .check-mark { opacity: 1; animation: drawCheck 0.5s ease 0.2s forwards; }
.lab-complete-btn.active .check-bg   { opacity: 0.3; stroke: #10b981; }

@keyframes checkFillIn { from{opacity:0;transform:scale(0.8)} to{opacity:1;transform:scale(1)} }
@keyframes drawCheck   { from{stroke-dasharray:20;stroke-dashoffset:20} to{stroke-dashoffset:0} }

/* Completed card */
.project-card-wrapper.completed {
  background: linear-gradient(180deg, rgba(245,158,11,0.08), rgba(245,158,11,0.04));
  border-color: rgba(245,158,11,0.3) !important;
  box-shadow: inset 0 0 0 1px rgba(245,158,11,0.15);
}
.project-card-wrapper.completed:hover { border-color: rgba(245,158,11,0.45) !important; }
.project-card-wrapper.completed .text-slate-400 { color: #fcd34d !important; }
.project-card-wrapper.completed .text-slate-500 { color: #fde68a !important; }
.project-card-wrapper.completed .guide-btn-small { background: linear-gradient(135deg,#f59e0b,#d97706) !important; box-shadow: 0 4px 15px -3px rgba(245,158,11,0.4) !important; }

.completed-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: white;
  border: 0.5px solid rgba(245,158,11,0.4); padding: 2px 4px;
  border-radius: 22px; cursor: pointer; transition: all 0.2s;
}
.completed-badge:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -3px rgba(245,158,11,0.5); }

/* Lab container */
.lab-container {
    background: linear-gradient(145deg, rgba(15,20,35,0.95), rgba(20,30,45,0.9));
    border: 1px solid rgba(34,211,238,0.2); border-radius: 20px; padding: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.lab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(34,211,238,0.2); }
.lab-title-wrapper { display: flex; align-items: center; gap: 12px; }
.lab-beaker-icon { width: 40px; height: 40px; background: linear-gradient(135deg,rgba(34,211,238,0.2),rgba(59,130,246,0.2)); border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(34,211,238,0.3); }
.lab-beaker  { width: 24px; height: 24px; color: #22d3ee; }
.lab-title   { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; margin: 0; }
.lab-subtitle{ font-size: 0.75rem; color: #22d3ee; margin: 0; opacity: 0.8; }

.lab-activity-indicator { position: relative; width: 20px; height: 20px; }
.pulse-ring, .pulse-core { position: absolute; border-radius: 50%; }
.pulse-core { width: 10px; height: 10px; background: #10b981; top: 5px; left: 5px; }
.pulse-ring { width: 20px; height: 20px; border: 2px solid #10b981; animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0%{transform:scale(0.8);opacity:1} 100%{transform:scale(2);opacity:0} }

.lab-specimens { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

.specimen-tube {
    background: linear-gradient(145deg,rgba(30,41,59,0.6),rgba(15,23,42,0.8));
    border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1); position: relative; overflow: hidden;
}
.specimen-tube:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(34,211,238,0.15); border-color: rgba(34,211,238,0.4); }
.specimen-tube.new::before { content:'NEW'; position:absolute; top:8px; right:8px; background:linear-gradient(135deg,#ef4444,#f59e0b); color:white; font-size:0.6rem; font-weight:700; padding:2px 6px; border-radius:8px; animation:glow-new 2s ease-in-out infinite alternate; }
@keyframes glow-new { from{box-shadow:0 0 5px rgba(239,68,68,0.5)} to{box-shadow:0 0 15px rgba(239,68,68,0.8)} }

.tube-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.specimen-id { font-family:'Courier New',monospace; font-size:0.75rem; color:#22d3ee; background:rgba(34,211,238,0.1); padding:2px 8px; border-radius:4px; border:1px solid rgba(34,211,238,0.3); }
.specimen-status { width: 8px; height: 8px; border-radius: 50%; }

.status-active { background:rgba(34,197,94,0.15) !important; color:#4ade80 !important; border:1px solid rgba(34,197,94,0.4) !important; }
.status-new { background:#ef4444; box-shadow:0 0 8px rgba(239,68,68,0.6); animation:pulse-status 1.5s ease-in-out infinite; }
@keyframes pulse-status { 0%,100%{opacity:1} 50%{opacity:0.5} }

.tube-body { height:60px; background:linear-gradient(to top,rgba(0,0,0,0.3),transparent); border-radius:8px; margin-bottom:12px; position:relative; overflow:hidden; }
.liquid-sample { position:absolute; bottom:0; left:0; right:0; height:40px; border-radius:0 0 8px 8px; }
.arc-sample      { background:linear-gradient(to top,rgba(34,211,238,0.3),rgba(34,211,238,0.1)); border-top:2px solid rgba(34,211,238,0.5); }
.tempo-sample    { background:linear-gradient(to top,rgba(168,85,247,0.3),rgba(168,85,247,0.1));  border-top:2px solid rgba(168,85,247,0.5); }
.robinhood-sample{ background:linear-gradient(to top,rgba(34,197,94,0.3),rgba(34,197,94,0.1));   border-top:2px solid rgba(34,197,94,0.5); }

.bubble { position:absolute; background:rgba(255,255,255,0.3); border-radius:50%; animation:bubble-float 3s ease-in-out infinite; }
.bubble-1 { width:4px; height:4px; left:20%; animation-delay:0s; }
.bubble-2 { width:3px; height:3px; left:60%; animation-delay:1s; }
.bubble-3 { width:5px; height:5px; left:80%; animation-delay:2s; }
@keyframes bubble-float { 0%,100%{bottom:0;opacity:0} 50%{bottom:30px;opacity:1} }

.specimen-name { font-size:0.9rem; font-weight:600; color:#f1f5f9; margin:0 0 4px 0; }
.specimen-data { font-size:0.75rem; color:#94a3b8; margin:0 0 12px 0; display:flex; align-items:center; gap:4px; }

.analyze-btn {
    width:100%; background:linear-gradient(135deg,rgba(59,130,246,0.2),rgba(34,211,238,0.2));
    border:1px solid rgba(59,130,246,0.4); color:#60a5fa;
    padding:8px 12px; border-radius:8px; font-size:0.8rem; font-weight:600;
    cursor:pointer; transition:all 0.3s ease;
    display:flex; align-items:center; justify-content:center; gap:6px;
}
.analyze-btn:hover { background:linear-gradient(135deg,rgba(59,130,246,0.3),rgba(34,211,238,0.3)); border-color:#3b82f6; color:#93c5fd; transform:translateY(-1px); }

.lab-journal { background:rgba(15,23,42,0.5); border:1px solid rgba(255,255,255,0.05); border-radius:12px; padding:16px; }
.journal-header { display:flex; align-items:center; gap:8px; font-size:0.9rem; font-weight:600; color:#94a3b8; margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,0.05); }
.journal-entry { margin-bottom:8px; padding:8px; background:rgba(0,0,0,0.2); border-radius:6px; border-left:3px solid rgba(34,211,238,0.4); }
.entry-date { font-size:0.7rem; color:#22d3ee; font-weight:600; margin-bottom:2px; }
.entry-text { font-size:0.75rem; color:#cbd5e1; line-height:1.4; }

.specimen-banner { height:80px; margin-bottom:12px; border-radius:8px; overflow:hidden; background:linear-gradient(135deg,rgba(30,41,59,0.8),rgba(15,23,42,0.6)); display:flex; align-items:center; justify-content:center; }
.specimen-logo   { width:100%; height:100%; object-fit:cover; border-radius:8px; }
.robinhood-svg-banner { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,rgba(16,185,129,0.1),rgba(34,197,94,0.1)); }
.robinhood-logo  { width:100%; height:100%; max-height:50px; }

.link-count         { color:#22d3ee; font-weight:600; }
.link-count.loading { animation:pulse-count 1s ease-in-out infinite; }
@keyframes pulse-count { 0%,100%{opacity:1} 50%{opacity:0.5} }

.stats-section   { padding:20px; }
.stats-container { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.stat-item       { text-align:center; padding:20px; background:var(--card-bg,#1e1e2e); border-radius:16px; transition:transform 0.3s; }
.stat-item:hover { transform:translateY(-4px); }
.stat-icon       { font-size:2rem; margin-bottom:8px; }
.stat-number     { font-size:1.8rem; font-weight:700; color:#89b4fa; font-family:'SF Mono','Consolas',monospace; }
.stat-label      { font-size:0.85rem; color:#a6adc8; margin-top:4px; }

.notification-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); display:flex; align-items:center; justify-content:center; z-index:10000; opacity:1; transition:opacity 0.3s; backdrop-filter:blur(8px); }
.notification-overlay.hidden { opacity:0; pointer-events:none; }
.notification-modal { background:var(--card-bg,#1e1e2e); border-radius:20px; width:90%; max-width:420px; overflow:hidden; transform:scale(1); transition:transform 0.3s; box-shadow:0 20px 60px rgba(0,0,0,0.5); }
.notification-overlay.hidden .notification-modal { transform:scale(0.8); }
.notification-header { display:flex; align-items:center; padding:20px; border-bottom:1px solid var(--border-color,#313244); gap:16px; }
.notification-icon   { font-size:2rem; }
.notification-title  { flex:1; font-size:1.2rem; margin:0; }
.notification-close  { background:none; border:none; font-size:1.2rem; color:#a6adc8; cursor:pointer; }
.notification-body   { padding:20px; color:#cdd6f4; line-height:1.6; }
.notification-footer { padding:16px 20px; display:flex; gap:12px; border-top:1px solid var(--border-color,#313244); }
.notification-footer .btn { flex:1; padding:12px; border-radius:10px; border:none; cursor:pointer; font-weight:600; transition:all 0.3s; }
.btn-primary   { background:#89b4fa; color:#1e1e2e; }
.btn-secondary { background:#313244; color:#cdd6f4; }

/* =====================================================
   ПЕРЕНЕСЕНО ИЗ index.html <style> (было только там)
   ===================================================== */

/* Language button */
#langBtn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(239,68,68,0.05));
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
#langBtn:hover {
    background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.1));
    border-color: rgba(239,68,68,0.5);
    transform: scale(1.05);
}
#langBtn.lang-active {
    background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(34,197,94,0.15));
    border-color: rgba(34,197,94,0.6);
    box-shadow: 0 0 15px rgba(34,197,94,0.3);
}
#langBtn.lang-active:hover {
    background: linear-gradient(135deg, rgba(34,197,94,0.4), rgba(34,197,94,0.2));
}
#langBtn.lang-active .lang-text {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.lang-flag {
    display: flex;
    align-items: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    font-size: 1.2rem;
}
.lang-text {
    min-width: 28px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s ease;
}
.lang-on {
    color: #22c55e !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(34,197,94,0.5);
}

/* Activity new badges & indicators */
.activity-new-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse-new 2s infinite;
    box-shadow: 0 0 10px rgba(245,158,11,0.5);
}
@keyframes pulse-new {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 0.8; }
}

.project-card-wrapper.has-new-activities {
    border-color: rgba(245,158,11,0.5) !important;
    box-shadow: 0 0 15px rgba(245,158,11,0.2);
}
.project-card-wrapper.has-new-activities::before {
    content: '';
    position: absolute;
    top: -2px; right: 20px;
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #f59e0b;
    z-index: 10;
}

.activity-autodate-badge {
    font-size: 10px;
    background: rgba(239,68,68,0.2);
    color: #fca5a5;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.activity-new-indicator {
    width: 8px; height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: pulse-indicator 1.5s infinite;
    box-shadow: 0 0 8px rgba(245,158,11,0.6);
}
@keyframes pulse-indicator {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.2); }
}

/* Categories accordion */
#categoriesAccordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}
#categoriesAccordion.open {
    max-height: 400px;
    opacity: 1;
}

/* Selects readability */
select { color: #e2e8f0; }
select option { background-color: #1e293b; color: #f1f5f9; }
#dateFilterDay,
#dateFilterMonth,
#dateFilterYear,
#itemsPerPageSelect,
#sortSelect { color: #f1f5f9 !important; }

/* Responsive */
/* ← ЭТОТ БЛОК БЫЛ В ОРИГИНАЛЕ И ПРОПАЛ */

@media (max-width: 1279px) { .right-sidebar { display: none; } }
@media (min-width: 1280px) { .right-sidebar { display: block; } }

@media (max-width: 768px) {
    #cr-widget-marquee { padding: 6px 10px; font-size: 0.85rem !important; }
    #cr-widget-marquee a { font-size: 0.7rem !important; }
    .hero-collapse-btn span { display: none; }
    .hero-collapse-btn { padding: 0.5rem; width: 36px; height: 36px; justify-content: center; }
    .crypto-bar-spacer { display: none; }
}

@media (max-width: 640px) {
    .admin-action-btn { padding: 6px 10px; }
    .admin-action-btn span { display: none !important; }
}

@media (max-width: 1023px) {
    .lab-container { margin-top: 16px; }
    .lab-specimens { flex-direction: column; }
}
/* ══ ХЕДЕР И LAYOUT ══ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

main.flex-1 { min-width: 0; }
/* ══ MOBILE MAIN CONTENT WIDER ══ */
@media (max-width: 640px) {
    .admin-action-btn { padding: 6px 10px; }
    .admin-action-btn span { display: none !important; }
    #dateFilterContainer { display: none !important; }
    .filters-sticky-bar { padding: 6px 0; }

    /* ↓ ДОБАВИТЬ */
    .project-card-wrapper {
        overflow: hidden;
    }
    .lab-favorite-btn,
    .lab-complete-btn {
        transform: none !important; /* убираем hover-transform на мобильных */
    }
    .lab-favorite-btn:hover,
    .lab-complete-btn:hover {
        transform: none !important;
    }
}
.mob-stat-item {
    display: flex;
    flex-direction: column;   /* ← число и подпись в столбик */
    align-items: center;
    gap: 1px;
    padding: 5px 10px;
    cursor: pointer;
    flex: 1;                  /* ← равномерно делят ширину */
    flex-shrink: 0;
    min-width: 0;
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}
.mob-stat-num {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.mob-stat-lbl {
    font-size: 8px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}
/* ══ КНОПКИ ЛАЙК + ЗАВЕРШИТЬ — на мобильных ниже гайда ══ */
@media (max-width: 640px) {
    .card-action-btns {
        flex-basis: 100%;          /* занимает всю строку → уходит на следующую */
       justify-content: flex-start; /* прижимаем вправо */
        padding-top: 6px;
        margin-top: 2px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
        .last-click-date,
    .last-click-date.older {
        order: -1;           
        flex-basis: 100%; 
        width: fit-content;
        margin-bottom: 3px;
        font-size: 0.65rem;
    }
}
/* ══ MOBILE STAT ACTIVE STATE ══ */
.mob-stat-item { position: relative; }

.mob-stat-item.active {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
}
.mob-stat-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: currentColor;
    opacity: 0.5;
}
.mob-stat-item.active .mob-stat-num { filter: brightness(1.4); }
.mob-stat-item.active .mob-stat-lbl { color: #94a3b8; }

/* ══ MOBILE: панели Фильтр + Категории ══ */
#mobPanelRow {
    display: flex;
    gap: 8px;
    padding: 4px 12px 4px;
}
@media (min-width: 768px) {
    #mobPanelRow,
    #mobFilterSlide,
    #mobCatSlide {
        display: none !important;
    }
}
.mob-panel-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

.mob-panel-btn.mob-filter-btn {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.25);
    color: #60a5fa;
}
.mob-panel-btn.mob-filter-btn.open {
    background: rgba(59,130,246,0.2);
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 0 12px rgba(59,130,246,0.2);
}

.mob-panel-btn.mob-cat-btn {
    background: rgba(139,92,246,0.1);
    border-color: rgba(139,92,246,0.25);
    color: #c4b5fd;
}
.mob-panel-btn.mob-cat-btn.open {
    background: rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 0 12px rgba(139,92,246,0.2);
}

.mob-panel-btn .mob-chevron {
    font-size: 9px;
    margin-left: 2px;
    transition: transform 0.3s ease;
}
.mob-panel-btn.open .mob-chevron {
    transform: rotate(180deg);
}

/* Сворачиваемая панель */
.mob-slide-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    padding: 0 12px;
}
.mob-slide-panel.open {
    max-height: 500px;
    opacity: 1;
    padding: 0 12px 8px;
}

.mob-slide-inner {
    background: rgba(30,37,56,0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.07);
}

/* Фильтр-ссылки внутри мобильной панели */
#mobFilterInner .sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    background: transparent;
}
#mobFilterInner .sidebar-link:hover,
#mobFilterInner .sidebar-link.active {
    background: rgba(59,130,246,0.1);
    border-left-color: #3b82f6;
    color: white;
}

/* Категории внутри мобильной панели */
#mobCatInner .category-block {
    margin-top: 4px;
    padding: 8px;
}
#mobCatInner label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #94a3b8;
    transition: background 0.2s;
}
#mobCatInner label:hover {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
}
