.cms-welcome-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: clamp(24px, 4vw, 38px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at top right,
            rgba(79, 124, 255, 0.26),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(24, 34, 59, 0.98),
            rgba(15, 22, 40, 0.98)
        );
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.cms-welcome-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -130px;
    right: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
}

.cms-welcome-card > * {
    position: relative;
    z-index: 1;
}

.cms-welcome-label,
.cms-panel-label,
.cms-statistic-label {
    display: block;
    color: #7f8da8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cms-welcome-card h2 {
    margin: 8px 0 10px;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.cms-welcome-card p {
    max-width: 760px;
    margin: 0;
    color: #aeb9cc;
    font-size: clamp(0.94rem, 1.4vw, 1.05rem);
    line-height: 1.7;
}

.cms-primary-button {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #5d84ff, #315cda);
    box-shadow: 0 14px 30px rgba(79, 124, 255, 0.28);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cms-primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(79, 124, 255, 0.36);
}

.cms-statistics-grid {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cms-statistic-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(24, 33, 55, 0.96),
            rgba(18, 26, 45, 0.96)
        );
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.cms-statistic-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 124, 255, 0.28);
}

.cms-statistic-card strong {
    display: block;
    margin-top: 12px;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1;
}

.cms-statistic-card small {
    display: block;
    margin-top: 10px;
    color: #8f9bb2;
    font-size: 0.8rem;
    line-height: 1.45;
}

.cms-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
}

.cms-panel {
    min-width: 0;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background:
        linear-gradient(
            180deg,
            rgba(20, 29, 49, 0.98),
            rgba(16, 23, 40, 0.98)
        );
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.cms-panel-header {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cms-panel-header h2 {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.cms-panel-header > a {
    color: #7fa0ff;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
}

.cms-panel-header > a:hover {
    text-decoration: underline;
}

.cms-information-list {
    display: grid;
}

.cms-information-row {
    min-width: 0;
    padding: 15px 0;
    display: grid;
    grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.cms-information-row:first-child {
    padding-top: 0;
}

.cms-information-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cms-information-row span {
    color: #8e9ab0;
    font-size: 0.86rem;
}

.cms-information-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #f7f9ff;
    text-align: right;
    font-size: 0.88rem;
}

.cms-quick-actions {
    display: grid;
    gap: 12px;
}

.cms-quick-action {
    min-width: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    color: inherit;
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.cms-quick-action:hover {
    transform: translateX(4px);
    border-color: rgba(79, 124, 255, 0.24);
    background: rgba(79, 124, 255, 0.08);
}

.cms-quick-action-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(79, 124, 255, 0.34),
            rgba(79, 124, 255, 0.16)
        );
    font-weight: 900;
}

.cms-quick-action div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cms-quick-action strong {
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 0.9rem;
}

.cms-quick-action small {
    overflow-wrap: anywhere;
    color: #8f9bb2;
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 1200px) {
    .cms-statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .cms-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .cms-welcome-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .cms-primary-button {
        width: 100%;
    }

    .cms-statistics-grid {
        grid-template-columns: 1fr;
    }

    .cms-information-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cms-information-row strong {
        text-align: left;
    }
}
/*
|--------------------------------------------------------------------------
| Pagina conversații
|--------------------------------------------------------------------------
*/

.conversations-page {
    width: 100%;
}

.conversations-page *,
.conversations-page *::before,
.conversations-page *::after {
    box-sizing: border-box;
}

.conversations-page-header {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.conversations-heading {
    min-width: 0;
}

.conversations-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #7f8da8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.conversations-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.conversations-heading p {
    margin: 10px 0 0;
    color: #9aa7bd;
    font-size: 0.94rem;
    line-height: 1.6;
}

.conversations-new-button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #5d84ff, #315cda);
    box-shadow: 0 14px 30px rgba(79, 124, 255, 0.28);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.conversations-new-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(79, 124, 255, 0.36);
}

.conversations-new-button span {
    font-size: 1.15rem;
    line-height: 1;
}

.conversations-stats {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 14px;
}

.conversation-stat-card {
    min-width: 0;
    padding: 17px 19px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(24, 33, 55, 0.96),
            rgba(18, 26, 45, 0.96)
        );
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.conversation-stat-label {
    display: block;
    color: #8491a8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.conversation-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 1.55rem;
    line-height: 1;
}

.conversations-layout {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background:
        linear-gradient(
            180deg,
            rgba(20, 29, 49, 0.98),
            rgba(16, 23, 40, 0.98)
        );
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.conversations-sidebar {
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(11, 17, 31, 0.38);
}

.conversations-sidebar-header {
    min-height: 82px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.conversations-sidebar-header div {
    min-width: 0;
}

.conversations-sidebar-header span {
    display: block;
    color: #7f8da8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.conversations-sidebar-header strong {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 1rem;
}

.conversations-global-badge {
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff !important;
    background: #527cff;
    box-shadow: 0 8px 18px rgba(79, 124, 255, 0.28);
    font-size: 0.73rem !important;
    font-weight: 900 !important;
    letter-spacing: normal !important;
}

.conversations-search {
    position: relative;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.conversations-search input {
    width: 100%;
    height: 43px;
    padding: 0 14px 0 42px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 0.84rem;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.conversations-search input::placeholder {
    color: #6f7c92;
}

.conversations-search input:focus {
    border-color: rgba(79, 124, 255, 0.6);
    background: rgba(79, 124, 255, 0.055);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.1);
}

.conversations-search-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 29px;
    transform: translateY(-50%);
    color: #7f8ba0;
    font-size: 1rem;
    pointer-events: none;
}

.conversations-list {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(112, 134, 181, 0.55)
        transparent;
}

.conversations-list::-webkit-scrollbar {
    width: 7px;
}

.conversations-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversations-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(112, 134, 181, 0.42);
}

.conversation-item {
    position: relative;
    min-width: 0;
    min-height: 84px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: inherit;
    background: transparent;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.conversation-item:hover {
    background: rgba(79, 124, 255, 0.075);
}

.conversation-item.is-unread {
    background:
        linear-gradient(
            90deg,
            rgba(79, 124, 255, 0.12),
            rgba(79, 124, 255, 0.035)
        );
}

.conversation-item.is-unread::before {
    content: "";
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #5b82ff;
}

.conversation-avatar-wrapper {
    position: relative;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: #182138;
}

.conversation-status-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 13px;
    height: 13px;
    border: 3px solid #11192b;
    border-radius: 50%;
    background: #68748a;
}

.conversation-item-content {
    min-width: 0;
    flex: 1;
}

.conversation-item-top,
.conversation-item-bottom {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.conversation-item-bottom {
    margin-top: 7px;
}

.conversation-username {
    min-width: 0;
    overflow: hidden;
    color: #f8faff;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.conversation-item.is-unread .conversation-username {
    color: #ffffff;
    font-weight: 900;
}

.conversation-time {
    flex: 0 0 auto;
    color: #748198;
    font-size: 0.7rem;
    white-space: nowrap;
}

.conversation-item.is-unread .conversation-time {
    color: #86a2ff;
}

.conversation-preview {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #8491a7;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    line-height: 1.4;
}

.conversation-item.is-unread .conversation-preview {
    color: #b8c3d6;
}

.conversation-preview-prefix {
    color: #6f7d94;
    font-weight: 700;
}

.conversation-unread-badge {
    flex: 0 0 auto;
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #527cff;
    box-shadow: 0 8px 16px rgba(79, 124, 255, 0.24);
    font-size: 0.67rem;
    font-weight: 900;
}

.conversations-welcome {
    min-width: 0;
    padding: 36px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(79, 124, 255, 0.12),
            transparent 34%
        );
}

.conversations-welcome-content {
    max-width: 490px;
    text-align: center;
}

.conversations-welcome-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(110, 145, 255, 0.24);
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(79, 124, 255, 0.24),
            rgba(79, 124, 255, 0.08)
        );
    box-shadow: 0 18px 42px rgba(36, 65, 145, 0.22);
    font-size: 2rem;
}

.conversations-welcome-label {
    display: block;
    color: #7896f3;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.conversations-welcome h2 {
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.conversations-welcome p {
    margin: 0 auto 22px;
    color: #8e9bb1;
    font-size: 0.9rem;
    line-height: 1.7;
}

.conversations-welcome .button-primary {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #5d84ff, #315cda);
    box-shadow: 0 12px 26px rgba(79, 124, 255, 0.24);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
}

.conversations-empty,
.conversations-no-results {
    min-height: 360px;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.conversations-empty-icon,
.conversations-no-results > div {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(79, 124, 255, 0.1);
    font-size: 1.5rem;
}

.conversations-empty h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.1rem;
}

.conversations-empty p,
.conversations-no-results span {
    max-width: 260px;
    margin: 0 0 18px;
    color: #8491a7;
    font-size: 0.82rem;
    line-height: 1.6;
}

.conversations-no-results strong {
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 0.94rem;
}

.conversations-empty .button-primary {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #5d84ff, #315cda);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/*
|--------------------------------------------------------------------------
| Responsive conversații
|--------------------------------------------------------------------------
*/

@media (max-width: 1050px) {
    .conversations-layout {
        grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .conversations-layout {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .conversations-sidebar {
        border-right: 0;
    }

    .conversations-welcome {
        min-height: 360px;
        border-top: 1px solid rgba(255, 255, 255, 0.065);
    }

    .conversations-list {
        max-height: 460px;
    }
}

@media (max-width: 620px) {
    .conversations-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .conversations-new-button {
        width: 100%;
    }

    .conversations-stats {
        grid-template-columns: 1fr 1fr;
    }

    .conversations-layout {
        border-radius: 16px;
    }

    .conversations-welcome {
        display: none;
    }

    .conversation-item {
        padding-right: 13px;
        padding-left: 13px;
    }
}

@media (max-width: 430px) {
    .conversations-stats {
        grid-template-columns: 1fr;
    }

    .conversation-avatar-wrapper,
    .conversation-avatar {
        width: 46px;
        height: 46px;
    }

    .conversation-avatar-wrapper {
        flex-basis: 46px;
    }
}


/*
|--------------------------------------------------------------------------
| Pagina conversație / Messenger
|--------------------------------------------------------------------------
*/

.conversation-page {
    width: 100%;
}

.conversation-page *,
.conversation-page *::before,
.conversation-page *::after {
    box-sizing: border-box;
}

.conversation-page-header {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.conversation-page-heading {
    min-width: 0;
}

.conversation-back-link {
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7f9df7;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
}

.conversation-back-link:hover {
    color: #a8bbff;
}

.conversation-page-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.conversation-page-heading p {
    margin: 10px 0 0;
    color: #9aa7bd;
    font-size: 0.94rem;
    line-height: 1.6;
}

.conversation-page-heading p strong {
    color: #ffffff;
}

.conversation-new-message {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #5d84ff, #315cda);
    box-shadow: 0 14px 30px rgba(79, 124, 255, 0.28);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.conversation-new-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(79, 124, 255, 0.36);
}

.conversation-layout {
    min-height: 670px;
    display: grid;
    grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background:
        linear-gradient(
            180deg,
            rgba(20, 29, 49, 0.98),
            rgba(16, 23, 40, 0.98)
        );
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.conversation-sidebar {
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(11, 17, 31, 0.44);
}

.conversation-sidebar-header {
    min-height: 82px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.conversation-sidebar-header > div {
    min-width: 0;
}

.conversation-sidebar-header span {
    display: block;
    color: #7f8da8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.conversation-sidebar-header strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 1rem;
}

.conversation-sidebar .conversation-item.is-active {
    background:
        linear-gradient(
            90deg,
            rgba(79, 124, 255, 0.2),
            rgba(79, 124, 255, 0.06)
        );
}

.conversation-sidebar .conversation-item.is-active::after {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: 0;
    width: 3px;
    border-radius: 999px 0 0 999px;
    background: #5d84ff;
}

.conversation-chat {
    min-width: 0;
    min-height: 670px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background:
        radial-gradient(
            circle at 60% 0%,
            rgba(79, 124, 255, 0.09),
            transparent 35%
        ),
        rgba(15, 22, 39, 0.6);
}

.conversation-chat-header {
    min-height: 82px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(13, 20, 36, 0.82);
    backdrop-filter: blur(14px);
}

.conversation-chat-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.conversation-chat-avatar-wrapper {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
}

.conversation-chat-avatar {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: #182138;
}

.conversation-chat-status {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 13px;
    height: 13px;
    border: 3px solid #11192b;
    border-radius: 50%;
    background: #4cd385;
}

.conversation-chat-user > div:last-child {
    min-width: 0;
}

.conversation-chat-user strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.97rem;
}

.conversation-chat-user span {
    display: block;
    margin-top: 4px;
    color: #7f8da8;
    font-size: 0.76rem;
}

.conversation-chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.conversation-header-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #dbe4ff;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.conversation-header-button:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 124, 255, 0.35);
    background: rgba(79, 124, 255, 0.11);
}

.conversation-messages {
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(112, 134, 181, 0.55)
        transparent;
}

.conversation-messages::-webkit-scrollbar {
    width: 8px;
}

.conversation-messages::-webkit-scrollbar-track {
    background: transparent;
}

.conversation-messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(112, 134, 181, 0.42);
}

.conversation-empty-chat {
    min-height: 100%;
    padding: 40px 20px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.conversation-empty-chat-avatar {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    padding: 5px;
    border: 1px solid rgba(109, 143, 255, 0.2);
    border-radius: 24px;
    background: rgba(79, 124, 255, 0.08);
}

.conversation-empty-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 19px;
}

.conversation-empty-chat h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.45rem;
}

.conversation-empty-chat p {
    max-width: 430px;
    margin: 10px 0 0;
    color: #8e9bb1;
    line-height: 1.65;
}

.conversation-date-separator {
    margin: 22px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7f8da8;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.conversation-date-separator::before,
.conversation-date-separator::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
}

.conversation-date-separator span {
    flex: 0 0 auto;
}

.chat-message {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

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

.chat-message.is-received {
    justify-content: flex-start;
}

.chat-message-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: #182138;
}

.chat-message-content {
    min-width: 0;
    max-width: min(72%, 760px);
}

.chat-message.is-own .chat-message-content {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

.chat-message-meta {
    margin-bottom: 6px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-message.is-own .chat-message-meta {
    justify-content: flex-end;
}

.chat-message-meta strong {
    color: #dfe6f5;
    font-size: 0.76rem;
}

.chat-message-meta time {
    color: #6f7c92;
    font-size: 0.68rem;
}

.chat-message-bubble {
    padding: 12px 15px;
    overflow-wrap: anywhere;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px 16px 16px 5px;
    color: #edf2ff;
    background:
        linear-gradient(
            180deg,
            rgba(35, 46, 71, 0.98),
            rgba(27, 37, 60, 0.98)
        );
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    font-size: 0.9rem;
    line-height: 1.58;
}

.chat-message.is-own .chat-message-bubble {
    border-color: rgba(103, 136, 255, 0.34);
    border-radius: 16px 16px 5px 16px;
    background:
        linear-gradient(
            135deg,
            #5d84ff,
            #365fd6
        );
    box-shadow: 0 12px 28px rgba(44, 79, 184, 0.25);
}

.chat-message-status {
    margin-top: 5px;
    padding-right: 3px;
    color: #7f8da8;
    font-size: 0.68rem;
}

.chat-message.is-own .chat-message-status span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.conversation-composer {
    padding: 16px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(12, 18, 32, 0.86);
    backdrop-filter: blur(14px);
}

.conversation-errors {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 104, 104, 0.24);
    border-radius: 12px;
    color: #ffc2c2;
    background: rgba(127, 31, 31, 0.16);
}

.conversation-errors p {
    margin: 0;
    font-size: 0.82rem;
}

.conversation-errors p + p {
    margin-top: 5px;
}

.conversation-reply-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.conversation-textarea-wrapper {
    position: relative;
    min-width: 0;
}

.conversation-textarea-wrapper textarea {
    width: 100%;
    min-height: 48px;
    max-height: 160px;
    padding: 13px 72px 13px 15px;
    resize: none;
    overflow-y: hidden;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.045);
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.conversation-textarea-wrapper textarea::placeholder {
    color: #6f7c92;
}

.conversation-textarea-wrapper textarea:focus {
    border-color: rgba(79, 124, 255, 0.58);
    background: rgba(79, 124, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.1);
}

.conversation-character-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: #68758b;
    font-size: 0.66rem;
    pointer-events: none;
}

.conversation-send-button {
    min-width: 118px;
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #5d84ff, #315cda);
    box-shadow: 0 12px 26px rgba(79, 124, 255, 0.24);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.conversation-send-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(79, 124, 255, 0.32);
}

.conversation-send-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}

.conversation-send-button.is-loading {
    pointer-events: none;
}

.conversation-composer-hint {
    margin: 9px 2px 0;
    color: #68758b;
    font-size: 0.7rem;
}

/*
|--------------------------------------------------------------------------
| Responsive conversație
|--------------------------------------------------------------------------
*/

@media (max-width: 1120px) {
    .conversation-layout {
        grid-template-columns: minmax(285px, 340px) minmax(0, 1fr);
    }

    .chat-message-content {
        max-width: 78%;
    }
}

@media (max-width: 880px) {
    .conversation-layout {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .conversation-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    }

    .conversation-sidebar .conversations-list {
        max-height: 320px;
    }

    .conversation-chat {
        min-height: 620px;
    }
}

@media (max-width: 680px) {
    .conversation-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .conversation-new-message {
        width: 100%;
    }

    .conversation-layout {
        border-radius: 16px;
    }

    .conversation-chat-header {
        padding: 14px 16px;
    }

    .conversation-messages {
        padding: 18px 14px;
    }

    .chat-message-content {
        max-width: 86%;
    }

    .conversation-composer {
        padding: 14px;
    }

    .conversation-reply-form {
        grid-template-columns: 1fr;
    }

    .conversation-send-button {
        width: 100%;
    }

    .conversation-composer-hint {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .conversation-sidebar {
        display: none;
    }

    .conversation-chat {
        min-height: 680px;
    }

    .conversation-chat-avatar-wrapper,
    .conversation-chat-avatar {
        width: 44px;
        height: 44px;
    }

    .conversation-chat-avatar-wrapper {
        flex-basis: 44px;
    }

    .chat-message-content {
        max-width: 91%;
    }

    .chat-message-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .chat-message-bubble {
        padding: 11px 13px;
        font-size: 0.86rem;
    }
}


/* ==========================================================
   ONLINE / OFFLINE PRESENCE
   ========================================================== */

.conversation-status-dot.is-online,
.conversation-chat-status.is-online{
    background:#37d67a !important;
    box-shadow:0 0 0 3px rgba(55,214,122,.18),0 0 12px rgba(55,214,122,.65);
    animation:presencePulse 2s infinite;
}

.conversation-status-dot.is-offline,
.conversation-chat-status.is-offline{
    background:#6f7c92 !important;
    box-shadow:none;
}

.conversation-presence-text{
    display:block;
    margin-top:4px;
    font-size:.76rem;
    font-weight:700;
    transition:color .2s ease;
}

.conversation-presence-text.is-online{
    color:#37d67a;
}

.conversation-presence-text.is-offline{
    color:#8b97ab;
}

@keyframes presencePulse{
    0%{transform:scale(1);}
    50%{transform:scale(1.15);}
    100%{transform:scale(1);}
}

