@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #10213f;
  --ink: #172b4a;
  --muted: #56667e;
  --accent: #b94a12;
  --accent-dark: #9c3d0c;
  --orange-light: #ffd1a9;
  --line: #e1e7ef;
  --background: #0c1930;
  --white: #fff;
  font: 400 1rem/1.85 Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; isolation: isolate; display: flow-root; }
body::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #0c193017 0%, #0c19304d 42%, #0c1930e8 100%),
    linear-gradient(0deg, #0c1930db, transparent 70%),
    url('/images/bazaar.jpg') 30% center / cover no-repeat;
}
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #ef8d4e; outline-offset: 3px; }

.shell { width: min(100% - 3rem, 66rem); margin-inline: auto; }
.site-header { background: #10213fec; color: var(--white); border-block-end: 1px solid #ffffff26; }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  aspect-ratio: 1;
  flex: none;
  border-radius: .7rem;
  background: #ffffff19;
}
.brand-mark i {
  display: block;
  width: .95rem;
  height: 1.2rem;
  border: 2px solid #fff;
  border-radius: .2rem;
  position: relative;
}
.brand-mark i::before, .brand-mark i::after {
  content: '';
  position: absolute;
  inset-inline: .13rem;
  height: 2px;
  background: var(--orange-light);
}
.brand-mark i::before { top: .27rem; }
.brand-mark i::after { top: .57rem; }

.workspace {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 34rem);
  align-items: start;
  gap: clamp(1.25rem, 3.4vw, 2.5rem);
  margin-block: clamp(2.5rem, 8vw, 6rem);
}
.workspace > .card { grid-column: 2; grid-row: 1; }
.workspace-single { grid-template-columns: minmax(0, 34rem); }
.workspace-single > .card { grid-column: 1; }

.progress {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: min(100%, 17.5rem);
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border: 1px solid #ffffff30;
  border-radius: 1rem;
  color: var(--white);
  background: #10213fe8;
  backdrop-filter: blur(12px);
}
.progress h2 { font-size: 1.125rem; padding-block-end: 1rem; border-block-end: 1px solid #ffffff25; }
.progress ol { list-style: none; margin: .8rem 0 0; padding: 0; }
.progress li { display: flex; align-items: center; min-height: 3rem; gap: .65rem; color: #d7e1ef; font-size: .9rem; }
.progress li.current { color: #fff; font-weight: 700; }
.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 1.85rem;
  height: 1.85rem;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  font-size: .85rem;
}
.current .step-number { color: var(--navy); background: var(--orange-light); border-color: var(--orange-light); }
.complete .step-number { color: #fff; background: #ffffff20; }

.card {
  padding: clamp(1.25rem, 4vw, 2.65rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 1rem 3rem #04091255;
}
.card-heading { margin-block-end: 1.5rem; }
.card-heading h1 { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.5; color: var(--navy); }
.card-heading p, .status-detail { color: var(--muted); margin-block-start: .45rem; }
.stack { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .4rem; min-width: 0; font-size: .925rem; font-weight: 700; }
.field[hidden] { display: none; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 3.15rem;
  padding: .55rem .85rem;
  border: 1px solid #abb8ca;
  border-radius: .6rem;
  background: #fbfcfe;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 400;
}
input::placeholder { color: #67778e; opacity: 1; }
.field:has(> select) { position: relative; }
.field:has(> select)::after {
  content: '';
  position: absolute;
  inset-inline-end: 1.15rem;
  inset-block-end: 1.45rem;
  width: .43rem;
  height: .43rem;
  border-right: 2px solid #546a87;
  border-bottom: 2px solid #546a87;
  transform: rotate(45deg);
  pointer-events: none;
}
select {
  appearance: none;
  padding-inline-end: 2.75rem;
  border-color: #9cacc1;
  background-color: #f5f8fc;
  cursor: pointer;
}
select:invalid { color: #56667e; }
select:hover { border-color: #647d9f; background-color: #edf3fa; }
select:focus { border-color: #b94a12; background-color: var(--white); }
select option, select optgroup { color: var(--ink); background: var(--white); }
@media (forced-colors: active) {
  select { appearance: auto; padding-inline-end: .85rem; }
  .field:has(> select)::after { display: none; }
}
input[dir=ltr] { text-align: left; }
input.otp-code { text-align: center; letter-spacing: .35em; }
textarea { min-height: 6rem; resize: vertical; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover { background: var(--accent-dark); }
.button-outline { border-color: #b8c5d6; color: var(--navy); background: var(--white); }
.button-outline:hover { background: #edf2f8; }
.button-small { min-height: 2.5rem; padding: .35rem .85rem; font-size: .875rem; }
.stack > .button { margin-block-start: .25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.secondary-link { display: inline-block; margin-block-start: .9rem; color: #284b7b; text-underline-offset: .25em; font-size: .9rem; }

.callout { padding: .7rem .95rem; border: 1px solid transparent; border-radius: .55rem; margin-block-end: 1rem; }
.notice { color: #713708; background: #fff3e5; border-color: #f4d7b8; }
.error { color: #88271f; background: #fff0ef; border-color: #efc1bd; }
.success { color: #175637; background: #e9f7ef; border-color: #b5dcc6; }
div.callout, .fee { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.demo-code { letter-spacing: .12em; font-size: 1.125rem; }
.fee { padding-block: .75rem; margin-block-end: .9rem; border-block: 1px solid var(--line); }
.fee strong { font-size: 1.75rem; line-height: 1.4; }
.fee small { font-size: .875rem; }
.status { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.status-dot { width: .55rem; height: .55rem; flex: none; border-radius: 50%; background: currentColor; }
.details { margin-block: 1.25rem; border-block-start: 1px solid var(--line); }
.details > div {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr);
  gap: .75rem;
  padding-block: .6rem;
  border-block-end: 1px solid var(--line);
}
.details dt { color: var(--muted); font-size: .9rem; }
.details dd { overflow-wrap: anywhere; white-space: pre-wrap; }

@media (max-width: 44rem) {
  body::before { background-position: 45% center; }
  .shell { width: calc(100% - 2rem); }
  .workspace { grid-template-columns: minmax(0, 1fr); margin-block: 2.5rem 2rem; gap: .85rem; }
  .workspace > .card { grid-column: auto; grid-row: auto; }
  .progress { grid-column: auto; grid-row: auto; width: 100%; padding: .85rem; }
  .progress h2 { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .progress ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; gap: .35rem; }
  .progress li { flex-direction: column; gap: .22rem; text-align: center; font-size: .72rem; line-height: 1.6; }
  .step-number { width: 1.6rem; flex: 0 0 1.6rem; height: 1.6rem; }
}
@media (max-width: 25rem) {
  .field-grid, .details > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}
