.edit-profile-popup {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
z-index: 1001;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
opacity: 0;
transition: opacity 0.3s ease;
}

@media (max-width: 640px) {
.edit-profile-popup {
padding: 0;
align-items: flex-end;
}
}

.edit-profile-popup.show {
display: flex;
opacity: 1;
}

.edit-profile-popup-overlay {
display: none;
}

.edit-profile-popup-content {
width: 100%;
max-width: 400px;
background: #1e2433;
border: 1px solid rgba(74, 158, 255, 0.1);
border-radius: 12px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
overflow: hidden;
position: relative;
animation: editProfileSlideIn 0.2s ease-out;
}

@media (max-width: 640px) {
.edit-profile-popup-content {
width: 100%;
max-width: none;
height: auto;
max-height: 90vh;
border-radius: 12px 12px 0 0;
border: 1px solid rgba(74, 158, 255, 0.1);
box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
animation: editProfileSlideUp 0.3s ease-out;
overflow-y: auto;
}
}

.edit-profile-popup-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-profile-popup-title {
font-size: 1rem;
font-weight: 600;
color: #fff;
margin: 0;
}

@media (max-width: 640px) {
.edit-profile-popup-header {
padding: 0.75rem;
}

.edit-profile-popup-title {
font-size: 0.875rem;
}
}

@keyframes editProfileSlideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes editProfileSlideUp {
from {
opacity: 0;
transform: translateY(100%);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.edit-profile-popup-close {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.6);
cursor: pointer;
padding: 4px;
border-radius: 4px;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.edit-profile-popup-close:hover {
color: white;
background: rgba(255, 255, 255, 0.1);
}

.edit-profile-form {
padding: 1rem;
}

.edit-profile-section {
margin-bottom: 1rem;
}

.edit-profile-avatar-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
padding: 0.75rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
}

@media (max-width: 640px) {
.edit-profile-form {
padding: 0.75rem;
}

.edit-profile-section {
margin-bottom: 0.75rem;
}

.edit-profile-avatar-section {
padding: 0.5rem;
}
}

.edit-profile-avatar-container {
position: relative;
width: 4rem;
height: 4rem;
border-radius: 50%;
overflow: hidden;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
border: 2px solid rgba(255, 255, 255, 0.1);
}

.edit-profile-avatar-container:hover {
transform: scale(1.05);
border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
.edit-profile-avatar-container {
width: 3rem;
height: 3rem;
}
}

.edit-profile-avatar-preview {
width: 100%;
height: 100%;
object-fit: cover;
}

.edit-profile-avatar-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
opacity: 0;
transition: opacity 0.2s ease;
}

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

.edit-profile-avatar-input {
display: none;
}

.edit-profile-avatar-label {
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
font-size: 0.75rem;
font-weight: 500;
transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.edit-profile-avatar-label:hover {
color: white;
}

.edit-profile-field {
display: flex;
flex-direction: column;
gap: 0.25rem;
}

.edit-profile-label {
color: #fff;
font-size: 0.75rem;
font-weight: 500;
}

.edit-profile-input,
.edit-profile-textarea {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 0.5rem 0.75rem;
color: white;
font-size: 0.875rem;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
resize: vertical;
}

.edit-profile-input:focus,
.edit-profile-textarea:focus {
outline: none;
border-color: rgba(255, 255, 255, 0.25);
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.edit-profile-textarea {
min-height: 3rem;
font-family: inherit;
}

.edit-profile-field-hint {
color: rgba(255, 255, 255, 0.4);
font-size: 0.625rem;
}

.edit-profile-actions {
display: flex;
justify-content: center;
margin-top: 1rem;
padding-top: 0.75rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-profile-save {
width: 100%;
padding: 0.625rem 1rem;
border-radius: 8px;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
border: 1px solid rgba(255, 255, 255, 0.1);
background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
color: white;
backdrop-filter: blur(8px);
}

.edit-profile-save:hover {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
border-color: rgba(255, 255, 255, 0.25);
transform: translateY(-2px) scale(1.02);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.edit-profile-save:disabled {
background: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.4);
cursor: not-allowed;
transform: none;
}

@media (max-width: 640px) {
.edit-profile-actions {
margin-top: 0.75rem;
padding-top: 0.5rem;
}

.edit-profile-save {
padding: 0.75rem 1rem;
}
}



