:root {
  --primary: #ff4d6d;
  --primary-light: #ff6b8a;
  --primary-strong: #e63950;
  --primary-soft: #ffe4e9;
  --purple: #7c5cfc;
  --purple-light: #9b7fff;
  --purple-soft: #f0edff;
  --gold: #ffb930;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --bg: #faf7f5;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b6b80;
  --weak: #a0a0b0;
  --line: #f0ebe8;
  --shadow-xs: 0 1px 2px rgba(26, 26, 46, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.12);
  --shadow-primary: 0 4px 16px rgba(255, 77, 109, 0.3);
  --shadow-secondary: 0 4px 16px rgba(124, 92, 252, 0.3);
  --shadow: var(--shadow-md);
  --grad-primary: linear-gradient(135deg, #ff4d6d, #ff6b9d);
  --grad-tech: linear-gradient(135deg, #7c5cfc, #9b7fff);
  --grad-warm: linear-gradient(135deg, #ff4d6d, #ffb930);
  --grad-romance: linear-gradient(135deg, #ff6b9d, #c44cff);
  --safe-bottom: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background: #f0eeef;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

button:active,
a:active {
  transform: scale(0.96);
}

.ri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.phone {
  width: 390px;
  height: 844px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(240, 237, 255, 0.92) 0, rgba(255, 228, 233, 0.28) 25%, var(--bg) 100%);
}

.heartbeat-page {
  background: linear-gradient(180deg, #ecefff 0%, #f5f7ff 42%, #fbfbff 100%);
}

.status-bar {
  height: 46px;
  padding: 14px 26px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
}

.heartbeat-status {
  padding-right: 24px;
}

.heartbeat-status .status-time {
  font-size: 18px;
}

.heartbeat-indicators {
  gap: 7px;
}

.heartbeat-indicators > .ri {
  font-size: 20px;
  color: #11131f;
}

.network-speed {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  color: var(--text);
}

.network-speed strong {
  font-size: 11px;
  font-weight: 700;
}

.network-speed small {
  font-size: 10px;
  font-weight: 700;
}

.phone-indicators {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  color: var(--text);
}

.signal {
  display: inline-flex;
  gap: 2px;
  align-items: end;
}

.signal i {
  width: 3px;
  border-radius: 2px;
  background: #202234;
}

.signal i:nth-child(1) { height: 6px; }
.signal i:nth-child(2) { height: 9px; }
.signal i:nth-child(3) { height: 12px; }
.signal i:nth-child(4) { height: 15px; }

.battery {
  min-width: 28px;
  padding: 1px 5px;
  border-radius: 7px;
  background: #2c2f3b;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.nav {
  height: 62px;
  display: grid;
  grid-template-columns: 72px 1fr 108px;
  align-items: center;
  padding: 0 14px 0 16px;
}

.recommend-nav {
  grid-template-columns: 48px 1fr 108px;
  padding-right: 12px;
}

.heart-nav {
  height: 74px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2px 18px 0 22px;
}

.nav-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-switch {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 26px;
  font-size: 18px;
  font-weight: 700;
}

.home-switch a,
.home-switch button {
  position: relative;
  padding: 16px 0 18px;
  color: var(--text);
}

.home-switch .active {
  color: var(--primary);
}

.home-switch .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--primary);
}

.back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--text);
}

mp-capsule {
  justify-self: end;
  display: block;
  width: 108px;
  height: 40px;
}

.mp-capsule {
  width: 108px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  justify-items: center;
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.08);
}

.mp-capsule-line {
  width: 1px;
  height: 20px;
  background: #e1e2ec;
}

.mp-capsule-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #11131f;
  font-size: 20px;
}

.heart-switch {
  gap: 34px;
  font-size: 19px;
  font-weight: 700;
}

.heart-switch a,
.heart-switch button {
  padding: 16px 0 18px;
}

.heart-switch .active::after {
  bottom: 7px;
  width: 28px;
  height: 4px;
}

.scroll {
  position: absolute;
  inset: 108px 0 82px;
  overflow-y: auto;
  padding: 0 20px 24px;
  scrollbar-width: none;
}

.heartbeat-scroll {
  inset: 120px 0 82px;
  padding: 0 20px 26px;
}

.recommend-scroll {
  inset: 120px 0 172px;
  padding: 0 20px 28px;
}

.recommend-scroll::-webkit-scrollbar {
  display: none;
}

.scroll::-webkit-scrollbar,
.tabs-row::-webkit-scrollbar {
  display: none;
}

bottom-tabbar {
  display: contents;
}

.bottom-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  padding: 8px 18px var(--safe-bottom);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(240, 235, 232, 0.82);
  z-index: 8;
}

.tab {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.tab-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 23px;
  color: var(--muted);
  opacity: 0.72;
}

.tab.active {
  color: var(--primary);
  font-weight: 500;
}

.tab.active .tab-icon {
  color: var(--primary);
  opacity: 1;
}

.section-tabs {
  display: flex;
  gap: 24px;
  padding: 4px 0 16px;
}

.section-tab {
  min-width: 44px;
  min-height: 44px;
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.section-tab.active {
  color: var(--primary);
}

.section-tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 18px;
}

.user-card {
  min-height: 246px;
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.user-card .photo {
  height: 166px;
  border-radius: 16px 16px 0 0;
}

.user-card-body {
  padding: 10px 12px 14px;
}

.card-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.gender-male { color: var(--info); }
.gender-female { color: var(--primary); }

.gender-male,
.gender-female {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
}

.age {
  font-size: 18px;
  font-weight: 500;
}

.chips .ri,
.chip .ri {
  margin-right: 4px;
  font-size: 14px;
}

.meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.photo {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: #f3f0ef;
  background-position: center;
  background-size: cover;
}

.portrait-male {
  background-image: url("../../../assets/avatar-kuangnani-blue-blazer.png");
}

.portrait-hoodie {
  background-image: url("../../../assets/avatar-qingfeng-gray-shirt.png");
}

.portrait-sakura {
  background-image: url("../../../assets/avatar-yuzhu-short-hair.png");
}

.portrait-kangnaixiang {
  background-image: url("../../../assets/avatar-kangnaixiang-beach.png");
}

.portrait-wanqing {
  background-image: url("../../../assets/avatar-wanqing-blue-shirt.png");
}

.portrait-city {
  background-image: url("../../../assets/scene-cafe-window-seat.png");
}

.portrait-sea {
  background-image: url("../../../assets/scene-beach-towel-hat.png");
}

.portrait-default {
  background-image: url("../../../assets/avatar-anyi-cream-shirt.png");
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.detail-photo {
  height: 384px;
  border-radius: 16px;
  margin-bottom: 0;
}

.profile-head {
  padding: 12px 16px 18px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-sm);
}

.name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
}

.name-row .uid {
  margin-left: auto;
  color: var(--weak);
  font-size: 13px;
  font-weight: 400;
}

.vip {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 20px;
  border-radius: 999px;
  background: var(--grad-warm);
  color: #704000;
  font-size: 11px;
  font-weight: 900;
}

.tiny-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  padding: 0 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 11px;
}

.quick-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
  font-size: 14px;
}

.block-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.intro {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.pink-link {
  color: var(--primary);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
}

.chip,
.chips > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8f6f5;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
}

.cert-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  width: 34px;
  height: 34px;
  color: var(--weak);
  font-size: 22px;
  position: relative;
}

.outline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid rgba(255, 77, 109, 0.58);
  border-radius: 999px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.photo-row {
  display: flex;
  gap: 10px;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.action-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 24px var(--safe-bottom);
  background: linear-gradient(180deg, rgba(255,255,255,0.72), #fff);
  backdrop-filter: blur(16px);
  z-index: 9;
}

.recommend-actions {
  bottom: 82px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.58) 34%,
    rgba(255, 255, 255, 0.92) 76%,
    rgba(255, 255, 255, 1) 100%
  );
}

.round-action {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 62px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.round-action strong {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  font-size: 24px;
}

.round-action.skip {
  color: var(--muted);
}

.round-action.skip strong {
  color: var(--muted);
}

.round-action.like,
.round-action.super,
.round-action.date {
  color: var(--primary);
}

.round-action.super strong {
  width: 56px;
  height: 56px;
  background: var(--grad-tech);
  color: #fff;
  box-shadow: var(--shadow-secondary);
}

.recommend-card-shell {
  touch-action: pan-y;
  will-change: transform;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.recommend-card-shell.is-dragging {
  transition: none;
}

.recommend-card-shell.is-flying-left,
.recommend-card-shell.is-flying-right {
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.recommend-empty-wrap {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 18px 0 6px;
}

.recommend-empty {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 24px 18px;
  text-align: center;
}

.recommend-empty .empty-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 36px;
}

.recommend-empty h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.recommend-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.recommend-empty .empty-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.heart-stats {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  padding: 30px 2px 30px;
  text-align: center;
}

.heart-stats .num {
  display: block;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
}

.heart-stats > div {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.heart-stats > div > span:not(.num) {
  font-size: 16px;
  font-weight: 400;
}

.divider {
  height: 74px;
  background: #dad5d0;
}

.list-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.list-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--primary);
}

.liked-photo-card {
  display: block;
  position: relative;
  width: 196px;
  height: 196px;
  border-radius: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.liked-photo-card::before {
  content: attr(data-label);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  min-height: 42px;
  padding: 9px 12px 10px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(122, 116, 128, 0.62), rgba(122, 116, 128, 0.32));
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(26, 26, 46, 0.28);
}

.heart-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.heart-card-grid .liked-photo-card {
  width: 100%;
  height: 168px;
}

.visit-section + .visit-section {
  margin-top: 28px;
}

.visit-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.visit-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--primary);
}

.visit-grid {
  padding-bottom: 6px;
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 8px;
}

.message-entry {
  min-height: 88px;
  border-radius: 16px;
  padding: 16px 14px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 77, 109, 0.18), transparent 42px),
    linear-gradient(135deg, rgba(255,255,255,0.95), var(--primary-soft));
  box-shadow: var(--shadow-xs);
}

.message-entry h3 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
}

.message-entry p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.notice {
  min-height: 78px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.notice-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-tech);
  color: #fff;
  font-size: 24px;
  position: relative;
}

.notice h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.notice-body {
  min-width: 0;
}

.notice p {
  margin: 0;
  color: var(--weak);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-time {
  align-self: start;
  justify-self: end;
  color: var(--weak);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.mine-head {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px 16px;
}

.avatar-progress {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 7px;
  background: conic-gradient(var(--primary) 0 80%, var(--line) 80% 100%);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.progress-pill {
  position: absolute;
  left: 14px;
  bottom: -8px;
  min-width: 60px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  grid-auto-flow: column;
  column-gap: 3px;
  font-size: 12px;
  font-weight: 700;
}

.mine-name {
  font-size: 18px;
  font-weight: 700;
}

.mine-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.mine-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  margin: 18px 0;
}

.mine-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.mine-stats span {
  color: var(--text);
  font-size: 12px;
}

.menu {
  margin: 0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.menu-item {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-icon {
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 20px;
  display: grid;
  place-items: center;
  position: relative;
}

.menu-photo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  justify-self: end;
}

.menu-photo::before {
  width: 26px;
  height: 32px;
  top: 24%;
  box-shadow: 0 38px 0 18px rgba(38, 42, 62, 0.28);
}

.menu-photo::after {
  width: 34px;
  height: 14px;
  top: 21%;
}

.menu-chevron {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  justify-self: end;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.edit-switch {
  display: flex;
  gap: 20px;
  font-size: 16px;
  font-weight: 600;
}

.edit-switch a,
.edit-switch span {
  position: relative;
  padding: 13px 0 15px;
}

.edit-switch .active {
  color: var(--primary);
}

.edit-switch .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--primary);
}

.progress-line {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 0 0 12px;
}

.progress-line i {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.22);
}

.progress-line i.done {
  background: var(--primary);
}

.edit-hero {
  display: grid;
  grid-template-columns: 1fr 130px;
  min-height: 136px;
  align-items: center;
  overflow: hidden;
}

.edit-hero .hero-name {
  padding-left: 26px;
  font-size: 16px;
  font-weight: 600;
}

.edit-avatar {
  display: block;
  width: 84px;
  height: 84px;
  margin: auto;
  padding: 0;
  position: relative;
}

.camera {
  position: absolute;
  right: -3px;
  bottom: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-tech);
  color: #fff;
  font-size: 15px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.section-note {
  color: var(--weak);
  font-size: 12px;
  font-weight: 400;
}

.uid-text {
  color: var(--muted);
  font-size: 13px;
}

.edit-link {
  color: var(--primary);
  font-size: 13px;
}

.upload-box {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  background: #f8f6f5;
  color: var(--weak);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
}

.upload-box .ri {
  display: block;
  margin-bottom: 2px;
  font-size: 22px;
}

.share-btn {
  position: sticky;
  float: right;
  bottom: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 500;
}

.share-btn .ri {
  margin-left: 6px;
  font-size: 16px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 106px;
  transform: translateX(-50%) translateY(12px);
  min-width: 170px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.88);
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fade-scroll {
  padding-bottom: 96px;
}

.with-actions {
  inset-bottom: 90px;
}

.launch-phone {
  background:
    radial-gradient(circle at 50% 13%, rgba(255, 228, 233, 0.95), transparent 118px),
    linear-gradient(180deg, #fff7f8 0%, #faf7f5 58%, #fff 100%);
}

.launch-wrap {
  position: absolute;
  inset: 46px 0 0;
  padding: 0 28px calc(var(--safe-bottom) + 22px);
  display: grid;
  grid-template-rows: 62px 1fr auto;
}

.launch-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.brand-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  transform: translateY(-18px);
}

.brand-logo {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.brand-name {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-slogan {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.launch-actions {
  display: grid;
  gap: 14px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.primary-btn {
  width: 100%;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.primary-btn.purple {
  background: var(--grad-tech);
  box-shadow: var(--shadow-secondary);
}

.primary-btn.disabled,
.primary-btn:disabled {
  background: #f1f0f4;
  color: var(--weak);
  box-shadow: none;
  pointer-events: none;
}

.secondary-btn {
  width: 100%;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.ghost-btn {
  min-height: 44px;
  color: var(--weak);
  font-weight: 500;
}

.agreement-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.agreement-row a {
  color: var(--primary);
}

.check-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #d8d3d2;
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  flex: 0 0 auto;
}

.agreement-row.active .check-dot,
.check-dot.active {
  border-color: var(--primary);
  background: var(--primary);
}

.sheet-mask,
.dialog-mask {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(26, 26, 46, 0.34);
  z-index: 30;
}

.sheet-mask.show,
.dialog-mask.show,
.show-sheet .sheet-mask,
.show-dialog .dialog-mask {
  display: block;
}

.phone-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  padding: 28px 30px calc(var(--safe-bottom) + 24px);
  box-shadow: var(--shadow-lg);
}

.sheet-head {
  display: grid;
  grid-template-columns: 58px 1fr 32px;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.sheet-mini-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: var(--shadow-xs);
}

.sheet-title {
  margin: 0;
  color: #17182b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.sheet-subtitle {
  margin: 8px 0 0;
  color: var(--weak);
  font-size: 15px;
  font-weight: 600;
}

.sheet-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--weak);
  font-size: 24px;
}

.phone-card {
  min-height: 96px;
  border-radius: 18px;
  background: #faf9fa;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.masked-phone {
  display: block;
  color: #17182b;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
}

.phone-note {
  color: var(--success);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.phone-sheet .primary-btn {
  min-height: 60px;
  font-size: 19px;
  box-shadow: 0 10px 22px rgba(255, 77, 109, 0.24);
}

.phone-sheet .ghost-btn {
  width: auto;
  min-height: 44px;
  justify-content: flex-start;
  padding: 0 8px;
  color: var(--weak);
  font-size: 18px;
  font-weight: 700;
}

.onboarding-phone {
  background: #fff;
}

.onboarding-scroll {
  position: absolute;
  inset: 108px 0 92px;
  overflow-y: auto;
  padding: 0 28px 30px;
  scrollbar-width: none;
}

.realname-scroll {
  inset: 108px 0 148px;
}

.onboarding-scroll::-webkit-scrollbar {
  display: none;
}

.step-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding: 16px 28px 4px;
}

.step-bars i {
  height: 7px;
  border-radius: 999px;
  background: #e5e1e4;
}

.step-bars i.done {
  background: rgba(255, 77, 109, 0.34);
}

.step-bars i.active {
  background: var(--grad-primary);
}

.onboarding-title {
  margin: 28px 0 8px;
  color: #25263d;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.onboarding-subtitle {
  margin: 0;
  color: var(--weak);
  font-size: 16px;
  line-height: 1.5;
}

.choice-stack {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.choice-pill,
.input-pill,
.picker-pill {
  min-height: 58px;
  border: 1px solid #f1edf0;
  border-radius: 999px;
  background: #fff;
  color: var(--weak);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.choice-pill.selected {
  border-color: transparent;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.gender-card {
  min-height: 150px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.gender-card .gender-illus {
  width: 104px;
  height: 116px;
  border-radius: 18px;
}

.gender-card strong {
  display: block;
  font-size: 24px;
}

.gender-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.gender-card.selected {
  border-color: transparent;
  background: #fff1f4;
  box-shadow: var(--shadow-primary);
}

.wheel-picker {
  margin-top: 84px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  color: var(--weak);
  font-size: 20px;
}

.wheel-picker::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 82px;
  height: 54px;
  border-radius: 999px;
  background: #f6f5f7;
  z-index: 0;
}

.wheel-col {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

.wheel-col strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}

.location-box,
.avatar-box,
.realname-card {
  margin-top: 84px;
  display: grid;
  gap: 16px;
}

.picker-pill {
  justify-content: space-between;
  padding: 0 24px;
  color: var(--text);
  background: #f7f6f8;
  border: 0;
}

.location-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.input-pill {
  justify-content: flex-start;
  padding: 0 24px;
  margin-top: 84px;
  background: #f7f6f8;
  border: 0;
}

.input-pill input,
.real-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.avatar-upload {
  height: 196px;
  border-radius: 24px;
  background: #f7f6f8;
  display: grid;
  place-items: center;
  color: var(--weak);
  text-align: center;
}

.avatar-upload .ri {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary);
  font-size: 28px;
  box-shadow: var(--shadow-sm);
}

.avatar-preview {
  display: none;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.avatar-box.uploaded .avatar-upload {
  background: #fff1f4;
}

.avatar-box.uploaded .avatar-preview {
  display: block;
}

.avatar-box.uploaded .upload-placeholder {
  display: none;
}

.helper-card {
  border-radius: 16px;
  background: #fff7f8;
  color: var(--muted);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
}

.realname-card {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.real-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.real-row:last-child {
  border-bottom: 0;
}

.real-label {
  color: var(--muted);
}

.bottom-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  padding: 12px 28px var(--safe-bottom);
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.56), #fff 36%);
  z-index: 10;
}

.bottom-cta.single {
  grid-template-columns: 1fr;
}

.realname-bottom {
  height: 148px;
  grid-template-columns: 54px 1fr;
  grid-template-rows: 54px 34px;
  column-gap: 18px;
  row-gap: 8px;
  padding: 12px 28px var(--safe-bottom);
}

.realname-bottom .circle-back {
  grid-column: 1;
  grid-row: 1;
}

.realname-bottom .primary-btn {
  grid-column: 2;
  grid-row: 1;
}

.realname-bottom .skip-link {
  grid-column: 2;
  grid-row: 2;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--weak);
  font-size: 14px;
  font-weight: 600;
}

.circle-back {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #ddd7d7;
  display: grid;
  place-items: center;
  color: var(--weak);
  font-size: 24px;
  background: #fff;
}

.login-empty {
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
}

.login-empty-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.login-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 32px;
}

.login-empty h2 {
  margin: 0;
  font-size: 22px;
}

.login-empty p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.guest-mine-card {
  margin-top: 28px;
  border-radius: 24px;
  background: #fff;
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
  text-align: center;
}

.guest-floating-login {
  position: absolute;
  left: 50%;
  bottom: 96px;
  width: 210px;
  min-height: 50px;
  transform: translateX(-50%);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-primary);
  z-index: 12;
}

.guest-floating-login:active {
  transform: translateX(-50%) scale(0.96);
}

.guest-avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7f6f8;
  color: var(--weak);
  font-size: 34px;
}

.dialog-card {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 22px;
  background: #fff;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.dialog-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.dialog-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.dialog-actions {
  display: grid;
  gap: 10px;
}
