.user-mobile-footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--user-border);
    background: rgba(255,255,255,.96);
    box-shadow: 0 -10px 30px rgba(15,23,42,.09);
    backdrop-filter: blur(12px);
}

.user-mobile-footer a,
.user-mobile-footer button {
    min-height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #52647c;
    font: inherit;
    font-size: 9.8px;
    font-weight: 600;
}

.user-mobile-footer svg,
.user-mobile-footer img {
    width: 21px;
    height: 21px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.user-mobile-footer .active,
.user-mobile-footer a:hover,
.user-mobile-footer button:hover {
    background: transparent;
    color: var(--user-primary);
}

.user-mobile-footer button[aria-current="page"] {
    cursor: default;
}

body.modal-open {
    overflow: hidden;
}

.user-contact-modal,
.user-announcement-modal {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 16px 92px;
    background: rgba(15,23,42,.48);
}

.user-announcement-modal {
    display: flex;
    align-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.user-contact-modal.is-open,
.user-announcement-modal.is-open {
    display: flex;
}

.user-announcement-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-contact-card,
.user-announcement-card {
    position: relative;
    width: min(420px, 100%);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(15,23,42,.26);
    transform: translateZ(0);
}

.user-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    box-shadow: 0 6px 18px rgba(15,23,42,.12);
    cursor: pointer;
}

.user-modal-close svg {
    width: 16px;
    height: 16px;
    display: block;
    margin: 0;
}

.user-contact-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #08d11f;
    color: #fff;
}

.user-contact-wa-icon {
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}

.user-contact-wa-icon svg {
    width: 24px;
    height: 24px;
}

.user-contact-head span,
.user-announcement-card span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.user-contact-head h2,
.user-announcement-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 800;
}

.user-contact-head p,
.user-announcement-card p {
    margin: 2px 0 0;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 700;
}

.user-contact-list {
    display: grid;
    gap: 8px;
    max-height: 52vh;
    overflow-y: auto;
    padding: 11px;
    background: #f8fafc;
}

.user-contact-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(15,23,42,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.user-contact-admin:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15,23,42,.12);
}

.user-contact-admin.is-offline {
    opacity: .62;
    pointer-events: none;
}

.user-contact-avatar {
    position: relative;
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 999px;
    background: #e2edff;
    color: #1355b5;
    box-shadow: 0 0 0 2px #fff;
    font-size: 13px;
    font-weight: 900;
}

.user-contact-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.user-contact-avatar i {
    position: absolute;
    top: 4px;
    right: -2px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #22c55e;
}

.user-contact-admin.is-offline .user-contact-avatar {
    filter: grayscale(1);
}

.user-contact-admin.is-offline .user-contact-avatar i {
    background: #94a3b8;
}

.user-contact-admin-copy {
    min-width: 0;
}

.user-contact-admin-copy small {
    display: block;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 700;
}

.user-contact-admin-copy small b {
    color: #16a34a;
}

.user-contact-admin-copy strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-contact-foot {
    padding: 13px 18px 15px;
    background: #fff;
    text-align: center;
}

.user-contact-foot p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.55;
}

.user-announcement-card {
    width: min(520px, calc(100vw - 34px));
    max-height: calc(100vh - 96px);
    padding: 0;
    overflow: visible;
    border-radius: 22px;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.96);
    transition: opacity .34s cubic-bezier(.22, 1, .36, 1), transform .34s cubic-bezier(.22, 1, .36, 1);
}

.user-announcement-modal.is-open .user-announcement-card {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.user-announcement-image {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 96px);
    display: block;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(2, 6, 23, .36);
}

.user-announcement-close {
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .94);
    color: #0f397b;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.user-announcement-close:hover,
.user-announcement-close:focus-visible {
    background: #fff;
    transform: scale(1.04);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .22);
}

@media (max-width: 920px) {
    body {
        padding-bottom: 0;
    }

    .user-mobile-footer {
        display: grid;
    }

}

@media (min-width: 768px) {
    .user-contact-modal,
    .user-announcement-modal {
        align-items: center;
        padding: 18px;
    }
}
