:root {
  color-scheme: dark;
  --bg: #111014;
  --panel: #1d1c22;
  --panel-2: #252329;
  --text: #f7f2ee;
  --muted: #9d99a6;
  --line: #323039;
  --gold: #ffd092;
  --rose: #e6c1bd;
  --green: #19c56f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0c0c10;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(280px, 380px);
  gap: 32px;
  align-items: start;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(232, 191, 166, 0.13), transparent 28%),
    linear-gradient(140deg, #0d0d12, #191820 62%, #0f0e12);
}

.phone-frame {
  position: relative;
  height: min(920px, calc(100vh - 48px));
  min-height: 760px;
  overflow: hidden;
  border: 1px solid #25232a;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.status-bar,
.top-bar,
.screen,
.bottom-nav {
  padding-inline: 18px;
}

.status-bar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f8f8f8;
  font-weight: 700;
}

.status-icons {
  color: #d9d9de;
  font-size: 13px;
}

.top-bar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin: 24px 0 12px;
  color: #d7d2d8;
  font-size: 18px;
  font-weight: 600;
}

.register-shortcut {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(230, 193, 189, 0.22);
  color: #f3d0ca;
  font-size: 15px;
  white-space: nowrap;
}

.screen {
  position: absolute;
  inset: 124px 0 78px;
  display: none;
  overflow-y: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.screen.is-active {
  display: block;
}

.home-tabs,
.square-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 52px;
  background: rgba(17, 16, 20, 0.96);
}

.home-tab,
.segmented button {
  background: transparent;
  color: #89858f;
  font-size: 22px;
}

.home-tab.is-active,
.segmented .is-active {
  color: white;
  font-size: 30px;
  font-weight: 700;
}

.filter-open,
.publish-btn {
  margin-left: auto;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(230, 193, 189, 0.22);
  color: #f3d0ca;
}

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

.app-shell[data-mode="browse"] .status-bar,
.app-shell[data-mode="browse"] .home-tabs {
  display: none;
}

.app-shell[data-mode="browse"] .top-bar {
  height: 86px;
}

.app-shell[data-mode="browse"] .screen {
  inset: 86px 0 78px;
}

.app-shell[data-mode="browse"] .profile-grid {
  padding-top: 8px;
}

.profile-card {
  position: relative;
  min-height: 258px;
  overflow: hidden;
  border-radius: 8px;
  background: #24222a;
}

.profile-card.featured {
  display: grid;
  place-items: start;
  padding: 26px 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.86)),
    url("https://images.unsplash.com/photo-1528605105345-5344ea20e269?auto=format&fit=crop&w=600&q=80") center/cover;
}

.profile-card.featured strong {
  margin-top: 16px;
  font-size: 34px;
  line-height: 1.25;
}

.profile-card.featured p {
  margin-top: 18px;
  color: #eee5dc;
}

.profile-card.featured button {
  align-self: end;
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  background: #fff0d8;
  color: #2b2726;
  font-weight: 700;
}

.profile-card img {
  width: 100%;
  height: 100%;
  min-height: 258px;
  object-fit: cover;
  display: block;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.badge,
.online,
.time-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  border-radius: 999px;
  background: rgba(35, 33, 38, 0.82);
  color: white;
  font-size: 12px;
}

.online,
.time-badge {
  right: 8px;
  padding: 5px 9px;
}

.online::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
}

.badge {
  left: 8px;
  padding: 6px 10px;
  background: #7b3cff;
}

.profile-info {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 10px;
  bottom: 12px;
}

.profile-info strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
}

.profile-info em,
.post-author span,
.profile-hero em {
  margin-left: 5px;
  color: var(--gold);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.profile-info p {
  margin-top: 6px;
  color: #ddd9de;
  font-size: 14px;
}

.warning-banner,
.vip-card {
  border-radius: 8px;
  background: linear-gradient(100deg, #17110b, #37230f);
  color: #ffe8bd;
}

.warning-banner {
  padding: 24px;
  min-height: 118px;
}

.warning-banner strong {
  display: block;
  font-size: 24px;
}

.warning-banner span {
  display: block;
  margin-top: 12px;
  color: #cdb896;
  font-size: 12px;
}

.post-card {
  padding: 18px 0 22px;
  border-bottom: 1px solid #24222a;
}

.post-author,
.chat-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.more-btn {
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #2a2930;
  color: #d8d3d9;
  font-size: 13px;
}

.post-author img,
.chat-row img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author p,
.chat-row p,
.post-actions,
.menu-card button span {
  color: var(--muted);
}

.post-text {
  margin: 18px 0 14px;
  font-size: 22px;
}

.post-image {
  width: 58%;
  aspect-ratio: 1 / 1.2;
  border-radius: 8px;
  object-fit: cover;
}

.post-image.wide {
  width: 72%;
  aspect-ratio: 1.35 / 1;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.post-actions button {
  margin-left: auto;
  background: transparent;
  color: #8f8a96;
}

.message-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 0;
  border-radius: 32px;
  background: var(--panel);
  text-align: center;
}

.message-summary div + div {
  border-left: 1px solid #2e2c33;
}

.message-summary strong {
  display: block;
  font-size: 28px;
}

.message-summary span {
  color: var(--muted);
  font-size: 14px;
}

.chat-list {
  display: grid;
  gap: 18px;
}

.chat-row {
  position: relative;
  min-height: 58px;
}

.chat-row strong {
  font-size: 20px;
  font-weight: 500;
}

.chat-row em {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #5599ff;
  color: white;
  font-size: 12px;
  font-style: normal;
}

.empty-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #139de8;
  color: white;
  font-size: 24px;
}

.chat-row time {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.unread {
  position: absolute;
  left: 39px;
  top: -2px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ff3028;
  font-size: 12px;
  text-align: center;
  line-height: 20px;
}

.profile-hero {
  display: grid;
  justify-items: center;
  padding: 34px 0 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
}

.profile-hero img {
  width: 112px;
  height: 112px;
  border: 2px solid #d9d3d5;
  border-radius: 50%;
  object-fit: cover;
}

.profile-hero span {
  margin-top: -20px;
  padding: 4px 16px;
  border-radius: 999px;
  background: #ffc37f;
  color: #3f2920;
  font-weight: 800;
}

.profile-hero h2 {
  margin-top: 16px;
  color: white;
  font-size: 30px;
}

.profile-hero button {
  padding: 9px 20px;
  border: 1px solid #57525a;
  border-radius: 999px;
  background: transparent;
  color: #d3cdd2;
}

.vip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  background: linear-gradient(105deg, #ffe0b4, #fff4da);
  color: #5a3215;
}

.vip-card strong {
  font-size: 26px;
}

.vip-card p {
  margin-top: 8px;
  color: #ae6f24;
}

.vip-card button {
  padding: 11px 18px;
  border-radius: 999px;
  background: #3c251d;
  color: white;
}

.menu-card {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
}

.menu-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 20px;
  background: transparent;
  color: #ddd8de;
  font-size: 20px;
  text-align: left;
}

.menu-card button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.bottom-nav {
  position: absolute;
  inset: auto 0 0;
  height: 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-top: 1px solid #232129;
  background: rgba(17, 16, 20, 0.98);
}

.nav-item {
  position: relative;
  display: grid;
  gap: 3px;
  place-items: center;
  background: transparent;
  color: #696472;
  font-size: 13px;
}

.nav-item span {
  color: #7c7686;
  font-size: 24px;
  line-height: 24px;
}

.nav-item.is-active,
.nav-item.is-active span {
  color: white;
}

.nav-item i {
  position: absolute;
  top: 1px;
  right: 25%;
  min-width: 22px;
  height: 22px;
  border: 2px solid white;
  border-radius: 999px;
  background: #ff402f;
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
}

.notes-panel {
  padding: 24px;
  border: 1px solid #2f2d35;
  border-radius: 16px;
  background: rgba(29, 28, 34, 0.74);
}

.notes-panel h2 {
  margin-top: 0;
  color: white;
  font-size: 24px;
}

.note-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #33313a;
  border-radius: 8px;
  background: #17161b;
}

.note-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff0db;
}

.note-card p {
  color: #bbb5c1;
  line-height: 1.65;
}

.note-card code {
  color: #ffd092;
  font-size: 16px;
}

.female-note,
.app-shell[data-client="male"] .female-note,
.app-shell[data-client="female"] .male-note {
  display: none;
}

.app-shell[data-client="female"] .female-note {
  display: block;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 24px;
  width: min(430px, calc(100vw - 24px));
  max-height: min(78vh, 760px);
  overflow: auto;
  transform: translateX(-50%);
  padding: 24px;
  border: 1px solid #24222a;
  border-radius: 28px 28px 16px 16px;
  background: #131217;
  box-shadow: 0 -18px 70px rgba(0, 0, 0, 0.6);
}

.bottom-sheet.register-sheet {
  top: 24px;
  bottom: 24px;
  max-height: none;
}

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

.sheet-head h2 {
  margin: 0;
  color: white;
  font-size: 26px;
}

.sheet-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel);
}

.range-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 20px 0 34px;
}

.fake-range {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, white 0 26%, #34323a 26% 100%);
}

.sheet-row,
.sdk-row,
.step-row {
  padding: 16px 0;
  border-bottom: 1px solid #24222a;
}

.sheet-row {
  display: flex;
  justify-content: space-between;
  color: #d8d3d9;
}

.sheet-row.as-button {
  width: 100%;
  background: transparent;
  text-align: left;
}

.mini-switch {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 208, 146, 0.2);
  color: var(--gold);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.register-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.tag-label {
  color: #a7a2ad;
  font-size: 14px;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #312f38;
  border-radius: 8px;
  background: #1d1c22;
  color: #f4eff4;
  padding: 0 14px;
  font-size: 17px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--gold);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #34313a;
  border-radius: 999px;
  background: #1d1c22;
  color: #d8d3d9;
}

.tag-grid button.is-active {
  border-color: var(--gold);
  background: rgba(255, 208, 146, 0.15);
  color: #ffe1b7;
}

.register-tip {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.gender-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 4px 0 18px;
}

.gender-choice button {
  min-height: 82px;
  border: 1px solid #34313a;
  border-radius: 8px;
  background: #1c1b20;
  text-align: left;
  padding: 14px;
}

.gender-choice button.is-active {
  border-color: var(--gold);
  background: #2a2526;
}

.gender-choice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.gender-choice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.face-mask {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
}

.face-modal {
  position: fixed;
  z-index: 11;
  left: 50%;
  top: 50%;
  width: min(360px, calc(100vw - 54px));
  transform: translate(-50%, -50%);
  background: #2f2f2f;
  text-align: center;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.face-poster {
  min-height: 150px;
  display: grid;
  place-content: center;
  gap: 10px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.46)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=700&q=80") center/cover;
  color: #d9ad59;
}

.face-poster span {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
}

.face-poster small {
  color: #c7a16b;
  letter-spacing: 3px;
}

.face-body {
  padding: 28px 18px;
  background: white;
  color: #3a393d;
  font-size: 23px;
  line-height: 1.9;
}

.face-action {
  width: 100%;
  height: 72px;
  background: #303030;
  color: #d9ad59;
  font-size: 22px;
  font-weight: 800;
}

.face-close {
  position: absolute;
  left: 50%;
  bottom: -88px;
  width: 58px;
  height: 58px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: #050505;
  color: white;
  font-size: 40px;
  line-height: 52px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.sheet-actions button {
  height: 56px;
  border-radius: 8px;
  background: #2a2e35;
  font-size: 20px;
}

.sheet-actions .save {
  background: #2a2029;
  color: #ffd0d6;
}

.price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.price-card {
  min-height: 122px;
  padding: 16px 10px;
  border: 1px solid #3c3942;
  border-radius: 8px;
  background: #2a2930;
  text-align: center;
}

.price-card.is-active {
  border-color: var(--gold);
}

.price-card strong {
  display: block;
  margin-bottom: 12px;
}

.price-card span {
  color: var(--gold);
  font-size: 26px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel);
}

.benefit-grid div {
  min-height: 64px;
  color: #d7d1d8;
  text-align: center;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-hero img {
  width: 92px;
  height: 116px;
  border-radius: 8px;
  object-fit: cover;
}

.detail-hero strong {
  display: block;
  margin-bottom: 8px;
  font-size: 25px;
}

.detail-hero p,
.detail-intro {
  color: var(--muted);
  line-height: 1.7;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.album-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.sdk-row strong,
.step-row strong {
  display: block;
  margin-bottom: 6px;
}

.sdk-row p,
.step-row p {
  color: var(--muted);
  line-height: 1.55;
}

.login-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  align-content: space-between;
  padding: 52px 34px 36px;
  background: #111014;
}

.login-back {
  position: absolute;
  left: 24px;
  top: 50px;
  background: transparent;
  font-size: 48px;
  color: white;
}

.login-brand {
  display: grid;
  place-items: center;
  gap: 14px;
  padding-top: 86px;
}

.login-brand span {
  font-size: 74px;
}

.login-brand strong {
  font-size: 38px;
}

.login-brand p,
.login-card p,
.agreement {
  color: var(--muted);
}

.login-card {
  display: grid;
  gap: 16px;
}

.login-card h2 {
  margin: 0;
  color: white;
  font-size: 34px;
}

.login-card input {
  height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  color: white;
  text-align: center;
  font-size: 19px;
}

.login-card button {
  height: 58px;
  border-radius: 8px;
  background: #33323a;
  color: white;
  font-size: 20px;
}

.login-card .one-click {
  background: var(--gold);
  color: #2e2117;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-overlay,
.pay-flow {
  position: absolute;
  inset: 0;
  z-index: 9;
}

.onboarding-overlay {
  display: grid;
  grid-template-rows: 92px 280px 1fr 104px;
  background: #fff;
  color: #222;
}

.onboarding-head {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  padding: 30px 18px 0;
  color: #222;
}

.onboarding-head button,
.pay-head button {
  background: transparent;
  font-size: 38px;
}

.onboarding-head h2 {
  margin: 0;
  color: #222;
  text-align: center;
  font-size: 25px;
  font-weight: 500;
}

.onboarding-hero {
  min-height: 280px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.54)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=900&q=80") center/cover;
}

.gender-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 54px;
  padding: 68px 44px 0;
  text-align: center;
}

.gender-picker button {
  display: grid;
  justify-items: center;
  gap: 24px;
  background: transparent;
  color: #222;
  font-size: 23px;
}

.gender-picker span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid #ead9aa;
  border-radius: 50%;
  color: #d4af62;
  font-size: 52px;
}

.picker-wheel {
  display: grid;
  align-content: start;
  padding-top: 92px;
  color: #bbb;
  font-size: 26px;
  text-align: center;
}

.picker-wheel.age {
  grid-template-columns: 1fr 1fr 1fr;
}

.picker-wheel .selected {
  padding: 10px 0;
  border-top: 1px solid #b8b8b8;
  border-bottom: 1px solid #b8b8b8;
  color: #111;
  font-size: 34px;
}

.picker-wheel .muted {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  color: #aaa;
}

.wheel-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  min-height: 260px;
  padding-top: 82px;
  color: #222;
  text-align: center;
}

.wheel-grid::before,
.wheel-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #d8d8d8;
}

.wheel-grid::before {
  top: 126px;
}

.wheel-grid::after {
  top: 176px;
}

.wheel-column {
  height: 176px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 58px 0;
}

.wheel-column::-webkit-scrollbar {
  display: none;
}

.wheel-column button {
  display: block;
  width: 100%;
  height: 48px;
  scroll-snap-align: center;
  background: transparent;
  color: #aaa;
  font-size: 19px;
  white-space: nowrap;
}

.wheel-column button.is-active {
  color: #111;
  font-size: 24px;
}

.onboarding-next {
  align-self: end;
  margin: 0 42px 28px;
  height: 58px;
  border-radius: 7px;
  background: #2f2f2f;
  color: #d6b46e;
  font-size: 20px;
}

.pay-flow {
  display: grid;
  grid-template-rows: 82px 1fr 128px;
  overflow: hidden;
  color: #d3b46d;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.72)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=900&q=80") center/cover;
}

.pay-head {
  display: grid;
  grid-template-columns: 64px 1fr 92px;
  align-items: center;
  padding: 32px 16px 0;
}

.pay-head span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.pay-head button,
.pay-head a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.pay-copy {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 0 34px 110px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.pay-copy small {
  font-size: 20px;
  text-decoration: line-through;
}

.pay-copy strong {
  font-size: 40px;
}

.pay-copy b {
  display: block;
  font-size: 70px;
  line-height: 1;
}

.pay-copy p {
  color: #d3b46d;
  font-size: 21px;
  line-height: 1.5;
}

.pay-actions {
  display: grid;
  gap: 16px;
  padding: 0 42px 28px;
  text-align: center;
}

.why-pay {
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  font-size: 20px;
}

.pay-now {
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fde2bd, #e8be80);
  color: #3b2719;
  font-size: 25px;
}

.pay-tip,
.pay-offer {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 11;
  transform: translate(-50%, -50%);
}

.pay-tip {
  width: min(78%, 330px);
  padding: 28px 26px;
  border-radius: 10px;
  background: #fff;
  color: #777;
  font-size: 20px;
  line-height: 1.45;
}

.pay-offer {
  width: min(82%, 350px);
  padding: 28px 24px 24px;
  border-radius: 12px;
  background: #fff;
  color: #222;
}

.pay-offer h2 {
  margin: 0 0 8px;
  color: #222;
  font-size: 30px;
}

.pay-offer p {
  color: #777;
  font-size: 17px;
}

.pay-offer img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  margin: 18px 0;
  border-radius: 10px;
  filter: brightness(0.72);
}

.pay-offer footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.pay-offer button {
  height: 56px;
  border-radius: 12px;
  background: #191919;
  color: #f1c981;
  font-size: 20px;
}

.pay-offer .browse {
  background: transparent;
  color: #222;
}

.pay-close {
  position: absolute;
  left: 50%;
  bottom: 88px;
  z-index: 11;
  width: 54px;
  height: 54px;
  transform: translateX(-50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 34px;
}

.agreement {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.chat-panel {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  grid-template-rows: 88px 1fr 76px;
  background: #111014;
}

.chat-panel header,
.chat-compose {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #24222a;
}

.chat-panel header button {
  background: transparent;
  font-size: 42px;
}

.chat-panel header strong {
  text-align: center;
  font-size: 20px;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
}

.message-bubble {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.message-bubble span {
  max-width: 76%;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--panel);
  line-height: 1.5;
}

.message-bubble.mine {
  justify-items: end;
}

.message-bubble.mine span {
  background: #3b2c35;
}

.message-bubble time {
  color: var(--muted);
  font-size: 12px;
}

.chat-compose {
  grid-template-columns: 1fr 72px;
  gap: 10px;
  border-top: 1px solid #24222a;
  border-bottom: 0;
}

.chat-compose input {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  color: white;
  padding: 0 16px;
}

.chat-compose button {
  height: 44px;
  border-radius: 999px;
  background: var(--gold);
  color: #2e2117;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: white;
}

@media (max-width: 1024px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
  }

  .app-shell {
    display: block;
    padding: 0;
  }

  .phone-frame {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .status-bar {
    height: 30px;
    padding-inline: 16px;
    font-size: 12px;
  }

  .top-bar {
    height: 66px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 17px;
  }

  .screen {
    inset: 96px 0 70px;
  }

  .app-shell[data-mode="browse"] .top-bar {
    height: 72px;
  }

  .app-shell[data-mode="browse"] .screen {
    inset: 72px 0 70px;
  }

  .home-tabs {
    gap: 22px;
    min-height: 48px;
  }

  .home-tab {
    font-size: 18px;
  }

  .profile-grid {
    gap: 10px;
  }

  .profile-card {
    min-height: 198px;
  }

  .profile-info strong {
    font-size: 18px;
  }

  .profile-info p {
    font-size: 14px;
  }

  .login-overlay {
    padding: 38px 28px 28px;
  }

  .login-brand {
    padding-top: 42px;
    gap: 10px;
  }

  .login-brand span {
    font-size: 46px;
  }

  .login-brand strong {
    font-size: 26px;
  }

  .login-card {
    gap: 12px;
  }

  .login-card h2 {
    font-size: 24px;
  }

  .login-card input,
  .login-card button {
    height: 50px;
    font-size: 17px;
  }

  .onboarding-overlay {
    grid-template-rows: 78px 208px minmax(0, 1fr) 82px;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }

  .onboarding-head {
    padding: 22px 14px 0;
  }

  .onboarding-head h2 {
    font-size: 24px;
  }

  .onboarding-head button,
  .pay-head button {
    font-size: 30px;
  }

  .onboarding-hero {
    min-height: 208px;
  }

  .gender-picker {
    gap: 32px;
    padding: 44px 42px 0;
  }

  .gender-picker span {
    width: 76px;
    height: 76px;
    font-size: 40px;
  }

  .gender-picker button {
    gap: 16px;
    font-size: 20px;
  }

  .wheel-grid {
    min-height: 0;
    height: 100%;
    padding-top: 40px;
    overflow: hidden;
  }

  .wheel-grid::before {
    top: 82px;
  }

  .wheel-grid::after {
    top: 130px;
  }

  .wheel-column {
    height: 160px;
    padding: 54px 0;
  }

  .wheel-column button {
    height: 46px;
    font-size: 17px;
  }

  .wheel-column button.is-active {
    font-size: 22px;
  }

  .picker-wheel {
    padding-top: 32px;
    font-size: 20px;
  }

  .picker-wheel .selected {
    font-size: 26px;
  }

  .onboarding-next {
    height: 50px;
    margin: 0 42px 20px;
    font-size: 18px;
  }

  .pay-flow {
    grid-template-rows: 76px 1fr 118px;
    width: 100vw;
    height: 100dvh;
  }

  .pay-copy {
    padding: 0 30px 92px;
  }

  .pay-copy strong {
    font-size: 34px;
  }

  .pay-copy b {
    font-size: 62px;
  }

  .pay-copy p {
    font-size: 19px;
  }

  .notes-panel {
    display: none;
  }
}

@media (max-width: 430px) {
  .phone-frame {
    font-size: 14px;
  }

  .profile-card {
    min-height: 184px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onboarding-overlay {
    grid-template-rows: 64px 168px minmax(0, 1fr) 68px;
  }

  .onboarding-head {
    padding-top: 18px;
  }

  .onboarding-head h2 {
    font-size: 20px;
  }

  .onboarding-hero {
    min-height: 168px;
  }

  .wheel-grid {
    padding-top: 24px;
  }

  .wheel-grid::before {
    top: 62px;
  }

  .wheel-grid::after {
    top: 106px;
  }

  .wheel-column {
    height: 142px;
    padding: 48px 0;
  }

  .wheel-column button {
    height: 40px;
    font-size: 14px;
  }

  .wheel-column button.is-active {
    font-size: 18px;
  }

  .onboarding-next {
    height: 46px;
    margin: 0 42px 14px;
    font-size: 16px;
  }

  .pay-copy b {
    font-size: 54px;
  }
}
