﻿@import url("../../../shared-components/assets/prototype-components.css");

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

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

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

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

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

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff4f7 0%, #fbf8fb 42%, var(--bg) 100%);
}

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

.prototype-top-nav {
  grid-template-columns: minmax(0, 1fr) 108px;
  column-gap: 12px;
}

.prototype-top-nav.has-back {
  grid-template-columns: 28px minmax(0, 1fr) 108px;
  column-gap: 6px;
  padding-left: 20px;
}

.prototype-top-nav.has-back .back {
  width: 28px;
  justify-self: start;
}

.prototype-top-nav .nav-title {
  justify-self: start;
  width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prototype-top-nav mp-capsule {
  justify-self: end;
}

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

prototype-switch {
  min-width: 0;
}

.nav-switch {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.nav-switch a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-switch a.active {
  color: var(--text);
}

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

.back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

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

.sub-page .scroll {
  inset-bottom: var(--safe-bottom);
  padding-bottom: calc(var(--safe-bottom) + 18px);
}

.phone.has-floating-notice .scroll {
  inset-top: var(--notice-scroll-top, 306px);
}

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

.bottom-tabs {
  grid-template-columns: repeat(5, 1fr);
  padding-left: 10px;
  padding-right: 10px;
}

.tab { font-size: 11px; }

.tab-disabled {
  cursor: default;
  pointer-events: none;
}

.tab-icon {
  position: relative;
  width: 29px;
  height: 29px;
  font-size: 22px;
}

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

.section-head[id] {
  scroll-margin-top: 58px;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.section-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.hero-card,
.card,
.person-card,
.record-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.hero-card {
  padding: 16px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 88% 10%, rgba(124, 92, 252, 0.16), transparent 66px),
    linear-gradient(135deg, #fff, #fff4f7);
}

.intro-card {
  height: 172px;
  display: grid;
  align-content: space-between;
}

.intro-image-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.intro-image-card .hero-setting {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(12px);
}

.intro-card .hero-title {
  align-items: flex-start;
}

.intro-card .hero-title h1 {
  max-width: 196px;
  font-size: 22px;
  line-height: 1.22;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.hero-title span,
.hero-setting {
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}

.hero-setting {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-setting .ri {
  font-size: 14px;
  line-height: 1;
}

.hero-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.h-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.status-card {
  flex: 0 0 158px;
  min-height: 198px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.status-card.cover {
  position: relative;
  flex-basis: 154px;
  min-height: 194px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
}

.status-card.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 21, 0.02) 16%, rgba(7, 11, 21, 0.25) 56%, rgba(7, 11, 21, 0.84) 100%);
}

.status-card.cover .status-body {
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
  padding: 10px 10px 10px;
  color: #fff;
}

.status-card .photo {
  height: 104px;
  background-position: center;
  background-size: cover;
}

.status-body {
  padding: 10px 11px 12px;
}

.status-card.cover .status-body strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.15;
  flex-wrap: wrap;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.status-inline.success { background: #dcfce7; color: #15803d; }
.status-inline.warning { background: #fef3c7; color: #b45309; }
.status-inline.purple { background: var(--purple-soft); color: var(--purple); }
.status-inline.blue { background: #dbeafe; color: #1d4ed8; }

.status-body strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.status-body small {
  display: block;
  margin: 4px 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.status-empty-card {
  min-height: 194px;
  margin-bottom: 16px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 77, 109, 0.08);
  border-radius: 16px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 77, 109, 0.08), transparent 86px),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

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

.status-empty-card h3 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.status-empty-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.status-empty-action {
  min-height: 34px;
  margin-top: 2px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff4f7;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.tag.purple { background: var(--purple-soft); color: var(--purple); }
.tag.success { background: #dcfce7; color: #15803d; }
.tag.warning { background: #fef3c7; color: #b45309; }
.tag.blue { background: #dbeafe; color: #1d4ed8; }
.tag.gray { background: #f2f2f5; color: var(--muted); }

.tag.ink { background: #e8ecff; color: #3143b8; }

.person-list,
.record-list,
.settings-list {
  display: grid;
  gap: 12px;
}

.filter-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(16px);
}

.filter-tabs button {
  min-height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.filter-tabs .active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.person-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-xs);
}

.person-main { min-width: 0; }

.person-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.person-top strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online,
.offline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.offline { color: var(--warning); }

.online.dating { color: var(--primary); }

.online::before,
.offline::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.person-main p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-row.right-only {
  display: flex;
  justify-content: flex-end;
}

.action-row.right-only .mini-btn {
  min-width: calc((100% - 8px) / 2);
}

.mini-btn {
  min-height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff4f7;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.mini-btn.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.mini-btn.disabled {
  background: #f1f0f4;
  color: var(--weak);
  pointer-events: none;
}

.mini-btn.ghost-btn {
  background: #f2f2f5;
  color: var(--muted);
}

.full-row { grid-template-columns: 1fr; }

.notice-stack {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 52px;
  z-index: 20;
  display: grid;
  gap: 8px;
}

.notice-float {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 102px;
  padding: 14px 14px 14px 13px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.notice-float.hidden {
  display: none;
}

.notice-float.urgent {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 244, 0.98)),
    linear-gradient(135deg, rgba(255, 77, 109, 0.05), rgba(124, 92, 252, 0.04));
  border: 1px solid rgba(255, 77, 109, 0.14);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.16);
}

.notice-float.reminder {
  min-height: 78px;
  background: linear-gradient(135deg, rgba(228, 244, 255, 0.98), rgba(239, 246, 255, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.notice-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.notice-avatar.reminder {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #2563eb;
  font-size: 22px;
}

.notice-copy {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.notice-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.notice-kicker.blue {
  color: #2563eb;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

.notice-kicker.blue .notice-dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.notice-float strong {
  display: block;
}

.notice-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notice-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-float small {
  display: block;
}

.notice-body {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-actions {
  display: grid;
  gap: 8px;
  align-self: stretch;
  align-content: center;
  min-width: 78px;
  justify-items: stretch;
}

.pill-action {
  min-height: 36px;
  min-width: 70px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.pill-action.secondary {
  background: #f2f2f5;
  color: var(--muted);
  box-shadow: none;
}

.pill-action.blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.22);
}

.pill-action.ghost {
  background: rgba(255, 255, 255, 0.9);
  color: #4b5563;
  box-shadow: var(--shadow-xs);
}

.switch-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 6;
  backdrop-filter: blur(16px);
}

.switch-tabs a,
.switch-tabs button {
  min-height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.switch-tabs .active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.record-card {
  padding: 16px;
}

.record-top {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
}

.record-top .avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.record-top strong,
.record-top small {
  display: block;
}

.record-top strong { font-size: 15px; }
.record-top small { margin-top: 3px; color: var(--weak); font-size: 12px; }

.record-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.record-empty-card {
  min-height: 468px;
  margin-top: 16px;
  padding: 38px 26px;
  border-radius: 22px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 77, 109, 0.09), transparent 118px),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.record-empty-card.history-empty {
  min-height: 520px;
}

.record-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 28px;
}

.record-empty-card h2 {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.25;
}

.record-empty-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.record-empty-action {
  min-height: 38px;
  margin-top: 4px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff4f7;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.time-option-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.time-option-list span,
.time-option-list button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  border: 1px solid var(--line);
}

.time-option-list button.selected {
  background: #fff4f7;
  color: var(--primary);
  border-color: transparent;
}

.record-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.record-actions.room-action {
  display: flex;
  justify-content: flex-end;
}

.record-actions.room-action .mini-btn {
  min-width: 104px;
  padding: 0 18px;
}

.call-page {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 77, 109, 0.24), transparent 142px),
    linear-gradient(180deg, #2a2032 0%, #17182b 100%);
  color: #fff;
}

.unified-call-page .status-bar,
.unified-call-page .nav {
  position: relative;
  z-index: 6;
}

.call-page .status-bar,
.call-page .phone-indicators { color: #fff; }

.call-page .prototype-top-nav .nav-title { color: #fff; }

.call-page .battery { background: rgba(255,255,255,0.24); }
.call-page .signal i { background: #fff; }

.call-body {
  position: absolute;
  inset: 108px 0 0;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 14px 20px calc(var(--safe-bottom) + 22px);
}

.call-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.voice-call-state {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-call-state:target,
.waiting-call-state:target {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-call-state:target ~ .voice-call-state,
.waiting-call-state:target ~ .voice-call-state {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.date-room-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 185, 48, 0.18), transparent 88px),
    radial-gradient(circle at 84% 30%, rgba(255, 77, 109, 0.2), transparent 108px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%);
}

.date-room-bg.video-bg {
  background:
    linear-gradient(180deg, rgba(26, 26, 46, 0.18), rgba(26, 26, 46, 0.76)),
    radial-gradient(circle at 50% 32%, rgba(255, 77, 109, 0.24), transparent 144px);
}

.date-room {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.room-stage-card,
.video-upgrade-card {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
}

.room-stage-card {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
}

.room-stage-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.room-stage-card small {
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  line-height: 1.4;
}

.room-badge {
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 77, 109, 0.18);
  color: #ffd8df;
  font-size: 11px;
  font-weight: 700;
}

.room-badge.soft {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.78);
}

.date-pair {
  min-height: 292px;
  padding: 14px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  align-items: center;
  background: rgba(255,255,255,0.08);
}

.date-person {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.date-avatar {
  width: 88px;
  height: 88px;
  border: 4px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
}

.date-avatar.large {
  width: 108px;
  height: 108px;
}

.waiting-room-card {
  min-height: 292px;
  padding: 22px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  text-align: center;
}

.waiting-room-card strong {
  font-size: 22px;
}

.waiting-room-card small {
  color: rgba(255,255,255,0.64);
  font-size: 12px;
}

.waiting-pulse {
  width: 44px;
  height: 44px;
  margin-top: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,77,109,0.16);
  color: #ffd8df;
  font-size: 22px;
  animation: pulseWaiting 1.5s ease-in-out infinite;
}

.waiting-countdown {
  min-width: 96px;
  min-height: 58px;
  padding: 7px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.waiting-countdown strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.waiting-countdown span {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 700;
}

@keyframes pulseWaiting {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.08); opacity: 1; }
}

.date-person strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-person small {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
}

.date-link {
  display: grid;
  place-items: center;
  gap: 8px;
  color: #fff;
}

.date-link .ri {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  font-size: 22px;
  box-shadow: var(--shadow-primary);
}

.date-link span {
  font-size: 14px;
  font-weight: 800;
}

.voice-center {
  width: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.voice-avatar {
  width: 138px;
  height: 138px;
  border: 5px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
}

.call-name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.call-meta {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.timer {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-weight: 700;
}

.video-upgrade-card {
  width: 100%;
  min-height: 68px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.video-upgrade-card strong,
.video-upgrade-card small {
  display: block;
}

.video-upgrade-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.video-upgrade-card small {
  margin-top: 4px;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  line-height: 1.35;
}

.upgrade-btn {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.call-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-self: end;
}

.waiting-controls {
  grid-template-columns: 1fr;
  justify-items: center;
}

.waiting-controls .control {
  min-width: 84px;
}

.control {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.76);
  font-size: 12px;
}

.control span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 24px;
}

.control.end span {
  background: var(--error);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.36);
}

.video-stage {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(26,26,46,0.18), rgba(26,26,46,0.68)),
    url("../../../assets/avatar-qingfeng-gray-shirt.png");
  background-position: center;
  background-size: cover;
}

.video-mini {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 76px;
  height: 104px;
  border: 2px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  background-image: url("../../../assets/avatar-kuangnani-blue-blazer.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.video-info {
  align-self: end;
  margin-bottom: 28px;
}

.video-date-layout {
  position: relative;
  min-height: 372px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
  transition: min-height 260ms ease, border-radius 260ms ease;
}

.date-video-main,
.date-video-self {
  background-position: center;
  background-size: cover;
}

.date-video-main {
  position: absolute;
  inset: 0;
}

.date-video-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(13, 14, 28, 0.58) 100%);
}

.date-video-main span,
.date-video-self span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.date-video-self {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 84px;
  height: 116px;
  border: 2px solid rgba(255,255,255,0.74);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.video-close-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,0.94);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  backdrop-filter: blur(14px);
}

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

.mode-grid,
.time-grid {
  display: grid;
  gap: 10px;
}

.mode-grid { grid-template-columns: 1fr 1fr; }

.choice-card,
.time-card {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.choice-card strong,
.time-card strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.choice-card small,
.time-card small {
  color: var(--muted);
  font-size: 12px;
}

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

.time-slot {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.time-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.time-slot-head strong {
  font-size: 15px;
}

.slot-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f8f6f8;
  color: var(--muted);
  font-size: 18px;
}

.time-fields {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 8px;
}

.time-fields button {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 13px;
  background: #faf9fb;
  text-align: left;
}

.time-fields small {
  color: var(--weak);
  font-size: 11px;
}

.time-fields strong {
  font-size: 12px;
  white-space: nowrap;
}

.add-time {
  min-height: 44px;
  border: 1px dashed #ddd7e8;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--weak);
  font-size: 13px;
  font-weight: 700;
}

.add-time.disabled {
  background: #f7f6f8;
}

.bottom-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 92px;
  padding: 12px 24px var(--safe-bottom);
  background: linear-gradient(180deg, rgba(255,255,255,0.56), #fff 36%);
  z-index: 10;
}

.ended-card {
  margin-top: 26px;
  padding: 30px 20px;
  text-align: center;
}

.result-page .ended-card {
  margin-top: 20px;
  padding: 38px 20px 36px;
}

.ended-card .voice-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  border: 4px solid #fff;
}

.result-page .ended-card .voice-avatar {
  width: 128px;
  height: 128px;
  margin-bottom: 20px;
}

.ended-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

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

.settings-item {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.settings-primary {
  min-height: 82px;
  border: 1px solid rgba(255, 77, 109, 0.12);
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.1);
}

.settings-primary .settings-icon {
  background: var(--grad-primary);
  color: #fff;
}

.settings-group {
  display: grid;
  gap: 10px;
}

.settings-group-title {
  padding: 2px 4px 0;
  color: var(--weak);
  font-size: 12px;
  font-weight: 700;
}

.settings-dependent {
  margin-left: 0;
}

.settings-dependent.disabled {
  opacity: 0.58;
}

.settings-dependent.disabled .settings-icon {
  background: #f2f2f5;
  color: var(--weak);
}

.settings-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 21px;
}

.settings-copy strong,
.settings-copy small {
  display: block;
}

.settings-copy strong { font-size: 15px; }
.settings-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.toggle {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  padding: 3px;
  background: var(--grad-primary);
  transition: background 0.16s ease;
}

.toggle::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transform: translateX(22px);
  transition: transform 0.16s ease;
}

.toggle.off {
  background: #d8d3d6;
}

.toggle:disabled {
  cursor: default;
}

.toggle.off::before {
  transform: translateX(0);
}

.apply-sheet-mask,
.refund-modal-mask,
.vip-modal-mask,
.coin-recharge-mask,
.hangup-confirm-mask {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(26, 26, 46, 0.38);
  backdrop-filter: blur(8px);
}

.apply-sheet-mask {
  z-index: 45;
  align-items: flex-end;
}

.coin-recharge-mask {
  z-index: 68;
  align-items: flex-end;
}

.hangup-confirm-mask {
  z-index: 76;
  place-items: center;
  padding: 24px;
}

.apply-sheet-mask.show {
  display: flex;
}

.coin-recharge-mask.show {
  display: flex;
}

.hangup-confirm-mask.show {
  display: grid;
}

.apply-sheet {
  position: relative;
  width: 100%;
  max-height: calc(100% - 132px);
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 14px 20px calc(var(--safe-bottom) + 18px);
  border-radius: 26px 26px 0 0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 -16px 42px rgba(26, 26, 46, 0.18);
  animation: applySheetIn 180ms ease-out;
}

@keyframes applySheetIn {
  from {
    opacity: 0.88;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.apply-sheet-handle {
  width: 42px;
  height: 4px;
  justify-self: center;
  border-radius: 999px;
  background: #e4dfe5;
}

.apply-sheet-close,
.refund-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7f5f7;
  color: var(--muted);
  font-size: 19px;
}

.apply-sheet-head {
  min-height: 54px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 42px;
}

.apply-sheet-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 23px;
}

.apply-sheet-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.apply-sheet-head p {
  margin: 5px 0 0;
  color: var(--weak);
  font-size: 13px;
}

.apply-target-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #faf8fb);
}

.apply-target-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-sm);
}

.apply-target-copy {
  min-width: 0;
}

.apply-target-copy div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apply-target-copy strong {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apply-target-copy div span {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
}

.apply-target-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.apply-pay-card {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #faf9fb;
  box-shadow: none;
}

.apply-pay-card span,
.apply-pay-card small {
  display: block;
}

.apply-pay-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.apply-pay-card small {
  margin-top: 3px;
  color: var(--weak);
  font-size: 11px;
}

.apply-pay-card strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.apply-pay-card .ri {
  color: var(--muted);
  font-size: 16px;
}

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

.apply-wallet-row div {
  min-height: 54px;
  padding: 10px 6px;
  border-radius: 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.apply-wallet-row span {
  color: var(--weak);
  font-size: 11px;
  white-space: nowrap;
}

.apply-wallet-row strong {
  font-size: 15px;
}

.apply-vip-entry {
  min-height: 54px;
  padding: 9px 11px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  background: linear-gradient(135deg, #fff8e8, #fff);
  box-shadow: var(--shadow-xs);
  color: #8a5a19;
  text-align: left;
}

.apply-vip-entry > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0c7;
  color: #b7791f;
  font-size: 18px;
}

.apply-vip-entry div {
  min-width: 0;
}

.apply-vip-entry strong,
.apply-vip-entry small {
  display: block;
}

.apply-vip-entry strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apply-vip-entry small {
  margin-top: 3px;
  color: #a27a42;
  font-size: 11px;
}

.apply-vip-entry > .ri {
  color: #b7791f;
  font-size: 18px;
}

.apply-refund-link {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--weak);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.apply-refund-link span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.apply-refund-link span .ri {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  font-size: 12px;
}

.apply-submit,
.refund-modal-btn {
  min-height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
  font-size: 16px;
  font-weight: 800;
}

.refund-modal-mask {
  z-index: 70;
  place-items: center;
  padding: 24px;
}

.refund-modal-mask.show,
.vip-modal-mask.show {
  display: grid;
}

.refund-modal-card {
  position: relative;
  width: 100%;
  max-width: 322px;
  display: grid;
  gap: 16px;
  padding: 24px 18px 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.refund-modal-card h2 {
  margin: 0;
  font-size: 19px;
}

.refund-rules-list {
  display: grid;
  gap: 5px;
  text-align: left;
}

.refund-rules-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.vip-modal-mask {
  z-index: 80;
}

.vip-limit-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 54px 22px calc(var(--safe-bottom) + 16px);
  background: linear-gradient(180deg, #fff4df 0%, #f7f1ff 48%, #fff 100%);
  overflow-y: auto;
  scrollbar-width: none;
}

.vip-limit-panel::-webkit-scrollbar {
  display: none;
}

.vip-close {
  position: absolute;
  right: 18px;
  top: 54px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--weak);
  font-size: 20px;
}

.vip-limit-hero {
  min-height: 188px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.44), transparent 92px),
    linear-gradient(135deg, #4a2b20, #a36a3d 58%, #f2c48a);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.vip-hero-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #ffefc2;
  font-size: 32px;
}

.vip-kicker {
  min-height: 26px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff4cf;
  font-size: 12px;
  font-weight: 800;
}

.vip-limit-hero h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.24;
}

.vip-limit-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

.vip-benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vip-benefit {
  min-height: 84px;
  padding: 12px;
  border-radius: 18px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.vip-benefit .ri {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0c7;
  color: #b7791f;
  font-size: 18px;
}

.vip-benefit strong,
.vip-benefit span {
  display: block;
}

.vip-benefit strong {
  font-size: 15px;
}

.vip-benefit span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.vip-limit-plans .section-head {
  margin-bottom: 10px;
}

.plan-save {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff2d7;
  color: #9a650f;
  font-size: 12px;
  font-weight: 800;
}

.vip-plan-row {
  width: 100%;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  text-align: left;
}

.vip-plan-row + .vip-plan-row {
  margin-top: 8px;
}

.vip-plan-row strong,
.vip-plan-row span {
  display: block;
}

.vip-plan-row strong {
  font-size: 15px;
}

.vip-plan-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.vip-plan-row b {
  color: #7a4f19;
  font-size: 18px;
}

.vip-plan-row.selected {
  border-color: #ffb930;
  background: #fffaf0;
}

.vip-open-btn {
  min-height: 50px;
  margin-top: auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
  font-size: 16px;
  font-weight: 800;
}

.recharge-action-sheet {
  width: 100%;
  min-height: 500px;
  padding: 22px 18px calc(var(--safe-bottom) + 16px);
  border-radius: 28px 28px 0 0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 -16px 42px rgba(26, 26, 46, 0.18);
  animation: applySheetIn 180ms ease-out;
}

.recharge-title-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  margin-bottom: 12px;
}

.recharge-title-row h2 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.recharge-title-row h2::before,
.recharge-title-row h2::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 14px;
  margin: 0 16px 2px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, transparent 0 3px, rgba(107, 107, 128, 0.36) 3px 5px, transparent 5px 8px, rgba(107, 107, 128, 0.28) 8px 10px, transparent 10px 100%);
  filter: blur(0.2px);
}

.recharge-title-row h2::after {
  transform: scaleX(-1);
}

.recharge-title-row .sheet-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #28283a;
  font-size: 26px;
}

.recharge-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 16px 16px;
  color: #5e5863;
  font-size: 15px;
  font-weight: 600;
}

.recharge-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.recharge-meta-row .ri,
.recharge-action-sheet .coin-package .ri {
  color: #ffae1c;
  font-size: 18px;
  filter: drop-shadow(0 1px 1px rgba(255, 168, 24, 0.2));
}

.recharge-meta-row strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.recharge-promo {
  min-height: 64px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  padding: 7px 10px 7px 16px;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(100deg, #fff0d7 0%, #ffe6ef 58%, #f0edff 100%);
}

.recharge-promo .sheet-icon.coin {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff8e8;
  color: #c88716;
  font-size: 24px;
  box-shadow: var(--shadow-xs);
}

.recharge-promo strong,
.recharge-promo small {
  display: block;
  min-width: 0;
}

.recharge-promo strong {
  color: #3a3348;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.recharge-promo small {
  margin-top: 4px;
  color: #7b6f80;
  font-size: 12px;
}

.recharge-package-row {
  display: flex;
  gap: 8px;
  margin: 0 -18px;
  padding: 0 18px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.recharge-package-row::-webkit-scrollbar {
  display: none;
}

.recharge-action-sheet .coin-package {
  position: relative;
  flex: 0 0 104px;
  min-height: 136px;
  padding: 32px 8px 17px;
  border: 1.5px solid #ffe0ad;
  border-radius: 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  background: #fff;
  text-align: center;
}

.recharge-action-sheet .coin-package span {
  position: absolute;
  top: 0;
  left: 0;
  max-width: calc(100% + 2px);
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 11px 0 12px 0;
  background: #ffeac0;
  color: #7b5426;
  font-size: 13px;
  font-weight: 800;
}

.recharge-action-sheet .coin-package:first-child span {
  background: linear-gradient(135deg, #8361ff 0%, #ff4ea6 100%);
  color: #fff;
}

.recharge-action-sheet .coin-package strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6a472c;
  font-size: 25px;
  font-weight: 500;
}

.recharge-action-sheet .coin-package small {
  color: #6a472c;
  font-size: 16px;
  font-weight: 500;
}

.recharge-action-sheet .coin-package.selected {
  border-color: #ffd996;
  background: #fff8e9;
  box-shadow: inset 0 0 0 1px #ffe1a8;
}

.recharge-pay-btn {
  width: calc(100% - 72px);
  min-height: 58px;
  margin: 27px auto 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #c78262 0%, #f2d1c5 50%, #d3997b 100%);
  color: #5b3426;
  font-size: 19px;
  font-weight: 700;
}

.recharge-vip-link {
  min-height: 36px;
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--weak);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.hangup-confirm-card {
  width: 100%;
  max-width: 318px;
  padding: 24px 18px 18px;
  border-radius: 24px;
  display: grid;
  justify-items: center;
  gap: 13px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hangup-confirm-card h2 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.hangup-confirm-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hangup-confirm-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.hangup-confirm-actions button,
.hangup-confirm-actions a {
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f5;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hangup-confirm-actions a {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.hangup-confirm-actions .primary-action {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.date-call-page {
  overflow: hidden;
}

.date-call-page .prototype-top-nav .nav-title {
  color: #fff;
}

.date-call-content {
  position: absolute;
  inset: 108px 0 0;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 14px 18px calc(var(--safe-bottom) + 18px);
}

.date-call-stack {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.phase-card,
.pair-card,
.date-call-note,
.overtime-panel,
.joined-card,
.disconnect-card {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 16px 38px rgba(0,0,0,0.2);
  backdrop-filter: blur(18px);
}

.phase-card {
  position: relative;
  min-height: 92px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 7px;
}

.call-overtime-page .phase-card {
  padding-right: 94px;
}

.call-overtime-page .call-duration {
  position: absolute;
  top: 16px;
  right: 14px;
}

.phase-overtime-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-width: 64px;
  min-height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-primary);
}

.phase-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.phase-card small {
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  line-height: 1.4;
}

.phase-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phase-badge {
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 77, 109, 0.2);
  color: #ffd8df;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.phase-badge.blue {
  background: rgba(76, 139, 245, 0.2);
  color: #dce8ff;
}

.phase-badge.orange {
  background: rgba(255, 157, 66, 0.2);
  color: #ffe1c2;
}

.call-duration {
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pair-card {
  min-height: 292px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  align-items: center;
}

.pair-card.waiting {
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  gap: 10px;
}

.call-waiting-page .pair-card.waiting {
  min-height: 420px;
  align-content: center;
}

.pair-person {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.pair-person .date-avatar {
  width: 92px;
  height: 92px;
  border: 0;
}

.date-avatar.pending {
  position: relative;
  overflow: hidden;
  filter: none;
  opacity: 1;
}

.date-avatar.pending::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 29, 44, 0.36);
}

.date-avatar.pending::before {
  content: "...";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.9);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
}

.pair-person strong {
  max-width: 112px;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pair-person small {
  color: rgba(255,255,255,0.62);
  font-size: 11px;
}

.mic-status {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 15px;
}

.mic-status.off {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}

.avatar-video-invite {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.46);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.avatar-video-invite.active {
  border-color: transparent;
  background: #fff;
  color: var(--primary);
}

.pending-pill {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.58);
  font-size: 11px;
  font-weight: 700;
}

.call-voice-room-page .pair-card {
  min-height: 452px;
  padding: 124px 14px 24px;
  align-items: start;
}

.call-voice-room-page .pair-link {
  padding-top: 34px;
}

.call-pending-page .pair-link {
  padding-top: 20px;
}

.call-voice-room-page .pair-person {
  align-content: start;
}

.waiting-countdown.compact {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 0;
  border-radius: 50%;
  align-items: center;
  background: var(--grad-primary);
  box-shadow: var(--shadow-primary);
}

.waiting-countdown.compact strong {
  font-size: 28px;
}

.pair-link {
  display: grid;
  place-items: center;
  gap: 8px;
}

.pair-link .ri {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  box-shadow: var(--shadow-primary);
  font-size: 23px;
}

.pair-link strong {
  font-size: 14px;
}

.pair-link small {
  color: rgba(255,255,255,0.58);
  font-size: 10px;
}

.waiting-countdown.room {
  min-width: 106px;
}

.date-call-note,
.overtime-panel {
  min-height: 72px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.date-call-note strong,
.date-call-note small,
.overtime-panel strong,
.overtime-panel small {
  display: block;
}

.date-call-note strong,
.overtime-panel strong {
  font-size: 14px;
  line-height: 1.25;
}

.date-call-note small,
.overtime-panel small {
  margin-top: 4px;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  line-height: 1.35;
}

.date-call-action {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.date-call-action.disabled,
.date-call-action:disabled {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.42);
  box-shadow: none;
}

.date-call-action.orange {
  color: #de7a00;
}

.joined-card,
.disconnect-card {
  min-height: 364px;
  padding: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  text-align: center;
}

.joined-card .date-avatar,
.disconnect-card .date-avatar {
  width: 116px;
  height: 116px;
}

.joined-card h2,
.disconnect-card h2 {
  margin: 0;
  font-size: 22px;
}

.joined-card p,
.disconnect-card p {
  max-width: 260px;
  margin: 0;
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  line-height: 1.5;
}

.call-joined-page .joined-card {
  min-height: 452px;
}

.video-room-frame {
  position: relative;
  min-height: 498px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
  transition: min-height 280ms ease, opacity 280ms ease, transform 280ms ease;
}

.call-video-page .video-room-frame {
  min-height: 452px;
}

.video-room-main,
.video-room-self {
  background-position: center;
  background-size: cover;
}

.video-room-main {
  position: absolute;
  inset: 0;
}

.video-room-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,14,28,0.08) 0%, rgba(13,14,28,0.12) 42%, rgba(13,14,28,0.66) 100%);
}

.video-room-main.pending::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(42,191,169,0.2), transparent 38%),
    linear-gradient(180deg, rgba(13,14,28,0.22) 0%, rgba(13,14,28,0.36) 42%, rgba(13,14,28,0.78) 100%);
}

.video-room-main.pending::before {
  content: "...";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.92);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
}

.video-room-self {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 86px;
  height: auto;
  aspect-ratio: 354 / 452;
  border: 2px solid rgba(255,255,255,0.76);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.24);
}

.video-room-name,
.video-room-self .video-self-label,
.video-mic-status,
.video-camera-toggle {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.video-room-name {
  left: 14px;
  bottom: 14px;
  min-height: 28px;
  padding: 5px 11px;
  background: rgba(0,0,0,0.34);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.video-room-self .video-self-label {
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.28);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.video-mic-status {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.34);
  color: #fff;
  font-size: 16px;
}

.video-mic-status.off {
  background: rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.72);
}

.video-mic-status.peer {
  right: 14px;
  bottom: 14px;
}

.video-camera-toggle {
  right: 14px;
  bottom: 14px;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.94);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.video-action-stack {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.video-action-stack .video-camera-toggle {
  position: static;
}

.video-camera-toggle.overtime {
  border: 0;
  background: #fff;
  color: var(--primary);
}

.video-disconnect-countdown {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  transform: translate(-50%, -50%);
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 16px 34px rgba(42,191,169,0.34);
}

.video-disconnect-countdown strong {
  font-size: 27px;
  line-height: 1;
}

.video-disconnect-countdown span {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.86;
}

.room-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-self: end;
}

.room-controls.waiting-only {
  grid-template-columns: 1fr;
  justify-items: center;
}

.room-control {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.76);
  font-size: 12px;
}

.room-control span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 24px;
}

.room-control.off span {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.48);
}

.room-control.end span {
  background: var(--error);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.36);
}

.overtime-price {
  min-width: 108px;
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.92);
  color: #de7a00;
  font-size: 12px;
  font-weight: 800;
}

.disconnect-countdown {
  min-width: 112px;
  min-height: 64px;
  padding: 8px 18px;
  border-radius: 22px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.12);
}

.disconnect-countdown strong {
  font-size: 38px;
  line-height: 1;
}

.disconnect-countdown span {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 700;
}

.call-recharge-mask.show {
  display: flex;
}

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

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

.room-card-demo-page .date-call-content {
  padding-bottom: 22px;
}

.room-card-transition-demo {
  overflow: hidden;
  transform-origin: center top;
  transition:
    min-height 260ms ease,
    padding 260ms ease,
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.room-card-transition-demo.is-switching {
  transform: translateY(3px) scale(0.985);
}

.room-card-transition-demo .phase-topline,
.room-card-transition-demo strong,
.room-card-transition-demo small,
.room-card-transition-demo .phase-overtime-btn {
  transition: opacity 180ms ease, transform 180ms ease;
}

.room-card-transition-demo.is-switching .phase-topline,
.room-card-transition-demo.is-switching strong,
.room-card-transition-demo.is-switching small,
.room-card-transition-demo.is-switching .phase-overtime-btn {
  opacity: 0;
  transform: translateY(-6px);
}

.room-card-transition-demo.demo-accent-blue {
  background: rgba(76, 139, 245, 0.15);
  border-color: rgba(140, 179, 255, 0.22);
}

.room-card-transition-demo.demo-accent-orange {
  background: rgba(255, 157, 66, 0.16);
  border-color: rgba(255, 196, 120, 0.24);
}

.room-card-transition-demo.demo-accent-green {
  background: rgba(42, 203, 142, 0.14);
  border-color: rgba(116, 230, 184, 0.22);
}

.room-card-transition-demo .phase-overtime-btn.demo-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.room-demo-controls {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scrollbar-width: none;
}

.room-demo-controls::-webkit-scrollbar {
  display: none;
}

.room-demo-controls button {
  flex: 0 0 auto;
  min-width: 54px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
}

.room-demo-controls button.active {
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.24);
  color: #fff;
}

