:root {
  color-scheme: dark;
  --bg: #020403;
  --panel: rgba(9, 19, 15, .72);
  --panel-strong: rgba(12, 28, 21, .86);
  --line: rgba(129, 255, 190, .18);
  --line-strong: rgba(100, 255, 177, .36);
  --text: #f4fff9;
  --muted: #94a89d;
  --green: #42f39b;
  --green-2: #8dffd1;
  --danger: #ff5e75;
  --warning: #ffca68;
  --shadow: 0 24px 70px rgba(0, 0, 0, .58);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(66, 243, 155, .15), transparent 30%),
    linear-gradient(135deg, #010302 0%, #06110d 46%, #030504 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .92), transparent 92%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.orders-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.orders-frame {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 18px;
  align-items: stretch;
}

.brand-panel,
.form-panel,
.success-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(14, 31, 25, .78), rgba(5, 8, 7, .82));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(24px);
  border-radius: 8px;
}

.brand-panel {
  min-height: 620px;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 28px;
}

.brand-panel::after,
.form-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 48%, rgba(141, 255, 209, .08), transparent 66%);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(141, 255, 209, .44);
  border-radius: 8px;
  color: #06110d;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  box-shadow: 0 0 34px rgba(66, 243, 155, .36);
}

.brand-mark svg,
.status-icon svg,
.btn svg,
.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  max-width: 320px;
  align-self: start;
  margin-top: clamp(36px, 6vh, 56px);
}

.brand-kicker,
.step-kicker {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand-copy h1,
.form-title h2,
.success-panel h1 {
  margin: 0;
  letter-spacing: 0;
}

.brand-copy h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: .92;
}

.brand-copy p,
.form-title p,
.hint,
.success-panel p,
.modal-card p,
.order-summary p {
  color: var(--muted);
  line-height: 1.6;
}

.brand-copy p {
  margin: 18px 0 0;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cce6da;
  font-size: 14px;
}

.signal-list span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(66, 243, 155, .75);
}

.form-panel {
  padding: clamp(24px, 5vw, 44px);
  min-height: 620px;
  display: grid;
  align-content: center;
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.step-dot {
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.step-dot.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  animation: fill-in 420ms ease both;
}

.form-title h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.form-title p {
  margin: 12px 0 0;
}

.order-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: #d7efe4;
  font-size: 13px;
  font-weight: 800;
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 0 17px;
  color: var(--text);
  background: rgba(255, 255, 255, .055);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input:focus {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 4px rgba(66, 243, 155, .12);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #dfffee;
  background: transparent;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, .08);
}

.btn {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, .065);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(141, 255, 209, .35);
  background: rgba(255, 255, 255, .1);
}

.btn.primary {
  color: #03120a;
  border-color: rgba(141, 255, 209, .5);
  background: linear-gradient(135deg, var(--green-2), var(--green));
  box-shadow: 0 16px 40px rgba(66, 243, 155, .24);
  font-weight: 800;
}

.btn.ghost {
  color: #dfffee;
}

.btn:disabled {
  cursor: progress;
  opacity: .72;
  transform: none;
}

.hint {
  margin: 0;
  font-size: 14px;
}

.order-summary {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(66, 243, 155, .2);
  border-radius: 8px;
  background: rgba(66, 243, 155, .065);
}

.order-summary strong {
  display: block;
  font-size: 16px;
}

.order-summary p {
  margin: 6px 0 0;
  font-size: 13px;
}

.success-panel {
  width: min(620px, 100%);
  padding: clamp(28px, 7vw, 56px);
  text-align: center;
}

.status-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #03120a;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  box-shadow: 0 0 56px rgba(66, 243, 155, .4);
}

.status-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.4;
}

.success-panel h1 {
  font-size: clamp(30px, 5vw, 52px);
}

.success-panel p {
  margin: 16px auto 0;
  max-width: 440px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(16px);
  animation: fade-in 180ms ease both;
}

.modal-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(15, 29, 24, .95), rgba(6, 8, 7, .94));
  box-shadow: var(--shadow);
  animation: modal-in 210ms ease both;
}

.modal-card h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0;
}

.modal-card p {
  margin: 12px 0 0;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.orders-toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, .12);
  border-left-color: var(--green);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(9, 18, 15, .92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
  animation: toast-in 180ms ease both;
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.danger {
  border-left-color: var(--danger);
}

.toast-title {
  margin: 0;
  font-weight: 800;
}

.toast-text {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(2, 18, 10, .25);
  border-top-color: #03120a;
  animation: spin 700ms linear infinite;
}

.screen-in {
  animation: screen-in 320ms ease both;
}

@keyframes fill-in {
  from { transform: translateX(-100%); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .orders-shell {
    padding: 18px;
    place-items: start center;
  }

  .orders-frame {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
    row-gap: 32px;
  }

  .brand-copy {
    margin-top: 0;
  }

  .form-panel {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .orders-shell {
    padding: 10px;
  }

  .brand-panel,
  .form-panel,
  .success-panel {
    padding: 20px;
  }

  .brand-copy h1 {
    font-size: 40px;
  }

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

  .orders-toasts {
    right: 10px;
    bottom: 10px;
  }
}
