* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow: visible;  /* or overflow: auto */
    height: auto;       /* not 100vh / 100% */
}

body {
    background: linear-gradient(145deg, #f4f9fc 0%, #eef2f5 100%);
    font-family: 'Segoe UI', Roboto, 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Back Arrow (same as home page) */
.arrow-back {
    position: fixed;
    top: 25px;
    left: 25px;
    background: white;
    width: 52px;
    height: 52px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
    border: 1px solid rgba(2, 128, 144, 0.2);
}
.arrow-back:hover {
    background: #028090;
    transform: scale(1.05);
}
.arrow-back svg {
    fill: #028090;
    transition: fill 0.2s;
}
.arrow-back:hover svg {
    fill: white;
}

.settings-wrapper {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.settings-card {
    background: white;
    border-radius: 40px;
    padding: 40px 35px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(2, 128, 144, 0.2);
    text-align: center;
    transition: transform 0.2s;
}

.settings-card h1 {
    color: #028090;
    font-size: 1.9rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Avatar Section */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.avatar-preview {
    width: 110px;
    height: 110px;
    background: #e0f2f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #028090;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    transition: all 0.2s;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview i {
    font-size: 4.5rem;
    color: #028090;
    opacity: 0.7;
}

.avatar-label {
    background: #f0f7f7;
    color: #028090;
    border: 1px solid #028090;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 5px;
}
.avatar-label:hover {
    background: #028090;
    color: white;
    transform: scale(1.02);
}

.avatar-hint {
    font-size: 0.7rem;
    color: #888;
    margin-top: 8px;
}

/* Form Fields */
.field-group {
    text-align: left;
    margin-bottom: 22px;
}

.field-group label {
    display: block;
    font-weight: 600;
    color: #1e2f3e;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.field-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0eced;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fafcfc;
}

.field-group input:focus {
    outline: none;
    border-color: #028090;
    box-shadow: 0 0 0 3px rgba(2,128,144,0.1);
}

.field-group input:disabled {
    background: #f0f0f0;
    color: #777;
    cursor: not-allowed;
}

/* Password Section */
.password-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e0eced;
}

.password-section h3 {
    font-size: 1.2rem;
    color: #028090;
    margin-bottom: 18px;
    text-align: center;
}

/* Save Button */
.save-btn {
    background: linear-gradient(135deg, #028090, #02c39a);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(2,128,144,0.3);
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Status Message */
.status-message {
    margin-top: 20px;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 40px;
    display: none;
    font-weight: 500;
}

.status-message.success {
    display: block;
    background: #e0f7e8;
    color: #1e7b4a;
    border: 1px solid #02c39a;
}

.status-message.error {
    display: block;
    background: #ffe6e6;
    color: #c7362b;
    border: 1px solid #ff6b6b;
}

/* RTL Support */
[dir="rtl"] .arrow-back {
    left: auto;
    right: 25px;
}
[dir="rtl"] .arrow-back svg {
    transform: scaleX(-1);
}
[dir="rtl"] .field-group {
    text-align: right;
}

@media (max-width: 550px) {
    .settings-card {
        padding: 30px 20px;
    }
    .settings-card h1 {
        font-size: 1.6rem;
    }
}