/* Profile, Edit Profile, Change Password (ProfileScreen.tsx, EditProfileScreen.tsx, ChangePasswordScreen.tsx
   StyleSheets, blue theme). The forms reuse the sign-in classes in shared/app.css (.in-row, .auth-err, .auth-btn). */
.profile-ic { fill: var(--accent); flex: none; }
.profile-card { display: flex; flex-direction: column; align-items: center; padding: 24px; margin-bottom: 24px; border-radius: 16px; background: var(--card); box-shadow: 0 10px 20px rgba(0,49,83,0.3); }
.profile-card p { margin: 0; }
.profile-avatar-wrap { position: relative; margin-bottom: 16px; }
.profile-avatar { width: 96px; height: 96px; border-radius: 48px; background: var(--accent-strong); color: #FFFFFF; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; }
.profile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 48px; }
.profile-avatar-edit { position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; padding: 0; background: var(--accent-strong); /* the app's accent; the stronger blue keeps the white icon readable */ border: 3px solid rgba(135,206,235,0.1); color: #FFFFFF; cursor: pointer; box-shadow: 0 3px 6px rgba(0,0,0,0.3); }
.profile-avatar-edit:focus-within { outline: 2px solid var(--brand-sub); outline-offset: 3px; }
.profile-avatar-edit.is-busy { cursor: default; }
.profile-spin { width: 16px; height: 16px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #FFFFFF; animation: profile-spin .8s linear infinite; }
@keyframes profile-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .profile-spin { animation-duration: 2.4s; } }
.profile-avatar-edit svg { fill: currentColor; }
.profile-name { font-size: 24px; font-weight: 700; margin-bottom: 4px !important; }
.profile-email { font-size: 16px; color: var(--text-2); margin-bottom: 12px !important; }
.profile-sec { margin-bottom: 24px; }
.profile-h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px 4px; }
.profile-box { border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 2px 6px rgba(0,49,83,0.1); }
.profile-row { display: flex; align-items: center; padding: 16px; }
.profile-ic-wrap { width: 40px; height: 40px; border-radius: 20px; margin-right: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(29,161,242,0.08); /* `${colors.accent}15` */ }
.profile-row-c { flex: 1; min-width: 0; }
.profile-row-c p { margin: 0; }
.profile-dl { font-size: 14px; color: var(--text-muted); margin-bottom: 2px !important; }
.profile-dt { font-size: 16px; font-weight: 600; color: var(--text); }
.profile-date { display: flex; justify-content: space-between; }
.profile-age { font-size: 14px; color: var(--text-muted); }
.profile-div { height: 1px; background: var(--border); }
.profile-opt { display: flex; align-items: center; width: 100%; padding: 16px; background: none; border: 0; color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.profile-opt-t { flex: 1; margin-left: 12px; font-size: 16px; font-weight: 500; }
.profile-chev { fill: var(--text-muted); flex: none; }
/* Sign Out: outlined in the accent; Delete Account: filled red (the live app's buttons) */
.profile-logout, .profile-delete { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 8px 0 12px; padding: 15px 20px; border-radius: 14px; font: 600 16px var(--font); cursor: pointer; }
.profile-logout { background: transparent; border: 2px solid var(--accent); color: var(--brand-sub); }
.profile-delete { background: #C62828; /* the original's #EF4444 is too faint behind white text */ border: 0; color: #FFFFFF; box-shadow: 0 4px 8px rgba(255,59,48,0.3); }
.profile-logout svg, .profile-delete svg { fill: currentColor; }
.profile-version { text-align: center; font-size: 14px; color: var(--text-muted); margin: 12px 0 0; }

/* The original's alerts, as a dialog over the page */
.profile-overlay { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.5); }
.profile-dlg { width: 100%; max-width: 340px; padding: 20px; border-radius: 16px; background: #195e96; /* the original's modal blue (EditProfileScreen date picker) */ box-shadow: 0 10px 20px rgba(0,49,83,0.3); }
.profile-dlg-h { font-size: 18px; font-weight: 600; margin: 0 0 12px; text-align: center; }
.profile-dlg-p p { margin: 0 0 10px; font-size: 15px; line-height: 1.4; color: var(--text); text-align: center; }
.profile-dlg-btns { display: flex; gap: 16px; margin-top: 16px; }
.profile-dlg-btn { flex: 1; padding: 12px 20px; border: 0; border-radius: 8px; background: rgba(135,206,235,0.4); /* borderInput */ color: var(--text); font: 600 16px var(--font); cursor: pointer; }
.profile-dlg-btn.is-danger { background: linear-gradient(90deg, #C62828, #B71C1C); color: #FFFFFF; /* darker than the original's #EF4444→#DC2626, for contrast */ }
.profile-dlg-btn:disabled { opacity: .7; cursor: default; }
.profile-dlg-in { display: block; width: 100%; margin: 6px 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(135,206,235,0.4); background: var(--input-bg); color: var(--text); font: 500 16px var(--font); }
.profile-dlg-in::placeholder { color: var(--text-muted); }
.profile-dlg .auth-err { margin: 0 0 4px; }

/* Edit Profile */
.profile-edit { border-radius: 25px; background: var(--card); padding: 30px 20px; box-shadow: 0 10px 20px rgba(0,49,83,0.3); }
.profile-edit-h { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; text-align: center; margin: 10px 0 20px; }
.profile-group { margin-bottom: 24px; }
.profile-label { display: block; font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.profile-sub { font-size: 14px; font-style: italic; color: var(--text-muted); margin: 0 0 12px; }
.in-row.profile-in { margin-bottom: 0; }
.profile-in input[type="date"] { color-scheme: dark; }
.profile-pick { width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.profile-pick-t { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; }
.profile-pick-t.is-empty { color: var(--text-muted); }
.profile-pick-chev { fill: var(--text-muted); flex: none; }
.profile-genders { display: flex; gap: 12px; }
.profile-gender { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border-radius: 12px; border: 1px solid rgba(135,206,235,0.4); background: var(--input-bg); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.profile-gender svg { fill: var(--brand-sub); }
.profile-gender[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.profile-gender[aria-pressed="true"] svg { fill: var(--primary); }
.profile-dd { margin-top: 8px; max-height: 300px; overflow-y: auto; border-radius: 12px; border: 1px solid rgba(135,206,235,0.4); background: var(--input-bg); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.profile-dd-item { display: flex; align-items: center; width: 100%; padding: 12px 16px; background: none; border: 0; border-bottom: 1px solid rgba(135,206,235,0.2); color: var(--text); text-align: left; font: 500 16px var(--font); cursor: pointer; }
.profile-dd-item:last-child { border-bottom: 0; }
.profile-dd-ic { fill: var(--brand-sub); margin-right: 12px; opacity: .8; flex: none; }
.profile-dd-t { flex: 1; }
.profile-dd-item.is-on { background: rgba(29,161,242,0.08); /* `${colors.accent}15` */ }
.profile-dd-item.is-on .profile-dd-t { color: var(--accent); font-weight: 600; }
.profile-dd-item.is-on .profile-dd-ic, .profile-dd-check { fill: var(--accent); }
.profile-dd-check { margin-left: 8px; flex: none; }
.profile-save { margin-top: 10px; }

/* Change Password */
.profile-pw { margin-top: 20px; border-radius: 25px; background: var(--card); padding: 30px 20px; box-shadow: 0 10px 20px rgba(0,49,83,0.3); }
.profile-pw-h { font-size: 24px; font-weight: 700; text-align: center; margin: 0 0 8px; text-shadow: 0 1px 2px rgba(0,0,0,0.3); outline: none; }
.profile-pw-p { font-size: 16px; line-height: 22px; color: var(--text-2); text-align: center; margin: 0 0 30px; }
.profile-pw-g { margin-bottom: 20px; }
.profile-eye { padding: 5px; margin: -5px; }
.profile-req { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 15px; margin-bottom: 20px; }
.profile-req p { margin: 0 0 4px; font-size: 12px; color: var(--text-2); }
.profile-req .profile-req-h { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
