:root {
  color-scheme: dark;
  --app-max: 650px;
  --page-pad: clamp(10px, 3.6vw, 14px);
  --topbar-h: clamp(60px, 13vw, 76px);
  --bottom-nav-h: 76px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bg: #10070d;
  --paper: #1b1018;
  --paper-2: #24121f;
  --ink: #fff6fb;
  --muted: #b9a7b3;
  --line: rgba(255, 255, 255, 0.1);
  --brand: #e71772;
  --brand-2: #8f1bd1;
  --pink: #ff2b8e;
  --orange: #ffb14a;
  --blue: #36d8c4;
  --gold: #f4c86a;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #070407;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at top, #3b1027 0, #13070e 45%, #070407 100%);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button,
input,
select,
textarea {
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
input,
select,
textarea {
  font-size: 16px;
}
button { border: 0; cursor: pointer; touch-action: manipulation; }
img,
video { max-width: 100%; }
button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.mobile-page {
  width: min(100%, var(--app-max));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--topbar-h) + var(--safe-top));
  padding: calc(12px + var(--safe-top)) clamp(16px, 4.3vw, 28px) 12px;
  background: rgba(255, 255, 255, 0.96);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.topbar-action {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid rgba(244, 200, 106, 0.28);
  border-radius: 50%;
  background: rgba(244, 200, 106, 0.1);
  color: var(--gold);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.topbar-action:hover,
.topbar-action.is-active {
  border-color: rgba(255, 43, 142, 0.55);
  background: rgba(255, 43, 142, 0.16);
}

.topbar-action:active {
  transform: scale(0.95);
}

.topbar-action:focus-visible {
  outline: 3px solid rgba(244, 200, 106, 0.42);
  outline-offset: 2px;
}

.topbar-action .ui-icon {
  width: 23px;
  height: 23px;
}

.availability-dot {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  border: 2px solid #10070d;
  border-radius: 50%;
  background: #2bd26d;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brand);
  min-width: 0;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(28px, 7.2vw, 32px);
  height: clamp(28px, 7.2vw, 32px);
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(135deg, #ff256e, var(--brand));
  transform: rotate(-26deg);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.45);
}

.brand-mark:has(img) {
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pill {
  min-height: 32px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(112, 48, 160, 0.1);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.screen {
  padding: 0 var(--page-pad) calc(var(--bottom-nav-h) + var(--safe-bottom) + 18px);
}

.dz-banner {
  width: calc(100% + (var(--page-pad) * 2));
  aspect-ratio: 128 / 58;
  height: auto;
  min-height: 0;
  margin: 0 calc(var(--page-pad) * -1) 18px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #120711;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.dz-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin: 0 0 22px;
  padding: 12px;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow);
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notice-copy {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.age-gate {
  z-index: 90;
  backdrop-filter: blur(12px);
}

.age-gate .login-logo {
  margin: 0 auto 18px;
}

.age-declined {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #10070d;
  color: #fff;
  text-align: center;
}

.notice strong {
  width: 34px;
  font-size: 28px;
  color: var(--brand);
}

.notice span {
  color: var(--brand);
  font-size: 18px;
}

.plain-title,
.section-title h2 {
  margin: 12px 0 14px;
  font-size: 26px;
  font-weight: 500;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card {
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(52, 33, 62, 0.08);
}

.profile-feed,
.notice-feed {
  display: grid;
  gap: 14px;
}

.dz-profile-row {
  display: grid;
  grid-template-columns: clamp(132px, 38vw, 180px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 3.2vw, 16px);
  padding: clamp(11px, 3vw, 14px);
}

.profile-photo-frame {
  width: 100%;
  height: 100%;
  min-height: clamp(190px, 48vw, 248px);
  align-self: stretch;
  border-radius: 6px;
  overflow: hidden;
  background: #120711;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center top;
}

.profile-photo-frame.crop-letterbox .profile-photo {
  transform: scale(1.42);
  transform-origin: center center;
}

.profile-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: clamp(8px, 2.2vw, 11px);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.certs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #f0dfd2;
  color: #a1846c;
  font-size: clamp(12px, 3.25vw, 16px);
  font-weight: 800;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service {
  min-width: 76px;
  min-height: clamp(30px, 8.8vw, 38px);
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  padding: 5px 9px;
  color: #fff;
  font-size: clamp(12px, 4vw, 18px);
}

.service.s0 { background: var(--pink); }
.service.s1 { background: var(--orange); }
.service.s2 { background: var(--blue); }
.service.s3 { background: #d72883; }

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: #6a5d6b;
}

.price-line b { color: #d51c70; }

.profile-code {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 8px;
  color: var(--ink);
  font-size: clamp(18px, 4.8vw, 26px);
  line-height: 1;
}

.profile-meta,
.muted,
.video-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.date-btn,
.primary,
.ghost {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.date-btn,
.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
}

.wide { width: 100%; }

.link-btn {
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(112, 48, 160, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.feedback {
  padding: 14px;
}

.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
}

.feedback time {
  color: var(--muted);
  font-size: 13px;
}

.like-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(244, 200, 106, 0.14);
  border: 1px solid rgba(244, 200, 106, 0.22);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.like-badge .ui-icon {
  width: 14px;
  height: 14px;
}

.feedback p {
  margin: 10px 0 0;
  line-height: 1.5;
}

.dating-screen {
  padding-top: 4px;
}

.vote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: linear-gradient(135deg, var(--brand), #b468df);
  color: #fff;
}

.vote-head span { display: block; opacity: 0.85; }
.vote-head b { display: block; margin-top: 6px; font-size: 24px; }
.vote-head strong { font-size: 28px; }

.balance-row { margin: 14px 0; }

.vote-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.vote-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.vote-options button {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #f5edf8;
  color: var(--brand);
  font-weight: 900;
  overflow: hidden;
  position: relative;
}

.vote-options small,
.record-item small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
}

.vote-options button.active {
  background: var(--brand);
  color: #fff;
}

.gift-visual {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
}

.gift-visual.large {
  width: 88px;
  height: 88px;
}

.gift-rose {
  animation: roseSway 2.4s ease-in-out infinite;
  transform-origin: 50% 95%;
}

.rose-head {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 60% 45% 55% 45%;
  background: radial-gradient(circle at 35% 35%, #ff91bd, #ff1d78 55%, #9f0d4d);
  box-shadow: 0 0 16px rgba(255, 43, 142, 0.54);
  transform: rotate(-14deg);
}

.gift-visual.large .rose-head {
  left: 24px;
  top: 8px;
  width: 42px;
  height: 42px;
}

.rose-head span {
  position: absolute;
  left: 7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.gift-visual.large .rose-head span {
  left: 12px;
  top: 11px;
  width: 20px;
  height: 20px;
  border-width: 4px;
}

.rose-stem {
  position: absolute;
  left: 22px;
  top: 25px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(#2bd26d, #0b8b45);
  transform: rotate(12deg);
}

.gift-visual.large .rose-stem {
  left: 44px;
  top: 46px;
  width: 6px;
  height: 38px;
}

.rose-leaf {
  position: absolute;
  left: 25px;
  top: 31px;
  width: 16px;
  height: 9px;
  border-radius: 100% 0 100% 0;
  background: #20c46b;
  transform: rotate(-18deg);
}

.gift-visual.large .rose-leaf {
  left: 50px;
  top: 60px;
  width: 28px;
  height: 15px;
}

.petal {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 70% 0 70% 0;
  background: #ff5ca1;
  opacity: 0.9;
  animation: petalFloat 2.8s ease-in-out infinite;
}

.gift-visual.large .petal {
  width: 11px;
  height: 15px;
}

.petal.p1 { left: 4px; top: 5px; animation-delay: 0s; }
.petal.p2 { right: 5px; top: 14px; animation-delay: 0.45s; }
.petal.p3 { left: 17px; top: 0; animation-delay: 0.9s; }

.gift-ship {
  animation: shipBob 2.8s ease-in-out infinite;
}

.ship-sail {
  position: absolute;
  left: 17px;
  top: 5px;
  width: 0;
  height: 0;
  border-left: 18px solid var(--gold);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  filter: drop-shadow(0 0 8px rgba(244, 200, 106, 0.35));
}

.gift-visual.large .ship-sail {
  left: 35px;
  top: 10px;
  border-left-width: 34px;
  border-top-width: 26px;
  border-bottom-width: 26px;
}

.ship-body {
  position: absolute;
  left: 7px;
  bottom: 9px;
  width: 32px;
  height: 13px;
  border-radius: 4px 4px 16px 16px;
  background: linear-gradient(135deg, #f37b30, #9b3f1a);
}

.gift-visual.large .ship-body {
  left: 13px;
  bottom: 18px;
  width: 64px;
  height: 24px;
}

.ship-wave {
  position: absolute;
  bottom: 3px;
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: rgba(54, 216, 196, 0.8);
  animation: waveSlide 1.8s linear infinite;
}

.ship-wave.w1 { left: 2px; }
.ship-wave.w2 { right: 0; animation-delay: 0.6s; }

.gift-visual.large .ship-wave {
  bottom: 7px;
  width: 44px;
  height: 8px;
}

.gift-heart {
  animation: heartBeat 1.35s ease-in-out infinite;
}

.gift-heart span,
.gift-heart i,
.gift-heart b {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, #ff5ca1, #df125f);
}

.gift-heart span {
  left: 10px;
  top: 13px;
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
  border-radius: 4px;
}

.gift-heart i,
.gift-heart b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.gift-heart i { left: 4px; top: 8px; }
.gift-heart b { left: 17px; top: 8px; }

.gift-visual.large.gift-heart span {
  left: 22px;
  top: 29px;
  width: 46px;
  height: 46px;
}

.gift-visual.large.gift-heart i,
.gift-visual.large.gift-heart b {
  width: 46px;
  height: 46px;
}

.gift-visual.large.gift-heart i { left: 10px; top: 18px; }
.gift-visual.large.gift-heart b { left: 34px; top: 18px; }

.gift-rocket {
  animation: rocketLift 1.8s ease-in-out infinite;
}

.rocket-body {
  position: absolute;
  left: 13px;
  top: 3px;
  width: 19px;
  height: 31px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(135deg, #fff, #d8d5ff 52%, #9d62ff);
  transform: rotate(24deg);
}

.gift-visual.large .rocket-body {
  left: 30px;
  top: 7px;
  width: 34px;
  height: 62px;
}

.rocket-window {
  position: absolute;
  left: 22px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36d8c4;
  transform: rotate(24deg);
}

.gift-visual.large .rocket-window {
  left: 47px;
  top: 26px;
  width: 12px;
  height: 12px;
}

.rocket-flame {
  position: absolute;
  left: 10px;
  bottom: 4px;
  width: 12px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(#ffe05e, #ff642b, transparent);
  transform: rotate(25deg);
  animation: flamePulse 0.35s ease-in-out infinite alternate;
}

.gift-visual.large .rocket-flame {
  left: 20px;
  bottom: 9px;
  width: 22px;
  height: 34px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  outline: none;
}

.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(112, 48, 160, 0.65);
  box-shadow: 0 0 0 3px rgba(112, 48, 160, 0.1);
}

.video-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.video-tabs span,
.video-tabs button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eee7f4;
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.video-tabs .active,
.video-tabs button.active {
  color: #fff;
  background: var(--brand);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.video-card {
  position: relative;
  overflow: hidden;
}

.video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-body {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.video-body b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mine-ref { padding: 0 10px; }

.mine-hero {
  width: calc(100% + 48px);
  min-height: 300px;
  margin: 0 -24px -68px;
  padding: 22px 32px 92px;
  background: var(--brand);
  color: #fff;
}

.settings-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 30px;
}

.mine-user {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 28px 0 0 26px;
}

.mine-identity {
  min-width: 0;
}

.mine-user img {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(40, 3, 24, 0.26);
  object-fit: cover;
}

.mine-user .mine-name {
  margin: 0 0 12px;
  overflow: hidden;
  color: #fff;
  font-size: 32px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 169, 0.72);
  background: linear-gradient(135deg, #fff0a8, #f4b844);
  color: #3b1d02;
  box-shadow: 0 8px 20px rgba(87, 43, 0, 0.22);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.vip-chip .ui-icon,
.credit-chip .ui-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.vip-chip.is-member {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  box-shadow: none;
}

.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(147, 255, 230, 0.42);
  border-radius: 999px;
  background: rgba(5, 51, 48, 0.42);
  color: #e6fff9;
  font-size: 13px;
  line-height: 1;
}

.credit-chip b {
  color: #8fffe5;
  font-size: 17px;
  font-weight: 900;
}

.credit-progress {
  width: min(250px, 100%);
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.credit-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #57e6c5, #f4d36f);
  transition: width 220ms ease;
}

.finance-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 118px;
  padding: 26px;
  text-align: center;
}

.finance-card span {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.finance-card b {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 26px;
  font-weight: 500;
}

.vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  min-height: 108px;
  border-radius: 60px;
  padding: 20px 54px;
  background: linear-gradient(135deg, var(--brand), #b9a6ff);
  color: #fff;
}

.vip-banner b {
  color: #ff8845;
  font-size: 62px;
  font-style: italic;
}

.cell-list {
  overflow: hidden;
}

.mine-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 70px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

.mine-cell:last-child { border-bottom: 0; }

.mine-cell span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mine-cell img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.sign-out {
  margin: 16px 0;
}

.subpage-title {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 62px;
  margin: 0 -14px 14px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
}

.subpage-title h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.back-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.account-page {
  display: grid;
  gap: 14px;
}

.account-summary {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.account-summary.dual {
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.account-summary span {
  color: var(--muted);
  font-size: 14px;
}

.account-summary b {
  color: var(--brand);
  font-size: 30px;
  font-weight: 700;
}

.account-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.payment-channel-options,
.withdrawal-address-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-channel-option,
.withdrawal-address-options button {
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  text-align: left;
}

.payment-channel-option b,
.payment-channel-option span,
.withdrawal-address-options b,
.withdrawal-address-options span,
.withdrawal-address-options code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-channel-option b,
.withdrawal-address-options b {
  font-size: 14px;
}

.payment-channel-option span,
.withdrawal-address-options span,
.withdrawal-address-options code {
  margin-top: 4px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
}

.payment-channel-option.active,
.withdrawal-address-options button.active {
  border-color: rgba(244, 200, 106, 0.55);
  background: rgba(231, 23, 114, 0.18);
  box-shadow: inset 0 0 0 1px rgba(244, 200, 106, 0.16);
}

.payment-channel-detail {
  display: grid;
  gap: 10px;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 14px;
}

.payment-qr {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.payment-qr img {
  width: min(190px, 58vw);
  aspect-ratio: 1;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  object-fit: contain;
}

.payment-qr figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-detail-fields {
  display: grid;
  gap: 8px;
}

.payment-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.payment-copy-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.payment-copy-row code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-copy-row button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 38px;
  border: 1px solid rgba(244, 200, 106, 0.34);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(244, 200, 106, 0.1);
  color: var(--gold);
  font-weight: 800;
}

.payment-channel-detail > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
}

.payment-channel-detail > div > span,
.payment-channel-detail dt,
.asset-estimate span,
.selected-withdrawal-address span,
.address-book-heading span {
  color: var(--muted);
  font-size: 12px;
}

.payment-channel-detail code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.payment-channel-detail > div > button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 36px;
  border: 1px solid rgba(244, 200, 106, 0.34);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(244, 200, 106, 0.1);
  color: var(--gold);
  font-weight: 800;
}

.payment-channel-detail dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.payment-channel-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.payment-channel-detail dt,
.payment-channel-detail dd {
  margin: 0;
}

.payment-channel-detail dd {
  color: var(--ink);
  text-align: right;
}

.payment-channel-detail dd small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.payment-channel-detail p,
.address-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.asset-estimate {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 0;
}

.asset-estimate b {
  color: var(--gold);
  text-align: right;
}

.finance-choice-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.finance-choice-field > span,
.finance-choice-field > label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-channel-option,
.withdrawal-route-option,
.withdrawal-address-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 66px;
  padding: 10px;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  text-align: left;
}

.payment-channel-option {
  padding: 8px;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 7px;
}

.payment-channel-option .payment-brand-logo {
  width: 36px;
  height: 36px;
}

.payment-channel-option .payment-option-check {
  width: 18px;
  height: 18px;
}

.payment-brand-logo,
.payment-channel-option .payment-brand-logo,
.withdrawal-route-option .payment-brand-logo,
.withdrawal-address-option .payment-brand-logo {
  display: grid;
  width: 40px;
  height: 40px;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(20, 24, 34, 0.08);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 24, 34, 0.1);
  white-space: normal;
}

.payment-brand-logo.small {
  width: 32px;
  height: 32px;
}

.payment-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-option-copy,
.payment-channel-option .payment-option-copy,
.withdrawal-address-option .payment-option-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  overflow: visible;
  white-space: normal;
}

.payment-option-copy b,
.payment-option-copy code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-option-copy b {
  color: inherit;
  font-size: 14px;
}

.payment-channel-option .payment-option-copy b {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 13px;
}

.payment-option-copy small {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  overflow: visible;
  white-space: normal;
}

.payment-option-copy code {
  color: var(--muted);
  font: 11px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.payment-network-chip,
.payment-channel-option .payment-network-chip,
.withdrawal-address-option .payment-network-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 20px;
  padding: 2px 7px;
  align-items: center;
  border-radius: 999px;
  background: rgba(109, 119, 139, 0.14);
  color: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  overflow: visible;
  white-space: nowrap;
}

.payment-network-chip.trc20 {
  background: rgba(235, 38, 45, 0.12);
  color: #d91f2a;
}

.payment-network-chip.erc20 {
  background: rgba(98, 126, 234, 0.13);
  color: #536fd7;
}

.payment-network-chip.bitcoin {
  background: rgba(247, 147, 26, 0.14);
  color: #b76200;
}

.payment-option-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(132, 139, 153, 0.38);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

.payment-channel-option.active .payment-option-check,
.withdrawal-route-option.active .payment-option-check,
.withdrawal-address-option.active .payment-option-check {
  border-color: var(--gold);
  background: var(--gold);
  color: #201522;
}

.payment-channel-option:focus-visible,
.withdrawal-route-option:focus-visible,
.withdrawal-address-option:focus-visible {
  outline: 3px solid rgba(244, 200, 106, 0.32);
  outline-offset: 2px;
}

.withdrawal-route-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.withdrawal-address-options {
  grid-template-columns: 1fr;
}

.saved-wallet-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.saved-wallet-list h3 {
  margin: 0 0 2px;
  font-size: 14px;
}

.saved-wallet-card {
  display: grid;
  min-width: 0;
  padding: 10px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(122, 99, 113, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.saved-wallet-card > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.saved-wallet-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.withdrawal-address-option .payment-option-copy code,
.saved-wallet-card code {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  color: var(--muted);
  font: 11px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.payment-detail-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.payment-detail-heading > span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.payment-detail-heading b {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-detail-heading small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.payment-network-warning,
.finance-danger-note {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(218, 51, 77, 0.22);
  border-radius: 8px;
  background: rgba(218, 51, 77, 0.09);
  color: #d43b55;
  font-size: 12px;
  line-height: 1.45;
}

.v2-amount-grid button.active,
.v3-amount-grid button.active {
  border-color: currentColor;
  background: rgba(230, 41, 120, 0.12);
  box-shadow: inset 0 0 0 1px currentColor;
}

.v2-amount-grid button:disabled,
.v3-amount-grid button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

html[data-frontend-version="v2"] .payment-channel-option,
html[data-frontend-version="v2"] .withdrawal-route-option,
html[data-frontend-version="v2"] .withdrawal-address-option,
html[data-frontend-version="v2"] .saved-wallet-card,
html[data-frontend-version="v3"] .payment-channel-option,
html[data-frontend-version="v3"] .withdrawal-route-option,
html[data-frontend-version="v3"] .withdrawal-address-option,
html[data-frontend-version="v3"] .saved-wallet-card {
  border-color: #e7dfe4;
  background: #fff;
  color: #2e2830;
  box-shadow: 0 3px 10px rgba(65, 44, 56, 0.05);
}

html[data-frontend-version="v2"] .payment-channel-option.active,
html[data-frontend-version="v2"] .withdrawal-route-option.active,
html[data-frontend-version="v2"] .withdrawal-address-option.active,
html[data-frontend-version="v3"] .payment-channel-option.active,
html[data-frontend-version="v3"] .withdrawal-route-option.active,
html[data-frontend-version="v3"] .withdrawal-address-option.active {
  border-color: #e62978;
  background: #fff4f8;
  box-shadow: 0 0 0 1px rgba(230, 41, 120, 0.12);
}

html[data-frontend-version="v2"] .payment-option-check,
html[data-frontend-version="v3"] .payment-option-check {
  border-color: #c9c1c6;
}

html[data-frontend-version="v2"] .payment-channel-option.active .payment-option-check,
html[data-frontend-version="v2"] .withdrawal-route-option.active .payment-option-check,
html[data-frontend-version="v2"] .withdrawal-address-option.active .payment-option-check,
html[data-frontend-version="v3"] .payment-channel-option.active .payment-option-check,
html[data-frontend-version="v3"] .withdrawal-route-option.active .payment-option-check,
html[data-frontend-version="v3"] .withdrawal-address-option.active .payment-option-check {
  border-color: #e62978;
  background: #e62978;
  color: #fff;
}

html[data-frontend-version="v2"] .payment-channel-detail,
html[data-frontend-version="v3"] .payment-channel-detail {
  border: 1px solid #eee4ea;
  border-radius: 12px;
  padding: 13px;
  background: #fffafb;
}

html[data-frontend-version="v2"] .payment-copy-row,
html[data-frontend-version="v3"] .payment-copy-row {
  border-color: #eadfe5;
  background: #fff;
}

html[data-frontend-version="v2"] .payment-copy-row code,
html[data-frontend-version="v3"] .payment-copy-row code,
html[data-frontend-version="v2"] .payment-channel-detail dd,
html[data-frontend-version="v3"] .payment-channel-detail dd,
html[data-frontend-version="v2"] .payment-detail-heading b,
html[data-frontend-version="v3"] .payment-detail-heading b {
  color: #2e2830;
}

html[data-frontend-version="v2"] .payment-copy-row button,
html[data-frontend-version="v3"] .payment-copy-row button {
  border-color: rgba(230, 41, 120, 0.28);
  background: #fff1f6;
  color: #d82171;
}

html[data-frontend-version="v2"] .finance-choice-field > span,
html[data-frontend-version="v3"] .finance-choice-field > span {
  color: #655a63;
}

.finance-empty-action {
  display: grid;
  gap: 12px;
  padding-block: 12px;
  text-align: center;
}

.withdrawal-disabled-notice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 0;
  border: 1px solid rgba(244, 200, 106, 0.28);
  border-radius: 8px;
  padding: 11px;
  background: rgba(244, 200, 106, 0.09);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.withdrawal-disabled-notice svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.withdrawal-disabled-notice button {
  min-height: 36px;
  border: 1px solid rgba(244, 200, 106, 0.34);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(244, 200, 106, 0.1);
  color: var(--gold);
  font-weight: 800;
}

.finance-empty-action button,
.address-form button {
  min-height: 42px;
  border: 1px solid rgba(244, 200, 106, 0.34);
  border-radius: 8px;
  padding: 9px 14px;
  background: rgba(244, 200, 106, 0.1);
  color: var(--gold);
  font-weight: 900;
}

.withdrawal-address-book {
  display: grid;
  gap: 12px;
  border-block: 1px solid var(--line);
  padding-block: 14px;
}

.address-book-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.address-book-heading h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

.address-book-heading > span {
  min-width: 28px;
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold);
  text-align: center;
}

.address-manager {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.address-manager summary {
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
}

.address-form {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.selected-withdrawal-address {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 12px;
}

.selected-withdrawal-address b {
  color: var(--ink);
}

.selected-withdrawal-address small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.about-card {
  gap: 12px;
  border: 1px solid rgba(244, 200, 106, 0.2);
}

.about-email {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(244, 200, 106, 0.1);
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
  word-break: break-word;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.segmented button {
  min-height: 42px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f5edf8;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.segmented button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 16px rgba(112, 48, 160, 0.18);
}

.vote-total {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(244, 200, 106, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.vote-total div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(12, 6, 18, 0.26);
}

.vote-total span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.vote-total b {
  color: var(--gold);
  font-size: 18px;
  line-height: 1.1;
}

.avatar-choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.avatar-choices button {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #f4edf6;
  overflow: hidden;
}

.avatar-choices button.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(112, 48, 160, 0.14);
}

.avatar-choices img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-float {
  position: fixed;
  right: max(16px, calc((100vw - 650px) / 2 + 16px));
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 14px);
  z-index: 70;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}

.support-fab,
.support-window {
  pointer-events: auto;
}

.support-fab {
  grid-row: 2;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(244, 200, 106, 0.26);
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, #f02a88, #9814d0);
  box-shadow: 0 18px 36px rgba(240, 42, 136, 0.34);
  font-weight: 900;
}

.support-fab .ui-icon {
  width: 20px;
  height: 20px;
}

.support-fab:hover,
.support-fab:focus-visible {
  background: linear-gradient(135deg, #ff3c98, #aa22dd);
}

.support-float.open .support-fab {
  display: none;
}

.support-window {
  grid-row: 1;
  width: min(378px, calc(100vw - 28px));
  max-height: min(640px, calc(100dvh - var(--topbar-h) - var(--bottom-nav-h) - var(--safe-bottom) - 28px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(244, 200, 106, 0.2);
  border-radius: 14px;
  background: rgba(24, 7, 18, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
  color: #fff6fb;
  backdrop-filter: blur(18px);
}

.support-float.open .support-window {
  display: grid;
  grid-template-rows: auto auto minmax(170px, 1fr) auto auto;
}

.support-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(244, 200, 106, 0.14);
  background: linear-gradient(135deg, rgba(240, 42, 136, 0.42), rgba(143, 27, 209, 0.34));
  color: #fff;
}

.support-brand-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
}

.support-brand-avatar .ui-icon {
  width: 21px;
  height: 21px;
}

.support-head-copy,
.support-head-copy b,
.support-head-copy span,
.support-head-copy small {
  display: block;
}

.support-head-copy b {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.support-head-copy small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.support-connection {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
}

.support-connection i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: #f0b429;
}

.support-connection.is-success i {
  background: #35d07f;
}

.support-connection.is-error {
  color: #ffe1e5;
}

.support-connection.is-error i,
.support-connection.is-reconnecting i {
  background: #dc3545;
}

.support-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: transparent;
}

.support-close:hover,
.support-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.support-close .ui-icon {
  width: 17px;
  height: 17px;
}

.support-session-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(244, 200, 106, 0.08);
  color: #f8edf4;
}

.support-session-note > .ui-icon {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--gold);
}

.support-session-note b,
.support-session-note small {
  display: block;
}

.support-session-note b {
  font-size: 11px;
}

.support-session-note small {
  margin-top: 2px;
  color: rgba(255, 246, 251, 0.62);
  font-size: 10px;
  line-height: 1.35;
}

.support-messages {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px 13px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(231, 23, 114, 0.12), transparent 36%),
    rgba(12, 5, 10, 0.72);
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.support-msg {
  max-width: 84%;
  display: grid;
  gap: 4px;
  justify-self: start;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px 10px 10px 3px;
  color: #fff6fb;
  background: rgba(255, 255, 255, 0.08);
}

.support-msg.user {
  justify-self: end;
  border-color: rgba(240, 42, 136, 0.72);
  border-radius: 10px 10px 3px 10px;
  background: linear-gradient(135deg, #f02a88, #9814d0);
  color: #fff;
  position: relative;
  padding-inline-end: 38px;
}

.support-message-avatar {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  object-fit: cover;
}

.support-msg b {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.support-msg.user b {
  color: rgba(255, 255, 255, 0.82);
}

.support-msg p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.support-message-image-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.support-message-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
}

.support-message-meta,
.support-contact {
  color: rgba(255, 246, 251, 0.58);
  font-size: 10px;
}

.support-msg.user .support-message-meta {
  color: rgba(255, 255, 255, 0.76);
}

.support-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.support-message-meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.support-message-meta .ui-icon {
  width: 11px;
  height: 11px;
}

.support-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 246, 251, 0.48);
  font-size: 10px;
}

.support-date-divider::before,
.support-date-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

.support-date-divider span {
  padding: 0 8px;
}

.support-quick-actions {
  display: grid;
  gap: 6px;
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 8, 17, 0.96);
}

.support-quick-actions > span {
  color: rgba(255, 246, 251, 0.6);
  font-size: 10px;
  font-weight: 750;
}

.support-quick-actions > div {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.support-quick-actions > div::-webkit-scrollbar {
  display: none;
}

.support-quick-actions button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(244, 200, 106, 0.24);
  border-radius: 7px;
  background: rgba(244, 200, 106, 0.08);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.support-quick-actions button:hover,
.support-quick-actions button:focus-visible {
  border-color: rgba(255, 43, 142, 0.56);
  background: rgba(255, 43, 142, 0.14);
}

.support-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: end;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 8, 17, 0.98);
}

.support-compose-field {
  min-width: 0;
  position: relative;
}

.support-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  grid-column: 1;
  grid-row: 2;
}

.support-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.support-tool-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(244, 200, 106, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff6fb;
  font-size: 17px;
}

.support-tool-button:hover,
.support-tool-button:focus-visible {
  border-color: rgba(255, 43, 142, 0.7);
  background: rgba(255, 43, 142, 0.14);
}

.support-tool-button .ui-icon { width: 16px; height: 16px; }

.support-attachment-draft {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid rgba(244, 200, 106, 0.2);
  border-radius: 7px;
  color: rgba(255, 246, 251, 0.76);
  font-size: 10px;
  grid-column: 1;
  grid-row: 3;
}

.support-attachment-draft img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: cover;
  border-radius: 5px;
}

.support-attachment-draft span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-attachment-draft button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.support-form textarea {
  width: 100%;
  min-height: 40px;
  max-height: 104px;
  border: 1px solid rgba(244, 200, 106, 0.18);
  border-radius: 8px;
  padding: 9px 42px 9px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  resize: vertical;
  font: inherit;
  line-height: 1.35;
}

.support-form textarea:focus {
  border-color: rgba(255, 43, 142, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 43, 142, 0.14);
}

.support-counter {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: rgba(255, 246, 251, 0.5);
  font-size: 9px;
}

.support-send {
  width: 36px;
  height: 36px;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}

.support-send {
  border: 1px solid rgba(244, 200, 106, 0.24);
  background: linear-gradient(135deg, #f02a88, #9814d0);
  color: #fff;
}

.support-send:hover,
.support-send:focus-visible {
  background: linear-gradient(135deg, #ff3c98, #aa22dd);
}

.support-send .ui-icon {
  width: 18px;
  height: 18px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-disclosure {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  text-align: start;
}

.record-disclosure > summary {
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.record-disclosure > summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.record-disclosure > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.record-disclosure .record-detail-fields {
  display: grid;
  gap: 8px;
  margin: 2px 0 10px;
  line-height: 1.5;
}

.record-disclosure .record-detail-fields > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 12px;
  align-items: start;
}

.record-disclosure dt,
.record-disclosure dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.record-disclosure dd {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.record-disclosure .record-detail-note {
  margin: 8px 0 4px;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html[data-frontend-version="v3"] .record-disclosure {
  border-color: #e8e3e6;
}

@media (max-width: 600px) {
  .record-disclosure > summary { min-height: 44px; padding-block: 12px; }
}

.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.record-item b,
.record-item span,
.record-side strong,
.record-side em {
  display: block;
}

.record-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.record-item small {
  color: var(--muted);
}

.record-side {
  min-width: 92px;
  text-align: right;
}

.record-side strong {
  color: var(--brand);
  font-size: 20px;
}

.record-side em {
  margin-top: 4px;
  color: var(--orange);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.record-side em.approved,
.record-side em.settled {
  color: #179c64;
}

.record-side em.rejected {
  color: #d43b4a;
}

.empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  gap: 6px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state b {
  color: var(--ink);
}

.login-ref {
  min-height: calc(100vh - 170px);
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 30px;
  background: linear-gradient(rgba(112, 48, 160, 0.28), rgba(112, 48, 160, 0.85)), url("../reference/desirezone/site/img/login-bg.f3a31f28.png") center/cover;
  color: #fff;
}

.auth-check {
  justify-items: center;
}

.auth-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-logo {
  width: fit-content;
  min-height: 58px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(16, 7, 13, 0.5);
  color: #fff;
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.login-logo .brand-mark {
  flex: 0 0 auto;
  width: clamp(28px, 7vw, 36px);
  height: clamp(28px, 7vw, 36px);
}

.form-card {
  display: grid;
  gap: 20px;
  background: transparent;
}

.form-card input {
  min-height: 64px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
}

.form-card input::placeholder { color: rgba(255, 255, 255, 0.92); }
.form-card p { text-align: center; font-size: 20px; }

.auth-card {
  gap: 14px;
}

.invite-code-input {
  text-transform: uppercase;
}

.auth-switch {
  width: 100%;
  min-height: 42px;
  background: transparent;
}

.auth-signup-panel {
  display: grid;
  gap: 11px;
  margin-top: 2px;
}

.auth-divider {
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  content: "";
}

.auth-signup-cta {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid rgba(255, 211, 105, 0.96);
  border-radius: 999px;
  padding: 7px 10px 7px 12px;
  background: rgba(255, 255, 255, 0.97);
  color: #3a142f;
  box-shadow: 0 16px 34px rgba(18, 5, 15, 0.3), 0 0 0 3px rgba(255, 211, 105, 0.12);
  font-size: 17px;
  font-weight: 900;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-signup-cta > .ui-icon:first-child {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.auth-signup-arrow {
  width: 34px;
  height: 34px;
  margin-left: auto;
  display: inline-grid;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(158, 45, 114, 0.1);
  color: var(--brand);
}

.auth-signup-arrow .ui-icon {
  width: 18px;
  height: 18px;
}

.auth-signup-cta:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 20px 38px rgba(18, 5, 15, 0.34), 0 0 0 4px rgba(255, 211, 105, 0.18);
}

.auth-signup-cta:active {
  transform: translateY(0);
}

.auth-signup-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(100%, var(--app-max));
  min-height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 20px rgba(52, 33, 62, 0.08);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  background: transparent;
  color: var(--brand);
  min-width: 0;
  padding: 6px 2px 5px;
  font-size: 11px;
  line-height: 1.1;
}

.bottom-nav img {
  width: 34px;
  height: 34px;
  max-width: 34px;
  object-fit: contain;
  border-radius: 9px;
}

.bottom-nav button.active img {
  transform: translateY(-1px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
  z-index: 80;
  width: min(440px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(34, 33, 42, 0.92);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
  background: rgba(16, 14, 20, 0.48);
}

.modal {
  width: min(650px, 100%);
  max-height: min(88vh, calc(100dvh - var(--safe-top)));
  overflow: auto;
  border-radius: 14px 14px 0 0;
  background: #fff;
}

.modal.compact {
  max-height: 84vh;
}

.modal img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.modal-body { padding: 16px; }
.modal-body h2 { margin: 0; }

.video-modal {
  width: min(620px, calc(100vw - 24px));
  background: #110711;
}

.video-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
}

.video-player-head b {
  font-size: 18px;
}

.video-player-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.video-fallback {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-weight: 700;
}

.video-fallback a {
  color: var(--gold);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.booking-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

/* Main theme */
.mobile-page {
  background:
    radial-gradient(circle at 18% -8%, rgba(231, 23, 114, 0.38), transparent 34%),
    radial-gradient(circle at 100% 16%, rgba(244, 200, 106, 0.13), transparent 28%),
    linear-gradient(180deg, #160911 0%, #0d070b 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 24px 80px rgba(0, 0, 0, 0.48);
}

.topbar {
  background: rgba(16, 7, 13, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  color: #fff;
  letter-spacing: 0;
}

.brand-mark {
  background: linear-gradient(135deg, var(--pink), var(--gold));
  box-shadow: 0 0 22px rgba(231, 23, 114, 0.42);
}

.pill {
  background: rgba(244, 200, 106, 0.14);
  color: var(--gold);
  border: 1px solid rgba(244, 200, 106, 0.28);
}

.plain-title,
.section-title h2 {
  color: #fff;
  font-weight: 850;
}

.dz-banner {
  min-height: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow);
}

.notice,
.card,
.modal {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(41, 20, 34, 0.95), rgba(25, 13, 22, 0.98));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.notice {
  border-radius: 14px;
  color: #fff;
}

.notice strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.notice span,
.profile-meta,
.muted,
.video-meta,
.field label,
.feedback time,
.account-summary span,
.record-item span,
.record-item small {
  color: var(--muted);
}

.ui-icon {
  display: inline-grid;
  place-items: center;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.certs .ui-icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 6px;
  background: rgba(244, 200, 106, 0.17);
  border: 1px solid rgba(244, 200, 106, 0.32);
  color: var(--gold);
}

.certs span,
.badge,
.tag {
  gap: 5px;
  background: rgba(244, 200, 106, 0.12);
  color: var(--gold);
  border: 1px solid rgba(244, 200, 106, 0.18);
}

.service {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.service.s0 { background: linear-gradient(135deg, #ff2b8e, #b11264); }
.service.s1 { background: linear-gradient(135deg, #ffb14a, #d05a20); }
.service.s2 { background: linear-gradient(135deg, #36d8c4, #137d78); }
.service.s3 { background: linear-gradient(135deg, #8f1bd1, #4b167a); }

.price-line b,
.account-summary b,
.finance-card b,
.record-side strong {
  color: var(--gold);
}

.date-btn,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), #b91572 54%, var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(231, 23, 114, 0.34);
}

.ghost,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(244, 200, 106, 0.28);
  background: rgba(244, 200, 106, 0.08);
  color: var(--gold);
}

.icon-btn {
  min-height: 40px;
  border-radius: 999px;
}

.vote-head,
.mine-hero,
.vip-banner {
  background:
    radial-gradient(circle at 78% 12%, rgba(244, 200, 106, 0.28), transparent 26%),
    linear-gradient(135deg, #5b102f, #e71772 52%, #6b19a8);
  color: #fff;
}

.vote-panel,
.account-form,
.account-summary {
  background: linear-gradient(180deg, rgba(42, 20, 36, 0.98), rgba(20, 11, 18, 0.98));
}

.balance-row {
  color: var(--ink);
}

.vote-options button,
.segmented button,
.video-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.vote-options button.active,
.segmented button.active,
.video-tabs button.active {
  border-color: rgba(244, 200, 106, 0.42);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(231, 23, 114, 0.28);
}

.field input,
.field textarea,
.field select {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 246, 251, 0.48);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 43, 142, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 43, 142, 0.16);
}

.video-card,
.dz-profile-row {
  overflow: hidden;
}

.video-card img,
.profile-photo {
  filter: saturate(1.08) contrast(1.03);
}

.lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(244, 200, 106, 0.92);
  color: #21120b;
}

.finance-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(14px);
}

.finance-card span {
  color: rgba(255, 246, 251, 0.78);
}

.vip-chip.is-active {
  background: rgba(244, 200, 106, 0.95);
  color: #34140b;
}

.credit-progress {
  background: rgba(255, 255, 255, 0.18);
}

.vip-banner b {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(244, 200, 106, 0.34);
}

.mine-cell {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.mine-cell .ui-icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 43, 142, 0.2), rgba(244, 200, 106, 0.12));
  color: var(--gold);
}

.subpage-title,
.bottom-nav {
  background: rgba(12, 6, 10, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.subpage-title h1,
.back-btn {
  color: #fff;
}

.bottom-nav {
  box-shadow: 0 -18px 34px rgba(0, 0, 0, 0.34);
}

.bottom-nav button {
  color: rgba(255, 246, 251, 0.62);
}

.bottom-nav button.active {
  color: var(--gold);
}

.bottom-nav img {
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
}

.toast {
  background: rgba(20, 9, 17, 0.96);
  border: 1px solid rgba(244, 200, 106, 0.24);
  color: #fff;
}

.modal-backdrop {
  background: rgba(4, 2, 4, 0.72);
  backdrop-filter: blur(5px);
}

@keyframes roseSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}

@keyframes petalFloat {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  20% { opacity: 0.95; }
  100% { transform: translate3d(8px, 22px, 0) rotate(115deg); opacity: 0; }
}

@keyframes shipBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes waveSlide {
  0% { transform: translateX(-8px) scaleX(0.75); opacity: 0.35; }
  50% { opacity: 0.9; }
  100% { transform: translateX(8px) scaleX(1); opacity: 0.35; }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 43, 142, 0.36)); }
  35% { transform: scale(1.12); filter: drop-shadow(0 0 16px rgba(255, 43, 142, 0.62)); }
  55% { transform: scale(0.96); }
}

@keyframes rocketLift {
  0%, 100% { transform: translateY(2px) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}

@keyframes flamePulse {
  from { transform: rotate(25deg) scaleY(0.75); opacity: 0.7; }
  to { transform: rotate(25deg) scaleY(1.15); opacity: 1; }
}

@media (max-width: 520px) {
  .brand { font-size: 22px; }
  .topbar { min-height: 58px; padding: 10px 16px; }
  .screen { padding-inline: 10px; }
  .dz-banner { width: calc(100% + 20px); height: auto; min-height: 0; margin-inline: -10px; }
  .dz-profile-row { grid-template-columns: clamp(118px, 38vw, 156px) minmax(0, 1fr); gap: 10px; }
  .profile-photo-frame { width: 100%; height: 100%; min-height: clamp(190px, 54vw, 238px); }
  .certs span, .service { font-size: 12px; }
  .service { min-width: auto; min-height: 30px; }
  .video-grid { grid-template-columns: 1fr; }
  .mine-user { margin-left: 8px; gap: 14px; }
  .mine-user img { width: 86px; height: 86px; flex-basis: 86px; }
  .mine-user .mine-name { font-size: 24px; }
  .credit-progress { width: min(210px, 100%); }
  .vip-chip,
  .credit-chip { min-height: 34px; padding: 6px 10px; }
  .vip-banner { padding: 18px 28px; }
  .vip-banner b { font-size: 46px; }
  .mine-cell { font-size: 18px; }
  .vote-total { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avatar-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .record-item { align-items: flex-start; }
}

/* Mobile viewport */
@supports (height: 100dvh) {
  body,
  .mobile-page {
    min-height: 100dvh;
  }
}

.mobile-page {
  width: min(100%, var(--app-max));
  max-width: var(--app-max);
}

.topbar {
  min-height: calc(var(--topbar-h) + var(--safe-top));
  padding: calc(12px + var(--safe-top)) clamp(16px, 4.3vw, 28px) 12px;
}

.screen {
  padding-inline: var(--page-pad);
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 18px);
}

.dz-banner {
  width: calc(100% + (var(--page-pad) * 2));
  aspect-ratio: 128 / 58;
  height: auto;
  min-height: 0;
  margin-inline: calc(var(--page-pad) * -1);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.dz-profile-row {
  grid-template-columns: clamp(132px, 38vw, 180px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(10px, 3vw, 14px);
}

.dz-profile-row .row {
  align-items: flex-start;
}

.profile-photo-frame {
  width: 100%;
  height: 100%;
  min-height: clamp(190px, 48vw, 248px);
  align-self: stretch;
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center top;
}

.certs span,
.service {
  font-size: clamp(12px, 3.35vw, 16px);
}

.service {
  min-height: clamp(30px, 8.8vw, 38px);
}

.price-line {
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-line span {
  color: rgba(255, 246, 251, 0.5);
  font-weight: 800;
}

.price-line b {
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1;
}

.profile-meta {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 246, 251, 0.72);
}

.date-btn {
  width: 100%;
}

.bottom-nav {
  width: min(100%, var(--app-max));
  min-height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
}

.bottom-nav button {
  min-width: 0;
  padding: 6px 2px 5px;
}

.bottom-nav img {
  width: 34px;
  height: 34px;
  max-width: 34px;
}

.support-float {
  right: max(14px, calc((100vw - var(--app-max)) / 2 + 14px));
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
}

.toast {
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
}

@media (max-width: 520px) {
  .screen {
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 26px);
  }

  .dz-profile-row {
    grid-template-columns: clamp(118px, 38vw, 156px) minmax(0, 1fr);
    padding: 10px;
    border-radius: 10px;
  }

  .profile-photo-frame {
    min-height: clamp(190px, 54vw, 238px);
  }

  .profile-copy {
    gap: 7px;
  }

  .certs {
    gap: 5px;
  }

  .certs span {
    padding: 3px 6px;
  }

  .profile-code {
    font-size: 20px;
  }

  .service {
    min-width: 0;
    padding-inline: 10px;
    line-height: 1;
  }

  .profile-meta {
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .price-line b {
    font-size: 22px;
  }

  .support-float {
    left: 12px !important;
    right: auto !important;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 10px);
    justify-items: start !important;
  }

  .support-fab {
    display: inline-flex;
  }

  .support-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .support-window {
    width: min(360px, calc(100vw - 24px));
    max-height: min(520px, calc(100dvh - var(--topbar-h) - var(--bottom-nav-h) - var(--safe-bottom) - 38px));
  }
}

@media (max-width: 360px) {
  :root {
    --page-pad: 9px;
    --bottom-nav-h: 72px;
  }

  .profile-meta {
    font-size: 12px;
  }

  .date-btn,
  .primary,
  .ghost {
    padding-inline: 10px;
  }
}

/* Light theme */
html[data-theme="light"] {
  color-scheme: dark;
  --bg: #fff8fb;
  --paper: #ffffff;
  --paper-2: #fff1f6;
  --ink: #2d1723;
  --muted: #755f6c;
  --line: rgba(76, 35, 57, 0.14);
  --brand: #c81366;
  --brand-2: #7126ad;
  --pink: #e81778;
  --orange: #e87b22;
  --blue: #138e8a;
  --gold: #a66a10;
  --shadow: 0 14px 34px rgba(74, 35, 57, 0.12);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: #f4edf1;
}

html[data-theme="light"] body {
  color: var(--ink);
}

html[data-theme="light"] .mobile-page {
  background:
    linear-gradient(180deg, rgba(255, 232, 241, 0.74), rgba(255, 255, 255, 0) 280px),
    #fffafc;
  box-shadow: 0 0 0 1px rgba(76, 35, 57, 0.08), 0 22px 70px rgba(74, 35, 57, 0.14);
}

html[data-theme="light"] .topbar {
  border-bottom-color: rgba(76, 35, 57, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .brand {
  color: #811453;
}

html[data-theme="light"] .topbar-action {
  border-color: rgba(113, 38, 173, 0.18);
  background: #f8eff7;
  color: #7126ad;
}

html[data-theme="light"] .topbar-action:hover,
html[data-theme="light"] .topbar-action.is-active {
  border-color: rgba(200, 19, 102, 0.38);
  background: #ffe5f0;
  color: #c81366;
}

html[data-theme="light"] .availability-dot {
  border-color: #fff;
}

html[data-theme="light"] .plain-title,
html[data-theme="light"] .section-title h2,
html[data-theme="light"] .subpage-title h1,
html[data-theme="light"] .back-btn {
  color: var(--ink);
}

html[data-theme="light"] .notice,
html[data-theme="light"] .card,
html[data-theme="light"] .modal,
html[data-theme="light"] .vote-panel,
html[data-theme="light"] .account-form,
html[data-theme="light"] .account-summary {
  border-color: rgba(76, 35, 57, 0.1);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .notice {
  color: var(--ink);
}

html[data-theme="light"] .certs span,
html[data-theme="light"] .badge,
html[data-theme="light"] .tag {
  border-color: rgba(166, 106, 16, 0.2);
  background: #fff4dc;
  color: #8b5810;
}

html[data-theme="light"] .profile-meta,
html[data-theme="light"] .finance-card,
html[data-theme="light"] .vote-options button,
html[data-theme="light"] .segmented button,
html[data-theme="light"] .video-tabs button,
html[data-theme="light"] .mine-cell {
  border-color: rgba(76, 35, 57, 0.1);
  background: #f9f2f6;
  color: var(--ink);
}

html[data-theme="light"] .price-line {
  border-top-color: rgba(76, 35, 57, 0.1);
}

html[data-theme="light"] .price-line span,
html[data-theme="light"] .finance-card span {
  color: var(--muted);
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .field select {
  border-color: rgba(76, 35, 57, 0.16);
  background: #fff;
  color: var(--ink);
}

html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder {
  color: #9c8994;
}

html[data-theme="light"] .subpage-title,
html[data-theme="light"] .bottom-nav {
  border-color: rgba(76, 35, 57, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .bottom-nav {
  box-shadow: 0 -12px 30px rgba(74, 35, 57, 0.12);
}

html[data-theme="light"] .bottom-nav button {
  color: #76616d;
}

html[data-theme="light"] .bottom-nav button.active {
  color: #9a3c14;
}

html[data-theme="light"] .bottom-nav img {
  background: rgba(113, 38, 173, 0.06);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html[data-theme="light"] .toast {
  border-color: rgba(76, 35, 57, 0.14);
  background: rgba(45, 23, 35, 0.96);
}

html[data-theme="light"] .modal-backdrop {
  background: rgba(53, 31, 43, 0.42);
}

@media (max-width: 360px) {
  .topbar {
    padding-inline: 12px;
  }

  .brand {
    gap: 7px;
    font-size: 20px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .topbar-actions {
    gap: 5px;
  }

  .topbar-action {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

/* Booking lifecycle */
.bookings-page {
  gap: 18px;
}

.booking-sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(69, 211, 147, 0.2);
  border-radius: 8px;
  background: rgba(69, 211, 147, 0.08);
}

.booking-sync-bar.has-error {
  border-color: rgba(255, 102, 134, 0.28);
  background: rgba(255, 102, 134, 0.08);
}

.booking-sync-bar > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.booking-sync-bar button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 12px;
  font-size: 12px;
}

.booking-group {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.booking-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  padding-inline: 2px;
}

.booking-group-head > div {
  min-width: 0;
}

.booking-group-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.booking-group-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.booking-group-head > span {
  flex: 0 0 auto;
  min-width: 30px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(244, 200, 106, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.booking-list {
  display: grid;
  gap: 12px;
}

.booking-card {
  --booking-state: var(--gold);
  --booking-state-border: rgba(244, 200, 106, 0.48);
  --booking-state-soft: rgba(244, 200, 106, 0.14);
  position: relative;
  display: grid;
  min-width: 0;
  gap: 14px;
  overflow: hidden;
  border-left: 4px solid var(--booking-state);
  border-radius: 8px;
  padding: 16px;
}

.booking-card.booking-pending,
.booking-card.booking-confirmed {
  --booking-state: #55b9ff;
  --booking-state-border: rgba(85, 185, 255, 0.48);
  --booking-state-soft: rgba(85, 185, 255, 0.14);
}

.booking-card.booking-settled,
.booking-card.booking-completed {
  --booking-state: #45d393;
  --booking-state-border: rgba(69, 211, 147, 0.48);
  --booking-state-soft: rgba(69, 211, 147, 0.14);
}

.booking-card.booking-rejected,
.booking-card.booking-expired {
  --booking-state: #ff6686;
  --booking-state-border: rgba(255, 102, 134, 0.48);
  --booking-state-soft: rgba(255, 102, 134, 0.14);
}

.booking-card.booking-cancelled {
  --booking-state: #9c8d98;
  --booking-state-border: rgba(156, 141, 152, 0.48);
  --booking-state-soft: rgba(156, 141, 152, 0.14);
}

.booking-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
}

.booking-card-head > div {
  min-width: 0;
}

.booking-card-head span,
.booking-details span,
.booking-next-step > span,
.booking-hold > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.booking-card-head h2 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.booking-status {
  flex: 0 0 auto;
  max-width: 52%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--booking-state-border);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--booking-state-soft);
  color: var(--booking-state);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.booking-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.booking-details > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.booking-details b {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.booking-details .booking-time-zone {
  grid-column: 1 / -1;
}

.booking-details-primary {
  align-items: stretch;
}

.booking-order-id {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px !important;
  word-break: break-all;
}

.booking-hold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 200, 106, 0.3);
  border-radius: 8px;
  background: rgba(244, 200, 106, 0.1);
}

.booking-hold strong {
  flex: 0 0 auto;
  min-width: 5.25ch;
  color: var(--gold);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.booking-hold strong[data-expired="true"] {
  color: #ff6686;
}

.booking-next-step {
  min-width: 0;
  padding: 11px 12px;
  border-left: 3px solid var(--booking-state);
  background: rgba(255, 255, 255, 0.035);
}

.booking-next-step p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.booking-recovery-note {
  padding: 10px 12px;
  border: 1px solid rgba(85, 185, 255, 0.28);
  border-radius: 6px;
  background: rgba(85, 185, 255, 0.1);
  color: #a8d9ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.booking-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.booking-actions button,
.booking-again,
.booking-empty button {
  min-width: 0;
  min-height: 46px;
  white-space: normal;
  line-height: 1.2;
}

.booking-cancel {
  color: #ff9bb2;
  border-color: rgba(255, 102, 134, 0.28);
  background: rgba(255, 102, 134, 0.08);
}

.booking-empty button {
  margin-top: 12px;
}

.booking-disclosure {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2px;
}

.booking-disclosure summary {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 32px 9px 2px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  overflow-wrap: anywhere;
}

.booking-disclosure summary::-webkit-details-marker {
  display: none;
}

.booking-disclosure summary::after {
  position: absolute;
  right: 5px;
  content: "+";
  color: var(--booking-state);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.booking-disclosure[open] summary::after {
  content: "\2212";
}

.booking-expanded {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 6px 0 2px;
}

.booking-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.booking-meta-grid > div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.booking-meta-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.booking-meta-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.booking-timeline {
  min-width: 0;
}

.booking-timeline h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
}

.booking-timeline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding-bottom: 14px;
}

.booking-timeline-item:not(:last-child)::before {
  position: absolute;
  top: 12px;
  bottom: -1px;
  left: 5px;
  width: 2px;
  content: "";
  background: rgba(255, 255, 255, 0.11);
}

.booking-timeline-marker {
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--booking-state);
  box-shadow: 0 0 0 1px var(--booking-state-border);
}

.booking-timeline-item > div {
  min-width: 0;
}

.booking-timeline-item b,
.booking-timeline-item span,
.booking-timeline-item time {
  display: block;
  overflow-wrap: anywhere;
}

.booking-timeline-item b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.booking-timeline-item span,
.booking-timeline-item time,
.booking-timeline-item p,
.booking-timeline-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.booking-timeline-item p,
.booking-timeline-empty {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.modal-action-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

html[data-theme="light"] .booking-details > div,
html[data-theme="light"] .booking-next-step,
html[data-theme="light"] .booking-meta-grid > div {
  border-color: rgba(76, 35, 57, 0.09);
  background: #faf3f7;
}

html[data-theme="light"] .booking-hold {
  border-color: rgba(166, 106, 16, 0.25);
  background: #fff7e7;
}

html[data-theme="light"] .booking-card-head h2,
html[data-theme="light"] .booking-details b,
html[data-theme="light"] .booking-next-step p {
  color: var(--ink);
}

html[data-theme="light"] .booking-cancel {
  border-color: rgba(200, 19, 102, 0.22);
  background: #fff0f5;
  color: #b8175f;
}

html[data-theme="light"] .booking-sync-bar {
  border-color: rgba(18, 139, 87, 0.2);
  background: #effbf5;
}

html[data-theme="light"] .booking-sync-bar.has-error {
  border-color: rgba(200, 19, 102, 0.2);
  background: #fff0f5;
}

html[data-theme="light"] .booking-recovery-note {
  border-color: rgba(26, 118, 178, 0.2);
  background: #eef8ff;
  color: #17689c;
}

html[data-theme="light"] .booking-disclosure,
html[data-theme="light"] .booking-timeline-item:not(:last-child)::before {
  border-color: rgba(76, 35, 57, 0.1);
}

html[data-theme="light"] .booking-timeline-item:not(:last-child)::before {
  background: rgba(76, 35, 57, 0.12);
}

.field input[type="datetime-local"] {
  min-width: 0;
  -webkit-appearance: auto;
  appearance: auto;
  color-scheme: dark;
}

html[data-theme="light"] .field input[type="datetime-local"] {
  color-scheme: dark;
}

@media (max-width: 520px) {
  .booking-sync-bar {
    align-items: flex-start;
  }

  .booking-sync-bar button {
    max-width: 42%;
    white-space: normal;
  }

  .booking-card {
    gap: 12px;
    padding: 13px;
  }

  .booking-card-head {
    flex-wrap: wrap;
  }

  .booking-status {
    max-width: 100%;
  }

  .booking-details {
    grid-template-columns: 1fr;
  }

  .booking-details .booking-time-zone {
    grid-column: auto;
  }

  .booking-group-head h2 {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .booking-meta-grid {
    grid-template-columns: 1fr;
  }

  .booking-hold {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-hold strong {
    font-size: 25px;
    text-align: left;
  }

  .booking-actions {
    grid-template-columns: 1fr;
  }

  .support-float:not(.open) {
    display: grid;
  }
}

/* Status indicators */
.action-badge,
.nav-badge,
.support-unread {
  position: absolute;
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 0 4px;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.action-badge {
  top: -5px;
  right: -5px;
}

.bottom-nav button {
  position: relative;
}

.nav-badge {
  top: 3px;
  left: calc(50% + 10px);
}

.support-fab {
  position: relative;
}

.support-unread {
  top: -5px;
  right: -5px;
}

.availability-dot:not(.is-live) {
  background: #f4b544;
}

.notification-center {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.notification-title {
  align-items: flex-end;
  gap: 12px;
}

.notification-title > div {
  min-width: 0;
}

.notification-title h2,
.public-comments-title h2 {
  margin-bottom: 4px;
}

.connection-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.connection-label::before,
.connection-dot {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #f4b544;
}

.connection-label.is-live::before,
.connection-dot.is-live {
  background: #2bd26d;
  box-shadow: 0 0 0 4px rgba(43, 210, 109, 0.12);
}

.connection-label.is-unavailable::before,
.connection-dot.is-reconnecting {
  background: #dc3545;
}

.personal-notice-feed {
  display: grid;
  gap: 10px;
}

.personal-notice {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
}

.personal-notice.is-unread {
  border-color: rgba(255, 43, 142, 0.42);
  box-shadow: inset 3px 0 0 var(--pink), 0 8px 24px rgba(0, 0, 0, 0.16);
}

.personal-notice-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 43, 142, 0.14);
  color: var(--pink);
}

.personal-notice-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.personal-notice-copy {
  min-width: 0;
}

.personal-notice-copy .feedback-head {
  align-items: flex-start;
}

.personal-notice-copy .feedback-head b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.personal-notice-copy p {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.public-comments-title {
  margin-top: 24px;
}

.round-clock {
  min-width: 96px;
  text-align: right;
}

.round-clock span {
  font-size: 11px;
  font-weight: 800;
}

.vote-head.is-closed {
  background: linear-gradient(135deg, #624453, #35242e);
}

.vote-head.is-scheduled {
  background: linear-gradient(135deg, #9a5b18, #8750b0);
}

.vote-options button:disabled {
  filter: saturate(0.45);
}

.vote-options button small {
  max-width: 100%;
  padding-inline: 4px;
  text-align: center;
  overflow-wrap: anywhere;
}

.inline-error,
.sync-notice {
  margin: 0;
  border: 1px solid rgba(255, 99, 135, 0.28);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 99, 135, 0.08);
  color: #ff91aa;
  line-height: 1.4;
}

.sync-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  border-color: rgba(244, 200, 106, 0.26);
  background: rgba(244, 200, 106, 0.08);
}

.sync-notice .ui-icon {
  width: 18px;
  height: 18px;
}

.round-result {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  border: 1px solid rgba(244, 200, 106, 0.28);
  padding: 16px;
}

.round-result span,
.round-result small {
  color: var(--muted);
}

.round-result b {
  color: var(--gold);
  font-size: 20px;
}

.live-dot.is-simulation {
  background: rgba(54, 216, 196, 0.12);
  color: var(--blue);
}

.live-dot.is-simulation::before {
  box-shadow: 0 0 0 4px rgba(54, 216, 196, 0.1);
}

.wallet-balances {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 22px 12px;
}

.wallet-balances > div {
  min-width: 0;
  padding-inline: 5px;
}

.wallet-balances > div:not(:last-child) {
  border-right: 1px solid var(--line);
}

.wallet-balances span {
  font-size: 13px;
  font-weight: 800;
}

.wallet-balances b {
  font-size: clamp(20px, 6vw, 28px);
  overflow-wrap: anywhere;
}

.account-summary small {
  color: var(--muted);
  line-height: 1.4;
}

button.vip-banner {
  width: 100%;
  border: 0;
  text-align: left;
}

.vip-banner span {
  display: grid;
  gap: 8px;
  max-width: 68%;
  line-height: 1.35;
}

.vip-banner small {
  color: #fff4c7;
  font-weight: 900;
}

.wallet-ledger {
  margin-top: 22px;
}

.wallet-ledger .section-title h2 {
  font-size: 20px;
}

.record-filter {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 3px;
}

.record-filter::-webkit-scrollbar {
  display: none;
}

.record-filter button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.record-item.finance-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.record-main {
  min-width: 0;
}

.record-main b,
.record-main small {
  overflow-wrap: anywhere;
}

.withdrawal-record-address,
html[data-frontend-version="v2"] .v2-finance-records article > .withdrawal-record-address {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  gap: 4px;
}

.withdrawal-record-address span {
  color: var(--muted);
  font-size: 11px;
}

.withdrawal-record-address code {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.ledger-deltas {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.ledger-deltas span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  border-radius: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.ledger-deltas b {
  white-space: nowrap;
}

.ledger-deltas .positive {
  color: #35ca83;
}

.ledger-deltas .negative {
  color: #dc3545;
}

.finance-disclosure {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.finance-disclosure summary {
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.finance-timeline {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.finance-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  min-height: 46px;
}

.finance-timeline li > span {
  width: 12px;
  height: 12px;
  margin: 3px 0 0;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #35ca83;
  box-shadow: 0 0 0 2px #35ca83;
}

.finance-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  bottom: -3px;
  left: 5px;
  width: 2px;
  background: rgba(53, 202, 131, 0.36);
}

.finance-timeline li.is-future {
  opacity: 0.5;
}

.finance-timeline li.is-future > span {
  background: var(--muted);
  box-shadow: 0 0 0 2px var(--muted);
}

.finance-timeline li.is-rejected > span {
  background: #dc3545;
  box-shadow: 0 0 0 2px #dc3545;
}

.finance-timeline div {
  min-width: 0;
}

.finance-timeline b,
.finance-timeline time,
.finance-timeline small {
  display: block;
  overflow-wrap: anywhere;
}

.finance-timeline time,
.finance-timeline small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.record-side em.pending_review,
.record-side em.paying {
  color: var(--orange);
}

.record-side em.payment_failed {
  color: #d43b4a;
}

.record-side em.paid {
  color: #35ca83;
}

.support-head > div {
  min-width: 0;
}

.support-head span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.support-head small {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.video-access {
  display: block;
  min-height: 18px;
  color: #35ca83;
  font-size: 11px;
  font-weight: 900;
}

.video-access.is-locked {
  color: var(--gold);
}

.video-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-fallback:empty {
  display: none;
}

.video-fallback .ghost {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 10px;
}

.vip-page {
  padding-bottom: 16px;
}

.vip-status-card {
  position: relative;
  display: grid;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(244, 200, 106, 0.34);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #351326, #18101d);
  color: #fff;
}

.vip-status-card > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 3px 9px;
}

.vip-status-card .ui-icon {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.vip-status-card span,
.vip-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.vip-status-card b {
  color: var(--gold);
  font-size: 24px;
}

.vip-status-card em {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.vip-status-card em.is-active {
  background: rgba(53, 202, 131, 0.14);
  color: #65e4a3;
}

.vip-benefits h2,
.vip-page .section-title h2 {
  margin: 4px 0;
  font-size: 20px;
}

.vip-benefits ul,
.vip-plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vip-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
}

.vip-benefits .ui-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #35ca83;
}

.vip-plan-list {
  display: grid;
  gap: 12px;
}

.vip-plan {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(244, 200, 106, 0.2);
  padding: 16px;
}

.vip-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vip-plan-head div {
  min-width: 0;
}

.vip-plan-head span,
.vip-plan-head b,
.vip-plan > small {
  display: block;
}

.vip-plan-head span,
.vip-plan > small {
  color: var(--muted);
  font-size: 12px;
}

.vip-plan-head b {
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.vip-plan-head strong {
  color: var(--gold);
  font-size: 24px;
  white-space: nowrap;
}

.vip-plan li {
  color: var(--muted);
  font-size: 13px;
}

html[data-theme="light"] .personal-notice,
html[data-theme="light"] .round-result,
html[data-theme="light"] .vip-plan,
html[data-theme="light"] .vip-status-card {
  border-color: rgba(76, 35, 57, 0.12);
  background: #fff;
  color: var(--ink);
}

html[data-theme="light"] .ledger-deltas span {
  background: #f8eff4;
}

html[data-theme="light"] .finance-timeline li > span {
  border-color: #fff;
}

html[data-theme="light"] .action-badge,
html[data-theme="light"] .nav-badge,
html[data-theme="light"] .support-unread {
  border-color: #fff;
}

@media (max-width: 520px) {
  .notification-title {
    align-items: flex-start;
  }

  .notification-title .link-btn {
    max-width: 44%;
    white-space: normal;
  }

  .vote-head {
    gap: 10px;
    padding: 14px;
  }

  .vote-head b {
    font-size: 19px;
  }

  .vote-head strong {
    font-size: 23px;
  }

  .vote-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vote-options button {
    min-height: 104px;
  }

  .vote-total {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vote-total div {
    padding: 7px 5px;
  }

  .vote-total b {
    font-size: 16px;
  }

  .wallet-balances {
    min-height: 104px;
    padding-inline: 6px;
  }

  .wallet-balances span {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .wallet-balances b {
    font-size: clamp(18px, 5.6vw, 24px);
  }

  .record-item.finance-record {
    grid-template-columns: minmax(0, 1fr) minmax(78px, auto);
  }

  .ledger-deltas {
    grid-template-columns: 1fr;
  }

  .video-fallback {
    align-items: stretch;
    flex-direction: column;
  }

  .vip-page .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .support-float:not(.open) {
    display: grid;
  }
}

@media (max-width: 360px) {
  .personal-notice {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }

  .personal-notice-icon {
    width: 34px;
    height: 34px;
  }

  .round-clock {
    min-width: 78px;
  }

  .vote-total span {
    font-size: 10px;
  }

  .vip-banner {
    padding-inline: 20px;
  }

  .vip-banner b {
    font-size: 38px;
  }

  .record-side {
    min-width: 76px;
  }
}

/* Profile cards */
.dz-home .dz-profile-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
}

.dz-home .profile-main {
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(108px, 34vw, 172px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(10px, 3vw, 14px);
}

.dz-home .profile-photo-frame {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #120711;
}

.dz-home .profile-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

.dz-home .profile-photo-frame.crop-letterbox .profile-photo {
  object-position: center center;
}

.dz-home .profile-copy {
  min-width: 0;
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 9px;
}

.dz-home .profile-heading {
  min-width: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dz-home .profile-code {
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: clamp(21px, 5.4vw, 28px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.dz-home .certs,
.dz-home .service-tags {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}

.dz-home .certs span,
.dz-home .service {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  line-height: 1.15;
}

.dz-home .certs span {
  min-height: 30px;
  padding: 4px 7px;
}

.dz-home .service {
  min-height: 32px;
  padding: 7px 10px;
}

.dz-home .price-line {
  min-width: 0;
  padding-top: 7px;
}

.dz-home .price-line span,
.dz-home .price-line b,
.dz-home .profile-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dz-home .price-line b {
  flex: 0 0 auto;
  font-size: clamp(18px, 5.6vw, 24px);
  white-space: nowrap;
}

.dz-home .profile-meta {
  align-self: stretch;
}

.dz-home .date-btn {
  width: 100%;
}

@media (max-width: 360px) {
  .dz-home .dz-profile-row {
    gap: 8px;
    padding: 10px;
  }

  .dz-home .profile-main {
    grid-template-columns: clamp(104px, 34vw, 122px) minmax(0, 1fr);
    gap: 9px;
  }

  .dz-home .profile-copy {
    gap: 7px;
  }

  .dz-home .certs,
  .dz-home .service-tags {
    gap: 6px;
  }

  .dz-home .certs span,
  .dz-home .service {
    font-size: 11px;
  }
}

/* Feedback */
.toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 11px 12px;
  border-left: 4px solid #6fc5ff;
  text-align: left;
}

.toast.is-success {
  border-left-color: #45d483;
}

.toast.is-warning {
  border-left-color: var(--gold);
}

.toast.is-error {
  border-left-color: #dc3545;
}

.toast-copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.toast-mark {
  flex: 0 0 22px;
  color: #6fc5ff;
}

.toast.is-success .toast-mark {
  color: #45d483;
}

.toast.is-warning .toast-mark {
  color: var(--gold);
}

.toast.is-error .toast-mark {
  color: #ff8fa8;
}

.toast-mark .ui-icon {
  width: 22px;
  height: 22px;
}

.toast-message {
  min-width: 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.toast-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 850;
  white-space: nowrap;
}

.toast-action .ui-icon {
  width: 17px;
  height: 17px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.14) !important;
}

@media (max-width: 420px) {
  .toast {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .toast-action {
    width: 100%;
  }
}

/* Gift voting */
.vote-rule-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vote-rule-line p {
  margin: 0;
}

.vote-rule-line > span {
  flex: 0 0 auto;
  border: 1px solid rgba(244, 200, 106, 0.24);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(244, 200, 106, 0.1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.vote-gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vote-gift-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.vote-gift-card.active {
  border-color: #ff7b54;
  background: linear-gradient(145deg, #f2258b 0%, #ff7047 58%, #ffb83f 100%);
  box-shadow: 0 10px 24px rgba(231, 23, 114, 0.24);
  transform: translateY(-1px);
}

.vote-gift-toggle {
  width: 100%;
  aspect-ratio: 1 / 1.03;
  min-height: 156px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  place-items: center;
  align-items: center;
  gap: 5px;
  padding: 16px 10px 14px;
  background: transparent;
  color: var(--ink);
  text-align: center;
}

.vote-gift-toggle .gift-visual {
  align-self: end;
  width: clamp(58px, 16vw, 86px);
  height: clamp(58px, 16vw, 86px);
  margin: 0;
  transform: none;
}

.vote-gift-toggle .gift-heart {
  margin-bottom: 10px;
}

.vote-gift-toggle > span {
  font-size: clamp(16px, 4.8vw, 21px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.vote-gift-toggle small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.vote-gift-card.active .vote-gift-toggle,
.vote-gift-card.active .vote-gift-toggle small {
  color: #fff;
}

.vote-gift-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.vote-selected-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(12, 6, 10, 0.35);
  color: transparent;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 160ms ease, transform 160ms ease;
}

.vote-selected-check .ui-icon {
  width: 17px;
  height: 17px;
}

.vote-gift-card.active .vote-selected-check {
  color: #fff;
  opacity: 1;
  transform: scale(1);
}

.vote-order-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px);
  z-index: 32;
  width: min(
    calc(100% - (var(--page-pad) * 2)),
    calc(var(--app-max) - (var(--page-pad) * 2))
  );
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(86px, 0.9fr) 44px minmax(112px, 1.15fr);
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(27, 10, 23, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.vote-amount-field {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.vote-amount-field > span,
.vote-order-total > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.vote-amount-field input {
  width: 100%;
  height: 44px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  outline: none;
  appearance: textfield;
}

.vote-amount-field input::-webkit-outer-spin-button,
.vote-amount-field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.vote-amount-field input:focus-visible,
.vote-gift-toggle:focus-visible,
.vote-clear-button:focus-visible,
.vote-submit-button:focus-visible {
  border-color: var(--gold);
  outline: 3px solid rgba(244, 200, 106, 0.18);
  outline-offset: 1px;
}

.vote-order-total {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.vote-order-total b {
  color: var(--gold);
  font-size: 17px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.vote-order-total small {
  color: var(--brand-soft);
  font-size: 10px;
  font-weight: 750;
}

.vote-clear-button,
.vote-submit-button {
  min-width: 0;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
}

.vote-clear-button {
  display: grid;
  place-items: center;
}

.vote-clear-button .ui-icon {
  width: 22px;
  height: 22px;
}

.vote-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 14px;
}

.vote-submit-button.is-ready {
  border-color: transparent;
  background: linear-gradient(135deg, #ec238e, #a718cc);
  color: #fff;
  box-shadow: 0 10px 22px rgba(199, 24, 161, 0.26);
}

.vote-submit-button .ui-icon {
  width: 16px;
  height: 16px;
}

.vote-submit-button > span {
  white-space: nowrap;
}

.vote-clear-button:disabled,
.vote-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

body:has(.vote-order-bar) .support-float {
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 102px);
}

.dating-screen:has(.vote-order-bar) {
  padding-bottom: 116px;
}

/* Wallet history */
.funds-flow-page {
  padding-top: 2px;
}

.funds-flow-tabs {
  position: sticky;
  top: 58px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(20, 9, 17, 0.96);
  backdrop-filter: blur(16px);
}

.funds-flow-tabs button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.funds-flow-tabs button span {
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.funds-flow-tabs button.active {
  border-color: rgba(244, 200, 106, 0.38);
  background: rgba(231, 23, 114, 0.16);
  color: var(--gold);
}

.funds-flow-tabs .ui-icon {
  width: 20px;
  height: 20px;
}

.funds-flow-tabs button:focus-visible {
  outline: 3px solid rgba(244, 200, 106, 0.2);
  outline-offset: 1px;
}

.funds-flow-panel {
  display: grid;
  gap: 12px;
}

.record-item.vote-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

/* Booking permission gate */
.booking-gate-backdrop {
  z-index: 90;
  place-items: stretch;
  padding: 0;
  overscroll-behavior: contain;
}

.modal.booking-gate-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  display: grid;
  place-items: center;
  overflow: auto;
  border-radius: 0;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(31, 13, 26, 0.98), rgba(13, 6, 11, 0.99));
}

.booking-gate-content {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.booking-gate-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 200, 106, 0.38);
  border-radius: 50%;
  background: rgba(231, 23, 114, 0.16);
  color: var(--gold);
}

.booking-gate-icon .ui-icon {
  width: 36px;
  height: 36px;
}

.booking-gate-profile {
  border-radius: 7px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold);
  font-weight: 850;
}

.booking-gate-content h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
}

.booking-gate-content > p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.booking-gate-levels {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0;
}

.booking-gate-levels div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.booking-gate-levels dt,
.booking-gate-levels dd {
  margin: 0;
}

.booking-gate-levels dt {
  color: var(--muted);
  font-size: 12px;
}

.booking-gate-levels dd {
  margin-top: 4px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.booking-gate-actions {
  width: 100%;
  display: grid;
  gap: 9px;
}

.booking-gate-actions .wide {
  min-height: 50px;
}

.booking-gate-close {
  min-height: 42px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.booking-gate-actions button:focus-visible {
  outline: 3px solid rgba(244, 200, 106, 0.28);
  outline-offset: 2px;
}

html[data-theme="light"] .vote-gift-card,
html[data-theme="light"] .funds-flow-tabs,
html[data-theme="light"] .payment-channel-option,
html[data-theme="light"] .withdrawal-address-options button {
  border-color: rgba(76, 35, 57, 0.12);
  background: #fff;
}

html[data-theme="light"] .payment-channel-option.active,
html[data-theme="light"] .withdrawal-address-options button.active {
  border-color: rgba(166, 106, 16, 0.35);
  background: #fff4f8;
}

html[data-theme="light"] .payment-channel-detail,
html[data-theme="light"] .address-manager {
  border-color: rgba(76, 35, 57, 0.1);
}

html[data-theme="light"] .payment-qr,
html[data-theme="light"] .payment-copy-row {
  border-color: rgba(76, 35, 57, 0.1);
  background: rgba(76, 35, 57, 0.025);
}

html[data-theme="light"] .vote-gift-stats,
html[data-theme="light"] .vote-gift-stats div + div,
html[data-theme="light"] .vote-selection-row {
  border-color: rgba(76, 35, 57, 0.1);
}

html[data-theme="light"] .vote-order-bar {
  border-color: rgba(76, 35, 57, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(74, 35, 57, 0.15);
}

html[data-theme="light"] .vote-gift-card.active {
  border-color: #e55a46;
  background: linear-gradient(145deg, #f2258b 0%, #ff7047 58%, #ffb83f 100%);
  box-shadow: 0 10px 24px rgba(190, 33, 116, 0.2);
}

html[data-theme="light"] .vote-amount-field input,
html[data-theme="light"] .vote-clear-button,
html[data-theme="light"] .vote-submit-button:not(.is-ready) {
  border-color: rgba(76, 35, 57, 0.12);
  background: #f9f2f6;
  color: var(--ink);
}

html[data-theme="light"] .funds-flow-tabs button.active {
  background: rgba(231, 23, 114, 0.11);
}

html[data-theme="light"] .modal.booking-gate-modal {
  background: #fff8fb;
}

html[data-theme="light"] .booking-gate-content h2 {
  color: var(--ink);
}

@media (max-width: 520px) {
  .withdrawal-address-options {
    grid-template-columns: 1fr;
  }

  .payment-channel-detail dl div {
    display: grid;
    gap: 2px;
  }

  .payment-channel-detail dd {
    text-align: left;
  }

  .withdrawal-disabled-notice {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .withdrawal-disabled-notice button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .vote-rule-line {
    display: grid;
  }

  .vote-rule-line > span {
    width: fit-content;
  }

  .vote-total {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funds-flow-tabs button {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .booking-gate-content h2 {
    font-size: 26px;
  }
}

@media (max-width: 330px) {
  .payment-channel-options,
  .withdrawal-route-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .vote-order-bar {
    grid-template-columns: minmax(88px, 1fr) minmax(78px, 0.9fr) 42px;
  }

  .vote-submit-button {
    grid-column: 1 / -1;
    min-height: 46px;
  }

  body:has(.vote-order-bar) .support-float {
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 146px);
  }

  .dating-screen:has(.vote-order-bar) {
    padding-bottom: 160px;
  }
}

@media (max-width: 360px) {
  .vote-gift-toggle {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .vote-gift-stats {
    grid-template-columns: 1fr;
  }

  .vote-gift-stats div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .funds-flow-tabs button {
    padding-inline: 4px;
    font-size: 10px;
  }

  .booking-gate-levels {
    grid-template-columns: 1fr;
  }
}

/* Authentication and feedback */
.login-ref {
  min-height: calc(100dvh - var(--topbar-h) - var(--bottom-nav-h) - var(--safe-top) - var(--safe-bottom));
  align-content: start;
  gap: 20px;
  padding: clamp(24px, 6vh, 56px) clamp(16px, 5vw, 30px) 32px;
  background:
    linear-gradient(rgba(29, 6, 24, 0.42), rgba(91, 18, 76, 0.88)),
    url("../reference/desirezone/site/img/login-bg.f3a31f28.png") center/cover;
}

.login-ref .login-logo {
  min-height: 52px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: clamp(24px, 6.4vw, 34px);
}

.auth-card {
  width: min(100%, 500px);
  margin: 0 auto;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  padding: clamp(18px, 4.5vw, 26px);
  background: rgba(20, 7, 17, 0.74);
  box-shadow: 0 22px 52px rgba(7, 2, 6, 0.34);
  backdrop-filter: blur(14px);
}

.auth-intro {
  display: grid;
  gap: 5px;
  text-align: left;
}

.auth-intro h1,
.auth-intro p {
  margin: 0;
}

.auth-intro h1 {
  color: #fff;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.2;
  letter-spacing: 0;
}

.auth-intro p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.auth-eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-form-feedback {
  border: 1px solid rgba(220, 53, 69, 0.38);
  border-left: 4px solid #dc3545;
  border-radius: 7px;
  padding: 10px 11px;
  background: rgba(220, 53, 69, 0.1);
  color: #ffe6ed;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.auth-form-feedback[hidden] {
  display: none;
}

.auth-form-feedback.is-success {
  border-color: rgba(69, 212, 131, 0.42);
  border-left-color: #45d483;
  background: rgba(69, 212, 131, 0.11);
  color: #e3fff0;
}

.auth-field {
  gap: 6px;
}

.auth-field > label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 850;
}

.auth-input-shell {
  position: relative;
  display: grid;
}

.auth-card .auth-input-shell input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 11px 13px;
  background: rgba(7, 3, 7, 0.58);
  color: #fff;
  font-size: 16px;
  text-align: left;
}

.auth-card .auth-password-shell input {
  padding-right: 50px;
}

.auth-card .auth-input-shell input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.auth-card .auth-input-shell input:focus {
  border-color: rgba(244, 200, 106, 0.82);
  box-shadow: 0 0 0 3px rgba(244, 200, 106, 0.14);
}

.auth-password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.auth-password-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.auth-password-toggle:focus-visible {
  outline: 3px solid rgba(244, 200, 106, 0.25);
  outline-offset: 1px;
}

.auth-password-toggle .ui-icon {
  width: 21px;
  height: 21px;
}

.auth-field-hint,
.field-feedback {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.auth-field-hint {
  color: rgba(255, 255, 255, 0.58);
}

.field-feedback {
  color: #ff9db3;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.field-feedback:empty {
  display: none;
}

.auth-submit {
  min-height: 52px;
  border-radius: 8px;
}

.auth-switch {
  min-height: 44px;
  border-radius: 8px;
}

.auth-signup-cta {
  min-height: 56px;
  border-radius: 8px;
}

.auth-signup-cta > .ui-icon:first-child,
.auth-signup-arrow {
  border-radius: 7px;
}

.toast {
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, 6px);
}

.toast-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.toast-dismiss {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.toast-dismiss:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.toast-dismiss:focus-visible {
  outline: 3px solid rgba(244, 200, 106, 0.24);
  outline-offset: 1px;
}

.toast-dismiss .ui-icon {
  width: 18px;
  height: 18px;
}

.modal {
  overscroll-behavior: contain;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -22px 58px rgba(0, 0, 0, 0.36);
}

html.has-modal,
html.has-modal body {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 420px) {
  .login-ref {
    gap: 16px;
    padding: 20px 12px 26px;
  }

  .auth-card {
    padding: 17px 14px;
  }

  .auth-intro h1 {
    font-size: 24px;
  }

  .toast {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .toast-controls {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .toast-action {
    flex: 1 1 auto;
    width: auto;
  }

  .toast-dismiss {
    flex: 0 0 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

.support-float[data-support-positioned="true"] {
  top: var(--support-drag-y) !important;
  right: auto !important;
  bottom: auto !important;
  left: var(--support-drag-x) !important;
}

.support-fab,
.support-head {
  touch-action: none;
  cursor: grab;
}

.support-float.is-support-dragging,
.support-float.is-support-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

.support-float.is-support-dragging {
  will-change: left, top;
}

.support-fab {
  min-height: 42px;
  padding-inline: 12px;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(240, 42, 136, 0.28);
  font-size: 12px;
}

.support-fab .ui-icon {
  width: 18px;
  height: 18px;
}

.support-window {
  width: min(320px, calc(100vw - 20px));
  max-height: min(470px, calc(100dvh - 20px));
  border-radius: 12px;
}

.support-float.open .support-window {
  grid-template-rows: auto auto minmax(118px, 1fr) auto auto;
}

.support-head {
  grid-template-columns: 32px minmax(0, 1fr) 30px;
  gap: 8px;
  padding: 9px 10px;
}

.support-brand-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.support-brand-avatar .ui-icon {
  width: 18px;
  height: 18px;
}

.support-head-copy b {
  font-size: 13px;
}

.support-head-copy small,
.support-connection {
  font-size: 9px;
}

.support-close {
  width: 30px;
  height: 30px;
}

.support-session-note {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
  padding: 7px 10px;
}

.support-session-note > .ui-icon {
  width: 17px;
  height: 17px;
}

.support-session-note b {
  font-size: 10px;
}

.support-session-note small {
  font-size: 9px;
}

.support-messages {
  gap: 6px;
  padding: 9px 10px;
}

.support-msg {
  padding: 7px 9px;
}

.support-msg p {
  font-size: 12px;
}

.support-quick-actions {
  gap: 4px;
  padding: 7px 9px;
}

.support-quick-actions button {
  min-height: 27px;
  padding: 4px 8px;
  font-size: 10px;
}

.support-form {
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 6px;
  padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
}

.support-form textarea {
  min-height: 36px;
  max-height: 82px;
  padding: 8px 38px 8px 9px;
  font-size: 12px;
}

.support-send {
  width: 34px;
  height: 34px;
}

/* Fixed dark palette: purple and pink across every public frontend. */
:root,
html[data-theme="light"],
html[data-frontend-version="v2"],
html[data-frontend-version="v3"] {
  color-scheme: dark;
  --bg: #100a18;
  --paper: #1b1227;
  --paper-2: #261a35;
  --ink: #fff6fb;
  --muted: #c4b4ce;
  --line: rgba(210, 157, 245, 0.24);
  --brand: #ff4f9a;
  --brand-2: #9b6de0;
  --pink: #ff4f9a;
  --orange: #f6c761;
  --blue: #54d6ad;
  --gold: #f6c761;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

html[data-theme="light"],
html[data-theme="light"] body,
html[data-frontend-version="v2"],
html[data-frontend-version="v2"] body,
html[data-frontend-version="v3"],
html[data-frontend-version="v3"] body {
  background: #100a18 !important;
}

html[data-theme="light"] body,
html[data-frontend-version="v2"] body,
html[data-frontend-version="v3"] body,
html[data-theme="light"] .mobile-page,
html[data-frontend-version="v2"] .mobile-page,
html[data-frontend-version="v3"] .mobile-page {
  color: var(--ink) !important;
}

html[data-theme="light"] .mobile-page,
html[data-frontend-version="v2"] .mobile-page,
html[data-frontend-version="v3"] .mobile-page {
  background: var(--bg) !important;
  box-shadow: 0 0 0 1px rgba(210, 157, 245, 0.12), 0 22px 64px rgba(0, 0, 0, 0.46) !important;
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .bottom-nav,
html[data-theme="light"] .subpage-title,
html[data-frontend-version="v2"] .topbar,
html[data-frontend-version="v2"] .bottom-nav,
html[data-frontend-version="v2"] .subpage-title,
html[data-frontend-version="v3"] .topbar,
html[data-frontend-version="v3"] .bottom-nav,
html[data-frontend-version="v3"] .subpage-title {
  border-color: var(--line) !important;
  background: rgba(27, 18, 39, 0.96) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="light"] .brand,
html[data-theme="light"] .plain-title,
html[data-theme="light"] .section-title h2,
html[data-theme="light"] .subpage-title h1,
html[data-theme="light"] .back-btn,
html[data-frontend-version="v2"] .plain-title,
html[data-frontend-version="v2"] .section-title h2,
html[data-frontend-version="v2"] .subpage-title h1,
html[data-frontend-version="v2"] .back-btn,
html[data-frontend-version="v3"] .plain-title,
html[data-frontend-version="v3"] .section-title h2,
html[data-frontend-version="v3"] .subpage-title h1,
html[data-frontend-version="v3"] .back-btn {
  color: var(--ink) !important;
}

html[data-theme="light"] .card,
html[data-theme="light"] .notice,
html[data-theme="light"] .modal,
html[data-theme="light"] .vote-panel,
html[data-theme="light"] .account-form,
html[data-theme="light"] .account-summary,
html[data-theme="light"] .finance-card,
html[data-theme="light"] .profile-meta,
html[data-theme="light"] .mine-cell,
html[data-theme="light"] .video-card,
html[data-theme="light"] .support-window,
html[data-frontend-version="v2"] .card,
html[data-frontend-version="v2"] .notice,
html[data-frontend-version="v2"] .modal,
html[data-frontend-version="v2"] .vote-panel,
html[data-frontend-version="v2"] .account-form,
html[data-frontend-version="v2"] .account-summary,
html[data-frontend-version="v2"] .finance-card,
html[data-frontend-version="v2"] .profile-meta,
html[data-frontend-version="v2"] .mine-cell,
html[data-frontend-version="v2"] .video-card,
html[data-frontend-version="v2"] .support-window,
html[data-frontend-version="v3"] .card,
html[data-frontend-version="v3"] .notice,
html[data-frontend-version="v3"] .modal,
html[data-frontend-version="v3"] .vote-panel,
html[data-frontend-version="v3"] .account-form,
html[data-frontend-version="v3"] .account-summary,
html[data-frontend-version="v3"] .finance-card,
html[data-frontend-version="v3"] .profile-meta,
html[data-frontend-version="v3"] .mine-cell,
html[data-frontend-version="v3"] .video-card,
html[data-frontend-version="v3"] .support-window {
  border-color: var(--line) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow) !important;
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .field select,
html[data-frontend-version="v2"] .field input,
html[data-frontend-version="v2"] .field textarea,
html[data-frontend-version="v2"] .field select,
html[data-frontend-version="v3"] .field input,
html[data-frontend-version="v3"] .field textarea,
html[data-frontend-version="v3"] .field select {
  border-color: var(--line) !important;
  background: var(--paper-2) !important;
  color: var(--ink) !important;
}

html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder,
html[data-frontend-version="v2"] .field input::placeholder,
html[data-frontend-version="v2"] .field textarea::placeholder,
html[data-frontend-version="v3"] .field input::placeholder,
html[data-frontend-version="v3"] .field textarea::placeholder {
  color: var(--muted) !important;
}

html[data-theme="light"] .bottom-nav button,
html[data-frontend-version="v2"] .bottom-nav button,
html[data-frontend-version="v3"] .bottom-nav button {
  color: var(--muted) !important;
}

html[data-theme="light"] .bottom-nav button.active,
html[data-frontend-version="v2"] .bottom-nav button.active,
html[data-frontend-version="v3"] .bottom-nav button.active,
html[data-theme="light"] .link-btn,
html[data-frontend-version="v2"] .link-btn,
html[data-frontend-version="v3"] .link-btn {
  color: var(--pink) !important;
}

html[data-theme="light"] .primary,
html[data-theme="light"] button.primary,
html[data-frontend-version="v2"] .primary,
html[data-frontend-version="v2"] button.primary,
html[data-frontend-version="v3"] .primary,
html[data-frontend-version="v3"] button.primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, #ff4f9a, #9b6de0) !important;
  color: #210c25 !important;
}

html[data-theme="light"] .ghost,
html[data-frontend-version="v2"] .ghost,
html[data-frontend-version="v3"] .ghost {
  border-color: var(--line) !important;
  background: var(--paper-2) !important;
  color: var(--ink) !important;
}

html[data-theme="light"] .toast,
html[data-frontend-version="v2"] .toast,
html[data-frontend-version="v3"] .toast {
  border-color: var(--line) !important;
  background: #261a35 !important;
  color: var(--ink) !important;
}

html[data-theme="light"] .modal-backdrop,
html[data-frontend-version="v2"] .modal-backdrop,
html[data-frontend-version="v3"] .modal-backdrop {
  background: rgba(8, 4, 14, 0.76) !important;
}

html[data-theme="light"] .muted,
html[data-frontend-version="v2"] .muted,
html[data-frontend-version="v3"] .muted {
  color: var(--muted) !important;
}

.identity-verification-card {
  display: grid;
  gap: 14px;
}

.identity-verification-card h2,
.identity-verification-card p {
  margin: 0;
}

.identity-intro,
.identity-note {
  color: var(--muted);
  line-height: 1.5;
}

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

.identity-verification-form label {
  display: grid;
  gap: 6px;
}

.identity-verification-form input,
.identity-verification-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #e62978) 16%, #d9d6d8);
  border-radius: 9px;
  background: #fff;
  color: var(--ink, #171317);
}

.identity-verification-form input:focus,
.identity-verification-form select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #e62978) 17%, transparent);
  border-color: var(--accent, #e62978);
}

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

.identity-file-grid label {
  min-width: 0;
  padding: 11px;
  border: 1px dashed color-mix(in srgb, var(--accent, #e62978) 35%, #d9d6d8);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #e62978) 4%, transparent);
}

.identity-file-grid input[type="file"] {
  min-width: 0;
  width: 100%;
  padding: 8px;
  font-size: 12px;
}

.identity-file-grid small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.identity-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #e62978) 8%, #fff);
}

.identity-status span {
  color: var(--muted);
  font-size: 12px;
}

.identity-status strong {
  color: var(--ink);
  font-size: 14px;
}

.identity-status small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.identity-status-approved strong { color: #16845f; }
.identity-status-rejected strong { color: #b73556; }
.identity-status-pending strong { color: #a66b00; }

.identity-review-note {
  padding: 11px 12px;
  border-radius: 8px;
  background: #fff1f4;
  color: #753548;
}

.identity-review-note p {
  margin-top: 4px;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

@media (max-width: 360px) {
  .support-window {
    width: min(304px, calc(100vw - 16px));
    max-height: min(440px, calc(100dvh - 16px));
  }
}

@media (max-width: 460px) {
  .identity-file-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep late-loaded shared states in the fixed dark palette. */
.identity-review-note {
  border: 1px solid var(--line) !important;
  background: var(--paper-2) !important;
  color: var(--muted) !important;
}

::selection {
  background: rgba(255, 79, 154, 0.38);
  color: var(--ink);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #21152f inset;
  transition: background-color 9999s ease-out 0s;
}
