/* nimiq.gift — mint + claim screens. Custom values are in PX because @nimiq/style sets
   html{font-size:8px}; we lean on nq-input / nq-button for the canonical input border + pill,
   and compose the card by hand to control spacing precisely. */

body {
  font-family: "Mulish", "Muli", system-ui, -apple-system, sans-serif !important;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f8f8f8;
  color: #1f2348;
  -webkit-font-smoothing: antialiased;
}

.gift-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.111);
  padding: 40px 36px;
}

/* flag-hex language switcher (nimiq-app-shell), pinned top-right of the card */
.gift-lang {
  position: absolute;
  top: 14px;
  right: 14px;
}
.gift-lang ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.claimed .gift-lang {
  display: none;
}

.gift-header {
  text-align: center;
  margin-bottom: 24px;
}
.gift-logo {
  display: inline-block;
}

.gift-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 8px;
}
.gift-subtitle {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(31, 35, 72, 0.5);
  text-align: center;
  text-wrap: pretty;
  margin: 0 0 28px;
}

#mint-form {
  display: flex;
  flex-direction: column;
}
.gift-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(31, 35, 72, 0.5);
  margin: 0 0 8px;
}
.gift-optional {
  font-weight: 400;
  color: rgba(31, 35, 72, 0.4);
}

.gift-input-row {
  position: relative;
  margin-bottom: 20px;
}
.gift-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.gift-input-row .gift-input {
  margin-bottom: 0;
}
#amount {
  padding-right: 56px;
  /* hide the number spinner; the NIM suffix sits where it would be */
  -moz-appearance: textfield;
}
#amount::-webkit-outer-spin-button,
#amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.gift-input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 600;
  color: rgba(31, 35, 72, 0.5);
  pointer-events: none;
}

.gift-submit {
  width: 100%;
  margin-top: 8px;
}
.gift-hint {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(31, 35, 72, 0.5);
  text-align: center;
  margin: 16px 0 0;
}

.gift-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(217, 68, 50, 0.1);
  color: #d94432;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ---- result view ---- */
.gift-amount {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 20px;
}
.gift-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
#qr {
  width: 200px;
  height: 200px;
}
.gift-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
  text-align: center;
  background: #f4f4f4;
  color: #1f2348;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 0 0 16px;
}
.gift-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.gift-action {
  width: 100%;
}
.gift-status {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: rgba(31, 35, 72, 0.5);
  margin: 16px 0 0;
}
.gift-status.is-claimed {
  color: #21bca5;
}
.gift-again {
  display: block;
  margin: 16px auto 0;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: #1f2348;
  cursor: pointer;
  transition: color 0.2s cubic-bezier(0.25, 0, 0, 1);
}
.gift-again:hover {
  color: #0582ca;
}

/* ---- claim screen ---- */
.gift-message {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
  color: rgba(31, 35, 72, 0.7);
  margin: 4px 0 24px;
}

/* success = full green flood + solid white check (no glass) */
.claimed .gift-card {
  background-image: radial-gradient(100% 100% at bottom right, #41a38e, #21bca5);
  box-shadow: 0 8px 40px rgba(33, 188, 165, 0.28);
}
.claimed .gift-header {
  display: none;
}
.gift-success {
  text-align: center;
  padding: 12px 0 8px;
}
.gift-check {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.gift-title-on-dark {
  color: #fff;
}
.gift-success-text {
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
  color: rgba(255, 255, 255, 0.88);
  margin: 10px 0 0;
}

@media (max-width: 480px) {
  .gift-card {
    padding: 28px 20px;
  }
  .gift-title {
    font-size: 24px;
  }
}
