:root {
    --friends-surface: #ffffff;
    --friends-surface-muted: #f4f7fb;
    --friends-surface-strong: #e8eef7;
    --friends-border: #dbe4ef;
    --friends-text: #17324d;
    --friends-text-muted: #61758a;
    --friends-primary: #0f62fe;
    --friends-primary-strong: #0948be;
    --friends-danger: #ca2f4b;
    --friends-success: #1e9c5f;
    --friends-shadow: 0 22px 60px rgba(17, 44, 74, 0.18);
}

.friends-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1040px, 94vw);
    max-width: 94vw;
    min-width: 320px;
    max-height: 88vh;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    border: 1px solid rgba(137, 162, 189, 0.28);
    border-radius: 26px;
    box-shadow: var(--friends-shadow);
    animation: fadeIn 0.28s ease;
    box-sizing: border-box;
    touch-action: manipulation;
}

.friends-shell {
    display: flex;
    flex-direction: column;
    min-height: min(760px, 88vh);
    color: var(--friends-text);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Spinner Animation für Ladevorgang */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 28px 18px;
}

.friends-header h3 {
    margin: 2px 0 8px;
    font-size: 1.75rem;
    line-height: 1.1;
    color: var(--friends-text);
}

.friends-header p {
    margin: 0;
    color: var(--friends-text-muted);
    max-width: 520px;
}

.friends-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--friends-primary);
}

.friends-close-btn {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--friends-border);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.friends-close-btn img {
    width: 18px;
    height: 18px;
}

.friends-close-btn:hover,
.friends-close-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 98, 254, 0.12);
}

.friends-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 28px 18px;
}

.friends-summary-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(141, 165, 191, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.friends-summary-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.65rem;
    color: var(--friends-text);
}

.friends-summary-card-accent {
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.14), rgba(51, 151, 255, 0.06));
}

.friends-summary-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--friends-text-muted);
}

.friends-tabs {
    display: flex;
    gap: 10px;
    padding: 0 28px 20px;
    overflow-x: auto;
}

.friends-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--friends-border);
    background: rgba(255, 255, 255, 0.75);
    color: var(--friends-text);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.friends-tab:hover,
.friends-tab.is-active {
    background: var(--friends-primary);
    border-color: var(--friends-primary);
    color: #fff;
}

.friends-tab-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.friends-panel {
    flex: 1;
    min-height: 0;
    padding: 0 28px 28px;
    overflow: auto;
}

.friends-card-grid,
.friends-list-stack {
    display: grid;
    gap: 14px;
}

.friends-person-card,
.friends-request-card,
.friends-discover-card,
.friends-section-card,
.friends-inbox-hero {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(141, 165, 191, 0.22);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(15, 39, 71, 0.08);
}

.friends-person-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
}

.friends-person-meta,
.friends-discover-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.friends-person-status,
.friends-inline-chip-status {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #bbc8d5;
    box-shadow: 0 0 0 4px rgba(187, 200, 213, 0.18);
}

.friends-person-status.is-online,
.friends-inline-chip-status.is-online {
    background: var(--friends-success);
    box-shadow: 0 0 0 4px rgba(30, 156, 95, 0.18);
}

.friends-person-name,
.friends-request-card strong,
.friends-discover-card strong {
    display: block;
    font-size: 1rem;
}

.friends-person-subline,
.friends-request-card p,
.friends-discover-card p,
.friends-empty-inline,
.friends-empty-state p,
.friends-section-head p {
    margin: 4px 0 0;
    color: var(--friends-text-muted);
}

.friends-person-actions,
.friends-request-actions,
.friends-discover-actions,
.friend-request-compose-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.friends-primary-btn,
.friends-secondary-btn,
.friends-ghost-btn,
.friends-danger-btn {
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.friends-primary-btn {
    background: var(--friends-primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 98, 254, 0.22);
}

.friends-primary-btn:hover,
.friends-secondary-btn:hover,
.friends-ghost-btn:hover,
.friends-danger-btn:hover,
.friends-inline-chip:hover {
    transform: translateY(-1px);
}

.friends-secondary-btn {
    background: rgba(15, 98, 254, 0.1);
    color: var(--friends-primary-strong);
}

.friends-ghost-btn {
    background: rgba(97, 117, 138, 0.1);
    color: var(--friends-text);
}

.friends-danger-btn {
    background: rgba(202, 47, 75, 0.12);
    color: var(--friends-danger);
}

.friends-split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.friends-section-card {
    padding: 22px;
}

.friends-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.friends-section-head h4,
.friends-empty-state h4,
.friends-inbox-hero h4,
.friends-discover-head h4 {
    margin: 0;
    font-size: 1.12rem;
}

.friends-section-badge {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 98, 254, 0.1);
    color: var(--friends-primary-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.friends-section-badge-muted {
    background: rgba(97, 117, 138, 0.12);
    color: var(--friends-text-muted);
}

.friends-inbox-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px;
    margin-bottom: 16px;
}

.friends-inline-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.friends-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--friends-border);
    background: rgba(255, 255, 255, 0.88);
    color: var(--friends-text);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
}

.friends-discover-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.friends-discover-search-wrap {
    width: min(340px, 100%);
}

.friends-discover-search {
    width: 100%;
    border: 1px solid var(--friends-border);
    border-radius: 16px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--friends-text);
}

.friends-discover-results {
    display: grid;
    gap: 14px;
}

.friends-discover-card {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.friends-discover-gender {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 98, 254, 0.1);
    color: var(--friends-primary-strong);
    font-weight: 700;
}

.friends-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: var(--friends-text-muted);
}

.friends-empty-state,
.friends-empty-inline,
.fmb-conversation-empty {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(137, 162, 189, 0.45);
    background: rgba(255, 255, 255, 0.62);
}

.friend-request-compose {
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 41, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10020;
}

.friend-request-compose-card {
    width: min(520px, 92vw);
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--friends-shadow);
}

.friend-request-compose-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.friend-request-compose-head h4 {
    margin: 2px 0 0;
}

.friend-request-compose-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--friends-text-muted);
}

.friend-request-compose-input {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--friends-border);
    border-radius: 18px;
    padding: 14px 16px;
    box-sizing: border-box;
    min-height: 120px;
    color: var(--friends-text);
}

.friend-messagebox {
    background: linear-gradient(180deg, #fffdf7 0%, #f4f9ff 48%, #eef5ff 100%);
    border-radius: 28px;
    box-shadow: var(--friends-shadow);
    padding: 0;
    min-width: 350px;
    min-height: 520px;
    color: var(--friends-text);
    border: 1px solid rgba(137, 162, 189, 0.28);
}

.fmb-shell {
    display: flex;
    flex-direction: column;
    min-height: min(740px, 90vh);
    background:
        radial-gradient(circle at top left, rgba(255, 196, 92, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 98, 254, 0.16), transparent 26%),
        linear-gradient(180deg, #fffdf7 0%, #eef6ff 55%, #e8f1ff 100%);
}

.fmb-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid rgba(137, 162, 189, 0.14);
    background: linear-gradient(135deg, rgba(255, 197, 79, 0.18), rgba(15, 98, 254, 0.1));
}

.fmb-kicker,
.fmb-thread-label {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--friends-primary);
}

.fmb-title {
    display: block;
    margin-top: 6px;
    font-size: 1.45rem;
    line-height: 1.1;
}

.fmb-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--friends-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--friends-text-muted);
    font-size: 28px;
    cursor: pointer;
}

.fmb-content {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 0;
    flex: 1;
}

.fmb-sidebar {
    border-right: 1px solid rgba(137, 162, 189, 0.18);
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(239, 246, 255, 0.76));
}

.fmb-sidebar.is-hidden {
    display: none;
}

.fmb-sidebar-head {
    padding: 18px;
    border-bottom: 1px solid rgba(137, 162, 189, 0.18);
}

.fmb-search {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--friends-border);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
}

.fmb-conversations {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(223, 237, 255, 0.24)),
        radial-gradient(circle at top left, rgba(255, 196, 92, 0.12), transparent 24%);
}

.fmb-conversation {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 14px;
    border: 1px solid rgba(137, 162, 189, 0.14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 255, 0.92));
    box-shadow: 0 10px 24px rgba(15, 39, 71, 0.06);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    animation: fmb-fade-in 0.24s ease both;
}

.fmb-conversation::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 159, 28, 0), rgba(15, 98, 254, 0));
    transition: background 0.18s ease;
}

.fmb-conversation:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 39, 71, 0.1);
    border-color: rgba(15, 98, 254, 0.18);
}

.fmb-conversation.is-active {
    background: linear-gradient(135deg, rgba(255, 208, 122, 0.34), rgba(15, 98, 254, 0.16));
    border-color: rgba(15, 98, 254, 0.24);
    box-shadow: 0 18px 36px rgba(15, 39, 71, 0.12);
}

.fmb-conversation.is-unread {
    border-color: rgba(255, 159, 28, 0.32);
    background: linear-gradient(135deg, rgba(255, 243, 224, 0.92), rgba(238, 246, 255, 0.92));
}

.fmb-conversation.is-active::before {
    background: linear-gradient(180deg, #ff9f1c, #0f62fe);
}

.fmb-conversation-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.fmb-conversation-main strong {
    font-size: 0.98rem;
    color: var(--friends-text);
    letter-spacing: 0.01em;
}

.fmb-conversation-main span {
    color: var(--friends-text-muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.fmb-conversation-avatar {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffb347, #ff7f50 48%, #5b8cff 100%);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 20px rgba(91, 140, 255, 0.18);
}

.fmb-conversation-avatar::after {
    content: '';
    position: absolute;
    right: -2px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: #b4c3d3;
    box-shadow: 0 0 0 2px rgba(180, 195, 211, 0.18);
}

.fmb-conversation-avatar.is-online::after {
    background: #1e9c5f;
    box-shadow: 0 0 0 2px rgba(30, 156, 95, 0.2);
    animation: fmb-online-pulse 1.8s ease-in-out infinite;
}

.fmb-conversation-side {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 8px;
    color: var(--friends-text-muted);
    min-width: 54px;
}

.fmb-conversation-side small {
    color: #5b78a4;
    font-size: 0.76rem;
    font-weight: 700;
}

.fmb-conversation-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 18px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d97706;
    background: rgba(255, 159, 28, 0.16);
}

.fmb-unread-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--friends-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.fmb-thread {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(232, 241, 255, 0.22));
}

.fmb-thread-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(137, 162, 189, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 249, 255, 0.82));
}

.fmb-thread-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fmb-thread-title {
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.fmb-empty {
    margin: 18px 22px 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 210, 120, 0.18), rgba(255, 255, 255, 0.84));
    color: var(--friends-text-muted);
}

.fmb-empty[hidden] {
    display: none;
}

.fmb-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 18px 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(231, 241, 255, 0.22)),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0.28) 34px, rgba(222, 235, 252, 0.2) 34px, rgba(222, 235, 252, 0.2) 68px);
}

.fmb-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fmb-footer {
    display: flex;
    gap: 10px;
    padding: 16px 22px 22px;
    border-top: 1px solid rgba(137, 162, 189, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 220, 0.55));
}

.fmb-footer.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.fmb-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--friends-border);
    border-radius: 18px;
    padding: 13px 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.92);
}

.fmb-send {
    border: none;
    border-radius: 18px;
    padding: 0 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff9f1c, #ff6b35 46%, #0f62fe 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.24);
}

.fmb-msg {
    position: relative;
    padding: 13px 15px;
    border-radius: 18px 18px 18px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 229, 0.92));
    max-width: min(78%, 640px);
    border: 1px solid rgba(137, 162, 189, 0.16);
    box-shadow: 0 12px 26px rgba(15, 39, 71, 0.08);
    word-break: break-word;
    animation: fmb-pop-in 0.18s ease both;
}

.fmb-msg::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 10px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 229, 0.92));
    border-left: 1px solid rgba(137, 162, 189, 0.12);
    border-bottom: 1px solid rgba(137, 162, 189, 0.12);
    transform: rotate(45deg);
    border-bottom-left-radius: 4px;
}

.fmb-msg.own {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.2), rgba(47, 161, 255, 0.16), rgba(123, 209, 255, 0.12));
    border-radius: 18px 18px 8px 18px;
    border-color: rgba(15, 98, 254, 0.18);
}

.fmb-msg.own::before {
    left: auto;
    right: -8px;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.2), rgba(47, 161, 255, 0.16), rgba(123, 209, 255, 0.12));
    border-left: none;
    border-bottom: none;
    border-right: 1px solid rgba(15, 98, 254, 0.14);
    border-top: 1px solid rgba(15, 98, 254, 0.14);
}

.fmb-msg.new {
    border-color: rgba(255, 159, 28, 0.48);
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.12), 0 12px 26px rgba(15, 39, 71, 0.08);
    animation: fmb-new-highlight 1.2s ease;
}

.fmb-msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 9px;
    color: var(--friends-text-muted);
    font-size: 0.8rem;
}

.fmb-msg-name {
    color: #0a56d6;
    font-weight: 700;
}

.fmb-msg-date {
    color: #7c93b1;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fmb-msg-new {
    background: rgba(255, 159, 28, 0.14);
    color: #d97706;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.74rem;
    font-weight: 700;
}

.fmb-msg-text {
    line-height: 1.45;
    color: #17324d;
}

.fmb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    transition: transform 0.18s ease, background 0.18s ease;
}

.fmb-icon:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
}

.fmb-loading-state {
    color: var(--friends-text-muted);
    margin: 0;
}

@keyframes fmb-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fmb-pop-in {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fmb-new-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.42), 0 12px 26px rgba(15, 39, 71, 0.08);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.12), 0 12px 26px rgba(15, 39, 71, 0.08);
    }
}

@keyframes fmb-online-pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.08);
        filter: brightness(1.1);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fmb-conversation,
    .fmb-msg,
    .fmb-msg.new,
    .fmb-conversation-avatar.is-online::after,
    .fmb-icon,
    .fmb-send,
    .friends-tab,
    .friends-primary-btn,
    .friends-secondary-btn,
    .friends-ghost-btn,
    .friends-danger-btn {
        animation: none !important;
        transition: none !important;
    }

    .fmb-conversation:hover,
    .fmb-icon:hover,
    .friends-primary-btn:hover,
    .friends-secondary-btn:hover,
    .friends-ghost-btn:hover,
    .friends-danger-btn:hover,
    .friends-inline-chip:hover {
        transform: none !important;
    }
}

@media (max-width: 900px) {
    .friends-container {
        width: 96vw;
        max-height: 92vh;
        border-radius: 22px;
    }

    .friends-summary,
    .friends-split-layout,
    .fmb-content {
        grid-template-columns: 1fr;
    }

    .friends-panel,
    .friends-summary,
    .friends-tabs,
    .friends-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .friends-discover-head,
    .friends-inbox-hero,
    .friends-person-card,
    .friends-discover-card {
        flex-direction: column;
        align-items: stretch;
    }

    .fmb-sidebar {
        max-height: 220px;
        border-right: none;
        border-bottom: 1px solid rgba(137, 162, 189, 0.18);
    }
}

@media (max-width: 600px) {
    .friends-container {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: unset !important;
        max-height: 100vh !important;
        height: 100vh;
        border-radius: 0;
    }

    .friends-header {
        padding-top: 20px;
    }

    .friends-header h3,
    .fmb-title {
        font-size: 1.32rem;
    }

    .friends-summary {
        grid-template-columns: 1fr;
    }

    .friend-messagebox {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh;
        border-radius: 0;
    }

    .fmb-shell {
        min-height: 100vh;
    }

    .fmb-header,
    .fmb-thread-head,
    .fmb-body,
    .fmb-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}
