.profile-screen .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.profile-screen .header-row .title { font-size: 18px; font-weight: 700; }
.profile-screen .back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.profile-screen .back-btn svg { width: 18px; height: 18px; }

.profile-screen .hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 14px;
}
.profile-screen .hero .avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}
.profile-screen .hero .meta { text-align: start; }
.profile-screen .hero .meta .name { font-size: 16px; font-weight: 700; }
.profile-screen .hero .meta .id { font-size: 12px; color: var(--text-muted); direction: ltr; margin-top: 2px; }

.profile-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profile-row .text { text-align: start; flex: 1; }
.profile-row .text .title { font-size: 14px; font-weight: 600; }
.profile-row .text .sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.profile-row .switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s;
}
.profile-row .switch::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--text-secondary);
  /* Animate the logical inset (not transform) so the knob slides to the
     correct edge under both rtl and ltr. */
  transition: inset-inline-start 0.18s, background 0.18s;
}
.profile-row .switch.on { background: var(--accent); border-color: var(--accent); }
.profile-row .switch.on::after {
  background: #FFFFFF;
  inset-inline-start: 25px;
}
.profile-row .switch.busy { opacity: 0.5; pointer-events: none; }

.profile-row .lang-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
}
.profile-row .lang-toggle .pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
}
.profile-row .lang-toggle .pill.active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
