:root{
  --bg:#f3f5fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#7a8496;
  --line:#e7eaf2;

  --purple:#6d5df3;
  --purple2:#866cff;
  --purple3:#a292ff;
  --purpleSoft:#f1eeff;

  --green:#15a462;
  --greenSoft:#e8f8ef;

  --warn:#a36e00;
  --warnSoft:#fff4d7;

  --shadow:0 24px 70px rgba(42,47,90,.12);
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top,#ffffff 0,#f9faff 34%,#f2f4fa 100%);
}

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

button,
input{
  font:inherit;
}

/* PAGE */
.viewport{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:18px 12px 34px;
}

.phone{
  width:100%;
  max-width:430px;
}

/* TOP */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:4px 4px 14px;
}

.brand{
  font-size:20px;
  font-weight:950;
  letter-spacing:-.045em;
}

.topCaption{
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}

/* MAIN CARD */
.card{
  position:relative;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(224,228,238,.95);
  border-radius:28px;
  padding:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.card:before{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(120,102,255,.06);
  top:-130px;
  right:-110px;
  pointer-events:none;
}

/* PROGRESS */
.progress{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
  margin-bottom:18px;
}

.step{
  height:5px;
  border-radius:999px;
  background:#e8e9ef;
}

.step.on{
  background:linear-gradient(90deg,var(--purple),var(--purple3));
  box-shadow:0 2px 8px rgba(109,93,243,.2);
}

/* TYPOGRAPHY */
.eyebrow{
  font-size:11px;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--purple);
}

.title{
  margin:7px 0 6px;
  font-size:26px;
  line-height:1.08;
  font-weight:950;
  letter-spacing:-.045em;
}

.sub{
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

/* AMOUNT CARD */
.amountHero{
  margin-top:18px;
  border-radius:22px;
  padding:18px;
  color:#fff;
  background:
    radial-gradient(circle at 90% 10%,rgba(255,255,255,.22),transparent 28%),
    linear-gradient(135deg,var(--purple),var(--purple2));
  box-shadow:0 14px 30px rgba(109,93,243,.22);
}

.amountTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}

.amountHero .small{
  font-size:11px;
  opacity:.84;
  font-weight:700;
}

.amountHero .big{
  margin-top:2px;
  font-size:38px;
  font-weight:950;
  letter-spacing:-.05em;
}

.methodChip{
  flex:0 0 auto;
  min-width:58px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  text-align:center;
  font-size:10px;
  font-weight:950;
  letter-spacing:.03em;
}

/* TIMER */
.timerWrap{
  display:flex;
  justify-content:center;
}

.countdown{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:11px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff1f0;
  color:#ce4741;
  font-size:13px;
  font-weight:950;
  box-shadow:0 4px 12px rgba(190,65,65,.08);
}

.timerDot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 0 4px rgba(206,71,65,.10);
}

/* QR */
.qrSection{
  margin-top:14px;
}

.qrCard{
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#fbfcff);
  padding:14px;
  box-shadow:0 10px 26px rgba(31,38,75,.05);
}

.qrOwner{
  text-align:center;
  font-size:15px;
  font-weight:950;
  letter-spacing:.01em;
  margin-bottom:8px;
}

.qrCrop{
  width:286px;
  height:286px;
  max-width:100%;
  margin:0 auto;
  overflow:hidden;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}

.qrImage{
  width:100%;
  height:100%;
  object-fit:contain;
  transform:scale(2.08);
  transform-origin:center center;
  display:block;
}

.scanHint{
  margin-top:10px;
  text-align:center;
  color:var(--muted);
  font-size:11px;
}

/* SUMMARY */
.summary{
  margin-top:17px;
}

.summaryRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:13px;
}

.summaryRow:last-child{
  border-bottom:0;
}

.summaryRow span:first-child{
  color:var(--muted);
}

.summaryRow strong{
  text-align:right;
  overflow-wrap:anywhere;
}

/* BUTTONS */
.actions{
  display:grid;
  gap:9px;
  margin-top:16px;
}

.btn{
  width:100%;
  min-height:47px;
  border:0;
  border-radius:15px;
  padding:13px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font-weight:950;
  transition:.15s ease;
}

.btn:active{
  transform:scale(.985);
}

.btn.primary{
  color:#fff;
  background:linear-gradient(135deg,var(--purple),var(--purple2));
  box-shadow:0 11px 24px rgba(109,93,243,.18);
}

.btn.secondary{
  color:#5948dc;
  background:var(--purpleSoft);
}

.btnIcon{
  font-size:17px;
  line-height:1;
}

/* WAITING */
.waiting{
  display:flex;
  align-items:center;
  gap:13px;
  margin-top:16px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:17px;
  background:#fafbfe;
}

.waitingIcon{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border-radius:12px;
  background:#f1eeff;
  display:grid;
  place-items:center;
}

.waitingText{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.waitingText strong{
  font-size:13px;
}

.waitingText span{
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

.spinner{
  width:19px;
  height:19px;
  border:3px solid #ddd7ff;
  border-top-color:var(--purple);
  border-radius:50%;
  animation:spin .8s linear infinite;
}

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

/* TRUST ROW */
.trustRow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:14px;
  color:#8b93a3;
  font-size:10px;
  font-weight:700;
}

/* STATUS */
.status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
}

.status.pending{
  background:var(--warnSoft);
  color:var(--warn);
}

.status.paid{
  background:var(--greenSoft);
  color:#14703f;
}

.status.review_required{
  background:#fff0f0;
  color:#9e3030;
}

.dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
}

/* SUCCESS */
.success{
  text-align:center;
}

.successGlow{
  display:flex;
  justify-content:center;
  margin:6px 0 16px;
}

.check{
  width:82px;
  height:82px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--greenSoft);
  color:var(--green);
  font-size:42px;
  box-shadow:
    0 0 0 10px rgba(22,164,100,.05),
    0 14px 28px rgba(22,164,100,.12);
}

.successAmount{
  margin-top:20px;
  padding:18px;
  border-radius:20px;
  color:#fff;
  background:linear-gradient(135deg,#13a05d,#28bc75);
  box-shadow:0 14px 28px rgba(22,164,100,.16);
}

.successLabel{
  font-size:11px;
  opacity:.84;
}

.successBig{
  font-size:36px;
  font-weight:950;
  letter-spacing:-.045em;
  margin-top:2px;
}

.successSummary{
  text-align:left;
}

.successFoot{
  margin-top:18px;
  color:#6d7688;
  font-size:11px;
  font-weight:800;
}

.reviewBox{
  display:flex;
  gap:12px;
  align-items:center;
  text-align:left;
}

.reviewIcon{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#fff0f0;
  color:#a33434;
  display:grid;
  place-items:center;
  font-weight:950;
}

.reviewBox strong{
  display:block;
  font-size:13px;
}

.reviewBox span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

/* MOBILE */
@media(max-width:460px){
  .viewport{
    padding:10px 8px 26px;
  }

  .card{
    padding:17px;
    border-radius:23px;
  }

  .title{
    font-size:24px;
  }

  .amountHero .big{
    font-size:35px;
  }

  .qrCard{
    padding:12px;
  }

  .qrCrop{
    width:274px;
    height:274px;
  }
}
