/* ============================================================
   MicroSkills - Estilos Globais
   ============================================================ */

:root {
    --mp-blue-dark: #002b5b;
    --mp-cyan: #00e5c0;
    --mp-cyan-hover: #00c7a7;
    --mp-light-bg: #f8f9fa;
    --mp-gray: #587089;
    --mp-border: #e9ecef;
    --mp-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    --mp-shadow-lg: 0 6px 20px rgba(0, 0, 0, .12);
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--mp-light-bg);
    color: #333;
    padding-bottom: 40px;
}

a {
    color: var(--mp-blue-dark);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-custom {
    background-color: #fff;
    border-bottom: 1px solid var(--mp-border);
    padding: 12px 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--mp-blue-dark);
    text-decoration: none;
    font-size: 1.1rem;
}

.brand-logo:hover {
    color: var(--mp-cyan-hover);
}

.secure-label {
    color: var(--mp-gray);
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   HERO SECTION (Home pública)
   ============================================================ */
.hero-section {
    background-color: var(--mp-blue-dark);
    color: #fff;
    padding: 30px 16px 40px;
    text-align: center;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: .92rem;
    color: #d1e2f3;
    line-height: 1.4;
    margin-bottom: 24px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.avatar-img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--mp-cyan);
}

.floating-badge {
    position: absolute;
    background: #fff;
    color: var(--mp-blue-dark);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.badge-1 { top: 0; left: -10px; }
.badge-2 { top: 0; right: -10px; }
.badge-3 { bottom: 10px; left: -15px; }
.badge-4 { bottom: 10px; right: -15px; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn-cta {
    background-color: var(--mp-cyan);
    color: var(--mp-blue-dark);
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    display: inline-block;
    max-width: 90%;
    box-shadow: 0 6px 20px rgba(0, 229, 192, .4);
    transition: all .2s ease;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
}

.btn-cta:hover,
.btn-cta:active,
.btn-cta:focus {
    background-color: var(--mp-cyan-hover);
    color: var(--mp-blue-dark);
    transform: scale(.98);
    box-shadow: 0 4px 14px rgba(0, 229, 192, .5);
}

.btn-cta:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.cta-price-tag {
    font-size: .85rem;
    color: #d1e2f3;
    margin-top: 8px;
}

/* ============================================================
   TÍTULOS DE SEÇÃO
   ============================================================ */
.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mp-blue-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ============================================================
   STEP CARDS (Como funciona)
   ============================================================ */
.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--mp-shadow);
    height: 100%;
    border: 1px solid #f0f0f0;
    transition: transform .2s;
}

.step-card:hover {
    transform: translateY(-2px);
}

.step-icon {
    font-size: 1.8rem;
    color: var(--mp-blue-dark);
    margin-bottom: 8px;
    display: block;
}

.step-text {
    font-size: .8rem;
    font-weight: 600;
    color: #444;
    line-height: 1.2;
    margin: 0;
}

/* ============================================================
   CARDS GENÉRICOS
   ============================================================ */
.preview-card,
.payment-card {
    background: #fff;
    border-radius: 16px;
    border-top: 5px solid var(--mp-cyan);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .06);
    padding: 20px;
}

.payment-card {
    max-width: 520px;
    margin: 0 auto;
}

.payment-card.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   MODAL CHECKOUT
   ============================================================ */
.checkout-modal {
    border-radius: 18px;
    border: 0;
}

.checkout-modal .modal-header {
    border-bottom: 1px solid var(--mp-border);
    padding: 16px 20px;
}

.checkout-modal .modal-title {
    font-weight: 700;
    color: var(--mp-blue-dark);
}

.checkout-modal .modal-body {
    padding: 20px;
}

.checkout-modal .modal-footer {
    border-top: 1px solid var(--mp-border);
    padding: 16px 20px;
}

/* ============================================================
   ÍCONES DE SUCESSO / PENDENTE
   ============================================================ */
.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #d9fff7;
    color: #008f79;
    font-size: 2rem;
}

.pending-icon {
    background: #fff3cd;
    color: #9a6700;
}

/* ============================================================
   PREÇO DESTACADO
   ============================================================ */
.price-highlight {
    color: var(--mp-blue-dark);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

/* ============================================================
   PIX QR CODE
   ============================================================ */
.pix-qr {
    display: block;
    width: 240px;
    height: 240px;
    margin: 0 auto;
    image-rendering: auto;
}

/* ============================================================
   CARDS DE CURSO (Home / Listagens)
   ============================================================ */
.curso-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--mp-shadow);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.curso-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mp-shadow-lg);
    color: inherit;
}

.curso-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.curso-card-img-sm {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.curso-card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.curso-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--mp-blue-dark);
    margin: 4px 0;
    line-height: 1.2;
}

.curso-card-desc {
    font-size: .8rem;
    color: #666;
    flex-grow: 1;
    margin-bottom: 6px;
    line-height: 1.3;
}

.curso-card-price {
    font-weight: 800;
    color: var(--mp-cyan-hover);
    font-size: 1rem;
}

/* ============================================================
   MENU CARDS (Home do usuário / Admin)
   ============================================================ */
.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: var(--mp-blue-dark);
    box-shadow: var(--mp-shadow);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    text-align: center;
    font-weight: 600;
    font-size: .85rem;
}

.menu-card:hover {
    transform: translateY(-2px);
    color: var(--mp-cyan-hover);
    box-shadow: var(--mp-shadow-lg);
}

.menu-card i {
    font-size: 1.8rem;
}

/* ============================================================
   STAT CARDS (Dashboard Admin)
   ============================================================ */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--mp-shadow);
    border-top: 4px solid var(--mp-cyan);
    height: 100%;
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--mp-blue-dark);
}

.stat-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mp-blue-dark);
    margin: 4px 0;
    word-break: break-word;
}

.stat-label {
    font-size: .75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ============================================================
   PERFIL (estilo LinkedIn)
   ============================================================ */
.perfil-capa {
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: -40px;
    background-color: var(--mp-blue-dark);
    position: relative;
}

.perfil-header {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    padding-top: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    position: relative;
    margin-bottom: 16px;
}

.perfil-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    position: absolute;
    top: -45px;
    left: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    background: #fff;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress {
    background-color: #e9ecef;
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    transition: width .4s ease;
}

/* ============================================================
   TABELAS (Admin)
   ============================================================ */
.table {
    font-size: .875rem;
}

.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--mp-gray);
    border-bottom: 2px solid var(--mp-border);
    font-weight: 700;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.form-label {
    font-weight: 600;
    color: #444;
    font-size: .85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mp-cyan);
    box-shadow: 0 0 0 .2rem rgba(0, 229, 192, .2);
}

.form-check-input:checked {
    background-color: var(--mp-cyan);
    border-color: var(--mp-cyan);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge.bg-primary {
    background-color: var(--mp-blue-dark) !important;
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    box-shadow: var(--mp-shadow-lg);
    padding: 6px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background-color: #f0fdfa;
    color: var(--mp-blue-dark);
}

/* ============================================================
   CERTIFICADO
   ============================================================ */
.certificado {
    width: 210mm;
    min-height: 297mm;
    margin: 10mm auto;
    padding: 20mm;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    position: relative;
    border: 8px solid var(--mp-blue-dark);
}

.certificado::before {
    content: '';
    position: absolute;
    inset: 15mm;
    border: 2px solid var(--mp-cyan);
    pointer-events: none;
}

.cert-titulo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--mp-blue-dark);
    text-align: center;
}

.cert-nome {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--mp-cyan-hover);
    text-align: center;
    margin: 8mm 0;
}

.cert-texto {
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.8;
}

.cert-codigo {
    font-size: .8rem;
    color: #666;
    text-align: center;
    margin-top: 15mm;
}

/* ============================================================
   CURRÍCULO
   ============================================================ */
.curriculo {
    width: 210mm;
    min-height: 297mm;
    margin: 10mm auto;
    padding: 12mm;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    font-size: 10.5pt;
    line-height: 1.4;
    color: #222;
}

.cv-header {
    display: flex;
    gap: 8mm;
    align-items: center;
    border-bottom: 2px solid var(--mp-blue-dark);
    padding-bottom: 5mm;
    margin-bottom: 5mm;
}

.cv-foto {
    width: 28mm;
    height: 28mm;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mp-cyan);
    flex-shrink: 0;
}

.cv-nome {
    font-size: 16pt;
    font-weight: bold;
    color: var(--mp-blue-dark);
    margin: 0;
}

.cv-titulo {
    font-size: 11pt;
    color: var(--mp-cyan-hover);
    font-weight: bold;
    margin: 0;
}

.cv-secao {
    margin-bottom: 4mm;
}

.cv-secao h2 {
    font-size: 11pt;
    font-weight: bold;
    color: var(--mp-blue-dark);
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1mm;
    margin: 0 0 2mm;
}

.cv-item {
    margin-bottom: 2.5mm;
}

.cv-item strong {
    display: block;
}

.cv-item small {
    color: #555;
}

.cv-apresentacao {
    font-size: 10pt;
    margin: 0;
}

.cv-contato {
    font-size: 9.5pt;
    color: #333;
}

/* ============================================================
   ÁREA DO ALUNO (curso.php)
   ============================================================ */
.ratio iframe {
    border-radius: 12px;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: .85rem;
    }

    .avatar-img {
        width: 140px;
        height: 140px;
    }

    .floating-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .curso-card-img {
        height: 120px;
    }

    .curso-card-title {
        font-size: .85rem;
    }

    .curso-card-desc {
        font-size: .75rem;
    }

    .stat-num {
        font-size: .95rem;
    }

    .btn-cta {
        font-size: .9rem;
        padding: 12px 22px;
    }

    .menu-card {
        padding: 12px;
        font-size: .78rem;
    }

    .menu-card i {
        font-size: 1.5rem;
    }

    .perfil-capa {
        height: 110px;
    }

    .perfil-avatar {
        width: 72px;
        height: 72px;
        top: -36px;
    }

    .perfil-header {
        padding-top: 42px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: .95rem;
    }

    .step-text {
        font-size: .72rem;
    }

    .step-icon {
        font-size: 1.5rem;
    }

    .curso-card-img-sm {
        width: 70px;
        height: 55px;
    }
}

/* ============================================================
   IMPRESSÃO (Certificado e Currículo)
   ============================================================ */
@media print {
    body {
        background: #fff;
        padding: 0;
    }

    .no-print,
    .navbar-custom,
    footer {
        display: none !important;
    }

    .certificado,
    .curriculo {
        margin: 0;
        box-shadow: none;
        page-break-after: avoid;
    }

    .certificado {
        border-width: 6px;
    }

    @page {
        size: A4;
        margin: 0;
    }
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.text-cyan {
    color: var(--mp-cyan) !important;
}

.text-blue-dark {
    color: var(--mp-blue-dark) !important;
}

.bg-blue-dark {
    background-color: var(--mp-blue-dark) !important;
}

.rounded-16 {
    border-radius: 16px !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Scrollbar customizada (desktop) */
@media (min-width: 992px) {
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    ::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--mp-cyan-hover);
    }
}
/* ============================================================
   ÁREA DO USUÁRIO - HOME
   ============================================================ */

/* -------- HERO / BOAS-VINDAS -------- */
.user-hero {
    background: linear-gradient(135deg, var(--mp-blue-dark) 0%, #004a8f 100%);
    color: #fff;
    padding: 24px 16px 32px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    position: relative;
    overflow: hidden;
}

.user-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(0, 229, 192, .12);
    border-radius: 50%;
}

.user-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: rgba(0, 229, 192, .08);
    border-radius: 50%;
}

.user-hero-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.user-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mp-cyan);
    display: block;
    background: #fff;
}

.user-avatar-placeholder {
    display: grid;
    place-items: center;
    color: var(--mp-blue-dark);
    font-size: 2rem;
    background: #fff;
}

.user-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mp-cyan);
    color: var(--mp-blue-dark);
    display: grid;
    place-items: center;
    font-size: .75rem;
    border: 2px solid #fff;
}

.user-hero-text {
    flex: 1;
    min-width: 0;
}

.user-hero-greeting {
    font-size: .8rem;
    color: #a8c9e8;
    margin: 0 0 2px;
}

.user-hero-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-hero-subtitle {
    font-size: .82rem;
    color: #d1e2f3;
    margin: 0;
    line-height: 1.3;
}

/* -------- AÇÕES RÁPIDAS -------- */
.quick-actions-section {
    margin-top: -22px;
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--mp-blue-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    color: var(--mp-blue-dark);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #fff;
}

.quick-action-icon-blue    { background: linear-gradient(135deg, #002b5b, #004a8f); }
.quick-action-icon-cyan    { background: linear-gradient(135deg, #00e5c0, #00c7a7); color: var(--mp-blue-dark); }
.quick-action-icon-warning { background: linear-gradient(135deg, #ffc107, #ffb300); color: var(--mp-blue-dark); }

/* -------- ESTATÍSTICAS -------- */
.stats-section {
    margin-bottom: 8px;
}

.user-stat {
    background: #fff;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--mp-shadow);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.user-stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mp-blue-dark);
    line-height: 1;
    margin-bottom: 2px;
}

.user-stat-label {
    font-size: .7rem;
    color: var(--mp-gray);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

/* -------- TÍTULOS DE SEÇÃO -------- */
.user-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mp-blue-dark);
    margin: 0;
}

.user-section-link {
    font-size: .82rem;
    color: var(--mp-cyan-hover);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-section-link:hover {
    color: var(--mp-blue-dark);
}

/* -------- CTA GRANDE (sem matrículas) -------- */
.user-cta-box {
    background: linear-gradient(135deg, #00e5c0 0%, #00c7a7 100%);
    color: var(--mp-blue-dark);
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 229, 192, .35);
    position: relative;
    overflow: hidden;
}

.user-cta-content {
    flex: 1;
    z-index: 1;
}

.user-cta-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.user-cta-text {
    font-size: .85rem;
    margin: 0 0 12px;
    line-height: 1.3;
    color: rgba(0, 43, 91, .85);
}

.user-cta-box .btn-cta {
    background: var(--mp-blue-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 43, 91, .35);
    font-size: .85rem;
    padding: 10px 20px;
    max-width: none;
}

.user-cta-box .btn-cta:hover {
    background: #001f42;
    color: #fff;
}

.user-cta-illustration {
    font-size: 3.5rem;
    opacity: .25;
    color: var(--mp-blue-dark);
    flex-shrink: 0;
}

/* -------- CURSO CARD COM PROGRESSO -------- */
.curso-progress-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--mp-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}

.curso-progress-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mp-shadow-lg);
    color: inherit;
}

.curso-progress-cover {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.curso-progress-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.curso-progress-card:hover .curso-progress-cover img {
    transform: scale(1.05);
}

.curso-progress-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    backdrop-filter: blur(4px);
}

.badge-curso  { background: rgba(0, 43, 91, .85); }
.badge-trilha { background: rgba(0, 199, 167, .9); color: var(--mp-blue-dark); }

.curso-progress-done {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00c7a7;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.curso-progress-body {
    padding: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.curso-progress-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--mp-blue-dark);
    margin: 0 0 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.curso-progress-desc {
    font-size: .78rem;
    color: #777;
    margin: 0 0 10px;
    line-height: 1.3;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.curso-progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.curso-progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 50px;
    overflow: hidden;
}

.curso-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5c0, #00c7a7);
    border-radius: 50px;
    transition: width .4s ease;
}

.curso-progress-percent {
    font-size: .72rem;
    font-weight: 700;
    color: var(--mp-cyan-hover);
    min-width: 34px;
    text-align: right;
}

.curso-progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: auto;
}

.curso-progress-cert {
    color: #00a889;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* -------- PRÓXIMOS PASSOS -------- */
.next-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    color: var(--mp-blue-dark);
    box-shadow: var(--mp-shadow);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.next-step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mp-shadow-lg);
    color: var(--mp-cyan-hover);
}

.next-step-card i {
    font-size: 1.4rem;
    color: var(--mp-cyan-hover);
}

/* -------- ESTADO VAZIO -------- */
.user-empty-state {
    background: #fff;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--mp-shadow);
    border: 2px dashed #e0e0e0;
}

.user-empty-state i {
    font-size: 3rem;
    color: #c0c0c0;
    display: block;
    margin-bottom: 12px;
}

.user-empty-state p {
    color: #777;
    font-size: .9rem;
    margin-bottom: 16px;
}

/* ============================================================
   RESPONSIVIDADE - ÁREA DO USUÁRIO
   ============================================================ */

/* Tablets */
@media (min-width: 768px) {
    .user-hero {
        padding: 32px 24px 44px;
    }

    .user-avatar {
        width: 88px;
        height: 88px;
    }

    .user-hero-name {
        font-size: 1.7rem;
    }

    .user-hero-greeting {
        font-size: .85rem;
    }

    .user-hero-subtitle {
        font-size: .9rem;
    }

    .quick-actions-section {
        margin-top: -28px;
    }

    .quick-action-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px 16px;
        gap: 10px;
        font-size: .85rem;
    }

    .quick-action-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .user-stat {
        padding: 16px;
    }

    .user-stat-num {
        font-size: 1.5rem;
    }

    .user-stat-label {
        font-size: .75rem;
    }

    .user-section-title {
        font-size: 1.15rem;
    }

    .curso-progress-cover {
        height: 160px;
    }

    .curso-progress-title {
        font-size: 1rem;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .user-hero {
        padding: 40px 32px 56px;
    }

    .user-hero::before {
        width: 220px;
        height: 220px;
        top: -60px;
        right: -60px;
    }

    .user-hero::after {
        width: 180px;
        height: 180px;
        bottom: -80px;
        left: -50px;
    }

    .user-avatar {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .user-avatar-badge {
        width: 28px;
        height: 28px;
        font-size: .85rem;
    }

    .user-hero-name {
        font-size: 2rem;
    }

    .user-hero-subtitle {
        font-size: .95rem;
    }

    .quick-actions-section {
        margin-top: -34px;
    }

    .user-stat-num {
        font-size: 1.7rem;
    }

    .curso-progress-cover {
        height: 180px;
    }

    .user-cta-box {
        padding: 32px;
    }

    .user-cta-title {
        font-size: 1.3rem;
    }

    .user-cta-illustration {
        font-size: 5rem;
    }
}

/* Mobile pequeno */
@media (max-width: 400px) {
    .user-avatar {
        width: 60px;
        height: 60px;
    }

    .user-hero-name {
        font-size: 1.2rem;
    }

    .user-hero-subtitle {
        font-size: .75rem;
    }

    .quick-action-card {
        font-size: .72rem;
        padding: 10px 6px;
    }

    .quick-action-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .user-stat-num {
        font-size: 1.1rem;
    }

    .user-stat-label {
        font-size: .62rem;
    }

    .curso-progress-cover {
        height: 120px;
    }

    .user-cta-box {
        flex-direction: column;
        text-align: center;
    }

    .user-cta-illustration {
        font-size: 2.5rem;
    }

    .user-cta-box .btn-cta {
        width: 100%;
    }
}