/* =========================================================================
   Sell / Post-Ad wizard 2026 — pubg-sell.ir (Persian)
   Scoped under #sell26 (nested inside #up26 so it reuses the up26 tokens
   and shared components: banner, up-card, up-notice). Pure visual layer —
   every form field name / endpoint is kept identical to the legacy page.
   ========================================================================= */
#sell26 {
    --s-primary: #2e60a2;
    --s-primary-d: #1e4174;
    --s-accent: #16a34a;
    --s-accent-d: #0f7a37;
    --s-danger: #ef4444;
    --s-warn: #d97706;
    --s-gold: #c2820d;
    --s-card: #ffffff;
    --s-bg: #f4f6fb;
    --s-border: #e7ecf5;
    --s-text: #1f2a44;
    --s-muted: #7a869f;
    --s-radius: 16px;
    --s-shadow: 0 12px 32px rgba(26, 49, 92, .09);
    --s-shadow-sm: 0 4px 14px rgba(26, 49, 92, .07);
    direction: rtl;
    text-align: right;
    color: var(--s-text);
}
#sell26 *, #sell26 *::before, #sell26 *::after { box-sizing: border-box; }

/* ---------- Stepper ---------- */
#sell26 .sl-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin: 18px 0 22px;
    counter-reset: slstep;
}
#sell26 .sl-step {
    flex: 1 1 0;
    position: relative;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--s-muted);
}
#sell26 .sl-step .dot {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 8px;
    background: #fff;
    border: 2px solid var(--s-border);
    color: var(--s-muted);
    font-weight: 800;
    position: relative; z-index: 2;
    transition: all .25s ease;
}
#sell26 .sl-step .dot svg { width: 18px; height: 18px; }
#sell26 .sl-step::before {
    content: "";
    position: absolute;
    top: 19px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: var(--s-border);
    z-index: 1;
}
#sell26 .sl-step:first-child::before { display: none; }
#sell26 .sl-step.is-active .dot { border-color: var(--s-primary); color: var(--s-primary); box-shadow: 0 0 0 4px rgba(46,96,162,.12); }
#sell26 .sl-step.is-done .dot { border-color: var(--s-accent); background: var(--s-accent); color: #fff; }
#sell26 .sl-step.is-active { color: var(--s-primary); }
#sell26 .sl-step.is-done { color: var(--s-accent-d); }
#sell26 .sl-step.is-done::before { background: var(--s-accent); }

/* ---------- Panel (wizard step container) ---------- */
#sell26 .sl-panel { display: none; animation: slfade .28s ease; padding: 20px 22px; }
#sell26 .sl-panel.is-open { display: block; }
@keyframes slfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

#sell26 .sl-h {
    font-size: 17px;
    font-weight: 800;
    margin: 2px 0 4px;
    display: flex; align-items: center; gap: 9px;
}
#sell26 .sl-h .n { color: var(--s-primary); }
#sell26 .sl-sub { color: var(--s-muted); font-size: 13px; margin: 0 0 16px; }

/* ---------- Type cards (step 1) ---------- */
#sell26 .sl-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}
#sell26 .sl-type {
    cursor: pointer;
    border: 2px solid var(--s-border);
    border-radius: var(--s-radius);
    background: var(--s-card);
    padding: 18px 12px;
    text-align: center;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
    position: relative;
    box-shadow: var(--s-shadow-sm);
}
#sell26 .sl-type:hover { transform: translateY(-3px); border-color: #c7d6ef; }
#sell26 .sl-type.is-sel { border-color: var(--s-primary); box-shadow: 0 0 0 3px rgba(46,96,162,.13), var(--s-shadow); }
#sell26 .sl-type.is-sel::after {
    content: "";
    position: absolute; top: 10px; left: 10px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--s-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
#sell26 .sl-type img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; margin-bottom: 9px; }
#sell26 .sl-type .t { font-weight: 800; font-size: 13.5px; }
#sell26 .sl-type .d { font-size: 11.5px; color: var(--s-muted); margin-top: 3px; line-height: 1.5; }

/* ---------- Generic field ---------- */
#sell26 .sl-field { margin-bottom: 15px; }
#sell26 .sl-field > label, #sell26 .sl-label {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 7px;
}
#sell26 .sl-label .req, #sell26 .statform { color: var(--s-danger); font-weight: 800; }
#sell26 .sl-hint { font-size: 11.5px; color: var(--s-muted); font-weight: 500; margin-top: 5px; }

/* ---------- Inputs (legacy createinput markup lives in .divform) ---------- */
#sell26 .divform { margin-bottom: 15px; }
#sell26 .divform > label {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 7px;
}
#sell26 .divform > span { display: block; }
#sell26 .divform input[type=text],
#sell26 .divform input[type=tel],
#sell26 .divform input[type=number],
#sell26 .divform input[type=email],
#sell26 .divform input[type=password],
#sell26 .divform textarea,
#sell26 .sl-input,
#sell26 select.sl-select {
    width: 100%;
    border: 1.6px solid var(--s-border);
    border-radius: 12px;
    background: #fbfcfe;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--s-text);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    outline: none;
}
#sell26 .divform textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
#sell26 .divform input:focus,
#sell26 .divform textarea:focus,
#sell26 .sl-input:focus,
#sell26 select.sl-select:focus {
    border-color: var(--s-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46,96,162,.12);
}
#sell26 .divform input::placeholder,
#sell26 .divform textarea::placeholder { color: #b3bdd2; }
#sell26 select.sl-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a869f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 16px; padding-left: 40px; }

/* identity line (logged-in user) */
#sell26 .sl-idline {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    background: #eef4ff;
    border: 1px solid #d9e6fb;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13.5px;
    margin-bottom: 16px;
}
#sell26 .sl-idline b { color: var(--s-primary-d); }
#sell26 .sl-idline a { color: var(--s-danger); font-weight: 700; }

/* ---------- Pill radios (account/login/system/region/noeclan...) ---------- */
#sell26 .sl-pills { display: flex; flex-wrap: wrap; gap: 9px; }
#sell26 .sl-pill {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.6px solid var(--s-border);
    border-radius: 11px;
    background: #fbfcfe;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all .14s ease;
}
#sell26 .sl-pill img { width: 22px; height: 22px; object-fit: contain; }
#sell26 .sl-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
#sell26 .sl-pill:hover { border-color: #c7d6ef; }
#sell26 .sl-pill:has(input:checked) {
    border-color: var(--s-primary);
    background: #eef4ff;
    color: var(--s-primary-d);
    box-shadow: 0 0 0 2px rgba(46,96,162,.12);
}
#sell26 .sl-pill .tick {
    width: 17px; height: 17px; border-radius: 50%;
    border: 2px solid var(--s-border); flex: 0 0 auto;
    display: grid; place-items: center;
}
#sell26 .sl-pill:has(input:checked) .tick { border-color: var(--s-primary); background: var(--s-primary); }
#sell26 .sl-pill:has(input:checked) .tick::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }

/* ---------- Season chips (advanced) ---------- */
#sell26 .sl-adv {
    border: 1.5px dashed var(--s-border);
    border-radius: var(--s-radius);
    margin: 6px 0 16px;
    overflow: hidden;
    background: #fbfcff;
}
#sell26 .sl-adv-head {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 15px;
    cursor: pointer;
    font-weight: 800; font-size: 13.5px;
}
#sell26 .sl-adv-head .chev { margin-inline-start: auto; transition: transform .2s ease; }
#sell26 .sl-adv.is-open .sl-adv-head .chev { transform: rotate(180deg); }
#sell26 .sl-adv-body { display: none; padding: 0 15px 15px; }
#sell26 .sl-adv.is-open .sl-adv-body { display: block; }
#sell26 .sl-grid-title { font-weight: 700; font-size: 12.5px; color: var(--s-muted); margin: 12px 0 8px; display: flex; align-items: center; gap: 10px; }
#sell26 .sl-selall { color: var(--s-primary); cursor: pointer; font-weight: 700; }
#sell26 .sl-chips { display: flex; flex-wrap: wrap; gap: 7px; }
#sell26 .sl-chip { position: relative; }
#sell26 .sl-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
#sell26 .sl-chip label {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1.5px solid var(--s-border);
    border-radius: 9px; background: #fff;
    padding: 7px 11px; font-size: 12.5px; font-weight: 700;
    cursor: pointer; transition: all .12s ease;
}
#sell26 .sl-chip input:checked + label { border-color: var(--s-accent); background: #eafaf0; color: var(--s-accent-d); }
#sell26 .sl-chip img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }

/* ---------- Offer type (noed) cards ---------- */
#sell26 .sl-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
#sell26 .sl-offer { position: relative; border: 1.8px solid var(--s-border); border-radius: 14px; background: #fff; padding: 14px; cursor: pointer; transition: all .15s ease; }
#sell26 .sl-offer input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
#sell26 .sl-offer:has(input:checked) { border-color: var(--s-primary); box-shadow: 0 0 0 2px rgba(46,96,162,.12); }
#sell26 .sl-offer.gold:has(input:checked) { border-color: var(--s-gold); box-shadow: 0 0 0 2px rgba(194,130,13,.16); }
#sell26 .sl-offer .ot { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 7px; }
#sell26 .sl-offer .op { font-size: 12px; color: var(--s-muted); margin-top: 5px; }
#sell26 .sl-offer .op b { color: var(--s-text); }
#sell26 .sl-offer .vip-more { display: inline-block; margin-top: 7px; font-size: 11.5px; color: var(--s-gold); font-weight: 800; }

/* ---------- Price summary ---------- */
#sell26 .sl-summary {
    background: linear-gradient(135deg, #eef4ff, #f6f9ff);
    border: 1px solid #dce8fb;
    border-radius: var(--s-radius);
    padding: 16px;
    margin: 8px 0 16px;
}
#sell26 .sl-srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; }
#sell26 .sl-srow + .sl-srow { border-top: 1px dashed #d4e1f6; }
#sell26 .sl-srow .v { font-weight: 800; }
#sell26 .sl-srow .v.blue { color: var(--s-primary); }
#sell26 .sl-srow.total .v { color: var(--s-accent-d); font-size: 17px; }
#sell26 .sl-badge-off { background: #d2fff5; color: #2d8c73; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 800; }

/* ---------- Wallet toggle ---------- */
#sell26 .sl-wallet {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    border: 1.6px solid var(--s-border); border-radius: 14px;
    padding: 13px 15px; margin-bottom: 14px; background: #fff;
}
#sell26 .sl-wallet .ic { width: 38px; height: 38px; border-radius: 11px; background: #eef4ff; color: var(--s-primary); display: grid; place-items: center; flex: 0 0 auto; }
#sell26 .sl-wallet .ic svg { width: 20px; height: 20px; }
#sell26 .sl-wallet .wt { font-weight: 700; font-size: 13.5px; }
#sell26 .sl-wallet .wb { font-size: 12px; color: var(--s-muted); margin-top: 2px; }
#sell26 .sl-wallet .wb b { color: var(--s-accent-d); }
#sell26 .sl-wallet .sw { margin-inline-start: auto; }

/* iOS-style switch */
#sell26 .sl-switch { position: relative; width: 50px; height: 28px; flex: 0 0 auto; }
#sell26 .sl-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
#sell26 .sl-switch .track { position: absolute; inset: 0; background: #d7deea; border-radius: 99px; transition: background .18s ease; }
#sell26 .sl-switch .track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s ease; }
#sell26 .sl-switch input:checked ~ .track { background: var(--s-accent); }
#sell26 .sl-switch input:checked ~ .track::after { transform: translateX(-22px); }

/* ---------- Rules tick ---------- */
#sell26 .sl-rules { display: flex; align-items: center; gap: 11px; background: #fff; border: 1.6px solid var(--s-border); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; cursor: pointer; }
#sell26 .sl-rules input[type=checkbox] {
    appearance: auto !important; -webkit-appearance: auto !important;
    width: 22px !important; height: 22px !important; min-width: 22px !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; flex: 0 0 auto !important;
    accent-color: var(--s-accent); opacity: 1 !important; position: static !important;
    float: none !important; box-shadow: none !important; cursor: pointer;
}
#sell26 .sl-rules span { font-size: 13px; line-height: 1.8; }
#sell26 .sl-rules a { color: var(--s-primary); font-weight: 700; }

/* ---------- Fraud warning ---------- */
#sell26 .sl-fraud { background: #fff5f3; border: 1px solid #ffd9d0; border-radius: 12px; padding: 12px 15px; font-size: 12.5px; line-height: 1.8; margin-top: 14px; }
#sell26 .sl-fraud b { color: #d03100; }

/* ---------- Nav buttons ---------- */
#sell26 .sl-nav { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
#sell26 .sl-btn {
    appearance: none; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 800; font-size: 14.5px;
    border-radius: 13px; padding: 14px 20px;
    transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
#sell26 .sl-btn svg { width: 18px; height: 18px; }
#sell26 .sl-btn-primary { background: linear-gradient(135deg, var(--s-primary), #2e74c9); color: #fff; box-shadow: var(--s-shadow); flex: 1; }
#sell26 .sl-btn-primary:hover { transform: translateY(-2px); }
#sell26 .sl-btn-success { background: linear-gradient(135deg, var(--s-accent), #22b357); color: #fff; box-shadow: var(--s-shadow); flex: 1; }
#sell26 .sl-btn-success:hover { transform: translateY(-2px); }
#sell26 .sl-btn-ghost { background: #fff; color: var(--s-primary-d); border: 1.6px solid var(--s-border); }
#sell26 .sl-btn-ghost:hover { border-color: #c7d6ef; }
#sell26 .sl-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }
#sell26 .sl-login-hint { text-align: center; color: var(--s-primary); font-weight: 700; padding: 12px; }

/* ---------- Error box ---------- */
#sell26 .sl-errors { background: #fff5f5; border: 1px solid #ffd6d6; border-radius: 12px; padding: 12px 16px 12px 16px; margin-bottom: 16px; }
#sell26 .sl-errors ul { margin: 0; padding-inline-start: 18px; }
#sell26 .sl-errors li { color: #d23b3b; font-size: 13px; line-height: 1.9; }

/* ---------- Mini VIP modal ---------- */
#sell26 .sl-modal-back { position: fixed; inset: 0; background: rgba(20,32,58,.55); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
#sell26 .sl-modal-back.is-open { display: flex; }
#sell26 .sl-modal { background: #fff; border-radius: 18px; max-width: 540px; width: 100%; max-height: 86vh; overflow: auto; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
#sell26 .sl-modal h3 { margin: 0 0 12px; color: var(--s-gold); font-size: 16px; }
#sell26 .sl-modal h4 { margin: 16px 0 8px; color: var(--s-primary); font-size: 14px; }
#sell26 .sl-modal div { font-size: 13px; line-height: 1.9; margin-bottom: 6px; }
#sell26 .sl-modal .sl-modal-close { margin-top: 16px; width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    #sell26 .sl-panel { padding: 16px 14px; }
    #sell26 .sl-types { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    #sell26 .sl-offers { grid-template-columns: 1fr; }
    #sell26 .sl-step { font-size: 0; }
    #sell26 .sl-step .dot { margin-bottom: 0; }
    #sell26 .sl-type img { width: 46px; height: 46px; }
}
@media (max-width: 420px) {
    #sell26 .sl-types { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   Field polish + override legacy site .divform layout (label/input)
   ========================================================================= */
/* فرم مرحله‌های ۲ و ۳ جمع‌وجور و وسط‌چین (کارت مرحله‌ی ۱/انتخاب نوع تمام‌عرض می‌ماند) */
#sell26 .sl-form .sl-panel { max-width: 760px; margin-inline: auto; }

/* چیدمان تمیز فیلد: لیبل بالای اینپوت، تمام‌عرض (override کردن float قالب قدیمی) */
#sell26 .divform { margin-bottom: 16px !important; display: block !important; text-align: right !important; float: none !important; padding: 0 !important; }
#sell26 .divform > label {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.6 !important;
    text-align: right !important;
    font-weight: 700;
    font-size: 13.5px;
    margin: 0 0 7px !important;
    color: var(--s-text) !important;
}
#sell26 .divform > span {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* اینپوت‌های جذاب‌تر */
#sell26 .divform input[type=text],
#sell26 .divform input[type=tel],
#sell26 .divform input[type=number],
#sell26 .divform input[type=email],
#sell26 .divform input[type=password],
#sell26 .divform textarea {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    height: auto !important;
    box-sizing: border-box !important;
    border: 1.6px solid #e2e8f3 !important;
    border-radius: 13px !important;
    background: #fff !important;
    padding: 13px 16px !important;
    font-size: 15px;
    font-family: inherit;
    color: var(--s-text) !important;
    box-shadow: 0 1px 2px rgba(20, 32, 58, .04) !important;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    outline: none;
}
#sell26 .divform input:hover,
#sell26 .divform textarea:hover { border-color: #cdd8ec; }
#sell26 .divform input:focus,
#sell26 .divform textarea:focus {
    border-color: #2e74c9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(46, 116, 201, .13);
}
#sell26 .divform input::placeholder,
#sell26 .divform textarea::placeholder { color: #9aa6bd; }
#sell26 .divform textarea { min-height: 110px; resize: vertical; line-height: 1.9; }

/* هایلایت فیلد ناقص هنگام ارسال */
#sell26 .sl-invalid { border-color: var(--s-danger) !important; background: #fff7f7 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important; }

/* آیکن VIP — خنثی‌کردن رول سراسری .imgvipcard قالب قدیمی */
#sell26 .sl-offer .imgvipcard {
    width: 22px !important;
    height: 22px !important;
    margin: 0 0 0 5px !important;
    bottom: auto !important;
    position: static !important;
    vertical-align: middle;
    border-radius: 5px;
    box-shadow: none;
}
