/* Customer pages (order, track, 404). Loaded after site.css and landing.css on <body class="landing app">. */
.app {
  --ink: #f4f4f7;
  --ink-2: rgb(244 244 247 / 0.68);
  --ink-3: rgb(244 244 247 / 0.45);
  --paper: #0a0714;
  --card: rgb(255 255 255 / 0.035);
  --line: rgb(255 255 255 / 0.1);
  --ok: #35e0a1;
  --bad: #ff6b76;
  min-height: 100vh;
  min-height: 100dvh;
}
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.app-bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  transition: background 0.6s;
}
.app-bg i:nth-child(1) {
  width: 620px;
  height: 620px;
  top: -320px;
  right: -160px;
  background: var(--accent);
  opacity: 0.4;
}
.app-bg i:nth-child(2) {
  width: 520px;
  height: 520px;
  bottom: -300px;
  left: -200px;
  background: var(--accent-b);
  opacity: 0.22;
}
.app main {
  padding: 118px 0 90px;
}
.app h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.app .lead {
  margin-top: 10px;
  color: var(--fg-2);
  font-size: 17px;
  max-width: 600px;
}
.card {
  border-radius: 24px;
  background: rgb(16 17 25 / 0.72);
  border: 1px solid var(--edge);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(20px, 3vw, 32px);
}
.card h2 {
  font-size: 20px;
  font-weight: 800;
}
.muted {
  color: var(--fg-2);
  font-size: 14.5px;
}

/* ---------- form controls on dark ---------- */
.app .input {
  background: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.12);
  color: var(--fg);
  padding: 13px 15px;
  border-radius: 14px;
}
.app .input::placeholder {
  color: rgb(244 244 247 / 0.32);
}
.app .input:hover {
  border-color: rgb(255 255 255 / 0.24);
}
.app .input:focus {
  border-color: var(--accent-ink);
  background: rgb(255 255 255 / 0.07);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent);
}
.app .input[aria-invalid="true"] {
  border-color: var(--bad);
}
.app .field label {
  color: var(--fg);
}
.app .drop {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--fg-2);
  padding: 34px 18px;
  border-radius: 18px;
}
.app .drop b {
  color: var(--accent-ink);
  font-size: 16px;
}
.app .drop.over,
.app .drop:hover {
  border-color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.drop-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent-ink);
}
.drop-ico svg {
  width: 22px;
  height: 22px;
}
.app .files li {
  background: rgb(255 255 255 / 0.05);
  border-color: var(--edge);
  color: var(--fg);
}
.app .files li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex: none;
}
.app .notice.bad {
  background: rgb(255 107 118 / 0.1);
  border-color: rgb(255 107 118 / 0.35);
}
.app .notice.ok {
  background: rgb(53 224 161 / 0.1);
  border-color: rgb(53 224 161 / 0.35);
}
.app .progress {
  background: rgb(255 255 255 / 0.1);
}
.app .progress i {
  background: linear-gradient(90deg, var(--accent), var(--accent-b));
}

/* ---------- order: layout ---------- */
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  margin-top: 34px;
  align-items: start;
}
.order-grid > aside {
  position: sticky;
  top: 96px;
}
@media (max-width: 980px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
  .order-grid > aside {
    position: static;
  }
}

/* ---------- stepper ---------- */
.stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-3);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}
.stepper li b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 0.2);
  font-size: 14px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  flex: none;
}
.stepper li.on {
  color: var(--fg);
}
.stepper li.on b {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 22px -2px var(--accent);
}
.stepper li.done b {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
.stepper li:not(:last-child)::after {
  content: "";
  width: clamp(14px, 5vw, 56px);
  height: 2px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.14);
}
.stepper li.done:not(:last-child)::after {
  background: var(--accent-ink);
}
@media (max-width: 560px) {
  .stepper li:not(.on) span {
    display: none;
  }
}

.pane {
  display: grid;
  gap: 20px;
  animation: pane-in 0.45s var(--ease);
}
.pane:focus {
  outline: none;
}
@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.pane-head p {
  margin-top: 4px;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.wizard-nav .btn:only-child {
  margin-inline-start: auto;
}

/* review step */
.review {
  display: grid;
  gap: 2px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--edge);
}
.review > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 13px 18px;
  background: rgb(255 255 255 / 0.035);
  font-size: 15px;
}
.review dt {
  color: var(--fg-3);
}
.review dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
@media (max-width: 480px) {
  .review > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- site card (order side, track side) ---------- */
.sitecard {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.sitecard .win-static {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: #15161f;
  box-shadow: 0 30px 70px -30px var(--accent);
}
.sitecard .win-top {
  padding: 8px 12px;
}
.sitecard .win-top .dots i {
  width: 8px;
  height: 8px;
}
.sitecard .win-top .addr {
  font-size: 11.5px;
  padding: 3px 10px;
}
.sitecard h2 {
  font-size: 19px;
}
.sitecard .label {
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.mini-trades {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-trades button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgb(255 255 255 / 0.04);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.mini-trades button:hover {
  background: rgb(255 255 255 / 0.1);
}
.mini-trades button[aria-pressed="true"] {
  background: #fff;
  color: #0b0b10;
  border-color: #fff;
}
.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.color-row .label {
  margin: 0;
}

/* ---------- success ---------- */
.success {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
}
.success .ring {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ok);
  background: rgb(53 224 161 / 0.1);
  box-shadow: 0 0 0 10px rgb(53 224 161 / 0.06), 0 0 60px -6px rgb(53 224 161 / 0.5);
  animation: pop 0.6s var(--ease);
}
.success .ring svg {
  width: 44px;
  height: 44px;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.5s 0.35s ease-out forwards;
}
@keyframes pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.ticket-big {
  margin: 28px 0;
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.04);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.ticket-big small {
  color: var(--fg-3);
  font-size: 13px;
}
.ticket-big code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 700;
  letter-spacing: 0.1em;
  direction: ltr;
}
.nexts {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
  text-align: start;
  counter-reset: n;
}
.nexts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.035);
  border: 1px solid var(--edge);
  color: var(--fg-2);
  font-size: 15px;
}
.nexts li::before {
  counter-increment: n;
  content: counter(n, persian);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 13px;
  flex: none;
}
.success .actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- track ---------- */
.lookup {
  max-width: 560px;
  margin: 34px auto 0;
}
.track-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.track-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  margin-top: 30px;
  align-items: start;
}
.track-main {
  display: grid;
  gap: 24px;
}
@media (max-width: 980px) {
  .track-grid {
    grid-template-columns: 1fr;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent-ink);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.badge.cancelled {
  background: rgb(255 107 118 / 0.12);
  border-color: rgb(255 107 118 / 0.4);
  color: var(--bad);
}
.status-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.vtimeline {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
}
.vtimeline li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding-bottom: 26px;
  position: relative;
  color: var(--fg-3);
}
.vtimeline li:last-child {
  padding-bottom: 0;
}
.vtimeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 16px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: rgb(255 255 255 / 0.12);
}
.vtimeline li:last-child::before {
  display: none;
}
.vtimeline .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgb(255 255 255 / 0.18);
  background: var(--bg);
  font-size: 14px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.vtimeline .dot svg {
  width: 16px;
  height: 16px;
}
.vtimeline b {
  display: block;
  font-size: 16px;
  padding-top: 4px;
}
.vtimeline span {
  font-size: 14.5px;
}
.vtimeline li.done {
  color: var(--fg-2);
}
.vtimeline li.done b {
  color: var(--fg);
}
.vtimeline li.done .dot {
  background: color-mix(in srgb, var(--accent) 30%, var(--bg));
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
.vtimeline li.done::before {
  background: var(--accent-ink);
}
.vtimeline li.now .dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 26px var(--accent);
}
.vtimeline li.now::before {
  background: rgb(255 255 255 / 0.12);
}
.facts {
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: 14.5px;
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.facts dt {
  color: var(--fg-3);
}
.facts dd {
  margin: 0;
  font-weight: 600;
  text-align: end;
  overflow-wrap: anywhere;
}
.facts code {
  font-family: ui-monospace, Consolas, monospace;
  direction: ltr;
  display: inline-block;
  letter-spacing: 0.06em;
}
.files-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .pane,
  .success .ring,
  .success .ring svg {
    animation: none;
    stroke-dashoffset: 0;
  }
}
.vtimeline li.now {
  color: var(--fg-2);
}
.vtimeline li.now b {
  color: var(--fg);
}

/* ---------- admin ---------- */
.admin-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid var(--edge);
  color: var(--fg-2);
}
.admin .sub {
  color: var(--fg-2);
}
.admin .filter {
  background: rgb(255 255 255 / 0.04);
  border-color: var(--edge);
  color: var(--fg-2);
}
.admin .filter:hover {
  background: rgb(255 255 255 / 0.1);
}
.admin .filter[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: #0b0b10;
}
.admin .order {
  background: rgb(16 17 25 / 0.72);
  border-color: var(--edge);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.admin .order-top code,
.admin .order-notes {
  background: rgb(255 255 255 / 0.05);
  color: var(--fg-2);
}
.admin .order-meta,
.admin .kv dt {
  color: var(--fg-3);
}
.admin .order-files a {
  border-color: var(--edge);
  color: var(--fg);
}
.admin .order-files a:hover {
  border-color: var(--accent-ink);
}
.admin .kv a {
  color: var(--accent-ink) !important;
}
.admin .empty {
  color: var(--fg-3);
}
.admin select.input option {
  background: #16171f;
  color: var(--fg);
}
/* 12 color choices as two even rows of six instead of 10 + a stray 2 */
#side-swatches.swatches {
  display: grid;
  grid-template-columns: repeat(6, 30px);
  gap: 12px;
}

/* ---------- site content form (/content) ---------- */
.save-state {
  font-size: 13.5px;
  color: var(--fg-3);
  white-space: nowrap;
}
.save-state.ok {
  color: var(--ok);
}
.save-state.busy {
  color: var(--fg-2);
}
.save-state.bad {
  color: var(--bad);
}
.c-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.c-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fg-2);
  font-size: 15px;
}
.ring-pg {
  --p: 0;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, var(--bg) 78%, transparent 80% 100%),
    conic-gradient(var(--accent-b) calc(var(--p) * 1%), rgb(255 255 255 / 0.1) 0);
  transition: --p 0.4s;
}
.ring-pg b {
  font-size: 19px;
  font-weight: 900;
  color: var(--fg);
}
.assure {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-b) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent-b) 35%, transparent);
}
.assure-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgb(255 255 255 / 0.1);
  color: #fbcfe8;
}
.assure-ico svg {
  width: 26px;
  height: 26px;
}
.assure b {
  font-size: 18px;
  font-weight: 900;
}
.assure p {
  margin-top: 4px;
  color: var(--fg-2);
  font-size: 15.5px;
}
.c-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  margin-top: 26px;
  align-items: start;
}
.c-steps {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 14px;
}
.c-steps a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--fg-2);
  transition: background 0.2s, color 0.2s;
}
.c-steps a:hover {
  background: rgb(255 255 255 / 0.06);
  color: var(--fg);
}
.c-steps a span {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 0.2);
  font-size: 12.5px;
  font-weight: 800;
}
.c-steps a.done {
  color: var(--fg);
}
.c-steps a.done span {
  background: var(--ok);
  border-color: var(--ok);
  color: #04150e;
  font-size: 0;
}
.c-steps a.done span::before {
  content: "✓";
  font-size: 13px;
}
.c-sections {
  display: grid;
  gap: 20px;
}
.c-sec {
  scroll-margin-top: 96px;
  display: grid;
  gap: 18px;
}
.c-sec-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.c-sec-head h2 {
  font-size: 21px;
}
.c-sec-head .muted {
  margin-top: 3px;
}
.c-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-b));
  font-weight: 900;
}
.c-done {
  margin-inline-start: auto;
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ok);
  color: #04150e;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.c-sec.done .c-done {
  opacity: 1;
  transform: none;
}
.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fgrid .wide {
  grid-column: 1 / -1;
}
.app textarea.input {
  min-height: 96px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
  color: var(--fg-2);
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-b);
  flex: none;
}
.tips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tips li {
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid var(--edge);
  color: var(--fg-2);
}
.up-box {
  display: grid;
  gap: 12px;
}
.app .up-box .drop {
  padding: 26px 18px;
}
.drop.busy {
  opacity: 0.6;
  pointer-events: none;
}
.thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.thumbs li {
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--edge);
  font-size: 12px;
  min-width: 0;
}
.thumbs img,
.thumbs .file-ic {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.06);
}
.thumbs .file-ic {
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--accent-ink);
  direction: ltr;
}
.thumbs .fname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: center;
  color: var(--fg-2);
}
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.06);
  justify-self: start;
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--fg-2);
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
}
.seg button[aria-selected="true"] {
  background: #fff;
  color: #0b0b10;
}
.seg-pane {
  display: grid;
  gap: 12px;
}
.rows {
  display: grid;
  gap: 8px;
}
.row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.6fr 36px;
  gap: 8px;
  align-items: center;
}
.rows.no-price .row {
  grid-template-columns: 1.3fr 2fr 36px;
}
.row.head {
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 700;
}
.app .row .input {
  padding: 10px 12px;
  border-radius: 11px;
}
.row-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--fg-3);
  font-size: 20px;
  line-height: 1;
}
.row-x:hover {
  color: var(--bad);
  border-color: var(--bad);
}
.final {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding-top: 6px;
}
@media (max-width: 900px) {
  .c-grid {
    grid-template-columns: 1fr;
  }
  .c-steps {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }
}
@media (max-width: 600px) {
  .fgrid {
    grid-template-columns: 1fr;
  }
  .row,
  .rows.no-price .row {
    grid-template-columns: 1fr 36px;
  }
  .row .input:not(:first-child) {
    grid-column: 1;
  }
  .row .row-x {
    grid-column: 2;
    grid-row: 1;
  }
  .row.head {
    display: none;
  }
}
.info-next {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent-b) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent-b) 30%, transparent);
}
.info-next b {
  font-size: 16.5px;
}
.info-next p {
  margin-top: 4px;
  color: var(--fg-2);
  font-size: 15px;
}

/* admin: customer content */
.admin .content-box {
  border-radius: 14px;
  background: rgb(255 255 255 / 0.03);
  border: 1px solid var(--edge);
  padding: 0 16px;
}
.admin .content-box summary {
  cursor: pointer;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.admin .content-box summary::-webkit-details-marker {
  display: none;
}
.admin .content-box .pct {
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
}
.admin .content-box[open] {
  padding-bottom: 16px;
}
.admin .content-box .missing {
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 12px;
}
.admin .content-box dd {
  white-space: pre-wrap;
}
.admin .content-box h3,
.admin .file-group h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 14px 0 8px;
  color: var(--fg-2);
}
.admin table.items {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin table.items th,
.admin table.items td {
  text-align: start;
  padding: 7px 10px;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}
.admin table.items th {
  color: var(--fg-3);
  font-weight: 700;
}
@media (max-width: 600px) {
  #to-track {
    display: none;
  }
}
.custom-pane {
  aspect-ratio: 16 / 10;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  background:
    radial-gradient(240px 160px at 80% 10%, rgb(236 72 153 / 0.35), transparent 70%),
    radial-gradient(220px 160px at 10% 90%, rgb(14 165 233 / 0.3), transparent 70%),
    #120c24;
}
.custom-pane b {
  font-size: 17px;
}
.custom-pane p {
  font-size: 14px;
  color: var(--fg-2);
}

/* content form: brief + AI logo designer */
.brief-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(53 224 161 / 0.07);
  border: 1px solid rgb(53 224 161 / 0.3);
}
.brief-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 10px 0 0;
  font-size: 14.5px;
}
.brief-box dt {
  color: var(--fg-3);
}
.brief-box dd {
  margin: 0;
}
.logo-ai {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgb(124 58 237 / 0.14), rgb(236 72 153 / 0.08));
  border: 1px solid rgb(167 139 250 / 0.3);
}
.logo-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.logo-grid:empty {
  display: none;
}
.logo-opt {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 3px solid transparent;
  color: #15161c;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.logo-opt:hover {
  transform: translateY(-2px);
}
.logo-opt.on {
  border-color: var(--accent-b);
  box-shadow: 0 0 0 4px rgb(236 72 153 / 0.25);
}
.logo-opt img {
  width: 100%;
  aspect-ratio: 1;
}
.logo-opt b {
  font-size: 14px;
}
.logo-opt span {
  color: #666;
  line-height: 1.6;
}
.logo-wait {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.logo-wait i {
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(100deg, rgb(255 255 255 / 0.05) 30%, rgb(255 255 255 / 0.14) 50%, rgb(255 255 255 / 0.05) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@media (max-width: 700px) {
  .logo-grid,
  .logo-wait {
    grid-template-columns: repeat(2, 1fr);
  }
}
.sxa-ai {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  direction: ltr;
}
.sub-h {
  font-size: 16px;
  font-weight: 800;
  margin-top: 6px;
}
.admin .ai-logo-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.admin .ai-logo-pick img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
}

/* ---------- content wizard (/content): one step per screen ---------- */
.wiz-page main {
  padding-bottom: 130px;
}
.wiz {
  max-width: 820px;
}
.wiz-head {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.wiz-title h1 {
  font-size: clamp(24px, 3.6vw, 36px);
  margin-top: 10px;
}
.wiz-meter {
  height: 6px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
}
.wiz-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-b));
  transition: width 0.4s ease;
}
.wiz-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.wiz-chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgb(255 255 255 / 0.03);
  color: var(--fg-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.chip span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  font-size: 12px;
}
.chip.ok span {
  background: var(--ok);
  color: #fff;
}
.chip.on {
  border-color: transparent;
  background: #fff;
  color: #0b0b10;
}
.chip.on span {
  background: var(--accent);
  color: #fff;
}
.wiz-step {
  display: grid;
  gap: 18px;
  outline: none;
}
.wiz-step-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.wiz-step-head h2 {
  font-size: 22px;
}
.wiz-step-head .muted {
  margin-top: 4px;
  line-height: 1.9;
}
.req {
  color: var(--accent-b);
}
.check.alt {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed var(--edge);
  line-height: 1.7;
}
.check.alt:has(input:checked) {
  border-style: solid;
  border-color: var(--accent);
  background: rgb(124 58 237 / 0.1);
  color: var(--fg);
}
.assure-line {
  font-size: 14px;
  color: var(--fg-2);
  padding: 12px 14px;
  border-radius: 12px;
  background: rgb(18 128 92 / 0.12);
  border: 1px solid rgb(18 128 92 / 0.35);
  line-height: 1.9;
}
.assure-line b {
  color: var(--fg);
}
.or {
  text-align: center;
  font-size: 13px;
  color: var(--fg-3);
}
.up-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.up-status .progress {
  flex: 1;
}
.up-pct {
  font-size: 13px;
  color: var(--fg-2);
  white-space: nowrap;
}
.thumbs li {
  position: relative;
}
.thumbs li.going {
  opacity: 0.4;
}
.thumb-x {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgb(0 0 0 / 0.72);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.thumb-x:hover {
  background: var(--bad);
}
.more {
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 14px 16px;
}
.more summary {
  cursor: pointer;
  font-weight: 700;
}
.more[open] {
  display: grid;
  gap: 14px;
}
.sum {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.sum li {
  display: grid;
  grid-template-columns: 28px auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--edge);
  font-size: 14.5px;
}
.sum li > span:not(.sum-ic) {
  color: var(--fg-3);
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sum-ic {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  font-weight: 900;
  font-size: 13px;
}
.sum li.ok .sum-ic {
  background: var(--ok);
  color: #fff;
}
.sum li.miss {
  border-color: rgb(245 158 11 / 0.5);
}
.sum li.miss .sum-ic {
  background: #f59e0b;
  color: #111;
}
.link {
  border: 0;
  background: none;
  color: var(--accent-ink, #c4b5fd);
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  padding: 4px;
}
.app .notice.warn {
  background: rgb(245 158 11 / 0.12);
  border: 1px solid rgb(245 158 11 / 0.45);
  color: var(--fg);
}
.wiz-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(16px, calc((100vw - 820px) / 2)) calc(12px + env(safe-area-inset-bottom));
  background: rgb(10 7 20 / 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--edge);
}
.wiz-bar #next {
  margin-inline-start: auto;
  min-width: 170px;
}
.wiz-bar #next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wiz-count {
  font-size: 13px;
  color: var(--fg-3);
}
@media (max-width: 600px) {
  .wiz-count {
    display: none;
  }
  .wiz-bar #next {
    flex: 1;
    min-width: 0;
  }
  .sum li {
    grid-template-columns: 28px 1fr auto;
  }
  .sum li > span:not(.sum-ic) {
    grid-column: 2;
    grid-row: 2;
  }
  .wiz-step-head .c-n {
    display: none;
  }
}
@media (max-width: 600px) {
  .wiz-page .nav-actions .btn {
    display: none;
  }
}
@media (max-width: 600px) {
  .rows .row:not(.head) {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--edge);
    background: rgb(255 255 255 / 0.02);
  }
}

/* ---------- order page: one screen ---------- */
.ord {
  max-width: 760px;
}
.ord h1 {
  margin-bottom: 18px;
}
#order-form {
  display: grid;
  gap: 16px;
}
.ord-sec {
  display: grid;
  gap: 16px;
}
.ord-h {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ord-h h2 {
  font-size: 19px;
}
.ord-site {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: center;
}
.ord-thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: #fff;
}
.ord-thumb .custom-pane {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.ord-site-info {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.ord-site-info > b {
  font-size: 17px;
}
.ord-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-2);
}
.ord-site-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.ord-site-links .link {
  padding: 0;
  text-decoration: none;
}
.ord-picker {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--edge);
}
.ord-picker .label {
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 700;
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1.5px solid var(--edge);
  background: rgb(255 255 255 / 0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan:has(input:focus-visible) {
  outline: 2px solid var(--accent-b);
  outline-offset: 2px;
}
.plan.on {
  border-color: var(--accent);
  background: rgb(124 58 237 / 0.1);
}
.plan.on::after {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.plan-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-top b {
  font-size: 18px;
}
.plan-badge {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-b));
  color: #fff;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price b {
  font-size: 21px;
  font-weight: 900;
}
.plan-price small,
.plan-setup {
  font-size: 13px;
  color: var(--fg-3);
}
.plan-f {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--fg-2);
}
.plan-f li {
  padding-inline-start: 22px;
  position: relative;
  line-height: 1.7;
}
.plan-f li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--ok);
  font-weight: 900;
}
.ord-note {
  font-size: 13.5px;
  line-height: 1.9;
}
.bill {
  display: grid;
  gap: 10px;
  margin: 0;
}
.bill:empty {
  display: none;
}
.bill div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-2);
}
.bill dd {
  margin: 0;
  white-space: nowrap;
}
.bill .sum-row {
  padding-top: 12px;
  border-top: 1px solid var(--edge);
  color: var(--fg);
  font-weight: 800;
  font-size: 17px;
}
.ord-total .btn {
  width: 100%;
}
.ord-after {
  font-size: 13.5px;
  text-align: center;
}
@media (max-width: 600px) {
  .ord-site {
    grid-template-columns: 120px 1fr;
    gap: 14px;
  }
  .plans {
    grid-template-columns: 1fr;
  }
}
.success.failed .ring {
  background: rgb(194 48 58 / 0.16);
  color: #f87171;
  box-shadow: none;
}
.badge.warn {
  background: rgb(245 158 11 / 0.16);
  color: #fbbf24;
}
.badge.ok {
  background: rgb(18 128 92 / 0.18);
  color: #4ade80;
}
.pay-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fg-2);
}
.pay-list li {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
}
@media (max-width: 600px) {
  .pay-list li {
    grid-template-columns: 1fr 1fr;
  }
}
/* admin: plans editor + order billing */
.plan-edit {
  display: grid;
  gap: 14px;
}
.plan-box {
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
  margin: 0;
}
.plan-box legend {
  padding: 0 6px;
  font-weight: 800;
}
.admin-bill {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--edge);
}
.bill-warn {
  color: #fbbf24;
  font-weight: 700;
}
.bill-ok {
  color: #4ade80;
  font-weight: 700;
}
.manual-pay {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 8px;
}
@media (max-width: 600px) {
  .manual-pay {
    grid-template-columns: 1fr 1fr;
  }
  .manual-pay .btn {
    grid-column: 1 / -1;
  }
}
[tabindex="-1"]:focus {
  outline: none;
}
.sms-card {
  display: grid;
  gap: 14px;
}
.row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.row-btns .input {
  width: auto;
  flex: 1;
  min-width: 180px;
}
.cron {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.35);
  border: 1px solid var(--edge);
  font-size: 12.5px;
  overflow-wrap: anywhere;
  user-select: all;
}
.sms-log {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-2);
}
.sms-log li {
  display: grid;
  grid-template-columns: 140px 90px 80px 1fr;
  gap: 8px;
}
.sms-log li.bad {
  color: #f87171;
}
.manual-pay .check {
  grid-column: 1 / -1;
  font-size: 13.5px;
}
@media (max-width: 600px) {
  .sms-log li {
    grid-template-columns: 1fr 1fr;
  }
}
/* domain & hosting step */
.dm-pane {
  display: grid;
  gap: 12px;
}
.dm-row {
  display: flex;
  gap: 8px;
}
.dm-row .input {
  flex: 1;
}
.dm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dm-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--edge);
  font-size: 14.5px;
}
.dm-list li bdi {
  font-weight: 800;
  text-align: left;
}
.dm-list li.available span {
  color: #4ade80;
}
.dm-list li.taken {
  opacity: 0.6;
}
.dm-list li.taken span {
  color: #f87171;
}
.dm-list li.unknown span {
  color: #fbbf24;
  font-size: 13px;
}
.dm-list li.dm-wait {
  display: block;
  color: var(--fg-3);
}
.dm-picked {
  font-weight: 700;
  color: #c4b5fd;
}
.dm-help {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--edge);
  font-size: 14.5px;
  line-height: 2;
}
.dm-help ol {
  margin: 6px 0;
  padding-inline-start: 22px;
}
.dm-help code {
  font-size: 15px;
  user-select: all;
}
.host-form {
  display: grid;
  gap: 12px;
}
.check.alt input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-b);
  flex: none;
}
@media (max-width: 600px) {
  .dm-list li {
    grid-template-columns: 1fr auto;
  }
  .dm-list li > span {
    grid-column: 1;
    grid-row: 2;
  }
  .dm-list li .btn {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}
.host-secret {
  display: grid;
  gap: 4px;
  font-size: 14px;
  user-select: text;
}
.host-secret bdi {
  direction: ltr;
  unicode-bidi: isolate;
}
.acc-opt {
  align-items: flex-start;
}
.acc-opt input {
  margin-top: 4px;
}
.acc-opt span {
  line-height: 1.9;
}
.acc-best {
  border-style: solid;
  border-color: rgb(124 58 237 / 0.5);
}
.acc-more {
  font-size: 13.5px;
}
.acc-more a {
  color: #c4b5fd;
}
.gift-card {
  display: grid;
  gap: 12px;
  border-color: rgb(124 58 237 / 0.45);
}
.gift-card .ticket-big {
  margin: 0;
}

/* order page: platform choice */
.pfs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pf {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--edge);
  background: rgb(255 255 255 / 0.02);
  cursor: pointer;
}
.pf input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pf:has(input:focus-visible) {
  outline: 2px solid var(--accent-b);
  outline-offset: 2px;
}
.pf.on {
  border-color: var(--accent);
  background: rgb(124 58 237 / 0.1);
}
.pf-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-top b {
  font-size: 16px;
}
.pf-desc {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.8;
}
.pf-price {
  font-size: 13px;
  font-weight: 700;
  color: #c4b5fd;
}
@media (max-width: 600px) {
  .pfs {
    grid-template-columns: 1fr;
  }
}

/* order page: launch offer + yearly */
.promo {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgb(236 72 153 / 0.16), rgb(124 58 237 / 0.16));
  border: 1px solid rgb(236 72 153 / 0.4);
  font-size: 14px;
}
.promo span {
  color: var(--fg-2);
  font-size: 13px;
}
.seg.cycle {
  justify-self: start;
}
.bill s {
  color: var(--fg-3);
  font-size: 0.85em;
  margin-inline-end: 6px;
}
.bill .bill-off {
  color: #4ade80;
}

.ord-design {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.8;
}

/* ================= phones: order / track / wizard / pay mobile pass ================= */
.ord-bar {
  display: none;
}
@media (max-width: 760px) {
  .plan-badge {
    font-size: 12px;
  }
  .link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 8px;
    font-size: 14px;
  }
  .ord-site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    margin-inline-start: -8px;
  }
  .more summary,
  details > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
  }
  .seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: 100%;
  }
  .seg button {
    min-height: 44px;
    padding: 8px 10px;
  }
  .seg.cycle {
    justify-self: stretch;
  }
  .bill s {
    font-size: 12px;
  }

  /* sticky total + pay bar */
  .ord-bar:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgb(14 15 22 / 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--edge);
    box-shadow: 0 -16px 40px -20px #000;
    animation: ob-in 0.25s ease;
  }
  .ob-sum {
    display: grid;
    min-width: 0;
    flex: 1;
    line-height: 1.5;
  }
  .ob-sum span {
    font-size: 12.5px;
    color: var(--fg-3);
  }
  .ob-sum b {
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ord-bar .btn {
    flex: none;
    min-height: 48px;
    padding-inline: 18px;
  }
  .has-ord-bar {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .has-ord-bar .sxa {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
@keyframes ob-in {
  from {
    transform: translateY(100%);
  }
}
@media (max-width: 360px) {
  .ord-bar .btn {
    padding-inline: 14px;
    font-size: 14px;
  }
}

/* ======================================================================
   Round 2: compact order page on phones (≤760px)
   ====================================================================== */
@media (max-width: 760px) {
  .app main { padding: 84px 0 32px; }
  .app h1 { font-size: 28px; }
  .ord h1 { font-size: 26px; margin-bottom: 10px; }
  #order-form { gap: 10px; }
  .ord .card { padding: 14px; border-radius: 16px; }
  .ord-sec { gap: 10px; }
  .ord-h { gap: 10px; }
  .ord-h .c-n { width: 28px; height: 28px; font-size: 14px; border-radius: 9px; }
  .ord-h h2 { font-size: 17px; }
  .ord-site { grid-template-columns: 112px 1fr; gap: 12px; }
  .ord-site-info { gap: 0; }
  .ord-site-info > b { font-size: 15px; }
  .ord-note { font-size: 13px; line-height: 1.75; }

  /* packages: two compact cards side by side */
  .plans { grid-template-columns: 1fr 1fr; gap: 8px; }
  .plan { padding: 10px 10px 12px; gap: 3px; border-radius: 14px; }
  .plan.on::after { top: 8px; left: 8px; width: 20px; height: 20px; font-size: 12px; }
  .plan-top { flex-wrap: wrap; gap: 4px 6px; }
  .plan-top b { font-size: 15px; }
  .plan-price { flex-wrap: wrap; gap: 0 4px; }
  .plan-price b { font-size: 16px; }
  .plan-price small,
  .plan-setup { font-size: 12px; line-height: 1.6; }
  .plan-f { margin-top: 4px; gap: 2px; font-size: 12.5px; }
  .plan-f li { padding-inline-start: 16px; line-height: 1.6; }
  .promo { padding: 8px 12px; gap: 2px; font-size: 13.5px; border-radius: 12px; }

  /* platforms: 2-up name + price (descriptions are desktop detail) */
  .pfs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pf { padding: 8px 10px; gap: 2px; border-radius: 12px; min-height: 44px; }
  .pf-top { flex-wrap: wrap; gap: 4px; }
  .pf-top b { font-size: 14px; }
  .pf-desc { display: none; }
  .pf-price { font-size: 12px; }
  .ord .check.alt { padding: 10px 12px; font-size: 13.5px; line-height: 1.7; }

  /* contact fields */
  .ord .fgrid { grid-template-columns: 1fr; gap: 10px; }
  .ord .field { gap: 4px; }
  .ord .field label { font-size: 13.5px; line-height: 1.5; }
  .ord .err:empty { display: none; }
  .ord-h h2 { line-height: 1.4; }
  .ord .input { min-height: 46px; padding-block: 8px; }
  .ord .more { padding: 0 12px; }
  .ord .more[open] { padding-bottom: 12px; gap: 10px; }
  .bill { gap: 6px; }
  .bill div { font-size: 13.5px; }
  .bill .sum-row { padding-top: 8px; font-size: 15.5px; }
  .ord-after { font-size: 13px; }
}

/* ======================================================================
   Order page: loading skeleton (no layout shift when /api/plans answers)
   Space for the packages and platforms is reserved at their usual size, and
   the sections after them stay invisible (but laid out) until the data is in,
   so nothing on screen moves when the real content replaces the skeleton.
   ====================================================================== */
#side-title:empty {
  display: block;
  min-height: 1.6em;
}
.plan.skel {
  min-height: 300px;
  cursor: default;
  background: linear-gradient(100deg, rgb(255 255 255 / 0.03) 30%, rgb(255 255 255 / 0.07) 50%, rgb(255 255 255 / 0.03) 70%) 0 0 / 300% 100%;
  animation: skel 1.4s linear infinite;
}
@keyframes skel {
  to { background-position: -150% 0; }
}
#order-form.is-loading #pfs {
  min-height: 420px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.03);
}
#order-form.is-loading #pf-sec,
#order-form.is-loading #pf-sec ~ .ord-sec {
  visibility: hidden;
}
@media (max-width: 760px) {
  .plan.skel { min-height: 196px; }
  #order-form.is-loading #pfs { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan.skel { animation: none; }
}

/* ======================================================================
   Persian typography on the app pages (order, track, content, pay)
   - no letter-spacing on Persian text (codes/numerals in <code> keep theirs)
   - h1 800 weight, line-height >= 1.35 so dots and descenders don't collide
   - nothing under 12.5px, and >= 4.5:1 contrast for small text
   ====================================================================== */
.app h1 {
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
}
.c-n,
.plan-badge {
  /* white on the light end of the brand gradient was ~3.2:1; darker stops keep the look at >= 5.9:1 */
  background: linear-gradient(135deg, #6d28d9, #be185d);
  color: #fff;
}
.plan-badge {
  font-size: 12.5px;
}
.app .field .opt {
  color: var(--fg-2);
}
@media (max-width: 760px) {
  .plan-badge,
  .plan-price small,
  .plan-setup,
  .pf-price {
    font-size: 12.5px;
  }
}

/* order: reassurance next to the total, consent under the submit button */
.ord-trust {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent);
  background: color-mix(in srgb, var(--ok) 7%, transparent);
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-2);
}
.ord-trust li { display: flex; align-items: flex-start; gap: 8px; }
.ord-trust svg { flex: none; margin-top: 4px; color: var(--ok); }
.ord-trust a { color: var(--fg); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.3); text-underline-offset: 4px; }
.ord-consent {
  margin: -6px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--fg-3);
}
.ord-consent a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .ord-trust { padding: 8px 12px; gap: 0; font-size: 13.5px; }
  .ord-trust li { min-height: 40px; align-items: center; }
  .ord-trust svg { margin-top: 0; }
  .ord-trust a { display: inline-flex; align-items: center; min-height: 40px; }
  .ord-consent { margin-top: -4px; line-height: 1.6; }
  .ord-consent a { display: inline-block; padding: 10px 2px; margin: -10px 0; }
}

/* the two links under the chosen site never run together */
.ord-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}

/* short pages (404, pay result): the dark footer reaches the bottom of the screen, no light strip under it */
body:has(> .sfoot) { min-height: 100svh; display: flex; flex-direction: column; }
body:has(> .sfoot) > main { flex: 1 0 auto; }
body:has(> .sfoot) > * { min-width: 0; }
