/* css/teti-profile.css */

/* --- HEADER DO PERFIL --- */
.profile-header-container {
    background-color: var(--bg-card);
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, var(--teti-primary), var(--teti-primary-dark));
    position: relative;
}

.profile-avatar-container {
    position: relative;
    margin-top: -40px;
    margin-left: 16px;
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    object-fit: cover;
    background-color: var(--bg-hover);
}

/* Container dos botões no topo */
.profile-actions-top {
    position: absolute;
    top: 128px; /* Logo abaixo da capa */
    right: 16px;
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    gap: 8px; /* Espaço entre os botões */
    z-index: 5; /* Garante que fique acima */
    margin-top: 40px;
}

/* Ajuste fino no botão Editar Perfil para alinhar altura */
.btn-edit-profile {
    background: var(--bg-card); /* Fundo sólido */
    border: 1px solid var(--border-color);
    padding: 0 16px; /* Padding lateral */
    height: 36px; /* Mesma altura da engrenagem */
    border-radius: 18px; /* Arredondado */
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-top: 0; /* Remove margem antiga */
}

.profile-info {
    padding: 0 16px;
}

.profile-name-large {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-username-handle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-stats-row {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.stat-value {
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    color: var(--text-muted);
}

/* --- ABAS DO PERFIL --- */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.profile-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    font-size: 14px;
    background: none;
    border: none;
}

.profile-tab.active {
    color: var(--text-main);
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background-color: var(--teti-primary);
    border-radius: 2px 2px 0 0;
}

/* --- SECTION: INTERESSES (Tags) --- */
.interests-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px;
    background-color: var(--bg-card);
    margin-bottom: 8px;
}

.interest-tag {
    background-color: var(--bg-hover);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.interest-tag.highlight {
    background-color: rgba(0, 188, 212, 0.1);
    color: var(--teti-primary);
    border-color: var(--teti-primary);
}

/* --- MODAL DE EDIÇÃO COMPLETA --- */
.edit-modal-content {
    background: var(--bg-card);
    width: 100%;
    height: 90vh; /* Quase tela cheia */
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.edit-modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-hover);
    color: var(--text-main);
    font-size: 15px;
    outline: none;
}

.form-textarea {
    resize: none;
    height: 80px;
}

/* Seletor de Tags (Estilo Tinder/Interesse) */
.tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag-option {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.tag-option.selected {
    background-color: var(--teti-primary);
    color: white;
    border-color: var(--teti-primary);
}

/* css/teti-profile.css (Adicione no final) */

/* Linha de Foco (Target Exams) */
.profile-focus-row {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-hover);
    padding: 8px 12px;
    border-radius: 8px;
    width: fit-content; /* Ocupa só o espaço necessário */
}

.focus-label {
    font-weight: 700;
    color: var(--teti-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.focus-list {
    font-weight: 500;
}

/* css/teti-profile.css */

/* --- EDIÇÃO DE FORMAÇÃO (MODAL) --- */
.education-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.education-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-remove-item {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-item {
    background: none;
    border: 1px dashed var(--teti-primary);
    color: var(--teti-primary);
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.2s;
}

.btn-add-item:hover {
    background: rgba(0, 188, 212, 0.05);
}

/* --- EXIBIÇÃO NO PERFIL --- */
.education-display-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.education-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--bg-hover);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.education-badge.high-level { /* Para Pós/Mestrado/Dr */
    background-color: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
    color: #f57c00;
}

.journey-time {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-style: italic;
}

/* --- META DADOS (Cargo e Local) --- */
.profile-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.meta-divider {
    width: 3px;
    height: 3px;
    background-color: var(--text-muted);
    border-radius: 50%;
    opacity: 0.5;
}

/* --- GRID DE ESTATÍSTICAS (NOVO - ECONOMIZA ESPAÇO) --- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 4px;
}

.stat-number {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-main);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* --- ÁREA ACADÊMICA E FOCO --- */
.info-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    margin-top: 12px;
}

.education-display-row {
    display: flex;
    flex-direction: column; /* Lista vertical fica mais organizada para mobile */
    gap: 6px;
}

.education-item-clean {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-main);
}

.focus-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.focus-chip {
    background: linear-gradient(135deg, var(--teti-primary), var(--teti-primary-dark));
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* css/teti-profile.css */

/* --- EDIÇÃO DE IMAGENS (MODAL) --- */
.edit-cover-wrapper {
    position: relative;
    height: 120px;
    background-color: var(--bg-hover);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    cursor: pointer;
}

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

.edit-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-top: -45px;
    margin-left: 16px;
    cursor: pointer;
}

.edit-avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    object-fit: cover;
    background-color: var(--bg-hover);
}

/* Overlay com ícone de Câmera (SEMPRE VISÍVEL) */
.camera-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); /* Fundo mais suave */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* AGORA SEMPRE VISÍVEL */
    transition: background 0.2s;
    color: white;
    backdrop-filter: blur(2px); /* Efeito moderno de vidro */
}

/* Ajuste borda redonda para o avatar */
.edit-avatar-wrapper .camera-overlay { 
    border-radius: 50%; 
    border: 3px solid transparent; 
}

/* Efeito ao passar o mouse (fica mais escuro para indicar clique) */
.edit-cover-wrapper:hover .camera-overlay,
.edit-avatar-wrapper:hover .camera-overlay {
    background: rgba(0,0,0,0.6);
}

/* --- VALIDAÇÃO DE USERNAME --- */
.username-input-group {
    position: relative;
}

.validation-feedback {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    display: block;
    min-height: 18px; /* Reserva espaço */
}

.text-success { color: #4caf50; }
.text-error { color: #f44336; }
.text-loading { color: var(--teti-primary); }

.input-error { border-color: #f44336 !important; }
.input-success { border-color: #4caf50 !important; }

/* css/teti-profile.css */

/* Capa no Modal de Edição */
.edit-cover-wrapper {
    position: relative;
    height: 180px; /* Aumentei um pouco para dar mais área de manobra */
    background-color: var(--bg-hover);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    cursor: grab; /* Ícone de mãozinha aberta */
    /* Desabilita seleção de texto enquanto arrasta */
    user-select: none; 
}

/* Quando estiver arrastando */
.edit-cover-wrapper.dragging {
    cursor: grabbing; /* Ícone de mãozinha fechada */
}

/* O elemento que conterá a imagem de fundo */
#preview-cover-div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    /* Posição inicial padrão: centro horizontal, 50% vertical */
    background-position: center 50%; 
    transition: background-position 0.1s ease-out; /* Suaviza levemente o movimento */
}

/* Ajuste na câmera para não atrapalhar o arrasto */
.edit-cover-wrapper .camera-overlay {
    pointer-events: none; /* O clique passa direto pela câmera e vai para a div de arrasto */
}
/* Mas precisamos que o botão de Upload (que ficará escondido) ainda funcione */
.edit-cover-btn-container {
     position: absolute;
     bottom: 10px;
     right: 10px;
     z-index: 10;
     pointer-events: auto; /* Reabilita clique aqui */
}

/* css/teti-profile.css */

/* --- ÍCONES DE VERIFICAÇÃO --- */
.verify-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    margin-right: 4px; /* Espaço para o emblema que vem depois */
    vertical-align: middle;
}

.verify-blue {
    color: #2196f3; /* Azul padrão de verificado */
}

.verify-gold {
    color: #ffc107; /* Dourado */
    filter: drop-shadow(0 0 2px rgba(255, 193, 7, 0.5)); /* Brilho */
}

/* --- MODAL DE VERIFICAÇÃO --- */
.verify-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.verify-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    background: var(--bg-hover);
}

.verify-card.selected {
    border-color: var(--teti-primary);
    background: rgba(0, 188, 212, 0.05);
}

.verify-card h4 { margin: 8px 0 4px 0; font-size: 14px; }
.verify-card p { font-size: 11px; color: var(--text-muted); margin: 0; line-height: 1.3; }

.verify-form-area {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: none; /* Escondido até selecionar */
}

.verify-form-area.active { display: block; }

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

/* css/teti-profile.css */

/* Botão de Engrenagem (Agora dentro do actions-top) */
.btn-settings-profile {
    background: none;
    border: 1px solid var(--border-color); /* Mesma borda do editar */
    color: var(--text-main);
    width: 36px; /* Tamanho fixo quadrado/redondo */
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card); /* Garante fundo se passar por cima de algo */
    transition: background 0.2s;
}

.btn-settings-profile:hover {
    background-color: var(--bg-hover);
}

/* Modal de Configurações */
.settings-list {
    display: flex;
    flex-direction: column;
}

.settings-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-main);
    cursor: pointer;
}

.settings-item:last-child { border-bottom: none; }

.settings-icon {
    margin-right: 12px;
    color: var(--text-muted);
}

.settings-toggle {
    pointer-events: none; /* O clique vai no item */
}

/* Toggle Switch (Interruptor) */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--teti-primary); }
input:checked + .slider:before { transform: translateX(16px); }

/* Perfil Privado (Cadeado) */
.private-profile-lock {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.private-profile-lock span {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* css/teti-profile.css - ADICIONE NO FINAL */

/* --- STORY NO PERFIL --- */

/* Borda Azul quando tem story */
.profile-avatar-large.has-story-border {
    border: 3px solid var(--teti-primary);
    padding: 2px; /* Espaço entre a borda e a foto */
    background-clip: content-box; /* Garante que a foto respeite o padding */
}

/* Botão de Adicionar Story (+) */
.profile-add-story-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--teti-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s;
}

.profile-add-story-btn:hover {
    transform: scale(1.1);
}

/* css/teti-profile.css */

/* BOTÕES DE SEGUIR (PERFIL) */
.btn-follow {
    background-color: var(--text-main); /* Preto/Branco */
    color: var(--bg-card); /* Invertido */
    border: none;
}

.btn-following {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-requested {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* BOTÃO SEGUIR (FEED) */
.bullet-separator {
    margin: 0 4px;
    color: var(--text-muted);
    font-size: 10px;
}

.btn-text-follow {
    background: none;
    border: none;
    color: var(--teti-primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.btn-text-follow:hover {
    text-decoration: underline;
}

/* TELA DE PERFIL PRIVADO */
.private-profile-lock {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

/* css/teti-profile.css */

/* Estatísticas clicáveis */
.stat-box.hover-stat {
    transition: opacity 0.2s;
    border-radius: 8px;
    padding: 4px;
}
.stat-box.hover-stat:active {
    background-color: var(--bg-hover);
}

/* Modal de Lista */
.search-bar-modal {
    display: flex;
    align-items: center;
    background-color: var(--bg-hover);
    padding: 8px 12px;
    border-radius: 12px;
    gap: 8px;
}

.search-bar-modal input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--text-main);
    width: 100%;
}

.user-list-item {
    display: flex;
    align-items: center;
    padding: 12px 12px;
    border-bottom: 1px solid var(--border-color); /* Separador sutil */
}
.user-list-item:last-child { border-bottom: none; }

.list-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    cursor: pointer;
}

.list-info {
    flex: 1;
    cursor: pointer;
}

.list-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.list-username {
    font-size: 13px;
    color: var(--text-muted);
}

/* Botões Pequenos da Lista */
.btn-sm-follow {
    background-color: var(--teti-primary);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-sm-following {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-sm-requested {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* css/teti-profile.css */

/* --- CORREÇÃO DO CABEÇALHO DO MODAL --- */
.modal-header-custom {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza o título */
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative; /* Para o botão absoluto funcionar bem */
    min-height: 50px;
}

.modal-title-text {
    font-weight: 700; 
    font-size: 16px; 
    color: var(--text-main);
}

.btn-close-modal-abs {
    position: absolute;
    right: 16px; /* Mesma distância do padding lateral */
    top: 50%;
    transform: translateY(-50%); /* Centraliza verticalmente exato */
    background: var(--bg-hover); /* Fundo leve para destacar */
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

/* Botão Genérico de Ação (Editar, Seguir, Mensagem) */
.btn-edit-profile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0 12px; /* Reduzido de 16px */
    height: 30px;    /* Reduzido de 36px */
    border-radius: 8px; /* Borda levemente quadrada (Estilo Instagram moderno) */
    font-weight: 600;
    font-size: 12px; /* Reduzido de 13px */
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Botão de Configurações (Engrenagem) */
.btn-settings-profile {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 20px;  /* Reduzido de 36px */
    height: 20px; /* Reduzido de 36px */
    border-radius: 8px; /* Combina com os outros botões */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    transition: background 0.2s;
}

/* css/teti-profile.css */

.profile-actions-top {
    position: absolute;
    /* Alterar de 128px para 135px ou ajustar conforme necessidade */
    top: 135px; 
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    /* Remover margin-top se estiver causando confusão, ou ajustar */
    margin-top: 0; 
}

/* --- CORREÇÃO DE THUMBS NO GRID --- */

/* Imagem de fundo (quando tem capa) */
.vert-thumb-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #222; /* Fundo cinza enquanto carrega */
}

/* Vídeo nativo (quando não tem capa) */
.vert-thumb-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #000;
}

/* Removemos a borda/fundo padrão do container para não atrapalhar */
.vert-thumb {
    background: none !important;
    overflow: hidden;
    position: relative;
}

/* Nova linha de estatísticas secundárias */
.profile-stats-secondary {
    display: flex;
    justify-content: space-around; /* Mesmo espaçamento da de cima */
    align-items: center;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid var(--border-color); /* Separador sutil */
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02); /* Leve destaque */
}

.stat-item-sec {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1; /* Distribuição igual */
}

.stat-item-sec .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-item-sec .stat-value-sec {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teti-primary); /* Destaque na cor do app */
}

/* Spinner pequeno para carregamento do rank */
.spinner-small {
    width: 12px;
    height: 12px;
    border: 2px solid var(--text-muted);
    border-top: 2px solid var(--teti-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}