/* Phase 4: merged Chats + Groups messaging tabs. */
.messaging-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
}

.messaging-tab-button {
    min-width: 0;
    border: 0;
    border-radius: 999px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}

.messaging-tab-button.is-active {
    color: #ffffff;
    background: var(--button-gradient);
    box-shadow: 0 10px 26px var(--shadow);
}

.messaging-tab-button i {
    font-size: 14px;
}

.messaging-tab-panel.is-hidden {
    display: none !important;
}

.messaging-tab-panel[data-messaging-panel="groups"] {
    min-height: 0;
}

.app-screen[data-screen="groups"],
.bottom-nav .nav-item[data-target="groups"] {
    display: none !important;
}

.bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

html.is-mobile-app .bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#chatsListView .groups-screen-header {
    display: none;
}

#chatsListView .groups-list {
    padding-bottom: 92px;
}

html.is-mobile-app #chatsListView .groups-list {
    padding-bottom: calc(var(--mobile-nav-height) + 92px);
}

/* PASS128 consolidated create-entry CSS: START */

/* Merged from chat-create-context-fix.css and group-create-entry-fix.css. */


/* Source: public/assets/css/chat-create-context-fix.css */
/* Stellar chat create orb context fix pass 45. */
#newChatButton.is-create-group-context {
    box-shadow:
        0 18px 42px rgba(127, 195, 255, 0.26),
        0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

#newChatButton.is-create-group-context i {
    font-size: 18px;
}


/* Source: public/assets/css/group-create-entry-fix.css */
/* Stellar group creation entry points pass 46. */

.groups-screen-header {
    gap: 10px;
}

.groups-header-create-entry,
.groups-empty-create-entry {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f8fafc;
    background:
        linear-gradient(135deg, rgba(127, 195, 255, 0.92), rgba(192, 116, 176, 0.92));
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset;
    font-weight: 900;
    letter-spacing: 0.01em;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
}

.groups-header-create-entry:active,
.groups-empty-create-entry:active {
    transform: scale(0.97);
}

.groups-header-create-entry {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    margin-left: auto;
    font-size: 13px;
    white-space: nowrap;
}

.groups-empty-create-entry {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    margin-top: 14px;
    font-size: 14px;
}

.groups-header-create-entry i,
.groups-empty-create-entry i {
    font-size: 14px;
}

@media (max-width: 420px) {
    .groups-header-create-entry span {
        display: none;
    }

    .groups-header-create-entry {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }
}

/* PASS128 consolidated create-entry CSS: END */
