/* 自助提现打款钱包 */

.page-self-payout .app-main {
  background: #f3f6fb;
  padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.sp-top__eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  color: #6b7c93;
}

.sp-top h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  color: #0b2b5b;
}

.sp-top__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #0a53db;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(15, 40, 80, 0.04);
}

.sp-top__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sp-top__cs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #0a53db;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(10, 83, 219, 0.28);
}

.sp-hero {
  margin: 4px 16px 12px;
  padding: 22px 18px 18px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 220, 120, 0.28), transparent 55%),
    linear-gradient(145deg, #0a53db 0%, #0740ad 55%, #052f84 100%);
  box-shadow: 0 12px 28px rgba(10, 83, 219, 0.22);
}

.sp-hero__label {
  margin: 0;
  font-size: 13px;
  opacity: 0.88;
}

.sp-hero__balance {
  display: block;
  margin: 8px 0 14px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.sp-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-hero__tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.sp-hero__tags b {
  font-weight: 700;
}

.sp-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff8ef;
  border: 1px solid #f0d2a8;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(154, 75, 0, 0.06);
}

.sp-ticker__badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: #c45a00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sp-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sp-ticker__line {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #7a3300;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.sp-ticker__line.is-out {
  opacity: 0;
  transform: translateY(-6px);
}

.sp-ticker__line.is-in {
  opacity: 0;
  transform: translateY(6px);
}

.sp-actions {
  display: grid;
  gap: 10px;
  padding: 0 16px 12px;
}

.sp-actions [hidden] {
  display: none !important;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sp-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0a53db, #0d6efd);
  box-shadow: 0 8px 18px rgba(10, 83, 219, 0.24);
}

.sp-btn--ghost {
  color: #0a53db;
  background: #fff;
  border: 1px solid #d7e4f8;
}

.sp-sources,
.sp-withdraw-card,
.sp-rules,
.sp-history {
  margin: 0 16px 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 40, 80, 0.03);
}

.sp-sources__head,
.sp-rules h2,
.sp-history h2,
.sp-withdraw-card h2 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #18345c;
}

.sp-sources__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-sources__head strong {
  color: #0a53db;
  font-size: 15px;
}

.sp-sources ul,
.sp-rules ul,
.sp-history ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-sources li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #eef2f8;
  font-size: 14px;
  color: #314867;
  gap: 10px;
}

.sp-sources li:first-child {
  border-top: 0;
  padding-top: 0;
}

.sp-sources__note,
.sp-recalls__head {
  margin: 10px 0 0;
}

.sp-sources__note {
  font-size: 12px;
  line-height: 1.55;
  color: #7a8aa3;
}

.sp-recalls {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d7e4f8;
}

.sp-recalls__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sp-recalls__head h3 {
  margin: 0;
  font-size: 13px;
  color: #18345c;
  font-weight: 600;
}

.sp-recalls__toggle {
  border: 0;
  background: transparent;
  color: #0a53db;
  font-size: 12px;
  padding: 4px 0;
  cursor: pointer;
}

.sp-recalls ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-recall-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #eef2f8;
}

.sp-recall-item:first-child {
  border-top: 0;
}

.sp-recall-item input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #0a53db;
  flex: 0 0 auto;
}

.sp-recall-item__body {
  flex: 1;
  min-width: 0;
}

.sp-recall-item__body strong {
  display: block;
  font-size: 14px;
  color: #18345c;
}

.sp-recall-item__body span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #7a8aa3;
}

.sp-recall-item__amt {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: #0a53db;
}

.sp-sources__note,
.sp-withdraw-card__desc {
  margin: 8px 0 0;
  font-size: 12px;
  color: #7a8aa3;
  line-height: 1.5;
}

.sp-field {
  display: grid;
  gap: 8px;
  margin: 12px 0 8px;
  font-size: 13px;
  color: #4a5d78;
}

.sp-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid #d9e4f5;
  border-radius: 12px;
  background: #f8fbff;
}

.sp-input-wrap input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #0b2b5b;
  outline: none;
}

.sp-all {
  border: 0;
  background: transparent;
  color: #0a53db;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sp-fee,
.sp-account {
  margin: 0 0 10px;
  font-size: 13px;
  color: #5b6f8c;
}

.sp-account strong {
  color: #18345c;
}

.sp-pending {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7e8;
  color: #9a6400;
  font-size: 13px;
  line-height: 1.45;
}

.sp-pending--stack {
  display: grid;
  gap: 6px;
  line-height: 1.6;
}

.sp-pending--stack p {
  margin: 0;
}

.sp-pending--urgent {
  background: #fff4f2;
  color: #8f1f1a;
  border: 1px solid rgba(196, 48, 43, 0.16);
}

.sp-verify {
  margin-bottom: 14px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
  border: 1px solid #d7e6fb;
}

.sp-verify--final {
  background: linear-gradient(180deg, #fff4e8 0%, #fffaf3 100%);
  border: 1px solid #efc48a;
  box-shadow: 0 8px 24px rgba(154, 75, 0, 0.08);
}

.sp-verify__badge {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0a53db;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.sp-verify--final .sp-verify__badge {
  background: #c45a00;
}

.sp-verify h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0b2b5b;
}

.sp-verify--final h3 {
  color: #7a3300;
  font-size: 17px;
}

.sp-verify p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #4d607c;
  line-height: 1.5;
}

.sp-verify__amount {
  margin: 0 0 10px !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed #efc48a;
  color: #7a3300 !important;
  font-size: 14px !important;
  font-weight: 700;
}

.sp-verify__account {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  color: #18345c !important;
  font-weight: 600;
}

.sp-verify__points {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.sp-verify__points li {
  position: relative;
  margin: 0 0 6px;
  padding: 0 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: #8a4a12;
  font-weight: 600;
}

.sp-verify__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c45a00;
}

.sp-confirm {
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #f0d2a8;
  background: #fff8ef;
}

.sp-verify--final .sp-confirm {
  border-color: #e8b36a;
  background: #fff3e0;
}

.sp-confirm__warn {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #9a4b00;
  font-weight: 600;
}

.sp-confirm .sp-field {
  margin: 0;
}

.sp-input-wrap--text input {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sp-verify .sp-btn {
  width: 100%;
  margin-top: 4px;
}

.sp-verify--final .sp-btn {
  background: #c45a00;
  border-color: #c45a00;
}

.sp-rules li {
  position: relative;
  padding: 7px 0 7px 14px;
  font-size: 13px;
  color: #4d607c;
  line-height: 1.45;
}

.sp-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0a53db;
}

.sp-rules a {
  color: #0a53db;
  font-weight: 700;
  text-decoration: none;
}

.sp-history li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid #eef2f8;
}

.sp-history li:first-child {
  border-top: 0;
  padding-top: 0;
}

.sp-history .sp-empty {
  color: #8a9bb3;
  font-size: 13px;
  padding: 8px 0;
}

.sp-history__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #18345c;
}

.sp-history__meta {
  font-size: 12px;
  color: #7a8aa3;
}

.sp-modal[hidden] {
  display: none !important;
}

.sp-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

.sp-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 45, 0.52);
}

.sp-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92dvh, calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  margin: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 18px 16px 14px;
  border-radius: 18px 18px 16px 16px;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 42%);
  box-shadow: 0 18px 40px rgba(8, 30, 70, 0.28);
  animation: sp-modal-in 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

@keyframes sp-modal-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sp-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.sp-modal__badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffe8b8;
  color: #9a6400;
  font-size: 12px;
  font-weight: 700;
}

.sp-modal__panel h2 {
  margin: 0 0 6px;
  font-size: clamp(17px, 4.6vw, 20px);
  line-height: 1.35;
  color: #0b2b5b;
}

.sp-modal__sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: #5b6f8c;
  line-height: 1.5;
}

.sp-modal__body[hidden] {
  display: none !important;
}

.sp-modal__body {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.sp-modal__body p {
  margin: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f5f8fd;
  font-size: 13.5px;
  line-height: 1.7;
  color: #314867;
  text-align: justify;
}

.sp-modal--urgent .sp-modal__body p {
  background: #fff7f6;
  border: 1px solid rgba(196, 48, 43, 0.12);
  color: #5c2c28;
}

.sp-modal__account[hidden] {
  display: none !important;
}

.sp-modal__account {
  margin: 0 0 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed rgba(196, 48, 43, 0.28);
  font-size: 13px;
  line-height: 1.55;
  color: #8f1f1a;
  word-break: break-all;
}

.sp-modal__account span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #b35a54;
}

.sp-modal__account strong {
  font-weight: 700;
  color: #6e1612;
}

.sp-modal__points {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.sp-modal__points li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 12.5px;
  color: #314867;
  line-height: 1.45;
}

.sp-modal__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: #0a53db;
  font-weight: 700;
}

.sp-modal--urgent .sp-modal__panel {
  max-height: min(94dvh, calc(100vh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  border: 1px solid rgba(196, 48, 43, 0.28);
  box-shadow: 0 16px 40px rgba(160, 32, 28, 0.18);
}

.sp-modal--rebind .sp-modal__points {
  margin-bottom: 8px;
}

.sp-modal--rebind .sp-modal__points li {
  padding-top: 4px;
  padding-bottom: 4px;
}

.sp-modal__actions {
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

.sp-modal__actions [hidden] {
  display: none !important;
}

.sp-modal__rebind[hidden] {
  display: none !important;
}

.sp-modal__kyc[hidden] {
  display: none !important;
}

.sp-modal__kyc {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
}

.sp-staff-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d3a72, #2b5cb8);
  color: #fff;
}

.sp-staff-card__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 15px;
  font-weight: 800;
}

.sp-staff-card__text strong {
  display: block;
  font-size: 14px;
}

.sp-staff-card__text p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.88;
}

.sp-kyc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sp-kyc-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #8a3a35;
}

.sp-kyc-global-status {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #9a3412;
}

.sp-kyc-global-status.is-error {
  color: #b42318;
  font-weight: 600;
}

.sp-kyc-global-status[hidden] {
  display: none !important;
}

.sp-kyc-grid[hidden] {
  display: none !important;
}

.sp-kyc-slot {
  position: relative;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.sp-kyc-slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.sp-kyc-slot__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border-radius: 10px;
  border: 1px dashed rgba(196, 48, 43, 0.35);
  background: #fff8f7;
  overflow: hidden;
}

.sp-kyc-slot__box em {
  font-style: normal;
  font-size: 12px;
  color: #b35a54;
  padding: 8px;
  text-align: center;
}

.sp-kyc-slot.is-filled .sp-kyc-slot__box em,
.sp-kyc-slot.is-locked .sp-kyc-slot__box em {
  display: none;
}

.sp-kyc-slot__box img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}

.sp-kyc-slot__box img[hidden] {
  display: none !important;
}

.sp-kyc-slot__name {
  font-size: 12px;
  font-weight: 700;
  color: #6e1612;
  text-align: center;
}

.sp-kyc-slot__status {
  display: block;
  min-height: 16px;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  color: #6b7280;
}

.sp-kyc-slot__status[hidden] {
  display: none !important;
}

.sp-kyc-slot.is-loading .sp-kyc-slot__box {
  opacity: 0.72;
}

.sp-kyc-slot.is-loading .sp-kyc-slot__status {
  color: #9a3412;
}

.sp-kyc-slot.is-error .sp-kyc-slot__box {
  border-color: #dc2626;
  background: #fff5f5;
}

.sp-kyc-slot.is-error .sp-kyc-slot__status {
  color: #dc2626;
}

.sp-kyc-slot.is-ready:not(.is-error) .sp-kyc-slot__status {
  color: #15803d;
}

.sp-kyc-slot.is-locked {
  cursor: default;
}

.sp-manual-applies {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sp-manual-applies[hidden] {
  display: none !important;
}

.sp-manual-applies li {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f8ff;
  border: 1px solid #c9ddff;
  font-size: 13px;
  color: #0b2b5b;
  line-height: 1.45;
}

.sp-manual-applies strong {
  display: block;
  font-size: 14px;
  color: #0a53db;
}

.sp-manual-amount__hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #7a2e28;
}

.sp-manual-amount__fee-preview {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff8f6 0%, #fff3ef 100%);
  border: 1px solid rgba(196, 48, 43, 0.18);
  font-size: 12px;
  line-height: 1.5;
  color: #8a3a35;
}

.sp-manual-amount__fee-preview strong {
  color: #b42318;
}

.sp-fee-trust {
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff9f8 0%, #fff4f2 100%);
  border: 1px solid rgba(196, 48, 43, 0.22);
}

.sp-fee-trust[hidden] {
  display: none !important;
}

.sp-fee-trust__badge {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #b42318;
  letter-spacing: 0.02em;
}

.sp-fee-trust__lead {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #7a2e28;
}

.sp-fee-trust__points {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: #8a3a35;
}

.sp-fee-trust__points li + li {
  margin-top: 4px;
}

.sp-fee-breakdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(196, 48, 43, 0.2);
}

.sp-fee-breakdown[hidden] {
  display: none !important;
}

.sp-fee-breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #6e1612;
  margin-bottom: 6px;
}

.sp-fee-breakdown__row strong {
  font-size: 14px;
  color: #b42318;
  white-space: nowrap;
}

.sp-fee-breakdown__row--fee strong {
  font-size: 16px;
}

.sp-modal--fee-trust .sp-staff-card {
  border-color: rgba(196, 48, 43, 0.28);
}

.sp-modal--fee-trust .sp-staff-card__avatar {
  background: linear-gradient(135deg, #c4302b 0%, #9a241f 100%);
}

.sp-fee-breakdown__note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #9a3412;
  opacity: 0.92;
}

.sp-manual-amount {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff7f2;
  border: 1px solid #f0c9b0;
}

.sp-manual-amount[hidden] {
  display: none !important;
}

.sp-manual-amount__refund {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0a7a32;
}

.sp-manual-amount__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #7a3300;
}

.sp-manual-amount__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-manual-amount__chip {
  border: 1px solid #0a53db;
  background: #fff;
  color: #0a53db;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.sp-manual-amount__chip.is-on {
  background: #0a53db;
  color: #fff;
}

.sp-modal--kyc .sp-modal__points {
  display: none;
}

.sp-modal__rebind {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.sp-modal__type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sp-modal__type-btn {
  height: 40px;
  border: 1px solid #d5deeb;
  border-radius: 10px;
  background: #fff;
  color: #314867;
  font-size: 14px;
  font-weight: 600;
}

.sp-modal__type-btn.is-active {
  border-color: #c4302b;
  background: #fff1f0;
  color: #c4302b;
  box-shadow: inset 0 0 0 1px rgba(196, 48, 43, 0.2);
}

.sp-modal__field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #314867;
}

.sp-modal__field[hidden] {
  display: none !important;
}

.sp-modal__field input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d5deeb;
  border-radius: 10px;
  background: #fff;
  color: #0b2b5b;
  font-size: 16px; /* 避免 iOS 自动放大 */
  outline: none;
}

.sp-modal__field input:focus {
  border-color: #c4302b;
  box-shadow: 0 0 0 3px rgba(196, 48, 43, 0.12);
}

.sp-modal__rebind-warn {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #c4302b;
}

@media (max-height: 700px) {
  .sp-modal__panel {
    padding: 14px 14px 12px;
  }
  .sp-modal__panel h2 {
    font-size: 17px;
  }
  .sp-modal__sub {
    font-size: 12.5px;
    margin-bottom: 8px;
  }
  .sp-modal__points li {
    font-size: 12px;
  }
  .sp-modal__field input,
  .sp-modal__type-btn {
    height: 42px;
  }
}

@supports not (height: 100dvh) {
  .sp-modal__panel {
    max-height: calc(100vh - 24px);
  }
}

.sp-modal__amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5ff;
  color: #314867;
  font-size: 13px;
}

.sp-modal__amount[hidden] {
  display: none !important;
}

.sp-modal__amount strong {
  font-size: 22px;
  color: #0a53db;
}

.sp-modal--urgent .sp-modal__badge {
  background: #c4302b;
  color: #fff;
}

.sp-modal--urgent .sp-modal__panel h2 {
  color: #8f1f1a;
}

.sp-modal--urgent .sp-modal__points li::before {
  color: #c4302b;
}

.sp-modal--urgent .sp-btn--primary {
  background: #c4302b;
  border-color: #c4302b;
}

@keyframes sp-btn-flash {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(196, 48, 43, 0.55);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(196, 48, 43, 0);
  }
}

.sp-btn--flash {
  animation: sp-btn-flash 1.05s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sp-btn--flash {
    animation: none;
    box-shadow: 0 0 0 4px rgba(196, 48, 43, 0.35);
  }
}

.sp-final-dialog[hidden] {
  display: none !important;
}

.sp-final-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sp-final-dialog__mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 45, 0.55);
}

.sp-final-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0 12px 16px;
  padding: 18px 16px 16px;
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(180deg, #fff8ef 0%, #ffffff 42%);
  border: 1px solid #efc48a;
  box-shadow: 0 18px 40px rgba(122, 51, 0, 0.18);
}

.sp-final-dialog__badge {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #c45a00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.sp-final-dialog__panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #7a3300;
}

.sp-final-dialog__sub {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #8a4a12;
}

.sp-final-dialog__card {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0d2a8;
}

.sp-final-dialog__card p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  color: #6b4a28;
}

.sp-final-dialog__card strong {
  color: #7a3300;
  font-size: 15px;
  text-align: right;
  word-break: break-all;
}

.sp-final-dialog__warn {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #9a4b00;
  font-weight: 600;
}

.sp-final-dialog__actions {
  display: grid;
  gap: 8px;
}

.sp-final-dialog__actions .sp-btn--primary {
  background: #c45a00;
  border-color: #c45a00;
}

@media (min-width: 768px) {
  .sp-modal {
    align-items: center;
  }
  .sp-modal__panel {
    margin-bottom: 0;
    border-radius: 18px;
  }
  .sp-final-dialog {
    align-items: center;
  }
  .sp-final-dialog__panel {
    margin-bottom: 0;
    border-radius: 18px;
  }
}
