/* ── Profile overlay ── */
.profile-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.profile-overlay.open { display: flex; }

.profile-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.profile-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}
.profile-back svg {
  width: 16px;
  height: 16px;
  stroke: var(--t2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-header-title {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--t1);
}

.profile-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 40px;
}
.profile-scroll::-webkit-scrollbar { display: none; }

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 20px;
  gap: 12px;
}
.profile-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}
.profile-name  { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; color: var(--t1); }
.profile-email { font-size: 13px; color: var(--t3); }

.settings-section { margin: 0 16px 8px; }
.settings-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--t4);
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 16px 8px 6px;
}
.settings-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.settings-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  touch-action: manipulation;
}
.settings-row:last-child { border-bottom: none; }
.settings-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-row-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.settings-row-text  { flex: 1; }
.settings-row-title { font-size: 14px; font-weight: 500; color: var(--t1); }
.settings-row-sub   { font-size: 12px; color: var(--t3); margin-top: 1px; }
.settings-row-arrow { color: var(--t4); font-size: 16px; }
.settings-row-value { font-size: 13px; color: var(--t3); margin-right: 4px; }

.settings-select {
  background: transparent;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--terra);
  font-weight: 500;
  cursor: pointer;
  outline: none;
  text-align: right;
}

.signout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #ffcdd2;
  border-radius: 14px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #C14B2A;
  cursor: pointer;
  margin: 16px 0 0;
  touch-action: manipulation;
}
