#profileTab {
  padding: 16px 4px 0;
}

#profileTab[hidden] {
  display: none;
}

#profileTab h1 {
  margin: 0 0 28px;
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

/* ─── Profile List ─── */
#profileTab .profile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#profileTab .profile-row {
  width: 100%;
  min-height: 64px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: var(--bg-card);
  color: var(--ink);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  line-height: 1;
  text-align: left;
  position: relative;
  overflow: hidden;
}

#profileTab .profile-row[hidden] {
  display: none;
}

#profileTab .profile-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.2), transparent);
}

#profileTab .profile-action {
  grid-template-columns: 46px minmax(0, 1fr) 26px;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

#profileTab .profile-action:active {
  background: var(--bg-elevated);
  border-color: rgba(0, 230, 118, 0.3);
}

#profileTab .profile-row strong,
#profileTab .profile-row span:not(.icon):not(.profile-icon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profileTab .profile-row strong {
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

#profileTab .profile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-faint);
  border: 1.5px solid rgba(0, 230, 118, 0.2);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

#profileTab .profile-icon .icon {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

#profileTab .profile-chevron {
  color: var(--ink-3);
  width: 22px;
  height: 22px;
  justify-self: end;
}

@media (max-width: 360px) {
  #profileTab { padding-right: 0; padding-left: 0; }
  #profileTab .profile-row { font-size: 15px; }
}

/* ─── FAQ Tab ─── */
#faqTab {
  padding: 16px 4px 0;
}

#faqTab[hidden] {
  display: none;
}

#faqTab .faq-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}

#faqTab .faq-back {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

#faqTab .faq-back:active {
  background: var(--bg-elevated);
  border-color: rgba(0, 230, 118, 0.3);
}

#faqTab .faq-back .icon {
  width: 24px;
  height: 24px;
}

#faqTab h1 {
  margin: 0;
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

#faqTab .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#faqTab .faq-item {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

#faqTab .faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.2), transparent);
}

#faqTab .faq-item[open] {
  border-color: rgba(0, 230, 118, 0.28);
}

#faqTab .faq-item summary {
  min-height: 64px;
  padding: 0 14px 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

#faqTab .faq-item summary::-webkit-details-marker {
  display: none;
}

#faqTab .faq-item summary span:not(.icon) {
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

#faqTab .faq-item-arrow {
  width: 24px;
  height: 24px;
  color: var(--accent);
  justify-self: end;
  transition: transform 180ms ease;
}

#faqTab .faq-item[open] .faq-item-arrow {
  transform: rotate(180deg);
}

#faqTab .faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

@media (max-width: 360px) {
  #faqTab { padding-right: 0; padding-left: 0; }
  #faqTab .faq-item summary span:not(.icon) { font-size: 15px; }
  #faqTab .faq-item p { font-size: 13px; }
}
