/* VERITAS GEO — 深鸢尾 / 冷纸白 · 可见度雷达气质
 * 不在此 @import Google Fonts：国内首次打开会阻塞整份 CSS，表现为「只有字、没样式/图/动画」，刷新缓存后又正常。
 */
:root {
  --bg: #eef1f6;
  --d1: #f8f9fc;
  --d2: #e6eaf2;
  --ink: #121826;
  --g: #3d5a9e;
  --gl: #5b7bc4;
  --gd: #2c4478;
  --g10: rgba(61, 90, 158, 0.1);
  --g20: rgba(61, 90, 158, 0.22);
  --accent: #c9a227;
  --t1: #121826;
  --t2: #3a4558;
  --t3: #6b7588;
  --ln: rgba(44, 68, 120, 0.16);
  --ok: #2f8f6a;
  --bad: #c94a5c;
  --r: 12px;
  --font: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", serif;
  --shadow: 0 18px 50px rgba(18, 24, 38, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g); text-decoration: none; }
a:hover { color: var(--gd); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gl);
  outline-offset: 2px;
}

.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; position: relative; z-index: 1; }

/* —— Landing atmosphere —— */
.page-home {
  position: relative;
  overflow-x: clip;
}
.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 8% -5%, rgba(61, 90, 158, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 98% 8%, rgba(201, 162, 39, 0.1), transparent 50%),
    linear-gradient(180deg, #e8ecf4 0%, var(--bg) 42%, #e9edf5 100%);
}

.signal-field {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(480px, 110%);
  aspect-ratio: 1;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.signal-field svg { width: 100%; height: 100%; }
.signal-ring {
  fill: none;
  stroke: var(--g);
  stroke-width: 1;
  opacity: 0.35;
}
.signal-beam {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.7;
  transform-origin: 50% 50%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand span {
  color: var(--g);
  font-weight: 600;
  margin-left: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--t2);
}
.nav-links a { color: var(--t2); }
.nav-links a:hover { color: var(--gd); text-decoration: none; }
.nav-links a.nav-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, var(--gd) 0%, var(--g) 55%, var(--gl) 100%);
  box-shadow: 0 6px 16px rgba(44, 68, 120, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.nav-links a.nav-order:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(44, 68, 120, 0.28);
}
.nav-links a.nav-order:active { transform: scale(0.98); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(145deg, var(--gd) 0%, var(--g) 55%, var(--gl) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(44, 68, 120, 0.28);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--gd);
  border: 1px solid var(--ln);
}
.btn-ghost:hover { background: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* —— Hero (one composition) —— */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 8vh, 72px) 0 clamp(28px, 5vh, 48px);
  display: grid;
  gap: 36px;
  min-height: min(72vh, 640px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}
.hero-copy-main {
  position: relative;
  z-index: 1;
}
.hero-copy-main > :not(.signal-field) {
  position: relative;
  z-index: 1;
}
.hero-copy .platform-line {
  position: relative;
  z-index: 1;
}
.hero-brand {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero-brand em {
  font-style: italic;
  color: var(--g);
  font-weight: 400;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 14px;
}
h1, .hero-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  font-weight: 400;
  line-height: 1.22;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lead {
  color: var(--t2);
  font-size: 1.05rem;
  margin: 0 0 18px;
  max-width: 34em;
  font-weight: 400;
}
.platform-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--t3);
  margin: 0;
}
.platform-line::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47, 143, 106, 0.18);
  flex-shrink: 0;
}

.price-card {
  position: relative;
  z-index: 1;
  background: rgba(248, 249, 252, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
}
.price-card.price-card--pay,
.price-card.pay-shell {
  padding: 14px 14px 12px;
  overflow: visible;
}
.price-card .pay-swap-stage {
  width: 100%;
}
.price-card .pay-head {
  position: relative;
  margin-bottom: 8px;
  padding-right: 72px;
}
.price-card .pay-kicker { margin-bottom: 4px; font-size: 0.68rem; }
.price-card .pay-amount { font-size: clamp(1.65rem, 4vw, 2rem); }
.price-card .pay-meta { margin-top: 4px; font-size: 0.75rem; }
.price-card .pay-channels {
  margin-bottom: 8px;
  gap: 6px;
  padding: 3px;
}
.price-card .pay-channel {
  padding: 8px 6px;
  font-size: 0.82rem;
  gap: 6px;
}
.price-card .pay-channel-icon {
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  border-radius: 5px;
}
.price-card .pay-qr-stage {
  margin: 4px 0 8px;
  padding: 4px 0;
}
.price-card .pay-qr-hint { margin: 6px 0 0; font-size: 0.78rem; }
.price-card .pay-qr-img {
  width: 168px !important;
  height: 168px !important;
}
.price-card--pay .hint,
.price-card.pay-shell .hint {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 0.75rem;
}
.price-card--pay [data-sync-hint]:empty,
.price-card.pay-shell [data-sync-hint]:empty {
  display: none;
}
.price-card--pay [data-sync],
.price-card.pay-shell [data-sync] {
  margin-top: 4px;
}
.price-card .pay-steps {
  display: none; /* 步骤说明收进提示，避免撑高滚动 */
}
.price-card .pay-shell .btn,
.price-card.pay-shell .btn,
.price-card--pay .btn {
  padding: 11px 16px;
  font-size: 0.9rem;
}
.price-card--pay .hint,
.price-card.pay-shell .hint {
  margin-top: 4px;
  font-size: 0.75rem;
}
.price-card .checkout-pane { will-change: transform, opacity, filter; }
.price-card .pay-swap-stage {
  will-change: transform, opacity, filter;
  width: 100%;
}
.price-card.price-card--pay {
  transition: box-shadow 0.35s ease;
}
.price-card .checkout-pane ul {
  margin: 8px 0 10px;
  font-size: 0.84rem;
}
.price-card .checkout-pane ul li { margin-bottom: 3px; }
.price-card .checkout-pane .amount {
  font-size: 2.1rem;
}
.price-card .checkout-pane .eyebrow { margin-bottom: 4px; }
.price-card .checkout-pane label { margin-top: 6px; font-size: 0.82rem; }
.price-card .checkout-pane input {
  padding: 9px 10px;
  font-size: 0.9rem;
}
.checkout-sms {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-top: 6px;
}
.checkout-sms #smsBtn {
  min-width: 6.8rem;
  white-space: nowrap;
  height: 38px;
  padding: 0 12px;
  font-size: 0.84rem;
}
.pay-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 16px;
  color: var(--t3);
  font-size: 0.9rem;
}
.pay-loading-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(61, 90, 158, 0.22);
  border-top-color: var(--g, #3d5a9e);
  animation: pay-spin 0.75s linear infinite;
}
@keyframes pay-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pay-loading-dot { animation: none; border-top-color: var(--g, #3d5a9e); opacity: 0.7; }
}
.price-card .amount {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--gd);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-card .amount small {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t3);
}
.price-card ul {
  padding-left: 1.15em;
  color: var(--t2);
  margin: 14px 0 18px;
  font-size: 0.92rem;
}
.price-card ul li { margin-bottom: 6px; }
.price-card .eyebrow { margin-bottom: 8px; }

/* —— Features (post-hero, one job) —— */
.features {
  position: relative;
  z-index: 1;
  padding: 8px 0 24px;
}
.features-hd {
  margin-bottom: 18px;
}
.features-hd h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  margin: 0 0 6px;
}
.features-hd p {
  margin: 0;
  color: var(--t3);
  font-size: 0.92rem;
}
.feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}
.feature-item {
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--ln);
  background: transparent;
}
@media (min-width: 640px) {
  .feature-item {
    border: 1px solid var(--ln);
    background: rgba(248, 249, 252, 0.65);
  }
}
.feature-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.feature-item span {
  font-size: 0.8rem;
  color: var(--t3);
  line-height: 1.45;
}

.card {
  background: var(--d1);
  border: 1px solid var(--ln);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.card h2, .card h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--t2);
  margin: 12px 0 6px;
}
label .req { color: var(--bad); margin-right: 2px; }
input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--ln);
  background: #fff;
  font: inherit;
  color: var(--t1);
}
input:focus, textarea:focus { outline: 2px solid var(--g20); border-color: var(--g); }
.row { display: grid; gap: 12px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 0.8rem; color: var(--t3); margin-top: 6px; }

.prod-block {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--ln);
  background: var(--d2);
}
.prod-block-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.prod-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--g);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 10px;
  padding: 12px 14px 10px;
  margin-bottom: 12px;
}
.prod-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.prod-card-hd strong { font-size: 0.92rem; }
.prod-remove {
  border: none;
  background: none;
  color: var(--bad);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}
.with-count { position: relative; }
.with-count input { padding-right: 52px; }
.char-count, .kw-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--t3);
}
.kw-box { position: relative; }
.kw-chips {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 48px 8px 10px;
  border: 1px solid var(--ln);
  border-radius: 8px;
  background: #fff;
}
.kw-chips:focus-within { outline: 2px solid var(--g20); border-color: var(--g); }
.kw-input {
  flex: 1;
  min-width: 140px;
  border: none !important;
  outline: none !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
}
.kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--g10);
  color: var(--gd);
  font-size: 0.78rem;
  font-weight: 700;
}
.kw-chip button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--t3);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}
.btn-add-prod { margin-top: 4px; width: 100%; }
.btn-add-prod:disabled { cursor: not-allowed; }
.err { color: var(--bad); font-size: 0.9rem; margin-top: 8px; }
.ok { color: var(--ok); font-size: 0.9rem; margin-top: 8px; }
.qr-box { text-align: center; padding: 12px; }
.qr-box img {
  width: min(240px, 70vw);
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--ln);
  background: #fff;
}
.qr-box .alipay-qr-frame {
  width: 300px;
  max-width: 100%;
  height: 300px;
  border: 1px solid var(--ln);
  border-radius: 8px;
  background: #fff;
  display: inline-block;
}

/* —— 支付页 —— */
.page-pay {
  position: relative;
  min-height: 100vh;
}
.page-pay::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% -10%, rgba(61, 90, 158, 0.16), transparent 55%),
    linear-gradient(180deg, #e8ecf4 0%, var(--bg) 50%, #e9edf5 100%);
}
.page-pay .wrap {
  width: min(460px, calc(100% - 28px));
  padding-bottom: 48px;
}
.page-pay .nav { margin-bottom: 20px; }
.pay-shell {
  padding: 28px 22px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pay-head {
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}
.pay-back {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--t3);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.pay-back:hover { color: var(--g); }
.pay-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g);
}
.pay-amount {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 8vw, 3rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pay-amount span {
  font-size: 0.55em;
  margin-right: 2px;
  vertical-align: 0.18em;
  color: var(--t2);
}
.pay-meta {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--t3);
}
.pay-meta code {
  font-size: 0.78rem;
  background: var(--d2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--t2);
}

.pay-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--d2);
  border-radius: 12px;
}
.pay-panel-stack {
  position: relative;
}
.pay-panel {
  transition: opacity 0.2s ease;
  will-change: opacity;
}
.pay-panel.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pay-panel:not(.is-active) {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .pay-panel { transition: none; }
}
.pay-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 11px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--t2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.pay-channel:hover { color: var(--t1); }
.pay-channel.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(18, 24, 38, 0.08);
}
.pay-channel-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.pay-channel-icon--ali { background: #1677ff; }
.pay-channel-icon--wx { background: #07c160; }
.pay-channel-icon--lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.pay-qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  margin: 0 0 10px;
  background: transparent;
  border: none;
}
.pay-launch-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 8px 0 4px;
  margin: 0 0 10px;
  text-align: center;
}
.pay-launch-btn {
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-mobile-click {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 8px;
}
.pay-click-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-click-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ln);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(18, 24, 38, 0.06);
  -webkit-tap-highlight-color: transparent;
}
.pay-click-btn--wx {
  border-color: rgba(7, 193, 96, 0.35);
  background: linear-gradient(180deg, #f3fcf7 0%, #fff 70%);
}
.pay-click-btn--ali {
  border-color: rgba(22, 119, 255, 0.35);
  background: linear-gradient(180deg, #f3f8ff 0%, #fff 70%);
}
.pay-click-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.pay-mobile-tip {
  margin: 0;
  font-size: 0.82rem;
  color: var(--t3);
  text-align: center;
  line-height: 1.45;
}
.pay-wx-qr-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid rgba(7, 193, 96, 0.28);
  background: #f7fdf9;
}
.pay-wx-qr-sheet[hidden] {
  display: none !important;
}
.pay-click-btn.is-open {
  box-shadow: inset 0 0 0 2px rgba(7, 193, 96, 0.35);
}
.pay-qr-fallback {
  margin: 4px 0 0;
  text-align: center;
}
.pay-qr-fallback summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--t3);
  user-select: none;
  list-style: none;
}
.pay-qr-fallback summary::-webkit-details-marker {
  display: none;
}
.pay-qr-fallback[open] summary {
  margin-bottom: 10px;
  color: var(--t2);
}
.pay-qr-fallback .pay-qr-img {
  margin: 0 auto;
}
.pay-qr-img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.pay-qr-frame {
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  overflow: visible;
  position: relative;
}
.pay-qr-frame--placeholder {
  width: 200px;
  min-height: 200px;
  border: 1px dashed var(--ln);
  border-radius: 12px;
  background: linear-gradient(160deg, #f4fbf7 0%, #fff 55%);
}
.pay-soon {
  text-align: center;
  padding: 12px;
  color: var(--t2);
}
.pay-soon strong {
  display: block;
  margin-bottom: 6px;
  color: var(--t1);
  font-size: 1rem;
}
.pay-soon p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--t3);
}
.pay-qr-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--t2);
}

.pay-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: paystep;
}
.pay-steps li {
  position: relative;
  padding: 8px 12px 8px 36px;
  font-size: 0.86rem;
  color: var(--t2);
  background: var(--d2);
  border-radius: 8px;
}
.pay-steps li::before {
  counter-increment: paystep;
  content: counter(paystep);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--g);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.pay-status {
  text-align: center;
  padding: 12px 4px 4px;
}
.pay-status h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
}
.pay-lead {
  margin: 0 0 20px;
  color: var(--t2);
  font-size: 0.95rem;
}
.pay-status--ok .pay-kicker { color: var(--ok); }
.page-pay #syncHint:empty { display: none; }
.page-pay #syncHint {
  text-align: center;
  margin-top: 10px;
}
@media (max-width: 420px) {
  .pay-qr-img {
    width: 180px;
    height: 180px;
  }
  .pay-shell { padding: 22px 14px 16px; }
  .pay-channel { font-size: 0.84rem; gap: 6px; }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--d2);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--ln);
}
.kpi .n { font-size: 1.5rem; font-weight: 800; color: var(--g); }
.kpi .l { font-size: 0.78rem; color: var(--t3); }
.bar {
  height: 8px;
  background: var(--d2);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--g), var(--gl));
}
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td {
  border-bottom: 1px solid var(--ln);
  padding: 10px 8px;
  text-align: left;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--g10);
  color: var(--gd);
}
.tag.warn { background: rgba(201, 74, 92, 0.12); color: var(--bad); }
.tag.ok { background: rgba(47, 143, 106, 0.12); color: var(--ok); }
.footer {
  position: relative;
  z-index: 1;
  margin: 48px 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ln);
  font-size: 0.8rem;
  color: var(--t3);
}
.disclaimer {
  background: rgba(201, 74, 92, 0.06);
  border: 1px solid rgba(201, 74, 92, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--t2);
}
.progress {
  height: 10px;
  background: var(--d2);
  border-radius: 99px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--g);
  transition: width 0.3s;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--g10);
  color: var(--gd);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.section-title { font-size: 1.15rem; margin: 28px 0 12px; }
.muted { color: var(--t3); }

/* —— Admin shell —— */
.page-admin {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  padding-bottom: 48px;
}
.page-admin::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(61, 90, 158, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 0%, rgba(201, 162, 39, 0.08), transparent 50%),
    linear-gradient(180deg, #e8ecf4 0%, var(--bg) 40%, #e9edf5 100%);
}
.page-admin .wrap { position: relative; z-index: 1; }
.page-admin .nav .brand span { font-weight: 600; letter-spacing: 0.02em; }

.admin-shell-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--gd);
  letter-spacing: -0.02em;
}
.admin-shell-title em {
  font-style: italic;
  color: var(--t3);
  font-size: 0.72em;
  margin-left: 8px;
  font-family: var(--font);
  font-weight: 500;
}

.admin-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--ln);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.admin-bar .btn {
  border-radius: 10px;
  font-size: 0.88rem;
  padding: 9px 14px;
}
.admin-bar .btn.is-active {
  background: linear-gradient(135deg, var(--g), var(--gl));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(61, 90, 158, 0.28);
}
.admin-bar .btn.is-active:hover {
  color: #fff;
  filter: brightness(1.05);
}

#loginCard {
  max-width: 420px;
  margin: 48px auto 0;
  box-shadow: var(--shadow);
}
#loginCard h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  margin-top: 0;
  color: var(--gd);
}

#panel { min-height: 120px; }
.admin-panel-loading {
  padding: 36px 20px;
  text-align: center;
  color: var(--t3);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.admin-plat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--ln);
}
.admin-plat-row:last-of-type { border-bottom: none; }
.admin-plat-row .muted { font-size: 0.8rem; }

.page-admin .table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--t3);
}
.page-admin .table tbody tr:hover td { background: rgba(61, 90, 158, 0.04); }

/* AI 用量 */
.usage-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .usage-summary { grid-template-columns: 1.2fr 1fr 1fr; }
}
.usage-alert-banner {
  background: rgba(201, 74, 92, 0.08);
  border: 1px solid rgba(201, 74, 92, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--bad);
  font-size: 0.9rem;
  font-weight: 700;
}
.usage-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}
@media (min-width: 720px) {
  .usage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .usage-grid { grid-template-columns: repeat(3, 1fr); }
}
.usage-card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(18, 24, 38, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.usage-card:hover {
  border-color: rgba(61, 90, 158, 0.28);
  box-shadow: 0 14px 32px rgba(18, 24, 38, 0.07);
}
.usage-card.is-alert {
  border-color: rgba(201, 74, 92, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 74, 92, 0.12);
}
.usage-card-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.usage-card-hd strong { font-size: 1.05rem; color: var(--gd); }
.usage-balance {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gd);
  letter-spacing: -0.02em;
}
.usage-balance small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t3);
  margin-left: 4px;
}
.usage-model {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--t2);
}
.usage-model code {
  font-size: 0.8rem;
  background: var(--d2);
  padding: 1px 6px;
  border-radius: 4px;
}
.usage-meta { font-size: 0.78rem; color: var(--t3); line-height: 1.45; }
.usage-bar {
  height: 8px;
  background: var(--d2);
  border-radius: 99px;
  overflow: hidden;
}
.usage-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--g), var(--gl));
}
.usage-bar.is-low > i { background: linear-gradient(90deg, #c44a5c, #e07a88); }
.usage-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}
.usage-fields label { margin-top: 0; font-size: 0.75rem; }
.usage-fields input { padding: 8px 10px; font-size: 0.88rem; }
.usage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.usage-recharge-btn {
  padding: 8px 12px;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.usage-settings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 8px;
}
.usage-settings-row .field { min-width: 140px; }
.usage-settings-row label { margin-top: 0; }

/* —— Job waiting panel (public, no progress) —— */
.page-job {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
}
.page-job::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 10% -8%, rgba(61, 90, 158, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 35% at 96% 6%, rgba(201, 162, 39, 0.09), transparent 50%),
    linear-gradient(180deg, #e8ecf4 0%, var(--bg) 42%, #e9edf5 100%);
}
.job-panel {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 12px auto 48px;
  background: rgba(248, 249, 252, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow);
}
.job-panel-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.job-panel-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.job-ellipsis { color: var(--g); }
.job-spinner {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--g20);
  border-top-color: var(--g);
  animation: job-spin 0.85s linear infinite;
}
.job-spinner.is-done {
  animation: none;
  border-color: var(--ok);
  background: var(--ok);
  box-shadow: inset 0 0 0 3px #fff;
}
.job-spinner.is-failed {
  animation: none;
  border-color: var(--bad);
  background: transparent;
}
@keyframes job-spin {
  to { transform: rotate(360deg); }
}
.job-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--g10);
  border: 1px solid rgba(61, 90, 158, 0.14);
  margin-bottom: 18px;
}
.job-tip-icon {
  flex-shrink: 0;
  color: var(--g);
  margin-top: 1px;
}
.job-tip strong {
  display: block;
  color: var(--gd);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.job-tip p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--t2);
  line-height: 1.55;
}
.job-brand-line {
  font-size: 0.9rem;
  color: var(--t3);
  margin: 0 0 20px;
}
.job-brand-line em {
  font-style: normal;
  font-weight: 700;
  color: var(--gd);
}
.job-section {
  margin-bottom: 18px;
}
.job-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.job-section h2::before {
  content: "";
  width: 3px;
  height: 0.95em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--g), var(--gl));
}
.job-section ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--t2);
  font-size: 0.88rem;
  line-height: 1.65;
}
.job-section li { margin-bottom: 6px; }
.job-actions {
  margin-top: 22px;
  text-align: center;
}
.job-ack {
  min-width: 200px;
  border-color: var(--g);
  color: var(--gd);
  background: #fff;
}
.job-ack:hover {
  background: var(--g10);
  color: var(--gd);
}
.job-thanks {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--t3);
}
.job-done {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ln);
  text-align: center;
}
.job-done p {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gd);
}
.job-done .btn { min-width: 180px; }

/* Admin job progress rows */
.job-admin-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.job-admin-progress .progress { height: 8px; }
.job-admin-meta {
  font-size: 0.75rem;
  color: var(--t3);
}
.job-log-mini {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 0.72rem;
}
.job-log-detail-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.job-log-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.job-log-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--t3);
  margin-left: auto;
}
.job-log-list {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  padding: 6px 0;
}
.job-log-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 6px 12px;
  font-size: 0.76rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  align-items: baseline;
}
.job-log-line:last-child { border-bottom: 0; }
.job-log-t {
  color: var(--t3);
  font-variant-numeric: tabular-nums;
  min-width: 70px;
}
.job-log-lv {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  min-width: 42px;
}
.job-log-line.level-ok .job-log-lv { color: #2f8f6a; }
.job-log-line.level-info .job-log-lv { color: #5b7bc4; }
.job-log-line.level-warn .job-log-lv { color: #b8860b; }
.job-log-line.level-error .job-log-lv { color: #c45c5c; }
.job-log-line.level-error { background: rgba(196, 92, 92, 0.06); }
.job-log-plat { font-weight: 700; }
.job-log-q { color: var(--t3); font-size: 0.7rem; }
.job-log-msg {
  flex: 1 1 100%;
  word-break: break-word;
}
tr.is-job-open td { background: rgba(91, 123, 196, 0.06); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .usage-card { transition: none; }
  .job-spinner { animation: none; border-top-color: var(--g); opacity: 0.7; }
  .action-tile { transition: none; }
}

/* —— Recover / 订单查询 —— */
.page-recover {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}
.page-recover::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 18% 12%, rgba(61, 90, 158, 0.2), transparent 58%),
    radial-gradient(ellipse 48% 38% at 88% 8%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 72% 88%, rgba(91, 123, 196, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 8% 78%, rgba(44, 68, 120, 0.08), transparent 50%),
    linear-gradient(165deg, #dfe6f2 0%, var(--bg) 42%, #e6ebf4 100%);
}
.page-recover::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}
.recover-ambiance {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.recover-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}
.recover-orb--a {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -8%;
  left: -10%;
  background: rgba(61, 90, 158, 0.22);
}
.recover-orb--b {
  width: min(360px, 58vw);
  height: min(360px, 58vw);
  top: 6%;
  right: -12%;
  background: rgba(201, 162, 39, 0.16);
}
.recover-orb--c {
  width: min(480px, 80vw);
  height: min(480px, 80vw);
  bottom: -18%;
  left: 28%;
  background: rgba(91, 123, 196, 0.14);
}
.recover-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--g);
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .recover-orb--a { animation: recover-float 14s ease-in-out infinite; }
  .recover-orb--b { animation: recover-float 18s ease-in-out infinite reverse; }
  .recover-orb--c { animation: recover-float 22s ease-in-out infinite 1s; }
}
@keyframes recover-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.04); }
}
.recover-wrap {
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.recover-stage {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  padding-top: clamp(28px, 8vh, 72px);
}
.recover-stage[hidden],
.recover-result[hidden] {
  display: none !important;
}
.recover-intro {
  text-align: center;
  margin: 0 0 24px;
  animation: recover-rise 0.45s ease-out both;
}
.recover-intro h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.recover-lead {
  margin: 0 auto;
  max-width: 22em;
  color: var(--t2);
  font-size: 0.92rem;
  line-height: 1.55;
}
.recover-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(18, 24, 38, 0.08);
  animation: recover-rise 0.55s 0.06s ease-out both;
}
.recover-field label {
  display: block;
  margin: 0 0 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--t2);
}
.recover-field input {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--ln);
  background: var(--d1);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.recover-field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--g);
  box-shadow: 0 0 0 3px var(--g10);
}
.recover-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.recover-sms-btn {
  white-space: nowrap;
  padding: 0 14px;
  min-height: 46px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gd);
  background: var(--g10);
  border: 1px solid var(--g20);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.recover-sms-btn:hover:not(:disabled) {
  background: rgba(61, 90, 158, 0.16);
  border-color: rgba(61, 90, 158, 0.35);
}
.recover-sms-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.recover-submit {
  margin-top: 4px;
  min-height: 48px;
  letter-spacing: 0.04em;
}
.recover-hint:empty { display: none; }
.recover-hint {
  margin: -4px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ok);
}
.recover-form .err {
  margin: 0;
  text-align: center;
}
.recover-result {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  animation: recover-rise 0.4s ease-out;
}
.recover-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.05);
}
.recover-toolbar-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--t2);
}
.recover-toolbar .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.page-recover.recover-done .recover-result {
  margin-top: clamp(16px, 5vh, 40px);
  flex: 1 0 auto;
  align-content: start;
}
@media (min-width: 700px) {
  .recover-result {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
}
@keyframes recover-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.recover-panel {
  margin: 0;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(18, 24, 38, 0.06);
}
.recover-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.recover-panel-hd h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
}
.recover-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gd);
  background: var(--g10);
  border: 1px solid var(--g20);
}
.recover-badge--muted {
  color: var(--t3);
  background: var(--d2);
  border-color: var(--ln);
}
.action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ln);
  background: #fff;
  color: var(--t1);
  text-decoration: none;
  min-height: 64px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.action-tile:hover {
  color: var(--t1);
  text-decoration: none;
  border-color: var(--g20);
  box-shadow: 0 6px 18px rgba(18, 24, 38, 0.06);
  background: #fbfcfe;
}
.action-tile:active { transform: scale(0.992); }
.action-tile--primary {
  border-color: rgba(61, 90, 158, 0.28);
  background: linear-gradient(135deg, #fff 0%, #f3f6fb 100%);
}
.action-tile--primary:hover { border-color: var(--g); }
.action-tile-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.action-tile-body strong {
  font-size: 0.98rem;
  font-weight: 700;
}
.action-tile-body span {
  font-size: 0.8rem;
  color: var(--t3);
}
.action-tile-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--g);
  white-space: nowrap;
}
.action-tile-cta--ghost { color: var(--t2); }
.action-tile:hover .action-tile-cta { color: var(--gd); }
.tile-chevron { display: block; }
.recover-empty {
  padding: 22px 14px;
  border-radius: 12px;
  border: 1px dashed var(--ln);
  background: var(--d1);
  text-align: center;
}
.recover-empty p {
  margin: 0 0 12px;
  color: var(--t2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.recover-empty--soft p { margin-bottom: 0; color: var(--t3); }
.recover-empty .btn {
  display: inline-flex;
  width: auto;
  min-width: 140px;
}

@media (max-width: 480px) {
  .recover-stage { padding-top: 16px; }
  .recover-form { padding: 20px 16px 18px; }
  .recover-code-row { grid-template-columns: 1fr; }
  .recover-sms-btn { min-height: 44px; }
  .action-tile { padding: 12px; gap: 10px; }
  .action-tile-cta { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .recover-intro,
  .recover-form,
  .recover-result {
    animation: none;
  }
  .recover-orb--a,
  .recover-orb--b,
  .recover-orb--c {
    animation: none;
  }
}
