:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --ink: #111827;
  --sub: #4b5563;
  --line: #d1d5db;
  --error: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 40%, #f0fdfa 100%);
  color: var(--ink);
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
  padding: 40px 36px;
  border: 1px solid #ecfdf5;
}

.logo {
  height: 40px;
  width: auto;
  margin-bottom: 24px;
}

h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
}

.subtitle {
  color: var(--sub);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

textarea {
  resize: none;
}

.amount-input {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 14px;
  color: var(--sub);
  font-size: 15px;
  pointer-events: none;
}

.amount-input input {
  padding-left: 28px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error);
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.form-error.visible {
  display: block;
}

button {
  width: 100%;
  background: var(--emerald);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

button:hover:not(:disabled) {
  background: var(--emerald-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.footnote {
  text-align: center;
  color: #9ca3af;
  font-size: 12.5px;
  margin: 20px 0 0;
}

/* Success / cancel pages */
.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.status-icon.success {
  background: #d1fae5;
  color: var(--emerald-dark);
}

.status-icon.cancel {
  background: #fee2e2;
  color: var(--error);
}

.status-detail {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  color: var(--sub);
  margin: 20px 0;
  text-align: left;
}

.status-detail div + div {
  margin-top: 6px;
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--emerald);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}
