.registration-section {
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    radial-gradient(circle at 15% 25%, rgba(56, 109, 135, 0.1), transparent 28%),
    radial-gradient(circle at 86% 75%, rgba(166, 109, 45, 0.09), transparent 30%),
    #080b10;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.registration-glow {
  position: absolute;
  width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.registration-glow-blue {
  top: 16%;
  left: -240px;
  background: rgba(72, 137, 166, 0.11);
}

.registration-glow-gold {
  right: -230px;
  bottom: 5%;
  background: rgba(205, 164, 94, 0.09);
}

.registration-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: stretch;
  gap: 24px;
}

.registration-card,
.request-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(205, 164, 94, 0.28);
  background: linear-gradient(150deg, rgba(17, 23, 31, 0.97), rgba(8, 11, 16, 0.97));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3), inset 0 0 0 4px rgba(205, 164, 94, 0.018);
}

.registration-card::before,
.request-card::before {
  position: absolute;
  top: -7px;
  left: 28px;
  width: 13px;
  aspect-ratio: 1;
  transform: rotate(45deg);
  border: 1px solid var(--gold-dark);
  background: #0c1016;
  content: "";
}

.registration-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(205, 164, 94, 0.16);
}

.registration-step {
  display: grid;
  flex: 0 0 54px;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid rgba(205, 164, 94, 0.5);
  background: #0a0e14;
  color: var(--gold-bright);
  font: 700 14px/1 var(--serif);
}

.registration-card-header > div:last-of-type {
  min-width: 0;
}

.panel-kicker {
  display: block;
  color: #7e8589;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.registration-card-header h3 {
  margin: 4px 0 0;
  color: #e4d7c1;
  font: 700 27px/1.15 var(--serif);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 24px 0 28px;
  padding: 13px 15px;
  border-left: 2px solid var(--blue);
  background: rgba(61, 111, 136, 0.075);
}

.privacy-icon {
  padding-top: 2px;
  color: var(--blue);
  font-size: 11px;
}

.privacy-note p {
  margin: 0;
  color: #8fa1aa;
  font-size: 10px;
  line-height: 1.65;
}

.registration-form {
  display: grid;
  gap: 20px;
}

.form-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #d7d0c4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field label > span {
  margin-right: auto;
  color: var(--crimson-bright);
}

.form-field label small {
  color: #6f7477;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.input-shell {
  position: relative;
}

.input-shell input {
  width: 100%;
  height: 50px;
  padding: 0 54px 0 15px;
  border: 1px solid rgba(205, 164, 94, 0.24);
  border-radius: 0;
  outline: 0;
  background: rgba(5, 8, 12, 0.82);
  color: #eee5d6;
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.input-shell input::placeholder {
  color: #4e5358;
}

.input-shell input:hover {
  border-color: rgba(205, 164, 94, 0.42);
}

.input-shell input:focus {
  border-color: var(--gold);
  background: rgba(8, 12, 17, 0.95);
  box-shadow: 0 0 0 3px rgba(205, 164, 94, 0.08);
}

.input-shell input[aria-invalid="true"] {
  border-color: #b84538;
  box-shadow: 0 0 0 3px rgba(184, 69, 56, 0.08);
}

.input-mark {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #686d71;
  font: 700 10px/1 var(--serif);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 7px 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.form-field > small,
.field-meta small {
  color: #656b6f;
  font-size: 8px;
  line-height: 1.5;
}

.character-count {
  min-width: max-content;
}

.field-error {
  min-height: 16px;
  margin: 4px 0 -8px;
  color: #d66d61;
  font-size: 9px;
  line-height: 1.45;
}

.registration-submit,
.export-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid #be4436;
  background: linear-gradient(180deg, #9f3026, #641914);
  color: #fff0d4;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 4px rgba(8, 5, 4, 0.42), 0 13px 30px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.registration-submit {
  justify-content: space-between;
  margin-top: 2px;
  padding: 0 18px 0 22px;
  font: 700 12px/1 var(--serif);
  letter-spacing: 0.14em;
}

.registration-submit i {
  color: var(--gold-bright);
  font: normal 20px/1 var(--sans);
}

.registration-submit:hover,
.registration-submit:focus-visible,
.export-button:not(:disabled):hover,
.export-button:not(:disabled):focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.14);
}

.request-card {
  display: flex;
  flex-direction: column;
}

.request-card-header {
  position: relative;
}

.request-count {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(114, 169, 197, 0.38);
  border-radius: 50%;
  background: rgba(49, 98, 121, 0.09);
  color: #aed2e2;
  font: 700 18px/1 var(--serif);
}

.request-list-wrap {
  min-height: 318px;
  margin: 24px 0;
  overflow: auto;
  border: 1px solid rgba(205, 164, 94, 0.14);
  background: rgba(4, 7, 10, 0.5);
}

.request-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 316px;
  padding: 30px;
  text-align: center;
}

.request-empty[hidden] {
  display: none;
}

.request-empty > span {
  margin-bottom: 13px;
  color: rgba(205, 164, 94, 0.52);
  font-size: 33px;
}

.request-empty strong {
  color: #bdb6aa;
  font: 700 18px/1.2 var(--serif);
}

.request-empty p {
  max-width: 260px;
  margin: 8px 0 0;
  color: #656a6e;
  font-size: 10px;
}

.request-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: requests;
}

.request-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(205, 164, 94, 0.11);
  counter-increment: requests;
}

.request-item:last-child {
  border-bottom: 0;
}

.request-item::before {
  display: grid;
  width: 31px;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid rgba(205, 164, 94, 0.34);
  color: var(--gold);
  font: 700 9px/1 var(--serif);
  content: counter(requests, decimal-leading-zero);
}

.request-identity {
  min-width: 0;
}

.request-identity strong {
  display: block;
  overflow: hidden;
  color: #ddd3c2;
  font: 700 15px/1.25 var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-identity small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #6e7478;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-remove {
  width: 33px;
  height: 33px;
  padding: 0;
  border: 1px solid rgba(184, 69, 56, 0.26);
  background: transparent;
  color: #a96159;
  font-size: 17px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.request-remove:hover,
.request-remove:focus-visible {
  border-color: #b84538;
  background: rgba(184, 69, 56, 0.08);
  color: #e17c70;
}

.request-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.export-button {
  flex-direction: column;
  padding: 12px 18px;
}

.export-button span {
  font: 700 12px/1.1 var(--serif);
  letter-spacing: 0.1em;
}

.export-button small {
  margin-top: 5px;
  color: rgba(255, 236, 207, 0.56);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.export-button:disabled,
.clear-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.clear-button {
  padding: 0 15px;
  border: 1px solid rgba(205, 164, 94, 0.24);
  background: rgba(14, 17, 22, 0.8);
  color: #8d8b85;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.registration-status {
  min-height: 20px;
  margin: 11px 0 0;
  color: #8d9396;
  font-size: 9px;
  text-align: center;
}

.registration-status.is-success {
  color: #85bca1;
}

.registration-status.is-error {
  color: #d66d61;
}

.sensitive-warning {
  margin-top: auto;
  padding: 13px 15px;
  border-left: 2px solid #a56f2e;
  background: rgba(165, 111, 46, 0.07);
}

.sensitive-warning strong {
  display: block;
  color: #c99c5d;
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sensitive-warning p {
  margin: 4px 0 0;
  color: #89837a;
  font-size: 9px;
  line-height: 1.55;
}

.json-contract {
  position: relative;
  margin-top: 24px;
  border: 1px solid rgba(205, 164, 94, 0.16);
  background: rgba(8, 11, 16, 0.72);
}

.json-contract summary {
  padding: 15px 18px;
  color: #9f9b93;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.json-contract pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  border-top: 1px solid rgba(205, 164, 94, 0.12);
  color: #aec5cf;
  font: 12px/1.65 Consolas, "Courier New", monospace;
}

@media (max-width: 980px) {
  .registration-layout {
    grid-template-columns: 1fr;
  }

  .request-list-wrap {
    min-height: 250px;
  }

  .request-empty {
    min-height: 248px;
  }
}

@media (max-width: 640px) {
  .registration-card,
  .request-card {
    padding: 26px 20px;
  }

  .registration-step {
    flex-basis: 46px;
  }

  .registration-card-header h3 {
    font-size: 23px;
  }

  .request-count {
    flex-basis: 36px;
    height: 36px;
    font-size: 15px;
  }

  .request-actions {
    grid-template-columns: 1fr;
  }

  .clear-button {
    min-height: 42px;
  }

  .json-contract pre {
    font-size: 10px;
  }
}
