/* ================= ROOT ================= */
:root {
    --primary: #00b15e;
    --primary-hover: #00bfa5;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --text-main: #334155;
    --text-muted: #64748b;
    --danger: #ef4444;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

* {
  word-break: normal; !important;
  overflow-wrap: break-word; !important;
  hyphens: auto; !important;
}




body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;

}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ================= LAYOUT ================= */
.content-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
    min-height: 70vh;
}

/* ================= HEADER ================= */
.main-header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGO */
.logo {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    color: var(--dark);
    flex-shrink: 0;

}

.main-footer .logo {
    background: linear-gradient(45deg, var(--primary) 0%, var(--dark) 100%);
    padding: 0.3em;
    border-radius: var(--radius);
}

.logo span { color: var(--primary); }

/* NAV INNER */
.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: space-between;

}

/* NAV MENU */
.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: var(--dark-light);
}

.nav-link:hover { color: var(--primary); }

/* ACTIONS */
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ================= DROPDOWN ================= */
.dropdown { position: relative; }

.dropdown-content {
    position: absolute;
    top: 110%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content li a {
    display: block;
    padding: 12px 18px;
    font-size: 0.9rem;
}

.dropdown-content li a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

/* ================= HERO ================= */
.hero-section {
    text-align: center;
    padding: clamp(60px, 8vw, 100px) 20px;
    background: radial-gradient(circle at center, #f0fdf4 0%, #ffffff 100%);
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span { color: var(--primary); }

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

/* ================= GRID ================= */
.services-page__list,
.categories-types__list,
.programmers-list,
.categories-type__services-list,
.programmer-details__services-list {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;


}



.categories-types__item {
    display: flex;
    flex-direction: column;
flex: 1 1 200px;    align-items: center;
    align-content: center;
    text-align: center;
    gap: 0.3em;
}

.categories-types__image {
    flex:1 1 0;
    max-width: 70%;
}

/* ================= CARDS ================= */
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card__title {
    padding: 20px 20px 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.service-card__description {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.programmers-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.programmer-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    padding: 1em;
}

.programmer-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.programmers-list__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.programmers-list__name {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.programmer-details__header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.programmer-details__image{
    height: 200px;
    object-fit: contain;
}


.service-card:hover {
     transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-details__comment {
    border-top: 1px solid var(--gray-200);
    padding: 1em;
}



.service-details__title{
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.service-details__type{
    font-size: 1.5rem;

}

.service-details__type span{
    font-weight: bold;

}

.service-details__type span:hover{
    color: var(--primary-hover);
}

.service-details__price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.3em;
    margin-top: 1em;

}

.service-details__content {
    font-size: 1.2rem;
    margin-bottom: 0.5em;

}

.service-details__programmer span{
    font-weight: bold;
}

.service-details__programmer{
    font-style: italic;
}

.service-details__programmer span:hover {
    color: var(--primary-hover);
}

.service-details__price span {
    color: var(--primary);
}

.service-details__technologies {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;

}

.service-details__technology{
    display: flex;
    flex-direction: column;
    margin-top: 0.5em;
    width: 5em;
    align-items: center;
    align-content: center;
}

.categories-technology {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2em;
    text-align: center;
}

.categories-technology img {
    width: 3em;
}

.categories-types__item {
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1em;
    align-items: center;
}

.categories-types__item:hover {
    border-color: var(--primary);
}

.categories-types__item img{
    display: block;
    max-width: 100%;
}





.categories-type__image {
    width: 60%;
}

.categories-type__header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories-type__name {
    color: var(--primary);
    margin-top: 1em;
    font-size: 2em;
}



.is-hidden {
    display: none;
}

.services-page__pagination-link:hover {
     color: var(--primary);
}

.services-page__pagination{
    display: flex;
    flex-direction: row;
    gap: 2em;
    flex-wrap: wrap;
    margin-top: 1em;
}

/* ================= FORMS ================= */
form[class$="-form"] {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: clamp(24px,4vw,40px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin: 40px auto;
}

form label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    margin-bottom: 16px;
}
.errorlist {
    color: var(--danger);
}

.helptext, .comments-details__timestamp {
    font-style: italic;
    font-size: 0.8rem;
}

form fieldset {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    background: var(--gray-50);
}

form fieldset legend {
    font-weight: 600;
    padding: 0 8px;
    font-size: 1rem;
}

#id_technologies {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

#id_technologies div {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 10px 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}


#id_technologies {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;

    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

#id_technologies::-webkit-scrollbar {
    width: 6px;
}

#id_technologies::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

#id_technologies::-webkit-scrollbar-track {
    background: var(--gray-50);
}





#id_technologies div:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

#id_technologies label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

#id_technologies input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}


/* ================= BUTTONS ================= */
.update-button, .delete-button, #toggleSearchBtn {
    margin-bottom: 1em;
}

.btn,
button[type="submit"],.update-button, .delete-button, #toggleSearchBtn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.upgrade-button {
    background-color: var(--primary) !important;
}

.upgrade-button:hover {
    background-color: #00bfa5 !important;
}

.btn--primary,
button[class*="--primary"], .update-button, .delete-button, #toggleSearchBtn {
    background: var(--dark);
    color: white;
    text-align: center
}

.btn--primary:hover, .update-button:hover, .delete-button:hover, #toggleSearchBtn:hover {
    background: var(--primary);
}

#id_desc_price {
    appearance: none;
    -webkit-appearance: none;
    width: 50px;
    height: 26px;
    background-color: var(--gray-50);
    border-radius: 26px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

#id_desc_price::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--white);
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

#id_desc_price:checked {
    background-color: var(--primary);
}

#id_desc_price:checked::before {
    transform: translateX(24px);
}


/* ================= FOOTER ================= */

.main-footer {
    background: var(--dark);
    color: white;
    padding: clamp(40px, 6vw, 60px) 0 30px;
    margin-top: 80px;
}

/* Grid */
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    flex-wrap: wrap;
    gap: 40px;

    justify-items: center;
    text-align: center;
}

.footer-grid > div {
    width: 100%;
}

.footer-grid h4 {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 16px;
}

.footer-grid p,
.footer-grid a {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--dark-light);
    padding-top: 24px;
    margin-top: 40px;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: var(--text-muted);
}




/* ================= MOBILE NAV ================= */
.menu-toggle {
    display: none;
}

@media (max-width: 900px) {

    .nav-inner {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85%, 380px); /* НЕ фиксирана */
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 32px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.08);
        transition: right 0.35s ease;
        overflow-y: auto;
        visibility: hidden;
    }

    .nav-inner.active {
        right: 0;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }

    .nav-actions {
        width: 100%;
        margin-top: auto;
        flex-direction: column;
    }

    .nav-actions .btn {
        width: 100%;
    }

    .menu-toggle {
        display: block;
        width: 28px;
        height: 22px;
        background: none;
        border: none;
        position: relative;
        cursor: pointer;
        z-index: 1100;
    }

    .menu-toggle span,
    .menu-toggle span::before,
    .menu-toggle span::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--dark);
        transition: 0.3s;
        left: 0;
    }

    .menu-toggle span { top: 50%; transform: translateY(-50%); }
    .menu-toggle span::before { top: -7px; }
    .menu-toggle span::after { bottom: -7px; }

    .menu-toggle.active span { background: transparent; }
    .menu-toggle.active span::before { transform: rotate(45deg); top: 0; }
    .menu-toggle.active span::after { transform: rotate(-45deg); bottom: 0; }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        margin-top: 10px;
    }

    .dropdown.mobile-open .dropdown-content {
        display: block;
    }
}

img {

    object-fit: contain; 
    object-position: top center;

}


/* ================= CHAT ================= */

.chat-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 420px;
    overflow-y: auto;
    padding: 16px;
}

/* row alignment */
.chat-row {
    display: flex;
    width: 100%;
}

.chat-row.own {
    justify-content: flex-end;
}

.chat-row.other {
    justify-content: flex-start;
}

/* bubble */
.chat-bubble {
    max-width: 70%;
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: var(--transition);
}

/* own message */
.chat-row.own .chat-bubble {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* meta */
.chat-meta {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

/* text */
.chat-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* file link */
.chat-file {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: inherit;
    text-decoration: underline;
}

/* ================= STICKY INPUT ================= */

.chat-input-bar {
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

.chat-input-bar input[type="text"] {
    flex: 1;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.chat-input-bar input[type="file"] {
    max-width: 160px;
}


.report-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CARD */
.report-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* HEADER */
.report-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.report-card__reason {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.report-card__date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* BODY */
.report-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-main);
}

.report-card__message strong,
.report-card__sender strong {
    color: var(--dark);
}

.report-card__description {
    margin-top: 6px;
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FOOTER */
.report-card__footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

/* EMPTY */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px dashed var(--gray-200);
}



/* ================= ALLAUTH STYLES ================= */

/* Основен контейнер за Allauth страници */
.allauth-container {
    max-width: 480px;
    margin: 40px auto;
    padding: clamp(28px, 5vw, 44px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* Заглавия в Allauth */
.allauth-container h1,
.allauth-container h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    text-align: center;
}

.allauth-container p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    text-align: center;
}

/* Стилизиране на формите и полетата */
.allauth-container form {
    display: flex;
    flex-direction: column;
}

.allauth-container form p {
    text-align: left;
    margin-bottom: 16px;
    width: 100%;
}

.allauth-container label {
    display: block;
    font-weight: 600;
    color: var(--dark-light);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.allauth-container input[type="text"],
.allauth-container input[type="email"],
.allauth-container input[type="password"],
.allauth-container input[type="url"],
.allauth-container select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.allauth-container input:focus,
.allauth-container select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 177, 94, 0.15);
}

/* Чекбокс "Запомни ме" (Remember Me) */
.allauth-container input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
}

.allauth-container form p label[for="id_remember"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}

/* Бутон за изпращане (Login, Register, Reset) */
.allauth-container button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    background: var(--dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    margin-top: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.allauth-container button[type="submit"]:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Помощни връзки (Забравена парола, Регистрация) */
.allauth-container .secondaryAction,
.allauth-container a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.allauth-container .secondaryAction:hover,
.allauth-container a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.allauth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

/* Грешки (Validation Errors) */
.allauth-container .errorlist {
    list-style: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.allauth-container .errorlist li {
    margin-bottom: 4px;
}

.allauth-container .errorlist li:last-child {
    margin-bottom: 0;
}

/* Социален вход (Social Login / OAuth) */
.socialaccount_ballot {
    margin-top: 20px;
    text-align: center;
}

.socialaccount_providers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.socialaccount_providers a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.socialaccount_providers a:hover {
    background: var(--white);
    border-color: var(--primary);
}


/* ================= GOOGLE SOCIAL BUTTON (CSS ONLY) ================= */

/* Намираме линка за Google от django-allauth */
.allauth-container a[href*="google"],
.socialaccount_providers a[href*="google"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 20px;
    background-color: var(--white);
    color: var(--dark) !important;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none !important;
    cursor: pointer;
}

/* Ховър ефект */
.allauth-container a[href*="google"]:hover,
.socialaccount_providers a[href*="google"]:hover {
    background-color: var(--gray-50);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Добавяме иконката на Google ПРЕД текста с CSS (SVG Data URI) */
.allauth-container a[href*="google"]::before,
.socialaccount_providers a[href*="google"]::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* Вградена SVG иконка на Google */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l2.85-2.22.81-.63z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84c.87-2.6 3.3-4.52 6.16-4.52z'/%3E%3C/svg%3E");
}


/* ================= MY CHATS PAGE ================= */

.services-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
}

.chats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.chats a {
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--text-main);
    text-decoration: none;
    position: relative;
}

.chats a:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Детайли вътре в чат картата */
.chat-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.chat-item__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.chats a:hover .chat-item__name {
    color: var(--primary);
}

.chat-item__time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-item__message {
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Празно състояние (Empty State) */
.chats-page__empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px dashed var(--gray-200);
    font-size: 1rem;
}