@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Roboto+Mono:wght@500;700&display=swap');

.page {
  --surface: #ffffff;
  --border: #e4e7f0;
  --t1: #111827;
  --t2: #4b5563;
  --t3: #6b7280;
  --green: #16a34a;
  --green-dark: #0a6e3d;
  --green-ink: #063a25;
  --gold: #d8a93a;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-card: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 75% 65% at 50% 38%, rgba(40,46,75,0.45), transparent 72%),
    linear-gradient(180deg, rgba(8,10,20,0.88), rgba(4,5,12,0.94));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px 40px 30px;
  box-shadow: 0 24px 64px rgba(10, 12, 24, 0.35), 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: cbgIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--green));
}
.center { text-align: center; }

.eyebrow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 2px 0 10px;
}
.heading {
  font-family: var(--font);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 8px;
  color: var(--t1);
}
.sub {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--t2);
  margin: 0 auto 22px;
  max-width: 360px;
}
.subTight { margin-bottom: 4px; }

/* ── bright green card (logo colours) ── */
.cc {
  position: relative;
  width: 100%;
  max-width: 384px;
  margin: 0 auto 22px;
  aspect-ratio: 1.586 / 1;
  border-radius: 16px;
  padding: 22px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(140% 150% at 82% 8%, #37d47f 0%, #1dbd63 38%, #12a455 66%, #0a7a43 100%);
  box-shadow:
    0 18px 40px rgba(6, 78, 46, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -16px 32px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.cc:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(6, 78, 46, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -16px 32px rgba(0, 0, 0, 0.16);
}
.ccTexture { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.6; }
.cc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 0;
}

.ccTop { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.ccChipRow { display: flex; align-items: center; gap: 11px; }

.chip {
  width: 46px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbefc0 0%, #e3bd5f 45%, #b8912f 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -1px 2px rgba(120, 90, 20, 0.4), 0 1px 2px rgba(0, 0, 0, 0.22);
  position: relative;
}
.chip::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 3px;
  border: 1px solid rgba(120, 90, 20, 0.55);
  background:
    linear-gradient(rgba(120, 90, 20, 0.5), rgba(120, 90, 20, 0.5)) 50% 33% / 100% 1.1px no-repeat,
    linear-gradient(rgba(120, 90, 20, 0.5), rgba(120, 90, 20, 0.5)) 50% 67% / 100% 1.1px no-repeat,
    linear-gradient(rgba(120, 90, 20, 0.5), rgba(120, 90, 20, 0.5)) 33% 50% / 1.1px 100% no-repeat,
    linear-gradient(rgba(120, 90, 20, 0.5), rgba(120, 90, 20, 0.5)) 67% 50% / 1.1px 100% no-repeat;
}
.contactless { color: rgba(255, 255, 255, 0.92); display: flex; }
.ccBrand {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-align: right;
  line-height: 1.05;
  text-shadow: 0 1px 3px rgba(0, 48, 24, 0.4);
}
.ccBrand small {
  display: block;
  font-weight: 700;
  font-size: 0.48rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.ccPrice { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; }
.ccCur { font-family: var(--font); font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: 0; text-shadow: 0 1px 4px rgba(0, 40, 20, 0.35); }
.ccAmt {
  font-family: var(--font);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 40, 20, 0.35);
}
.ccInt { font-family: var(--font); font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); letter-spacing: 0; }
.ccPending { position: relative; z-index: 1; font-size: 1.1rem; font-weight: 700; color: #ffffff; }

.ccBottom { display: flex; align-items: flex-end; justify-content: space-between; position: relative; z-index: 1; }
.ccField label {
  display: block;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 5px;
}
.ccField span {
  font-family: var(--font-card);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 48, 24, 0.4);
}

/* two-circle brand mark (gold + white) */
.ccLogo { position: relative; width: 48px; height: 30px; }
.ccLogo span { position: absolute; top: 1px; width: 28px; height: 28px; border-radius: 50%; }
.ccLogo span:first-child { left: 0; background: #e9c35c; }
.ccLogo span:last-child { left: 16px; background: rgba(255, 255, 255, 0.85); mix-blend-mode: screen; }

.plats { display: flex; gap: 9px; justify-content: center; margin-bottom: 20px; }
.plat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--t2);
  background: #eafaf0;
  border: 1px solid #c7ecd5;
}
.plat svg { color: var(--green); }

.btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #18a84e 0%, #0a6e3d 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(10, 110, 61, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: filter 0.2s ease, transform 0.18s ease, box-shadow 0.22s ease;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}
.btn:hover:not(:disabled)::before { left: 150%; }
.btn:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10, 110, 61, 0.5); }
.btn:active:not(:disabled) { transform: translateY(0); box-shadow: 0 4px 12px rgba(10, 110, 61, 0.4); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pay { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chipCard {
  height: 28px;
  min-width: 46px;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.visaTx { color: #1434cb; font-weight: 800; font-style: italic; font-size: 13px; letter-spacing: 0.3px; }
.amexTx { color: #1f72cf; font-weight: 800; font-size: 10px; letter-spacing: 0.4px; }
.gpayTx { color: #5f6368; font-weight: 600; font-size: 12px; }
.apayTx { color: #000; font-weight: 600; font-size: 12px; }

.stripe { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 15px; font-size: 0.72rem; color: var(--t3); }

.note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.link { background: none; border: none; color: var(--green-dark); font-weight: 700; cursor: pointer; text-decoration: underline; font-size: 0.8rem; padding: 0; }
.err { margin-top: 12px; font-size: 0.8rem; text-align: center; color: #dc2626; }

.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: cbgSpin 0.7s linear infinite; }
.spinLg { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #eafaf0; border-top-color: var(--green); animation: cbgSpin 0.8s linear infinite; margin: 4px auto 20px; }
.succ {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin: 4px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  animation: cbgPop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.reveal { animation: cbgFade 0.5s ease both; }

@keyframes cbgIn { from { opacity: 0; transform: translateY(20px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes cbgSpin { to { transform: rotate(360deg); } }
@keyframes cbgPop { 0% { transform: scale(0); } 62% { transform: scale(1.13); } 100% { transform: scale(1); } }
@keyframes cbgFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .card, .succ, .reveal { animation: none !important; }
  .spin, .spinLg { animation-duration: 1.2s; }
  .cc:hover { transform: none; }
}

@media (max-width: 520px) {
  .card { padding: 28px 22px 26px; }
  .heading { font-size: 1.7rem; }
}