* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(160deg, #0a0a0a 0%, #12121f 100%);
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-wrap {
  width: 100%;
  max-width: 460px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 20px;
}
.checkout-header .logo {
  font-size: 30px; font-weight: 800;
  background: linear-gradient(135deg,#f59e0b,#ef4444);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.checkout-header .shop { color: #f59e0b; font-weight: 600; font-size: 15px; margin-top: 4px; }
.checkout-header .secure { display:flex; align-items:center; justify-content:center; gap:6px;
  color:#888; font-size:12px; margin-top:8px; }

.checkout-box {
  background: #16162a;
  border: 1px solid #26264a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}

.amount-strip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px; background: linear-gradient(135deg,#1a1a3a,#1f1f42);
  border-bottom: 1px solid #26264a;
}
.amount-strip .lbl { color:#aaa; font-size:13px; }
.amount-strip .val { color:#f59e0b; font-size:28px; font-weight:800; }

.form-body { padding: 22px; }

.card-input-wrap {
  position: relative;
  background: #0e0e1e;
  border: 1px solid #2c2c50;
  border-radius: 12px;
  padding: 12px 14px 8px;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.card-input-wrap:focus-within { border-color: #f59e0b; }
.card-input-wrap label {
  display: block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .8px; color: #888; margin-bottom: 6px;
}
.card-input-wrap input {
  width: 100%; background: transparent; border: none; outline: none;
  color: #fff; font-size: 18px; letter-spacing: 1.2px;
  font-family: 'SF Mono','Courier New',monospace;
}
.card-input-wrap .brand { position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color:#888; font-size:11px; font-weight:700; letter-spacing:.5px; }
.card-input-wrap .brand img, .card-input-wrap .brand .glyph { display:inline-block; }

.row2 { display: flex; gap: 14px; }
.row2 > .card-input-wrap { flex: 1; }
.row2 input { font-size: 15px; letter-spacing: .5px; }

.secure-note {
  display: flex; align-items: center; gap: 6px; color: #888; font-size: 12px; margin-top: 4px; margin-bottom: 16px;
}

.pay-btn {
  width: 100%; padding: 15px; border: none; border-radius: 12px;
  background: linear-gradient(135deg,#f59e0b,#ef4444); color:#fff;
  font-size: 16px; font-weight: 800; cursor: pointer; letter-spacing:.3px;
  transition: transform .1s, box-shadow .2s;
}
.pay-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(245,158,11,.35); }
.pay-btn:active { transform: translateY(0); }
.pay-btn:disabled { opacity:.6; cursor:not-allowed; }

.supported {
  display: flex; gap: 8px; align-items: center; margin-top: 14px;
  color:#666; font-size:11px; flex-wrap:wrap; justify-content:center;
}
.supported span { padding:4px 8px; border:1px solid #2a2a4a; border-radius:6px; background:#14142a; }

.error-msg {
  display: none; background: rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.4);
  color:#fca5a5; border-radius:10px; padding:12px; font-size:13px; margin-bottom:14px;
}
.status-msg { text-align:center; font-size:13px; margin-top:12px; min-height:18px; }
.status-msg.loading { color:#f59e0b; }
.status-msg.done { color:#22c55e; }
.status-msg.fail { color:#ef4444; }

.result-box { display: none; text-align:center; padding: 20px; }
.result-box.visible { display:block; }
.result-box .big { font-size:44px; margin-bottom:8px; }
.result-box h2 { margin-bottom:6px; }
.result-box p { color:#aaa; font-size:14px; }
.result-box a { display:inline-block; margin-top:14px; color:#f59e0b; font-weight:700; }

/* Success / error standalone pages */
.center-card { background:#16162a; border:1px solid #26264a; border-radius:18px;
  padding:34px; max-width:420px; text-align:center; box-shadow:0 24px 60px rgba(0,0,0,.55); }
.center-card .big { font-size:46px; margin-bottom:10px; }
.center-card h2 { margin-bottom:8px; }
.center-card .details { background:#0e0e1e; border-radius:10px; padding:14px; margin:16px 0; text-align:left; }
.center-card .row { display:flex; justify-content:space-between; padding:6px 0; font-size:14px;
  border-bottom:1px solid #1a1a2e; }
.center-card .row:last-child { border-bottom:none; }
.center-card .row .k { color:#888; } .center-card .row .v { font-weight:600; }
.center-card .back { display:inline-block; margin-top:8px; color:#f59e0b; font-weight:700; text-decoration:none; }
