/* ==========================================================================
   Telegram Ads Service — Persian RTL
   طراحی ۲۰۲۶ — سیستم طراحی مدرن، شیشه‌ای و پرکنتراست
   ========================================================================== */

:root {
    /* برند / اصلی — بنفش-نیلی الکتریک */
    --primary: #5750f1;
    --primary-dark: #4338ca;
    --primary-light: #8b85f7;
    --primary-soft: #eef0ff;

    /* موفقیت / فعال */
    --accent: #14c38e;
    --accent-dark: #0e9c71;
    --accent-soft: #e3faf1;

    /* هشدار */
    --amber: #f5a524;
    --amber-soft: #fef6e6;

    /* خطا */
    --red: #f0453d;
    --red-soft: #fdecec;

    /* برجسته ثانویه */
    --purple: #a15cf0;
    --purple-soft: #f5eefe;

    /* خنثی */
    --ink: #0b1220;
    --muted: #66708a;
    --line: #e6e8f2;
    --bg: #f6f7fc;
    --card: #ffffff;

    /* گرادیان‌های برند */
    --grad-dark: linear-gradient(135deg, #150f3d 0%, #2c1f7a 55%, #5750f1 100%);
    --grad-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --grad-brand: linear-gradient(135deg, var(--primary) 0%, #8355f0 55%, #22d3ee 120%);
    --gold: #ffc857;

    /* هندسه / سایه */
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 14px 32px rgba(16, 24, 40, .07);
    --shadow-lg: 0 24px 60px rgba(87, 80, 241, .20);
    --ring: 0 0 0 4px rgba(87, 80, 241, .14);
    --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-family: 'Vazirmatn', 'Tahoma', 'Segoe UI', sans-serif;
    line-height: 1.75;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body {
    background:
        radial-gradient(1100px 560px at 100% -12%, rgba(87, 80, 241, .10), transparent 60%),
        radial-gradient(900px 480px at -8% 8%, rgba(34, 211, 238, .09), transparent 55%),
        radial-gradient(700px 420px at 50% 115%, rgba(161, 92, 240, .06), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
h1, h2, h3 { letter-spacing: -.01em; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccd0e6; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a9aede; }

a { color: var(--primary); text-decoration: none; transition: color .15s var(--ease); }
a:hover { text-decoration: none; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 18px;
}
.container--wide { max-width: 1280px; }
.container--narrow { max-width: 900px; }
.container--form { max-width: 720px; }

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
    white-space: nowrap;
    text-decoration: none;
}
.btn--primary { background: var(--grad-primary); color: #fff; box-shadow: 0 8px 20px rgba(87, 80, 241, .32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(87, 80, 241, .4); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: #fff; color: var(--primary); border-color: #d7dafb; }
.btn--ghost:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--success { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(20, 195, 142, .28); }
.btn--success:hover { transform: translateY(-2px); }
.btn--danger { background: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(240, 69, 61, .26); }
.btn--danger:hover { transform: translateY(-2px); }
.btn--danger-ghost { background: var(--red-soft); color: var(--red); }
.btn--danger-ghost:hover { background: var(--red); color: #fff; }
.btn--amber { background: var(--amber); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--sm { padding: 7px 14px; font-size: .86rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- نوار بالا ---------- */
.topbar {
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(230, 232, 242, .9);
    box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand__logo {
    width: 40px; height: 40px; border-radius: 13px;
    background: var(--grad-brand);
    display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(87, 80, 241, .35);
}
.brand__text { font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 22px; }
/* توجه: این افکت زیرخط فقط باید روی لینک‌های سطح اول نوار بالا اعمال شود،
   نه روی لینک‌های داخل منوی کشویی کاربر (usermenu__panel) — با ترکیب‌کنندهٔ
   فرزند مستقیم (>) از نشتِ استایل به آن دراپ‌داون جلوگیری می‌شود. */
.nav > a:not(.btn) { color: var(--muted); font-weight: 600; transition: color .15s var(--ease); position: relative; }
.nav > a:not(.btn)::after {
    content: ''; position: absolute; right: 0; bottom: -21px; width: 0; height: 2px;
    background: var(--primary); border-radius: 2px; transition: width .2s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--primary); }
.nav > a:not(.btn):hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }
.nav__user { color: var(--muted); font-size: .86rem; }
.nav__cta { margin-inline-start: 4px; }
.navtoggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.navtoggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.navtoggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle.is-open span:nth-child(2) { opacity: 0; }
.navtoggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- منوی کاربر (آواتار + دراپ‌داون) ---------- */
.usermenu { position: relative; }
.usermenu__trigger {
    display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
    border-radius: 999px; padding: 5px 10px 5px 6px; cursor: pointer; font-family: inherit; color: var(--ink);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.usermenu__trigger:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(87, 80, 241, .14); }
.usermenu__avatar {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    background: var(--grad-brand); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: .86rem;
}
.usermenu__name { font-weight: 700; font-size: .88rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__chev { color: var(--muted); transition: transform .15s var(--ease); }
.usermenu.open .usermenu__chev { transform: rotate(180deg); }
.usermenu__panel {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 8px; z-index: 60;
}
.usermenu.open .usermenu__panel { display: block; animation: tgFade .15s var(--ease); }
.usermenu__panel a {
    display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px;
    color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; transition: background .15s;
}
.usermenu__panel a:hover { background: var(--primary-soft); }
.usermenu__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.usermenu__danger { color: #b42318 !important; }
.usermenu__danger:hover { background: var(--red-soft) !important; }
@media (max-width: 900px) {
    .usermenu__trigger { width: 100%; justify-content: center; border-radius: 12px; padding: 10px; }
    .usermenu__panel { position: static; display: block; box-shadow: none; border: 0; padding: 6px 0 0; animation: none; }
    .usermenu__name { max-width: none; }
}

.site-main { min-height: 72vh; padding: 30px 0 44px; }

/* ---------- هدر داخلی صفحات ---------- */
.pagehead { margin: 6px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pagehead h1 { font-size: 1.6rem; margin: 0; font-weight: 800; }
.pagehead p { margin: 5px 0 0; color: var(--muted); }
.breadcrumb { color: var(--muted); font-size: .84rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- کارت‌ها ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card--pad { padding: 24px; }
.card__title { font-size: 1.08rem; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.card + .card { margin-top: 20px; }

.grid { display: grid; gap: 18px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------- کارت آماری ---------- */
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 19px 19px;
    box-shadow: var(--shadow);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(16, 24, 40, .1); }
.stat__label { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.stat__value { font-size: 1.55rem; font-weight: 800; margin-top: 9px; letter-spacing: -.01em; }
.stat__sub { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stat__icon {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
}
.si--blue { background: var(--primary-soft); color: var(--primary); }
.si--green { background: var(--accent-soft); color: var(--accent-dark); }
.si--amber { background: var(--amber-soft); color: var(--amber); }
.si--purple { background: var(--purple-soft); color: var(--purple); }
.si--red { background: var(--red-soft); color: var(--red); }
.stat--accent { background: linear-gradient(135deg, var(--primary-soft), #fff); border-color: #d7dafb; }
.stat__value small { font-size: .7rem; font-weight: 700; color: var(--muted); }

/* ---------- جدول‌ها ---------- */
.tablewrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th {
    text-align: right; font-size: .78rem; color: var(--muted); font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    padding: 13px 14px; background: #f7f8fd; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .92rem; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s var(--ease); }
.tbl tbody tr:hover { background: var(--primary-soft); }
.td-sub { display: block; font-size: .78rem; color: var(--muted); }
.row-click { cursor: pointer; }
.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- نشان وضعیت ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--green  { background: var(--accent-soft);  color: var(--accent-dark); }
.badge--red    { background: var(--red-soft);     color: #d63030; }
.badge--amber  { background: var(--amber-soft);   color: #b26a03; }
.badge--blue   { background: var(--primary-soft); color: var(--primary-dark); }
.badge--purple { background: var(--purple-soft);  color: #7f2fe0; }
.badge--gray   { background: #eef1f6;             color: #5b6472; }

/* ---------- فرم‌ها ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .92rem; }
.field label .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=number], .field input[type=tel], .field input[type=url], .field textarea, .field select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: .96rem; background: #fff; transition: border .15s var(--ease), box-shadow .15s var(--ease); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--primary); box-shadow: var(--ring);
}
.field input[dir=ltr], .field textarea[dir=ltr] { text-align: left; direction: ltr; }
.field textarea { min-height: 110px; resize: vertical; }
.field .counter { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 700; }
.counter.char--over { color: var(--red); }
.field--error input, .field--error textarea { border-color: var(--red); }
.help { font-size: .82rem; color: var(--muted); }
.help--ltr { direction: ltr; text-align: left; }

.check-line { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check-line input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.check-line .check-text { font-size: .92rem; }

.calcbox {
    background: var(--grad-dark); color: #fff;
    border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 9px;
}
.calcbox__row { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.calcbox__row b { font-size: 1.05rem; }
.calcbox__total { border-top: 1px dashed rgba(255, 255, 255, .35); padding-top: 9px; font-size: 1.15rem; }
.calcbox__total b { font-size: 1.35rem; color: var(--gold); }

/* ---------- بودجه و هزینه (کارت‌های هم‌راستا) ---------- */
.budget-sec__desc { margin: -6px 0 0; color: var(--muted); font-size: .86rem; }
.budget-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: stretch; }
.budget-card {
    display: flex; flex-direction: column; gap: 10px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px;
    background: #fff; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.budget-card:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.budget-card--primary { background: var(--primary-soft); border-color: #d7dafb; }
.budget-card--error { border-color: var(--red); }
.budget-card__head { display: flex; align-items: center; gap: 10px; }
.budget-card__head .flabel { flex: 1; min-width: 0; }
.budget-card__ico {
    width: 33px; height: 33px; border-radius: 10px; flex: none;
    background: #fff; display: grid; place-items: center; font-size: .96rem;
    box-shadow: 0 3px 8px rgba(16, 24, 40, .1);
}
.budget-card input[type=number] {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px;
    font-family: inherit; font-size: 1.02rem; font-weight: 700; background: #fff; color: var(--ink);
    transition: border .15s var(--ease), box-shadow .15s var(--ease);
}
.budget-card input[type=number]:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.budget-card__seg { align-self: flex-start; }
.budget-card__foot { margin-top: auto; display: grid; gap: 3px; }
.budget-card__foot .help { font-size: .78rem; line-height: 1.5; }
@media (max-width: 640px) {
    .budget-grid { grid-template-columns: 1fr; }
}

/* ---------- پیام‌ها ---------- */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin: 14px 0 0; font-weight: 500; font-size: .93rem; border: 1px solid transparent; transition: opacity .4s; }
.alert--fade { opacity: 0; }
.alert--success { background: var(--accent-soft); color: #067a56; border-color: #b7ecd9; }
.alert--danger  { background: var(--red-soft);    color: #b42318; border-color: #f5c6c6; }
.alert--info    { background: var(--primary-soft); color: var(--primary-dark); border-color: #d7dafb; }
.alert--amber   { background: var(--amber-soft);  color: #92560a; border-color: #f3d9a8; }

/* ---------- قوانین ---------- */
.rules {
    background: #fbfbff; border: 1px dashed #d0d3ee; border-radius: var(--radius); padding: 18px 20px;
}
.rules h3 { margin: 0 0 10px; color: var(--primary-dark); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.rules ul { margin: 0; padding-inline-start: 20px; }
.rules li { margin-bottom: 6px; font-size: .9rem; }
.rules .rules-note { font-size: .84rem; color: var(--red); margin-top: 10px; font-weight: 600; }

/* ---------- لندینگ ---------- */
.hero {
    background: radial-gradient(1000px 520px at 85% -10%, rgba(87, 80, 241, .16), transparent 60%),
                radial-gradient(800px 420px at 8% 6%, rgba(34, 211, 238, .12), transparent 55%), #fff;
    border-bottom: 1px solid var(--line);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding: 60px 0 64px; }
.hero h1 { font-size: 2.4rem; line-height: 1.4; font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; }
.hero h1 span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin: 0 0 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero__trust div { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero__trust b { color: var(--ink); font-size: 1rem; }

.hero-art {
    background: var(--grad-dark);
    border-radius: var(--radius-lg); padding: 26px; color: #fff; position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-art::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .25), transparent 70%); top: -80px; left: -60px; }
.hero-art::after  { content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(161, 92, 240, .3), transparent 70%); bottom: -70px; right: -40px; }
.ha-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; position: relative; }
.ha-badge { background: rgba(255, 255, 255, .16); padding: 4px 12px; border-radius: 999px; font-size: .8rem; backdrop-filter: blur(6px); }
.ha-bal { text-align: left; }
.ha-bal small { display: block; color: #cbd0ff; font-size: .75rem; }
.ha-bal b { font-size: 1.3rem; }
.ha-body { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 14px 16px; backdrop-filter: blur(6px); }
.ha-metric { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .18); font-size: .9rem; }
.ha-metric:last-child { border: 0; }
.ha-metric span { color: #d3d7ff; }
.ha-metric b { font-size: .95rem; }
.ha-metric b.up { color: #6ff7c9; }
.ha-foot { display: flex; justify-content: space-between; margin-top: 16px; position: relative; }
.ha-foot .pill { background: var(--accent); padding: 3px 10px; border-radius: 999px; font-size: .78rem; }

.section { padding: 44px 0; }
.section__title { text-align: center; font-size: 1.75rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -.01em; }
.section__sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }

.steps { counter-reset: step; }
.step {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; position: relative; box-shadow: var(--shadow); height: 100%;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16, 24, 40, .1); }
.step__num {
    counter-increment: step;
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--grad-primary); color: #fff; font-weight: 800; font-size: 1.2rem;
    margin-bottom: 14px; box-shadow: 0 8px 18px rgba(87, 80, 241, .32);
}
.step__num::before { content: counter(step); }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

.pricing {
    background: var(--grad-dark); color: #fff; border-radius: var(--radius-lg);
    padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.pricing::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 70%); top: -100px; left: -70px; }
.price-num { font-size: 4rem; font-weight: 800; line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.price-pct { font-size: 1.3rem; color: #cfd3ff; }
.pricing__list { display: grid; gap: 12px; position: relative; }
.price-ex { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 6px; position: relative; }
.price-ex__row { display: flex; justify-content: space-between; font-size: .95rem; }
.price-ex__row span { color: #cfd3ff; }
.price-ex__row.total { border-top: 1px dashed rgba(255, 255, 255, .3); padding-top: 8px; margin-top: 4px; font-weight: 800; font-size: 1.05rem; }
.price-ex__row.total b { color: var(--gold); }

/* ---------- جزئیات کمپین ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.detail {
    background: #f7f8fd; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px;
}
.detail small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.detail b { font-size: 1rem; }
.detail--main { grid-column: 1 / -1; }
.adtext-block {
    background: var(--primary-soft); border-inline-start: 4px solid var(--primary);
    border-radius: 14px; padding: 14px 16px; font-size: 1.05rem; line-height: 1.9;
}
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 12px; font-size: .94rem; }
.kv > span:first-child { color: var(--muted); }
.kv > div { word-break: break-all; }
.kv--aside { grid-template-columns: 108px 1fr; font-size: .88rem; }

/* ==========================================================================
   جزئیات کمپین (ادمین) — هدر + چیدمان دو ستونه main/aside
   ========================================================================== */
.cv-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .86rem; font-weight: 600; margin-bottom: 10px; }
.cv-back:hover { color: var(--primary); }
.cv-head { margin-bottom: 18px; }
.cv-head__title h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; }
.cv-head__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cv-chip {
    display: inline-flex; align-items: center; gap: 5px; background: #eef1f6; color: #4b5768;
    border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600;
}

.admin-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.admin-main { display: grid; gap: 20px; min-width: 0; }
.admin-aside { display: grid; gap: 20px; position: sticky; top: 18px; min-width: 0; }
@media (max-width: 980px) {
    .admin-grid { grid-template-columns: 1fr; }
    .admin-aside { position: static; }
}

.cv-media { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #e9eef5; }
.cv-media__label { font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.cv-media__label .hint { font-weight: 400; }
.cv-media video, .cv-media img { max-width: 100%; border-radius: 14px; display: block; }

.cv-status-card .form { gap: 14px; }

.paylist { display: grid; gap: 10px; }
.paylist__row { border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; display: grid; gap: 4px; }
.paylist__main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.paylist__sub { font-size: .78rem; color: var(--muted); }
.paylist__sub a { color: var(--primary); }

/* ---------- لیست تراکنش‌ها (کیف پول مشتری) ---------- */
.txlist { display: grid; gap: 10px; }
.txrow { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; align-items: flex-start; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.txrow:hover { border-color: #d7dafb; box-shadow: var(--shadow-xs); }
.txrow__ico {
    width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 1rem;
    background: var(--primary-soft);
}
.txrow__ico--deposit { background: var(--accent-soft); }
.txrow__ico--campaign { background: var(--purple-soft); }
.txrow__ico--withdraw { background: var(--amber-soft); }
.txrow__body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.txrow__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.txrow__title { font-weight: 700; font-size: .94rem; }
.txrow__amount { font-weight: 800; font-size: .96rem; white-space: nowrap; }
.txrow__amount--pos { color: var(--accent-dark); }
.txrow__amount--neg { color: #b42318; }
.txrow__bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.txrow__bottom a { color: var(--primary); font-weight: 600; }
.txrow__date { direction: ltr; }
.txrow__reason { font-size: .8rem; color: #b42318; }

/* ---------- سیستم تیکت پشتیبانی ---------- */
.ticketlist { display: grid; gap: 10px; }
.ticketrow {
    display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 14px;
    padding: 14px 17px; text-decoration: none; color: inherit; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.ticketrow:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.ticketrow__main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticketrow__subject { font-weight: 700; font-size: .96rem; }
.ticketrow__meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }

.ticketthread { display: grid; gap: 14px; }
.tmsg { border-radius: 16px; padding: 12px 16px; max-width: 88%; }
.tmsg--user { background: var(--primary-soft); margin-inline-end: auto; }
.tmsg--admin { background: var(--purple-soft); margin-inline-start: auto; border: 1px solid #e6d6fc; }
.tmsg__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.tmsg__head b { color: var(--ink); font-size: .84rem; }
.tmsg__body { font-size: .92rem; line-height: 1.8; white-space: pre-line; }
@media (max-width: 640px) { .tmsg { max-width: 100%; } }

/* ---------- لینک‌های سریع داشبورد مشتری ---------- */
.quicklinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.quicklink {
    display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 15px 17px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.quicklink:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.quicklink__ico {
    width: 37px; height: 37px; border-radius: 12px; flex: none; display: grid; place-items: center;
    font-size: 1.05rem; background: var(--primary-soft);
}
@media (max-width: 700px) { .quicklinks { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   پروفایل مشتری
   ========================================================================== */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.profile-grid .card:first-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-current {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #f6f7fd; border-radius: 12px; padding: 11px 15px; font-weight: 700; font-size: .96rem;
}
.profile-toggle summary {
    cursor: pointer; font-weight: 700; color: var(--primary-dark); font-size: .9rem;
    padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 6px;
}
.profile-toggle summary::before { content: '✎'; font-size: .85rem; }
.profile-toggle summary::-webkit-details-marker { display: none; }
.profile-btnrow { display: flex; gap: 10px; }
.profile-btnrow .btn { flex: 1; }

.chart-box canvas { width: 100%; height: 240px; display: block; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--muted); }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- فرم احراز هویت ---------- */
.auth-wrap { display: grid; place-items: center; min-height: 70vh; padding: 30px 0; }
.auth-card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px; }
.auth-card h1 { font-size: 1.4rem; margin: 0 0 6px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* ---------- صفحهٔ ثبت‌نام دو‌ستونه: فرم + معرفی سرویس ---------- */
.auth-split { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 60px; align-items: center; min-height: 76vh; padding: 44px 0; }
.auth-split .auth-card { margin: 0; }
.auth-card__badge {
    width: 58px; height: 58px; border-radius: 50%; background: var(--grad-brand); color: #fff;
    display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 12px 26px rgba(87, 80, 241, .3);
}
.field-row-label { display: flex; align-items: center; gap: 6px; }

/* فیلد دارای آیکن داخل باکس */
.field__input-wrap { position: relative; }
.field--icon input { padding-right: 42px; }
.field--icon .field__icon {
    position: absolute; top: 50%; right: 13px; transform: translateY(-50%);
    color: var(--muted); display: grid; place-items: center; pointer-events: none; transition: color .15s var(--ease);
}
.field--icon input:focus ~ .field__icon { color: var(--primary); }

/* فیلد شماره موبایل با پیش‌کد کشور ثابت */
.phone-input { display: flex; gap: 8px; }
.phone-input__code {
    flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); background: #f7f8fd; font-weight: 800; color: var(--ink); font-size: .95rem;
    direction: ltr;
}
.phone-input__code svg { color: var(--accent-dark); }
.phone-input input { flex: 1; min-width: 0; }

/* ستون معرفی سرویس کنار فرم */
.auth-promo__badge {
    display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary-dark);
    font-weight: 700; font-size: .84rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.auth-promo h2 { font-size: 1.9rem; margin: 0 0 14px; line-height: 1.55; }
.auth-promo .lead { color: var(--muted); font-size: 1rem; margin: 0 0 26px; max-width: 480px; }
.auth-feature-list { display: grid; gap: 12px; max-width: 480px; }
.auth-feature {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px 16px; box-shadow: var(--shadow-xs); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.auth-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.auth-feature__text { font-weight: 600; font-size: .92rem; }
.auth-feature__icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.auth-feature__icon--a { background: var(--accent-soft); color: var(--accent-dark); }
.auth-feature__icon--b { background: var(--primary-soft); color: var(--primary-dark); }
.auth-feature__icon--c { background: var(--purple-soft); color: var(--purple); }

@media (max-width: 980px) {
    .auth-split { grid-template-columns: 1fr; gap: 36px; padding: 26px 0; }
    .auth-promo { order: 2; text-align: center; }
    .auth-promo .lead, .auth-feature-list { margin-left: auto; margin-right: auto; }
}

/* ---------- کانال‌های هدف ---------- */
.target-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.target-remove { border: 0; background: var(--red-soft); color: var(--red); width: 40px; height: 42px; border-radius: 11px; cursor: pointer; font-size: 1.1rem; transition: background .15s, color .15s; }
.target-remove:hover { background: var(--red); color: #fff; }

/* ---------- دسته‌بندی بخش‌های فرم ---------- */
.formsection { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fdfdff; display: grid; gap: 14px; }
.formsection__title { font-weight: 800; font-size: 1rem; color: var(--primary-dark); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.formsection .field { border-bottom: 1px dashed #e9eef5; padding-bottom: 12px; }
.formsection .field:last-child { border-bottom: 0; padding-bottom: 0; }
.flabel { display: flex; align-items: center; gap: 8px; }
.flabel label { font-weight: 700; font-size: .94rem; }
.flabel .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }

/* ---------- دکمه راهنما (!) و تولتیپ ---------- */
.info { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #ccd0ea; background: #fff; color: #7a80a0; cursor: pointer; flex: none; padding: 0; display: inline-grid; place-items: center; font-family: inherit; }
.info__icon { font-size: .72rem; font-weight: 800; line-height: 1; }
.info__tip {
    visibility: hidden; opacity: 0; position: absolute; z-index: 60;
    top: 130%; right: 0; width: 260px; max-width: 70vw;
    background: #150f3d; color: #fff; font-size: .8rem; font-weight: 400; line-height: 1.7;
    padding: 10px 12px; border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    transition: opacity .15s var(--ease), transform .15s var(--ease); transform: translateY(4px); text-align: right;
}
.info__tip::before { content: ''; position: absolute; top: -5px; right: 8px; width: 10px; height: 10px; background: #150f3d; transform: rotate(45deg); }
.info:hover .info__tip, .info:focus .info__tip, .info:focus-within .info__tip { visibility: visible; opacity: 1; transform: translateY(0); }
.info--static { position: static; }
.info--static .info__tip { top: 100%; right: 0; }

/* ---------- چیپ کشور/زبان ---------- */
.chipbox { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.chip-check { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: .8rem; cursor: pointer; background: #fff; transition: .15s var(--ease); }
.chip-check:hover { border-color: var(--primary); }
.chip-check input:checked ~ *, .chip-check:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.chip-check input { accent-color: var(--primary); margin: 0; }

/* ---------- منوی چندگزینه‌ای (جستجو + برچسب) ---------- */
.ms { position: relative; }
.ms__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ms__chip { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); border: 1px solid #d7dafb; color: var(--primary-dark); border-radius: 999px; padding: 3px 8px 3px 4px; font-size: .82rem; font-weight: 600; }
.ms__chipx { border: 0; background: none; color: inherit; cursor: pointer; font-size: .8rem; width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; }
.ms__chipx:hover { background: var(--primary); color: #fff; }
.ms__field { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-family: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; text-align: right; }
.ms__field:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.ms__value { flex: 1; }
.ms__caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #9aa0ba; transition: transform .15s var(--ease); }
.ms.is-open .ms__caret { transform: rotate(180deg); }
.ms__panel { display: none; position: absolute; z-index: 70; top: 100%; right: 0; left: 0; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ms__panel.open { display: block; }
.ms__search { width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); font-family: inherit; font-size: .9rem; outline: none; }
.ms__list { max-height: 220px; overflow: auto; padding: 6px; }
.ms__opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: .9rem; }
.ms__opt:hover { background: var(--primary-soft); }
.ms__opt.is-sel { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.ms__check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #c9cfe4; flex: none; display: inline-grid; place-items: center; font-size: .72rem; color: #fff; }
.ms__opt.is-sel .ms__check { background: var(--primary); border-color: var(--primary); }
.ms__opt.is-sel .ms__check::after { content: '✓'; }
.ms__none { padding: 14px; text-align: center; color: var(--muted); font-size: .88rem; }
.ms-native { display: none; }

/* ---------- پیش‌نمایش تبلیغ ---------- */
.adpreview {
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; align-items: stretch; background: #fff;
    box-shadow: var(--shadow-xs);
}
.adpreview__body { padding: 14px 16px; flex: 1; border-inline-end: 1px solid #eef1f6; }
.adpreview__text { font-size: .98rem; line-height: 1.7; color: #223; min-height: 1.7em; }
.adpreview__url { font-size: .82rem; color: #7b889d; margin-top: 4px; }
.adpreview__tag { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; background: var(--primary-soft); color: var(--primary-dark); font-size: .72rem; font-weight: 700; letter-spacing: .5px; padding: 10px 6px; }

/* ---------- پیام خطای کنار فیلد ---------- */
.help--err { color: var(--red) !important; font-weight: 600; }

/* ---------- راهنمای ایموجی ---------- */
.emojihelper { font-size: .82rem; color: var(--muted); background: #f5f6fd; border: 1px dashed #d3d7ee; border-radius: 10px; padding: 6px 10px; }
.emojihelper a { font-weight: 600; }

/* ---------- کنترل دکمه‌ای (۱ تا ۴) ---------- */
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; background: #eef1f9; padding: 5px; border-radius: var(--radius-sm); }
.seg__opt { padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; font-family: inherit; font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s var(--ease); }
.seg__opt:hover { color: var(--primary); }
.seg__opt.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(87, 80, 241, .32); }

/* ---------- آپلود عکس/ویدیوی تبلیغ ---------- */
.admedia-zone { display: grid; gap: 10px; }
.admedia-drop { border: 2px dashed #d0d3ee; border-radius: var(--radius); padding: 28px 18px; text-align: center; background: #fbfbff; cursor: pointer; transition: .15s var(--ease); }
.admedia-drop:hover, .admedia-drop.dragover { border-color: var(--primary); background: var(--primary-soft); }
.admedia-ico { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.admedia-title { font-weight: 700; font-size: .98rem; }
.admedia-sub { font-size: .8rem; color: var(--muted); margin: 3px 0 12px; }
.admedia-btn { pointer-events: none; }
.admedia-preview { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; }
.admedia-preview img, .admedia-preview video { width: 100%; display: block; max-height: 260px; object-fit: contain; background: #000; }
.admedia-preview::after { content: 'تغییر'; position: absolute; bottom: 8px; left: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.admedia-err { color: var(--red); font-weight: 700; font-size: .86rem; background: var(--red-soft); border: 1px solid #f5c6c6; border-radius: 9px; padding: 8px 10px; }
.admedia-benefit { color: var(--accent-dark) !important; font-weight: 600; }

/* ==========================================================================
   هدف‌گذاری مخاطب (Target) — طراحی مدرن، نزدیک به پنل رسمی Telegram Ads
   ========================================================================== */
.tg-target {
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
    background: linear-gradient(180deg, #fbfbff 0%, #fdfdff 140px);
    display: grid; gap: 16px; position: relative; overflow: hidden;
}
.tg-target::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--grad-brand);
}
.tg-target__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tg-target__title { display: flex; align-items: flex-start; gap: 12px; }
.tg-target__badge {
    width: 42px; height: 42px; border-radius: 14px; flex: none;
    background: var(--grad-primary); color: #fff;
    display: grid; place-items: center; box-shadow: 0 8px 18px rgba(87, 80, 241, .32);
}
.tg-target__title h3 { margin: 0; font-size: 1.04rem; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.tg-target__title h3 .hint { font-weight: 500; color: var(--muted); font-size: .78rem; direction: ltr; }
.tg-target__title p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.tg-target__note { margin: 0; font-size: .82rem; color: #b26a03; text-align: center; }

/* تب‌های هدف‌گذاری */
.tg-tabs2 {
    display: flex; gap: 6px; flex-wrap: wrap; background: #eef1f9; padding: 6px;
    border-radius: var(--radius-sm);
}
.tg-tab2 {
    flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 14px; border-radius: 10px; border: 0; background: transparent;
    font-family: inherit; font-weight: 700; font-size: .88rem; color: var(--muted);
    cursor: pointer; transition: .18s var(--ease); white-space: nowrap;
}
.tg-tab2__ico { display: inline-flex; opacity: .8; }
.tg-tab2:hover { color: var(--primary-dark); }
.tg-tab2.active { background: #fff; color: var(--primary-dark); box-shadow: 0 4px 14px rgba(16, 24, 40, .1); }
.tg-tab2.active .tg-tab2__ico { opacity: 1; color: var(--primary); }

/* نوار خلاصهٔ زندهٔ مخاطب */
.tg-summary {
    display: flex; align-items: center; gap: 8px; background: var(--primary-soft);
    color: var(--primary-dark); border: 1px solid #d7dafb; border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: .85rem; font-weight: 600;
}
.tg-summary svg { flex: none; opacity: .85; }
.tg-summary b { font-weight: 800; }

/* پنل هر تب */
.tg-panel {
    display: none; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; margin-bottom: 0;
}
.tg-panel.on { display: grid; gap: 16px; animation: tgFade .18s var(--ease); }
@keyframes tgFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ردیف با آیکون کنار فیلد */
.tg-row { display: flex; gap: 12px; align-items: flex-start; }
.tg-row .field { flex: 1; min-width: 0; }
.tg-row__ico {
    flex: none; width: 34px; height: 34px; border-radius: 10px; margin-top: 2px;
    background: var(--primary-soft); color: var(--primary-dark);
    display: grid; place-items: center; font-size: 1rem;
}

/* دسته‌بندی داخل پنل کاربران */
.tg-group { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed #e9eef5; }
.tg-group:last-of-type { border-bottom: 0; padding-bottom: 0; }
.tg-group__title {
    display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .88rem;
    color: var(--primary-dark);
}
.tg-group__title svg { color: var(--primary); }

/* بخش استثناها */
.tg-exclude {
    background: var(--red-soft); border: 1px dashed #f0b8b8; border-radius: var(--radius); 
    padding: 16px; display: grid; gap: 12px;
}
.tg-exclude__title {
    display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: .88rem; color: #b42318;
}
.tg-exclude__title svg { color: #b42318; }
.tg-exclude .hint { font-weight: 400; color: #c56b64; font-size: .78rem; }
.tg-exclude select, .tg-exclude textarea { background: #fff; }

/* جعبه هشدار محدودیت */
.tg-warnbox {
    display: flex; align-items: center; gap: 8px; background: var(--red-soft);
    color: #b42318; border: 1px solid #f5c6c6; border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: .85rem; font-weight: 600;
}

/* ---------- paybox ---------- */
.paybox { background: var(--grad-dark); color: #fff; border-radius: var(--radius); padding: 22px; }
.paybox .addr {
    background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .35); border-radius: var(--radius-sm);
    padding: 14px; margin: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; word-break: break-all;
    direction: ltr; text-align: left; font-family: monospace; font-size: .92rem;
}
.paybox .btn { flex: none; }
.pay-note { color: #cfd3ff; font-size: .88rem; }

/* ---------- فیلتر / نوار ابزار ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); min-width: 220px; font-family: inherit; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: .15s var(--ease); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 6px 14px rgba(87, 80, 241, .28); }
.empty { text-align: center; color: var(--muted); padding: 44px 0; }
.empty .empty-ico { font-size: 2.4rem; margin-bottom: 8px; }

/* ---------- پاورقی ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 30px; padding: 24px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer p { margin: 0; font-size: .88rem; color: var(--ink); }
.footer__muted { color: var(--muted) !important; font-size: .8rem !important; }

/* ---------- لیست تاریخچه ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; right: 6px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex: none; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--primary-soft); }
.tl-dot--green { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-dot--red { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.tl-dot--amber { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.tl-dot--gray { background: #b9c2d0; box-shadow: 0 0 0 4px #eef1f6; }
.timeline .tl-text { font-size: .92rem; }
.timeline .tl-time { font-size: .8rem; color: var(--muted); }

/* ---------- مودال جزئیات (پرداخت/برداشت و مشابه) ---------- */
.detail-modal {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center; padding: 20px;
}
.detail-modal.open { display: flex; }
.detail-modal__backdrop {
    position: absolute; inset: 0; background: rgba(11, 18, 32, .55); backdrop-filter: blur(2px);
}
.detail-modal__box {
    position: relative; width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
    background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 26px; animation: tgFade .15s var(--ease);
}
.detail-modal__close {
    position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer;
    display: grid; place-items: center; font-size: 1rem; transition: .15s var(--ease);
}
.detail-modal__close:hover { background: var(--red-soft); color: var(--red); border-color: var(--red-soft); }
.detail-modal__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 18px; padding-inline-end: 40px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.detail-grid__item { background: #f7f8fd; border-radius: var(--radius-sm); padding: 12px 14px; }
.detail-grid__item--wide { grid-column: 1 / -1; }
.detail-grid__label { font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.detail-grid__value { font-size: .94rem; font-weight: 600; word-break: break-word; }
.detail-grid__value--ltr { direction: ltr; text-align: left; unicode-bidi: plaintext; }
.detail-modal__shot { display: block; width: 100%; max-height: 340px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #f7f8fd; margin-bottom: 18px; }
.detail-modal__actions { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.detail-modal__actions form { flex: 1; }
.detail-modal__reason { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; margin-bottom: 8px; resize: vertical; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero__inner, .pricing { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .kv { grid-template-columns: 1fr; gap: 2px 0; }
    .navtoggle { display: flex; }
    .nav {
        position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
        padding: 14px 18px 22px; gap: 8px; box-shadow: 0 20px 40px rgba(15, 23, 42, .12);
        transform: translateY(-130%); transition: transform .25s var(--ease); z-index: 49; border-bottom: 1px solid var(--line);
    }
    .nav--open { transform: translateY(0); }
    .nav a:not(.btn), .nav .btn { width: 100%; text-align: center; justify-content: center; }
    .nav a:not(.btn)::after { display: none; }
    .nav__actions { flex-direction: column; align-items: stretch; gap: 8px; margin: 8px 0 0; }
    .nav__user { text-align: center; }
    .pagehead { flex-direction: column; align-items: flex-start; }
    .tablewrap td, .tablewrap th { padding: 11px; }
    .tg-target__head { flex-direction: column; }
}
@media (max-width: 520px) {
    .btn { width: 100%; }
    .btn--sm { width: auto; }
    .price-num { font-size: 3rem; }
    .tg-tab2 span:last-child { display: none; }
    .tg-tab2 { padding: 10px; }
    .tg-row { gap: 8px; }
    .tg-row__ico { width: 28px; height: 28px; font-size: .88rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-modal__actions { flex-direction: column; }
}
