/* =========================================
   PROFILE PAGE
========================================= */

.nf-profile-page{

    display:flex;

    flex-direction:column;

    gap:20px;
}

#nfProfileContent{

    display:flex;

    flex-direction:column;

    gap:20px;
}

#nfProfileLoading,
#nfProfileError{

    margin:0;

    color:#7c6f60;

    font-size:14px;
}

#nfProfileError{

    color:#b45309;
}

/* =========================================
   HERO
========================================= */

.nf-profile-hero{

    background:
    linear-gradient(
        135deg,
        #2b1600 0%,
        #4a2c00 100%
    );

    border-radius:24px;

    padding:20px 24px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:16px;

    color:#ffffff;
}

.nf-profile-left{

    display:flex;

    align-items:center;

    gap:14px;

    min-width:0;
}

.nf-profile-avatar-wrap{

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    flex-shrink:0;
}

.nf-profile-avatar-change{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:0;

    border:none;
    background:transparent;

    color:#f6d58a;
    font-size:12px;
    font-weight:700;
    text-decoration:underline;
    text-underline-offset:2px;

    cursor:pointer;
}

.nf-profile-avatar-change:hover{

    color:#fff;
}

.nf-profile-avatar-error{

    margin:0;

    max-width:120px;

    font-size:11px;
    font-weight:600;
    line-height:1.4;
    color:#fecaca;
    text-align:center;
}

.nf-profile-avatar-hero{

    width:64px;

    height:64px;

    border-radius:50%;

    flex-shrink:0;

    object-fit:cover;

    border:2px solid
    rgba(255,255,255,.18);
}

.nf-profile-avatar-fallback{

    width:64px;

    height:64px;

    border-radius:50%;

    background:#f6d58a;

    color:#2b1600;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    font-weight:900;

    flex-shrink:0;
}

.nf-profile-user{

    min-width:0;
}

.nf-profile-user h1{

    font-size:26px;

    font-weight:900;

    margin:0 0 4px;

    line-height:1.15;

    word-break:break-word;

    color:#ffffff;
}

.nf-profile-plan-actions{

    margin-top:16px;
    padding-top:16px;

    border-top:1px solid
    rgba(139,94,0,.1);
}

.nf-profile-plan-actions .nf-btn{

    width:100%;
    justify-content:center;
}

.nf-profile-plan-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:26px;

    padding:0 10px;

    border-radius:999px;

    background:
    rgba(255,255,255,.12);

    color:#f6d58a;

    font-size:11px;

    font-weight:700;

    margin-bottom:6px;
}

.nf-profile-user-email{

    margin:0;

    color:
    rgba(255,255,255,.72);

    font-size:13px;

    word-break:break-word;
}

.nf-profile-edit{

    height:42px;

    padding:0 16px;

    border:none;

    border-radius:14px;

    background:#f6d58a;

    color:#2b1600;

    font-size:13px;

    font-weight:800;

    cursor:pointer;

    transition:.25s ease;

    flex-shrink:0;
}

.nf-profile-edit:hover{

    transform:translateY(-2px);
}

/* =========================================
   LAYOUT
========================================= */

.nf-profile-layout{

    display:grid;

    grid-template-columns:
    minmax(0, 400px)
    minmax(0, 1fr);

    gap:20px;

    align-items:start;
}

.nf-profile-sidebar,
.nf-profile-content{

    display:flex;

    flex-direction:column;

    gap:20px;

    min-width:0;
}

/* =========================================
   CARDS
========================================= */

.nf-profile-card{

    padding:20px;
}

.nf-profile-section-header{

    margin-bottom:16px;
}

.nf-profile-section-header h2,
.nf-profile-card h3{

    font-size:20px;

    font-weight:900;

    color:#211404;

    margin:0;
}

.nf-profile-card h3{

    margin-bottom:16px;
}

.nf-profile-status{

    display:flex;

    flex-direction:column;

    gap:14px;
}

.nf-profile-trial-notice{

    margin:0;

    padding:12px 14px;

    border-radius:12px;

    background:#fff7e8;
    border:1px solid
    rgba(180,83,9,.18);

    font-size:14px;
    font-weight:700;
    line-height:1.5;
    color:#7c4a03;
}

.nf-profile-status-item strong{

    display:block;

    margin-bottom:4px;

    color:#211404;

    font-size:12px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.35px;
}

.nf-profile-status-item span{

    color:#7c6f60;

    font-size:14px;

    word-break:break-word;

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:6px;
}

/* =========================================
   WHATSAPP IA
========================================= */

.nf-whatsapp-card{

    display:grid;

    grid-template-columns:
    1fr 1fr;

    gap:20px;

    align-items:stretch;

    padding:20px;
}

.nf-whatsapp-left{

    display:flex;

    flex-direction:column;

    gap:12px;

    min-width:0;
}

.nf-whatsapp-desc{

    color:#7c6f60;

    line-height:1.55;

    font-size:14px;

    margin:0;
}

.nf-whatsapp-features{

    list-style:none;

    margin:0;

    padding:0;

    display:flex;

    flex-direction:column;

    gap:8px;
}

.nf-whatsapp-features li{

    position:relative;

    padding-left:22px;

    color:#211404;

    font-size:13px;

    font-weight:600;

    line-height:1.4;
}

.nf-whatsapp-features li::before{

    content:'✓';

    position:absolute;

    left:0;

    top:0;

    color:#16a34a;

    font-weight:800;
}

.nf-whatsapp-status-row{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:8px;

    margin-top:4px;
}

.nf-whatsapp-status-row strong{

    font-size:13px;

    font-weight:700;

    color:#211404;
}

.nf-whatsapp-status{

    display:inline-flex;

    align-items:center;

    gap:6px;

    font-size:13px;

    font-weight:700;
}

.nf-whatsapp-status.is-connected{

    color:#16a34a;
}

.nf-whatsapp-status.is-disconnected{

    color:#9a3412;
}

.nf-whatsapp-right{

    background:
    linear-gradient(
        135deg,
        #ecfdf5,
        #dcfce7
    );

    border-radius:20px;

    padding:20px;

    display:flex;

    flex-direction:column;

    gap:12px;

    align-items:flex-start;

    justify-content:center;

    min-width:0;
}

.nf-whatsapp-right-label{

    font-size:11px;

    font-weight:700;

    color:#15803d;

    text-transform:uppercase;

    letter-spacing:.5px;
}

.nf-whatsapp-right-number{

    font-size:28px;

    line-height:1.15;

    color:#166534;

    font-weight:800;

    word-break:break-word;
}

.nf-whatsapp-soon-badge{

    font-size:12px;
}

.nf-whatsapp-btn{

    height:42px;

    padding:0 16px;

    border:none;

    border-radius:14px;

    background:#22c55e;

    color:#ffffff;

    font-size:13px;

    font-weight:800;

    cursor:pointer;

    transition:.25s ease;

    margin-top:auto;
}

.nf-whatsapp-btn:hover:not(:disabled){

    transform:translateY(-2px);
}

.nf-whatsapp-btn:disabled{

    opacity:.55;

    cursor:not-allowed;

    transform:none;
}

/* =========================================
   SECURITY
========================================= */

.nf-profile-security-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    margin-bottom:16px;
}

.nf-profile-security-header h2{

    font-size:20px;

    font-weight:900;

    color:#211404;

    margin:0;
}

.nf-profile-security-rows{

    display:flex;

    flex-direction:column;

    gap:14px;
}

.nf-profile-security-row strong{

    display:block;

    margin-bottom:4px;

    color:#211404;

    font-size:12px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.35px;
}

.nf-profile-security-row span{

    color:#7c6f60;

    font-size:14px;
}

/* =========================================
   MODAL
========================================= */

.nf-profile-edit-grid{

    display:grid;

    grid-template-columns:1fr;

    gap:16px;
}

.nf-profile-edit-error{

    margin:0 0 16px;

    padding:12px 14px;

    border-radius:12px;

    background:#fef3c7;

    color:#92400e;

    font-size:13px;

    font-weight:600;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1024px){

    .nf-profile-layout{

        grid-template-columns:1fr;
    }

}

@media(max-width:900px){

    .nf-whatsapp-card{

        grid-template-columns:1fr;
    }

    .nf-whatsapp-right-number{

        font-size:22px;
    }

}

@media(max-width:768px){

    .nf-profile-hero{

        flex-direction:column;

        align-items:flex-start;
    }

    .nf-profile-user h1{

        font-size:22px;
    }

    .nf-profile-security-header{

        flex-direction:column;

        align-items:flex-start;
    }

    .nf-profile-card,
    .nf-whatsapp-card{

        padding:18px;
    }

}

/* =========================================
   ZONA DE PERIGO
========================================= */

.nf-profile-danger-zone{

    margin-top:0;

    padding:14px 16px;
}

.nf-profile-danger-card{

    border:1px solid
    rgba(220,38,38,.16);

    background:#fffafa;
}

.nf-profile-danger-card h2{

    margin:0 0 4px;

    font-size:15px;

    font-weight:800;

    color:#991b1b;
}

.nf-profile-danger-text{

    margin:0 0 10px;

    font-size:13px;

    line-height:1.45;

    color:#7f1d1d;
}

.nf-profile-danger-btn{

    border:none;

    border-radius:12px;

    padding:8px 14px;

    background:#fee2e2;

    color:#b91c1c;

    font-size:13px;

    font-weight:700;

    cursor:pointer;

    transition:.2s ease;
}

.nf-profile-danger-btn:hover,
.nf-profile-danger-btn:focus,
.nf-profile-danger-btn:focus-visible{

    background:#fecaca;

    color:#991b1b;

    outline:none;
}

.nf-profile-delete-modal{

    max-width:480px;

    width:min(480px,calc(100% - 32px));
}

.nf-profile-delete-lead{

    margin:0 0 14px;

    font-size:14px;

    line-height:1.55;

    color:#6b5840;
}

.nf-profile-delete-lead strong{

    color:#991b1b;
}

.nf-btn-danger{

    background:#dc2626;

    color:#fff;
}

.nf-btn-danger:hover,
.nf-btn-danger:focus,
.nf-btn-danger:focus-visible{

    background:#b91c1c;

    color:#fff;

    outline:none;
}

.nf-btn-danger:disabled,
.nf-btn-danger:disabled:hover{

    background:#e7b4b4;

    color:#fff;

    cursor:not-allowed;
}

/* =========================================
   THEME SHIELD
========================================= */

.nf-profile-page button{

    -webkit-tap-highlight-color:
    transparent !important;
}

.nf-profile-edit,
.nf-profile-edit:hover,
.nf-profile-edit:focus,
.nf-profile-edit:active{

    background:#f6d58a !important;

    color:#2b1600 !important;

    outline:none !important;

    box-shadow:none !important;
}

.nf-whatsapp-btn,
.nf-whatsapp-btn:hover,
.nf-whatsapp-btn:focus,
.nf-whatsapp-btn:active{

    background:#22c55e !important;

    color:#ffffff !important;

    outline:none !important;

    box-shadow:none !important;
}

.nf-whatsapp-btn:disabled,
.nf-whatsapp-btn:disabled:hover{

    background:#22c55e !important;

    color:#ffffff !important;
}
