/* Modern Profile Page CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary, #ffffff);
    height: 100dvh;
    overflow-x: hidden;
}

/* Account Container - Glass Morphism */
.account-container {
    width: 100%;
    height: 100dvh;
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(15, 15, 26, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 1.2rem;
    animation: fadeInContainer 0.5s ease-out;
}

/* Background Decorative Elements */
.account-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Back Button - Modern Style */
.back-button {
    position: absolute;
    left: 2rem;
    top: 2rem;
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--primary-dark, #3a56d4) 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(67, 97, 238, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 100;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.back-button::before {
    content: '←';
    font-size: 1.25rem;
    line-height: 1;
}

.back-button:hover {
    background: linear-gradient(135deg, var(--primary-dark, #3a56d4) 0%, var(--secondary, #7209b7) 100%);
    transform: translateX(-4px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(67, 97, 238, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.back-button:active {
    transform: translateX(0) scale(0.98);
}

/* Profile Wrapper */
.profile-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 1.8rem;
    padding: 1.2rem;
    justify-content: center;
}

/* Profile Card - Glass Morphism */
.profile-card {
    background: rgba(26, 26, 46, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    overflow: hidden;
    padding: 1.8rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    animation: slideInLeft 0.6s ease-out;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--secondary, #7209b7) 100%);
    border-radius: 2rem 2rem 0 0;
}

/* Profile Header */
.profile-header {
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-image-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.2rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(135deg, var(--primary, #4361ee), var(--secondary, #7209b7)) border-box;
    box-shadow: 
        0 10px 30px rgba(67, 97, 238, 0.3),
        0 0 0 6px rgba(26, 26, 46, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 
        0 15px 40px rgba(67, 97, 238, 0.4),
        0 0 0 8px rgba(26, 26, 46, 0.8);
}

.profile-image-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--secondary, #7209b7) 100%);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    border: 3px solid rgba(26, 26, 46, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image-edit:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary, #ffffff) 0%, var(--primary-light, #4cc9f0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.6rem 0 0.3rem;
    letter-spacing: -0.5px;
}

.profile-email {
    font-size: 1.125rem;
    color: var(--text-secondary, #d1d5db);
    margin-bottom: 0.4rem;
    word-break: break-all;
    font-weight: 400;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 217, 100, 0.1);
    color: var(--success, #4ade80);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success, #4ade80);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Profile Details */
.profile-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: 25dvh;
    margin-top: 1.5rem;
    gap: 1rem;
    text-align: left;
}

.profile-detail {
    max-width: 45%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* kritik kısımlar */
    max-height: 20dvh;       /* istersen yükseklik sınırı ver */
    overflow: auto;          /* taşan içerik scroll ile gösterilir */
    word-wrap: break-word;   /* uzun kelimeleri kır */
}

.profile-detail h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary, #d1d5db);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    white-space: normal;     /* çok satırlı */
    overflow: hidden;        /* taşan kısmı gizle */
    text-overflow: ellipsis; /* taşarsa ... göster */
}

.profile-detail p {
    font-size: 1.125rem;
    color: var(--text-primary, #ffffff);
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: break-word; /* kelime taşmalarını önle */
}

.profile-detail .detail-value {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: block;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    word-break: break-all;
}

/* Edit Button */
.profile-edit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--secondary, #7209b7) 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1.2rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.25);
}

.profile-edit-button::before {
    content: '✏️';
    font-size: 1.25rem;
}

.profile-edit-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(67, 97, 238, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.profile-edit-button:active {
    transform: translateY(0);
}

/* Profile Modal - Glass Morphism */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0.6rem;
    animation: fadeInOverlay 0.3s ease-out;
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    padding: 1.8rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(67, 97, 238, 0.3);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 97, 238, 0.5);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--secondary, #7209b7) 100%);
    border-radius: 2rem 2rem 0 0;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary, #ffffff);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--secondary, #7209b7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    text-align: center;
    letter-spacing: -0.5px;
    word-break: break-word;
}

/* Form Elements */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary, #ffffff);
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: vertical;
    box-sizing: border-box;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--primary, #4361ee);
    background: rgba(67, 97, 238, 0.08);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.modal-content textarea {
    min-height: 120px;
    line-height: 1.6;
    max-height: 300px;
}

/* File Upload Styling */
.file-upload-group {
    position: relative;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-upload-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary, #4361ee);
}

.file-upload-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.file-upload-text {
    font-size: 1rem;
    color: var(--text-secondary, #d1d5db);
}

.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Image Preview */
.image-preview-container {
    margin-top: 0.8rem;
    text-align: center;
}

.image-preview {
    max-width: 180px;
    max-height: 180px;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--primary, #4361ee), var(--secondary, #7209b7)) border-box;
    margin: 0 auto;
    display: none;
}

.image-preview.show {
    display: block;
    animation: fadeInImage 0.3s ease-out;
}

.preview-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.8rem;
}

.preview-remove {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.45rem 0.8rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 500;
}

.preview-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.save-button,
.cancel-button {
    flex: 1;
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.save-button {
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--secondary, #7209b7) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.25);
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(67, 97, 238, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.save-button::before {
    content: '💾';
    font-size: 1.25rem;
}

.cancel-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: var(--text-secondary, #d1d5db);
}

.cancel-button::before {
    content: '✕';
    font-size: 1.25rem;
}

/* Animations */
@keyframes fadeInContainer {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .profile-wrapper {
        /* keep row layout instead of stacking in column */
        gap: 1.2rem;
    }

    .profile-image-container {
        width: 140px;
        height: 140px;
    }    
}

@media screen and (max-width: 768px) {
    .account-container {
        padding: 1rem;
    }
    
    .back-button {
        left: 1rem;
        top: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .profile-wrapper {
        padding: 0.8rem;
        gap: 1rem;
    }
        
    .profile-image-container {
        width: 140px;
        height: 140px;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 0.6rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }
}

@media screen and (max-width: 480px) {
    .account-container {
        padding: 0.4rem;
    }
        
    .profile-image-container {
        width: 120px;
        height: 120px;
    }
        
    .profile-detail {
        padding: 0.75rem;
    }
    
    .modal-content {
        padding: 0.9rem;
        border-radius: 1.2rem;
        max-height: 80vh;
    }
    
    .modal-content h2 {
        font-size: 1.1rem;
    }
    
    .modal-content input,
    .modal-content textarea,
    .modal-content select {
        padding: 0.6rem 0.75rem;
        font-size: 15px;
    }
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Error/Success Messages */
.profile-message {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 500;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
    animation: slideIn 0.3s ease-out;
}

.profile-message.success {
    background: rgba(76, 217, 100, 0.1);
    color: var(--success, #4ade80);
    border: 1px solid rgba(76, 217, 100, 0.2);
}

.profile-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.profile-message.show {
    display: flex;
}

/* Additional Profile Sections */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--secondary, #7209b7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary, #9ca3af);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.action-button {
    flex: 1;
    min-width: 100px;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary, #4361ee);
    transform: translateY(-2px);
}

.action-button.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger, #ef4444);
}

.action-button.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger, #ef4444);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .account-container,
    .profile-card,
    .profile-modal,
    .modal-content,
    .profile-image,
    .profile-edit-button,
    .back-button,
    .save-button,
    .cancel-button,
    .action-button {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus Styles */
.back-button:focus-visible,
.profile-edit-button:focus-visible,
.save-button:focus-visible,
.cancel-button:focus-visible,
.action-button:focus-visible,
.close-modal:focus-visible,
.modal-content input:focus-visible,
.modal-content textarea:focus-visible,
.modal-content select:focus-visible {
    outline: 2px solid var(--primary, #4361ee);
    outline-offset: 2px;
}

/* Dark/Light Mode Support */
@media (prefers-color-scheme: light) {
    .account-container {
        background: rgba(255, 255, 255, 0.7);
    }
    
    .profile-card,
    .modal-content {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .profile-name {
        background: linear-gradient(135deg, #1a1a2e 0%, #4361ee 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .profile-detail {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .profile-detail h3 {
        color: #64748b;
    }
    
    .profile-detail p {
        color: #1a1a2e;
    }
    
    .modal-content input,
    .modal-content textarea,
    .modal-content select {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.15);
        color: #1a1a2e;
    }
}

/* Show/Hide States */
.account-container.show,
.profile-modal.show {
    display: flex;
}

/* Utility Classes */
.fade-in {
    animation: fadeInContainer 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Reduced spacing overrides (decrease paddings & margins) */
.account-container { padding: 1.2rem; }
.back-button { padding: 0.6rem 1.2rem; }
.profile-wrapper { gap: 1.8rem; padding: 1.2rem; }
.profile-card { padding: 1.8rem; }
.profile-header { margin-bottom: 1.5rem; }
.profile-image-container { margin: 0 auto 1.2rem; }
.profile-name { margin: 0.6rem 0 0.3rem; }
.profile-email { margin-bottom: 0.4rem; }
.profile-details { margin-top: 1.5rem; gap: 1rem; }
.profile-detail { margin-bottom: 1rem; padding: 0.75rem; }
.profile-detail h3 { margin-bottom: 0.5rem; }
.profile-edit-button { padding: 0.75rem; margin-top: 1.2rem; gap: 0.5rem; }
.profile-modal { padding: 0.6rem; }
.modal-content { padding: 1.8rem; max-height: 90vh; }
.modal-content h2 { margin-bottom: 1.2rem; font-size: 1.6rem; }
.modal-content form { gap: 1rem; }
.modal-content input,
.modal-content textarea,
.modal-content select { padding: 0.6rem 0.75rem; font-size: 0.95rem; border-radius: 0.75rem; }
.file-upload-label { padding: 0.9rem; }
.image-preview-container { margin-top: 0.8rem; }
.modal-buttons { margin-top: 1.2rem; gap: 0.75rem; }
.save-button,
.cancel-button { padding: 0.75rem 1.2rem; font-size: 1rem; }
.profile-stats { padding: 0.9rem; gap: 0.75rem; }
.action-button { padding: 0.6rem; gap: 0.5rem; min-width: 100px; }
.preview-actions { margin-top: 0.8rem; gap: 0.75rem; }
.preview-remove { padding: 0.45rem 0.8rem; font-size: 0.85rem; }

/* Responsive adjustments keep reduced spacing */
@media screen and (max-width: 1024px) {
    .profile-wrapper { gap: 1.4rem; }
}

@media screen and (max-width: 768px) {
    .profile-wrapper { padding: 0.8rem; gap: 1rem; }
    .profile-card { padding: 1.2rem; }
    .profile-image-container { width: 140px; height: 140px; }
    .modal-content { padding: 1rem; margin: 0.6rem; }
    .modal-buttons { flex-direction: column; gap: 0.6rem; }
}

@media screen and (max-width: 480px) {
    .account-container {
        padding: 0.4rem;
    }
}