/* TrendUp — iOS and profile refinement */
.profile-menu {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.profile-menu__group {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line, #e7eaf0);
  border-radius: 20px;
  background: var(--surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}
.profile-menu__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted, #64748b);
  font: 700 11px/1.3 Inter, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.profile-menu__heading::-webkit-details-marker {
  display: none;
}
.profile-menu__heading::after {
  content: '+';
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line, #e7eaf0);
  border-radius: 50%;
  color: var(--text, #0f172a);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}
.profile-menu__group[open] .profile-menu__heading {
  margin-bottom: 10px;
  color: var(--text, #0f172a);
}
.profile-menu__group[open] .profile-menu__heading::after {
  content: '−';
  color: var(--accent, #ff6a00);
}
.profile-menu__items {
  display: grid;
  gap: 6px;
}
.profile-menu__group .menu-row {
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft, #f8f8f8);
  text-align: left;
  transition: background .18s ease, transform .18s ease;
}
.profile-menu__group .menu-row:active {
  transform: scale(.99);
  background: var(--surface-hover, #f1f1f1);
}
.profile-menu__group .menu-row > span:nth-child(2) {
  min-width: 0;
}
.profile-menu__group .menu-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}
.profile-menu__group .menu-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted, #64748b);
  font-size: 11px;
  line-height: 1.35;
}
.profile-menu__group .menu-row__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.profile-menu__group .menu-row__chevron {
  flex: 0 0 16px;
  width: 16px;
  opacity: .55;
}
#photoInput, #videoInput, #avatarInput, #msgImageInput {
  -webkit-appearance: none;
}
#publishModal .modal__panel,
#videoPublishModal .modal__panel {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
button, [role="button"], input, select, textarea {
  touch-action: manipulation;
}
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  #publishModal .modal__panel,
  #videoPublishModal .modal__panel {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 640px) {
  .profile-menu {
    gap: 11px;
    margin-top: 16px;
  }
  .profile-menu__group {
    padding: 13px;
    border-radius: 17px;
  }
  .profile-menu__group .menu-row {
    min-height: 60px;
    padding: 9px 10px;
  }
  .profile-menu__group .menu-row__icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .profile-menu__group .menu-row strong {
    font-size: 12px;
  }
  .profile-menu__group .menu-row small {
    font-size: 10px;
  }
  .wallet-profile-shortcut {
    align-items: flex-start;
    gap: 12px;
  }
  .wallet-profile-shortcut .btn {
    min-height: 42px;
  }
  #publishModal .modal__panel,
  #videoPublishModal .modal__panel {
    width: min(100%, 560px);
    max-width: 100%;
    max-height: calc(100dvh - 12px - env(safe-area-inset-top));
    margin: 0 auto;
    border-radius: 22px 22px 0 0;
  }
  #publishModal .modal__head,
  #videoPublishModal .modal__head {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--surface, #fff);
  }
  .upload-zone {
    min-height: 132px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-menu__group .menu-row {
    transition: none;
  }
}
