/* =========================================
   ESTRUTURA GERAL
   ========================================= */
.cp-perfil-wrap,
.cp-perfil-publico,
.cp-ranking-wrap {
    max-width: 980px;
    margin: 40px auto;
    padding: 30px;
    background: #071b33;
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.cp-perfil-wrap h2,
.cp-perfil-publico h1,
.cp-perfil-publico h2,
.cp-perfil-publico h3,
.cp-ranking-wrap h2 {
    color: #d4af37;
    margin-top: 0;
}

/* =========================================
   FORMULÁRIOS E BOTÕES
   ========================================= */
.cp-perfil-form {
    display: grid;
    gap: 14px;
    margin-top: 25px;
}

.cp-perfil-form label {
    font-weight: 700;
    color: #d4af37;
}

.cp-perfil-form input,
.cp-perfil-form textarea {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: #fff;
}
.cp-copiar-link, .cp-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: #2d8a43 !important;  /* Verde suave e elegante */
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.cp-perfil-form button,
.cp-btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 10px;
    border: none;
    background: #2d8a43; /* Verde suave e elegante */
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cp-perfil-form button:hover,
.cp-btn:hover {
    background: #226b34; /* Verde mais escuro no hover */
}

/* Opcional: Para diferenciar um pouquinho o botão do WhatsApp dos demais */
.cp-compartilhar .cp-btn[href*="wa.me"] {
    background-color: #25d366 !important; /* Verde original do WhatsApp (opcional) */
    color: #071b33 !important; /* Texto escuro para contraste */
}

.cp-compartilhar .cp-btn[href*="wa.me"]:hover {
    background-color: #1ea34f !important;
    color: #ffffff !important;
}

/* =========================================
   ELEMENTOS DO PERFIL
   ========================================= */
.cp-foto-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 999px;
    border: 3px solid #d4af37;
    margin-bottom: 10px;
}

.cp-sucesso {
    background: #0f5132;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    margin: 15px 0;
}

.cp-alerta {
    background: #0e00cf;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
}

.cp-link-publico {
    margin-top: 25px;
    padding: 18px;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
}

.cp-link-publico a {
    color: #d4af37;
    font-weight: 700;
}

.cp-perfil-hero {
    display: flex;
    gap: 30px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.cp-perfil-foto {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 999px;
    border: 4px solid #d4af37;
}

.cp-selo {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(212,175,55,.15);
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 10px;
}

.cp-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.cp-bio {
    font-size: 17px;
    line-height: 1.6;
}

.cp-local {
    color: #d4af37;
    font-weight: 700;
}

.cp-conquista-destaque,
.cp-compartilhar {
    margin-top: 25px;
    padding: 25px;
    background: rgba(255,255,255,.08);
    border-radius: 16px;
}

.cp-compartilhar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cp-compartilhar h3 {
    width: 100%;
}

/* =========================================
   RANKING DE ALUNOS
   ========================================= */
.cp-tabela-ranking {
    width: 100% !important;
    text-align: left !important;
    border-collapse: collapse !important;
    margin-top: 20px !important;
}

.cp-tabela-ranking th {
    padding: 15px !important;
    border-bottom: 2px solid rgba(212,175,55,0.4) !important;
    background: transparent !important;
    color: #d4af37 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85em !important;
    letter-spacing: 0.5px !important;
}

.cp-tabela-ranking td {
    padding: 15px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    vertical-align: middle !important;
}

.cp-tabela-ranking tr:hover td {
    background-color: rgba(255,255,255,0.05) !important;
    transition: background-color 0.2s ease !important;
}

.cp-tabela-ranking tr:last-child td {
    border-bottom: none !important;
}

.cp-btn-perfil {
    display: inline-block !important;
    padding: 6px 15px !important;
    background: transparent !important;
    color: #d4af37 !important;
    border: 1px solid #d4af37 !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-size: 0.85em !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.cp-btn-perfil:hover {
    background: #d4af37 !important;
    color: #071b33 !important;
}

/* =========================================
   PROGRESSO DOS CURSOS (PERFIL PÚBLICO)
   ========================================= */
.cp-cursos-progresso {
    margin: 40px 0 30px 0 !important;
    padding-top: 25px !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
}

.cp-cursos-progresso ul {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
}

.cp-cursos-progresso li {
    padding: 20px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
}

.cp-cursos-progresso strong {
    color: #fff !important;
    font-size: 1.1em !important;
}

/* Fundo da Barra */
.cp-cursos-progresso > ul > li > div {
    background: rgba(0,0,0,0.4) !important;
    border-radius: 10px !important;
    height: 10px !important;
    margin-top: 12px !important;
}

/* Preenchimento animado da Barra */
.cp-cursos-progresso > ul > li > div > div {
    background: linear-gradient(90deg, #d4af37, #f3d56a) !important; /* Dourado */
    height: 10px !important;
    border-radius: 10px !important;
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.cp-cursos-progresso span {
    color: rgba(255,255,255,0.7) !important;
    margin-top: 8px !important;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 700px) {
    .cp-perfil-hero {
        flex-direction: column;
        text-align: center;
    }

    .cp-perfil-wrap,
    .cp-perfil-publico,
    .cp-ranking-wrap {
        margin: 20px;
        padding: 22px;
    }
}