:root {
  --tableau-blue: #0b4f8a;
  --tableau-blue-deep: #073f70;
  --tableau-cyan: #57a3b5;
  --tableau-orange: #f28e2b;
  --success: #16845b;
  --ink: #17324a;
  --muted: #667b8e;
  --line: #dfe8ef;
  --paper: #ffffff;
  --canvas: #f4f8fb;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.background-art {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(11, 79, 138, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 138, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.plus {
  position: absolute;
  font-family: Arial, sans-serif;
  font-weight: 300;
  line-height: 1;
  opacity: 0.16;
  transform: rotate(0.001deg);
}

.plus-a {
  top: 8%;
  left: 8%;
  color: var(--tableau-orange);
  font-size: 88px;
}

.plus-b {
  top: 18%;
  right: 6%;
  color: var(--tableau-cyan);
  font-size: 52px;
}

.plus-c {
  right: 13%;
  bottom: 7%;
  color: var(--tableau-blue);
  font-size: 108px;
}

.plus-d {
  left: 4%;
  bottom: 14%;
  color: #e84a5f;
  font-size: 46px;
}

.glow {
  position: absolute;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.16;
}

.glow-a {
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, #55b3c3, transparent 68%);
}

.glow-b {
  bottom: -230px;
  left: -180px;
  background: radial-gradient(circle, #f1a04a, transparent 70%);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding:
    max(22px, env(safe-area-inset-top))
    14px
    max(22px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.success-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-width: 0;
  padding: 30px 24px 20px;
  border: 1px solid rgba(11, 79, 138, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 30px 80px rgba(24, 68, 102, 0.14),
    0 8px 24px rgba(24, 68, 102, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  animation: card-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.success-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 62%;
  height: 3px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, var(--tableau-orange), #e84a5f, var(--tableau-blue));
  transform: translateX(-50%);
}

.success-card::after {
  content: "+";
  position: absolute;
  top: 102px;
  right: -18px;
  color: var(--tableau-cyan);
  font-size: 94px;
  font-weight: 200;
  line-height: 1;
  opacity: 0.06;
}

.brand-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf2f6;
}

.brand-logo {
  display: block;
  width: min(72%, 270px);
  height: auto;
}

.success-visual {
  position: relative;
  width: 126px;
  aspect-ratio: 1;
  margin: 34px auto 24px;
  display: grid;
  place-items: center;
}

.success-visual::before {
  content: "";
  position: absolute;
  width: 78px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #159467, #0a7653);
  box-shadow:
    0 15px 32px rgba(22, 132, 91, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.success-visual svg {
  position: relative;
  z-index: 2;
  width: 50px;
  fill: none;
  stroke: white;
  stroke-width: 4.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-visual svg path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-check 480ms 420ms ease-out forwards;
}

.visual-ring {
  position: absolute;
  border: 1px solid rgba(22, 132, 91, 0.2);
  border-radius: 50%;
}

.ring-outer {
  inset: 0;
  animation: ring-in 620ms 120ms ease-out both;
}

.ring-inner {
  inset: 13px;
  border-color: rgba(22, 132, 91, 0.1);
  background: rgba(22, 132, 91, 0.045);
  animation: ring-in 520ms 180ms ease-out both;
}

.spark {
  position: absolute;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: spark-in 420ms 620ms ease-out both;
}

.spark-a {
  top: 5px;
  right: 10px;
  background: var(--tableau-orange);
}

.spark-b {
  bottom: 10px;
  left: 6px;
  width: 5px;
  background: var(--tableau-cyan);
}

.spark-c {
  top: 17px;
  left: 4px;
  width: 4px;
  background: #e84a5f;
}

.message-block {
  position: relative;
  z-index: 1;
  text-align: center;
}

.status-pill {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 6px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(22, 132, 91, 0.15);
  border-radius: 999px;
  color: #116c4c;
  background: #effaf5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status-pill span {
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 132, 91, 0.1);
}

h1 {
  margin: 0;
  color: #133a5b;
  font-size: clamp(31px, 9vw, 38px);
  font-weight: 780;
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.message-block p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.status-panel {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fbfdff, #f6f9fb);
}

.status-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
}

.status-icon {
  width: 28px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--success);
  background: #e9f7f1;
}

.status-icon-blue {
  color: var(--tableau-blue);
  background: #eaf2f8;
}

.status-icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-label {
  color: var(--muted);
  font-size: 13px;
}

.status-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.status-divider {
  height: 1px;
  margin-left: 40px;
  background: var(--line);
}

.close-note {
  position: relative;
  z-index: 1;
  margin: 20px 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7b8c9b;
  font-size: 12px;
}

.close-note svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-note {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid #dbe8f1;
  border-radius: 14px;
  color: #597184;
  background: #f7fafc;
}

.security-note svg {
  width: 26px;
  padding: 5px;
  border-radius: 8px;
  fill: none;
  stroke: var(--tableau-blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: #eaf2f8;
}

.security-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}

.security-note strong,
.security-note span {
  display: block;
}

.security-note strong {
  margin-bottom: 1px;
  color: #35546c;
  font-size: 11px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9aabb9;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.card-footer i {
  width: 3px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tableau-orange);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ring-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spark-in {
  from {
    opacity: 0;
    transform: scale(0) translateY(5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding-block: 38px;
  }

  .success-card {
    padding: 34px 32px 22px;
  }
}

@media (max-height: 720px) and (max-width: 639px) {
  .page-shell {
    padding-block: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-bottom));
    place-items: start center;
  }

  .success-card {
    padding: 18px 20px 14px;
  }

  .brand-header {
    min-height: 42px;
    padding-bottom: 9px;
  }

  .brand-logo {
    width: min(64%, 238px);
  }

  .success-visual {
    width: 92px;
    margin-block: 12px 8px;
  }

  .success-visual::before {
    width: 60px;
  }

  .success-visual svg {
    width: 40px;
  }

  .status-pill {
    margin-bottom: 8px;
    padding-block: 4px;
  }

  h1 {
    font-size: 29px;
  }

  .message-block p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
  }

  .status-panel {
    margin-top: 13px;
  }

  .status-row {
    min-height: 48px;
  }

  .close-note {
    margin-block: 10px 12px;
  }

  .security-note {
    margin-bottom: 12px;
    padding-block: 9px;
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-inline: 9px;
  }

  .success-card {
    padding-inline: 18px;
    border-radius: 24px;
  }

  .status-panel {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}
