﻿/* ===== ورود، عضویت و احراز هویت =====
   موبایل: نوار برند بالا + برگه سفید. دسکتاپ (۹۶۰+): دو ستونه، پنل برند و ستون فرم.
   رنگ ها از صفحه ورود قبلی پارس پال (#3f3a5c و #a27ce6). */

@font-face { font-family: 'IRANSansX'; src: url('/assets/statics/invoice/IRANSansXFaNum-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'IRANSansX'; src: url('/assets/statics/invoice/IRANSansXFaNum-Regular.ttf') format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'IRANSansX'; src: url('/assets/statics/invoice/IRANSansXFaNum-Bold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }

:root {
    --ax-brand: #3f3a5c;
    --ax-brand-hover: #4c4670;
    --ax-accent: #a27ce6;
    --ax-accent-ink: #7451c2;
    --ax-accent-soft: #f3eefc;
    --ax-ink: #1f1d2b;
    --ax-text: #4a4859;
    --ax-muted: #8a8899;
    --ax-line: #e6e5ec;
    --ax-field: #f8f8fb;
    --ax-soft: #f5f5f8;
    --ax-green: #1f8f55;
    --ax-red: #c8382c;
    --ax-amber: #a8701a;
    --ax-ring: 0 0 0 4px rgba(162, 124, 230, .22);
}

* { box-sizing: border-box; }
/* Safari iOS 26 رنگ نوار بالا (زیر ساعت) را از پس زمینه صفحه می گیرد، نه theme-color؛
   پس زمینه صفحه همرنگ هدر است و فقط برگه فرم سفید است */
html { -webkit-text-size-adjust: 100%; background: var(--ax-brand); }
body.ax-body {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    font-family: 'IRANSansX', Tahoma, sans-serif; color: var(--ax-ink); font-size: 15px; line-height: 1.8;
    background: var(--ax-brand);
}
a { color: var(--ax-accent-ink); text-decoration: none; }
a:hover { color: var(--ax-brand); }
button { font-family: inherit; }

/* ---------- shell ---------- */
.ax-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ax-brand { display: none; }
.ax-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; }

/* نوار برند موبایل */
.ax-top {
    background: var(--ax-brand); color: #fff; position: relative; overflow: hidden;
    padding: calc(18px + env(safe-area-inset-top)) 20px 46px;
}
.ax-top::after {
    /* روشنی مورب از پایین چپ به بالا؛ قبل از رسیدن به لبه بالا محو می شود تا لبه بالا دقیقا هم رنگ نوار وضعیت
       مرورگر (theme-color) بماند */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(150% 120% at 15% 100%, rgba(162,124,230,.42), rgba(162,124,230,0) 70%);
}
.ax-top-in { max-width: 460px; margin: 0 auto; position: relative; z-index: 1; }
.ax-logo { height: 30px; display: block; }

/* پیشرفت (موبایل) */
.ax-progress { margin-top: 18px; }
.ax-progress-bar { display: flex; gap: 5px; }
.ax-progress-bar i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); transition: .3s; }
.ax-progress-bar i.done { background: var(--ax-accent); }
.ax-progress-bar i.active { background: #fff; }
.ax-progress-label { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 9px; color: rgba(255,255,255,.8); }

/* برگه فرم */
.ax-sheet {
    flex: 1 0 auto; width: 100%; max-width: 460px; margin: -24px auto 0; position: relative; z-index: 2;
    background: #fff; border-radius: 22px 22px 0 0; padding: 28px 22px 24px;
}

/* ---------- desktop: two columns ---------- */
@media (min-width: 960px) {
    .ax-shell { flex-direction: row; }
    /* پنل برند سمت چپ، فرم سمت راست */
    .ax-brand { order: 2; }
    .ax-top { display: none; }

    .ax-brand {
        display: flex; flex-direction: column; flex: 0 0 42%; max-width: 560px;
        background: linear-gradient(160deg, #4a4470 0%, var(--ax-brand) 48%, #322e4b 100%); color: #fff; position: relative; overflow: hidden;
        padding: 48px 56px;
    }
    .ax-brand::before {
        content: ""; position: absolute; inset: 0; pointer-events: none;
        background:
            radial-gradient(520px 320px at 100% 0%, rgba(162,124,230,.30), transparent 70%),
            radial-gradient(420px 300px at 0% 100%, rgba(162,124,230,.14), transparent 70%);
    }
    .ax-brand > * { position: relative; z-index: 1; }
    .ax-brand .ax-logo { height: 34px; }
    .ax-brand-body { margin: auto 0; padding: 40px 0; }
    .ax-brand h2 { font-size: 26px; font-weight: 800; line-height: 1.6; margin: 0 0 10px; }
    .ax-brand p { font-size: 14px; color: rgba(255,255,255,.7); margin: 0 0 34px; line-height: 2.1; max-width: 420px; }
    /* صفحه ورود: لوگو در مرکز و بج زیر آن */
    .ax-brand.is-plain > .ax-logo { visibility: hidden; }
    .ax-brand.is-plain .ax-brand-body { display: flex; justify-content: center; align-items: center; flex: 1; }
    .ax-hero { display: flex; flex-direction: column; align-items: center; padding: 80px 0; }
    .ax-brand-mark { display: block; height: 64px; }
    .ax-hero-tag {
        display: inline-block; margin-top: 22px; padding: 6px 16px; border-radius: 999px; line-height: 1.8;
        font-size: 13px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
    }
    .ax-brand-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.5); text-align: center; }
    .ax-brand-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; max-width: 400px; }
    .ax-brand-foot a { color: rgba(255,255,255,.72); transition: color .15s; }
    .ax-brand-foot a:hover { color: #fff; }
    .ax-copy { font-size: 11.5px; color: rgba(255,255,255,.38); }

    .ax-main { background: #fff; justify-content: center; align-items: center; padding: 48px 32px 0; }
    .ax-sheet { flex: 0 0 auto; margin: auto 0; max-width: 420px; padding: 0; border-radius: 0; }
    .ax-main > .ax-foot { display: none; }
}

/* مراحل عمودی (دسکتاپ) */
.ax-vsteps { list-style: none; margin: 0; padding: 0; }
.ax-vsteps li { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.ax-vsteps li:last-child { padding-bottom: 0; }
.ax-vsteps li::before { content: ""; position: absolute; top: 36px; bottom: 4px; right: 15px; width: 2px; background: rgba(255,255,255,.12); }
.ax-vsteps li:last-child::before { display: none; }
.ax-vsteps li.done::before { background: var(--ax-accent); }
.ax-vsteps .n {
    flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.6);
}
.ax-vsteps .n svg { width: 16px; height: 16px; }
.ax-vsteps li.done .n { background: var(--ax-accent); border-color: var(--ax-accent); color: #fff; }
.ax-vsteps li.active .n { background: #fff; border-color: #fff; color: var(--ax-brand); box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.ax-vsteps .t { padding-top: 3px; }
.ax-vsteps .t b { display: block; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.6); }
.ax-vsteps li.active .t b, .ax-vsteps li.done .t b { color: #fff; }
.ax-vsteps .t small { display: block; font-size: 12px; color: rgba(255,255,255,.5); }

/* ---------- typography ---------- */
.ax-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.ax-sub { color: var(--ax-muted); font-size: 13.5px; margin: 0 0 24px; line-height: 2; }
.ax-sub b { color: var(--ax-ink); direction: ltr; unicode-bidi: embed; }
.ax-step[hidden] { display: none !important; }
.ax-step { animation: axIn .25s ease; }
@keyframes axIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- fields ---------- */
.ax-field { margin-bottom: 16px; }
.ax-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ax-text); }
.ax-input {
    width: 100%; height: 52px; border: 1px solid var(--ax-line); border-radius: 12px; background: var(--ax-field);
    padding: 0 16px; font: inherit; font-size: 16px; color: var(--ax-ink); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none; appearance: none;
}
.ax-input:hover { border-color: #d6d4e0; }
textarea.ax-input { height: auto; min-height: 96px; padding: 12px 16px; line-height: 1.9; resize: vertical; }
select.ax-input {
    background-image: linear-gradient(45deg, transparent 50%, var(--ax-muted) 50%), linear-gradient(135deg, var(--ax-muted) 50%, transparent 50%);
    background-position: 18px 23px, 13px 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 32px;
}
.ax-input:focus { border-color: var(--ax-accent); background: #fff; box-shadow: var(--ax-ring); }
/* کدها (موبایل، کد ملی، سریال) چپ چین با همان فونت IRANSansX و ارقام فارسی */
.ax-input.ltr, .ax-input.otp { direction: ltr; text-align: left; letter-spacing: .5px; }
.ax-input.otp::placeholder { letter-spacing: 6px; }
.ax-input.big { font-size: 19px; font-weight: 600; text-align: center; letter-spacing: 1.5px; }
.ax-input.otp { height: 60px; font-size: 26px; font-weight: 700; text-align: center; letter-spacing: 16px; padding-left: 32px; }
.ax-input::placeholder { color: #b3b1c0; }
/* راهنمای ورودی های بزرگ و چپ چین: اندازه و وزن عادی، بدون فاصله حروف (فاصله، حروف فارسی را از هم جدا می کند) */
.ax-input.big::placeholder, .ax-input.ltr::placeholder { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.ax-input:disabled { opacity: .6; cursor: default; }
/* مقدار تایید شده (مثل کد ملی خوانده شده از کارت و تایید ثبت احوال) */
.ax-input[readonly] { background: var(--ax-soft); color: var(--ax-text); border-color: var(--ax-line); box-shadow: none; cursor: default; }
.ax-input.err { border-color: var(--ax-red); background: #fff8f7; }
.ax-hint { font-size: 12px; color: var(--ax-muted); margin-top: 6px; }
.ax-hint.err { color: var(--ax-red); }
.ax-row { display: flex; gap: 10px; }
.ax-row > * { flex: 1; min-width: 0; }

.ax-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; padding: 6px 0; color: var(--ax-text); }
.ax-check input { width: 18px; height: 18px; accent-color: var(--ax-brand); flex: none; margin-top: 4px; }

/* ---------- buttons ---------- */
.ax-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px;
    border: 0; border-radius: 12px; font-size: 15.5px; font-weight: 700; cursor: pointer; text-decoration: none;
    transition: background .15s, box-shadow .15s, transform .1s, color .15s;
}
.ax-btn-primary { background: var(--ax-brand); color: #fff; box-shadow: 0 1px 2px rgba(31,29,43,.12), 0 6px 16px rgba(63,58,92,.18); }
.ax-btn-primary:hover { background: var(--ax-brand-hover); color: #fff; }
.ax-btn:focus-visible { outline: none; box-shadow: var(--ax-ring); }
.ax-btn:active { transform: scale(.99); }
.ax-btn-ghost { background: var(--ax-accent-soft); color: var(--ax-accent-ink); }
.ax-btn-ghost:hover { background: #ebe2fb; color: var(--ax-brand); }
.ax-btn-light { background: #fff; color: var(--ax-ink); border: 1px solid var(--ax-line); }
.ax-btn-light:hover { border-color: #cfcbe0; background: var(--ax-field); color: var(--ax-ink); }
.ax-btn[disabled] { opacity: .5; pointer-events: none; box-shadow: none; }
.ax-btn.loading { opacity: .85; pointer-events: none; }
.ax-btn.loading::before {
    content: ""; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    animation: axSpin .8s linear infinite;
}
.ax-btn-ghost.loading::before, .ax-btn-light.loading::before { border-color: rgba(63,58,92,.2); border-top-color: var(--ax-brand); }
@keyframes axSpin { to { transform: rotate(360deg); } }
.ax-actions { margin-top: 22px; display: grid; gap: 10px; }
.ax-sticky { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); padding: 14px 0 calc(4px + env(safe-area-inset-bottom)); margin-top: 8px; }
@media (min-width: 960px) { .ax-sticky { position: static; background: none; padding: 0; margin-top: 22px; } }

.ax-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; flex-wrap: wrap; }
.ax-links.center { justify-content: center; }
/* لینک فرعی (بازگشت به وب سایت): خاکستری و با فاصله بیشتر از دکمه */
.ax-back { margin-top: 28px; }
.ax-back a { color: var(--ax-muted); font-size: 12.5px; }
.ax-back a:hover { color: var(--ax-text); }
.ax-link { background: none; border: 0; padding: 0; color: var(--ax-accent-ink); font-size: 13px; cursor: pointer; font-weight: 600; }
.ax-link:hover { color: var(--ax-brand); }
.ax-link[disabled] { color: var(--ax-muted); cursor: default; font-weight: 400; }
.ax-divider { display: flex; align-items: center; gap: 12px; color: var(--ax-muted); font-size: 12px; margin: 22px 0 14px; }
.ax-divider::before, .ax-divider::after { content: ""; flex: 1; height: 1px; background: var(--ax-line); }

/* ---------- info blocks ---------- */
.ax-note { border-radius: 12px; padding: 13px 15px; font-size: 13px; line-height: 2; margin: 0 0 16px; background: var(--ax-soft); color: var(--ax-text); border: 1px solid var(--ax-line); }
.ax-note.warn { background: #fffaf0; color: #6f4a0f; border-color: #f6e3bd; }
.ax-note.err { background: #fdf2f1; color: #8f2219; border-color: #f4d3cf; }
.ax-note.ok { background: #f0f9f4; color: #175c38; border-color: #cde9d9; }
.ax-note ul { margin: 4px 0 0; padding-inline-start: 18px; }

.ax-kv { border: 1px solid var(--ax-line); border-radius: 12px; padding: 2px 16px; margin-bottom: 16px; }
.ax-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ax-soft); font-size: 14px; }
.ax-kv div:last-child { border-bottom: 0; }
.ax-kv span { color: var(--ax-muted); }
.ax-kv b { font-weight: 700; text-align: left; }
.ax-kv .total { border-top: 1px dashed var(--ax-line); }
.ax-kv .total b { color: var(--ax-brand); font-size: 17px; }

.ax-icon-hero { width: 64px; height: 64px; border-radius: 18px; margin: 4px auto 18px; display: flex; align-items: center; justify-content: center; background: var(--ax-accent-soft); color: var(--ax-accent-ink); }
.ax-icon-hero.ok { background: #e8f6ee; color: var(--ax-green); }
.ax-icon-hero.wait { background: #fdf4e3; color: var(--ax-amber); }
.ax-icon-hero.err { background: #fbeceb; color: var(--ax-red); }
.ax-icon-hero svg { width: 30px; height: 30px; }
.ax-center { text-align: center; }
.ax-gap { margin-top: 20px; }
.ax-gap-sm { margin-top: 10px; }

/* card capture thumbnails */
.ax-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.ax-shot {
    position: relative; aspect-ratio: 1.586; border-radius: 12px; border: 1.5px dashed #d3cfe2; background: var(--ax-field);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
    color: var(--ax-brand); font-size: 12.5px; font-weight: 600; overflow: hidden; padding: 0; transition: .15s;
}
.ax-shot:hover { border-color: var(--ax-accent); background: var(--ax-accent-soft); }
.ax-shot svg { width: 24px; height: 24px; color: var(--ax-accent-ink); }
.ax-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax-shot.has { border-style: solid; border-color: var(--ax-accent); }
.ax-shot .ax-shot-tag { position: absolute; bottom: 6px; right: 6px; background: rgba(31,29,43,.7); color: #fff; font-size: 11px; padding: 1px 9px; border-radius: 20px; z-index: 1; }

/* ---------- full screen camera ---------- */
.ax-cam { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; color: #fff; }
.ax-cam[hidden] { display: none; }
.ax-cam > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax-cam-mask { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.ax-cam-mask:has(.face) { padding-top: 110px; }
.ax-cam-frame { width: min(88vw, 520px); aspect-ratio: 1.586; border-radius: 18px; position: relative; box-shadow: 0 0 0 200vmax rgba(0,0,0,.6); }
.ax-cam-frame::before, .ax-cam-frame::after, .ax-cam-frame i::before, .ax-cam-frame i::after { content: ""; position: absolute; width: 34px; height: 34px; border: 4px solid #fff; }
.ax-cam-frame::before { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.ax-cam-frame::after { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.ax-cam-frame i::before { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.ax-cam-frame i::after { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.ax-cam-frame.portrait { width: min(72vw, 380px, 55vh); }
.ax-cam-frame.face { width: min(62vw, 300px); aspect-ratio: .78; border-radius: 50%; outline: 4px solid rgba(255,255,255,.9); outline-offset: -4px; }
.ax-cam-frame.face::before, .ax-cam-frame.face::after, .ax-cam-frame.face i::before, .ax-cam-frame.face i::after { display: none; }
.ax-cam-frame.rec { outline-color: #ff4d4f; }
.ax-cam-head { position: relative; z-index: 2; padding: calc(16px + env(safe-area-inset-top)) 18px 0; text-align: center; }
.ax-cam-head b { display: block; font-size: 17px; }
.ax-cam-head small { opacity: .85; font-size: 13px; }
.ax-cam-text { position: relative; z-index: 2; margin: 14px 18px 0; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border-radius: 14px; padding: 12px 14px; font-size: 18px; font-weight: 700; text-align: center; line-height: 2; }
.ax-cam-timer { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(118px + env(safe-area-inset-bottom)); text-align: center; font-size: 15px; font-weight: 700; }
.ax-cam-foot { position: relative; z-index: 2; margin-top: auto; padding: 18px 24px calc(26px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; }
.ax-shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.25); cursor: pointer; transition: .15s; }
.ax-shutter:active { transform: scale(.94); }
.ax-shutter.rec { background: #ff4d4f; }
.ax-cam-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ax-cam-btn svg { width: 24px; height: 24px; }
.ax-cam-preview { position: absolute; inset: 0; z-index: 3; background: #000; display: flex; flex-direction: column; }
.ax-cam-preview[hidden] { display: none; }
.ax-cam-media { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding-top: env(safe-area-inset-top); }
.ax-cam-media img, .ax-cam-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.ax-cam-preview .ax-cam-foot { gap: 12px; }
.ax-cam-preview .ax-btn { height: 50px; }
.ax-cam-preview .ax-btn-primary { background: var(--ax-accent); }

/* ---------- toast ---------- */
.ax-toast {
    position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0;
    background: var(--ax-ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13.5px; z-index: 100;
    width: max-content; max-width: calc(100vw - 32px); transition: .25s; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.ax-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ax-toast.err { background: #a8291f; }
.ax-toast.ok { background: #1a7346; }

/* ---------- footer ---------- */
.ax-foot { text-align: center; color: var(--ax-muted); font-size: 12px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.ax-foot a { color: var(--ax-muted); }
/* فقط دسکتاپ (مثل «معرفی خدمات» در لینک های پایین صفحه) */
@media (max-width: 959px) { .ax-desk-only { display: none; } }
.ax-foot a:hover { color: var(--ax-brand); }

/* ---------- انتخاب گر تاریخ شمسی ---------- */
.ax-dp { position: fixed; inset: 0; z-index: 60; }
.ax-dp-back { position: absolute; inset: 0; background: rgba(20,18,32,.45); opacity: 0; transition: opacity .2s; }
.ax-dp-panel {
    position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0;
    padding: 6px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease;
    max-width: 460px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(0,0,0,.15);
}
.ax-dp.show .ax-dp-back { opacity: 1; }
.ax-dp.show .ax-dp-panel { transform: none; }
.ax-dp-head { display: flex; align-items: center; justify-content: space-between; height: 52px; border-bottom: 1px solid var(--ax-soft); }
.ax-dp-head b { font-size: 15px; }
.ax-dp-head .ax-link { font-size: 14px; padding: 8px 4px; }
.ax-dp-head [data-act="cancel"] { color: var(--ax-muted); font-weight: 500; }
.ax-dp-head [data-act="ok"] { font-weight: 800; }
.ax-dp-cols { position: relative; display: flex; height: 220px; margin-top: 8px; direction: rtl; }
.ax-dp-col { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.ax-dp-col::-webkit-scrollbar { display: none; }
.ax-dp-col[data-col="m"] { flex: 1.4; }
.ax-dp-pad { height: 88px; }
.ax-dp-item { height: 44px; line-height: 44px; text-align: center; scroll-snap-align: center; font-size: 16px; color: var(--ax-muted); cursor: pointer; transition: color .15s, font-weight .15s; }
.ax-dp-item.on { color: var(--ax-ink); font-weight: 700; font-size: 17px; }
.ax-dp-band { position: absolute; left: 0; right: 0; top: 88px; height: 44px; border-radius: 10px; background: var(--ax-accent-soft); pointer-events: none; }
@media (min-width: 960px) { .ax-dp-panel { bottom: auto; top: 50%; border-radius: 20px; transform: translateY(-40%); opacity: 0; transition: .2s; }
    .ax-dp.show .ax-dp-panel { transform: translateY(-50%); opacity: 1; } }

/* ---------- QR ادامه روی گوشی ---------- */
.ax-qr { display: block; width: 220px; height: 220px; margin: 8px auto 16px; padding: 12px; background: #fff; border: 1px solid var(--ax-line); border-radius: 16px; image-rendering: pixelated; }

/* ---------- آیکون و راهنمای کوتاه ---------- */
.ax-tip-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.ax-tip { display: inline-flex; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--ax-accent-soft); color: var(--ax-accent-ink); align-items: center; justify-content: center; cursor: pointer; }
.ax-tip svg { width: 16px; height: 16px; }
.ax-tip:focus-visible { outline: none; box-shadow: var(--ax-ring); }
.ax-tip-box {
    position: absolute; top: calc(100% + 8px); right: -6px; z-index: 20; width: 260px; max-width: calc(100vw - 48px);
    background: var(--ax-ink); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; line-height: 2;
    box-shadow: 0 12px 30px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s;
}
.ax-tip-box::before { content: ""; position: absolute; top: -6px; right: 12px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ax-ink); }
.ax-tip-box b { color: #fff; font-weight: 700; font-size: 12.5px; }
.ax-tip-box ul { margin: 4px 0 0; padding-inline-start: 18px; }
.ax-tip-wrap.open .ax-tip-box { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .ax-tip-wrap:hover .ax-tip-box { opacity: 1; visibility: visible; transform: none; } }
.ax-kv .ax-tip-wrap { color: var(--ax-muted); }
.ax-kv .ax-tip-box, .ax-kv .ax-tip-box * { color: #fff; text-align: right; }
.ax-kv .ax-tip-box b { font-size: 12.5px; }


/* انتخاب از فهرست (استان، شهر) */
.ax-select {
    display: block; text-align: right; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    padding-left: 40px;
}
.ax-select, .ax-select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8899' 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; }
.ax-select.empty { color: var(--ax-muted); }
.ax-lp .ax-dp-panel { display: flex; flex-direction: column; max-height: 78vh; max-height: 78dvh; }
.ax-lp-gap { width: 48px; }
.ax-lp-q { height: 44px; margin: 10px 0 6px; font-size: 15px; }
.ax-lp-list { flex: 1; min-height: 120px; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; padding: 0 8px; }
.ax-lp-item {
    display: block; width: 100%; text-align: right; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ax-ink);
    padding: 11px 12px; border-radius: 10px; cursor: pointer;
}
.ax-lp-item:hover { background: var(--ax-soft); }
.ax-lp-item.on { background: var(--ax-accent-soft); color: var(--ax-accent-ink); font-weight: 700; }
.ax-lp-group { font-size: 12px; font-weight: 700; color: var(--ax-muted); padding: 12px 12px 4px; }
.ax-lp-none { text-align: center; color: var(--ax-muted); font-size: 13.5px; padding: 28px 0; }
@media (min-width: 960px) { .ax-lp .ax-dp-panel { max-height: 70vh; } }

/* ستون ها روی موبایل زیر هم */
@media (max-width: 480px) { .ax-row-stack { flex-direction: column; gap: 0; } }

/* انتخاب دو گزینه ای (جنسیت) */
.ax-seg { display: flex; gap: 10px; }
.ax-seg label { flex: 1; position: relative; cursor: pointer; }
.ax-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ax-seg span {
    display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--ax-line); border-radius: 12px;
    background: var(--ax-field); font-size: 15px; color: var(--ax-text); transition: border-color .15s, background .15s, color .15s;
}
.ax-seg input:checked + span { border-color: var(--ax-accent); background: var(--ax-accent-soft); color: var(--ax-accent-ink); font-weight: 700; }
.ax-seg input:focus-visible + span { box-shadow: var(--ax-ring); }
