@font-face {
  font-family: "InterVariable";
  src: url("./assets/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "InterVariable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #0f172a;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background: #ffffff;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.brand-pattern {
  position: fixed;
  left: 86%;
  top: 88%;
  width: min(100vw, 520px);
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.page-content {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.purchase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 20px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.lead,
.purchase-copy,
.purchase-detail,
.meta,
p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.purchase-copy {
  margin-bottom: 4px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.purchase-detail {
  margin-bottom: 18px;
  text-align: center;
  font-size: 0.92rem;
}

.purchase-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.field-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: rgba(244, 247, 251, 0.9);
  color: #0f172a;
  padding: 0 16px;
}

.field-input:focus {
  outline: 2px solid rgba(0, 57, 237, 0.16);
  border-color: rgba(0, 57, 237, 0.3);
}

.field-input-static {
  display: flex;
  align-items: center;
}

.field-hint {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.wallet-connect-shell > div {
  width: 100%;
}

.wallet-connect-shell button {
  width: 100%;
}

.widget-shell {
  width: 100%;
}

.checkout {
  width: 100%;
}

.checkout > * {
  border-radius: 20px;
}

.error {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  font-weight: 600;
}

.meta {
  text-align: center;
}

.status-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.04);
}

.status-card-error {
  background: rgba(239, 68, 68, 0.08);
}

.status-card-success {
  background: rgba(22, 163, 74, 0.09);
}

.status-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.primary-button,
.text-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 18px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

.primary-button {
  border: 0;
  border-radius: 16px;
  min-height: 52px;
  background: #0039ed;
  color: #ffffff;
}

.primary-button:disabled {
  background: #c7d3eb;
  cursor: not-allowed;
}

.text-button,
.secondary-button {
  border: 0;
  background: transparent;
  color: #0039ed;
}

@media (max-width: 640px) {
  .page-content {
    padding: 18px 16px 36px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 1.45rem;
  }

  .brand-pattern {
    left: 86%;
    top: 88%;
    width: 100vw;
  }
}
