:root {
  --green-dark: #2d5a3f;
  --green-darker: #062823;
  --green-lime: #a8e063;
  --green-mint: #e8f5e9;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --surface: #ffffff;
  --border: #e5ebe8;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-w: 480px;
  --tabbar-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.profile-body {
  font-family: var(--font);
  background: #f4f6f5;
  color: var(--text);
  line-height: 1.45;
}

.profile-app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
}

.profile-demo-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  background: var(--green-mint);
  padding: 4px 10px;
  border-radius: 999px;
}

.profile-main {
  flex: 1;
  padding: 8px 18px calc(var(--tabbar-h) + 24px);
}

.profile-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--green-darker);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--green-mint);
  border-radius: 16px;
  margin-bottom: 28px;
}

.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-darker);
}

.account-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2px 0 6px;
}

.account-settings {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-section {
  margin-bottom: 24px;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-section-head .profile-section-title {
  margin-bottom: 0;
}

.profile-section-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
}

.profile-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-darker);
  margin-bottom: 10px;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.profile-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-mint);
  color: var(--green-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-row-icon svg {
  display: block;
}

.profile-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-row-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green-darker);
}

.profile-row-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-row-chevron {
  font-size: 1.25rem;
  color: var(--text-soft);
  line-height: 1;
}

.fundraiser-promo {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px 16px;
  text-align: center;
  background: var(--surface);
}

.fundraiser-promo-art svg {
  width: min(100%, 200px);
  height: auto;
  margin-bottom: 12px;
}

.fundraiser-promo-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-darker);
  margin-bottom: 8px;
}

.fundraiser-promo-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.btn-start-fundraiser {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--green-darker);
  background: var(--green-lime);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 12px;
}

.btn-start-fundraiser span {
  font-size: 1.2rem;
  line-height: 1;
}

.link-drafts {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-sign-out {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green-darker);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.profile-foot-demo {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-top: 14px;
}

.profile-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max-w);
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 4px;
  padding: 8px 10px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.profile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.profile-tab--active {
  color: var(--green-dark);
}

.profile-tab-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: var(--green-mint);
  border-radius: 999px;
}

.profile-tab--active .profile-tab-pill svg {
  stroke: var(--green-dark);
}
