:root {
  --primary-500: #3676e0;
  --gray-900: #111827;
  --accent-green: #fb7299;
  --t-bg: #f9fafb;
  --t-bg-secondary: #ffffff;
  --t-bg-card: rgba(255, 255, 255, 0.82);
  --t-bg-hover: rgba(0, 0, 0, 0.03);
  --t-bg-active: rgba(0, 0, 0, 0.05);
  --t-text: #111827;
  --t-text-secondary: #4b5563;
  --t-text-muted: #6b7280;
  --t-text-dimmer: #9ca3af;
  --t-border: #e5e7eb;
  --t-border-hover: #d1d5db;
  --dv-green: #fb7299;
  --dv-green-dim: rgba(251, 114, 153, 0.15);
  --dv-green-glow: rgba(251, 114, 153, 0.4);
  --dv-nav-bg: rgba(255, 255, 255, 0.85);
  --dv-stats-bg: rgba(240, 240, 240, 0.8);
}

.dark {
  color-scheme: dark;
  --t-bg: #000000;
  --t-bg-secondary: #0a0a0a;
  --t-bg-card: rgba(10, 10, 10, 0.72);
  --t-bg-hover: rgba(255, 255, 255, 0.05);
  --t-bg-active: rgba(255, 255, 255, 0.08);
  --t-text: #ececec;
  --t-text-secondary: #8b8b8b;
  --t-text-muted: #6b6f76;
  --t-text-dimmer: #5a5a5a;
  --t-border: rgba(255, 255, 255, 0.08);
  --t-border-hover: rgba(255, 255, 255, 0.15);
  --dv-nav-bg: rgba(0, 0, 0, 0.8);
  --dv-stats-bg: rgba(10, 10, 10, 0.8);
}

:root:not(.dark) {
  color-scheme: light;
  --dv-green-glow: rgba(251, 114, 153, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--t-bg);
  color: var(--t-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

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

.home-page,
.dv-hero {
  background: var(--t-bg);
  color: var(--t-text);
}

.home-page {
  min-height: 100vh;
}

.dv-nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 1.25rem 0 0;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dv-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 0.75rem;
  flex-shrink: 0;
}

.dv-nav-logo-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(251, 114, 153, 0.35));
}

.dv-nav-logo-icon span {
  width: 13px;
  height: 11px;
  border: 3px solid #ececec;
  border-radius: 999px;
  transform: rotate(-28deg);
}

.dv-nav-logo-icon span:first-child {
  margin-right: -2px;
  border-right-color: var(--dv-green);
}

.dv-nav-logo-icon span:last-child {
  border-left-color: var(--dv-green);
}

.dv-nav-logo-text {
  color: var(--t-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dv-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: min(680px, calc(100vw - 18rem));
}

.dv-nav-link {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--t-text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.dv-nav-link:hover {
  color: var(--t-text);
  background: var(--t-bg-active);
}

.dv-nav-link.is-active {
  color: var(--t-text);
}

.dv-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--t-border);
  border-radius: 999px;
  background: var(--t-bg-active);
  color: var(--t-text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.theme-toggle:hover {
  border-color: var(--t-border-hover);
  background: var(--t-bg-hover);
  color: var(--t-text);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(0);
}

.dv-nav-btn {
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--t-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s;
}

.dv-nav-btn:hover {
  color: var(--t-text);
}

.dv-nav-btn-fill {
  background: var(--t-text);
  color: var(--t-bg);
  font-weight: 600;
}

.dv-nav-btn-fill:hover {
  background: var(--t-text-secondary);
  color: var(--t-bg);
}

.dv-nav-account {
  display: inline-flex;
  align-items: center;
  max-width: min(260px, 32vw);
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--t-border);
  border-radius: 999px;
  background: var(--t-bg-hover);
  color: var(--t-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.dv-nav-account[hidden] {
  display: none;
}

html.auth-hydrating [data-auth-guest],
html.auth-hydrating [data-auth-user] {
  visibility: hidden;
}

.dv-nav-account-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #42c783;
  box-shadow: 0 0 0 3px rgba(66, 199, 131, 0.16);
}

.dv-nav-account-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dv-hero {
  position: relative;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
}

.dv-grid-bg {
  position: absolute;
  inset: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 80%);
}

.dv-grid-bg canvas {
  width: 100%;
  height: 100%;
}

.dv-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 600px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--dv-green-glow) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(80px);
  pointer-events: none;
}

.dv-title {
  position: relative;
  z-index: 1;
  margin: 0 0 1.5rem;
  color: var(--t-text);
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-align: center;
}

.dv-title .dv-accent {
  color: var(--dv-green);
}

.dv-title-counts {
  display: block;
}

.dv-title-counts.inline {
  display: inline;
}

.dv-title.zh-mode {
  white-space: nowrap;
}

.dv-subtitle {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto 3rem;
  color: var(--t-text-muted);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.6;
  text-align: center;
}

.dv-subtitle strong {
  color: var(--t-text);
  font-weight: 600;
}

.dv-title,
.dv-subtitle,
.dv-actions,
.dv-stats,
.home-legal-links {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.home-page.auth-modal-open .dv-title,
.home-page.auth-modal-open .dv-subtitle,
.home-page.auth-modal-open .dv-actions,
.home-page.auth-modal-open .dv-stats,
.home-page.auth-modal-open .home-legal-links,
.home-page.content-modal-open .dv-title,
.home-page.content-modal-open .dv-subtitle,
.home-page.content-modal-open .dv-actions,
.home-page.content-modal-open .dv-stats,
.home-page.content-modal-open .home-legal-links {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.985);
}

.dv-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.dv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--t-border);
  border-radius: 9999px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(236, 236, 236, 0);
  transform: translateY(0) scale(1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.dv-btn-primary {
  background: var(--t-text);
  color: var(--t-bg);
  border-color: var(--t-text);
}

.dv-btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 34px rgba(255, 255, 255, 0.18),
    0 0 42px rgba(251, 114, 153, 0.18);
  transform: translateY(-2px) scale(1.025);
}

.dv-btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.dv-app-store-btn {
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.62rem 1.55rem 0.68rem;
}

.dv-app-store-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dv-app-store-note {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.72;
}

.dv-testflight-note {
  margin: 0;
  color: var(--t-text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.dv-testflight-link {
  color: #FB7299;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dv-testflight-link:hover {
  color: #ff5f91;
}

.dv-icon {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  display: inline-block;
}

.dv-icon::before,
.dv-icon::after {
  position: absolute;
  content: "";
}

.dv-icon-apple {
  width: 1.12rem;
  height: 1.12rem;
}

.dv-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem 2rem;
  border: 1px solid var(--t-border);
  border-radius: 9999px;
  background: var(--dv-stats-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dv-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dv-stat-dot {
  width: 6px;
  height: 6px;
  background: var(--dv-green);
  border-radius: 50%;
  animation: dv-pulse 2s ease-in-out infinite;
}

@keyframes dv-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--dv-green-glow);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 8px 4px transparent;
  }
}

.dv-stat-num {
  color: var(--t-text);
  font-family: "SF Mono", "Fira Code", "Courier New", monospace;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.dv-stat-label {
  color: var(--t-text-dimmer);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dv-stat-sep {
  width: 1px;
  height: 20px;
  background: var(--t-border);
}

.dv-guide {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--t-text-dimmer);
  font-size: 0.8rem;
  text-align: center;
}

.dv-guide a {
  color: var(--t-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.home-legal-links {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1050;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  max-width: min(520px, calc(100vw - 8rem));
  color: var(--t-text-dimmer);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.home-legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

.home-legal-links a:hover {
  color: #FB7299;
}

.home-content-overlay {
  position: fixed;
  inset: 48px 0 0;
  z-index: 85;
  display: block;
  padding: 0;
}

.home-content-overlay[hidden] {
  display: none;
}

.home-content-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.home-auth-overlay {
  position: fixed;
  inset: 48px 0 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  pointer-events: none;
}

.home-auth-overlay[hidden] {
  display: none;
}

.home-auth-card {
  pointer-events: auto;
}

.home-auth-panel[hidden] {
  display: none;
}

.embedded .pricing-page-body,
.embedded .pricing-page {
  background: transparent;
}

.embedded .pricing-close,
.embedded .pricing-theme-toggle {
  display: none;
}

.auth-page-body {
  min-height: 100vh;
  overflow: auto;
  background: var(--t-bg);
}

.legal-page-body {
  min-height: 100vh;
  overflow: auto;
  background: var(--t-bg);
}

.auth-page,
.legal-page {
  position: relative;
  min-height: 100vh;
  padding: 4rem 1.25rem;
  display: grid;
  place-items: center;
  color: var(--t-text);
  overflow: hidden;
}

.auth-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.auth-logo {
  color: var(--t-text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-page {
  display: block;
  padding: 5.5rem 1.25rem 4rem;
}

.legal-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid var(--t-border);
  border-radius: 12px;
  background: var(--t-bg-card);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  color: var(--t-text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.legal-content h1,
.legal-content h2 {
  color: var(--t-text);
}

.legal-content h1 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--t-border);
  font-size: 1.7rem;
  line-height: 1.25;
}

.legal-content h2 {
  margin: 1.45rem 0 0.55rem;
  font-size: 1rem;
}

.legal-content p,
.legal-content ul {
  margin: 0.65rem 0;
}

.legal-content section {
  margin-top: 3.2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--t-border);
}

.legal-content section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content .meta,
.legal-content .note {
  color: var(--t-text-muted);
}

.legal-content a {
  color: #FB7299;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content .card {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--t-border);
  border-radius: 8px;
  background: var(--t-bg-hover);
}

.legal-content table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
}

.legal-content th,
.legal-content td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--t-border);
  vertical-align: top;
  text-align: left;
}

.legal-content th {
  width: 30%;
  background: var(--t-bg-hover);
  color: var(--t-text);
  font-weight: 700;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.25rem;
  border: 1px solid var(--t-border);
  border-radius: 12px;
  background: var(--t-bg-card);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  border: 1px solid var(--t-border);
  border-radius: 8px;
  background: var(--t-bg-hover);
}

.auth-tabs a {
  padding: 0.45rem;
  border-radius: 6px;
  color: var(--t-text-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.auth-tabs a.is-active {
  background: var(--t-bg-card);
  color: var(--t-text);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.auth-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.auth-header h1 {
  margin: 0;
  color: var(--t-text);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-header p {
  margin: 0.55rem 0 0;
  color: var(--t-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
}

.auth-form label span {
  color: var(--t-text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid var(--t-border);
  border-radius: 8px;
  outline: none;
  background: var(--t-bg);
  color: var(--t-text);
  font: inherit;
  font-size: 13px;
}

.auth-form input:focus {
  border-color: #FB7299;
  box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.14);
}

.auth-form-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}

.auth-form-row a,
.auth-terms a,
.auth-switch a {
  color: #FB7299;
  font-weight: 700;
  text-decoration: none;
}

.auth-primary,
.auth-apple,
.auth-socials button {
  min-height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.auth-primary {
  border: 1px solid var(--t-text);
  background: var(--t-text);
  color: var(--t-bg);
}

.auth-primary:disabled,
.auth-apple:disabled {
  cursor: progress;
  opacity: 0.72;
}

.auth-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--t-border);
  background: var(--t-bg);
  color: var(--t-text);
}

.auth-apple-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--t-text-dimmer);
  font-size: 12px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--t-border);
}

.auth-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-socials button {
  border: 1px solid var(--t-border);
  background: var(--t-bg);
  color: var(--t-text);
}

.auth-terms {
  margin: 0;
  color: var(--t-text-muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.auth-message {
  min-height: 1.2rem;
  margin: -0.15rem 0 0;
  color: var(--t-text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.auth-message.is-error {
  color: #FB7299;
}

.auth-message.is-success {
  color: #42c783;
}

.auth-switch {
  margin: 1.25rem 0 0;
  color: var(--t-text-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.pricing-page-body {
  --pricing-bg: #f8fafc;
  --pricing-card-bg: #ffffff;
  --pricing-text: #111827;
  --pricing-muted: #6b7280;
  --pricing-soft: #475569;
  --pricing-border: #e5e7eb;
  --pricing-border-strong: #d8dee8;
  --pricing-control-bg: #f1f3f5;
  --pricing-control-active: #e5e7eb;
  --pricing-close-bg: #f1f5f9;
  --pricing-coupon-bg: #f8fafc;
  --pricing-coupon-chip: #eef2f7;
  --pricing-check-bg: #e8f8f0;
  --pricing-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 18px rgba(15, 23, 42, 0.08);
  min-height: 100vh;
  background: var(--pricing-bg);
  overflow: auto;
}

.dark .pricing-page-body {
  --pricing-bg: #000000;
  --pricing-card-bg: #0b0b0c;
  --pricing-text: #ececec;
  --pricing-muted: #8b8b8b;
  --pricing-soft: #b6b6b6;
  --pricing-border: rgba(255, 255, 255, 0.1);
  --pricing-border-strong: rgba(255, 255, 255, 0.16);
  --pricing-control-bg: rgba(255, 255, 255, 0.06);
  --pricing-control-active: rgba(255, 255, 255, 0.13);
  --pricing-close-bg: rgba(255, 255, 255, 0.08);
  --pricing-coupon-bg: rgba(255, 255, 255, 0.045);
  --pricing-coupon-chip: rgba(255, 255, 255, 0.09);
  --pricing-check-bg: rgba(66, 199, 131, 0.16);
  --pricing-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.pricing-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: var(--pricing-bg);
  color: var(--pricing-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.pricing-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pricing-border);
  border-radius: 999px;
  background: var(--pricing-close-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.pricing-close::before,
.pricing-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: var(--pricing-muted);
}

.pricing-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.pricing-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pricing-close:hover {
  border-color: var(--pricing-border-strong);
  background: var(--pricing-control-active);
  transform: scale(1.03);
}

.pricing-theme-toggle {
  position: fixed;
  top: 1.2rem;
  right: 4.5rem;
  z-index: 10;
  background: var(--pricing-close-bg);
  color: var(--pricing-muted);
}

.pricing-theme-toggle:hover {
  background: var(--pricing-control-active);
  color: var(--pricing-text);
}

.pricing-header {
  margin: 0 0 2.5rem;
  padding: 0;
  text-align: center;
}

.pricing-header h1 {
  margin: 0;
  color: var(--pricing-text);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pricing-header p {
  margin: 0.55rem 0 0;
  color: var(--pricing-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-switch {
  display: flex;
  width: max-content;
  margin: 0 auto 2rem;
  padding: 3px;
  border: 1px solid var(--pricing-border);
  border-radius: 0.55rem;
  background: var(--pricing-control-bg);
}

.pricing-switch button {
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 0.42rem;
  background: transparent;
  color: var(--pricing-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.pricing-switch button:hover {
  color: var(--pricing-text);
}

.pricing-switch button.is-active {
  background: var(--pricing-control-active);
  color: var(--pricing-text);
}

.pricing-promo {
  margin: 0 0 1.25rem;
  color: var(--pricing-muted);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 0;
}

.pricing-grid.is-single {
  grid-template-columns: minmax(220px, 320px);
  justify-content: center;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--pricing-border-strong);
  border-radius: 10px;
  background: var(--pricing-card-bg);
  box-shadow: var(--pricing-shadow);
}

.pricing-card[hidden] {
  display: none;
}

.pricing-card.is-featured {
  border-color: var(--pricing-border-strong);
}

.pricing-ribbon {
  position: absolute;
  top: -9px;
  left: 1.25rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--pricing-border-strong);
  border-radius: 0.32rem;
  background: var(--pricing-bg);
  color: var(--pricing-soft);
  font-size: 10px;
  font-weight: 600;
}

.pricing-card h2 {
  margin: 0;
  color: var(--pricing-text);
  font-size: 15px;
  font-weight: 600;
}

.pricing-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pricing-trial {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--pricing-border);
  border-radius: 999px;
  background: var(--pricing-coupon-bg);
  color: var(--pricing-muted);
  font-size: 9px;
  font-weight: 600;
}

.pricing-price {
  margin: 0.75rem 0 0.25rem;
}

.pricing-price span {
  color: var(--pricing-text);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-price em {
  color: var(--pricing-muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}

.pricing-note {
  min-height: 1rem;
  margin: 0 0 1.25rem;
  color: var(--pricing-muted);
  font-size: 11px;
  font-weight: 600;
}

.pricing-coupon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.4rem;
  min-height: auto;
  margin: 0 0 1rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--pricing-border);
  border-radius: 0.42rem;
  background: var(--pricing-coupon-bg);
  color: var(--pricing-text);
  font-size: 11px;
  font-weight: 600;
}

.pricing-coupon span {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--pricing-border-strong);
  border-radius: 0.24rem;
  background: var(--pricing-coupon-chip);
}

.pricing-coupon strong {
  overflow: hidden;
  color: var(--pricing-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pricing-coupon del {
  color: var(--pricing-muted);
}

.pricing-coupon b {
  color: var(--pricing-text);
}

.pricing-action {
  width: 100%;
  min-height: auto;
  margin: 0 0 1.25rem;
  padding: 0.5rem;
  border: 1px solid var(--pricing-border-strong);
  border-radius: 0.42rem;
  background: var(--pricing-card-bg);
  color: var(--pricing-text);
  cursor: default;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.pricing-action:hover {
  border-color: var(--pricing-muted);
  box-shadow: var(--pricing-shadow);
  transform: translateY(-1px);
}

.pricing-card:first-child .pricing-action {
  margin-top: 0;
}

.builder-progress {
  display: grid;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pricing-border);
}

.pricing-grid:not(.is-single) .builder-progress {
  display: none;
}

.builder-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--pricing-muted);
  font-size: 12px;
  font-weight: 700;
}

.builder-progress-track {
  position: relative;
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: var(--pricing-border);
}

.builder-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pricing-text);
}

.pricing-features {
  display: grid;
  flex: 1;
  gap: 0;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--pricing-border);
  list-style: none;
}

.pricing-features li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.45rem;
  color: var(--pricing-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.pricing-features li::before {
  position: absolute;
  left: 0;
  top: 0.45rem;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  content: "✓";
  border-radius: 999px;
  background: var(--pricing-check-bg);
  color: #42c783;
  font-size: 8px;
  font-weight: 900;
}

.pricing-features li.pricing-feature-off::before {
  content: "×";
  background: rgba(255, 69, 96, 0.16);
  color: #ff4560;
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .home-page {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
  }

  .dv-nav {
    flex-wrap: wrap;
    flex: 0 0 auto;
    height: auto;
    min-height: 48px;
    row-gap: 0.15rem;
    padding: 0 0.75rem 0.45rem;
  }

  .dv-nav-logo {
    order: 1;
  }

  .dv-nav-right {
    order: 2;
  }

  .dv-nav-links {
    position: static;
    order: 3;
    width: 100%;
    max-width: none;
    transform: none;
    justify-content: center;
    gap: 0.25rem 0.35rem;
  }

  .dv-nav-link {
    padding: 0.24rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .dv-nav-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }

  .dv-nav-account {
    max-width: 42vw;
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
  }

  .dv-hero {
    flex: 1 0 auto;
    min-height: calc(100svh - 9rem);
    justify-content: center;
    overflow: visible;
    padding: clamp(2.5rem, 7svh, 4.5rem) 1rem clamp(2rem, 7svh, 4rem);
  }

  .dv-title.zh-mode {
    white-space: normal;
  }

  .dv-title-counts.inline {
    display: block;
  }

  .dv-actions {
    flex-direction: column;
    align-items: center;
  }

  .dv-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .dv-stats {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
  }

  .dv-stat-sep {
    display: none;
  }

  .home-legal-links {
    position: static;
    justify-content: center;
    max-width: none;
    margin: 0 1rem max(1.25rem, env(safe-area-inset-bottom));
    padding: 0 1rem 1rem;
    text-align: center;
  }

  .pricing-page {
    padding: 1.25rem 1rem 2.5rem;
  }

  .pricing-close {
    width: 2.55rem;
    height: 2.55rem;
  }

  .pricing-theme-toggle {
    top: 1.25rem;
    right: 4.05rem;
  }

  .pricing-header {
    width: 100%;
    padding: 0.4rem 3rem 2rem;
  }

  .pricing-header h1 {
    font-size: 1.35rem;
  }

  .pricing-promo {
    margin: 1.7rem 0 1.2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .pricing-card {
    min-height: auto;
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
