/* ─── iOS navigable settings row (Telegram iOS list row 6023:2116) ───────── */
.section-card__footnote {
  margin: 7px 16px 20px;
  color: var(--hint);
  font-size: 12.5px;
  line-height: 17px;
}
.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  gap: 14px;
  text-align: left;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}
.nav-row:active { background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav-row:disabled { opacity: 0.55; }
/* inset hairline: 16px pad + 30px icon + 14px gap = 60px */
.nav-row + .nav-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 60px;
  right: 16px;
  height: 0.5px;
  background: var(--separator);
  pointer-events: none;
}
.nav-row__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-row__icon svg { position: relative; z-index: 1; width: 18px; height: 18px; }
.nav-row__icon--large svg,
.nav-row__icon--large .icon-preferences { width: 20px; height: 20px; }
.icon-preferences {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("../assets/telegram-preferences.svg") center / 78.57% 71.43% no-repeat;
  mask: url("../assets/telegram-preferences.svg") center / 78.57% 71.43% no-repeat;
}
.icon-privacy,
.icon-terms {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  background: currentColor;
}
.icon-privacy {
  -webkit-mask: url("../assets/telegram-privacy.svg") center / contain no-repeat;
  mask: url("../assets/telegram-privacy.svg") center / contain no-repeat;
}
.icon-terms {
  -webkit-mask: url("../assets/telegram-terms.svg") center / contain no-repeat;
  mask: url("../assets/telegram-terms.svg") center / contain no-repeat;
}
.nav-row__icon--blue { background: #0a84ff; }
.nav-row__icon--green { background: #34c759; }
.nav-row__icon--red { background: #ff3b30; }
.nav-row__icon--orange { background: #ff9500; }
.nav-row__icon--purple { background: #af52de; }
.nav-row__icon--gray { background: #8e8e93; }
.nav-row__icon::before,
.nav-row__icon::after { content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; }
.nav-row__icon::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%); }
.nav-row__icon::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: plus-lighter;
}
.nav-row__label {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 510;
  line-height: 22px;
  letter-spacing: -0.43px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-row__label--ph { color: var(--hint); }
.nav-row__label--danger { color: var(--destructive); }
.nav-row--link { gap: 0; }
.nav-row--link .nav-row__label { color: var(--link); }
.nav-row--link + .nav-row--link::before { left: 16px; }
.nav-row__chevron {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: color-mix(in srgb, var(--hint) 65%, transparent);
}

/* ─── Selection-sheet rows ────────────────────────────────────────────────── */
.sheet-select__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.sheet-select__row:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
.sheet-select__row:disabled { opacity: 0.5; }
.sheet-select__row--sep::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 0.5px;
  background: var(--separator);
}
.sheet-select__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sheet-select__name { font-size: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-select__sub { font-size: 13px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-select__badge { flex: none; }
.sheet-select__check { flex: none; width: 22px; text-align: center; font-size: 17px; font-weight: 600; color: var(--accent); }
.sheet-select__group + .sheet-select__group { margin-top: 14px; }
.sheet-select__group-name {
  margin: 0 16px 6px;
  color: var(--hint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Circular country flag (language picker). A square SVG cropped to a circle by the
   wrapper's border-radius + overflow, with a hairline ring for definition. */
.flag {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.flag svg { width: 100%; height: 100%; display: block; }

/* Page-specific rhythm after removing implicit margins from shared cards. */
.deploy-form .section-card { margin-bottom: 22px; }
.deploy-form .section-card.paid-pin__menu,
.deploy-form .section-card.provider-review__payment { margin-bottom: 0; }
.draft-recovery { padding: 14px 16px; }
.draft-recovery__message {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}
.draft-recovery__actions { display: flex; gap: 18px; margin-top: 10px; }
.draft-recovery__discard { color: var(--destructive); }
.profile-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Profile page (real page, ref resistance.club ProfilePage) ───────────── */
.profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-home-screen__copy { padding: 14px 16px; }
.profile-home-screen__copy h2 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  line-height: 22px;
  letter-spacing: -0.43px;
}
.profile-home-screen__copy p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
}
.profile-home-screen__action {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: var(--link);
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.profile-home-screen__action::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 0.5px;
  background: var(--separator);
}
.profile-home-screen__action:active { background: color-mix(in srgb, var(--text) 6%, transparent); }
.profile__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 0 6px;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.profile-avatar.avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
}
.profile__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.profile__handle {
  margin: 0;
  color: var(--hint);
  font-size: 0.98rem;
}

/* Voluntary TON support + public guestbook. Wallet addresses and transaction
   identifiers are intentionally absent from this surface. */
.support-sheet { display: flex; flex-direction: column; }
.support-header-lottie,
.support-header-lottie .wizard-guide-lottie { width: 112px; height: 112px; }
.support-section-title { margin-top: 12px; padding-top: 2px; padding-bottom: 5px; }
.support-section-title:first-child { margin-top: 0; }
.support-wall-title { margin-top: 18px; }
.support-progress {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 16px;
}
.support-progress__heading,
.support-progress__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-progress__heading strong { color: var(--text); font-size: 24px; line-height: 28px; letter-spacing: -0.5px; }
.support-progress__heading span { color: var(--hint); font-size: 14px; font-weight: 500; }
.support-progress__track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hint) 20%, transparent);
}
.support-progress__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.3s ease;
}
.support-progress__meta span { color: var(--hint); font-size: 13px; }
.support-form { padding: 3px; }
.support-presets { margin: 0; background: transparent; }
.support-presets .bag-seg__btn { min-width: 0; height: 31px; padding-inline: 4px; }
.support-custom-row { margin: 3px -3px -3px; border-top: 0.5px solid var(--separator); }
.support-message-field { align-items: flex-start; min-height: 70px; }
.support-message-field .field-row__input { min-height: 70px; padding: 11px 0 4px; }
.support-message-counter { padding: 0 16px 7px; color: var(--hint); font-size: 12px; text-align: right; }
.support-privacy { border-top: 0.5px solid var(--separator); }
.support-privacy .nav-row + .nav-row::before { left: 16px; }
.support-error { margin: 10px 6px 0; color: var(--destructive); font-size: 13px; text-align: center; }
.support-submit { margin-top: 10px; }
.support-empty { padding: 20px 16px; color: var(--hint); text-align: center; }
.support-empty p { margin: 0; font-size: 14px; }
.support-retry { justify-content: space-between; }
.support-message { padding: 14px 16px; }
.support-message + .support-message { border-top: 0.5px solid var(--separator); }
.support-message__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.support-message__meta strong { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.support-message__meta span { flex: none; color: var(--accent); font-size: 13px; font-weight: 590; }
.support-message p { margin: 7px 0; color: var(--text); font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message footer { display: flex; justify-content: space-between; color: var(--hint); font-size: 12px; }
.support-message footer button { color: var(--destructive); }
/* Trailing value on a nav-row (e.g. the wallet address). */
.nav-row__value {
  flex: none;
  max-width: 55%;
  font-size: 17px;
  letter-spacing: -0.43px;
  color: var(--hint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .tg-app *,
  .tg-app *::before,
  .tg-app *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
