.fp-ds {

  --ds-card: var(--fp-card, #141716);

  --ds-border: var(--fp-border, rgba(255,255,255,.08));

  --ds-text: var(--fp-text, #fff);

  --ds-muted: var(--fp-text-muted, #8b9490);

  --ds-accent: var(--fp-accent, #98be1c);

  --ds-accent-dim: var(--fp-accent-dim, rgba(152,190,28,.12));

  --ds-sticky-h: 4.25rem;

  direction: rtl;

  text-align: right;

  color: var(--ds-text);

  font-family: var(--fp-font, "Vazirmatn", Tahoma, sans-serif);

  max-width: 720px;

  margin: 0 auto 3rem;

  padding: 0 0.75rem calc(var(--ds-sticky-h) + 1.5rem);

}

.fp-ds * { box-sizing: border-box; }



@media (min-width: 900px) {

  .fp-ds { max-width: 1180px; padding-bottom: 3rem; }

}



.fp-ds__stepper {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 0;

  margin-bottom: 1.35rem;

  padding: 0.85rem 0.5rem;

  border: 1px solid var(--ds-border);

  border-radius: 14px;

  background: var(--ds-card);

}

.fp-ds__stepper-item {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 0.35rem;

  min-width: 72px;

  color: var(--ds-muted);

  font-size: 0.72rem;

  font-weight: 600;

}

.fp-ds__stepper-dot {

  width: 2rem;

  height: 2rem;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  border: 2px solid var(--ds-border);

  font-size: 0.85rem;

  font-weight: 800;

  transition: border-color .2s, background .2s, color .2s;

}

.fp-ds__stepper-item.is-active .fp-ds__stepper-dot {

  border-color: var(--ds-accent);

  background: var(--ds-accent);

  color: #0f1211;

}

.fp-ds__stepper-item.is-done .fp-ds__stepper-dot {

  border-color: rgba(152,190,28,.55);

  background: var(--ds-accent-dim);

  color: var(--ds-accent);

}

.fp-ds__stepper-item.is-active { color: var(--ds-text); }

.fp-ds__stepper-item.is-done { color: var(--ds-accent); }

.fp-ds__stepper-line {

  flex: 1;

  max-width: 48px;

  height: 2px;

  background: var(--ds-border);

  margin: 0 0.25rem;

  margin-bottom: 1.1rem;

}

.fp-ds__stepper-line.is-done { background: rgba(152,190,28,.45); }

@media (max-width: 420px) {

  .fp-ds__stepper-label { display: none; }

  .fp-ds__stepper-line { margin-bottom: 0; }

}



.fp-ds__hero {

  border: 1px solid var(--ds-border);

  border-radius: 16px;

  background: var(--ds-card);

  padding: 1.35rem 1.15rem;

  margin-bottom: 1rem;

}

.fp-ds__hero h1 { margin: 0 0 0.4rem; font-size: 1.45rem; }

.fp-ds__hero p { margin: 0; color: var(--ds-muted); line-height: 1.7; font-size: 0.9rem; }



.fp-ds__cards {

  display: grid;

  grid-template-columns: 1fr;

  gap: 0.85rem;

  margin-bottom: 1.25rem;

}

@media (min-width: 560px) {

  .fp-ds__cards { grid-template-columns: repeat(2, 1fr); }

}

@media (min-width: 960px) {

  .fp-ds__cards { grid-template-columns: repeat(3, 1fr); }

}

.fp-ds__card-svc {

  border: 1px solid var(--ds-border);

  border-radius: 16px;

  background: var(--ds-card);

  padding: 1.15rem 1rem 1rem;

  display: flex;

  flex-direction: column;

  gap: 0.45rem;

  transition: border-color .15s;

}

.fp-ds__card-svc:hover { border-color: rgba(152,190,28,.35); }

.fp-ds__card-svc-thumb {
  margin: -0.15rem -0.25rem 0.35rem;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1211;
  border: 1px solid var(--ds-border);
}
.fp-ds__card-svc-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fp-ds__card-svc-title { margin: 0; font-size: 1.05rem; }

.fp-ds__card-svc-desc {

  margin: 0;

  flex: 1;

  color: var(--ds-muted);

  font-size: 0.82rem;

  line-height: 1.6;

}

.fp-ds__card-svc-from {

  margin: 0.25rem 0 0.5rem;

  font-size: 0.85rem;

  color: var(--ds-muted);

}

.fp-ds__card-svc-from strong { color: var(--ds-accent); font-size: 1rem; }



.fp-ds__table-details {

  border: 1px solid var(--ds-border);

  border-radius: 14px;

  background: var(--ds-card);

  margin-bottom: 1rem;

}

.fp-ds__table-details summary {

  padding: 0.85rem 1rem;

  cursor: pointer;

  font-weight: 700;

  font-size: 0.88rem;

  color: var(--ds-muted);

  list-style: none;

}

.fp-ds__table-details summary::-webkit-details-marker { display: none; }

.fp-ds__table-details[open] summary { color: var(--ds-accent); border-bottom: 1px solid var(--ds-border); }

.fp-ds__table-wrap { overflow-x: auto; padding: 0.75rem; }

.fp-ds__table {

  width: 100%;

  border-collapse: collapse;

  min-width: 520px;

  font-size: 0.8rem;

}

.fp-ds__table th,

.fp-ds__table td {

  padding: 0.65rem 0.55rem;

  border-bottom: 1px solid var(--ds-border);

}

.fp-ds__table th {

  background: rgba(152,190,28,.08);

  color: var(--ds-accent);

  font-weight: 700;

}

.fp-ds__table tr:last-child td { border-bottom: 0; }

.fp-ds__svc-name { font-weight: 700; }



.fp-ds__wizard-panel {

  border: 1px solid var(--ds-border);

  border-radius: 18px;

  background: var(--ds-card);

  padding: 1.15rem 1rem 0;

  animation: fpDsIn .3s ease;

}

@keyframes fpDsIn {

  from { opacity: 0; transform: translateY(10px); }

  to { opacity: 1; transform: none; }

}

.fp-ds__wizard-head { margin-bottom: 1rem; }

.fp-ds__wizard-head h2 { margin: 0.35rem 0 0.25rem; font-size: 1.2rem; }

.fp-ds__wizard-lead { margin: 0; color: var(--ds-muted); font-size: 0.88rem; line-height: 1.65; }

.fp-ds__back {

  display: inline-flex;

  align-items: center;

  gap: 0.35rem;

  font-size: 0.82rem;

  color: var(--ds-muted) !important;

  text-decoration: none !important;

}

.fp-ds__back:hover { color: var(--ds-accent) !important; }
.fp-ds__wizard-thumb {
  width: 80px;
  margin: 0.5rem 0 0.25rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ds-border);
  background: #0f1211;
}
.fp-ds__wizard-thumb img { display: block; width: 100%; height: auto; }



.fp-ds__tier-cards {

  display: grid;

  grid-template-columns: 1fr;

  gap: 0.65rem;

  margin-bottom: 1rem;

}

@media (min-width: 560px) {

  .fp-ds__tier-cards { grid-template-columns: repeat(3, 1fr); }

}

.fp-ds__tier-card {

  position: relative;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  padding: 1.1rem 0.75rem;

  border: 2px solid var(--ds-border);

  border-radius: 14px;

  cursor: pointer;

  transition: border-color .15s, background .15s;

}

.fp-ds__tier-card input { position: absolute; opacity: 0; pointer-events: none; }

.fp-ds__tier-card.is-selected,

.fp-ds__tier-card:has(input:checked) {

  border-color: var(--ds-accent);

  background: var(--ds-accent-dim);

}

.fp-ds__tier-card--rec { border-color: rgba(152,190,28,.35); }

.fp-ds__tier-card-tag {

  font-weight: 800;

  font-size: 0.92rem;

  margin-bottom: 0.35rem;

}

.fp-ds__tier-card-tag em {

  display: block;

  font-style: normal;

  font-size: 0.72rem;

  color: var(--ds-accent);

  margin-top: 0.15rem;

}

.fp-ds__tier-card-price {

  font-size: 1.15rem;

  font-weight: 800;

  color: var(--ds-accent);

  direction: ltr;

}

.fp-ds__tier-card-unit { font-size: 0.75rem; color: var(--ds-muted); }

.fp-ds__tier-card-hint { font-size: 0.78rem; color: var(--ds-muted); margin-top: 0.35rem; }

.fp-ds__tier-meta {

  display: flex;

  flex-wrap: wrap;

  gap: 0.75rem 1.25rem;

  font-size: 0.82rem;

  color: var(--ds-muted);

  margin-bottom: 0.65rem;

}

.fp-ds__tier-meta i { color: var(--ds-accent); margin-left: 0.25rem; }

.fp-ds__outputs-note {

  font-size: 0.82rem;

  color: var(--ds-muted);

  line-height: 1.6;

  margin: 0 0 1rem;

  padding: 0.65rem 0.75rem;

  border-radius: 10px;

  background: rgba(255,255,255,.03);

}



.fp-ds__substep-label {

  margin: 0.25rem 0 0;

  font-size: 0.85rem;

  color: var(--ds-accent);

  font-weight: 700;

}

.fp-ds__substep-dots {

  display: flex;

  justify-content: center;

  gap: 0.45rem;

  margin-bottom: 1rem;

}

.fp-ds__substep-dots span {

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: var(--ds-border);

  transition: background .2s, transform .2s;

}

.fp-ds__substep-dots span.is-active {

  background: var(--ds-accent);

  transform: scale(1.25);

}

.fp-ds__substep-dots span.is-done { background: rgba(152,190,28,.5); }



.fp-ds__subpanel { display: none; padding-bottom: 0.5rem; }

.fp-ds__subpanel.is-active { display: block; animation: fpDsIn .25s ease; }

.fp-ds__subpanel-title {

  margin: 0 0 0.85rem;

  font-size: 1rem;

  padding-bottom: 0.5rem;

  border-bottom: 1px solid var(--ds-border);

}



.fp-ds__summary {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 0.65rem;

  padding: 1rem;

  border: 1px solid rgba(152,190,28,.35);

  border-radius: 12px;

  background: var(--ds-accent-dim);

  margin-bottom: 0.85rem;

}

.fp-ds__summary--compact { grid-template-columns: 1fr; }

.fp-ds__summary dt { margin: 0; font-size: 0.75rem; color: var(--ds-muted); }

.fp-ds__summary dd {

  margin: 0.15rem 0 0;

  font-size: 0.92rem;

  font-weight: 700;

}

.fp-ds__summary .fp-ds__total { color: var(--ds-accent); font-size: 1.1rem; }



.fp-ds__field { margin-bottom: 0.85rem; }

.fp-ds__field-label {

  font-weight: 700;

  font-size: 0.86rem;

  margin-bottom: 0.45rem;

}

.fp-ds__field label {

  display: block;

  font-weight: 600;

  font-size: 0.84rem;

  margin-bottom: 0.35rem;

}

.fp-ds__field input,

.fp-ds__field select,

.fp-ds__field textarea {

  width: 100%;

  padding: 0.65rem 0.85rem;

  border: 1px solid var(--ds-border);

  border-radius: 10px;

  background: var(--fp-bg, #0f1211);

  color: var(--ds-text);

  font: inherit;

  font-size: 0.88rem;

}

.fp-ds__field input:focus,

.fp-ds__field select:focus,

.fp-ds__field textarea:focus {

  outline: none;

  border-color: rgba(152,190,28,.55);

}

.fp-ds__field input.is-invalid { border-color: #fc8181; }

.fp-ds__grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }

.fp-ds__grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }

.fp-ds__checks { display: flex; flex-direction: column; gap: 0.45rem; }

.fp-ds__check {

  display: flex;

  align-items: flex-start;

  gap: 0.45rem;

  font-size: 0.86rem;

  cursor: pointer;

}

.fp-ds__check input { width: auto; margin-top: 0.2rem; flex-shrink: 0; }

.fp-ds__radios { display: flex; flex-direction: column; gap: 0.55rem; }

.fp-ds__radio {

  display: flex;

  align-items: flex-start;

  gap: 0.45rem;

  padding: 0.65rem 0.75rem;

  border: 1px solid var(--ds-border);

  border-radius: 10px;

  cursor: pointer;

  font-size: 0.86rem;

}

.fp-ds__radio:has(input:checked) {

  border-color: var(--ds-accent);

  background: var(--ds-accent-dim);

}

.fp-ds__radio input { margin-top: 0.15rem; flex-shrink: 0; }

.fp-ds__cond { display: none; margin-top: 0.65rem; }

.fp-ds__cond.is-visible { display: block; }

.fp-ds__hint { font-size: 0.82rem; color: var(--ds-muted); line-height: 1.6; margin: 0; }

.fp-ds__hint--accent { color: var(--ds-accent); }



.fp-ds__btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 0.4rem;

  padding: 0.75rem 1.15rem;

  border-radius: 12px;

  border: 1px solid transparent;

  font: inherit;

  font-weight: 700;

  font-size: 0.92rem;

  cursor: pointer;

  text-decoration: none !important;

  white-space: nowrap;

}

.fp-ds__btn--block { width: 100%; }

.fp-ds__btn--primary { background: var(--ds-accent); color: #0f1211 !important; }

.fp-ds__btn--ghost {

  background: transparent;

  border-color: var(--ds-border);

  color: var(--ds-text) !important;

}

.fp-ds__btn:disabled { opacity: 0.45; cursor: not-allowed; }



.fp-ds__sticky-actions {

  display: flex;

  gap: 0.65rem;

  padding: 0.85rem 0;

  margin-top: 0.5rem;

  border-top: 1px solid var(--ds-border);

}

.fp-ds__sticky-actions .fp-ds__btn { flex: 1; min-height: 2.85rem; }

.fp-ds__sticky-actions .fp-ds__btn--ghost { flex: 0 0 auto; min-width: 5.5rem; }



@media (max-width: 768px) {

  .fp-ds--step-tier,

  .fp-ds--step-brief { padding-bottom: calc(var(--ds-sticky-h) + 2rem); }

  .fp-ds__sticky-actions {

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 120;

    margin: 0;

    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));

    background: rgba(15, 18, 17, 0.96);

    backdrop-filter: blur(10px);

    border-top: 1px solid var(--ds-border);

    box-shadow: 0 -8px 24px rgba(0,0,0,.35);

  }

  .fp-ds__wizard-panel { padding-bottom: 0.25rem; }

  .fp-ds__grid-2,

  .fp-ds__grid-3 { grid-template-columns: 1fr; }

}



.fp-ds__alert {

  padding: 0.85rem 1rem;

  border-radius: 10px;

  margin-bottom: 1rem;

  border: 1px solid;

  font-size: 0.88rem;

}

.fp-ds__alert--err { background: rgba(197,48,48,.1); border-color: rgba(197,48,48,.35); color: #fc8181; }

.fp-ds__alert--note {
  background: rgba(152,190,28,.1);
  border-color: rgba(152,190,28,.4);
  line-height: 1.9;
}

.fp-ds__alert--note code {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgba(0,0,0,.25);
  font-size: 0.85rem;
  unicode-bidi: embed;
}

/* Draft save */
.fp-ds__draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(152,190,28,.4);
  border-radius: 12px;
  background: var(--ds-accent-dim);
}
.fp-ds__draft-banner-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.fp-ds__draft-banner-text i { color: var(--ds-accent); }
.fp-ds__draft-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.fp-ds__btn--sm { padding: 0.5rem 0.85rem; font-size: 0.82rem; min-height: auto; }
.fp-ds__draft-toast {
  position: fixed;
  bottom: calc(var(--ds-sticky-h) + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 130;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(20, 23, 22, 0.95);
  border: 1px solid rgba(152,190,28,.45);
  color: var(--ds-accent);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.fp-ds__draft-toast.is-visible { opacity: 1; }
@media (min-width: 769px) {
  .fp-ds__draft-toast { bottom: 1.5rem; }
}


