@font-face {
  font-family: 'HS Sans';
  src: url('/asset.php?asset=fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
.hp-token {
  --token-ink: #effbf9;
  --token-muted: #c3d7e5;
  --token-mint: #a1ffcd;
  --token-line: #4e7f8d;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font: 14px/1.6 'HS Sans', 'Segoe UI', sans-serif;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  color: var(--token-ink);
  background: radial-gradient(ellipse at 50% 0, #163947, transparent 52%), #0a1325;
}
.hp-token *, .hp-token ::before, .hp-token ::after { box-sizing: border-box; }
.hp-token .hs-alert { margin: 0; padding: 10px 12px; border: 1px solid #986b76; border-radius: 10px; background: #392635; color: #ffdee7; }
.hp-token [hidden] { display: none !important; }
.hp-token .hp-token-shell { width: min(100%, 630px); margin-inline: auto; padding: clamp(12px, 4vw, 28px); }
.hp-token .hp-token-card {
  display: grid; gap: 16px; padding: clamp(15px, 4vw, 28px);
  border: 1px solid var(--token-line); border-radius: 22px;
  background: radial-gradient(ellipse at 92% 0%, #235660, transparent 52%),
    linear-gradient(156deg, #192d43, #0d172c 77%);
  box-shadow: inset 0 1px #c7fff44a, 0 16px 46px #04081191;
}
.hp-token .hp-token-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
.hp-token .hp-token-top > span { color: var(--token-muted); font-size: .71rem; font-weight: 700; letter-spacing: .065em; }
.hp-token .hp-token-back, .hp-token .hp-token-invoices {
  color: #e5f8ff; text-decoration: none; border-radius: 10px;
}
.hp-token .hp-token-back { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 10px; border: 1px solid #729da970; font-size: .83rem; }
.hp-token .hp-token-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(10px, 3vw, 22px); }
.hp-token .hp-token-hero h1 { margin: 0; color: #f5fffa; font-size: clamp(1.65rem, 6.9vw, 2.6rem); line-height: 1.07; letter-spacing: -.045em; }
.hp-token .hp-token-hero p, .hp-token .hp-token-dialog p { margin: 8px 0 0; font-size: .91rem; line-height: 1.45; color: var(--token-muted); }
.hp-token .hp-token-illustration {
  display: grid; place-items: center; width: clamp(46px, 14vw, 84px); aspect-ratio: 1.46; transform: rotate(-7deg);
  border: 1px solid #81d4c4; border-radius: 9px;
  background: repeating-linear-gradient(115deg, transparent 0 9px, #90f1d41e 9px 10px),
    linear-gradient(145deg, #317782, #19304f 75%);
  box-shadow: inset 0 1px #eafff878, 0 4px #122443, 0 8px 16px #081228c0;
}
.hp-token .hp-token-illustration::before {
  content: ""; width: 28%; aspect-ratio: 1.13; border: 1px solid var(--token-mint); border-radius: 3px;
  background: linear-gradient(90deg, transparent 47%, var(--token-mint) 48% 53%, transparent 54%), #a1ffcd26;
}
.hp-token .hp-token-form {
  display: grid; gap: 9px; padding: clamp(12px, 3vw, 18px);
  border: 1px solid #65869f64; border-radius: 15px; background: #101d31d4;
}
.hp-token .hp-token-form > label { font-size: .9rem; font-weight: 700; }
.hp-token .hp-token-form input[name="token"] {
  width: 100%; min-width: 0; min-height: 47px; padding-inline: 12px;
  font: 1rem ui-monospace, Consolas, monospace; letter-spacing: .025em;
  color: var(--token-ink); border: 1px solid #6b8fa4; border-radius: 10px; background: #0b1628;
}
.hp-token .hp-token-form input::placeholder { color: #a4becc; }
.hp-token .hp-token-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: 8px; }
.hp-token .hp-token-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px;
  border: 1px solid #6a8ca6; border-radius: 10px; background: #213a54; color: #eaf8ff;
  font: 700 .85rem/1.23 'HS Sans', system-ui, sans-serif; text-align: center; cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.hp-token .hp-token-action:hover { border-color: #9edfd9; background-color: #28475e; }
.hp-token .hp-token-action:active { transform: translateY(1px); }
.hp-token .hp-token-action:disabled { cursor: wait; opacity: .68; }
.hp-token .hp-token-photo { position: relative; }
.hp-token .hp-token-photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hp-token .hp-token-photo:focus-within { outline: 2px solid var(--token-mint); outline-offset: 3px; }
.hp-token .hp-token-photo:has(input:disabled) { opacity: .68; }
.hp-token .hp-token-primary {
  justify-content: space-between; padding-inline: 13px; color: #0d2d2a; border-color: #b8ffe1;
  background: linear-gradient(120deg, #b7ffcf, #66ddd2); box-shadow: inset 0 1px #fff9, 0 3px #164947;
}
.hp-token .hp-token-status { margin: 0; color: #cfefde; font-size: .83rem; }
.hp-token .hp-token-help { padding: 6px 9px; border: 1px solid #65869f64; border-radius: 9px; color: var(--token-muted); font-size: .82rem; }
.hp-token .hp-token-help summary { min-height: 30px; padding-block: 4px; color: #cdf0ed; cursor: pointer; }
.hp-token .hp-token-help p { margin: 4px 0 9px; }
.hp-token .hp-token-help label { display: block; }
.hp-token .hp-token-help input {
  width: 100%; min-width: 0; margin: 4px 0 8px; padding: 8px;
  color: var(--token-ink); border: 1px solid #6b8fa4; border-radius: 7px; background: #0b1628; font: inherit;
}
.hp-token .hp-qr-icon {
  flex: 0 0 13px; height: 13px; border: 1.5px dashed currentColor; border-radius: 3px;
  background: linear-gradient(transparent 44%, currentColor 45% 55%, transparent 56%);
}
.hp-token .hp-token-invoices {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px;
  padding: 8px 12px; border: 1px solid #748ba3; background: #1b2c45;
  font-size: .9rem; font-weight: 700;
}
.hp-token a:focus-visible, .hp-token button:focus-visible, .hp-token input:focus-visible {
  outline: 2px solid var(--token-mint); outline-offset: 3px;
}
.hp-token .hp-token-steps { list-style: none; counter-reset: hp-token-step; display: grid; gap: 7px; margin: 0; padding: 0; }
.hp-token .hp-token-steps li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; counter-increment: hp-token-step;
  padding: 9px; border: 1px solid #6b92aa55; border-radius: 10px; background: #101d30;
}
.hp-token .hp-token-steps li::before {
  grid-row: span 2; align-self: start; content: counter(hp-token-step); text-align: center;
  font: 700 .82rem/27px ui-monospace, monospace; color: #aeffe7; background: #23505b; border: 1px solid #4a8991; border-radius: 7px;
}
.hp-token .hp-token-steps li:nth-child(2)::before { color: #dde9ff; background: #334b7d; border-color: #6385b0; }
.hp-token .hp-token-steps li:nth-child(3)::before { color: #f2e0ff; background: #503e72; border-color: #9477af; }
.hp-token .hp-token-steps strong { font-size: .89rem; }
.hp-token .hp-token-steps span { grid-column: 2; color: var(--token-muted); font-size: .81rem; line-height: 1.43; }
.hp-token .hp-token-dialog {
  width: min(94vw, 440px); max-height: 90dvh; padding: 16px; margin: auto;
  color: var(--token-ink); border: 1px solid var(--token-line); border-radius: 16px; background: #14233c;
}
.hp-token .hp-token-dialog::backdrop { background: #070d1ed6; }
.hp-token .hp-token-dialog h2 { margin: 0; font-size: 1.2rem; color: var(--token-ink); }
.hp-token .hp-token-camera { margin-block: 10px; min-width: 0; overflow: hidden; border-radius: 9px; background: #081324; }
@media (prefers-reduced-motion: reduce) {
  .hp-token .hp-token-action { transition: none; }
}
