:root {
  --bg: #f6f9ff;
  --bg-2: #edf5ff;
  --card: rgba(255, 255, 255, 0.92);
  --text: #07111f;
  --muted: #65748b;
  --line: #e3ebf7;
  --primary: #2563eb;
  --primary-2: #14b8ff;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 48px rgba(20, 56, 120, 0.12);
  --shadow-soft: 0 10px 28px rgba(20, 56, 120, 0.08);
}
* { box-sizing: border-box; }
html, body, #app { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 78% 4%, rgba(20, 184, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 6% 96%, rgba(37, 99, 235, 0.12), transparent 28rem),
    linear-gradient(135deg, #fafdff 0%, var(--bg) 42%, #eef6ff 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.muted { color: var(--muted); }
.brand {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -0.03em;
}
.logo {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #e7f0ff 36%, #2563eb 66%, #111827 100%);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.logo::after {
  content: ""; position: absolute; inset: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #14b8ff, #7c3aed);
  transform: skew(-12deg);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 6px 11px;
  border-radius: 999px; background: #eef5ff; color: #1d4ed8; font-weight: 800; font-size: 12px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .85fr);
  align-items: center; gap: 56px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0;
}
.auth-eyebrow { color: #0284c7; font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.auth-hero h1 { margin: 18px 0 18px; max-width: 650px; font-size: clamp(42px, 5.2vw, 72px); line-height: .98; letter-spacing: -0.08em; }
.auth-hero p { max-width: 620px; color: #526179; font-size: 16px; line-height: 1.8; }
.route-card {
  margin-top: 34px; overflow: hidden; border: 1px solid #d8e6f7; border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,.62) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.62) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(230,245,255,.78));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow); padding: 20px;
}
.route-graph { height: 250px; position: relative; overflow: hidden; }
.node {
  position: absolute; display: grid; gap: 4px; min-width: 118px; padding: 16px 18px;
  border-radius: 18px; background: rgba(255,255,255,.9); border: 1px solid #e6eef8; box-shadow: var(--shadow-soft);
  z-index: 4;
  animation: nodeFloat 5.8s ease-in-out infinite;
}
.node b { font-size: 16px; }
.node small { color: var(--muted); font-weight: 700; }
.node.gpt { left: 24px; top: 54px; animation-delay: -.6s; }
.node.claude { right: 14px; top: 46px; animation-delay: -1.4s; }
.node.codex { left: 42%; top: 116px; transform: translateX(-50%); animation-name: nodeFloatCenter; animation-delay: -2.2s; }
.node.gemini { right: 26%; bottom: 18px; animation-delay: -3.1s; }
.orbit {
  position: absolute; left: 46%; top: 42%; width: 130px; height: 130px; border-radius: 50%;
  border: 1px dashed rgba(20,184,255,.45); transform: translate(-50%, -50%);
  z-index: 1;
  animation: orbitSpin 16s linear infinite;
}
.orbit::before, .orbit::after {
  content: ""; position: absolute; border-radius: 50%; inset: 18px; border: 1px solid rgba(37,99,235,.18);
}
.orbit::after { inset: 38px; background: rgba(255,255,255,.75); animation: hubPulse 2.4s ease-in-out infinite; }
.route-hub {
  position: absolute; left: 46%; top: 42%; width: 22px; height: 22px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0 22%, #14b8ff 24% 54%, #2563eb 56% 100%);
  box-shadow: 0 0 0 10px rgba(20,184,255,.10), 0 0 38px rgba(37,99,235,.32);
  z-index: 3;
  animation: hubBreath 2s ease-in-out infinite;
}
.route-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(37,99,235,.12));
}
.route-lines .flow {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 9 16;
  animation: flowMove 2.8s linear infinite;
}
.flow-a { stroke: rgba(37,99,235,.56); }
.flow-b { stroke: rgba(20,184,255,.54); animation-delay: -.5s; }
.flow-c { stroke: rgba(124,58,237,.38); animation-delay: -1s; }
.flow-d { stroke: rgba(16,185,129,.42); animation-delay: -1.4s; }
.spark {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: #14b8ff;
  box-shadow: 0 0 0 6px rgba(20,184,255,.12), 0 0 22px rgba(37,99,235,.55);
  z-index: 5;
  opacity: 0;
}
.spark-1 { animation: sparkA 3.4s ease-in-out infinite; }
.spark-2 { animation: sparkB 4.1s ease-in-out infinite .6s; }
.spark-3 { animation: sparkC 3.7s ease-in-out infinite 1.1s; }
.spark-4 { animation: sparkD 4.5s ease-in-out infinite 1.7s; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.metric-mini { border-radius: 16px; background: rgba(255,255,255,.86); border: 1px solid #e6eef8; padding: 14px; }
.metric-mini b { display: block; font-size: 17px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.trust-item { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid #dbe7f6; font-size: 13px; }
.trust-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #dff7ff; }
.auth-card {
  background: var(--card); border: 1px solid rgba(220, 230, 245, .9); border-radius: 28px;
  padding: 38px; box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.auth-card h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.05em; }
.form { display: grid; gap: 16px; margin-top: 26px; }
.field label { display: block; margin-bottom: 8px; color: #334155; font-size: 14px; font-weight: 700; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #dce6f4; background: rgba(255,255,255,.9); border-radius: 14px; padding: 13px 14px;
  outline: none; transition: .18s ease; color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(20,184,255,.12); }
.btn {
  border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 16px; border-radius: 14px; font-weight: 900; transition: .18s ease;
}
.btn-primary { color: #fff; background: linear-gradient(135deg, #2563eb, #14b8ff); box-shadow: 0 12px 28px rgba(37,99,235,.22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(37,99,235,.28); }
.btn-secondary { color: #1e40af; background: #edf5ff; border: 1px solid #d7e7ff; }
.btn-danger { color: #fff; background: var(--danger); }
.btn-ghost { color: #334155; background: transparent; border: 1px solid #e2e8f0; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.alert { border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.alert-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #bbf7d0; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: rgba(255,255,255,.78); backdrop-filter: blur(16px); padding: 22px 12px; }
.sidebar .brand { padding: 0 10px 24px; }
.nav { display: grid; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: #334155; font-weight: 800; }
.nav a.active, .nav a:hover { background: #eaf3ff; color: #1d4ed8; }
.sidebar-bottom { position: absolute; bottom: 18px; left: 12px; right: 12px; display: grid; gap: 8px; }
.topbar { height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; }
.content { padding: 32px; max-width: 1240px; margin: 0 auto; width: 100%; }
.page-title { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.page-title h1 { margin: 0; font-size: 30px; letter-spacing: -.05em; }
.page-title p { margin: 6px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-soft);
}
.stat { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stat-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #e7f0ff; color: var(--primary); font-weight: 900; }
.stat b { font-size: 28px; letter-spacing: -.04em; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; border-bottom: 1px solid #edf2f9; text-align: left; white-space: nowrap; }
th { color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; background: #f8fbff; }
tr:last-child td { border-bottom: 0; }
.empty { min-height: 260px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-icon { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 14px; background: #f1f5f9; font-size: 26px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.amount-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.amount-card { min-height: 76px; border: 2px solid #dce6f4; border-radius: 16px; background: #fff; cursor: pointer; font-weight: 900; }
.amount-card.active { border-color: var(--primary); background: #edf5ff; color: #1d4ed8; }
.method-card { display: flex; justify-content: space-between; align-items: center; border: 1px solid #e0e9f6; border-radius: 18px; padding: 16px; background: #fff; cursor: pointer; }
.method-card.active { border-color: var(--primary); background: #edf5ff; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f1f5f9; border-radius: 999px; padding: 5px 10px; }
.copy { cursor: pointer; }
.mobile-top { display: none; }
@keyframes flowMove {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -50; }
}
@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes hubPulse {
  0%, 100% { transform: scale(.9); opacity: .78; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes hubBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(.94); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes nodeFloat {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-8px,0); }
}
@keyframes nodeFloatCenter {
  0%, 100% { transform: translate3d(-50%,0,0); }
  50% { transform: translate3d(-50%,-8px,0); }
}
@keyframes sparkA {
  0% { left: 110px; top: 96px; opacity: 0; }
  18%, 78% { opacity: 1; }
  100% { left: 320px; top: 126px; opacity: 0; }
}
@keyframes sparkB {
  0% { left: 320px; top: 126px; opacity: 0; }
  18%, 76% { opacity: 1; }
  100% { left: 560px; top: 86px; opacity: 0; }
}
@keyframes sparkC {
  0% { left: 320px; top: 126px; opacity: 0; }
  20%, 74% { opacity: 1; }
  100% { left: 455px; top: 194px; opacity: 0; }
}
@keyframes sparkD {
  0% { left: 318px; top: 126px; opacity: 0; }
  20%, 70% { opacity: 1; }
  100% { left: 145px; top: 92px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .node, .orbit, .orbit::after, .route-hub, .route-lines .flow, .spark { animation: none !important; }
  .spark { display: none; }
}
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
  .auth-hero h1 { font-size: 44px; }
  .trust-row, .metrics, .grid-4, .grid-3, .grid-2, .checkout { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-top { display: flex; }
  .topbar { padding: 0 18px; }
  .content { padding: 22px 16px; }
  .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.verify-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; align-items: center; }
.verify-row .btn { min-height: 54px; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
@media (max-width: 520px) { .verify-row { grid-template-columns: 1fr; } .verify-row .btn { width: 100%; } }
