/* 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;
}
: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;
        }

        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;
        }

        .profile-header {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            overflow: hidden;
            margin-bottom: 30px;
        }

        .profile-header h2 {
            color: var(--text-main);
            font-size: 2rem;
            font-weight: 700;
        }

        .profile-header .badge {
            font-size: 14px;
            padding: 8px 12px;
        }

        .profile-stats {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }

        .profile-stat-card {
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.04));
            border: 1px solid rgba(13, 110, 253, 0.25);
            border-radius: 12px;
            padding: 10px 12px;
            min-height: 64px;
        }

        .profile-stat-icon {
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 17px;
            background: rgba(13, 110, 253, 0.18);
            border: 1px solid rgba(13, 110, 253, 0.35);
        }

        .profile-stat-content {
            display: flex;
            flex-direction: column;
            line-height: 1.1;
        }

        .profile-stat-content small {
            color: var(--text-muted);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .profile-stat-content strong {
            color: var(--text-main);
            font-size: 20px;
            font-weight: 700;
            margin-top: 3px;
        }

        @media (max-width: 991.98px) {
            .profile-stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 576px) {
            .profile-stats {
                grid-template-columns: 1fr;
            }
            .profile-header h2 {
                font-size: 1.5rem;
            }
        }

        .card {
            background: #2a2a2a;
            border: 1px solid #404040;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            color: #e0e0e0;
        }

        .card-header {
            background: linear-gradient(90deg, #1a1a1a 0%, #252525 100%) !important;
            border-bottom: 1px solid #404040 !important;
            padding: 15px 20px !important;
        }

        .card-header h5 {
            color: #ffffff;
            margin: 0;
            font-weight: 600;
        }

        .card-body {
            padding: 25px;
        }

        .photo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 0;
        }

        .photo-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            aspect-ratio: 1 / 1;
            background-color: #1a1a1a;
            border: 1px solid #404040;
            transition: all 0.3s;
        }

        .photo-item:hover {
            border-color: #0d6efd;
            box-shadow: 0 0 15px rgba(0, 110, 253, 0.5);
            transform: translateY(-5px);
        }

        .photo-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .photo-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
            padding: 10px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .photo-item:hover .photo-overlay {
            opacity: 1;
        }

        .form-label {
            color: #b0b0b0;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .form-control,
        .form-select {
            background-color: #3a3a3a;
            border-color: #404040;
            color: #e0e0e0;
            border-radius: 6px;
        }

        .form-control:focus,
        .form-select:focus {
            background-color: #3a3a3a;
            border-color: #0d6efd;
            color: #e0e0e0;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
        }

        .form-control::placeholder,
        .form-select::placeholder {
            color: #ffffff !important;
            opacity: 0.7;
        }

        .form-select option {
            background-color: #2a2a2a;
            color: #e0e0e0;
        }

        .btn-primary {
            background-color: #0d6efd;
            border-color: #0d6efd;
            font-weight: 500;
        }

        .btn-primary:hover {
            background-color: #0b5ed7;
            border-color: #0a58ca;
        }

        .btn-success {
            background-color: #51cf66;
            border-color: #51cf66;
            color: #000;
            font-weight: 500;
        }

        .btn-success:hover {
            background-color: #40c057;
            border-color: #40c057;
        }

        .btn-secondary {
            background-color: #6c757d;
            border-color: #6c757d;
        }

        .btn-secondary:hover {
            background-color: #5c636a;
            border-color: #565e64;
        }

        .form-text {
            color: #909090 !important;
            font-size: 13px;
        }

        /* Estilos para os chips de interesses */
        .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;
        }

        .interests-chips-container:focus-within {
            border-color: #0d6efd;
        }

        .interest-chip {
            position: relative;
            display: inline-block;
            margin: 0;
            cursor: pointer;
            user-select: none;
        }

        .interest-chip input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .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;
        }

        .interest-chip:hover span {
            border-color: #0d6efd;
            background-color: #1e3a5f;
            transform: translateY(-2px);
        }

        .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);
        }

        .interest-chip input[type="checkbox"]:focus + span {
            outline: 2px solid #0d6efd;
            outline-offset: 2px;
        }

        .photo-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            transition: transform 0.2s;
        }
        .photo-item:hover {
            transform: scale(1.05);
        }
        .photo-item img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            display: block;
        }
        .photo-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            padding: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .photo-like-btn {
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s;
        }
        .photo-like-btn:hover {
            background: white;
            transform: scale(1.1);
        }
        .photo-like-btn.liked {
            background: #ff6b6b;
            color: white;
        }
        .photo-like-count {
            color: white;
            font-size: 14px;
            font-weight: bold;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        }
        .likes-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;
        }
        .likes-modal.show {
            display: flex;
        }
        .likes-modal-content {
            background: #2a2a2a;
            border-radius: 12px;
            padding: 20px;
            max-width: 400px;
            width: 90%;
            max-height: 70vh;
            overflow-y: auto;
            border: 1px solid #404040;
            color: #e0e0e0;
        }
        .likes-modal-content h5 {
            color: #ffffff;
        }
        .likes-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #404040;
        }
        .btn-close {
            filter: invert(1);
        }
        .likes-list-heading {
            color: #e0e0e0;
            font-weight: 700;
            margin-bottom: 12px;
        }
        .like-user-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-radius: 12px;
            margin-bottom: 10px;
            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);
        }
        .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;
        }
        .text-muted {
            color: #909090 !important;
        }

        /* Cards e formulários */
        .card {
            background-color: #2a2a2a;
            border: 1px solid #404040;
            color: #e0e0e0;
        }
        .card h5 {
            color: #ffffff;
        }
        .form-label {
            color: #b0b0b0;
        }
        .form-control,
        .form-select {
            background-color: #3a3a3a;
            border-color: #404040;
            color: #e0e0e0;
        }
        .form-control:focus,
        .form-select:focus {
            background-color: #3a3a3a;
            border-color: #0d6efd;
            color: #e0e0e0;
        }
        .form-select option {
            background-color: #2a2a2a;
            color: #e0e0e0;
        }
        .form-text {
            color: #909090 !important;
        }
        .btn-primary {
            background-color: #0d6efd;
            border-color: #0d6efd;
        }
        .btn-primary:hover {
            background-color: #0b5ed7;
            border-color: #0a58ca;
        }
        .btn-secondary {
            background-color: #404040;
            border-color: #404040;
            color: #e0e0e0;
        }
        .btn-secondary:hover {
            background-color: #505050;
            border-color: #505050;
        }
        .btn-success {
            background-color: #51cf66;
            border-color: #51cf66;
            color: #000;
        }
        .btn-success:hover {
            background-color: #40c057;
            border-color: #40c057;
        }
        .btn-outline-primary {
            border-color: #0d6efd;
            color: #0d6efd;
        }
        .btn-outline-primary:hover {
            background-color: #0d6efd;
            border-color: #0d6efd;
            color: #ffffff;
        }
        .btn-light {
            background-color: #404040;
            border-color: #404040;
            color: #e0e0e0;
        }
        .btn-light:hover {
            background-color: #505050;
            border-color: #505050;
        }
        .badge {
            background-color: #404040 !important;
            color: #b0b0b0 !important;
        }
        .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;
        }
        .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;
        }

        /* Botão de deletar foto */
        .photo-delete-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            background-color: rgba(255, 107, 107, 0.9);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
            color: white;
            opacity: 0;
        }

        .photo-item:hover .photo-delete-btn {
            opacity: 1;
        }

        .photo-delete-btn:hover {
            background-color: rgba(255, 107, 107, 1);
            transform: scale(1.1);
        }

        /* Avatar Modal */
        .avatar-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;
        }

        .avatar-modal.show {
            display: flex;
        }

        .avatar-modal-content {
            background: #2a2a2a;
            border-radius: 12px;
            padding: 20px;
            max-width: 720px;
            width: 95%;
            max-height: 92vh;
            overflow-y: auto;
            border: 1px solid #404040;
            color: #e0e0e0;
        }

        /* Grid de avatares: 5 por linha (cada grupo tem 5 itens) */
        .avatar-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            margin-bottom: 14px;
        }

        .avatar-option {
            cursor: pointer;
            border-radius: 8px;
            border: 2px solid transparent;
            padding: 3px;
            transition: border-color 0.2s, transform 0.15s;
            background: #1e1e1e;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .avatar-option:hover {
            border-color: var(--accent-primary, #0d6efd);
            transform: scale(1.08);
        }

        .avatar-option.selected {
            border-color: #22c55e;
            background: #1a2e1a;
        }

        .avatar-option img {
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 6px;
            object-fit: cover;
            display: block;
        }

        .avatar-section-title {
            font-size: 13px;
            font-weight: 600;
            color: #aaa;
            margin-bottom: 8px;
            margin-top: 4px;
        }

        @media (max-width: 500px) {
            .avatar-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        .avatar-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #404040;
        }

        .avatar-modal-header h5 {
            color: #ffffff;
            margin: 0;
        }

        .avatar-upload-row {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 18px;
        }

        .avatar-upload-row small {
            color: var(--text-muted);
        }

        .avatar-crop-section {
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 14px;
            margin-bottom: 16px;
            background: #1e1e1e;
        }

        .avatar-crop-hint {
            text-align: center;
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .avatar-crop-wrapper {
            width: 100%;
            max-height: 380px;
            overflow: hidden;
            border-radius: 8px;
            background: #111;
            margin-bottom: 14px;
            /* cropper.js precisa de posição relativa */
            position: relative;
        }

        .avatar-crop-wrapper img {
            display: block;
            max-width: 100%;
            /* garante que o cropper renderize corretamente */
            height: auto;
        }

        .avatar-crop-preview-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            margin-bottom: 14px;
        }

        .avatar-crop-preview-wrap small {
            color: var(--text-muted);
            font-size: 11px;
        }

        .avatar-crop-preview {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid var(--accent-primary);
            background: #1a1a1a;
            flex-shrink: 0;
        }

        .avatar-crop-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        /* Modal de Chat */
        .chat-modal {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 350px;
            height: 450px;
            background: #2a2a2a;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
            z-index: 10000;
            flex-direction: column;
            border: 1px solid #404040;
            overflow: hidden;
        }

        .chat-modal.show {
            display: flex;
        }

        .chat-header {
            background: #1a1a1a;
            padding: 12px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #404040;
        }

        .chat-header h6 {
            margin: 0;
            color: #ffffff;
            font-weight: 600;
        }

        .chat-messages {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: #222;
        }

        .message-bubble {
            max-width: 80%;
            padding: 8px 12px;
            border-radius: 15px;
            font-size: 14px;
            line-height: 1.4;
            position: relative;
        }

        /* Botão de deletar mensagem */
        .btn-delete-msg {
            display: none;
            position: absolute;
            top: 4px;
            left: -28px;
            background: transparent;
            border: none;
            color: rgba(255,255,255,0.35);
            font-size: 13px;
            cursor: pointer;
            padding: 2px 5px;
            border-radius: 6px;
            line-height: 1;
            transition: color 0.15s;
        }
        .message-sent:hover .btn-delete-msg {
            display: inline-block;
        }
        .btn-delete-msg:hover {
            color: #ff6b6b;
        }

        .message-sent {
            align-self: flex-end;
            background-color: #0d6efd;
            color: white;
            border-bottom-right-radius: 2px;
        }

        .message-received {
            align-self: flex-start;
            background-color: #404040;
            color: #e0e0e0;
            border-bottom-left-radius: 2px;
        }

        .message-time {
            font-size: 10px;
            opacity: 0.7;
            margin-top: 4px;
            display: block;
            text-align: right;
        }

        /* Indicador de status não deve herdar opacidade */
        .message-time .message-status {
            opacity: 1 !important;
        }

        /* Indicadores de Status de Mensagem */
        .message-status {
            font-size: 11px;
            margin-left: 4px;
            font-weight: bold;
            display: inline-block;
            line-height: 1;
        }
        .message-status.sent {
            color: rgba(255, 255, 255, 0.4) !important; /* ·· - 40% cinza (enviada) */
        }
        .message-status.delivered {
            color: rgba(255, 255, 255, 0.6) !important; /* •• - 60% cinza (entregue) */
        }
        .message-status.read {
            color: rgba(255, 255, 255, 0.8) !important; /* ✓✓ - 80% cinza (lida) */
            filter: none !important;
        }

        .chat-input-area {
            padding: 12px;
            background: #1a1a1a;
            border-top: 1px solid #404040;
            display: flex;
            gap: 8px;
        }

        .chat-input {
            flex: 1;
            background: #333;
            border: 1px solid #444;
            color: white;
            border-radius: 20px;
            padding: 6px 15px;
            font-size: 14px;
        }

        .chat-input:focus {
            outline: none;
            border-color: #0d6efd;
        }

        .btn-send-chat {
            background: #0d6efd;
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-send-chat:hover {
            background: #0b5ed7;
            transform: scale(1.1);
        }

        .chat-status {
            font-size: 11px;
            color: #909090;
            text-align: center;
            padding: 5px;
            background: #1a1a1a;
        }

        .quick-menu {
            position: relative;
            display: inline-block;
            z-index: 2147483646;
        }
        .quick-menu summary {
            list-style: none;
            cursor: pointer;
            border: 1px solid #404040;
            border-radius: 8px;
            padding: 0.35rem 0.6rem;
            color: #e0e0e0;
            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: #2a2a2a;
            border: 1px solid #404040;
            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,
            #adminMenuLink,
            #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: #e0e0e0;
            text-decoration: none;
            padding: 0.5rem 0.65rem;
            border-radius: 8px;
        }
        .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; }
        }

        /* Estilos para posts do usuário */
        #userPostsList {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .user-post-card {
            background: #1e1e1e;
            border: 1px solid #404040;
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .user-post-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
        }

        .user-post-header {
            padding: 15px 20px;
            background-color: #252525;
            border-bottom: 1px solid #404040;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-post-author {
            color: #ffffff;
            font-weight: 600;
            font-size: 1rem;
            flex: 1;
        }

        .user-post-date {
            font-size: 0.8rem;
            color: #909090;
        }

        .user-post-image {
            width: 100%;
            max-height: 500px;
            object-fit: cover;
            display: block;
        }

        .user-post-content {
            padding: 20px;
            font-size: 1rem;
            line-height: 1.6;
            color: #ececec;
            word-wrap: break-word;
        }

        .user-post-actions {
            display: flex;
            gap: 15px;
            padding: 12px 20px;
            border-top: 1px solid #404040;
            background-color: #1e1e1e;
        }

        .user-post-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: #b0b0b0;
        }

        .user-post-btn-like:hover {
            background: #3a3a3a;
            color: #ffffff;
        }

        .user-post-btn-like.liked {
            color: #ff6b6b;
            background: rgba(255, 107, 107, 0.1);
        }

        .user-post-btn-delete {
            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: #ff6b6b;
            margin-left: auto;
        }

        .user-post-btn-delete:hover {
            background: rgba(255, 107, 107, 0.1);
        }

        .user-post-comments {
            padding: 15px 20px;
            background-color: #1e1e1e;
            border-top: 1px solid #404040;
        }

        .user-post-comment-item {
            padding: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            margin-bottom: 8px;
        }

        .user-post-comment-item:last-child {
            border-bottom: none;
        }

        .user-post-comment-author {
            font-weight: 600;
            font-size: 0.85rem;
            color: #0d6efd;
            text-decoration: none;
            margin-right: 8px;
        }

        .user-post-comment-content {
            font-size: 0.9rem;
            color: #ffffff;
            display: inline;
        }

        .user-post-comment-date {
            font-size: 0.75rem;
            color: #909090;
            margin-top: 4px;
            display: block;
        }

        .user-post-comment-form {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }

        .user-post-comment-input {
            flex: 1;
            background: #2a2a2a;
            border: 1px solid #404040;
            border-radius: 25px;
            padding: 10px 18px;
            color: #ffffff;
            font-size: 14px;
        }

        .user-post-comment-input:focus {
            outline: none;
            border-color: #0d6efd;
        }

        .user-post-btn-comment-send {
            background: #0d6efd;
            border: none;
            color: #ffffff;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .user-post-btn-comment-send:hover {
            background: #0b5ed7;
        }

        .likes-list {
            display: none;
            margin: 0 20px 12px;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid #404040;
            background: #252525;
        }

        .likes-list.show {
            display: block;
        }

        .comment-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 6px;
        }

        .btn-comment-like {
            border: none;
            background: transparent;
            color: #b0b0b0;
            cursor: pointer;
            font-size: 12px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 0;
        }

        .btn-comment-like.liked {
            color: #ff6b6b;
        }

        .btn-comment-delete {
            border: none;
            background: transparent;
            color: #ff6b6b;
            cursor: pointer;
            font-size: 12px;
            padding: 0;
            opacity: 0.8;
        }

        .btn-comment-delete:hover {
            opacity: 1;
        }

        /* Feed Global style for posts inside profile */
        .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-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;
        }

        .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-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-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);
        }

        .likes-list-container {
            display: none;
            margin: 0 20px 12px;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: #252525;
        }

        .likes-list-container.show {
            display: block;
        }

        .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;
        }

        .post-author-section {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

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

            .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;
            }

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

            .post-actions {
                gap: 10px;
            }

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

        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .no-comments-msg {
            text-align: center;
            padding: 10px !important;
            margin: 0 !important;
        }

        /* Perfil: deixar lista de posts com visual do Feed Global */
        #userPostsSection {
            background: transparent;
            border: none;
            box-shadow: none;
        }

        #userPostsSection > .card-header {
            background: transparent !important;
            border: none !important;
            padding: 0 0 12px 0 !important;
        }

        #userPostsSection > .card-body {
            padding: 0;
        }

        /* Floating followers panel improvements */
        #followersNamesPanel {
            background: #01080e;
            border: 1.5px solid rgba(13,110,253,0.25);
            border-radius: 12px;
            box-shadow: 0 4px 18px rgba(13,110,253,0.10), 0 2px 8px rgba(0,0,0,0.10);
            padding: 0;
            animation: fadeInPanel 0.18s cubic-bezier(.4,1.4,.6,1) both;
            transition: box-shadow 0.2s, border 0.2s;
        }
        #followersNamesPanel .card-header {
            background: linear-gradient(90deg, #0d6efd 60%, #4fc3f7 100%);
            color: #fff;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            font-weight: 600;
            font-size: 1.08rem;
            padding: 10px 18px 10px 16px;
            border-bottom: 1px solid #0d6efd33;
            box-shadow: 0 2px 8px rgba(13,110,253,0.08);
        }
        #followersNamesPanel #followersNamesPanelTitle {
            color: #fff !important;
        }
        #followersNamesPanel .btn-close {
            filter: none;
            opacity: 0.8;
            background: #e3f0fd;
            border-radius: 50%;
            border: 1px solid #0d6efd44;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: #0d6efd;
            transition: background 0.15s, opacity 0.15s;
        }
        #followersNamesPanel .btn-close:hover {
            background: #b6e0fe;
            opacity: 1;
        }
        #followersNamesPanel .card-body {
            padding: 10px 0 10px 0;
            background: transparent;
            max-height: 300px;
            overflow-y: auto;
        }
        #followersNamesPanel [role='option'] {
            padding: 8px 18px;
            font-size: 1rem;
            color: #fff;
            border-bottom: 1px solid #0d6efd22;
            background: transparent;
            cursor: pointer;
            outline: none;
            transition: background 0.13s, color 0.13s;
        }
        #followersNamesPanel [role='option']:hover, #followersNamesPanel [role='option']:focus {
            background: #0d6efd22;
            color: #0d6efd;
        }
        #followersNamesPanel [role='option']:last-child {
            border-bottom: none;
        }
        @media (max-width: 600px) {
            #followersNamesPanel {
                min-width: 90vw;
                max-width: 98vw;
                left: 50% !important;
                transform: translateX(-50%) !important;
                top: 8vw !important;
            }
            #followersNamesPanel .card-header {
                font-size: 1rem;
                padding: 9px 10px 9px 12px;
            }
            #followersNamesPanel .card-body {
                max-height: 48vw;
            }
        }
        @keyframes fadeInPanel {
            from { opacity: 0; transform: translateY(16px) scale(0.98); }
            to { opacity: 1; transform: none; }
        }
        #followingNamesPanel {
            background: #01080e;
            border: 1.5px solid rgba(13,110,253,0.25);
            border-radius: 12px;
            box-shadow: 0 4px 18px rgba(13,110,253,0.10), 0 2px 8px rgba(0,0,0,0.10);
            padding: 0;
            animation: fadeInPanel 0.18s cubic-bezier(.4,1.4,.6,1) both;
            transition: box-shadow 0.2s, border 0.2s;
        }
        #followingNamesPanel .card-header {
            background: linear-gradient(90deg, #0d6efd 60%, #4fc3f7 100%);
            color: #fff;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            font-weight: 600;
            font-size: 1.08rem;
            padding: 10px 18px 10px 16px;
            border-bottom: 1px solid #0d6efd33;
            box-shadow: 0 2px 8px rgba(13,110,253,0.08);
        }
        #followingNamesPanel #followingNamesPanelTitle {
            color: #fff !important;
        }
        #followingNamesPanel .btn-close {
            filter: none;
            opacity: 0.8;
            background: #e3f0fd;
            border-radius: 50%;
            border: 1px solid #0d6efd44;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: #0d6efd;
            transition: background 0.15s, opacity 0.15s;
        }
        #followingNamesPanel .btn-close:hover {
            background: #b6e0fe;
            opacity: 1;
        }
        #followingNamesPanel .card-body {
            padding: 10px 0 10px 0;
            background: transparent;
            max-height: 300px;
            overflow-y: auto;
        }
        #followingNamesPanel [role='option'] {
            padding: 8px 18px;
            font-size: 1rem;
            color: #fff;
            border-bottom: 1px solid #0d6efd22;
            background: transparent;
            cursor: pointer;
            outline: none;
            transition: background 0.13s, color 0.13s;
        }
        #followingNamesPanel [role='option']:hover, #followingNamesPanel [role='option']:focus {
            background: #0d6efd22;
            color: #0d6efd;
        }
        #followingNamesPanel [role='option']:last-child {
            border-bottom: none;
        }
        @media (max-width: 600px) {
            #followingNamesPanel {
                min-width: 90vw;
                max-width: 98vw;
                left: 50% !important;
                transform: translateX(-50%) !important;
                top: 8vw !important;
            }
            #followingNamesPanel .card-header {
                font-size: 1rem;
                padding: 9px 10px 9px 12px;
            }
            #followingNamesPanel .card-body {
                max-height: 48vw;
            }
        }

        #visitsNamesPanel {
            background: #01080e;
            border: 1.5px solid rgba(13,110,253,0.25);
            border-radius: 12px;
            box-shadow: 0 4px 18px rgba(13,110,253,0.10), 0 2px 8px rgba(0,0,0,0.10);
            padding: 0;
            animation: fadeInPanel 0.18s cubic-bezier(.4,1.4,.6,1) both;
            transition: box-shadow 0.2s, border 0.2s;
        }
        #visitsNamesPanel .card-header {
            background: linear-gradient(90deg, #0d6efd 60%, #4fc3f7 100%);
            color: #fff;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            font-weight: 600;
            font-size: 1.08rem;
            padding: 10px 18px 10px 16px;
            border-bottom: 1px solid #0d6efd33;
            box-shadow: 0 2px 8px rgba(13,110,253,0.08);
        }
        #visitsNamesPanel #visitsNamesPanelTitle {
            color: #fff !important;
        }
        #visitsNamesPanel .btn-close {
            filter: none;
            opacity: 0.8;
            background: #e3f0fd;
            border-radius: 50%;
            border: 1px solid #0d6efd44;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: #0d6efd;
            transition: background 0.15s, opacity 0.15s;
        }
        #visitsNamesPanel .btn-close:hover {
            background: #b6e0fe;
            opacity: 1;
        }
        #visitsNamesPanel .card-body {
            padding: 10px 0 10px 0;
            background: transparent;
            max-height: 300px;
            overflow-y: auto;
        }
        #visitsNamesPanel [role='option'] {
            padding: 8px 18px;
            font-size: 1rem;
            color: #fff;
            border-bottom: 1px solid #0d6efd22;
            background: transparent;
            cursor: pointer;
            outline: none;
            transition: background 0.13s, color 0.13s;
        }
        #visitsNamesPanel [role='option']:hover, #visitsNamesPanel [role='option']:focus {
            background: #0d6efd22;
            color: #0d6efd;
        }
        #visitsNamesPanel [role='option']:last-child {
            border-bottom: none;
        }
        @media (max-width: 600px) {
            #visitsNamesPanel {
                min-width: 90vw;
                max-width: 98vw;
                left: 50% !important;
                transform: translateX(-50%) !important;
                top: 8vw !important;
            }
            #visitsNamesPanel .card-header {
                font-size: 1rem;
                padding: 9px 10px 9px 12px;
            }
            #visitsNamesPanel .card-body {
                max-height: 48vw;
            }
        }

