#profile-page-main {
    width: min(1100px, 92vw);
    margin: 1.75rem auto 2rem auto;
    padding-bottom: 2rem;
}

.profile-hero {
    padding: 1.2rem 1.3rem;
    border-radius: 18px;
    border: 1px solid var(--border-glass);
    background:
        radial-gradient(circle at 85% 20%, rgba(8, 145, 178, 0.15) 0, transparent 38%),
        radial-gradient(circle at 10% 110%, rgba(124, 58, 237, 0.2) 0, transparent 45%),
        rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-panel);
}

.profile-hero-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-accent);
    font-size: 0.7rem;
    font-weight: 700;
}

.profile-hero h1 {
    margin: 0.35rem 0 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.profile-hero-sub {
    margin: 0.55rem 0 0 0;
    color: var(--text-secondary);
}

.profile-shell {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.profile-summary-card,
.profile-form-card {
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-panel);
}

.profile-summary-card {
    padding: 1.3rem;
    text-align: center;
}

.profile-summary-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto;
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
}

.profile-summary-card h2 {
    margin: 0.9rem 0 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.22rem;
}

#profile-summary-handle,
#profile-summary-phone {
    margin: 0.35rem 0 0 0;
    color: var(--text-secondary);
}

.profile-back-link {
    display: inline-flex;
    margin-top: 1rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-accent);
    border: 1px solid var(--border-glass);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

.profile-form-card {
    padding: 1.3rem;
}

.profile-form-header h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
}

.profile-form-header p {
    margin: 0.35rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-form {
    margin-top: 1rem;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.profile-field {
    margin: 0;
}

.profile-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.profile-field input,
.profile-field select {
    width: 100%;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    font: inherit;
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-field input:disabled {
    color: var(--text-muted);
    background: rgba(243, 244, 246, 0.9);
}

.profile-field input:focus,
.profile-field select:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.profile-feedback {
    min-height: 1.2rem;
    margin: 0.85rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.profile-form-actions {
    margin-top: 0.7rem;
    display: flex;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    #profile-page-main {
        margin-top: 2rem;
    }

    .profile-shell {
        grid-template-columns: 300px 1fr;
    }

    .profile-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-field-wide {
        grid-column: 1 / -1;
    }
}