.profile-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border-left: 5px solid var(--primary);
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(var(--primary), 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-stats h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text);
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.profile-stats p.muted {
    font-size: 1.1rem;
    color: rgba(var(--muted), 0.9);
    margin: 0.75rem 0;
    font-weight: 500;
    opacity: 0.9;
}

.action-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    transition: all 0.4s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.action-btn.secondary {
    background: none;
    border: 2px solid rgba(var(--muted), 0.8);
    color: var(--muted);
}

.action-btn.secondary:hover {
    background: rgba(var(--muted), 0.2);
    color: var(--text);
    border-color: var(--primary);
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.detail-item {
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-item label {
    font-size: 0.95rem;
    color: rgba(var(--muted), 0.85);
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
    text-transform: capitalize;
}

.form-group input,
.form-group select {
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--muted), 0.5);
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary), 0.3);
    outline: none;
}

.form-group input::placeholder,
.form-group select option {
    color: rgba(var(--text), 0.6);
}

@media (max-width: 1024px) {
    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .profile-stats h3 {
        font-size: 1.6rem;
    }

    .profile-stats p.muted {
        font-size: 1rem;
    }

    .action-btn {
        padding: 0.55rem 1.3rem;
        font-size: 0.95rem;
    }

    .profile-details {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.8rem;
    }

    .detail-item {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.8rem;
        padding: 1.2rem;
    }

    .profile-stats {
        text-align: center;
    }

    .profile-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .edit-form {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .profile-pic {
        width: 90px;
        height: 90px;
    }

    .profile-stats h3 {
        font-size: 1.4rem;
    }

    .profile-stats p.muted {
        font-size: 0.9rem;
    }

    .action-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.9rem;
    }

    .profile-details {
        padding: 1rem;
    }

    .detail-item {
        padding: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
}