/* ===== استپر ویزارد ===== */
.stepper { display: flex; align-items: flex-start; padding: 0.5rem 0.5rem 1.2rem; }
.stp { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; position: relative; }
.stp::before { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.stp:first-child::before { display: none; }
.stp.done::before, .stp.on::before { background: var(--primary); }
.stp-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; position: relative; z-index: 1; transition: 0.3s; }
.stp.on .stp-dot, .stp.done .stp-dot { background: var(--primary); color: #fff; box-shadow: 0 4px 12px -3px rgba(190,18,60,0.45); }
.stp.done .stp-dot { background: var(--success); box-shadow: none; }
.stp-name { font-size: 0.65rem; font-weight: 700; color: var(--muted); }
.stp.on .stp-name { color: var(--primary); }

/* ===== ویزارد ===== */
.wizard-header { margin-bottom: 1.5rem; width: 100%; }
.wizard-title { font-size: 1.25rem; font-weight: 800; }
.wizard-sub { font-size: 0.82rem; color: var(--muted); }

.template-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; margin-bottom: 1.5rem; width: 100%; }
.template-card { border: 2px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: 0.2s; position: relative; background: var(--app-bg); }
.template-card:active { transform: scale(0.96); }
.template-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.template-img { height: 80px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.9); font-size: 0.7rem; font-weight: 700; text-align: center; padding: 0.2rem; }
.template-name { padding: 0.4rem; text-align: center; font-size: 0.7rem; font-weight: 600; }
.check-icon { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; display: none; align-items: center; justify-content: center; color: #fff; }
.template-card.selected .check-icon { display: flex; }

.price-banner { background: var(--secondary-light); border: 1px dashed var(--secondary); color: var(--secondary); border-radius: 14px; padding: 0.8rem 1rem; font-size: 0.82rem; font-weight: 700; text-align: center; margin-bottom: 1.2rem; }

.pay-box { background: var(--app-bg); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.2rem; margin-bottom: 1rem; width: 100%; }
.pay-row { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-bottom: 1px dashed var(--border); font-size: 0.88rem; }
.pay-row:last-child { border-bottom: none; }
.pay-price { font-size: 1.1rem !important; color: var(--primary) !important; font-weight: 800; }

.success-box { text-align: center; width: 100%; }
.success-icon { width: 80px; height: 80px; background: var(--success); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.4); animation: pop 0.5s cubic-bezier(.16,1,.3,1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ===== ادیتور ===== */
.edit-card { background: var(--app-bg); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.2rem; margin-bottom: 1rem; width: 100%; }
.edit-card h3 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--primary); }
.two { display: flex; gap: 0.6rem; } .two > div { flex: 1; }
.upload-box { border: 2px dashed var(--border); border-radius: 14px; padding: 1.1rem; text-align: center; cursor: pointer; transition: 0.2s; display: block; margin-bottom: 0.8rem; }
.upload-box svg { width: 26px; height: 26px; fill: var(--muted); margin-bottom: 0.3rem; }
.upload-box b { display: block; font-size: 0.82rem; } .upload-box span { font-size: 0.68rem; color: var(--muted); }
.upload-box input { display: none; }
.row-item { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; align-items: center; }
.del-row { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #fee2e2; color: var(--danger); font-weight: 800; border: none; cursor: pointer; }
.add-row { width: 100%; padding: 0.6rem; border-radius: 10px; border: 1.5px dashed var(--primary); color: var(--primary); font-weight: 700; font-size: 0.82rem; margin-top: 0.3rem; background: none; cursor: pointer; }