﻿/* ================= Base ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background: #fff; /* белый фон */
}

/* ===== THEME (emerald) ===== */
:root {
    --accent: #0B8F6B; /* изумрудный */
    --accent-bg: #E6F3EF; /* светлый оттенок */
}

/* ================= HEADER ================= */
.header {
    padding: 0;
}
    .header .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
        padding: 15px 1.5rem;
    }

.logo {
    font-size: 20px;
    font-weight: bold;
}

    .logo span {
        color: var(--accent);
    }

.lang-login {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-btn {
    border: none;
    background: #f2f2f2;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.login {
    text-decoration: none;
    color: var(--accent);
}

.header .slogan {
    color: var(--accent);
    font-weight: 400;
    line-height: 1.1;
}

/* ================= HERO ================= */
.hero {
    background: #006a5c;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-buttons {
    margin-top: 20px;
}

.btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* Split layout variant (text left, buttons right) */
.hero.hero-split {
    text-align: left;
}
    /* override centering */
    .hero.hero-split .hero-text h1 {
        margin: 0 0 8px;
        font-weight: 700;
        font-size: 56px;
    }

        .hero.hero-split .hero-text h1 span {
            color: var(--accent);
        }
    /* green */
    .hero.hero-split .hero-actions .btn {
        background: #333;
        color: #fff;
        border: none;
        padding: 12px 24px;
        border-radius: 6px;
    }

/* ================= LIST (Announcements) ================= */
.announcements {
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
}

.announcement-item {
    background: #f5f6f6;
    border-radius: 8px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    width: 100%;
    box-sizing: border-box;
}

.announcement-left {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.address {
    margin-top: 6px;
    font-size: 14px;
    color: #6b6b6b;
}

.announcement-right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    text-align: right;
    flex-shrink: 0;
}

.status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #555;
    font-size: 14px;
}

.announcement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all .18s ease;
}

/* ================= SECTIONS ================= */
.about {
    text-align: center;
    padding: 40px 20px;
}

    .about h2 span {
        color: var(--accent);
    }

.how-to {
    text-align: center;
    padding: 40px 20px;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.step {
    border: 1px solid var(--accent);
    padding: 20px;
    border-radius: 10px;
    width: 250px;
}

.advantages {
    text-align: center;
    padding: 40px 20px;
}

.adv-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

    .adv-list span {
        border: 1px solid var(--accent);
        padding: 10px 20px;
        border-radius: 8px;
    }

.partners {
    text-align: center;
    padding: 40px 20px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

    .logos img {
        max-height: 40px;
    }

/* ================= THEME HELPERS ================= */
.page-subtitle {
    font-size: 0.95rem;
}

.page-title {
    font-weight: 700;
    color: var(--accent);
}

/* Cards / Badges */
.ad-card {
    border: 1px solid #d8eee8;
    border-radius: 12px;
}

.ad-title {
    font-weight: 600;
    color: #1d1f23;
    text-decoration: none;
}

    .ad-title:hover {
        text-decoration: underline;
    }

/* success pill closer to emerald */
.badge.ad-badge-success {
    background: var(--accent-bg);
    color: var(--accent);
}

.badge.ad-badge-secondary {
    background: #eef0f3;
    color: #6c757d;
}

.badge.ad-badge-warning {
    background: #fff2e0;
    color: #b26b00;
}

.badge.ad-badge-info {
    background: #e7f1ff;
    color: #1971c2;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Nav */
.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link-custom {
    color: #1d1f23;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
}

    .nav-link-custom:hover, .nav-link-custom.active {
        color: var(--accent);
    }

/* Buttons */
.btn-teal {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 14px 36px;
    font-weight: 600;
}

    .btn-teal:hover {
        filter: brightness(0.95);
    }

/* Star button — ONLY the green star, no visible circle */
.btn-star {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

    .btn-star:hover {
        background: transparent;
    }

    .btn-star .bi {
        font-size: 1rem;
    }

/* ================= CREATE PAGE helpers ================= */
.form-narrow {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.type-switch {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 24px;
}

.btn-pill {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.btn-check:checked + .btn-pill {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-pill:hover {
    background: var(--accent-bg);
}

/* ================= FOOTER — 4 columns like the mock ================= */
.footer {
    background: #111;
    color: #bdbdbd;
    padding: 40px 0;
}

    .footer a {
        color: #bdbdbd;
        text-decoration: none;
    }

        .footer a:hover {
            color: #fff;
        }

    .footer .logo span {
        color: var(--accent);
    }

.footer-grid {
    display: grid;
    grid-template-columns: 320px 1fr 1fr 1fr; /* brand + 3 equal columns */
    gap: 32px 56px;
    align-items: start;
}

.footer-brand .logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-contact > * {
    margin: 8px 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer, .footer a {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= Sticky footer layout ================= */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}
/* контент тянется, футер уходит вниз */

/* ================= My.cshtml ================= */
/* Tabs */
.tabs-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-tab {
    border: 1px solid #d8eee8;
    background: #fff;
    color: #445;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: .9rem;
}

    .btn-tab.active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }

    .btn-tab:hover {
        background: var(--accent-bg);
    }

/* Cards */
.myad-card {
    border: 1px solid #e6f3ef;
    border-radius: 12px;
}

/* Status chips */
.chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.chip-new {
    background: var(--accent-bg);
    color: var(--accent);
}

.chip-inprogress {
    background: #eef0f3;
    color: #6b7280;
}

.chip-done {
    background: #e5f6ef;
    color: var(--accent);
}

.chip-deleted {
    background: #f4e7e7;
    color: #9b3b3b;
}

/* Layout */
.myad-item {
    display: flex;
    align-items: stretch;
    min-height: 96px;
}

.myad-left {
    display: flex;
    flex-direction: column;
}

    .myad-left .myad-date {
        margin-top: auto;
    }

.myad-right .small {
    display: block;
}

.myad-right .btn {
    margin-top: 8px;
}

/* Title row: status to the right of title */
.myad-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ================= Login (Account/Login) ================= */
.auth-two-col {
    margin-top: 10px;
}

/* Left column */
.auth-hero-title {
    font-size: 32px;
    line-height: 1.35;
    font-weight: 600;
    color: #2d2f32;
    max-width: 560px;
}

.accent-link {
    color: var(--accent);
    text-decoration: none;
}

    .accent-link:hover {
        text-decoration: underline;
    }

/* Центрируем кнопку и ссылку, без растяжения */
.auth-hero .auth-hero-btn {
    display: block;
    width: max-content;
    width: fit-content;
    margin: 28px auto 0; /* по центру */
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8a8f98;
    margin: 16px auto 8px;
    max-width: 260px; /* тоже центр */
}

    .auth-divider::before, .auth-divider::after {
        content: "";
        height: 3px;
        background: #d7dadd;
        flex: 1;
        border-radius: 2px;
    }

.auth-hero .auth-social {
    display: block;
    width: max-content;
    width: fit-content;
    margin: 0 auto; /* по центру */
    color: #1f75cb;
    text-decoration: none;
}

    .auth-hero .auth-social:hover {
        text-decoration: underline;
    }

/* Центрируем "Забыли пароль?" на экране входа */
.auth-hero .auth-forgot {
    text-align: center;
}

    .auth-hero .auth-forgot a {
        display: block;
        width: max-content; /* ширина по тексту */
        width: fit-content;
        margin: 0 auto; /* по центру */
    }

.auth-forgot a {
    color: #6b7280;
    text-decoration: none;
}

    .auth-forgot a:hover {
        text-decoration: underline;
    }

/* Right panel */
.auth-panel {
    background: #006a5c; /* зелёная панель */
    border-radius: 12px;
    padding: 28px;
    color: #fff;
    max-width: 520px;
}

.auth-panel-header {
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.auth-input {
    background: #fff;
    border: none;
    border-radius: 4px;
    height: 44px;
    margin-bottom: 14px;
}

    .auth-input::placeholder {
        color: #9aa0a6;
    }

.auth-submit {
    width: 100%;
    background: #2b2b2b;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 12px 16px;
    font-weight: 600;
    margin-top: 4px;
}

    .auth-submit:hover {
        filter: brightness(1.05);
    }

.auth-bottom {
    text-align: center;
    margin-top: 16px;
    color: #e9ecef;
    font-size: 14px;
}

.accent-link-invert {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.3);
}

    .accent-link-invert:hover {
        border-bottom-color: transparent;
    }

/* Mobile stacking */
@media (max-width: 991.98px) {
    .auth-panel {
        margin-left: auto;
        margin-right: auto;
    }
}


/* ===== Register (Account/Register) ===== */
.register {
    max-width: 520px;
    text-align: center;
}

.register-title {
    font-size: 32px;
    line-height: 1.35;
    font-weight: 700;
    color: #2d2f32;
    margin-bottom: 18px;
}

.register .accent-link {
    color: var(--accent);
    text-decoration: none;
}

    .register .accent-link:hover {
        text-decoration: underline;
    }

/* переключатель типа */
.segmented {
    display: flex;
    gap: 12px;
    justify-content: center;
}

    .segmented .btn-pill {
        padding: 8px 16px;
    }

.btn-check:checked + .btn-pill {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* поля */
.register-form {
    margin-top: 6px;
}

.register-input {
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
}

    .register-input .input-group-text {
        background: #fff;
        border-left: 0;
    }

.register-submit {
    display: block;
    width: 180px;
    margin: 10px auto 0;
    border-radius: 10px;
}

/* FAQ под кнопкой */
.register-faq {
    margin-top: 14px;
    font-size: 14px;
    color: #2d2f32;
}

    .register-faq a {
        text-decoration: none;
    }

        .register-faq a:hover {
            text-decoration: underline;
        }


/* Поля регистрации — скругление и лёгкая зелёная рамка */
.register-input {
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(11,143,107,.35);
    box-shadow: none;
}

    .register-input:focus {
        border-color: var(--accent);
        outline: 0;
        box-shadow: 0 0 0 3px rgba(11,143,107,.12);
    }

/* ============== Catalog  ============== */

/* Контейнер поиска */
.catalog-search {
    display: flex;
    align-items: center;
    margin-top: 10px; 
}

    /* Поле ввода */
    .catalog-search .form-control {
        border-radius: 10px 0 0 10px;
        border: 1px solid #d8eee8;
        height: 42px;
        min-width: 260px;
    }

    /* Кнопка */
    .catalog-search .btn-teal {
        border-radius: 0 10px 10px 0;
        height: 42px;
        padding: 0 24px;
    }

/* Сами заголовки категорий */
.catalog-heading {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

/* Список под категорией */
.catalog-list {
    list-style: none;
    padding-left: 0;
    margin-top: 6px;
}

    .catalog-list li {
        margin-bottom: 4px;
        color: #0B8F6B;
        cursor: pointer;
    }

        .catalog-list li:hover {
            text-decoration: underline;
        }

    .catalog-list .text-muted {
        color: #999 !important;
    }

/* ===== Catalog page ===== */

/* Название группы */
.catalog-heading {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4px;
}

/* Количество объявлений под заголовком */
.catalog-count {
    font-size: 12px;
    color: #888;
    background: #f2f2f2;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
}

/* Список */
.catalog-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .catalog-list li {
        margin-bottom: 4px;
        color: #0B8F6B;
        cursor: pointer;
    }

        .catalog-list li:hover {
            text-decoration: underline;
        }

    .catalog-list .text-muted {
        color: #999 !important;
    }



.catalog-header {
    align-items: flex-end;
}

.catalog-search {
    min-width: 280px;
}

    .catalog-search .form-control {
        border-radius: 8px 0 0 8px;
        height: 44px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .catalog-search .btn {
        border-radius: 0 8px 8px 0;
        height: 44px;
        font-weight: 600;
    }

/* Группы категорий */
.catalog-group {
    min-width: 220px;
}

.catalog-heading {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4px;
}

.catalog-count {
    font-size: 12px;
    color: #777;
    background: #f2f2f2;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.catalog-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .catalog-list li {
        margin-bottom: 4px;
        color: #0B8F6B;
        cursor: pointer;
        font-size: 15px;
    }

        .catalog-list li:hover {
            text-decoration: underline;
        }

    .catalog-list .text-muted {
        color: #999 !important;
    }

/* адаптив */
@media (max-width: 768px) {
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-search {
        width: 100%;
        margin-top: 10px;
    }
}




/* Notes page specific */
.myad-card {
    border-radius: 10px;
}

.myad-item {
    padding: 18px;
}

.ad-title {
    font-size: 18px;
}

.chip {
    font-size: 0.8rem;
    padding: 4px 10px;
}



/* ═══════════════════════════════════════════════════════════════
   AI WIDGET (плавающий виджет справа снизу)
   ═══════════════════════════════════════════════════════════════ */

/* ── Контейнер ── */
#ai-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* ── Кнопка-триггер ── */
.ai-widget-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0B8F6B 0%, #0a7a5c 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(11,143,107,.40);
    transition: box-shadow .2s, transform .15s;
    user-select: none;
}

    .ai-widget-btn:hover {
        box-shadow: 0 6px 28px rgba(11,143,107,.50);
        transform: translateY(-2px);
    }

    .ai-widget-btn:active {
        transform: translateY(0);
    }

.ai-widget-btn__icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.ai-widget-btn__label {
    white-space: nowrap;
}

/* ── Окно чата ── */
.ai-widget-window {
    display: none;
    flex-direction: column;
    width: 360px;
    height: 500px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 50px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden;
    transform-origin: bottom right;
}

.ai-widget-window--visible {
    display: flex;
    animation: aiWidgetIn .22s cubic-bezier(.34,1.3,.7,1);
}

@keyframes aiWidgetIn {
    from {
        opacity: 0;
        transform: scale(.88) translateY(16px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Header ── */
.ai-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0B8F6B 0%, #0a7a5c 100%);
    flex-shrink: 0;
}

.ai-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.ai-widget-header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-widget-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    line-height: 1.2;
}

.ai-widget-status {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.ai-widget-dot {
    width: 7px;
    height: 7px;
    background: #7fffce;
    border-radius: 50%;
    display: inline-block;
    animation: aiPulse 2s infinite;
}

@keyframes aiPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .45;
    }
}

.ai-widget-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.75);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    line-height: 1;
    transition: background .15s, color .15s;
}

    .ai-widget-close:hover {
        background: rgba(255,255,255,.18);
        color: #fff;
    }

/* ── История ── */
.ai-widget-history {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7faf9;
}

    .ai-widget-history::-webkit-scrollbar {
        width: 4px;
    }

    .ai-widget-history::-webkit-scrollbar-track {
        background: transparent;
    }

    .ai-widget-history::-webkit-scrollbar-thumb {
        background: #c4d8d2;
        border-radius: 4px;
    }

/* ── Сообщения ── */
.ai-msg {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    max-width: 88%;
}

.ai-msg--bot {
    align-self: flex-start;
}

.ai-msg--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-msg__avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0B8F6B, #0a7a5c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.ai-msg__bubble {
    background: #fff;
    border: 1px solid #deeee8;
    border-radius: 14px 14px 14px 4px;
    padding: 9px 13px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #2d2f32;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.ai-msg--user .ai-msg__bubble {
    background: linear-gradient(135deg, #0B8F6B, #0a7a5c);
    color: #fff;
    border-color: transparent;
    border-radius: 14px 14px 4px 14px;
}

/* ── Сгенерированный блок ── */
.ai-gen-block {
    margin-top: 9px;
    background: #eef8f4;
    border: 1px solid #b2d9cc;
    border-radius: 8px;
    padding: 9px 11px;
}

.ai-gen-text {
    font-size: 12.5px;
    color: #224039;
    line-height: 1.55;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.btn-ai-apply {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0B8F6B;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 12.5px;
    cursor: pointer;
    transition: opacity .15s;
}

    .btn-ai-apply:hover {
        opacity: .85;
    }

/* ── Typing indicator ── */
.ai-widget-typing {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    padding: 0 12px 8px;
    background: #f7faf9;
    flex-shrink: 0;
}

.ai-typing-dots {
    background: #fff;
    border: 1px solid #deeee8;
    border-radius: 14px 14px 14px 4px;
    padding: 9px 14px;
    display: flex;
    gap: 5px;
    align-items: center;
}

    .ai-typing-dots span {
        width: 6px;
        height: 6px;
        background: #0B8F6B;
        border-radius: 50%;
        display: inline-block;
        animation: aiDot 1.2s infinite ease-in-out;
    }

        .ai-typing-dots span:nth-child(2) {
            animation-delay: .2s;
        }

        .ai-typing-dots span:nth-child(3) {
            animation-delay: .4s;
        }

@keyframes aiDot {
    0%, 80%, 100% {
        transform: scale(.65);
        opacity: .35;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Footer ── */
.ai-widget-footer {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    padding: 10px 12px;
    border-top: 1px solid #e4eeea;
    background: #fff;
    flex-shrink: 0;
}

.ai-widget-input {
    flex: 1;
    resize: none;
    border: 1px solid #c4d8d2;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.45;
    color: #2d2f32;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    min-height: 38px;
    max-height: 110px;
    overflow-y: auto;
}

    .ai-widget-input:focus {
        border-color: #0B8F6B;
        box-shadow: 0 0 0 3px rgba(11,143,107,.12);
    }

    .ai-widget-input::placeholder {
        color: #aab9b4;
    }

.ai-widget-send {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0B8F6B, #0a7a5c);
    color: #fff;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .15s, transform .1s;
}

    .ai-widget-send:hover {
        opacity: .88;
        transform: scale(1.05);
    }

    .ai-widget-send:disabled {
        opacity: .4;
        cursor: not-allowed;
        transform: none;
    }

/* ── Подсветка поля описания после вставки ── */
.ai-field-highlight {
    border-color: #0B8F6B !important;
    box-shadow: 0 0 0 3px rgba(11,143,107,.2) !important;
    transition: border-color .3s, box-shadow .3s !important;
}

/* ── Адаптив ── */
@media (max-width: 480px) {
    #ai-widget {
        bottom: 16px;
        right: 16px;
    }

    .ai-widget-window {
        width: calc(100vw - 32px);
        height: 420px;
    }

    .ai-widget-btn__label {
        display: none;
    }

    .ai-widget-btn {
        padding: 13px;
        border-radius: 50%;
    }
}

/* ── Ссылка внутри пузыря бота ── */
.ai-msg-link {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(11,143,107,.18);
}

    .ai-msg-link a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #0B8F6B;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: opacity .15s;
    }

        .ai-msg-link a:hover {
            opacity: .75;
            text-decoration: underline;
        }

    .ai-msg-link i {
        font-size: 12px;
    }