:root {
            --bg-dark: #121212;
            --bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            --card-bg: #1e1e1e;
            --card-header-bg: #252525;
            --accent-primary: #0d6efd;
            --accent-hover: #0b5ed7;
            --text-main: #ffffff;
            --text-muted: #b0b0b0;
            --text-dim: #909090;
            --border-color: #404040;
            --input-bg: #3a3a3a;
            --feed-footer-height: 76px;
        }

        body {
            background: var(--bg-gradient);
            color: var(--text-main);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            min-height: 100vh;
            padding-top: 84px;
        }

        /* Ajuste para usar 90% da largura da tela em dispositivos desktop */
        @media (min-width: 1200px) {
            .container, .container-lg, .container-xl, .container-xxl {
                max-width: 90% !important;
                width: 90% !important;
            }
        }

        .navbar {
            background-color: rgba(30, 30, 30, 0.95) !important;
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 2000;
        }

        .card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .user-card {
            margin-bottom: 20px;
            transition: transform 0.2s;
        }
        .user-card:hover {
            transform: translateY(-5px);
        }
        .user-card .card-title {
            color: var(--text-main) !important;
        }
        .user-card .card-text {
            color: var(--text-muted) !important;
        }
        .user-card .text-muted {
            color: var(--text-muted) !important;
        }
        .user-card small {
            color: var(--text-muted) !important;
        }
        .user-photo {
            width: 100%;
            aspect-ratio: 1/1;
            object-fit: cover;
            border-radius: 12px 12px 0 0;
            transition: height 0.2s ease;
        }

        #photoSizeValue,
        #usersPerRowValue {
            min-width: 48px;
            text-align: right;
        }

        .form-range {
            accent-color: var(--accent-primary);
        }

        #usersPerRow {
            width: 66.66%; /* 2/3 do tamanho para 3 colunas (alinha centro a centro) */
            margin-left: auto;
            margin-right: auto;
            display: block;
        }

        #photoSize {
            width: 85.71%; /* 6/7 do tamanho para alinhar centro a centro com 7 colunas */
            margin-left: auto;
            margin-right: auto;
            display: block;
        }

        @media (max-width: 767px) {
            #photoSize {
                width: 100%; /* No mobile a escala pode ser diferente ou o input ocupar tudo */
            }
            .users-per-row-scale {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        .photo-size-scale {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 0;
            margin-top: 6px;
            position: relative;
        }

        .photo-size-mark {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 0.72rem;
            color: var(--text-dim);
            text-align: center;
            line-height: 1.2;
            border-radius: 6px;
            padding: 7px 0 2px;
            cursor: pointer;
            transition: color 0.2s ease, background-color 0.2s ease;
        }

        .photo-size-mark::before {
            content: '';
            position: absolute;
            top: 1px;
            width: 2px;
            height: 5px;
            border-radius: 2px;
            background: var(--text-dim);
            opacity: 0.8;
            transition: background-color 0.2s ease, opacity 0.2s ease;
        }

        .photo-size-mark.active {
            color: #fff;
            background: var(--accent-primary);
        }

        .photo-size-mark.active::before {
            background: #fff;
            opacity: 1;
        }

        .users-per-row-scale {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0;
            margin-top: 6px;
            position: relative;
        }

        .users-per-row-mark {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            color: var(--text-dim);
            text-align: center;
            line-height: 1.2;
            border-radius: 6px;
            padding: 7px 0 2px;
            cursor: pointer;
            transition: color 0.2s ease, background-color 0.2s ease;
        }

        .users-per-row-mark::before {
            content: '';
            position: absolute;
            top: 1px;
            width: 2px;
            height: 5px;
            border-radius: 2px;
            background: var(--text-dim);
            opacity: 0.8;
            transition: background-color 0.2s ease, opacity 0.2s ease;
        }

        .users-per-row-mark.active {
            color: #fff;
            background: var(--accent-primary);
        }

        .users-per-row-mark.active::before {
            background: #fff;
            opacity: 1;
        }


        .filter-section {
            background: var(--card-bg);
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
        }
        .filter-section h5 {
            color: var(--text-main);
            margin-bottom: 15px;
        }
        .form-label {
            color: var(--text-muted);
            font-size: 0.85rem;
            font-weight: 500;
        }
        .form-control,
        .form-select {
            background-color: var(--input-bg);
            border-color: var(--border-color);
            color: var(--text-main);
            border-radius: 8px;
        }
        .form-control:focus,
        .form-select:focus {
            background-color: var(--input-bg);
            border-color: var(--accent-primary);
            color: var(--text-main);
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

        .form-control::placeholder,
        .form-select::placeholder {
            color: var(--text-main) !important;
            opacity: 0.7;
        }

        /* Campo específico: removido o preto 10% */
        #filterUsername,
        #filterUsername:focus {
            color: var(--text-main) !important;
        }

        #filterUsername::placeholder {
            color: var(--text-main) !important;
        }
        .form-select option {
            background-color: var(--card-bg);
            color: var(--text-main);
        }
        .tab-nav {
            margin-bottom: 25px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            width: 100%;
        }
        .tab-nav .nav-item {
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
        }
        .nav-link {
            color: var(--text-muted);
            border: none;
            border-bottom: 3px solid transparent;
            padding: 10px 12px;
            font-weight: 500;
            transition: all 0.3s;
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            white-space: nowrap;
        }
        .nav-link .tab-text {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
        }
        .nav-link:hover {
            color: var(--text-main);
            border-bottom-color: var(--border-color);
        }
        .nav-link.active {
            color: var(--accent-primary) !important;
            border-bottom-color: var(--accent-primary) !important;
            background-color: transparent !important;
        }

        /* Ocultar texto das abas se o espaço for insuficiente (transição suave para apenas ícones) */
        @media (max-width: 576px) {
            .tab-nav .tab-text {
                display: none;
            }
            .tab-nav .nav-link {
                padding: 10px 5px;
                font-size: 1.2rem;
                gap: 0;
            }
        }

        .quick-menu {
            position: relative;
            display: inline-block;
            z-index: 2147483646;
        }
        .quick-menu summary {
            list-style: none;
            cursor: pointer;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0.35rem 0.6rem;
            color: var(--text-main);
            user-select: none;
            position: relative;
            z-index: 99999;
        }
        .quick-menu summary::-webkit-details-marker {
            display: none;
        }
        .quick-menu[open] {
            z-index: 2147483647;
        }
        .quick-menu[open] .quick-menu-items {
            display: block;
        }
        .quick-menu-items {
            display: none;
            position: absolute;
            right: 0;
            top: 45px;
            min-width: 220px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            z-index: 2147483647;
            padding: 0.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
        }
        
        @media (max-width: 1200px) {
            #currentUserDisplay {
                display: none !important;
            }
        }

        @media (max-width: 991px) {
            #myProfileBtn, 
            #ouroBtn,
            #ouroBadge,
            #adminPanelBtnContainer {
                display: none !important;
            }
            .navbar-nav {
                padding-top: 1rem;
            }
        }
        
        @media (max-width: 576px) {
            .quick-menu-items {
                right: -10px;
                top: 45px;
                min-width: 200px;
            }
        }
        .quick-menu-items a,
        .quick-menu-items button {
            width: 100%;
            text-align: left;
            display: block;
            background: transparent;
            border: none;
            color: var(--text-main);
            text-decoration: none;
            padding: 0.5rem 0.65rem;
            border-radius: 8px;
        }
        .quick-menu-items a:hover,
        .quick-menu-items button:hover {
            background: var(--input-bg);
        }

        .feed-footer {
            z-index: 1030;
            background: rgba(18, 18, 18, 0.96);
            border-top: 1px solid var(--border-color);
            box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
            backdrop-filter: blur(10px);
        }

        .feed-footer-container {
            padding-top: 8px;
            padding-bottom: 8px;
        }

        .feed-footer-info {
            color: var(--text-muted);
            line-height: 1.45;
        }

        .feed-mobile-nav {
            min-height: 52px;
            gap: 2px;
        }

        .nav-mobile-btn {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none !important;
            opacity: 0.78;
            transition: all 0.2s ease;
        }

        .nav-mobile-btn:hover {
            opacity: 1;
            transform: translateY(-1px);
            background: rgba(255, 193, 7, 0.08);
        }

        .nav-mobile-btn.active {
            opacity: 1 !important;
            background: rgba(255, 193, 7, 0.14);
            box-shadow: inset 0 -2px 0 #ffc107;
        }

        .nav-mobile-icon {
            font-size: 1.45rem;
            line-height: 1;
        }

        .footer-unread-badge {
            font-size: 0.65rem;
            min-width: 18px;
            line-height: 1.2;
            padding: 0.2rem 0.35rem;
        }

        .messages-unread-alert {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 0;
            text-decoration: none;
            min-width: 30px;
        }
        .messages-unread-alert.show {
            display: inline-flex;
        }
        .mail-closed-icon {
            color: #ff3b3b;
            font-size: 1rem;
            line-height: 1;
            filter: drop-shadow(0 0 4px rgba(255, 59, 59, 0.7));
        }
        .messages-unread-count {
            margin-left: -2px;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            border-radius: 999px;
            background: #ff3b3b;
            color: #fff;
            font-size: 0.65rem;
            font-weight: 700;
            line-height: 16px;
            text-align: center;
            box-shadow: 0 0 8px rgba(255, 59, 59, 0.7);
        }

        /* Estilos para postagens */
        .post-card {
            margin-bottom: 25px;
            border-radius: 12px;
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .post-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.4);
        }
        .post-header {
            padding: 15px 20px;
            background-color: var(--card-header-bg);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
        }
        .post-author-section {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 1;
            min-width: 0;
        }
        .post-author-avatar {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--border-color);
            background-color: var(--input-bg);
            flex-shrink: 0;
        }
        .post-author-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .post-author {
            color: var(--text-main);
            text-decoration: none;
            font-weight: 700;
            font-size: 1.05rem;
            line-height: 1.25;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            max-width: 100%;
        }
        .post-author:hover {
            color: var(--accent-primary);
        }
        .post-user-meta {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-muted);
            line-height: 1.3;
        }
        .post-header-side {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
            flex-shrink: 0;
        }
        .post-date {
            font-size: 0.95rem;
            color: var(--text-dim);
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
            text-align: right;
        }
        .post-date-text {
            white-space: nowrap;
        }
        .badge {
            background-color: var(--input-bg) !important;
            color: var(--text-muted) !important;
            font-weight: 500;
            border-radius: 999px;
            padding: 0.35rem 0.65rem;
        }
        .badge-ouro, .badge.bg-warning {
            background: linear-gradient(90deg, #ffd700 0%, #fffbe6 50%, #ffd700 100%) !important;
            background-size: 200% auto !important;
            color: #7a5a00 !important;
            border: 1px solid #ffe066;
            font-weight: bold;
            letter-spacing: 0.5px;
            box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
            animation: shine 3s linear infinite;
        }
        @keyframes shine {
            to { background-position: 200% center; }
        }
        .post-image {
            width: 100%;
            max-height: 500px;
            object-fit: cover;
            display: block;
        }
        .post-content {
            padding: 20px;
            font-size: 1rem;
            line-height: 1.6;
            color: #ececec;
        }
        .post-actions {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            padding: 12px 20px;
            border-top: 1px solid var(--border-color);
            background-color: var(--card-bg);
        }
        .btn-like {
            display: flex;
            align-items: center;
            gap: 8px;
            border: none;
            background: none;
            cursor: pointer;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 14px;
            transition: all 0.2s;
            color: var(--text-muted);
        }
        .btn-like:hover {
            background: var(--input-bg);
            color: var(--text-main);
        }
        .btn-like.liked {
            color: #ff6b6b;
            background: rgba(255, 107, 107, 0.1);
        }
        .btn-comments-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: none;
            background: none;
            cursor: pointer;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 14px;
            transition: all 0.2s;
            color: var(--text-muted);
        }
        .btn-comments-toggle:hover {
            background: var(--input-bg);
            color: var(--text-main);
        }
        .btn-comments-toggle.is-open {
            color: var(--accent-primary);
            background: rgba(13, 110, 253, 0.12);
        }
        .btn-comments-toggle .count {
            font-weight: 700;
            color: inherit;
        }
        .btn-post-report-icon {
            width: 36px;
            height: 36px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            line-height: 1;
        }
        .post-comments {
            display: none;
            padding: 0 20px 20px;
            background-color: var(--card-bg);
            border-top: 1px solid var(--border-color);
            margin-top: 10px;
            padding-top: 15px;
        }
        .post-comments.show {
            display: block;
        }
        .comment-item {
            padding: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            margin-bottom: 8px;
        }
        .comment-item:last-child {
            border-bottom: none;
        }
        .comment-header {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
        }
        .comment-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            margin-right: 8px;
            object-fit: cover;
        }
        .comment-author {
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--accent-primary);
            text-decoration: none;
        }
        .comment-author:hover {
            text-decoration: underline;
        }
        .comment-content {
            font-size: 0.9rem;
            color: var(--text-main);
            margin-bottom: 2px;
            word-break: break-word;
        }
        .comment-date {
            font-size: 0.75rem;
            color: var(--text-dim);
        }
        .comment-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 4px;
        }
        .btn-comment-like {
            background: none;
            border: none;
            color: var(--text-dim);
            font-size: 0.75rem;
            padding: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: color 0.2s;
        }
        .btn-comment-like:hover {
            color: var(--text-main);
        }
        .btn-comment-like.liked {
            color: #ff6b6b;
        }
        .btn-comment-delete {
            background: none;
            border: none;
            color: #ff6b6b;
            font-size: 0.75rem;
            padding: 0;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s;
        }
        .btn-comment-delete:hover {
            opacity: 1;
        }
        .comment-form {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }
        .comment-input {
            background-color: var(--input-bg);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            border-radius: 20px;
            padding: 8px 15px;
            flex-grow: 1;
            font-size: 0.9rem;
        }
        .comment-input:focus {
            outline: none;
            border-color: var(--accent-primary);
        }
        .btn-comment-send {
            background: var(--accent-primary);
            color: white;
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-comment-send:hover {
            background: var(--accent-hover);
            transform: scale(1.05);
        }
        .btn-comment-send:disabled {
            background: var(--border-color);
            cursor: not-allowed;
        }
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-dim);
        }
        .empty-state-icon {
            font-size: 4rem;
            margin-bottom: 15px;
            display: block;
            opacity: 0.5;
        }
        .empty-state h5 {
            color: var(--text-main) !important;
        }
        .empty-state .text-muted {
            color: var(--text-muted) !important;
        }

        /* Sidebar Fixa */
        .sidebar-fixed {
            position: sticky;
            top: 100px;
        }
        .create-post-inline {
            margin-bottom: 1rem;
        }

        .post-image-input {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            border: 0;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            clip-path: inset(50%);
            white-space: nowrap;
        }

        .post-image-label-text {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .post-image-clip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--input-bg);
            border: 1px solid var(--border-color);
            transition: all 0.2s ease;
        }

        .post-image-label-text:hover .post-image-clip {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

        .post-image-thumbnail {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 6px;
            border: 2px solid var(--accent-primary);
            box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
        }

        /* Botão de deletar */
        .btn-delete {
            padding: 4px 8px;
            font-size: 12px;
            border: 1px solid #ff6b6b;
            background: transparent;
            color: #ff6b6b;
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.3s;
        }

        .btn-delete:hover {
            background-color: #ff6b6b;
            color: #ffffff;
        }

        /* Modal de Detalhes do Usuário */
        .user-details-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            overflow-y: auto;
            padding: 20px;
        }

        .user-details-modal.show {
            display: flex;
        }

        .user-details-content {
            background: #2a2a2a;
            border-radius: 12px;
            padding: 30px;
            max-width: 600px;
            width: 100%;
            border: 1px solid #404040;
            color: #e0e0e0;
            max-height: 90vh;
            overflow-y: auto;
        }

        .user-details-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #404040;
        }

        .user-details-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #0d6efd;
        }

        .user-details-info {
            flex: 1;
            margin-left: 20px;
        }

        .user-details-info h3 {
            margin: 0 0 5px 0;
            color: #ffffff;
            font-size: 24px;
        }

        .user-details-info p {
            margin: 5px 0;
            color: #b0b0b0;
            font-size: 14px;
        }

        .user-details-badges {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .user-details-close {
            background: none;
            border: none;
            color: #b0b0b0;
            font-size: 28px;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-details-close:hover {
            color: #e0e0e0;
        }

        .user-details-section {
            margin-bottom: 20px;
        }

        .user-details-section h4 {
            color: #ffffff;
            font-size: 16px;
            margin-bottom: 10px;
            border-bottom: 1px solid #404040;
            padding-bottom: 10px;
        }

        .user-details-section p {
            color: #b0b0b0;
            line-height: 1.6;
            margin: 0;
        }

        .user-details-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #404040;
        }

        .user-details-actions button {
            flex: 1;
        }
        .likes-list-container {
            padding: 12px 16px;
            background-color: #1f1f1f;
            border-top: 1px solid #404040;
            display: none;
        }
        .likes-list-container.show {
            display: block;
        }
        .likes-list-heading {
            color: #e0e0e0;
            font-weight: 700;
            margin-bottom: 12px;
        }
        .like-user-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: linear-gradient(180deg, rgba(42, 42, 42, 0.96) 0%, rgba(32, 32, 32, 0.96) 100%);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            margin-bottom: 10px;
        }
        .like-user-avatar {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid #404040;
            flex-shrink: 0;
        }
        .like-user-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .like-user-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .like-user-name {
            font-weight: 700;
            color: #e0e0e0;
            line-height: 1.25;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .like-user-meta {
            font-size: 0.82rem;
            color: var(--text-muted);
        }
        .like-user-view-btn {
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* Card para criar postagem */
        .card {
            background-color: #2a2a2a;
            border: 1px solid #404040;
            color: #e0e0e0;
        }
        .card h5 {
            color: #ffffff;
        }
        .form-text {
            color: #909090 !important;
        }

        /* Checkboxes para filtros */
        #minifeed .interests-chips-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 10px;
            background-color: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            min-height: 60px;
            transition: border-color 0.3s ease;
        }
        #minifeed .interests-chips-container:focus-within {
            border-color: #0d6efd;
        }
        #minifeed .interest-chip {
            position: relative;
            display: inline-block;
            margin: 0;
            cursor: pointer;
            user-select: none;
        }
        #minifeed .interest-chip input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }
        #minifeed .interest-chip span {
            display: inline-block;
            padding: 8px 16px;
            background-color: #2a2a2a;
            color: #b0b0b0;
            border: 2px solid #404040;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        #minifeed .interest-chip:hover span {
            border-color: #0d6efd;
            background-color: #1e3a5f;
            transform: translateY(-2px);
        }
        #minifeed .interest-chip input[type="checkbox"]:checked + span {
            background-color: #0d6efd;
            color: #ffffff;
            border-color: #0d6efd;
            box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
        }
        #minifeed .interest-chip input[type="checkbox"]:focus + span {
            outline: 2px solid #0d6efd;
            outline-offset: 2px;
        }

        .filter-interest-checkbox {
            background-color: var(--input-bg);
            border-color: var(--border-color);
        }
        .filter-interest-checkbox:checked {
            background-color: var(--accent-primary);
            border-color: var(--accent-primary);
        }
        .form-check-label {
            color: var(--text-main);
            cursor: pointer;
            user-select: none;
        }

        /* Global text color overrides for dark theme */
        .text-muted {
            color: var(--text-muted) !important;
        }
        h1, h2, h3, h4, h5, h6 {
            color: var(--text-main) !important;
        }
        p {
            color: var(--text-muted);
        }
        small {
            color: var(--text-dim) !important;
        }
        .card-body h5 {
            color: var(--text-main) !important;
        }
        .card-body p {
            color: var(--text-muted) !important;
        }

        /* Follow button styling */
        .btn-follow {
            padding: 8px 20px;
            font-size: 14px;
            border-radius: 20px;
            border: 1px solid #0d6efd;
            background: transparent;
            color: #0d6efd;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }
        .post-header .btn-follow {
            min-height: 38px;
        }
        .btn-follow:hover {
            background-color: #0d6efd;
            color: #ffffff;
        }
        .btn-follow.following {
            background-color: #404040;
            border-color: #404040;
            color: #b0b0b0;
        }
        .btn-follow.following:hover {
            background-color: #ff6b6b;
            border-color: #ff6b6b;
            color: #ffffff;
        }

        .btn-icon-compact {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-icon-compact .btn-icon {
            line-height: 1;
        }

        .user-card-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            width: 100%;
            flex-wrap: nowrap;
            overflow: hidden;
        }

        /* Modo normal: detalhes cresce, bloquear e seguir fixos */
        .user-card-actions .btn-action-details {
            flex: 1 1 auto;
            min-width: max-content;
            white-space: nowrap;
            overflow: visible;
        }

        .user-card-actions .btn-action-block,
        .user-card-actions .btn-action-follow {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .user-card-actions .btn-action-follow {
            margin-left: 0;
        }

        /* Modo compacto: só ícone, botão na largura do ícone */
        .user-card-actions.is-compact {
            display: flex;
            flex-wrap: nowrap;
            gap: 6px;
            overflow: visible;
        }

        .user-card-actions.is-compact .btn-label {
            display: none;
        }

        .user-card-actions.is-compact .btn-icon-compact {
            flex: 0 0 auto;
            gap: 0;
            width: auto;
            padding-left: 8px;
            padding-right: 8px;
            justify-content: center;
        }


        @media (max-width: 576px) {
            .post-header {
                padding: 14px 16px;
                flex-direction: column;
                align-items: stretch;
            }

            .post-author-section {
                align-items: center;
                gap: 12px;
            }

            .post-author-avatar {
                width: 58px;
                height: 58px;
            }

            .post-author {
                font-size: 1rem;
            }

            .post-user-meta,
            .post-date {
                font-size: 0.88rem;
            }

            .post-header-side {
                width: 100%;
                align-items: flex-start;
                gap: 8px;
            }

            .post-date {
                justify-content: flex-start;
                text-align: left;
            }

            .post-header .btn-follow {
                align-self: flex-start;
            }

            .post-actions {
                gap: 10px;
            }

            .btn-comments-toggle {
                padding: 8px 12px;
            }


            .btn-icon-compact .btn-label {
                display: none;
            }

            .btn-icon-compact {
                gap: 0;
            }

            /* Exceção: botão Ver Detalhes sempre mostra o texto */
            .btn-action-details .btn-label {
                display: inline;
            }

            .btn-action-details {
                gap: 6px;
            }

            /* No mobile, permitir múltiplas colunas nos cards */
            #usersList.row {
                margin-left: -5px;
                margin-right: -5px;
            }
            #usersList.row .col {
                padding-left: 5px;
                padding-right: 5px;
            }
            #usersList.row .user-card .card-body {
                padding: 8px;
            }
            #usersList.row .user-card .card-title {
                font-size: 0.9rem;
            }
            #usersList.row .user-card .card-text {
                font-size: 0.75rem;
                margin-bottom: 5px !important;
            }
            #usersList.row .user-card-actions {
                gap: 4px;
            }
        }



/* Estilos para Menções e Autocomplete */
.mention-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}
.mention-link:hover {
    text-decoration: underline;
}
.autocomplete-suggestions {
    position: absolute;
    z-index: 1000;
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-height: 200px;
    overflow-y: auto;
    width: 250px;
    display: none;
    color: white;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #444;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover, .suggestion-item.active {
    background-color: #3d3d3d;
}
.suggestion-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.suggestion-username {
    font-weight: bold;
    font-size: 0.9em;
}

/* Notificações */
.notification-item {
    padding: 15px;
    border-bottom: 1px solid #444;
    transition: background-color 0.2s;
    background-color: #2c2c2c;
    color: #eee;
}

.notification-item:hover {
    background-color: #383838;
}

.notification-item.unread {
    background-color: #3d3d3d;
    border-left: 4px solid var(--accent-primary);
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.notification-content {
    flex: 1;
}

.notification-time {
    font-size: 0.8em;
    color: #888;
}

.notification-text .notification-username {
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.notification-text .notification-username:hover {
    text-decoration: underline;
    color: var(--accent-primary);
}

/* Fim Notificações */

/* Destaque para a palavra 'ouro' com ícone */
.gold-highlight {
  color: #FFD700;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}
.gold-highlight .gold-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.15em;
}

.temp-location-map {
  width: 100%;
  min-height: 420px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: #171717;
}

.temp-map-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(90deg, #dc3545, #ff6b6b);
  box-shadow: 0 0 12px rgba(220, 53, 69, 0.35);
}

#tempMapStatus {
  min-height: 20px;
}

#tempMapMeta {
  min-height: 18px;
}

.temp-map-popup {
  min-width: 180px;
}

.temp-map-popup .title {
  font-weight: 700;
  margin-bottom: 4px;
}

.temp-map-popup .meta {
  font-size: 0.85rem;
  color: #4a4a4a;
}

/* Modo imersivo para a aba de mapa ao vivo */
body.map-live-fullscreen {
  overflow: hidden;
  padding-bottom: 0 !important;
}

body.map-live-fullscreen #abas-nav {
  display: none !important;
}

body.map-live-fullscreen > .container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

body.map-live-fullscreen .row.g-4 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin: 0;
}

body.map-live-fullscreen .row.g-4 > [class*='col-'] {
  padding-left: 0;
  padding-right: 0;
}

body.map-live-fullscreen #mapSection {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 84px - var(--feed-footer-height, 0px));
  height: calc(100dvh - 84px - var(--feed-footer-height, 0px));
  margin: 0;
  padding: 0;
}

body.map-live-fullscreen #mapSection > .d-flex {
  margin: 0 !important;
  padding: 0.75rem 1rem;
  background: rgba(18, 18, 18, 0.92);
}

body.map-live-fullscreen #mapSection > p,
body.map-live-fullscreen #tempMapStatus,
body.map-live-fullscreen #tempMapMeta {
  margin: 0;
  padding: 0.2rem 1rem;
  background: rgba(18, 18, 18, 0.92);
}

body.map-live-fullscreen .temp-location-map {
  flex: 1;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

 @media (max-width: 767px) {
   .temp-location-map {
     min-height: 320px;
   }

   body.map-live-fullscreen #mapSection {
      height: calc(100vh - 84px - var(--feed-footer-height, 0px));
      height: calc(100dvh - 84px - var(--feed-footer-height, 0px));
   }
 }
