/* ⭐ SISTEMA DE PONTOS / AVALIAÇÕES — Preciso Agora */

.aviso-distancia {
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}

.link-distancia-real {
    background: none;
    border: none;
    color: #0984e3;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.link-distancia-real:hover {
    color: #066bb8;
}

.distancia-real-resultado {
    font-size: 0.8rem;
    color: #00b894;
    font-weight: 600;
}


/* ── BARRA DE AÇÕES DO AVALIADOR ── */
.acoes-avaliador {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-acao-avaliador {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.btn-perfil-acesso {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-perfil-acesso:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102,126,234,0.4);
}

.btn-recompensas-acesso {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-recompensas-acesso:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245,87,108,0.4);
}

/* TOP 3 EMPRESAS */
.top3-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.top3-section h3 {
    color: #856404;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.top3-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.top3-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.top3-posicao {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #856404;
    font-weight: bold;
    line-height: 30px;
    margin-bottom: 10px;
}

.top3-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin: 10px auto;
    display: block;
}

.top3-nome {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.top3-estrelas {
    color: #ff9800;
    font-size: 1rem;
    margin-bottom: 5px;
}

.top3-media {
    font-size: 0.85rem;
    color: #666;
}

/* AVALIAÇÃO NO CARD */
.avaliacao-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.estrelas-display {
    color: #ff9800;
    letter-spacing: 1px;
    font-size: 1rem;
}

.estrelas-display .vazia {
    color: #ddd;
}

.media-numero {
    font-weight: bold;
    color: #ff9800;
}

.total-avaliacoes {
    color: #888;
    font-size: 0.8rem;
}

.btn-ver-avaliacoes {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-ver-avaliacoes:hover {
    background: #e0e0e0;
}

.btn-avaliar-card {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-avaliar-card:hover {
    background: #ffc107;
    color: #000;
}

/* MODAIS */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: fadeIn 0.3s;
}

.modal-overlay.ativo {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    position: relative;
    animation: slideUp 0.3s;
}

.modal.modal--larga {
    max-width: 700px;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-fechar {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
}

.modal h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #222;
    padding-right: 40px;
}

.modal-empresa-nome {
    color: #00b894;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.modal-texto-intro {
    color: #666;
    margin-bottom: 20px;
}

.modal-ou {
    text-align: center;
    color: #999;
    margin: 10px 0;
}

.dica-perfil {
    font-size: 0.8rem;
    color: #666;
    margin: 5px 0 10px;
}

.dica-rodape {
    text-align: center;
    margin-top: 15px;
    color: #888;
    font-size: 0.85rem;
}

.modal-estrelas {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.modal-estrela {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.modal-estrela:hover,
.modal-estrela.ativa {
    color: #ff9800;
    transform: scale(1.2);
}

.modal input,
.modal textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 12px;
    font-family: inherit;
}

.modal textarea {
    resize: vertical;
    min-height: 80px;
}

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: #00b894;
}

.modal-btn-enviar {
    width: 100%;
    background: #00b894;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-enviar:hover:not(:disabled) {
    background: #00a383;
}

.modal-btn-enviar:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-mensagem {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
    display: none;
}

.modal-mensagem.sucesso {
    background: #d4edda;
    color: #155724;
    display: block;
}

.modal-mensagem.erro {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.avaliacoes-lista {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.avaliacoes-lista h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #444;
}

.avaliacao-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.avaliacao-item:last-child { border-bottom: none; }

.avaliacao-topo {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.avaliacao-topo strong { color: #333; }
.avaliacao-topo span { color: #999; }

.avaliacao-estrelas {
    color: #ff9800;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.avaliacao-texto {
    color: #555;
    font-size: 0.9rem;
}

.sem-avaliacoes {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 15px;
}

/* MODAL DE RECOMPENSAS */
.recompensas-total {
    color: #667eea;
    font-weight: bold;
    margin-bottom: 20px;
}

.recompensas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.recompensa-card {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.recompensa-card.disponivel {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
}

.recompensa-card.resgatada {
    border-color: #28a745;
    background: #d4edda;
}

.recompensa-card.bloqueada {
    opacity: 0.6;
}

.recompensa-icone {
    font-size: 3rem;
    margin-bottom: 10px;
}

.recompensa-nome {
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.recompensa-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.recompensa-pontos {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 10px;
}

.recompensa-card.resgatada .recompensa-pontos {
    background: #28a745;
}

.btn-resgatar {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-resgatar.disponivel {
    background: #667eea;
    color: white;
}

.btn-resgatar.disponivel:hover {
    background: #5568d3;
}

.btn-resgatar.resgatada {
    background: #28a745;
    color: white;
    cursor: default;
}

.btn-resgatar.bloqueada {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.badge-resgatado {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* RESPONSIVIDADE */
@media (max-width: 600px) {
    .pontos-header {
        flex-direction: column;
        text-align: center;
    }

    .pontos-info {
        flex-direction: column;
    }

    .top3-grid {
        grid-template-columns: 1fr;
    }

    .recompensas-grid {
        grid-template-columns: 1fr;
    }
}