
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Arial, sans-serif;
    background-color: #e9edf5;
    font-size: 16px;
    color: #333;
}

/* --- Header --- */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #dce4f0;
    padding: 10px;
    gap: 10px;
}

.logo-img { height: 35px; }

/* Tag BETA */
.logo-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.alpha-tag {
    color: #c35099;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

#searchForm {
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 90%;
    max-width: 400px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #c8d3e2;
    font-size: 15px;
}

.header-nav-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: center;
}

.nav-btn {
    background-color: #ffffff;
    color: #082a56;
    font-weight: bold;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 90%;
    font-size: 15px;
}
.nav-btn:hover { background-color: #cbd5e3; }

.dropdown-content {
    display: none;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 8px;
    border-radius: 5px;
    margin-top: 5px;
    width: 90%;
    text-align: center;
    z-index: 10000;
}
.dropdown-content a {
    display: block;
    padding: 8px 10px;
    color: #eb1c91;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}
.dropdown-content a:hover {
    background-color: #fbe2f0;
    border-radius: 4px;
}
.dropdown-content.show { display: block; }

.create-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #ffffff;
    color: #082a56;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 90%;
    font-size: 15px;
    text-decoration: none;
}
.create-btn:hover { background-color: #cbd5e3; }

.user-greeting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 8px;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 10px;
}

.logout-btn {
    background: none;
    border: none;
    color: #eb1c91;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}
.logout-btn:hover { color: #f056b0; }

/* --- Main --- */
.main.responsive-container { padding: 15px; }

.welcome {
    text-align: center;
    padding: 20px 0;
}
.welcome h2 { font-size: 24px; margin-bottom: 10px; }
.logo-main { height: 80px; margin: 15px 0; }
.welcome p { font-size: 16px; margin-bottom: 20px; }
.explore-link { font-weight: bold; color: #082a56; text-decoration: none; }

/* --- Seção Comunidades --- */
.communities-container {
    background: #ffffff;
    margin-top: 0;
    padding: 20px 10px;
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
}

.communities-box { max-width: 100%; margin: auto; }

.h3-desktop {
    text-align: center;
    color: #a70a63;
    font-size: 20px;
    margin-bottom: 20px;
}

.category { margin-bottom: 30px; }
.category h4 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
    text-align: center;
}

/* ============================================================
   NOVO CARD DE COMUNIDADE — VERTICAL RETANGULAR
   ============================================================ */

.community-card {
    flex: 0 0 auto;
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5eaf2;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.community-card:hover {
    box-shadow: 0 6px 20px rgba(8,42,86,0.13);
    transform: translateY(-3px);
}

/* Imagem de capa */
.community-card .card-cover {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
    background: #e9edf5;
    flex-shrink: 0;
}

.community-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.community-card:hover .card-cover img {
    transform: scale(1.04);
}

/* Linha status + views */
.community-card .card-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 4px;
    font-size: 11px;
    gap: 6px;
}

.card-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.card-status-badge.pending {
    background: #fef9c3;
    color: #854d0e;
    border-color: #fde68a;
}

.card-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

/* Nome da comunidade */
.community-card .card-title {
    font-size: 15px;
    font-weight: 800;
    color: #082a56;
    padding: 4px 12px 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pills: status, idioma, categoria */
.card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 12px 8px;
}

.card-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.card-pill-status {
    background: #fce7f3;
    color: #eb1c91;
    border: 1px solid #f9a8d4;
}

.card-pill-language {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.card-pill-category {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

/* Datas */
.card-dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px 8px;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.4;
}

.card-dates span {
    display: block;
}

/* Descrição */
.card-description {
    padding: 0 12px 10px;
    font-size: 11px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Linha inferior: avatares + posts */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 10px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

/* Avatares empilhados */
.card-avatars {
    display: flex;
    align-items: center;
    gap: 0;
}

.card-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -6px;
    background: #e9edf5;
    flex-shrink: 0;
}

.card-avatar:first-child { margin-left: 0; }


/* Wrapper do avatar com coroa */
.card-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-left: -6px;
}

.card-avatar-wrap:first-child { margin-left: 0; }

.card-crown-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    display: block;
    margin: 0 0 5px -5px;
}

.card-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-left: -6px;
    width: 26px;
}

.card-avatar-wrap:first-child { 
    margin-left: 0;
    z-index: 10;
}

/* Avatares seguintes ficam atrás do primeiro */
.card-avatar-wrap:nth-child(2) { z-index: 9; }
.card-avatar-wrap:nth-child(3) { z-index: 8; }
.card-avatar-wrap:nth-child(4) { z-index: 7; }
.card-avatar-wrap:nth-child(5) { z-index: 6; }

.card-avatars {
    align-items: flex-end;
    display: flex;
}

.card-avatar-extra {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #082a56;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-left: -6px;
    flex-shrink: 0;
}

/* Contador de posts */
.card-posts {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

/* Botão Ver Comu */
.view-community-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 8px 0;
    text-align: center;
    background: #082a56;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.view-community-btn:hover {
    background-color: #e9edf5;
    color: #082a56;
}

/* Skeleton para loading */
.community-card-skeleton {
    flex: 0 0 auto;
    width: 260px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-card-image {
    width: 100%;
    height: 140px;
    background: #e9ecef;
}

.skeleton-card-title {
    width: 75%;
    height: 16px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 12px 12px 8px;
}

.skeleton-card-theme {
    width: 55%;
    height: 12px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 0 12px 8px;
}

.skeleton-card-button {
    width: calc(100% - 24px);
    height: 32px;
    background: #e9ecef;
    border-radius: 8px;
    margin: 8px 12px 12px;
}

@keyframes pulse {
    0%   { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Badge verificado */
.verified-badge {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
}

/* --- Carrossel --- */
.carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 8px 16px;
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    visibility: hidden;
}

.carousel.loaded { visibility: visible; }
.carousel::-webkit-scrollbar { display: none; }

.carousel-btn {
    background-color: #e9edf5;
    border: 1px solid #dce4f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    z-index: 2;
    flex-shrink: 0;
    transition: background-color 0.2s, opacity 0.2s;
}
.carousel-btn:hover { background-color: #dce4f0; opacity: 1; }
.carousel-btn.prev { margin-right: 4px; }
.carousel-btn.next { margin-left: 4px; }

/* Card de anúncio */
.promo-card {
    border: 1px solid #bfdbfe;
}

.promo-card .card-status-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* --- Rodapé --- */
.footer {
    background: #dce4f0;
    padding: 20px;
    text-align: center;
    font-size: 13px;
}

.footer div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 15px;
    margin-bottom: 10px;
}

.footer a { color: #082a56; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 0; font-size: 12px; color: #555; }

/* --- Botão Criar --- */
.create-btn-wrapper { text-align: center; margin-top: 30px; }
.create-btn-wrapper button {
    background: #e0e6f1;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #082a56;
}
.create-btn-wrapper button:hover { background: #c8d3e2; }

/* --- Filtro A-Z --- */
.alphabet-filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

#letter-group-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
}

.filter-letter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #e9edf5;
    border: 1px solid #dce4f0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}
.filter-letter:hover,
.filter-letter.active {
    background-color: #eb1c91;
    color: white;
    cursor: pointer;
}

.filter-nav-btn {
    background: none;
    border: 1px solid #dce4f0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.filter-nav-btn:hover { background-color: #eb1c91; color: white; }
.filter-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #e9edf5;
    color: #aaa;
}

/* Resultados do filtro A-Z */
#filterResultsContainer .community-result-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}
/* Badge verificado nos resultados do filtro */
#filterResultsContainer .verified-badge {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
}
/* Badge verificado nos resultados do filtro avançado */
.community-result-item .verified-badge {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
}
#filterResultsContainer .community-result-item:hover {
    background-color: #f7f8fa;
    cursor: pointer;
}
#filterResultsContainer .community-result-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 15px;
    margin-left: 20px;
}
#filterResultsContainer .pagination { text-align: center; margin-top: 20px; }
#filterResultsContainer .pagination a,
#filterResultsContainer .pagination span { margin: 0 10px; font-weight: bold; }

.btn-voltar-filtro {
    display: inline-block;
    padding: 8px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-voltar-filtro:hover { background-color: #5a6268; }

/* --- Modal Overlay (base para todos os modais) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-content h2 {
    color: #082a56;
    margin-top: 0;
}

/* --- Modal de Filtro Avançado --- */
.filter-form-group { margin-bottom: 20px; }
.filter-form-group label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dce4f0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.filter-select:hover { border-color: #b3cde0; }
.filter-select:focus {
    outline: none;
    border-color: #eb1c91;
    box-shadow: 0 0 0 3px rgba(235,28,145,0.1);
}

.btn-primary {
    background-color: #eb1c91;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.btn-primary:hover { background-color: #c8167a; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.btn-secondary:hover { background-color: #5a6268; transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }

/* Botão Filtro Avançado */
.advanced-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #c8167a;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}
.advanced-filter-btn:hover {
    background-color: #c8167a;
    transform: translateY(-1px);
    color: white;
}
.advanced-filter-btn:active { transform: translateY(0); }

/* PWA Install */
#installPwaContainer span { margin-right: 10px; color: #004085; font-weight: 500; }
.install-pwa-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
    background-color: #eb1c91;
    color: white;
}
.install-pwa-button:hover { background-color: #c8167a; }

.notificationCount {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #eb1c91;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    line-height: 1;
}

/* Classe usada pelo notification_bell.php */
.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #eb1c91;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    line-height: 1;
}

/* ============================================================
   TABLET (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 40px;
        gap: 20px;
    }


    .header-nav-buttons {
        flex-direction: row;
        width: auto;
        align-items: center;
        margin-left: 0;
    }

    .online-status-toggle {
        margin-left: auto;
    }

    .dropdown-content {
        position: absolute;
        width: auto;
        min-width: 180px;
        text-align: left;
    }

    .nav-btn, .create-btn { width: auto; }

    .user-greeting {
        margin-top: 0;
        margin-left: 20px;
        width: auto;
    }

    .main.responsive-container { padding: 20px 0; }

    .communities-container { padding: 30px 40px; }

    .h3-desktop { font-size: 24px; }

    .category h4 { text-align: left; font-size: 20px; }

    .communities-container {
        border-top-left-radius: 90px;
        border-top-right-radius: 90px;
    }
}

/* ============================================================
   MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .notifications-bell {
        margin: 0 5px;
        position: relative !important;
        flex-shrink: 0;
    }

    .notifications-bell .notification-count {
        position: absolute !important;
        top: -8px !important;
        right: -8px !important;
        left: auto !important;
    }

   .notifications-dropdown {
        position: fixed !important;
        top: 56px !important;
        left: 8px !important;
        right: 8px !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: 65vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        z-index: 11500 !important;
        transform: none !important;
    }
    .communities-container {
        padding: 20px 10px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }

    .community-card {
        width: 220px;
    }

    .community-card .card-cover {
        height: 120px;
    }

    .filter-form-group { margin-bottom: 15px; }

    .filter-select {
        font-size: 16px;
        padding: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }

    #advancedFilterModal .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
    }

    #advancedFilterModal form > div:last-child {
        flex-direction: column !important;
    }

    .advanced-filter-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    #installPwaContainer {
        display: none;
        padding: 10px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    #installPwaContainer span { margin-right: 0; margin-bottom: 5px; }

    .install-pwa-button {
        width: 80%;
        padding: 10px 16px;
    }
}

/* ============================================================
   DESKTOP (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
    .communities-box { max-width: 1400px; }

    .community-card { width: 280px; }

    .community-card .card-cover { height: 160px; }
}

/* ============================================================
   BOTTOM NAV MOBILE
   ============================================================ */
.mobile-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    width: min(94vw, 480px);
    background: #e9edf5;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    display: none;
    padding: 10px 8px;
    z-index: 9999;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.mobile-bottom-nav.hide-for-footer {
    transform: translate(-50%, 150px);
    opacity: 0;
    pointer-events: none;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #5b5b5b;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-bottom-nav .nav-item .ico {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.mobile-bottom-nav .nav-item.active {
    color: #eb1c91;
    font-weight: 600;
}

.mobile-bottom-nav::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 6px;
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: #e8e8ee;
    pointer-events: none;
}

#myComusDropdown {
    display: none;
    z-index: 1100;
}

#myComusDropdown.show { display: block; }

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-between;
    }

    #myComusDropdown {
        position: fixed !important;
        bottom: 82px;
        left: 50%;
        transform: translateX(-50%);
        width: min(94vw, 480px);
        max-height: 45vh;
        overflow: auto;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 28px rgba(0,0,0,.18);
        padding: 10px;
        z-index: 11000;
        display: none;
    }

    #myComusDropdown a,
    #myComusDropdown span {
        display: block;
        padding: 12px 14px;
        border-radius: 10px;
        font-weight: 600;
        color: #333;
        text-decoration: none;
    }

    #myComusDropdown a:hover { background: #ff75c3ff; }

    .header .nav-btn,
    .header .create-btn { display: none !important; }

   .header .user-greeting {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
    }

    .mobile-fix-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .header .user-greeting #loggedInUserName {
        font-weight: 700;
        font-size: 14px;
    }

    .header .user-greeting .header-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
    }

    .header .user-greeting .logout-btn {
        color: #eb1c91;
        font-weight: 700;
        text-decoration: none;
        font-size: 14px;
    }

    .notification-count {
        position: absolute;
        top: -6px;
        right: -8px;
        background: #eb1c91;
        color: #fff;
        font-size: 12px;
        font-weight: bold;
        border-radius: 50%;
        padding: 1px 1px;
        min-width: 18px;
        text-align: center;
        line-height: 1.2;
        display: none;
    }

    .filter-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px;
        position: static !important;
        text-align: center;
    }

    .filter-header h3 { margin-bottom: 5px; }

    .filter-header .btn-voltar-filtro {
        position: static !important;
        margin-top: 5px;
        background: #cecdcdff;
        color: #050505ff;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
    }

    .logo-main {
        width: 90%;
        height: 90%;
    }

    .header div:has(#myComusDropdownBtn) {
        display: none !important;
    }

    .header .notifications-bell {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    #notificationsBell .inside-bell {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        margin: 0;
    }

    #notificationsBell .inside-bell #loggedInUserName {
        font-weight: 700;
        font-size: 14px;
    }

    #notificationsBell .inside-bell .header-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
    }

    #notificationsBell .inside-bell .logout-btn {
        color: #eb1c91;
        font-weight: 700;
        text-decoration: none;
        font-size: 14px;
    }
}

/* ============================================================
   MOBILE PEQUENO (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .filter-form-group label { font-size: 13px; }
    #advancedFilterModal h2 { font-size: 20px; }
    #advancedFilterModal p { font-size: 13px; }

    .community-card { width: 200px; }

    .community-card .card-cover { height: 110px; }
}

#feedbackFloatingBtn:hover {
    transform: scale(1.1);
    background: #29052e;
}

#feedbackModalOverlay.open {
    display: flex;
}

#feedbackMessage:focus {
    border-color: #082a56;
}

.feedback-star-btn.active {
    color: #f59e0b;
}

#feedbackSubmitBtn:hover {
    background: #eb1c91;
}

#feedbackSubmitBtn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #feedbackFloatingBtn {
        bottom: 90px;
        right: 14px;
        width: 46px;
        height: 46px;
    }
}

.fx-overlay-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.header {
    position: relative;
    z-index: 10;
}

.main.responsive-container {
    position: relative;
    z-index: 2;
}

.communities-container {
    position: relative;
    z-index: 2;
}

.community-card {
    position: relative;
    z-index: 2;
}

.mobile-bottom-nav {
    position: fixed;
    z-index: 9999;
}

#feedbackFloatingBtn {
    z-index: 8000;
}

#feedbackModalOverlay {
    z-index: 8500;
}

.modal-overlay {
    z-index: 2000;
}