:root {
  --bg: #06111f;
  --panel: rgba(8, 18, 33, 0.9);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --green: #22c55e;
  --blue: #38bdf8;
  --yellow: #facc15;
  --red: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.36), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(29, 155, 240, 0.34), transparent 30%),
    linear-gradient(135deg, #06111f, #10243c 48%, #052e16);
}

.payment-page {
  width: min(1180px, calc(100% - 28px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 18px;
  margin: 0 auto;
  padding: 24px 0;
}

.back-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  text-decoration: none;
}

.hero-card {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.art-side {
  position: relative;
  min-height: 560px;
}

.money {
  position: absolute;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: #052e16;
  background: linear-gradient(135deg, var(--yellow), #fff7ad);
  font-size: 36px;
  font-weight: 900;
  animation: floatMoney 4s ease-in-out infinite;
}

.money-one { left: 6%; top: 8%; }
.money-two { right: 10%; top: 14%; animation-delay: 0.8s; }
.money-three { left: 42%; top: 0; animation-delay: 1.4s; }

.worker {
  position: absolute;
  left: 25%;
  bottom: 190px;
  width: 260px;
  height: 330px;
}

.worker-head {
  position: absolute;
  left: 92px;
  top: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--yellow);
}

.worker-body {
  position: absolute;
  left: 52px;
  top: 82px;
  width: 180px;
  height: 190px;
  border-radius: 62px 62px 18px 18px;
  background: #1d9bf0;
}

.worker-arm {
  position: absolute;
  top: 160px;
  width: 122px;
  height: 34px;
  border-radius: 999px;
  background: var(--yellow);
}

.worker-arm.left { left: 0; transform: rotate(14deg); }
.worker-arm.right { right: -16px; transform: rotate(-12deg); }

.desk {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 52px;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 24px 70px rgba(34, 197, 94, 0.28);
}

.laptop {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 70px;
}

.screen {
  height: 180px;
  border: 14px solid #0f172a;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(34, 197, 94, 0.9) 12% 40%, transparent 40% 48%, rgba(56, 189, 248, 0.9) 48% 78%, transparent 78%),
    #020617;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.keyboard {
  height: 42px;
  border-radius: 0 0 8px 8px;
  background: #94a3b8;
}

.checkout-side {
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.9;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
}

.price-card span {
  color: var(--muted);
  font-weight: 900;
}

.price-card strong {
  color: var(--yellow);
  font-size: 32px;
}

.paypal-button-container {
  min-height: 62px;
  border-radius: 8px;
  overflow: hidden;
}

.apple-pay-container {
  display: grid;
  gap: 10px;
}

.apple-pay-button {
  width: 100%;
  height: 52px;
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 52px;
  --apple-pay-button-border-radius: 8px;
  --apple-pay-button-padding: 0;
}

.apple-pay-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.56);
  font-size: 14px;
  font-weight: 900;
}

.paused-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(250, 204, 21, 0.38);
  background: rgba(250, 204, 21, 0.12);
}

.paused-box strong {
  color: var(--yellow);
  font-size: 20px;
}

.paused-box span {
  color: var(--muted);
  font-weight: 900;
}

.payment-message {
  min-height: 26px;
  color: var(--muted);
  font-weight: 900;
}

.payment-message.error {
  color: #fecaca;
}

@keyframes floatMoney {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (max-width: 860px) {
  .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .art-side {
    min-height: 360px;
  }

  .worker {
    left: 18%;
    transform: scale(0.78);
    transform-origin: bottom left;
  }
}
