:root {
  color-scheme: light;
  --primary: #5b4dff;
  --accent: #7c3aed;
  --success: #15803d;
  --gold: #facc15;
  --dark: #111827;
  --ink: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --danger: #c2410c;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.11);
  --panel-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f8fb;
  color: var(--dark);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 12%, rgba(91, 77, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(124, 58, 237, 0.11), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #f3f4f8 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 22px;
  animation: pageFade 520ms ease both;
}

.checkout-window {
  width: min(1120px, 100%);
  border: 1px solid rgba(209, 213, 219, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.page-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 34px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #111827, #222b3a);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.2);
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 21px;
  font-weight: 900;
}

h1 {
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.secure-badge {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #e5e1ff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #5b559b;
  font-size: 13px;
  font-weight: 700;
}

.lock-icon,
.shield-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}

.lock-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.lock-icon::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.92fr) minmax(420px, 1.35fr);
  gap: 30px;
  padding: 22px 34px 34px;
}

.order-panel,
.payment-panel {
  min-width: 0;
  animation: cardUp 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.payment-panel {
  animation-delay: 90ms;
}

.order-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  border: 1px solid #dde2ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--panel-shadow);
}

.plan-card {
  position: relative;
  min-height: 244px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 34px 28px 24px;
  border-radius: 12px;
  overflow: hidden;
  color: #111827;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.94), transparent 18%),
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(91, 77, 255, 0.19), rgba(124, 58, 237, 0.1) 48%, rgba(250, 204, 21, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.plan-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -88px 18px;
  height: 180px;
  border-radius: 50%;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(ellipse at center, rgba(91, 77, 255, 0.2), transparent 55%),
    repeating-linear-gradient(28deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 7px);
  transform: rotate(-8deg);
}

.product-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 16px 34px rgba(91, 77, 255, 0.35);
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 21px;
  font-weight: 900;
}

.plan-card > div,
.plan-card > strong {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.plan-card h2 {
  margin-top: 10px;
  color: var(--dark);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 22px;
  line-height: 1.15;
}

.plan-card p {
  margin-top: 8px;
  color: #5f6475;
  font-size: 13px;
  line-height: 1.45;
}

.plan-card strong {
  justify-self: end;
  align-self: end;
  font-family: Montserrat, Inter, sans-serif;
  color: var(--dark);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1;
}

form,
.field-label {
  display: grid;
  gap: 9px;
}

.field-label {
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d7dce7;
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  outline: none;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.02);
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #475467 50%),
    linear-gradient(135deg, #475467 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

input:focus,
select:focus,
textarea:focus,
.input-wrap:focus-within,
.wallet-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 77, 255, 0.14), 0 8px 22px rgba(91, 77, 255, 0.08);
}

.input-wrap {
  position: relative;
  display: block;
  border-radius: 8px;
  transition: box-shadow 170ms ease;
}

.input-wrap input {
  padding-left: 44px;
}

.input-wrap::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  opacity: 0.72;
}

.email-wrap::before {
  border: 2px solid #64748b;
  border-radius: 3px;
}

.email-wrap::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 2;
  width: 11px;
  height: 7px;
  border-left: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-64%) rotate(-45deg);
  opacity: 0.72;
}

.name-wrap::before {
  border: 2px solid #64748b;
  border-radius: 50% 50% 45% 45%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hash-wrap::before {
  content: "#";
  width: auto;
  height: auto;
  color: #475467;
  font-size: 19px;
  font-weight: 900;
}

.totals,
.benefits,
.renewal-note {
  border: 1px solid #dde2ec;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.totals {
  padding: 14px 18px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  color: #475467;
  font-size: 13px;
}

.totals strong {
  color: var(--dark);
  font-weight: 800;
}

.totals .total-row {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
}

.totals .total-row strong {
  color: var(--primary);
  font-size: 17px;
}

.benefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  list-style: none;
}

.benefits li {
  position: relative;
  min-height: 20px;
  padding-left: 32px;
  color: #283243;
  font-size: 13px;
  line-height: 1.45;
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), #786dff);
}

.benefits li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.renewal-note,
.fine-print {
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.renewal-note {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
}

.shield-icon {
  width: 28px;
  height: 32px;
  border: 2px solid var(--primary);
  border-radius: 15px 15px 13px 13px;
}

.shield-icon::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.payment-panel {
  display: grid;
  align-content: start;
}

.provider-tab {
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 258px);
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid #dde2ec;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
}

.method-card {
  min-height: 44px;
  cursor: pointer;
  justify-content: space-between;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  box-shadow: none;
  padding: 10px 14px;
}

.method-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 77, 255, 0.1);
  animation: selectedPulse 360ms ease both;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
}

.brand-chip span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 12px;
}

.selected-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
}

.selected-dot::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.payment-box {
  display: grid;
  gap: 17px;
  padding: 26px 24px 22px;
  border: 1px solid #dde2ec;
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--panel-shadow);
}

.payment-box-header {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 2px;
}

.payment-icon {
  position: relative;
  width: 26px;
  height: 23px;
  margin-top: 2px;
  border: 2px solid var(--primary);
  border-radius: 5px;
}

.payment-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 7px;
  height: 2px;
  background: var(--primary);
}

.payment-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: -9px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--primary);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.payment-box h2 {
  color: var(--dark);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.payment-box p {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
}

.crypto-details {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #dfe3ec;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

.crypto-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.crypto-header h3 {
  margin: 0;
  color: var(--dark);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 17px;
  line-height: 1.25;
}

.crypto-header span {
  color: var(--primary);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.wallet-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  border: 1px solid #d7dce7;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 170ms ease, border-color 170ms ease;
}

.wallet-row input {
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.wallet-row input:focus {
  box-shadow: none;
}

.copy-wallet {
  min-height: 34px;
  width: 34px;
  justify-self: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  padding: 0;
}

.copy-wallet:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.copy-wallet span,
.copy-wallet span::after {
  display: block;
  width: 13px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.copy-wallet span {
  position: relative;
}

.copy-wallet span::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  background: #fff;
}

.actions {
  display: grid;
  gap: 10px;
}

button[data-provider],
.download-link {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  padding: 13px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.14);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    filter 170ms ease,
    opacity 170ms ease;
}

button[data-provider]::after {
  content: "→";
  position: absolute;
  right: 20px;
  font-size: 20px;
  line-height: 1;
  opacity: 0.9;
}

button[data-provider]:hover,
.download-link:hover {
  filter: brightness(0.99);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.18);
}

button[data-provider]:active {
  transform: translateY(0);
}

button:disabled {
  cursor: wait;
  opacity: 0.74;
  transform: none;
}

button.is-loading span:not(.button-loader) {
  opacity: 0.64;
}

.button-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}

.nowpayments {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #111827;
}

.nowpayments .button-loader {
  border-color: rgba(17, 24, 39, 0.25);
  border-top-color: #111827;
}

.nowpayments-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111827;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.crypto {
  background: linear-gradient(135deg, #22a268, var(--success));
}

.crypto-icon,
.demo-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  font-size: 13px;
  font-weight: 900;
}

.crypto-icon {
  position: relative;
  color: transparent;
}

.crypto-icon::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.crypto-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.demo {
  background: linear-gradient(135deg, #1f2937, var(--dark));
}

.demo-icon {
  font-size: 11px;
}

.status {
  position: relative;
  min-height: 26px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.status.is-success {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--success);
}

.status.is-success::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  animation: checkPop 360ms ease both;
}

.status.is-success::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  margin-left: 6px;
  margin-top: -1px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.fine-print {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px 0;
  color: #667085;
}

.policy-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-left: 26px;
  width: 100%;
}

.policy-links a {
  color: #5b4dff;
  font-weight: 900;
  text-decoration: none;
}

.policy-links a:hover {
  text-decoration: underline;
}

textarea {
  min-height: 130px;
  margin-top: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.download-link {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .shell {
    padding: 18px;
  }

  .checkout-window {
    border-radius: 12px;
  }

  .page-header {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 26px 22px 14px;
  }

  .secure-badge {
    justify-self: start;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px 22px 28px;
  }

  .order-panel,
  .payment-panel {
    animation-name: mobileStagger;
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 10px;
    place-items: stretch;
  }

  .checkout-window {
    width: 100%;
  }

  .page-header {
    gap: 18px;
  }

  .mark {
    width: 40px;
    height: 40px;
  }

  .checkout-grid {
    padding: 14px 14px 22px;
  }

  .order-panel,
  .payment-box {
    padding: 16px;
  }

  .plan-card {
    min-height: 220px;
    padding: 24px 20px 20px;
  }

  .provider-tab {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
  }

  .payment-box {
    border-radius: 0 0 12px 12px;
  }

  .payment-box-header {
    grid-template-columns: 1fr;
  }

  .crypto-header {
    display: grid;
  }

  .crypto-header span {
    justify-self: start;
  }

  .fine-print {
    padding: 14px 16px 0;
  }

  button[data-provider] {
    padding-right: 46px;
  }

  .success-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cardUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileStagger {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes selectedPulse {
  0% {
    transform: scale(0.985);
  }
  70% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes checkPop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
