    * {
        box-sizing: border-box;
    }

    .home-page {
        position: relative;
        z-index: 1;
        font-size: calc(1rem + 2px);
    }

    /* Фиксированная ширина главной */
    .container-home {
        width: 100%;
        max-width: 1240px;
        margin-inline: auto;
    }

    .hero-section {
        background: var(--primary-gradient);
        color: white;
        border-radius: 30px;
        overflow: hidden;
        position: relative;
        margin-bottom: 3rem;
        box-shadow: 0 20px 60px rgba(69, 86, 168, 0.35);
        backdrop-filter: blur(10px);
        animation: fadeInUp 0.8s ease-out;
    }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
            z-index: 0;
            pointer-events: none;
        }

        .hero-section::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -5%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            animation: float 8s ease-in-out infinite reverse;
            z-index: 0;
            pointer-events: none;
        }

        .hero-section > .row {
            position: relative;
            z-index: 1;
        }

    @keyframes float {
        0%, 100% {
            transform: translate(0, 0) scale(1);
        }
        50% {
            transform: translate(20px, -20px) scale(1.1);
        }
    }

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

    .stat-card {
        border: none;
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        height: 100%;
        backdrop-filter: blur(10px);
        background: white;
        border: 2px solid rgba(102, 126, 234, 0.22);
        position: relative;
        overflow: hidden;
        animation: fadeInUp 0.6s ease-out backwards;
    }

        .stat-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .stat-card:nth-child(2) {
            animation-delay: 0.2s;
        }

        .stat-card:nth-child(3) {
            animation-delay: 0.3s;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--primary-gradient);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .stat-card:hover {
            transform: translateY(-12px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
        }

    .stat-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        margin-bottom: 1.5rem;
        position: relative;
        transition: all 0.4s ease;
    }

        .stat-card:hover .stat-icon {
            transform: scale(1.1) rotate(5deg);
        }

    .section-header {
        position: relative;
        color: #2c3e50;
        padding-bottom: 20px;
        margin-bottom: 35px;
        font-weight: 700;
        font-size: 1.75rem;
        letter-spacing: -0.5px;
    }

        .section-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 80px;
            height: 5px;
            background: var(--primary-gradient);
            border-radius: 10px;
            animation: expandWidth 0.8s ease-out;
        }

        .section-header::before {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(102, 126, 234, 0.2), transparent);
        }

    @keyframes expandWidth {
        from {
            width: 0;
        }
        to {
            width: 80px;
        }
    }

    .comment-card {
        background: white;
        border-radius: 20px;
        border: 2px solid rgba(102, 126, 234, 0.2);
        margin-bottom: 20px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    }

        .comment-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: var(--primary-gradient);
            transform: scaleY(0);
            transform-origin: top;
            transition: transform 0.4s ease;
        }

        .comment-card:hover::before {
            transform: scaleY(1);
        }

        .comment-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2) !important;
        }

    .comment-avatar {
        width: 50px;
        height: 50px;
        background: var(--primary-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        transition: all 0.3s ease;
    }

        .comment-card:hover .comment-avatar {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

    .comment-admin-reply {
        border-left: 3px solid #667eea;
        background: rgba(102, 126, 234, 0.07);
        border-radius: 0 12px 12px 0;
        padding: 0.75rem 0.9rem;
    }

    .comment-admin-reply__label {
        font-size: 0.82rem;
        font-weight: 600;
        color: #667eea;
        margin-bottom: 0.35rem;
    }

    .comment-admin-reply__text {
        font-size: calc(0.95rem + 1px);
        line-height: 1.55;
        color: #2c3e50;
    }

    .comment-admin-reply__meta {
        font-size: 0.8rem;
    }

    html[data-bs-theme="dark"] .comment-admin-reply {
        background: rgba(83, 94, 200, 0.14);
        border-left-color: #8b9ef5;
    }

    html[data-bs-theme="dark"] .comment-admin-reply__label {
        color: #a8b8ff;
    }

    html[data-bs-theme="dark"] .comment-admin-reply__text {
        color: #e2e8ff;
    }

    .gallery-grid-scroll {
        overflow-x: auto;
        overflow-y: visible;
        margin-bottom: 2rem;
        margin-inline: -0.25rem;
        padding-inline: 0.25rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
    }

        .gallery-grid-scroll::-webkit-scrollbar {
            height: 8px;
        }

        .gallery-grid-scroll::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.06);
            border-radius: 4px;
        }

        .gallery-grid-scroll::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.45);
            border-radius: 4px;
        }

        .gallery-grid-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.65);
        }

    /* Две строки: элементы идут сверху вниз по колонкам, колонки уезжают вправо со скроллом */
    .gallery-grid-scroll .gallery-grid {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 300px);
        align-items: stretch;
        column-gap: 2rem;
        row-gap: 1.25rem;
        width: max-content;
        margin-bottom: 0;
    }

    .gallery-grid-scroll .gallery-item {
        width: 100%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .gallery-item {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        cursor: pointer;
        aspect-ratio: 16/9;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

        .gallery-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--primary-gradient);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 1;
        }

        .gallery-item:hover::before {
            opacity: 0.2;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .gallery-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
        }

            .gallery-item:hover img {
                transform: scale(1.1);
            }

        .gallery-item .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            color: white;
            padding: 1.5rem;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 2;
        }

        .gallery-item:hover .overlay {
            transform: translateY(0);
        }

    .bot-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 400px;
        z-index: 1050;
        display: none;
        animation: slideIn 0.3s ease;
        max-height: calc(100vh - 1rem);
    }

    .bot-container .card {
        max-height: inherit;
        display: flex;
        flex-direction: column;
    }

    #botContent {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    @keyframes slideIn {
        from {
            transform: translateY(100px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .bot-toggle {
        position: fixed;
        bottom: 56px;
        right: 30px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: var(--primary-gradient);
        color: white;
        border: none;
        cursor: pointer;
        z-index: 1040;
        box-shadow: 0 8px 30px rgba(69, 86, 168, 0.5);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        animation: pulse 2s ease-in-out infinite;
    }

    .user-admin-chat-toggle {
        position: fixed;
        bottom: 186px;
        right: 30px;
        width: 62px;
        height: 62px;
        border-radius: 50%;
        background: linear-gradient(135deg, #2e7d32 0%, #1f6f8b 100%);
        color: #fff;
        border: none;
        cursor: pointer;
        z-index: 1040;
        box-shadow: 0 8px 30px rgba(15, 118, 110, 0.35);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
    }

    .bot-toggle .fab-label,
    .user-admin-chat-toggle .fab-label {
        position: absolute;
        right: -4px;
        top: calc(100% + 12px);
        transform: none;
        font-size: 0.76rem;
        font-weight: 600;
        color: #1f2937;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 252, 0.98) 100%);
        border: 1px solid rgba(148, 163, 184, 0.42);
        border-radius: 12px;
        padding: 0.36rem 0.64rem;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
        min-width: 132px;
        max-width: 176px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
        pointer-events: none;
        z-index: 2;
        backdrop-filter: blur(2px);
    }

    .bot-toggle .fab-label::before,
    .user-admin-chat-toggle .fab-label::before {
        content: "";
        position: absolute;
        top: -6px;
        right: 18px;
        width: 10px;
        height: 10px;
        background: inherit;
        border-left: 1px solid rgba(148, 163, 184, 0.42);
        border-top: 1px solid rgba(148, 163, 184, 0.42);
        transform: rotate(45deg);
        border-top-left-radius: 2px;
    }

    .fab-unread-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 999px;
        background: #dc3545;
        color: #fff;
        font-size: 0.68rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.65);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
        line-height: 1;
        pointer-events: none;
    }

    .user-admin-chat-toggle:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 10px 34px rgba(15, 118, 110, 0.45);
    }

    .user-admin-chat-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 420px;
        z-index: 1050;
        display: none;
        animation: slideIn 0.25s ease;
        max-height: calc(100vh - 1rem);
    }

    .user-admin-chat-container .card {
        max-height: inherit;
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        overflow: hidden;
    }

    .user-admin-chat-body {
        background: #fff;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .user-admin-chat-messages {
        min-height: 180px;
        max-height: 320px;
        overflow-y: auto;
        background: #f8fafc;
        border: 1px solid rgba(69, 86, 168, 0.14);
        border-radius: 12px;
        padding: 0.65rem;
    }

    .user-admin-chat-message {
        margin-bottom: 0.55rem;
        padding: 0.5rem 0.65rem;
        border-radius: 10px;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .user-admin-chat-message.is-mine {
        border-color: rgba(37, 99, 235, 0.25);
        background: rgba(37, 99, 235, 0.08);
    }

    .user-admin-chat-message-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        font-size: 0.74rem;
        color: #64748b;
        margin-bottom: 0.25rem;
    }

    .user-admin-chat-message-status {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: 0.2rem;
        color: #475569;
        font-weight: 600;
    }

    .user-admin-chat-message-status.is-read {
        color: #0ea5a4;
    }

    .user-admin-chat-search .input-group-text {
        background: rgba(99, 102, 241, 0.08);
        border-color: rgba(99, 102, 241, 0.22);
        color: #4c1d95;
    }

    .user-admin-chat-search .form-control {
        border-color: rgba(99, 102, 241, 0.22);
    }

    .user-admin-chat-search .btn {
        border-color: rgba(99, 102, 241, 0.22);
    }

    .user-admin-chat-template-group .input-group-text {
        background: rgba(56, 189, 248, 0.1);
        border-color: rgba(56, 189, 248, 0.25);
        color: #0f766e;
    }

    .user-admin-chat-template-group .form-select,
    .user-admin-chat-template-group .btn {
        border-color: rgba(56, 189, 248, 0.25);
    }

    .user-admin-chat-message-text {
        white-space: pre-wrap;
        word-break: break-word;
    }

    .user-admin-chat-delete-btn {
        margin-left: auto;
        padding: 0;
        color: #dc3545;
        text-decoration: none !important;
        font-size: 0.82rem;
    }

    .user-admin-chat-delete-btn:hover {
        color: #b02a37;
    }

    .user-admin-chat-body .btn-outline-danger {
        border-color: rgba(220, 53, 69, 0.45);
    }

    .user-admin-chat-presence {
        color: #0f766e;
        font-weight: 600;
    }

        .bot-toggle::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: var(--primary-gradient);
            opacity: 0.5;
            animation: ripple 2s ease-out infinite;
        }

        .bot-toggle:hover {
            transform: scale(1.15) rotate(5deg);
            box-shadow: 0 12px 40px rgba(69, 86, 168, 0.6);
        }

    .bot-card-header {
        background: var(--primary-gradient);
    }

    .bot-close-btn {
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.28);
        color: #fff;
        width: 2rem;
        height: 2rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .bot-close-btn:hover {
        background: rgba(255, 255, 255, 0.28);
        color: #fff;
    }

    .bot-container .card {
        border-radius: 16px;
        overflow: hidden;
    }

    .bot-container .card-body {
        background: #fff;
    }

    @keyframes pulse {
        0%, 100% {
            box-shadow: 0 8px 30px rgba(69, 86, 168, 0.5);
        }
        50% {
            box-shadow: 0 8px 30px rgba(102, 126, 234, 0.8), 0 0 0 10px rgba(102, 126, 234, 0.1);
        }
    }

    @keyframes ripple {
        0% {
            transform: scale(1);
            opacity: 0.5;
        }
        100% {
            transform: scale(1.5);
            opacity: 0;
        }
    }

    .contact-item {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        padding: 20px;
        border-radius: 18px;
        background: white;
        border: 2px solid rgba(102, 126, 234, 0.2);
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
        position: relative;
        overflow: hidden;
    }

        .contact-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--primary-gradient);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .contact-item:hover::before {
            transform: scaleX(1);
        }

        .contact-item:hover {
            transform: translateY(-8px) scale(1.03);
            box-shadow: 0 12px 30px rgba(102, 126, 234, 0.25);
        }

    .contact-icon {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

        .contact-item:hover .contact-icon {
            transform: scale(1.15) rotate(5deg);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        }

    .service-item {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        border: 2px solid rgba(102, 126, 234, 0.2);
        overflow: hidden;
    }

    /* Общая тонкая обводка для контентных блоков на главной */
    .card.border-0.shadow-sm {
        border: 2px solid rgba(102, 126, 234, 0.2) !important;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12) !important;
    }

        .service-item::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
        }

        .service-item:hover::after {
            left: 100%;
        }

        .service-item:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
        }

    .service-icon {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

        .service-item:hover .service-icon {
            transform: scale(1.15) rotate(10deg);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

    .map-container {
        margin-top: 20px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transition: all 0.4s ease;
    }

        .map-container:hover {
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
        }

    .btn {
        border-radius: 12px;
        font-weight: 600;
        padding: 12px 24px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
    }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .btn:active {
            transform: translateY(0);
        }

    .btn-primary {
        background: var(--primary-gradient);
        border: none;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

        .btn-primary:hover {
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
        }

    .btn-outline-primary {
        border: 2px solid;
        border-image: var(--primary-gradient) 1;
        background: transparent;
        color: #667eea;
    }

        .btn-outline-primary:hover {
            background: var(--primary-gradient);
            color: white;
            border-color: transparent;
        }

    .badge {
        border-radius: 20px;
        padding: 8px 16px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .badge:hover {
            transform: scale(1.05);
        }

    .fade-in {
        animation: fadeIn 0.6s ease-out;
    }

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

    .empty-state {
        text-align: center;
        padding: 3rem 1rem;
        color: #6c757d;
    }

        .empty-state i {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

    .modal-content {
        border-radius: 25px;
        border: none;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .modal-header {
        border-radius: 25px 25px 0 0;
        border-bottom: none;
    }

    html {
        scroll-behavior: smooth;
    }

    .request-badge {
        background: var(--success-gradient);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.85em;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .btn-gradient {
        background: var(--primary-gradient);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .btn-gradient::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
        }

        .btn-gradient:hover::before {
            left: 100%;
        }

        .btn-gradient:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
        }

    .empty-state {
        text-align: center;
        padding: 3rem 1rem;
        color: #7f8c8d;
    }

        .empty-state i {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

    .rating-stars {
        display: flex;
        gap: 5px;
        font-size: 1.5rem;
    }
    
    .star-label {
        cursor: pointer;
        transition: transform 0.2s;
    }
    
    .star-label:hover {
        transform: scale(1.2);
    }
    
    .star-label i {
        color: #ddd;
        transition: color 0.2s;
    }
    
    .star-label.active i,
    .star-label:hover i {
        color: #ffc107;
    }

    .modal-content {
        border-radius: 20px;
        border: none;
        overflow: hidden;
    }

    .modal-header {
        background: var(--primary-gradient);
        color: white;
        border-bottom: none;
    }

    .form-control, .form-select {
        border-radius: 10px;
        border: 2px solid #e9ecef;
        padding: 12px 15px;
        transition: all 0.3s ease;
    }

        .form-control:focus, .form-select:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
        }

    .alert {
        border-radius: 12px;
        border: none;
        padding: 1.25rem;
    }

    .loading-spinner {
        display: none;
        width: 50px;
        height: 50px;
        border: 5px solid #f3f3f3;
        border-top: 5px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 20px auto;
    }

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

        100% {
            transform: rotate(360deg);
        }
    }

#allCommentsModal .modal-dialog {
    margin: 2rem auto;
}

.home-hero-title {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.home-hero-icon {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.home-hero-lead {
    font-size: 1.3rem;
    line-height: 1.8;
}

.home-hero-badge {
    font-size: 0.95rem;
}

.home-service-tile {
    transition: all 0.3s ease;
}

.home-service-tile--blue {
    border-left: 4px solid #3498db;
}

.home-service-tile--green {
    border-left: 4px solid #2ecc71;
}

.home-service-icon-circle {
    width: 60px;
    height: 60px;
}

.home-services-subtitle {
    font-size: calc(0.98rem + 2px);
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.home-services-section .home-services-title.section-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1.25rem;
}

.home-services-section .home-services-title.section-header::after {
    left: 50%;
    margin-left: -40px;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-service-card {
    border: 1px solid rgba(102, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.06);
    border-radius: 14px;
    padding: 1.15rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 148px;
}

.home-service-card h6 {
    font-size: calc(1rem + 2px);
    margin-bottom: 0.35rem;
}

.home-service-card small {
    font-size: calc(0.875rem + 2px);
    line-height: 1.45;
}

.home-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.15);
}

.home-service-card__icon {
    color: #667eea;
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.12);
    flex-shrink: 0;
}

.home-services-advantages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(102, 126, 234, 0.12);
}

.home-service-advantage {
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.18);
    background: rgba(102, 126, 234, 0.04);
    padding: 0.75rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: calc(0.92rem + 2px);
    min-height: 100%;
}

@media (max-width: 991.98px) {
    .home-services-grid,
    .home-services-advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-services-grid,
    .home-services-advantages {
        grid-template-columns: 1fr;
    }

    .home-service-card {
        min-height: 0;
    }
}

html[data-bs-theme="dark"] .home-service-card {
    background: rgba(25, 36, 60, 0.72);
    border-color: rgba(131, 152, 255, 0.22);
}

html[data-bs-theme="dark"] .home-service-card h6 {
    color: #e5ecff;
}

html[data-bs-theme="dark"] .home-service-card small {
    color: #aab8de !important;
}

html[data-bs-theme="dark"] .home-service-advantage {
    background: rgba(25, 36, 60, 0.56);
    border-color: rgba(131, 152, 255, 0.2);
    color: #d8e2ff;
}

.home-gallery-modal-dialog {
    width: auto;
    max-width: min(98vw, 1280px);
    margin: 1rem auto;
}

.home-gallery-modal-dialog:has(.home-gallery-modal-grid[data-count="1"]) {
    max-width: min(96vw, 900px);
}

.home-gallery-modal-dialog:has(.home-gallery-modal-grid[data-count="2"]) {
    max-width: min(96vw, 1100px);
}

.home-gallery-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(102, 126, 234, 0.28);
}

.home-gallery-modal-header {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 1rem 1.25rem;
    align-items: flex-start;
    gap: 0.75rem;
}

.home-gallery-modal-header__text {
    min-width: 0;
    flex: 1 1 auto;
}

.home-gallery-modal-header .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.home-gallery-modal-header .btn-close {
    opacity: 0.92;
    filter: brightness(0) invert(1);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.home-gallery-modal-count {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.88;
    font-size: 0.86rem;
}

.home-gallery-modal-body {
    padding: 1rem;
    background: linear-gradient(180deg, #f9fafc 0%, #eef2f8 100%);
    max-height: min(86vh, 920px);
    overflow-y: auto;
}

.home-gallery-modal-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    align-items: stretch;
}

.home-gallery-modal-grid[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin: 0 auto;
}

.home-gallery-modal-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-gallery-modal-item {
    position: relative;
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.14);
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08);
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 240px;
    width: 100%;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-gallery-modal-item:hover,
.home-gallery-modal-item:focus-visible {
    box-shadow: 0 10px 26px rgba(102, 126, 234, 0.18);
    transform: translateY(-2px);
    outline: none;
}

.home-gallery-modal-item__zoom,
.home-gallery-modal-item__play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(15, 20, 32, 0.55);
    border-radius: 999px;
    pointer-events: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-gallery-modal-item__zoom {
    right: 0.65rem;
    bottom: 0.65rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
}

.home-gallery-modal-item__play {
    inset: 0;
    margin: auto;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.65rem;
    background: rgba(15, 20, 32, 0.45);
}

.home-gallery-modal-item:hover .home-gallery-modal-item__zoom,
.home-gallery-modal-item:hover .home-gallery-modal-item__play {
    background: rgba(102, 126, 234, 0.82);
    transform: scale(1.05);
}

.home-gallery-modal-media {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    background: #0f1420;
    pointer-events: none;
}

.home-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: transparent;
    pointer-events: none;
}

.home-gallery-lightbox.is-open {
    pointer-events: auto;
}

.home-gallery-lightbox[hidden] {
    display: none !important;
}

.home-gallery-lightbox-dialog {
    width: 100%;
    max-width: min(98vw, 1440px);
    margin: 0 auto;
    pointer-events: auto;
}

.home-gallery-lightbox-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

.home-gallery-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0.9rem 1.15rem;
    border-radius: 20px 20px 0 0;
}

.home-gallery-lightbox-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.home-gallery-lightbox-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.92;
    flex-shrink: 0;
}

.home-gallery-lightbox-body {
    padding: 0.75rem;
    background: #0b101a;
}

.home-gallery-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(78vh, 820px);
    max-height: min(82vh, 900px);
}

.home-gallery-lightbox-media {
    display: block;
    max-width: 100%;
    max-height: min(82vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    background: transparent;
}

@media (max-width: 575.98px) {
    .home-gallery-modal-dialog,
    .home-gallery-modal-dialog:has(.home-gallery-modal-grid[data-count="1"]),
    .home-gallery-modal-dialog:has(.home-gallery-modal-grid[data-count="2"]) {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .home-gallery-modal-grid,
    .home-gallery-modal-grid[data-count="2"] {
        grid-template-columns: 1fr;
    }

    .home-gallery-modal-body {
        padding: 0.75rem;
        max-height: 88vh;
    }

    .home-gallery-modal-item {
        min-height: 200px;
    }

    .home-gallery-lightbox-stage {
        min-height: 58vh;
        max-height: 78vh;
    }

    .home-gallery-lightbox-media {
        max-height: 76vh;
    }
}

html[data-bs-theme="dark"] .home-gallery-modal-body {
    background: linear-gradient(180deg, #1a2030 0%, #141a28 100%);
}

html[data-bs-theme="dark"] .home-gallery-modal-item {
    background: #232b3d;
    border-color: rgba(131, 152, 255, 0.18);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

html[data-bs-theme="dark"] .home-gallery-modal-content {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

html[data-bs-theme="dark"] .home-gallery-lightbox-body {
    background: #090d14;
}

html[data-bs-theme="dark"] .home-gallery-lightbox-content {
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.62);
}

.home-map-outer {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.home-map-inner {
    width: 100%;
    height: 100%;
}

.home-comment-open-btn {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

#allCommentsModal .modal-content {
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.4);
    border: none;
    overflow: hidden;
}

#allCommentsModal .modal-header {
    background: var(--primary-gradient);
    border: none;
    padding: 1.5rem 2rem;
}

#allCommentsModal .modal-title {
    font-size: 1.5rem;
}

#allCommentsModal .modal-header .btn-close {
    opacity: 1;
    filter: brightness(0) invert(1);
}

#allCommentsModal .modal-body {
    max-height: 75vh;
    overflow-y: auto;
    padding: 2rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

#allCommentsModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 25px 25px;
}

#allCommentsModal .modal-footer .btn {
    border-radius: 12px;
    padding: 10px 24px;
}

.home-comments-empty-icon {
    font-size: 3rem;
    color: #6c757d;
}

.home-contact-icon {
    width: 50px;
    height: 50px;
}

.about-us-card {
    position: relative;
    overflow: hidden;
}

.about-us-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary-gradient);
}

.about-us-card-body {
    padding: 1.35rem 1.35rem 1.5rem;
}

@media (min-width: 992px) {
    .about-us-card-body {
        padding: 1.5rem 2rem 1.75rem;
    }
}

.about-us-card .about-us-title.section-header {
    padding-bottom: 0.75rem;
    margin-bottom: 0.65rem;
}

.about-us-card .about-us-title.section-header::after {
    width: 64px;
}

.about-us-subtitle {
    color: #5f6d85;
    font-size: calc(0.98rem + 2px);
    line-height: 1.6;
    margin: 0 0 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.14);
    text-wrap: balance;
}

.about-us-list {
    margin: 0;
}

.about-us-columns {
    column-count: 2;
    column-gap: 2rem;
    column-fill: balance;
}

.about-us-columns .about-us-item {
    break-inside: avoid;
    margin-bottom: 0.7rem;
}

.about-us-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    font-size: calc(0.98rem + 2px);
    line-height: 1.6;
    color: #3d4f66;
    transition: background-color 0.2s ease;
}

.about-us-item:hover {
    background: rgba(102, 126, 234, 0.06);
}

.about-us-item i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1rem;
    color: #667eea;
}

.about-us-item span {
    flex: 1;
}

@media (max-width: 991.98px) {
    .about-us-columns {
        column-count: 1;
        column-gap: 0;
    }

    .about-us-columns .about-us-item {
        margin-bottom: 0.6rem;
    }
}

/* Группы комментариев после первых четырёх; показ через JS задаёт inline display */
.comment-group {
    display: none;
}

#hideComments {
    display: none;
}

@media (max-width: 992px) {
    .hero-section {
        border-radius: 22px;
        margin-bottom: 1.5rem;
    }

    .home-hero-lead {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .section-header {
        font-size: 1.45rem;
        margin-bottom: 1.1rem;
        padding-bottom: 0.8rem;
    }

    .section-header::after {
        width: 64px;
        height: 4px;
    }

    .stat-icon {
        width: 58px;
        height: 58px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .home-map-outer {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .hero-section::before,
    .hero-section::after {
        display: none;
    }

    .comment-card,
    .contact-item,
    .gallery-item,
    .service-item,
    .about-us-item {
        border-radius: 14px;
    }

    .gallery-grid-scroll .gallery-grid {
        grid-auto-columns: minmax(240px, 280px);
        column-gap: 0.85rem;
        row-gap: 0.85rem;
    }

    .home-map-outer {
        height: 300px;
        border-radius: 14px;
    }

    .bot-container {
        width: calc(100vw - 1rem);
        right: 0.5rem;
        bottom: 0.5rem;
        top: calc(68px + env(safe-area-inset-top, 0px) + 0.5rem);
        max-height: none;
    }

    .bot-container .card {
        height: 100%;
    }

    .user-admin-chat-container {
        width: calc(100vw - 1rem);
        right: 0.5rem;
        bottom: 0.5rem;
        top: calc(68px + env(safe-area-inset-top, 0px) + 0.5rem);
        max-height: none;
    }

    .user-admin-chat-container .card {
        height: 100%;
    }

    .bot-toggle {
        width: 56px;
        height: 56px;
        right: 0.9rem;
        bottom: 2.55rem;
        font-size: 1.2rem;
    }

    .user-admin-chat-toggle {
        width: 50px;
        height: 50px;
        right: 1.2rem;
        bottom: 9.35rem;
        font-size: 1.1rem;
    }

    .bot-toggle .fab-label,
    .user-admin-chat-toggle .fab-label {
        max-width: 150px;
        min-width: 118px;
        font-size: 0.72rem;
        padding: 0.28rem 0.48rem;
    }

    #allCommentsModal .modal-dialog {
        margin: 0.5rem;
    }

    #allCommentsModal .modal-header {
        padding: 1rem 1.1rem;
    }

    #allCommentsModal .modal-title {
        font-size: 1.15rem;
    }

    #allCommentsModal .modal-body,
    #allCommentsModal .modal-footer {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-us-item {
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .section-header {
        font-size: 1.25rem;
    }

    .home-hero-badge {
        font-size: 0.8rem;
    }

    .home-hero-lead {
        font-size: 1rem;
        line-height: 1.5;
    }

    .home-service-icon-circle,
    .home-contact-icon {
        width: 42px;
        height: 42px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .bot-toggle {
        width: 52px;
        height: 52px;
        right: 0.75rem;
        bottom: 2.25rem;
    }

    .user-admin-chat-toggle {
        width: 46px;
        height: 46px;
        right: 1.05rem;
        bottom: 8.25rem;
        font-size: 1rem;
    }

    .bot-toggle .fab-label,
    .user-admin-chat-toggle .fab-label {
        max-width: 136px;
        min-width: 104px;
        font-size: 0.68rem;
        right: -2px;
    }
}

@media (pointer: coarse) {
    .stat-card:hover,
    .comment-card:hover,
    .gallery-item:hover,
    .contact-item:hover,
    .service-item:hover,
    .btn:hover,
    .bot-toggle:hover,
    .user-admin-chat-toggle:hover {
        transform: none !important;
    }
}

/* Тёмная тема: hero на главной (перекрывает var(--primary-gradient) из этого файла) */
html[data-theme="dark"] .hero-section,
html[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1e2433 0%, #28213a 52%, #171a24 100%) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42) !important;
}

html[data-theme="dark"] .hero-section::before,
html[data-bs-theme="dark"] .hero-section::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%) !important;
}

html[data-theme="dark"] .hero-section::after,
html[data-bs-theme="dark"] .hero-section::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%) !important;
}

html[data-theme="dark"] .home-hero-badge.bg-light,
html[data-bs-theme="dark"] .home-hero-badge.bg-light {
    background: #242a38 !important;
    color: #dde3ef !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Бот записи: тёмная тема (в этом файле — с asp-append-version, иначе кэш site-core) */
html[data-theme="dark"] .bot-toggle,
html[data-bs-theme="dark"] .bot-toggle {
    background: linear-gradient(135deg, #2a3142 0%, #342a48 100%) !important;
    border: 2px solid rgba(139, 158, 245, 0.32) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(139, 158, 245, 0.12) !important;
    animation: botPulseDark 2.5s ease-in-out infinite !important;
}

html[data-theme="dark"] .user-admin-chat-toggle,
html[data-bs-theme="dark"] .user-admin-chat-toggle {
    background: linear-gradient(135deg, #295743 0%, #26475e 100%) !important;
    border: 2px solid rgba(117, 199, 165, 0.36) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(117, 199, 165, 0.14) !important;
}

html[data-theme="dark"] .user-admin-chat-toggle:hover,
html[data-bs-theme="dark"] .user-admin-chat-toggle:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(117, 199, 165, 0.24) !important;
}

html[data-theme="dark"] .bot-toggle::before,
html[data-bs-theme="dark"] .bot-toggle::before {
    background: linear-gradient(135deg, #3a4560 0%, #45325f 100%) !important;
    opacity: 0.35 !important;
}

html[data-theme="dark"] .bot-toggle:hover,
html[data-bs-theme="dark"] .bot-toggle:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(139, 158, 245, 0.22) !important;
}

@keyframes botPulseDark {
    0%, 100% {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(139, 158, 245, 0.12);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(139, 158, 245, 0.1);
    }
}

html[data-theme="dark"] .bot-container .card,
html[data-bs-theme="dark"] .bot-container .card {
    background: #1e2430 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] .user-admin-chat-container .card,
html[data-bs-theme="dark"] .user-admin-chat-container .card {
    background: #1e2430 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] .bot-container .bot-card-header,
html[data-bs-theme="dark"] .bot-container .bot-card-header,
html[data-theme="dark"] .bot-container .card-header.bot-card-header,
html[data-bs-theme="dark"] .bot-container .card-header.bot-card-header,
html[data-theme="dark"] .bot-container .card > .card-header,
html[data-bs-theme="dark"] .bot-container .card > .card-header {
    background: linear-gradient(135deg, #1e2433 0%, #28213a 52%, #171a24 100%) !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #e8ecf4 !important;
}

html[data-theme="dark"] .bot-container .bot-close-btn,
html[data-bs-theme="dark"] .bot-container .bot-close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #e2e6ef !important;
}

html[data-theme="dark"] .bot-container .bot-close-btn:hover,
html[data-bs-theme="dark"] .bot-container .bot-close-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

html[data-theme="dark"] .bot-container .card-body,
html[data-bs-theme="dark"] .bot-container .card-body {
    background: #1e2430 !important;
    color: #e2e6ef !important;
}

html[data-theme="dark"] .user-admin-chat-body,
html[data-bs-theme="dark"] .user-admin-chat-body {
    background: #1e2430 !important;
    color: #e2e6ef !important;
}

html[data-theme="dark"] .user-admin-chat-messages,
html[data-bs-theme="dark"] .user-admin-chat-messages {
    background: #161b26 !important;
    border-color: rgba(139, 158, 245, 0.2) !important;
}

html[data-theme="dark"] .user-admin-chat-message,
html[data-bs-theme="dark"] .user-admin-chat-message {
    background: #222a39 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e2e6ef !important;
}

html[data-theme="dark"] .user-admin-chat-message.is-mine,
html[data-bs-theme="dark"] .user-admin-chat-message.is-mine {
    background: rgba(61, 79, 114, 0.52) !important;
    border-color: rgba(139, 158, 245, 0.22) !important;
}

html[data-theme="dark"] .user-admin-chat-message-meta,
html[data-bs-theme="dark"] .user-admin-chat-message-meta,
html[data-theme="dark"] .user-admin-chat-counter,
html[data-bs-theme="dark"] .user-admin-chat-counter {
    color: #9aa3b8 !important;
}

html[data-theme="dark"] .user-admin-chat-presence,
html[data-bs-theme="dark"] .user-admin-chat-presence {
    color: #7dd3fc !important;
}

html[data-theme="dark"] .user-admin-chat-message-status,
html[data-bs-theme="dark"] .user-admin-chat-message-status {
    color: #b6bfd4 !important;
}

html[data-theme="dark"] .user-admin-chat-message-status.is-read,
html[data-bs-theme="dark"] .user-admin-chat-message-status.is-read {
    color: #67e8f9 !important;
}

html[data-theme="dark"] .user-admin-chat-search .input-group-text,
html[data-bs-theme="dark"] .user-admin-chat-search .input-group-text {
    background: rgba(86, 92, 145, 0.35) !important;
    border-color: rgba(139, 158, 245, 0.32) !important;
    color: #d5dcf3 !important;
}

html[data-theme="dark"] .user-admin-chat-search .form-control,
html[data-bs-theme="dark"] .user-admin-chat-search .form-control,
html[data-theme="dark"] .user-admin-chat-search .btn,
html[data-bs-theme="dark"] .user-admin-chat-search .btn {
    border-color: rgba(139, 158, 245, 0.32) !important;
}

html[data-theme="dark"] .user-admin-chat-template-group .input-group-text,
html[data-bs-theme="dark"] .user-admin-chat-template-group .input-group-text {
    background: rgba(67, 147, 166, 0.35) !important;
    border-color: rgba(120, 193, 224, 0.35) !important;
    color: #d5f3ff !important;
}

html[data-theme="dark"] .user-admin-chat-template-group .form-select,
html[data-bs-theme="dark"] .user-admin-chat-template-group .form-select,
html[data-theme="dark"] .user-admin-chat-template-group .btn,
html[data-bs-theme="dark"] .user-admin-chat-template-group .btn {
    border-color: rgba(120, 193, 224, 0.35) !important;
}

html[data-theme="dark"] .bot-toggle .fab-label,
html[data-bs-theme="dark"] .bot-toggle .fab-label,
html[data-theme="dark"] .user-admin-chat-toggle .fab-label,
html[data-bs-theme="dark"] .user-admin-chat-toggle .fab-label {
    color: #dbe3f0;
    background: linear-gradient(180deg, rgba(30, 36, 51, 0.95) 0%, rgba(24, 29, 42, 0.95) 100%);
    border-color: rgba(139, 158, 245, 0.24);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .bot-toggle .fab-label::before,
html[data-bs-theme="dark"] .bot-toggle .fab-label::before,
html[data-theme="dark"] .user-admin-chat-toggle .fab-label::before,
html[data-bs-theme="dark"] .user-admin-chat-toggle .fab-label::before {
    border-left-color: rgba(139, 158, 245, 0.24);
    border-top-color: rgba(139, 158, 245, 0.24);
}

html[data-theme="dark"] .user-admin-chat-delete-btn,
html[data-bs-theme="dark"] .user-admin-chat-delete-btn {
    color: #ff7b87;
}

html[data-theme="dark"] .bot-container .btn-gradient,
html[data-bs-theme="dark"] .bot-container .btn-gradient {
    background: linear-gradient(135deg, #3d4f72 0%, #4a3668 100%) !important;
    border: 1px solid rgba(139, 158, 245, 0.28) !important;
    color: #f0f3fa !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .bot-container .btn-gradient:hover,
html[data-bs-theme="dark"] .bot-container .btn-gradient:hover {
    background: linear-gradient(135deg, #4a5d84 0%, #574078 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-1px);
}

html[data-theme="dark"] .bot-container .form-text,
html[data-theme="dark"] .bot-container .text-muted,
html[data-bs-theme="dark"] .bot-container .form-text,
html[data-bs-theme="dark"] .bot-container .text-muted {
    color: #9aa3b8 !important;
}
