.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.profile-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.profile-header i {
    color: var(--primary-color);
}

.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-photo-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    border: 3px solid var(--primary-color);
    margin-bottom: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-photo-container:hover .photo-overlay {
    opacity: 1;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.update-profile-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.update-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.profile-success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    z-index: 1200;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: popup-slide 0.5s forwards;
}

.profile-success-popup i {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.user-id {
    text-align: center;
    margin-top: 1rem;
    font-family: 'Monaco', monospace;
    font-size: 1.1rem;
    color: #2c3e50;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #f6f8fa, #e9ecef);
    border-radius: 25px;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: fit-content;
    margin: 1rem auto;
    border: 1px solid rgba(0,0,0,0.05);
}

.user-id-text {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 1rem;
    }
}