.edit-main { padding: 0; }

/* Back link */
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: #64748b; font-weight: 500;
    text-decoration: none; margin-bottom: 28px;
    transition: color 0.2s; cursor: pointer;
}
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.back-link:hover { color: #a5b4fc; }

/* Page header */
.edit-header { margin-bottom: 36px; }
.edit-eyebrow {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 10px;
}
.edit-title { font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.edit-subtitle { font-size: 14px; color: #64748b; }

/* Form card */
.edit-card {
    background: rgba(15,20,25,0.7);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 20px; padding: 44px 40px;
    position: relative;
}

/* ── Profile picture section ── */
.avatar-section {
    display: flex; align-items: center; gap: 28px;
    padding-bottom: 36px; margin-bottom: 36px;
    border-bottom: 1px solid rgba(99,102,241,0.15);
}

.avatar-preview {
    width: 100px; height: 100px; min-width: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 38px; font-weight: 700; color: #fff;
    border: 3px solid rgba(99,102,241,0.4);
    position: relative; overflow: hidden; cursor: pointer;
    transition: all 0.25s;
}

.avatar-preview img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0; border-radius: 50%;
    /*display: none;*/
}

.avatar-overlay {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s;
}
.avatar-overlay svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avatar-preview:hover .avatar-overlay { opacity: 1; }

.avatar-info { flex: 1; }
.avatar-label { font-size: 16px; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.avatar-hint { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 16px; }

.avatar-btns { display: flex; gap: 12px; }

.upload-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none; border-radius: 9px; padding: 10px 18px;
    color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all 0.25s;
    display: flex; align-items: center; gap: 7px;
}
.upload-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.upload-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,0.35); }

.remove-photo-btn {
    background: rgba(15,20,25,0.8); border: 1px solid rgba(99,102,241,0.2);
    border-radius: 9px; padding: 10px 18px;
    color: #94a3b8; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all 0.25s;
}
.remove-photo-btn:hover { border-color: #ef4444; color: #ef4444; }

/* Hidden file input */
#file-input { display: none; }

/* ── Form fields ── */
.form-group { margin-bottom: 26px; }

.form-label {
    display: block; font-size: 13px; font-weight: 600;
    color: #cbd5e1; margin-bottom: 8px; letter-spacing: 0.3px;
}
.form-label span.required { color: #8b5cf6; margin-left: 3px; }

.input-wrapper { position: relative; display: flex; align-items: center; }

.input-icon {
    position: absolute; left: 14px; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}
.input-icon svg {
    width: 17px; height: 17px; fill: none; stroke: #64748b;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s;
}

.form-input {
    width: 100%;
    background: rgba(15,20,25,0.8); border: 1px solid rgba(99,102,241,0.25);
    border-radius: 10px; padding: 13px 14px 13px 44px;
    font-size: 15px; color: #ffffff; font-family: inherit; outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
    border-color: #6366f1; background: rgba(99,102,241,0.08);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.input-wrapper:focus-within .input-icon svg { stroke: #8b5cf6; }

.form-hint { font-size: 12px; color: #475569; margin-top: 7px; }

/* Form row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Divider */
.form-divider {
    height: 1px; background: rgba(99,102,241,0.15);
    margin: 36px 0;
}

/* Action buttons */
.form-actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 36px; }

.cancel-btn {
    background: rgba(15,20,25,0.8); border: 1px solid rgba(99,102,241,0.2);
    border-radius: 11px; padding: 13px 28px;
    color: #94a3b8; font-size: 15px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all 0.25s;
    text-decoration: none; display: inline-flex; align-items: center;
}
.cancel-btn:hover { border-color: rgba(99,102,241,0.4); color: #ffffff; }

.save-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    border: none; border-radius: 11px; padding: 13px 32px;
    color: #fff; font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all 0.25s;
    display: inline-flex; align-items: center; gap: 8px;
    position: relative; overflow: hidden;
}
.save-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
    opacity: 0; transition: opacity 0.25s;
}
.save-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(99,102,241,0.4); }
.save-btn:hover::after { opacity: 1; }
.save-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Success toast */
.toast {
    position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4);
    border-radius: 12px; padding: 14px 24px;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600; color: #34d399;
    opacity: 0; transition: all 0.35s; pointer-events: none; z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }