:root {
  --bg: #0b0613;
  --panel: #130b20;
  --panel-2: #1b1030;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --violet: #9d6bff;
  --magenta: #e255b5;
  --text: #f5f0ff;
  --muted: #9b8cb8;
  --danger: #ff6b85;
  --grad: linear-gradient(100deg, var(--violet), var(--magenta));
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(60rem 40rem at 100% 0%, rgba(157, 107, 255, 0.18), transparent 60%),
    radial-gradient(50rem 36rem at 0% 100%, rgba(226, 85, 181, 0.14), transparent 60%),
    var(--bg);
}

main {
  width: 100%;
  max-width: 440px;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.card {
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 2rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand svg { width: 22px; height: 22px; }

h1 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- identity ticket ---------- */
.ticket {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.ticket::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad);
}
.ticket small {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}
.ticket strong em { font-style: normal; color: var(--magenta); }

/* ---------- list of changes ---------- */
.changes {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.changes li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
}
.changes li span:last-child {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(157, 107, 255, 0.12);
  color: var(--violet);
}
.ico svg, .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- consent ---------- */
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  background: transparent center / 14px no-repeat;
  cursor: pointer;
  transition: 0.15s;
}
.consent input:checked {
  border-color: transparent;
  background-color: var(--violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0613' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.consent input:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: var(--grad);
  transition: transform 0.15s, filter 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn[aria-disabled='true'] { opacity: 0.35; filter: grayscale(0.6); pointer-events: none; }
.btn.ghost {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: var(--violet); filter: none; }

.fine {
  margin: 1.1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* ---------- result page ---------- */
.badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 0 1.5rem;
  border-radius: 16px;
  color: #fff;
  background: var(--grad);
}
.badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge.err { background: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
