* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: #f5f7fb;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.hero-background {
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.12), transparent 30%),
    radial-gradient(circle at 8% 92%, rgba(199, 154, 34, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.96));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.42), rgba(241, 245, 249, 0.88)),
    linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(199, 154, 34, 0.08));
}

.public-layout {
  position: relative;
  min-height: 100vh;
  padding: 32px 16px;
  overflow-x: hidden;
}

.page-flow-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  backdrop-filter: blur(4px);
}

.is-flow-loading .page-flow-loader {
  opacity: 1;
  pointer-events: auto;
}

.page-flow-loader-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.28);
}

.page-flow-loader-card span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fef3c7;
  border-radius: 50%;
  animation: flow-spin 0.72s linear infinite;
}

.page-flow-loader-card strong {
  font-size: 14px;
  font-weight: 700;
}

@keyframes flow-spin {
  to {
    transform: rotate(360deg);
  }
}

.agreement-panel,
.success-card {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 28px;
  overflow: hidden;
}

.form-panel {
  max-width: 980px;
}

.product-home-panel {
  display: grid;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92)),
    rgba(255, 255, 255, 0.9);
}

.topbar,
.section-header,
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar h1,
.section-header h1 {
  margin: 8px 0 10px;
}

.topbar h1 {
  max-width: 820px;
  font-size: 40px;
  line-height: 1.12;
}

.topbar p {
  max-width: 680px;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.eyebrow {
  color: #b8860b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stepper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.stepper span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.86);
  color: #475569;
  font-size: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.stepper .active {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  border-color: transparent;
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  display: grid;
  gap: 15px;
  min-width: 0;
  min-height: 360px;
  padding: 22px;
  overflow: hidden;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(45, 212, 191, 0.28), transparent 34%),
    radial-gradient(circle at 16% 88%, rgba(234, 179, 8, 0.18), transparent 30%),
    linear-gradient(135deg, #0f172a, #115e59 58%, #0f172a);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.26);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.08) 34% 35%, transparent 35% 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
}

.product-card::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 52px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(234, 179, 8, 0.5), rgba(20, 184, 166, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.product-card:nth-child(2) {
  background:
    radial-gradient(circle at 86% 12%, rgba(56, 189, 248, 0.3), transparent 34%),
    radial-gradient(circle at 16% 88%, rgba(34, 197, 94, 0.16), transparent 30%),
    linear-gradient(135deg, #111827, #1e3a8a 58%, #0f172a);
}

.product-card:nth-child(3) {
  background:
    radial-gradient(circle at 86% 12%, rgba(168, 85, 247, 0.28), transparent 34%),
    radial-gradient(circle at 14% 88%, rgba(20, 184, 166, 0.18), transparent 30%),
    linear-gradient(135deg, #111827, #3b0764 54%, #0f172a);
}

.product-card:nth-child(4) {
  background:
    radial-gradient(circle at 86% 12%, rgba(234, 179, 8, 0.24), transparent 34%),
    radial-gradient(circle at 14% 88%, rgba(148, 163, 184, 0.2), transparent 30%),
    linear-gradient(135deg, #020617, #334155 58%, #0f172a);
}

.product-card.product-theme-1,
.selected-fund-card.product-theme-1,
.review-product.product-theme-1 {
  background:
    radial-gradient(circle at 88% 12%, rgba(45, 212, 191, 0.28), transparent 34%),
    radial-gradient(circle at 16% 88%, rgba(234, 179, 8, 0.18), transparent 30%),
    linear-gradient(135deg, #0f172a, #115e59 58%, #0f172a);
}

.product-card.product-theme-2,
.selected-fund-card.product-theme-2,
.review-product.product-theme-2 {
  background:
    radial-gradient(circle at 86% 12%, rgba(56, 189, 248, 0.3), transparent 34%),
    radial-gradient(circle at 16% 88%, rgba(34, 197, 94, 0.16), transparent 30%),
    linear-gradient(135deg, #111827, #1e3a8a 58%, #0f172a);
}

.product-card.product-theme-3,
.selected-fund-card.product-theme-3,
.review-product.product-theme-3 {
  background:
    radial-gradient(circle at 86% 12%, rgba(168, 85, 247, 0.28), transparent 34%),
    radial-gradient(circle at 14% 88%, rgba(20, 184, 166, 0.18), transparent 30%),
    linear-gradient(135deg, #111827, #3b0764 54%, #0f172a);
}

.product-card.product-theme-4,
.selected-fund-card.product-theme-4,
.review-product.product-theme-4 {
  background:
    radial-gradient(circle at 86% 12%, rgba(234, 179, 8, 0.24), transparent 34%),
    radial-gradient(circle at 14% 88%, rgba(148, 163, 184, 0.2), transparent 30%),
    linear-gradient(135deg, #020617, #334155 58%, #0f172a);
}

.product-card-head {
  display: grid;
  gap: 12px;
}

.product-card-head h2 {
  margin: 0;
  max-width: calc(100% - 58px);
  color: #fff;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 800;
}

.product-card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.product-card-kicker span,
.product-card-kicker i {
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.product-card-kicker span {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.product-card-kicker i {
  background: rgba(234, 179, 8, 0.18);
  font-style: normal;
  font-weight: 700;
}

.product-watermark {
  position: absolute;
  right: -8px;
  bottom: 74px;
  color: rgba(255, 255, 255, 0.07);
  font-size: 76px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.product-hero-metric {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 4px;
  min-height: 86px;
  padding: 0;
  color: #fff;
  background: transparent;
}

.product-hero-metric span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.product-hero-metric strong {
  color: #fef3c7;
  font-size: 54px;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.product-metrics div {
  min-width: 0;
  padding: 12px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
}

.product-metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.3;
}

.product-metrics strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  word-break: break-word;
}

.product-rule {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.product-card-footer span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.product-card-footer strong {
  color: #fef3c7;
  font-size: 13px;
  font-weight: 700;
}

.agreement-sample-link {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.agreement-sample-link .ghost-button {
  color: #475569;
  background: rgba(255, 255, 255, 0.78);
}

.info-flow-panel {
  max-width: 860px;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9)),
    rgba(255, 255, 255, 0.88);
}

.info-topbar {
  align-items: flex-start;
  padding: 2px 2px 0;
}

.info-topbar h1 {
  font-size: 34px;
}

.flow-back-link {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  color: #0f766e;
  background: rgba(236, 253, 245, 0.82);
  border-color: rgba(20, 184, 166, 0.22);
}

.flow-stepper {
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: rgba(241, 245, 249, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.88);
}

.flow-stepper span {
  flex: 1;
  text-align: center;
  border-color: transparent;
  background: transparent;
}

.flow-stepper .active {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.selected-fund-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
  color: #f8fafc;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 86% 14%, rgba(45, 212, 191, 0.28), transparent 34%),
    radial-gradient(circle at 14% 86%, rgba(234, 179, 8, 0.18), transparent 30%),
    linear-gradient(135deg, #0f172a, #115e59 58%, #0f172a);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
  isolation: isolate;
}

.selected-fund-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.08) 34% 35%, transparent 35% 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
}

.selected-fund-card::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 52px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(234, 179, 8, 0.5), rgba(20, 184, 166, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.selected-fund-card h2 {
  max-width: calc(100% - 62px);
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.26;
}

.selected-fund-rate {
  display: grid;
  gap: 4px;
}

.selected-fund-rate span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 600;
}

.selected-fund-rate strong {
  color: #fef3c7;
  font-size: 48px;
  line-height: 0.96;
}

.selected-fund-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.selected-fund-metrics div {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.selected-fund-metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.selected-fund-metrics strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  word-break: break-word;
}

.selected-fund-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.identity-form-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    #fff;
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.identity-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0f766e, #14b8a6, #eab308);
}

.identity-form-header {
  display: grid;
  gap: 4px;
}

.identity-form-header span {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
}

.identity-form-header strong {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.identity-form-card label span {
  color: #334155;
  font-size: 14px;
}

.identity-form-card input {
  min-height: 48px;
  border-color: #dbe4ef;
  border-radius: 14px;
  background: #f8fafc;
}

.identity-form-card input:focus {
  background: #fff;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.identity-form-card .primary-button {
  background: linear-gradient(135deg, #0f172a, #115e59);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.sign-flow-panel {
  max-width: 920px;
}

.sign-review-card,
.signature-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.sign-review-card::before,
.signature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0f766e, #14b8a6, #eab308);
}

.sign-review-card {
  padding: 20px;
}

.review-card-header,
.signature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.review-card-header span,
.signature-card-header span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.review-card-header strong {
  color: #0f172a;
  font-size: 18px;
}

.review-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 16px;
  align-items: stretch;
}

.review-identity {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 82% 12%, rgba(20, 184, 166, 0.22), transparent 36%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.review-identity span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.review-identity strong {
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

.review-identity em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-style: normal;
  word-break: break-all;
}

.review-product {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  color: #f8fafc;
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 14%, rgba(45, 212, 191, 0.28), transparent 34%),
    radial-gradient(circle at 14% 86%, rgba(234, 179, 8, 0.18), transparent 30%),
    linear-gradient(135deg, #0f172a, #115e59 58%, #0f172a);
  isolation: isolate;
}

.review-product::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.08) 34% 35%, transparent 35% 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
}

.review-product h2 {
  max-width: calc(100% - 56px);
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.24;
}

.review-rate {
  display: grid;
  gap: 2px;
}

.review-rate span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.review-rate strong {
  color: #fef3c7;
  font-size: 40px;
  line-height: 0.96;
}

.review-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
}

.review-metrics div {
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.review-metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.review-metrics strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 14px;
  word-break: break-word;
}

.review-product p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.signature-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.signature-card-header {
  margin-bottom: 0;
}

.signature-card-header .summary-title {
  margin-bottom: 0;
}

.signature-card-header span {
  letter-spacing: 0;
  font-weight: 500;
}

.signature-card #signature-canvas {
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.signature-card .primary-button {
  background: linear-gradient(135deg, #0f172a, #115e59);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.info-flow-panel.product-theme-1 .identity-form-card .primary-button,
.sign-flow-panel.product-theme-1 .signature-card .primary-button {
  background: linear-gradient(135deg, #0f172a, #115e59);
}

.info-flow-panel.product-theme-2 .identity-form-card .primary-button,
.sign-flow-panel.product-theme-2 .signature-card .primary-button {
  background: linear-gradient(135deg, #111827, #1e3a8a);
}

.info-flow-panel.product-theme-3 .identity-form-card .primary-button,
.sign-flow-panel.product-theme-3 .signature-card .primary-button {
  background: linear-gradient(135deg, #111827, #3b0764);
}

.info-flow-panel.product-theme-4 .identity-form-card .primary-button,
.sign-flow-panel.product-theme-4 .signature-card .primary-button {
  background: linear-gradient(135deg, #020617, #334155);
}

.notice-card,
.summary-card,
.signature-panel,
.table-card,
.analysis-card,
.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
}

.notice-card {
  margin-top: 20px;
}

.product-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.product-tags span {
  background: #f4f7fb;
  border-radius: 999px;
  padding: 8px 12px;
}

.field-grid,
.summary-grid,
.stats-grid,
.detail-grid {
  display: grid;
  gap: 16px;
}

.field-grid,
.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.triple-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-form,
.admin-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 10px;
}

label span {
  font-weight: 600;
  color: #374151;
}

.field-note {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.public-page select {
  appearance: auto;
  -webkit-appearance: menulist;
  background-image: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #c79a22;
  box-shadow: 0 0 0 3px rgba(199, 154, 34, 0.16);
}

.summary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.summary-grid div,
.detail-list div {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 14px;
}

.summary-grid span,
.detail-list span,
.stat-card span {
  color: #6b7280;
  font-size: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-button {
  background: linear-gradient(135deg, #b8860b, #e4bf5c);
  color: #fff;
  box-shadow: 0 12px 24px rgba(184, 134, 11, 0.22);
}

.ghost-button {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.actions {
  margin-top: 20px;
}

.actions.center {
  justify-content: center;
}

.alert {
  background: #fff2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.success-alert {
  background: #eefbf3;
  color: #166534;
  border-color: #bbf7d0;
}

.signature-panel {
  margin-top: 10px;
}

#signature-canvas {
  width: 100%;
  height: auto;
  border: 1px dashed #c79a22;
  border-radius: 16px;
  background: #fcfdff;
  touch-action: none;
}

.signature-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.success-card {
  max-width: 720px;
  text-align: center;
  margin-top: 10vh;
}

.application-no {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f4f7fb;
  display: inline-block;
}

.success-flow-card {
  max-width: 720px;
  margin-top: 0;
  padding: 0;
  text-align: left;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.28), transparent 34%),
    radial-gradient(circle at 6% 94%, rgba(14, 165, 233, 0.18), transparent 34%),
    linear-gradient(135deg, #020617, #172033 58%, #0f172a);
}

.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 22px 14px calc(22px + env(safe-area-inset-bottom));
}

.success-page .hero-overlay {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.2)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px);
}

.success-page.product-theme-1 {
  background:
    radial-gradient(circle at 84% 12%, rgba(45, 212, 191, 0.32), transparent 34%),
    radial-gradient(circle at 10% 88%, rgba(234, 179, 8, 0.18), transparent 32%),
    linear-gradient(135deg, #0f172a, #115e59 58%, #0f172a);
}

.success-page.product-theme-2 {
  background:
    radial-gradient(circle at 84% 12%, rgba(56, 189, 248, 0.34), transparent 34%),
    radial-gradient(circle at 10% 88%, rgba(34, 197, 94, 0.16), transparent 32%),
    linear-gradient(135deg, #111827, #1e3a8a 58%, #0f172a);
}

.success-page.product-theme-3 {
  background:
    radial-gradient(circle at 84% 12%, rgba(168, 85, 247, 0.3), transparent 34%),
    radial-gradient(circle at 10% 88%, rgba(20, 184, 166, 0.18), transparent 32%),
    linear-gradient(135deg, #111827, #3b0764 54%, #0f172a);
}

.success-page.product-theme-4 {
  background:
    radial-gradient(circle at 84% 12%, rgba(234, 179, 8, 0.28), transparent 34%),
    radial-gradient(circle at 10% 88%, rgba(148, 163, 184, 0.22), transparent 32%),
    linear-gradient(135deg, #020617, #334155 58%, #0f172a);
}

.success-page .success-flow-card {
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(16px);
}

.success-flow-card::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #f59e0b, #fde68a, #38bdf8);
}

.success-card-watermark {
  position: absolute;
  right: -10px;
  bottom: 92px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 92px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.success-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 32px 32px 18px;
}

.success-flow-card .eyebrow {
  display: inline-flex;
  width: max-content;
  margin-bottom: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
}

.success-flow-card h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
}

.success-mark {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #064e3b;
  font-size: 28px;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #86efac);
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.28);
}

.success-intro {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 32px 24px;
  max-width: 620px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.success-receipt {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 32px 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
}

.success-receipt strong {
  color: #fef3c7;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.success-status-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1px;
  margin: 0 32px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.success-status-grid div {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.success-status-grid span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.success-status-grid strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.success-flow-card .actions {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  padding: 0 32px 32px;
}

.success-flow-card .primary-button {
  min-width: 160px;
}

.success-page.product-theme-1 .success-flow-card .primary-button {
  background: linear-gradient(135deg, #0f172a, #115e59);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.success-page.product-theme-2 .success-flow-card .primary-button {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  box-shadow: 0 14px 28px rgba(30, 58, 138, 0.22);
}

.success-page.product-theme-3 .success-flow-card .primary-button {
  background: linear-gradient(135deg, #111827, #3b0764);
  box-shadow: 0 14px 28px rgba(59, 7, 100, 0.22);
}

.success-page.product-theme-4 .success-flow-card .primary-button {
  background: linear-gradient(135deg, #020617, #334155);
  box-shadow: 0 14px 28px rgba(51, 65, 85, 0.22);
}

.admin-page {
  background: #eef2f7;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.admin-sidebar {
  background: #0f172a;
  color: #e5e7eb;
  padding: 24px 20px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.admin-sidebar nav {
  display: grid;
  gap: 10px;
}

.admin-sidebar nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-main {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-user {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d1d5db;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1.4fr) repeat(3, minmax(180px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.hero-metric-panel,
.metric-ring-card,
.money-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  padding: 20px;
}

.hero-metric-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92)),
    radial-gradient(circle at top right, rgba(228, 191, 92, 0.35), transparent 32%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.hero-metric-panel span,
.hero-metric-sub {
  color: #cbd5e1;
}

.hero-metric-panel strong {
  display: block;
  margin: 6px 0;
  font-size: 56px;
  line-height: 1;
}

.hero-metric-sub {
  font-size: 14px;
}

.hero-metric-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-metric-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
}

.metric-ring-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.metric-ring-card strong,
.money-card strong {
  display: block;
  color: #111827;
}

.metric-ring-card span,
.money-card span,
.rank-meta,
.legend-row,
.column-item strong {
  color: #6b7280;
  font-size: 13px;
}

.metric-ring {
  position: relative;
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.metric-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf2f7;
}

.metric-ring span {
  position: relative;
  z-index: 1;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

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

.money-card {
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.money-card strong {
  margin-top: 8px;
  font-size: 28px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.analysis-card {
  min-width: 0;
}

.chart-card {
  min-height: 280px;
}

.tight-header {
  align-items: baseline;
  margin-bottom: 14px;
}

.tight-header h2 {
  margin: 0;
}

.metric-note {
  color: #6b7280;
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
}

.donut-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}

.status-donut {
  position: relative;
  width: 172px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.status-donut::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf2f7;
}

.status-donut span {
  position: relative;
  z-index: 1;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
}

.legend-list,
.rank-list {
  display: grid;
  gap: 12px;
}

.legend-row,
.rank-row {
  padding: 12px;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #fbfdff;
}

.legend-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
}

.legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-row strong {
  color: #111827;
}

.column-chart {
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
  gap: 12px;
  align-items: end;
}

.column-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 24px 150px 20px;
  gap: 8px;
  justify-items: center;
}

.column-item span {
  color: #111827;
  font-weight: 700;
  font-size: 13px;
}

.column-track {
  width: 100%;
  max-width: 42px;
  height: 150px;
  display: flex;
  align-items: flex-end;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.column-bar {
  width: 100%;
  min-height: 4px;
  border-radius: inherit;
  background: linear-gradient(180deg, #2563eb, #60a5fa);
}

.rank-row {
  display: grid;
  gap: 10px;
}

.rank-row-header,
.rank-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rank-row-header strong {
  color: #111827;
}

.rank-row-header span {
  color: #4b5563;
  font-size: 13px;
}

.rank-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.rank-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(135deg, #d97706, #facc15);
}

.blue-fill {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-row-label,
.table-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4b5563;
  font-size: 14px;
}

.bar-row-label strong {
  color: #111827;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.bar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(135deg, #b8860b, #e4bf5c);
}

.compact-table th,
.compact-table td {
  padding-right: 12px;
}

.table-summary {
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.empty-state {
  color: #6b7280;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 12px;
}

tbody td {
  padding: 14px 0;
  border-top: 1px solid #edf2f7;
  vertical-align: top;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.compact-list div {
  padding: 12px 14px;
}

.signature-preview {
  padding: 16px;
  background: #f8fafc;
  border-radius: 14px;
  text-align: center;
}

.signature-preview img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.link-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.file-maintenance-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.small-title {
  font-size: 16px;
}

.full-span {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 34px;
}

.checkbox-field input {
  width: auto;
}

.admin-login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eaf0f8, #f8fbff);
}

.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
}

.wider-card {
  width: min(760px, 100%);
}

.narrow-card {
  max-width: 860px;
}

.full-width {
  width: 100%;
}

.centered-link {
  text-align: center;
}

.totp-setup-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  margin: 20px 0;
}

.qr-card {
  text-align: center;
}

.qr-image {
  width: 220px;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  border: 1px solid #e5e7eb;
}

.secret-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #c79a22;
  font-weight: 700;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.tips-text {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #4b5563;
}

.table-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pagination {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-left: auto;
}

.page-button {
  min-width: 40px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.page-button.active {
  border-color: #c79a22;
  background: #fff7df;
  color: #8a6508;
  font-weight: 700;
}

.page-button.disabled {
  color: #9ca3af;
  background: #f8fafc;
  cursor: not-allowed;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: #374151;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 960px) {
  .field-grid,
  .summary-grid,
  .product-card-grid,
  .dashboard-hero,
  .money-grid,
  .analysis-grid,
  .detail-grid,
  .stats-grid,
  .triple-grid,
  .totp-setup-grid,
  .file-maintenance-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    display: none;
  }

  .agreement-panel,
  .success-card {
    padding: 22px;
    border-radius: 20px;
  }

  .success-flow-card {
    padding: 0;
  }

  .donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 768px) {
  .field-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-header,
  .actions,
  .signature-actions,
  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .public-layout {
    padding: 10px 10px calc(18px + env(safe-area-inset-bottom));
  }

  .agreement-panel,
  .success-card {
    padding: 14px;
    border-radius: 18px;
  }

  .success-flow-card {
    margin-top: 0;
    padding: 0;
  }

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

  .success-flow-card h1 {
    font-size: 28px;
  }

  .success-intro {
    padding: 0 20px 18px;
    font-size: 14px;
    line-height: 1.7;
  }

  .success-receipt,
  .success-status-grid {
    margin-right: 20px;
    margin-left: 20px;
  }

  .success-status-grid {
    grid-template-columns: 1fr;
  }

  .success-flow-card .actions {
    padding: 0 20px 24px;
  }

  .product-home-panel {
    gap: 10px;
    background: rgba(255, 255, 255, 0.82);
  }

  .topbar h1 {
    margin: 4px 0 0;
    font-size: 23px;
    line-height: 1.15;
  }

  .topbar p {
    display: none;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    min-height: 48px;
  }

  .stepper {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin: 2px 0 0;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .stepper span {
    padding: 6px 9px;
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 11px;
  }

  .product-card {
    min-height: 318px;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .product-card-head h2 {
    max-width: calc(100% - 48px);
    font-size: 16px;
    line-height: 1.26;
  }

  .product-card-kicker {
    align-items: flex-start;
  }

  .product-card-kicker span,
  .product-card-kicker i {
    padding: 5px 8px;
    font-size: 10px;
  }

  .product-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .product-metrics div {
    padding: 8px;
  }

  .product-metrics span {
    font-size: 11px;
  }

  .product-metrics strong {
    font-size: 14px;
  }

  .product-hero-metric {
    min-height: 54px;
  }

  .product-hero-metric strong {
    font-size: 38px;
  }

  .product-hero-metric span,
  .product-rule,
  .product-card-footer strong {
    font-size: 12px;
  }

  .product-watermark {
    right: -6px;
    bottom: 58px;
    font-size: 50px;
  }

  .product-card-footer span {
    font-size: 10px;
  }

  .info-flow-panel {
    gap: 10px;
  }

  .info-topbar {
    display: grid;
    gap: 8px;
  }

  .info-topbar h1 {
    font-size: 22px;
  }

  .flow-back-link {
    width: max-content;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .flow-stepper {
    display: flex;
    padding: 5px;
  }

  .flow-stepper span {
    padding: 5px 7px;
    font-size: 10px;
  }

  .selected-fund-card {
    min-height: 260px;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .selected-fund-card h2 {
    max-width: calc(100% - 48px);
    font-size: 17px;
    line-height: 1.26;
  }

  .selected-fund-rate strong {
    font-size: 38px;
  }

  .selected-fund-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .selected-fund-metrics div {
    padding: 8px;
  }

  .selected-fund-metrics span,
  .selected-fund-card p {
    font-size: 11px;
  }

  .selected-fund-metrics strong {
    font-size: 13px;
  }

  .identity-form-card {
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
  }

  .identity-form-header span {
    font-size: 16px;
  }

  .identity-form-header strong {
    font-size: 12px;
  }

  .identity-form-card input {
    min-height: 46px;
    border-radius: 13px;
  }

  .sign-flow-panel {
    gap: 10px;
  }

  .sign-review-card,
  .signature-card {
    padding: 14px;
    border-radius: 16px;
  }

  .review-card-header,
  .signature-card-header {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
  }

  .review-card-header strong {
    font-size: 16px;
  }

  .review-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .review-identity {
    padding: 14px;
    border-radius: 16px;
  }

  .review-identity strong {
    font-size: 22px;
  }

  .review-identity em {
    font-size: 12px;
  }

  .review-product {
    gap: 9px;
    padding: 14px;
    border-radius: 16px;
  }

  .review-product h2 {
    max-width: calc(100% - 46px);
    font-size: 17px;
  }

  .review-rate strong {
    font-size: 34px;
  }

  .review-metrics div {
    padding: 8px;
  }

  .review-metrics span,
  .review-product p {
    font-size: 11px;
  }

  .review-metrics strong {
    font-size: 12px;
  }

  .signature-card {
    gap: 10px;
  }

  .signature-card-header span {
    font-size: 12px;
  }

  #signature-canvas {
    min-height: 200px;
  }

  .success-card-watermark {
    bottom: 130px;
    font-size: 72px;
  }
}

@media (max-width: 640px) {
  .agreement-panel,
  .success-card,
  .admin-main {
    padding: 14px;
  }

  .success-flow-card {
    width: 100%;
    padding: 0;
  }

  .success-card-top {
    gap: 12px;
    padding: 22px 18px 12px;
  }

  .success-flow-card .eyebrow {
    margin-bottom: 10px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .success-flow-card h1 {
    font-size: 25px;
  }

  .success-mark {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .success-intro {
    padding: 0 18px 16px;
  }

  .success-receipt,
  .success-status-grid {
    margin-right: 18px;
    margin-left: 18px;
    border-radius: 16px;
  }

  .success-receipt {
    display: grid;
    gap: 6px;
    padding: 14px;
  }

  .success-receipt strong {
    font-size: 16px;
  }

  .success-status-grid div {
    padding: 14px;
  }

  .success-flow-card .actions {
    padding: 0 18px 22px;
  }

  .success-flow-card .primary-button {
    width: 100%;
  }

  .product-card-kicker {
    display: flex;
    justify-content: stretch;
  }

  .product-card-kicker span,
  .product-card-kicker i {
    width: max-content;
  }

  .product-card-footer {
    display: grid;
    gap: 6px;
  }

}

@media (max-width: 480px) {
  .stepper {
    display: none;
  }

  .flow-stepper {
    display: flex;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .product-card {
    min-height: 306px;
  }

  .selected-fund-card {
    min-height: 244px;
  }

  .review-metrics {
    grid-template-columns: 1fr;
  }

  #signature-canvas {
    min-height: 190px;
  }
}
