/* ==================== PROFILE PAGE ==================== */
.page-perfil {
    padding: 48px 24px 72px;
}

.profile-page-hero {
    max-width: 1200px;
    margin: 0 auto 26px;
    padding: 28px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background:
        radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.24), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.2), transparent 45%),
        linear-gradient(130deg, rgba(16, 16, 28, 0.94), rgba(28, 21, 50, 0.94));
}

.profile-page-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    margin-bottom: 8px;
}

.profile-page-hero p {
    color: var(--text-secondary);
    max-width: 720px;
}

.profile-page-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: start;
}

.profile-page-card,
.profile-page-form-wrap {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: rgba(17, 17, 30, 0.9);
    box-shadow: var(--shadow-md);
}

.profile-page-card {
    padding: 22px;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.profile-page-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.profile-page-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.profile-page-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.profile-page-head p {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.profile-page-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.profile-page-stats div {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.profile-page-stats strong {
    display: block;
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

.profile-page-stats span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.profile-page-bio {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.profile-page-form-wrap {
    padding: 26px 28px;
}

.profile-page-form-head {
    margin-bottom: 18px;
}

.profile-page-form-head h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.profile-page-form-head p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-page-form .form-group {
    margin-bottom: 14px;
}

.profile-page-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-page-form label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.profile-page-form input,
.profile-page-form select,
.profile-page-form textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    font-family: inherit;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-page-form input:focus,
.profile-page-form select:focus,
.profile-page-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.profile-page-form textarea {
    min-height: 110px;
    resize: vertical;
}

.profile-page-form small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: right;
}

.profile-page-empty,
.profile-page-loading {
    text-align: center;
    padding: 28px 14px;
    color: var(--text-muted);
}

.profile-page-empty i,
.profile-page-loading i {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 10px;
    display: block;
}

.profile-page-empty h3 {
    margin-bottom: 6px;
    color: var(--text-primary);
}

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

    .profile-page-card {
        position: static;
    }
}
