.is-hidden {
    display: none !important;
}

#navbar {
    display: none;
}

.profile-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 28px 0 70px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: .32;
}

.hero-glow-1 {
    width: 520px;
    height: 520px;
    background: #f9d423;
    top: -180px;
    right: -160px;
}

.hero-glow-2 {
    width: 460px;
    height: 460px;
    background: #99f2c8;
    bottom: -160px;
    left: -120px;
}

.profile-shell {
    position: relative;
    z-index: 2;
}

.profile-intro {
    text-align: center;
    margin-bottom: 24px;
}

.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.profile-intro h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -.2px;
    font-weight: 900;
}

.profile-intro p {
    margin: 10px auto 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, .86);
}

.user-menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.user-menu .nav-user-avatar {
    width: 30px;
    height: 30px;
}

.profile-card {
    width: min(880px, 100%);
    margin: 0 auto;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: clamp(20px, 4vw, 34px);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.profile-main-text h2 {
    margin: 0;
    text-align: left;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.05;
}

.profile-username {
    margin-top: 8px;
    color: rgba(255, 255, 255, .76);
    font-weight: 600;
    letter-spacing: .2px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-item {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .14);
    padding: 14px 16px;
    min-height: 82px;
}

.profile-item-wide {
    grid-column: 1 / -1;
}

.profile-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 11px;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 6px;
}

.profile-item p {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    line-height: 1.4;
    word-break: break-word;
}

.profile-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edit-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 20, 16, .66);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.edit-modal-backdrop.open {
    display: flex;
}

.edit-modal {
    width: min(560px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: linear-gradient(150deg, rgba(31, 64, 55, .96), rgba(24, 51, 43, .98));
    box-shadow: 0 24px 55px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.edit-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    position: relative;
}

.edit-step {
    margin: 0;
    font-size: 11px;
    letter-spacing: .8px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
}

.edit-modal-header h3 {
    margin: 6px 0 0;
    font-size: 22px;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}

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

.edit-field {
    display: none;
}

.edit-field.active {
    display: block;
}

.edit-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: rgba(255, 255, 255, .95);
}

.edit-field input,
.edit-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .18);
    color: #fff;
    outline: none;
    font: inherit;
    resize: vertical;
}

.avatar-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    flex-shrink: 0;
}

#editImagenPerfil {
    padding: 10px;
    cursor: pointer;
}

.edit-field input:focus,
.edit-field textarea:focus {
    border-color: rgba(249, 212, 35, .6);
    box-shadow: 0 0 0 4px rgba(249, 212, 35, .18);
}

.edit-modal-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 760px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-top {
        align-items: flex-start;
    }

    .profile-image {
        width: 86px;
        height: 86px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
    }
}