:root {
  color: #f8fafc;
  background: #070b12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #070b12;
  --panel: #101722;
  --panel-soft: #151e2c;
  --panel-strong: #1b2638;
  --line: #263345;
  --line-strong: #365478;
  --text: #f8fafc;
  --muted: #aeb8c7;
  --muted-2: #7f8ca0;
  --blue: #2f73ff;
  --violet: #7c4dff;
  --cyan: #08b8dc;
  --green: #15c47e;
  --red: #ef4444;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(47, 115, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(8, 184, 220, 0.12), transparent 24rem),
    linear-gradient(180deg, #080d15 0%, #070b12 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
}

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

.page-shell {
  display: grid;
  align-content: center;
  width: min(1240px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid rgba(54, 84, 120, 0.68);
  border-radius: 999px;
  padding: 7px 13px 7px 8px;
  color: #f8fafc;
  background: rgba(13, 19, 29, 0.62);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.brand-mark strong {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.page-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.contact-dock {
  position: fixed;
  left: max(14px, calc((100vw - 1240px) / 2 - 126px));
  top: 55%;
  z-index: 30;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.contact-dock h2 {
  margin: 0;
  color: #dce8f7;
  font-size: 0.86rem;
  font-weight: 920;
  text-align: center;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.contact-list {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(54, 84, 120, 0.62);
  border-radius: 18px;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 115, 255, 0.16), transparent 9rem),
    rgba(9, 14, 22, 0.82);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.contact-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(54, 84, 120, 0.66);
  border-radius: 14px;
  color: #ffffff;
  background: #111a27;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 960;
}

.contact-item.qq .contact-icon {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.contact-item.wechat .contact-icon {
  background: linear-gradient(180deg, #22c55e, #159447);
}

.contact-item.group .contact-icon {
  background: linear-gradient(180deg, #8b5cf6, #2563eb);
}

.contact-tip,
.contact-qr {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translate(8px, -50%);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  pointer-events: none;
}

.contact-tip {
  width: max-content;
  border: 1px solid rgba(54, 84, 120, 0.7);
  border-radius: 12px;
  padding: 8px 11px;
  color: #f8fafc;
  background: rgba(13, 19, 29, 0.96);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
  font-size: 0.84rem;
  font-weight: 820;
}

.contact-qr {
  display: grid;
  gap: 8px;
  width: 188px;
  border: 1px solid rgba(124, 77, 255, 0.46);
  border-radius: 16px;
  padding: 12px;
  background: #1d1424;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.contact-qr strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 920;
}

.contact-qr img {
  width: 164px;
  max-width: 100%;
  border-radius: 12px;
}

.contact-qr small {
  color: #d8c3dd;
  font-size: 0.76rem;
  font-weight: 760;
}

.contact-item:hover .contact-tip,
.contact-item:hover .contact-qr {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.page-head div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.page-head span,
.plan-card .badge,
.progress-copy span,
.progress-form label,
.dialog-head p,
.field span,
.risk-plan span,
.summary-grid span,
.step-card small {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 780;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 950;
  line-height: 1.14;
}

.page-head p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 660;
  line-height: 1.7;
}

.plan-grid {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1240px;
  perspective: 1200px;
}

.progress-panel {
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  gap: 18px;
  align-items: end;
  width: min(860px, 100%);
  margin-top: 34px;
  border: 1px solid rgba(54, 84, 120, 0.78);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgba(47, 115, 255, 0.16), transparent 13rem),
    linear-gradient(180deg, rgba(18, 27, 41, 0.94) 0%, rgba(11, 17, 27, 0.94) 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.progress-copy {
  display: grid;
  gap: 6px;
}

.progress-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 940;
  line-height: 1.18;
}

.progress-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 690;
  line-height: 1.6;
}

.progress-form {
  display: grid;
  gap: 8px;
}

.progress-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.progress-input-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #2d3b50;
  border-radius: 12px;
  padding: 0 13px;
  color: #f8fafc;
  background: #0d131d;
  font-size: 0.9rem;
  font-weight: 760;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.progress-input-row input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.16);
}

.progress-result {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid rgba(54, 84, 120, 0.58);
  border-radius: 12px;
  padding: 10px 12px;
  color: #9bd5ff;
  background: rgba(13, 19, 29, 0.68);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.55;
}

.progress-result.muted {
  color: var(--muted);
}

.progress-result.success {
  color: #bbf7d0;
  border-color: rgba(21, 196, 126, 0.42);
  background: rgba(21, 196, 126, 0.11);
}

.progress-result.pending {
  color: #bfdbfe;
  border-color: rgba(47, 115, 255, 0.42);
  background: rgba(47, 115, 255, 0.11);
}

.progress-result.error {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.11);
}

.plan-card {
  --accent: var(--blue);
  --glow: rgba(47, 115, 255, 0.2);
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 14px;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 8%, var(--glow), transparent 11rem),
    linear-gradient(180deg, rgba(22, 31, 47, 0.96) 0%, rgba(14, 21, 31, 0.96) 100%);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
  transform: translateY(0) rotateX(0) rotateY(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-position 260ms ease;
  will-change: transform;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 4%, color-mix(in srgb, var(--accent) 16%, transparent) 24%, transparent 42%);
  opacity: 0;
  transform: translateX(-38%);
  transition: opacity 180ms ease, transform 420ms ease;
  pointer-events: none;
}

.plan-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.plan-card:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, #ffffff);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.34),
    0 0 34px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-8px) rotateX(1.5deg) rotateY(-1.5deg);
}

.plan-card:hover::before {
  opacity: 1;
  transform: translateX(28%);
}

.plan-card.plus {
  --accent: var(--blue);
  --glow: rgba(47, 115, 255, 0.18);
}

.plan-card.pro5x {
  --accent: var(--violet);
  --glow: rgba(124, 77, 255, 0.18);
}

.plan-card.pro20x {
  --accent: var(--cyan);
  --glow: rgba(8, 184, 220, 0.16);
}

.plan-card .badge {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, #ffffff);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  line-height: 1.1;
}

.plan-card h2 {
  margin: 0;
  font-size: 1.78rem;
  font-weight: 950;
  line-height: 1;
}

.plan-card .tagline,
.plan-card .desc,
.plan-card li {
  margin: 0;
  color: #d5deea;
  font-size: 0.9rem;
  font-weight: 690;
  line-height: 1.66;
}

.plan-card .tagline {
  min-height: 3rem;
}

.plan-card .desc {
  min-height: 5rem;
}

.feature-intro {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 920;
  line-height: 1.5;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card li::before {
  content: "✦";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 82%, #ffffff);
  border-radius: 7px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  line-height: 1;
}

.plan-footer {
  display: grid;
  gap: 13px;
  margin-top: 2px;
  border-top: 1px solid rgba(213, 222, 234, 0.82);
  padding-top: 12px;
}

.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.price-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.price-row strong {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.subscribe-button,
.progress-button,
.dialog-actions button,
.result-actions button,
.link-button,
.paste-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border-radius: 10px;
  padding: 0 14px;
  color: #f8fafc;
  background: #1a2535;
  border: 1px solid #304159;
  font-size: 0.86rem;
  font-weight: 860;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.subscribe-button.primary,
.progress-button.primary,
.dialog-actions .primary,
.result-actions .primary,
.link-button.primary {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--accent, var(--blue)) 70%, #ffffff);
  background: linear-gradient(135deg, var(--accent, var(--blue)), #2454d9);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent, var(--blue)) 26%, transparent);
}

.subscribe-button.primary::before,
.progress-button.primary::before,
.dialog-actions .primary::before,
.result-actions .primary::before,
.link-button.primary::before {
  content: "";
  position: absolute;
  inset: -45% auto -45% -36%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  transform: skewX(-20deg);
  animation: buttonShine 2.8s ease-in-out infinite;
  pointer-events: none;
}

.subscribe-button.primary {
  min-height: 44px;
}

.subscribe-button:hover,
.progress-button:hover,
.dialog-actions button:hover,
.result-actions button:hover,
.link-button:hover,
.paste-button:hover {
  transform: translateY(-1px);
}

.subscribe-button.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px color-mix(in srgb, var(--accent, var(--blue)) 34%, transparent),
    0 0 22px color-mix(in srgb, var(--accent, var(--blue)) 22%, transparent);
}

.progress-button.primary:hover {
  box-shadow:
    0 16px 34px rgba(47, 115, 255, 0.34),
    0 0 22px rgba(47, 115, 255, 0.22);
}

@keyframes buttonShine {
  0% {
    left: -38%;
  }
  44%,
  100% {
    left: 118%;
  }
}

.button-emphasis {
  color: #fde047;
}

.dialog-actions button:disabled,
.result-actions button:disabled,
.link-button:disabled,
.paste-button:disabled {
  opacity: 0.58;
  transform: none;
}

.page-notice {
  min-height: 22px;
  margin: 16px 0 0;
  color: #9bd5ff;
  font-size: 0.86rem;
  font-weight: 760;
}

.page-notice.error {
  color: #fca5a5;
}

.page-notice.success {
  color: #86efac;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 78% 74%, rgba(8, 184, 220, 0.16), transparent 20rem),
    rgba(3, 7, 14, 0.78);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.result-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 14, 0.56);
  backdrop-filter: blur(6px);
}

.result-backdrop[hidden] {
  display: none;
}

.result-dialog {
  width: min(560px, 100%);
  border: 1px solid rgba(54, 84, 120, 0.76);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(21, 196, 126, 0.14), transparent 13rem),
    linear-gradient(180deg, rgba(18, 27, 41, 0.98), rgba(10, 16, 25, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  animation: resultPop 220ms ease-out both;
}

.result-dialog.error {
  width: min(430px, 100%);
  background:
    radial-gradient(circle at 82% 8%, rgba(239, 68, 68, 0.14), transparent 11rem),
    linear-gradient(180deg, rgba(27, 22, 31, 0.98), rgba(13, 17, 26, 0.98));
}

.result-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 26px 20px;
  text-align: center;
}

.result-body h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.56rem;
  font-weight: 960;
  line-height: 1.16;
}

.result-body p {
  margin: 0;
  color: #c9d3e1;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.6;
}

.success-check {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 196, 126, 0.22), rgba(21, 196, 126, 0.05));
  box-shadow:
    0 0 0 8px rgba(21, 196, 126, 0.07),
    0 18px 42px rgba(21, 196, 126, 0.2);
}

.success-check svg {
  width: 72px;
  height: 72px;
}

.success-check circle,
.success-check path {
  fill: none;
  stroke: #22c55e;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-check circle {
  stroke-width: 3.4;
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: checkCircle 640ms ease-out forwards;
}

.success-check path {
  stroke-width: 4.4;
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: checkMark 420ms 420ms cubic-bezier(0.2, 0.9, 0.25, 1.2) forwards;
}

.error-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.54);
  box-shadow: 0 16px 38px rgba(239, 68, 68, 0.18);
  font-size: 2rem;
  font-weight: 960;
}

.submit-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.submit-result-grid div {
  display: grid;
  gap: 6px;
  min-height: 76px;
  border: 1px solid rgba(54, 84, 120, 0.58);
  border-radius: 14px;
  padding: 12px;
  background: rgba(13, 19, 29, 0.7);
  text-align: left;
}

.submit-result-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.submit-result-grid strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 920;
  line-height: 1.35;
}

.submit-result-grid .processing-text {
  color: #fbbf24;
}

.result-actions {
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(54, 84, 120, 0.46);
  padding: 16px 24px 20px;
}

.result-actions button {
  min-width: 132px;
}

@keyframes resultPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes checkCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkMark {
  to {
    stroke-dashoffset: 0;
  }
}

.dialog {
  width: min(832px, 100%);
  max-height: min(880px, calc(100vh - 8px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111821;
  box-shadow: var(--shadow);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 24px 26px 18px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1.18;
}

.dialog-head h2.dialog-title-alert {
  color: #ff6b6b;
}

.dialog-head p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #8b96a8;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
}

.icon-button:hover {
  color: #ffffff;
  background: #182231;
}

.dialog-body {
  display: grid;
  gap: 16px;
  padding: 16px 16px 18px;
}

.risk-plan,
.summary-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid #2b394d;
  border-radius: 12px;
  padding: 12px;
  background: #161f2d;
}

.risk-plan strong,
.summary-grid strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 920;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-copy {
  display: grid;
  gap: 12px;
  color: #c9d3e1;
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.65;
}

.risk-section {
  display: grid;
  gap: 8px;
}

.risk-section h3 {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 920;
}

.risk-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.risk-confirm-note {
  margin: 0;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fde047;
  background: rgba(250, 204, 21, 0.08);
  font-size: 0.88rem;
  font-weight: 840;
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #2d3b50;
  border-radius: 12px;
  color: #f8fafc;
  background: #0d131d;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input {
  min-height: 42px;
  padding: 0 13px;
  font-size: 0.9rem;
  font-weight: 760;
}

.field textarea {
  min-height: 166px;
  resize: vertical;
  padding: 12px 13px;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.65;
}

.field input:focus,
.field textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.16);
}

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

.paste-button {
  min-height: 32px;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.dialog-error,
.dialog-success {
  margin: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.55;
}

.dialog-error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.11);
}

.dialog-success {
  color: #bbf7d0;
  background: rgba(21, 196, 126, 0.12);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px 26px 18px;
}

.identify-steps {
  display: grid;
  gap: 10px;
}

.step-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #2b394d;
  border-radius: 12px;
  padding: 14px 12px;
  background: #111923;
}

.step-card.active {
  border-color: #2f73ff;
  background: #172942;
}

.step-card span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  background: #243144;
  font-size: 0.84rem;
  font-weight: 950;
}

.step-card.active span {
  background: #2f73ff;
}

.step-card strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 920;
}

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

.card-submit-box {
  display: grid;
  gap: 14px;
}

.card-submit-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 690;
  line-height: 1.65;
}

.progress-detail-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(54, 84, 120, 0.7);
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgba(47, 115, 255, 0.16), transparent 11rem),
    linear-gradient(180deg, rgba(20, 29, 43, 0.96), rgba(12, 18, 28, 0.96));
}

.progress-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  border-bottom: 1px solid rgba(54, 84, 120, 0.34);
  padding: 4px 0 12px;
}

.progress-detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.progress-detail-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.progress-detail-row strong {
  max-width: 68%;
  overflow-wrap: anywhere;
  color: #ffffff;
  text-align: right;
  font-size: 0.98rem;
  font-weight: 920;
}

.progress-state {
  color: #ff5a5f !important;
  text-shadow: 0 0 18px rgba(239, 68, 68, 0.42);
}

.progress-state.waiting,
.progress-state.success {
  color: #ff5a5f !important;
}

.progress-state.available {
  color: #76e4b0 !important;
  text-shadow: 0 0 18px rgba(52, 211, 153, 0.36);
}

@media (max-width: 900px) {
  .contact-dock {
    left: 50%;
    top: auto;
    bottom: 12px;
    transform: none;
    transform: translateX(-50%);
  }

  .contact-list {
    grid-auto-flow: column;
    grid-template-columns: repeat(3, auto);
  }

  .contact-tip,
  .contact-qr {
    left: 50%;
    top: auto;
    bottom: calc(100% + 12px);
    transform: translate(-50%, -8px);
  }

  .contact-item:hover .contact-tip,
  .contact-item:hover .contact-qr {
    transform: translate(-50%, 0);
  }

  .page-head {
    align-items: start;
    flex-direction: column;
  }

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

  .plan-card {
    min-height: auto;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 1040px);
    padding-top: 22px;
  }

  .dialog {
    max-height: calc(100vh - 24px);
  }

  .dialog-head,
  .dialog-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions button,
  .result-actions button,
  .link-button {
    width: 100%;
  }

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

  .submit-result-grid {
    grid-template-columns: 1fr;
  }

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

  .inline-field-head {
    align-items: stretch;
    flex-direction: column;
  }

  .paste-button {
    width: fit-content;
  }

  .progress-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .progress-detail-row strong {
    max-width: 100%;
    text-align: left;
  }
}
