.nm-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.nm-page {
    padding: 2.5rem 0 4rem;
}

.nm-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nm-hero h1,
.nm-hero h2 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
}

.nm-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 0;
    border-radius: 999px;
    padding: .7rem 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.nm-btn:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.nm-btn-primary {
    background: var(--bs-primary, #066ac9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(6, 106, 201, .25);
}

.nm-btn-outline {
    background: #fff;
    color: var(--bs-primary, #066ac9);
    border: 1px solid rgba(6, 106, 201, .25);
}

.nm-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.nm-empty {
    text-align: center;
    padding: 3.2rem 1.5rem;
}

.nm-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 106, 201, .1);
    color: var(--bs-primary, #066ac9);
    font-size: 1.8rem;
}

.nm-empty h3 {
    margin-bottom: .4rem;
}

.nm-empty p {
    color: #64748b;
    margin-bottom: 1.25rem;
}

.nm-conv-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.nm-conv-item:last-child {
    border-bottom: 0;
}

.nm-conv-item:hover {
    background: #f8fbff;
}

.nm-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #4c9be8, #066ac9);
    color: #fff;
    font-weight: 700;
}

.nm-conv-item h5 {
    margin: 0 0 .2rem;
    font-size: 1rem;
}

.nm-conv-item p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nm-meta {
    margin-inline-start: auto;
    text-align: start;
    flex-shrink: 0;
}

.nm-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nm-gate {
    padding: 2.4rem;
    text-align: center;
}

.nm-gate .nm-empty-icon {
    width: 84px;
    height: 84px;
    font-size: 2rem;
}

.nm-gate-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.nm-chat {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 70vh;
}

.nm-chat-head {
    background: var(--bs-primary, #066ac9);
    color: #fff;
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.nm-chat-head a {
    color: #fff;
    text-decoration: none;
    opacity: .9;
}

.nm-chat-body {
    background: #eef4fb;
    background-image: radial-gradient(rgba(6, 106, 201, .06) 1px, transparent 1px);
    background-size: 18px 18px;
    min-height: 420px;
    max-height: 62vh;
    overflow-y: auto;
    padding: 1.1rem;
}

.nm-bubble-row {
    display: flex;
    margin-bottom: .7rem;
}

.nm-bubble-row.mine {
    justify-content: flex-start;
}

.nm-bubble-row.theirs {
    justify-content: flex-end;
}

.nm-bubble {
    max-width: 76%;
    padding: .75rem .9rem;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

.nm-bubble.mine {
    background: #d7ecff;
    border-top-right-radius: 6px;
}

.nm-bubble.theirs {
    background: #fff;
    border-top-left-radius: 6px;
}

.nm-bubble img,
.nm-bubble video {
    max-width: 280px;
    width: 100%;
    border-radius: 12px;
    display: block;
}

.nm-bubble audio {
    width: 100%;
    min-width: 210px;
}

.nm-time {
    margin-top: .35rem;
    font-size: 11px;
    color: #64748b;
}

.nm-composer {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding: .85rem;
}

.nm-composer-row {
    display: flex;
    align-items: flex-end;
    gap: .55rem;
}

.nm-icon-btn,
.nm-send-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.nm-icon-btn {
    background: #f1f5f9;
    color: #334155;
}

.nm-send-btn {
    background: var(--bs-primary, #066ac9);
    color: #fff;
}

.nm-composer textarea {
    flex: 1;
    min-height: 44px;
    max-height: 140px;
    resize: none;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: .7rem .9rem;
}

.nm-file-chip {
    display: none;
    align-items: center;
    gap: .5rem;
    margin-bottom: .55rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: .45rem .7rem;
    font-size: .85rem;
}

.nm-file-chip.is-visible {
    display: flex;
}

.nm-type-pills {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: .65rem;
}

.nm-type-pills button {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .85rem;
}

.nm-type-pills button.active {
    background: rgba(6, 106, 201, .1);
    border-color: rgba(6, 106, 201, .35);
    color: var(--bs-primary, #066ac9);
    font-weight: 700;
}

.nm-fab {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bs-primary, #066ac9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(6, 106, 201, .35);
    text-decoration: none;
}

.nm-fab:hover {
    color: #fff;
    transform: scale(1.05);
}

.nm-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 0 0 2px #fff;
}

.nm-team-btn {
    width: 100%;
    text-align: start;
    border: 1px solid rgba(6, 106, 201, .18);
    background: #fff;
    border-radius: 14px;
    padding: .9rem 1rem;
}

.nm-team-btn:hover {
    background: #f8fbff;
}

.nm-admin-actions .btn {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .nm-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .nm-bubble {
        max-width: 88%;
    }
    .nm-fab {
        left: 16px;
        bottom: 88px;
    }
}

.adm-chat {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
}

.adm-chat-head {
    background: linear-gradient(180deg, #0b6cb5, #066ac9);
    color: #fff;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.adm-chat-toolbar {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    align-items: center;
    padding: .75rem 1.15rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.adm-action {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 0;
    border-radius: 12px;
    padding: .55rem 1rem;
    font-size: .9rem;
    font-weight: 700;
    font-family: 'Almarai', sans-serif;
    line-height: 1.2;
    cursor: pointer;
}

.adm-action i {
    font-size: .85rem;
}

.adm-action-primary {
    background: #066ac9;
    color: #fff;
}

.adm-action-primary:hover {
    background: #055aa8;
    color: #fff;
}

.adm-action-muted {
    background: #e2e8f0;
    color: #334155;
}

.adm-action-muted:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.adm-action-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.adm-action-danger:hover {
    background: #fecaca;
    color: #991b1b;
}

.adm-action.is-hidden {
    display: none;
}

.adm-chat-user {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.adm-chat-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.adm-chat-user h5 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
}

.adm-chat-user p {
    margin: 0;
    opacity: .85;
    font-size: .82rem;
}

.adm-chat-body {
    flex: 1;
    background: #dbe7f4;
    background-image: radial-gradient(rgba(6, 106, 201, .08) 1px, transparent 1px);
    background-size: 18px 18px;
    padding: 1.15rem;
    overflow-y: auto;
    min-height: 420px;
    max-height: 62vh;
}

.adm-row {
    display: flex;
    margin-bottom: .75rem;
}

.adm-row.mine {
    justify-content: flex-end;
}

.adm-row.theirs {
    justify-content: flex-start;
}

.adm-bubble {
    max-width: 72%;
    padding: .8rem .95rem;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.adm-bubble.mine {
    background: #d7ecff;
    border-bottom-left-radius: 6px;
}

.adm-bubble.theirs {
    background: #fff;
    border-bottom-right-radius: 6px;
}

.adm-bubble img,
.adm-bubble video {
    max-width: 280px;
    width: 100%;
    border-radius: 12px;
    display: block;
}

.adm-bubble audio {
    width: 100%;
    min-width: 220px;
}

.adm-time {
    margin-top: .4rem;
    font-size: 11px;
    color: #64748b;
}

.adm-composer {
    background: #f7fafc;
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding: .9rem;
}

.adm-tools {
    display: flex;
    gap: .45rem;
    margin-bottom: .65rem;
    flex-wrap: wrap;
}

.adm-tool {
    border: 1px solid #dbe3ee;
    background: #fff;
    border-radius: 999px;
    padding: .4rem .85rem;
    font-size: .85rem;
    color: #334155;
}

.adm-tool.active,
.adm-tool.recording {
    background: #066ac9;
    border-color: #066ac9;
    color: #fff;
}

.adm-tool.recording {
    background: #e11d48;
    border-color: #e11d48;
}

.adm-composer-row {
    display: flex;
    align-items: flex-end;
    gap: .55rem;
}

.adm-composer textarea {
    flex: 1;
    min-height: 46px;
    max-height: 140px;
    resize: none;
    border-radius: 16px;
    border: 1px solid #dbe3ee;
    padding: .75rem .95rem;
}

.adm-send {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #066ac9;
    color: #fff;
}

.adm-chip {
    display: none;
    align-items: center;
    gap: .5rem;
    margin-bottom: .55rem;
    background: #fff;
    border-radius: 12px;
    padding: .45rem .7rem;
    font-size: .85rem;
}

.adm-chip.is-visible {
    display: flex;
}

.nm-swal {
    font-family: 'Almarai', sans-serif !important;
    border-radius: 18px !important;
    padding: 1.5rem 1.25rem 1.25rem !important;
}

.nm-swal-title {
    font-family: 'Almarai', sans-serif !important;
    font-size: 1.25rem !important;
}

.nm-swal-text {
    font-family: 'Almarai', sans-serif !important;
    color: #475569 !important;
    font-size: .95rem !important;
}

.nm-swal-confirm,
.nm-swal-cancel {
    border: 0 !important;
    border-radius: 999px !important;
    padding: .55rem 1.2rem !important;
    font-family: 'Almarai', sans-serif !important;
    font-weight: 700 !important;
    margin: 0 .25rem !important;
}

.nm-swal-confirm {
    background: #066ac9 !important;
    color: #fff !important;
}

.nm-swal-cancel {
    background: #e2e8f0 !important;
    color: #334155 !important;
}
