/* پنل موبایل (PWA) — ظاهر مستقل از پنل دسکتاپ */
:root {
    --m-primary: #4f46e5;
    --m-primary-600: #4338ca;
    --m-primary-soft: #eef2ff;
    --m-success: #059669;
    --m-success-soft: #ecfdf5;
    --m-warning: #d97706;
    --m-warning-soft: #fffbeb;
    --m-danger: #dc2626;
    --m-danger-soft: #fef2f2;
    --m-info: #0284c7;
    --m-info-soft: #f0f9ff;
    --m-bg: #f4f6fb;
    --m-card: #ffffff;
    --m-text: #0f172a;
    --m-muted: #64748b;
    --m-border: #e5e7eb;
    --m-chip: #f1f5f9;
    --m-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
    --m-radius: 16px;
    --m-appbar-h: 56px;
    --m-tabbar-h: 64px;
    --m-safe-top: env(safe-area-inset-top, 0px);
    --m-safe-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
}

/* تم تیره: خودکار (تنظیم سیستم) مگر کاربر «روشن» را انتخاب کرده باشد، یا انتخاب صریح «تیره» */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --m-primary: #818cf8;
        --m-primary-600: #6366f1;
        --m-primary-soft: #1e1b4b;
        --m-success-soft: #052e22;
        --m-warning-soft: #3b2a07;
        --m-danger-soft: #3b0d0d;
        --m-info-soft: #082f49;
        --m-bg: #0b1120;
        --m-card: #111827;
        --m-text: #e5e7eb;
        --m-muted: #94a3b8;
        --m-border: #1f2937;
        --m-chip: #1e293b;
        --m-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --m-primary: #818cf8;
    --m-primary-600: #6366f1;
    --m-primary-soft: #1e1b4b;
    --m-success-soft: #052e22;
    --m-warning-soft: #3b2a07;
    --m-danger-soft: #3b0d0d;
    --m-info-soft: #082f49;
    --m-bg: #0b1120;
    --m-card: #111827;
    --m-text: #e5e7eb;
    --m-muted: #94a3b8;
    --m-border: #1f2937;
    --m-chip: #1e293b;
    --m-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
    background: var(--m-bg);
    color: var(--m-text);
}

body.m-body {
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 15px;
    min-height: 100vh;
    padding-top: calc(var(--m-appbar-h) + var(--m-safe-top));
    padding-bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 8px);
    overscroll-behavior-y: contain;
}

body.m-body.m-no-tabbar { padding-bottom: calc(var(--m-safe-bottom) + 8px); }
body.m-body.m-auth { padding-top: 0; padding-bottom: 0; }

a { color: var(--m-primary); text-decoration: none; }
.text-muted, .m-muted { color: var(--m-muted) !important; }
.form-control, .form-select { background-color: var(--m-card); color: var(--m-text); border-color: var(--m-border); border-radius: 12px; min-height: 46px; font-size: 15px; }
.form-control:focus, .form-select:focus { border-color: var(--m-primary); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); background-color: var(--m-card); color: var(--m-text); }
.form-label { font-weight: 600; font-size: 13px; color: var(--m-muted); margin-bottom: 6px; }
.btn { border-radius: 12px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-sm { min-height: 34px; border-radius: 10px; }
.btn-primary { background: var(--m-primary); border-color: var(--m-primary); }
.btn-primary:active, .btn-primary:focus { background: var(--m-primary-600); border-color: var(--m-primary-600); }
.btn-soft { background: var(--m-primary-soft); color: var(--m-primary); border: 0; }
.btn-light { background: var(--m-chip); border-color: var(--m-chip); color: var(--m-text); }

/* ---------- نوار بالا ---------- */
.m-appbar {
    position: fixed; top: 0; right: 0; left: 0; z-index: 1030;
    height: calc(var(--m-appbar-h) + var(--m-safe-top));
    padding: var(--m-safe-top) 8px 0;
    display: flex; align-items: center; gap: 4px;
    background: var(--m-bg);
    background: color-mix(in srgb, var(--m-bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--m-border);
}
.m-appbar .m-title { flex: 1; font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.m-appbar .m-title small { display: block; font-size: 11.5px; font-weight: 500; color: var(--m-muted); line-height: 1.2; }
.m-icon-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--m-text);
    display: inline-flex; align-items: center; justify-content: center; font-size: 21px; position: relative; flex-shrink: 0;
}
.m-icon-btn:active { background: var(--m-chip); }
.m-appbar-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; margin: 0 4px; }

.m-dot {
    position: absolute; top: 6px; left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--m-danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.m-dot:empty, .m-dot[data-count="0"] { display: none; }

/* ---------- نوار پایین ---------- */
.m-tabbar {
    position: fixed; bottom: 0; right: 0; left: 0; z-index: 1030;
    height: calc(var(--m-tabbar-h) + var(--m-safe-bottom));
    padding-bottom: var(--m-safe-bottom);
    display: flex; background: var(--m-card); border-top: 1px solid var(--m-border);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, .05);
}
.m-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--m-muted); font-size: 11px; font-weight: 600; position: relative; border: 0; background: none;
}
.m-tab i { font-size: 22px; line-height: 1; }
.m-tab.active { color: var(--m-primary); }
.m-tab.active i::before { font-weight: 700; }
.m-tab .m-dot { top: 4px; left: calc(50% - 22px); }

/* ---------- محتوا ---------- */
.m-content { padding: 12px 14px; max-width: 760px; margin: 0 auto; }
.m-section-title { font-size: 13px; font-weight: 700; color: var(--m-muted); margin: 18px 4px 8px; display: flex; align-items: center; justify-content: space-between; }
.m-section-title a { font-weight: 600; font-size: 12.5px; }

.m-card { background: var(--m-card); border-radius: var(--m-radius); box-shadow: var(--m-shadow); padding: 14px; margin-bottom: 12px; border: 1px solid var(--m-border); }
.m-card.p-0 { padding: 0; overflow: hidden; }

.m-hello { display: flex; align-items: center; gap: 12px; margin: 4px 2px 14px; }
.m-hello h1 { font-size: 20px; font-weight: 800; margin: 0; }
.m-hello p { margin: 0; color: var(--m-muted); font-size: 13px; }

.m-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-stat {
    background: var(--m-card); border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: 14px;
    display: flex; flex-direction: column; gap: 8px; box-shadow: var(--m-shadow); color: var(--m-text);
}
.m-stat .m-stat-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.m-stat b { font-size: 22px; font-weight: 800; line-height: 1; }
.m-stat span { font-size: 12.5px; color: var(--m-muted); font-weight: 600; }
.tone-primary { background: var(--m-primary-soft); color: var(--m-primary); }
.tone-success { background: var(--m-success-soft); color: var(--m-success); }
.tone-warning { background: var(--m-warning-soft); color: var(--m-warning); }
.tone-danger { background: var(--m-danger-soft); color: var(--m-danger); }
.tone-info { background: var(--m-info-soft); color: var(--m-info); }

/* ---------- فهرست ---------- */
.m-list { background: var(--m-card); border-radius: var(--m-radius); border: 1px solid var(--m-border); box-shadow: var(--m-shadow); overflow: hidden; }
.m-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--m-text); border-bottom: 1px solid var(--m-border); position: relative; }
.m-item:last-child { border-bottom: 0; }
.m-item:active { background: var(--m-chip); }
.m-item-body { flex: 1; min-width: 0; }
.m-item-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.m-item-sub { font-size: 12.5px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.m-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.m-item-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11.5px; color: var(--m-muted); flex-shrink: 0; }
.m-item .m-color-bar { position: absolute; right: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px 0 0 3px; }

.m-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: var(--m-primary-soft); color: var(--m-primary); font-weight: 800; font-size: 15px; overflow: hidden; position: relative;
}
.m-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-avatar.sm { width: 34px; height: 34px; font-size: 13px; }
/* نشانگر آنلاین روی لبهٔ دایره: آواتار دارای نشانگر نباید محتوایش را برش دهد (عکس خودش گرد می‌شود) */
.m-avatar.has-status { overflow: visible; }
.m-avatar.has-status img { border-radius: 50%; }
.m-avatar .m-online { position: absolute; bottom: -1px; left: -1px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid var(--m-card); box-shadow: 0 0 0 1px rgba(0,0,0,.04); z-index: 1; }
.m-avatar .m-avatar-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.m-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--m-chip); color: var(--m-text); white-space: nowrap; }
.m-badge-count { min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; background: var(--m-primary); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

.m-empty { text-align: center; padding: 48px 16px; color: var(--m-muted); }
.m-empty i { font-size: 46px; display: block; margin-bottom: 10px; opacity: .6; }

.m-loader { display: flex; justify-content: center; padding: 18px; color: var(--m-muted); }
.m-sentinel { height: 1px; }

/* ---------- جستجو و فیلتر ---------- */
.m-search { position: relative; margin-bottom: 10px; }
.m-search i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--m-muted); }
.m-search input { padding-right: 40px; border-radius: 14px; background: var(--m-card); }
.m-search-link { display: block; }
.m-search-link .form-control { padding-right: 40px; border-radius: 14px; background: var(--m-card); color: var(--m-muted); }
.m-search-sticky { position: sticky; top: calc(var(--m-appbar-h) + var(--m-safe-top)); z-index: 5; background: var(--m-bg); padding-top: 4px; padding-bottom: 6px; margin-bottom: 4px; }
.m-sr-icon { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; background: var(--m-chip); color: var(--m-primary); }
.m-sr-leads { background: rgba(79, 70, 229, .12); color: #4f46e5; }
.m-sr-customers { background: rgba(14, 165, 233, .12); color: #0ea5e9; }
.m-sr-tasks { background: rgba(245, 158, 11, .14); color: #d97706; }
.m-sr-support { background: rgba(236, 72, 153, .12); color: #db2777; }
.m-sr-invoices { background: rgba(16, 185, 129, .12); color: #059669; }
.m-sr-products { background: rgba(139, 92, 246, .12); color: #7c3aed; }
.m-sr-faqs { background: rgba(100, 116, 139, .14); color: #475569; }
.m-section-title > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
#m-search-page .m-section-title { scroll-margin-top: calc(var(--m-appbar-h) + var(--m-safe-top) + 64px); }

.m-scroll-x { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.m-scroll-x::-webkit-scrollbar { display: none; }
.m-pill {
    flex-shrink: 0; border: 1px solid var(--m-border); background: var(--m-card); color: var(--m-text); border-radius: 999px;
    padding: 7px 14px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.m-pill.active { background: var(--m-primary); border-color: var(--m-primary); color: #fff; }
.m-pill .m-pill-count { font-size: 11px; opacity: .8; }

.m-segment { display: flex; background: var(--m-chip); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.m-segment a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--m-muted); }
.m-segment a.active { background: var(--m-card); color: var(--m-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* ---------- جزئیات ---------- */
.m-hero { text-align: center; padding: 8px 0 4px; }
.m-hero .m-avatar { width: 72px; height: 72px; font-size: 24px; margin: 0 auto 10px; }
.m-hero h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.m-hero p { color: var(--m-muted); margin: 0; font-size: 13px; }

.m-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.m-action { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--m-text); border: 0; background: none; padding: 0; }
.m-action span.m-action-icon { width: 50px; height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 21px; background: var(--m-primary-soft); color: var(--m-primary); }
.m-action[disabled] { opacity: .4; }

.m-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--m-border); font-size: 14px; }
.m-kv:last-child { border-bottom: 0; }
.m-kv span:first-child { color: var(--m-muted); flex-shrink: 0; }
.m-kv span:last-child { font-weight: 600; text-align: left; word-break: break-word; }

.m-status-btn { width: 100%; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; border: 0; }

.m-timeline { position: relative; }
.m-note { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--m-border); }
.m-note:last-child { border-bottom: 0; }
.m-note-body { flex: 1; min-width: 0; }
.m-note-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--m-muted); margin-bottom: 4px; }
.m-note-head b { color: var(--m-text); font-size: 13px; }
.m-note-text { white-space: pre-line; word-break: break-word; font-size: 14px; line-height: 1.8; }
.m-note-meta { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.m-note-edit { border: 0; background: var(--m-primary-soft); color: var(--m-primary); width: 26px; height: 26px; border-radius: 50%; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.m-pre { white-space: pre-line; word-break: break-word; }

.m-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-file { background: var(--m-chip); border-radius: 12px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden; color: var(--m-text); font-size: 11px; padding: 6px; text-align: center; position: relative; }
.m-file img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-file i { font-size: 26px; color: var(--m-primary); }
.m-file span { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-file .m-file-video { width: auto; overflow: visible; }
.m-file .m-file-video i { font-size: 30px; color: #dc2626; }

/* ---------- گفتگو (وظیفه / چت / اینستاگرام) ---------- */
.m-thread { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.m-bubble-row { display: flex; }
.m-bubble-row.self { justify-content: flex-start; }
.m-bubble-row.other { justify-content: flex-end; }
.m-bubble {
    max-width: 84%; padding: 9px 12px 6px; border-radius: 18px; background: var(--m-card); border: 1px solid var(--m-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04); word-break: break-word; font-size: 14.5px; line-height: 1.75;
}
.m-bubble-row.self .m-bubble { background: var(--m-primary); color: #fff; border-color: var(--m-primary); border-bottom-right-radius: 6px; }
.m-bubble-row.other .m-bubble { border-bottom-left-radius: 6px; }
.m-bubble .m-bubble-author { font-size: 12px; font-weight: 800; color: var(--m-primary); margin-bottom: 2px; }
.m-bubble .m-bubble-text { white-space: pre-line; }
.m-bubble .m-bubble-time { font-size: 10.5px; opacity: .7; text-align: left; margin-top: 2px; display: flex; gap: 4px; justify-content: flex-end; }
.m-bubble img.m-bubble-img { max-width: 100%; border-radius: 12px; margin: 4px 0; display: block; }
.m-bubble a.m-bubble-file { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .06); color: inherit; margin: 4px 0; }
.m-bubble-row.self .m-bubble a { color: #fff; }
.m-bubble .ai-report, .m-bubble table { font-size: 12px; }
.m-bubble .table-responsive, .m-bubble .ai-report { overflow-x: auto; max-width: 100%; }
.m-bubble table { width: 100%; border-collapse: collapse; }
.m-bubble table td, .m-bubble table th { border: 1px solid var(--m-border); padding: 4px 6px; white-space: nowrap; }
.m-day-sep { text-align: center; font-size: 11.5px; color: var(--m-muted); margin: 6px 0; }

.m-composer {
    position: fixed; bottom: 0; right: 0; left: 0; z-index: 1030; background: var(--m-card); border-top: 1px solid var(--m-border);
    padding: 8px 8px calc(8px + var(--m-safe-bottom)); display: flex; align-items: flex-end; gap: 6px;
}
.m-composer textarea {
    flex: 1; resize: none; border-radius: 22px; border: 1px solid var(--m-border); background: var(--m-bg); color: var(--m-text);
    padding: 10px 14px; max-height: 140px; min-height: 44px; font-size: 15px; line-height: 1.5; outline: none;
}
.m-composer .m-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--m-primary); color: #fff; font-size: 19px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.m-composer .m-send:disabled { opacity: .5; }
.m-slash-menu { position: absolute; bottom: 100%; right: 8px; left: 8px; padding: 6px 12px; border: 1px solid var(--m-border); border-radius: 16px 16px 0 0; background: var(--m-card); box-shadow: 0 -8px 24px rgba(0,0,0,.12); max-height: 50vh; overflow-y: auto; }
.m-slash-menu .m-sheet-item { direction: ltr; justify-content: flex-start; }
.m-slash-menu .m-sheet-item span { direction: rtl; flex: 1; }
body.m-body.m-has-composer { padding-bottom: calc(76px + var(--m-safe-bottom)); }

/* پیام صوتی: نوار ضبط و پخش‌کننده */
.m-composer.m-recording > :not(.m-rec) { visibility: hidden; }
.m-rec {
    position: absolute; inset: 0; padding: 8px 8px calc(8px + var(--m-safe-bottom)); background: var(--m-card);
    display: flex; align-items: center; gap: 6px;
}
.m-rec-middle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.m-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--m-danger); flex-shrink: 0; animation: m-rec-blink 1s infinite; }
.m-rec-time { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; min-width: 38px; }
.m-rec-level { flex: 1; height: 6px; border-radius: 3px; background: var(--m-chip); overflow: hidden; }
.m-rec-level span { display: block; height: 100%; width: 0; background: var(--m-danger); transition: width .15s; }
.m-rec .m-voice { flex: 1; }
@keyframes m-rec-blink { 50% { opacity: .25; } }
.m-voice { display: flex; align-items: center; gap: 8px; min-width: 190px; padding: 2px 0; }
.m-voice-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--m-primary); color: #fff; font-size: 18px;
}
.m-voice-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(127, 127, 127, .25); overflow: hidden; cursor: pointer; }
.m-voice-bar { height: 100%; width: 0; background: var(--m-primary); }
.m-voice-time { font-size: 11.5px; opacity: .8; font-variant-numeric: tabular-nums; direction: ltr; min-width: 32px; text-align: center; }
.m-bubble-row.self .m-voice-btn { background: #fff; color: var(--m-primary); }
.m-bubble-row.self .m-voice-track { background: rgba(255, 255, 255, .35); }
.m-bubble-row.self .m-voice-bar { background: #fff; }
.m-typing { font-size: 12px; color: var(--m-primary); min-height: 18px; padding: 0 6px; }
/* حباب «در حال تایپ / در حال فکر کردن» */
.m-bubble.m-thinking { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; font-size: 12.5px; color: var(--m-muted); animation: m-thinking-in .25s ease-out; }
.m-thinking-icon { display: none; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-size: 13px; background: linear-gradient(135deg, #6366f1, #a855f7); animation: m-thinking-glow 1.6s ease-in-out infinite; }
.m-thinking-dots { display: inline-flex; gap: 4px; direction: ltr; }
.m-thinking-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; animation: m-thinking-dot 1.2s infinite ease-in-out; }
.m-thinking-dots i:nth-child(2) { animation-delay: .15s; }
.m-thinking-dots i:nth-child(3) { animation-delay: .3s; }
.m-bubble.m-thinking.is-bot { position: relative; overflow: hidden; color: var(--m-primary); background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(168, 85, 247, .12)); border-color: rgba(99, 102, 241, .25); }
.m-bubble.m-thinking.is-bot .m-thinking-icon { display: inline-flex; }
.m-bubble.m-thinking.is-bot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%); transform: translateX(-100%); animation: m-thinking-shine 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes m-thinking-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes m-thinking-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .45); transform: scale(1); } 50% { box-shadow: 0 0 0 7px rgba(139, 92, 246, 0); transform: scale(1.06); } }
@keyframes m-thinking-shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes m-thinking-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.m-attach-preview { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--m-chip); border-radius: 12px; margin: 0 8px 6px; font-size: 12.5px; }

/* ---------- دکمهٔ شناور ---------- */
.m-fab {
    position: fixed; left: 18px; bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 16px); z-index: 1020;
    width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--m-primary); color: #fff; font-size: 26px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(79, 70, 229, .35);
}

/* ---------- Bottom sheet ---------- */
.m-sheet.offcanvas-bottom { height: auto; max-height: 88vh; border-radius: 22px 22px 0 0; background: var(--m-card); color: var(--m-text); border: 0; }
.m-sheet .offcanvas-header { padding: 10px 16px 6px; flex-direction: column; align-items: stretch; }
.m-sheet .m-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--m-border); margin: 0 auto 10px; }
.m-sheet .offcanvas-title { font-weight: 800; font-size: 16px; }
.m-sheet .offcanvas-body { padding: 6px 16px calc(16px + var(--m-safe-bottom)); overflow-y: auto; }
.m-sheet-item { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--m-border); color: var(--m-text); width: 100%; background: none; border-right: 0; border-left: 0; border-top: 0; text-align: right; font-weight: 600; }
.m-sheet-item:last-child { border-bottom: 0; }
.m-sheet-item i { font-size: 20px; color: var(--m-primary); width: 24px; text-align: center; }
.m-sheet-item .m-sheet-hint { display: block; font-size: 12px; color: var(--m-muted); font-weight: 500; }
.m-sheet-item.selected { color: var(--m-primary); }
.m-sheet-item .m-swatch { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Toast ---------- */
.m-toast-wrap { position: fixed; top: calc(var(--m-appbar-h) + var(--m-safe-top) + 8px); right: 12px; left: 12px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.m-toast {
    pointer-events: auto; background: #111827; color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: flex; align-items: center; gap: 10px; animation: m-toast-in .2s ease-out;
}
.m-toast.success i { color: #34d399; }
.m-toast.error i { color: #f87171; }
.m-toast.info i { color: #93c5fd; }
.m-toast small { display: block; font-weight: 500; opacity: .8; }
@keyframes m-toast-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- نوار روزها (نوبت‌دهی) ---------- */
.m-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.m-days::-webkit-scrollbar { display: none; }
.m-day {
    flex-shrink: 0; width: 58px; border-radius: 16px; background: var(--m-card); border: 1px solid var(--m-border); padding: 8px 0; text-align: center; color: var(--m-text);
}
.m-day small { display: block; font-size: 11px; color: var(--m-muted); font-weight: 600; }
.m-day b { display: block; font-size: 19px; font-weight: 800; line-height: 1.4; }
.m-day.today { border-color: var(--m-primary); }
.m-day.holiday small, .m-day.holiday b { color: var(--m-danger); }
.m-day.active { background: var(--m-primary); border-color: var(--m-primary); color: #fff; }
.m-day.active small, .m-day.active b { color: #fff; }

.m-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-slot { border: 1px solid var(--m-border); background: var(--m-card); border-radius: 12px; padding: 10px 0; font-weight: 800; color: var(--m-text); }
.m-slot:disabled { opacity: .35; text-decoration: line-through; }
.m-slot.active { background: var(--m-primary); border-color: var(--m-primary); color: #fff; }

.m-agenda-time { width: 54px; flex-shrink: 0; text-align: center; font-weight: 800; font-size: 15px; }
.m-agenda-time small { display: block; font-size: 11px; color: var(--m-muted); font-weight: 600; }

/* ---------- ورود ---------- */
.m-auth-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(24px + var(--m-safe-top)) 22px calc(24px + var(--m-safe-bottom)); max-width: 440px; margin: 0 auto; }
.m-auth-logo { width: 76px; height: 76px; border-radius: 22px; object-fit: cover; box-shadow: var(--m-shadow); margin: 0 auto 16px; display: block; background: var(--m-card); }
.m-auth-wrap h1 { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.m-auth-wrap p.lead { font-size: 14px; text-align: center; color: var(--m-muted); margin-bottom: 26px; }
.m-passkey-btn { width: 100%; min-height: 56px; border-radius: 16px; font-size: 16px; }
.m-divider { display: flex; align-items: center; gap: 10px; color: var(--m-muted); font-size: 12.5px; margin: 18px 0; }
.m-divider::before, .m-divider::after { content: ""; flex: 1; height: 1px; background: var(--m-border); }
.m-captcha { display: flex; gap: 8px; align-items: center; }
.m-captcha img { height: 46px; border-radius: 10px; background: #fff; cursor: pointer; }

/* ---------- بنرها ---------- */
.m-banner { display: flex; gap: 12px; align-items: center; background: var(--m-primary-soft); color: var(--m-text); border-radius: var(--m-radius); padding: 12px 14px; margin-bottom: 12px; }
.m-banner i { font-size: 24px; color: var(--m-primary); }
.m-banner .m-banner-body { flex: 1; font-size: 13px; }
.m-banner .m-banner-body b { display: block; font-size: 14px; }

.m-offline-bar { position: fixed; top: calc(var(--m-appbar-h) + var(--m-safe-top)); right: 0; left: 0; z-index: 1025; background: var(--m-warning); color: #fff; text-align: center; font-size: 12.5px; font-weight: 700; padding: 4px; display: none; }
body.m-offline .m-offline-bar { display: block; }

.m-spin { animation: m-spin 1s linear infinite; display: inline-block; }
@keyframes m-spin { to { transform: rotate(360deg); } }

.jdp-container { z-index: 3000 !important; }

.m-pulse { animation: m-pulse 1.8s ease-in-out infinite; }
@keyframes m-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .45); } 50% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); } }

/* ---------- عکس پروفایل ---------- */
.m-avatar-edit { position: relative; width: 84px; margin: 0 auto 10px; }
.m-hero .m-avatar-edit .m-avatar { width: 84px; height: 84px; font-size: 26px; margin: 0; }
.m-avatar-btn {
    position: absolute; bottom: -2px; left: -2px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--m-card);
    background: var(--m-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; padding: 0;
}

/* ---------- بیعانه ---------- */
.m-deposit { padding: 12px 0; border-bottom: 1px solid var(--m-border); }
.m-deposit:last-child { border-bottom: 0; }
.m-deposit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.m-deposit-head b { font-size: 16px; }
.m-deposit-actions { display: flex; gap: 6px; margin-top: 8px; }
.m-deposit-actions:empty { display: none; }
.m-deposit-actions .btn { font-size: 12.5px; }

/* ---------- داشبوردها ---------- */
.m-stat small { font-size: 11px; }
.m-report-row { padding: 10px 0; border-bottom: 1px solid var(--m-border); }
.m-report-row:last-child { border-bottom: 0; }
.m-report-row-title { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; margin-bottom: 4px; }
.m-report-row .m-kv { padding: 5px 0; font-size: 13px; }
.m-bar-row { padding: 6px 0; }
.m-bar-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.m-bar-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-bar { height: 8px; border-radius: 4px; background: var(--m-chip); overflow: hidden; }
.m-bar span { display: block; height: 100%; border-radius: 4px; }
.m-score { display: flex; gap: 14px; align-items: center; }
.m-score-ring {
    --p: 0; width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(closest-side, var(--m-card) 78%, transparent 80% 100%), conic-gradient(currentColor calc(var(--p) * 1%), var(--m-chip) 0);
}
.m-score-ring b { font-size: 22px; font-weight: 800; line-height: 1; color: var(--m-text); }
.m-score-ring small { font-size: 11px; color: var(--m-muted); }
.m-score-body { flex: 1; min-width: 0; }

/* ---------- حضور و غیاب ---------- */
.m-att-card { text-align: center; }
.m-att-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.m-att-times div { background: var(--m-chip); border-radius: 14px; padding: 10px; }
.m-att-times small { display: block; font-size: 12px; color: var(--m-muted); font-weight: 600; }
.m-att-times b { font-size: 24px; font-weight: 800; direction: ltr; display: block; }
.m-att-btn {
    width: 148px; height: 148px; border-radius: 50%; border: 0; margin: 4px auto 14px; color: #fff; font-weight: 800; font-size: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}
.m-att-btn i { font-size: 46px; line-height: 1; }
.m-att-btn.in { background: linear-gradient(145deg, #10b981, #059669); }
.m-att-btn.out { background: linear-gradient(145deg, #f97316, #dc2626); }
.m-att-btn:disabled { opacity: .5; }
.m-att-status { font-size: 13px; font-weight: 600; color: var(--m-muted); min-height: 20px; }
.m-att-map { height: 230px; width: 100%; z-index: 0; }
.leaflet-container { font-family: Vazirmatn, Tahoma, sans-serif; background: var(--m-chip); }

/* ---------- کد یکبار مصرف ---------- */
.m-code-input { font-size: 26px; letter-spacing: 12px; text-align: center; font-weight: 800; }

/* ---------- شماره‌تلفن قابل لمس ---------- */
.m-phone { font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }

/* ---------- پاسخ و بازارسال در چت ---------- */
.m-bubble-forward { font-size: 11.5px; opacity: .8; margin-bottom: 3px; font-style: italic; }
.m-bubble-quote { border-inline-start: 3px solid currentColor; padding: 3px 8px; margin-bottom: 4px; border-radius: 6px; background: rgba(0, 0, 0, .06); font-size: 12.5px; cursor: pointer; max-height: 3.6em; overflow: hidden; }
.m-bubble-quote b { display: block; font-size: 12px; }
.m-bubble-row.self .m-bubble-quote { background: rgba(255, 255, 255, .18); }
.m-bubble-row.m-flash .m-bubble { box-shadow: 0 0 0 3px var(--m-warning); transition: box-shadow .3s; }
.m-reply-bar {
    position: fixed; right: 0; left: 0; z-index: 1029; bottom: calc(60px + var(--m-safe-bottom));
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--m-card); border-top: 1px solid var(--m-border);
}
.m-reply-bar b { font-size: 12.5px; color: var(--m-primary); }
.min-w-0 { min-width: 0; }

/* فرم پیوست پرونده */
.m-form-value { font-weight: 600; font-size: 14.5px; min-height: 22px; }
.m-color-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--m-border); vertical-align: middle; }
.m-form-actions { position: sticky; bottom: 0; z-index: 5; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--m-bg) 70%, transparent); }
.m-form-field.is-invalid .form-control, .m-form-field.is-invalid .form-select { border-color: var(--bs-danger, #dc3545); }

/* انتخاب چند پرونده و عملیات گروهی */
.m-select-box { display: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--m-border); align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 15px; }
.m-select-box i { visibility: hidden; }
body.m-selecting .m-select-box { display: flex; }
body.m-selecting .m-fab { display: none; }
.m-item.is-selected { background: var(--m-primary-soft); }
.m-item.is-selected .m-select-box { background: var(--m-primary); border-color: var(--m-primary); }
.m-item.is-selected .m-select-box i { visibility: visible; }
.m-bulk-bar { position: fixed; right: 0; left: 0; z-index: 1029; bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom)); display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--m-card); border-top: 1px solid var(--m-border); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.m-pick-many { max-height: 50vh; overflow-y: auto; }
.m-sheet-item.selected { color: var(--m-primary); }

/* تاریخچهٔ پرونده */
.m-timeline { position: relative; padding-right: 18px; }
.m-timeline::before { content: ""; position: absolute; right: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--m-border); }
.m-timeline-item { position: relative; padding-right: 26px; margin-bottom: 10px; }
.m-timeline-dot { position: absolute; right: -17px; top: 10px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 3px solid var(--m-bg); }
.m-sms-thread .m-bubble { max-width: 88%; }
.m-item .m-item-icon { width: 38px !important; height: 38px !important; border-radius: 12px !important; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* تقویم شمسی */
.m-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.m-cal-head span { font-size: 12px; font-weight: 700; color: var(--m-muted); padding: 4px 0; }
.m-cal-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 44px; border-radius: 12px; color: var(--m-text); font-weight: 700; }
.m-cal-day.out { opacity: .35; }
.m-cal-day.holiday { color: var(--m-danger); }
.m-cal-day.today { box-shadow: inset 0 0 0 2px var(--m-primary); }
.m-cal-day.selected { background: var(--m-primary); color: #fff; }
.m-cal-dot { position: absolute; bottom: 3px; min-width: 7px; height: 7px; border-radius: 7px; background: var(--m-warning); font-size: 9px; font-style: normal; line-height: 7px; color: transparent; }
.m-cal-dot:not(:empty) { height: 13px; line-height: 13px; padding: 0 4px; color: #fff; font-weight: 800; }
.m-cal-dot.done { background: var(--m-success); }
.m-cal-day.selected .m-cal-dot { background: #fff; color: var(--m-primary); }

/* گزارش‌ها */
.m-report-group > summary { list-style: none; cursor: pointer; }
.m-report-group > summary::-webkit-details-marker { display: none; }
.m-report-table-wrap { overflow-x: auto; }
.m-report-table { font-size: 12.5px; white-space: nowrap; }
.m-report-table th { position: sticky; top: 0; background: var(--m-card); }
.m-report-table tr[data-link] { cursor: pointer; }

/* پاپ‌آپ تماس */
.m-call-popup { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(12px + var(--m-safe-bottom)); animation: m-fade .2s ease; }
.m-call-card { position: relative; width: 100%; max-width: 480px; background: var(--m-card); border-radius: 24px; padding: 28px 18px 18px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-height: 85vh; overflow-y: auto; }
.m-call-pulse { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--m-success); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; animation: m-call-pulse 1.4s infinite; }
@keyframes m-call-pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 70% { box-shadow: 0 0 0 22px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }

/* درخت دانش */
.m-faq-item { border-bottom: 1px solid var(--m-border); padding: 0 12px; }
.m-faq-item:last-child { border-bottom: 0; }
.m-faq-q { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; background: none; border: 0; text-align: right; font-weight: 700; color: var(--m-text); }
.m-faq-item.open > .m-faq-q .bi-chevron-down { transform: rotate(180deg); }
.m-faq-a { padding: 0 0 12px; font-size: 14px; }

/* گردونه شانس */
.m-wheel-prize { width: 64px; height: 64px; margin: 4px auto 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--m-chip); color: var(--m-muted); }
.m-wheel-prize.win { background: linear-gradient(135deg, #fbbf24, #f97316); color: #fff; box-shadow: 0 6px 18px rgba(249, 115, 22, .35); }

/* پروفایل مخاطب دایرکت اینستاگرام */
.m-ig-profile { display: flex; align-items: center; gap: 12px; background: var(--m-card); border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: 10px 12px; margin-bottom: 10px; }
.m-avatar.m-ig-avatar, .m-avatar.m-ig-avatar-sm { overflow: hidden; background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.m-avatar.m-ig-avatar img, .m-avatar.m-ig-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

/* منوی «بیشتر»: دسته‌بندی بر اساس موضوع با کاشی‌های آیکن‌دار */
.m-menu-group { margin-bottom: 14px; }
.m-menu-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--m-muted); margin: 6px 2px 8px; }
.m-menu-title i { font-size: 14px; }
.m-menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.m-menu-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 16px; background: var(--m-bg); color: var(--m-text); text-align: center; border: 1px solid transparent; transition: transform .1s; }
.m-menu-tile:active { transform: scale(.96); }
.m-menu-tile.active { border-color: var(--m-primary); background: var(--m-primary-soft); }
.m-menu-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.m-menu-label { font-size: 11.5px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
@media (max-width: 340px) { .m-menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-more-me { display: flex; align-items: center; gap: 8px; background: var(--m-bg); border-radius: 16px; padding: 10px 12px; margin-bottom: 12px; }
.m-more-me-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--m-text); }
.m-more-me-text { display: flex; flex-direction: column; min-width: 0; }
.m-more-me-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-more-me-text small { color: var(--m-muted); font-size: 11.5px; }
.m-more-coins { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; background: rgba(245, 158, 11, .14); color: #d97706; font-weight: 800; font-size: 12.5px; border-radius: 999px; padding: 5px 10px; }
.m-more-coins i { color: #f59e0b; }
.m-more-search { display: flex; align-items: center; gap: 8px; background: var(--m-bg); border: 1px solid var(--m-border); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; }
.m-more-search i { color: var(--m-muted); }
.m-more-search input { flex: 1; border: 0; background: transparent; padding: 10px 0; color: var(--m-text); outline: 0; font-size: 14px; min-width: 0; }
.m-more-empty { text-align: center; color: var(--m-muted); padding: 16px 0 20px; font-size: 13px; }
.m-more-empty i { display: block; font-size: 26px; margin-bottom: 6px; }
.m-more-account { margin-top: 18px; }

/* تازه‌های نسخه */
.m-updates-hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--m-radius); margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 8px 22px rgba(79, 70, 229, .25); }
.m-updates-icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.m-timeline { position: relative; padding-right: 22px; }
.m-timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; right: 6px; width: 2px; background: var(--m-border); }
.m-timeline-item { position: relative; }
.m-timeline-item::before { content: ""; position: absolute; right: -21px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--m-card); border: 3px solid #a5b4fc; }
.m-timeline-item.current::before { background: var(--m-primary); border-color: var(--m-primary); box-shadow: 0 0 0 4px var(--m-primary-soft); }
.m-update-row { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--m-border); font-size: 13.5px; line-height: 1.8; }
.m-update-row .m-chip { margin-top: 3px; flex-shrink: 0; }

/* ---------------- تور آموزشی اولین ورود ---------------- */
.m-tour { position: fixed; inset: 0; z-index: 2000; animation: m-tour-fade .2s ease; }
.m-tour.closing { opacity: 0; transition: opacity .2s ease; }
.m-tour-shade { position: absolute; inset: 0; background: transparent; }
.m-tour.centered .m-tour-shade { background: rgba(15, 23, 42, .62); backdrop-filter: blur(2px); }
.m-tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .62), 0 0 0 3px var(--m-primary) inset;
    transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease, opacity .2s ease; pointer-events: none; }
.m-tour-card { position: fixed; left: 16px; right: 16px; max-width: 460px; margin: 0 auto; background: var(--m-card); color: var(--m-text);
    border-radius: 20px; padding: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .35); }
.m-tour.centered .m-tour-card { top: 50%; transform: translateY(-50%); }
.m-tour-card.in { animation: m-tour-pop .25s ease; }
.m-tour.centered .m-tour-card.in { animation: none; }
.m-tour-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.m-tour-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--m-primary), #a855f7); color: #fff; font-size: 20px; }
.m-tour-title { font-weight: 800; font-size: 16px; flex-grow: 1; }
.m-tour-skip { border: 0; background: none; color: var(--m-muted); font-size: 13px; padding: 4px 6px; }
.m-tour-text { color: var(--m-muted); font-size: 14px; line-height: 1.9; }
.m-tour-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.m-tour-dots { display: flex; gap: 5px; }
.m-tour-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--m-border); transition: width .2s ease; }
.m-tour-dots span.on { width: 18px; background: var(--m-primary); }
body.m-tour-open { overflow: hidden; }
@keyframes m-tour-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-tour-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- موقعیت پرونده ---------------- */
.m-location-frame { width: 100%; height: 170px; border: 0; display: block; }
.m-location-map { height: 52vh; min-height: 280px; z-index: 0; }
.m-location-gps { position: absolute; bottom: 14px; left: 14px; z-index: 500; width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--m-card); color: var(--m-primary); box-shadow: 0 4px 14px rgba(15, 23, 42, .25); font-size: 21px; }
.m-location-gps.busy i { animation: m-spin 1s linear infinite; display: inline-block; }
.m-loc-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px; }

/* نام کارشناس → گفتگو */
.m-user-link { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; display: inline-flex; align-items: center; gap: 4px; }
.m-user-link i { color: var(--m-primary); font-size: .9em; }
.m-list-date { padding: 8px 14px 6px; font-size: 12px; font-weight: 800; color: var(--m-muted); background: var(--m-chip); }
.m-brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.m-brief-grid div { background: var(--m-chip); border-radius: 12px; padding: 8px; text-align: center; }
.m-brief-grid b { display: block; font-size: 18px; }
.m-brief-grid small { color: var(--m-muted); font-size: 11px; }

/* ---------------- داشبورد تحلیل پیج اینستاگرام ---------------- */
.m-ig-hero { background: linear-gradient(135deg, rgba(131, 58, 180, .10), rgba(253, 29, 29, .08) 55%, rgba(252, 176, 69, .12)); }
.m-ig-avatar { width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(45deg, #fcb045, #fd1d1d, #833ab4); color: #fff; font-size: 26px; padding: 3px; }
.m-ig-avatar img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; object-fit: cover; border: 2px solid var(--m-card); }
.m-ig-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; text-align: center; }
.m-ig-counts b { display: block; font-size: 18px; }
.m-ig-counts small { color: var(--m-muted); font-size: 11.5px; }
.m-ig-thumb { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; position: relative; overflow: hidden; background: var(--m-chip);
    display: flex; align-items: center; justify-content: center; color: var(--m-muted); font-size: 20px; }
.m-ig-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-ig-score { --score: 0; width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(closest-side, var(--m-card) 78%, transparent 80% 100%), conic-gradient(currentColor calc(var(--score) * 1%), var(--m-chip) 0); }
.m-ig-score b { font-size: 22px; line-height: 1; color: var(--m-text); }
.m-ig-score small { font-size: 10px; color: var(--m-muted); }
.m-ig-hint { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--m-primary); background: var(--m-primary-soft); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; line-height: 1.7; }
.m-ig-ideas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.m-ig-idea { display: flex; align-items: center; gap: 10px; width: 100%; text-align: right; color: var(--m-text); background: var(--m-card); border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: 10px 12px; }
.m-ig-idea:active { transform: scale(.99); border-color: var(--m-primary); }
.m-ig-idea-n { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(45deg, #fcb045, #fd1d1d, #833ab4); color: #fff; font-size: 12px; font-weight: 700; }
.m-ig-idea-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.8; }
.m-ig-idea-go { color: var(--m-primary); font-size: 18px; flex-shrink: 0; }
.m-ig-pm-idea { background: var(--m-primary-soft); border-inline-start: 4px solid var(--m-primary); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.8; margin-bottom: 12px; }
.m-ig-pm-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-ig-pm-kind { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--m-text); background: var(--m-card); border: 2px solid var(--m-border); border-radius: 16px; padding: 16px 10px; }
.m-ig-pm-kind:active { border-color: var(--m-primary); }
.m-ig-pm-kind i { font-size: 32px; color: var(--m-primary); }
.m-ig-pm-kind[data-kind="image"] i { color: #d62976; }
.m-ig-pm-kind small { color: var(--m-muted); font-size: 11.5px; line-height: 1.7; }
.m-ig-pm-loading { text-align: center; padding: 28px 8px; color: var(--m-muted); }
.m-ig-pm-block { margin-bottom: 12px; }
.m-ig-pm-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
.m-ig-pm-text { white-space: pre-wrap; word-break: break-word; background: var(--m-bg, rgba(0,0,0,.03)); border: 1px solid var(--m-border); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.8; }
.m-ig-pm-main .m-ig-pm-text { background: #0f172a; color: #e2e8f0; border-color: #0f172a; }
.m-ig-pm-ltr { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.m-ig-pm-actions { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; bottom: 0; padding: 10px 0 4px; background: var(--m-card); }
.m-ig-pm-actions .btn { flex: 1 1 auto; }

/* ---------------- هستهٔ هوش مصنوعی (تنظیمات ادمین) ---------------- */
.m-ai-hero { background: linear-gradient(135deg, rgba(79, 70, 229, .10), rgba(168, 85, 247, .10)); }
.m-ai-balance-main { text-align: center; padding: 10px; border-radius: 14px; background: var(--m-card); }
.m-ai-balance-main small { display: block; color: var(--m-muted); font-size: 12px; }
.m-ai-balance-main b { display: block; font-size: 26px; font-weight: 800; direction: ltr; margin: 2px 0; }

/* ---------------- نشانگر بارگذاری ناوبری ---------------- */
#m-nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 3000; pointer-events: none; opacity: 0; transition: opacity .2s; }
#m-nav-progress i { position: absolute; top: 0; bottom: 0; right: 0; width: 0; border-radius: 0 0 0 3px; background: linear-gradient(270deg, var(--m-primary), #a78bfa); box-shadow: 0 0 8px rgba(99, 102, 241, .55); }
#m-nav-progress.on { opacity: 1; }
#m-nav-progress.on i { animation: m-nav-grow 8s cubic-bezier(.08, .7, .2, 1) forwards; }
#m-nav-progress.done i { animation: none; width: 100%; transition: width .2s ease-out; }
#m-nav-progress.done { opacity: 0; transition: opacity .25s .15s; }
@keyframes m-nav-grow { 0% { width: 0; } 10% { width: 35%; } 40% { width: 65%; } 100% { width: 92%; } }
body.m-navigating .m-content { opacity: .72; transition: opacity .25s .12s; }
body.m-navigating .m-tab.active, body.m-navigating .m-item:active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    #m-nav-progress.on i { animation: none; width: 70%; }
    body.m-navigating .m-content { transition: none; }
}

/* ---------------- تغییر رمز عبور ---------------- */
.m-pw-alert { display: flex; gap: 10px; align-items: flex-start; background: rgba(251, 146, 60, .12); border: 1px solid rgba(251, 146, 60, .4); }
.m-pw-alert > i { font-size: 22px; line-height: 1; color: #ea580c; }
.m-pw-meter { height: 5px; border-radius: 5px; background: var(--m-border, rgba(0,0,0,.08)); overflow: hidden; }
.m-pw-meter i { display: block; height: 100%; width: var(--pw, 0%); border-radius: 5px; background: #ef4444; transition: width .25s, background .25s; }
.m-pw-meter[data-level="mid"] i { background: #f59e0b; }
.m-pw-meter[data-level="good"] i { background: #22c55e; }
.m-pw-rules { list-style: none; padding: 0; margin: 0 0 14px; font-size: 12.5px; color: var(--m-muted, #6b7280); }
.m-pw-rules li { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.m-pw-rules li::before { content: "○"; width: 14px; text-align: center; opacity: .7; }
.m-pw-rules li.ok { color: #16a34a; }
.m-pw-rules li.ok::before { content: "✓"; font-weight: 800; opacity: 1; }

/* ---------------- گروه چت ---------------- */
.m-icon-btn .m-icon-plus { position: absolute; top: 5px; left: 4px; font-size: 12px; font-weight: 800; line-height: 1; }
.m-group-member .m-avatar { position: relative; }
.m-group-member .badge { font-size: 10px; font-weight: 600; vertical-align: middle; }

/* ---------------- تابلوی سرپرست نوبت‌ها ---------------- */
.m-board-day { display: flex; align-items: center; gap: 6px; padding: 8px; }
.m-board-slot { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--m-border); }
.m-board-slot:last-child { border-bottom: 0; }
.m-board-slot.past { opacity: .6; }
.m-board-time { flex: 0 0 44px; font-weight: 800; font-size: 13px; direction: ltr; text-align: center; padding-top: 2px; }
.m-board-free { color: var(--m-muted); font-size: 12.5px; padding-top: 2px; }
.m-board-card { border-inline-start: 3px solid var(--m-primary); padding: 2px 10px 4px; margin-bottom: 8px; }
.m-board-card:last-child { margin-bottom: 0; }
.m-board-card.done { border-inline-start-color: #22c55e; }
.m-board-techs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.m-board-tech { display: inline-flex; align-items: center; gap: 4px; background: var(--m-primary-soft); color: var(--m-primary); border-radius: 12px; padding: 2px 4px 2px 8px; font-size: 12px; }
/* خدمات رزروشدهٔ نوبت (فهرست نوبت‌ها، نوبت‌های من و تابلوی نوبت) */
.m-appt-services { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.m-appt-services > .bi { color: var(--m-muted); font-size: 13px; }
.m-appt-service { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--m-primary-soft); color: var(--m-primary); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-board-tech button { border: 0; background: transparent; color: #dc2626; font-weight: 800; padding: 0 4px; line-height: 1; }
.m-board-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.m-board-pick { border: 1px solid var(--m-border); background: var(--m-card); border-radius: 14px; padding: 4px 10px; font-size: 12.5px; direction: ltr; color: var(--m-text); }
.m-board-pick.taken { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .5); }
.m-board-pick.current { background: var(--m-primary-soft); color: var(--m-primary); }
.m-board-pick:disabled { opacity: .4; }

/* ---------------- خدمات نوبت ---------------- */
.m-book-services { display: flex; flex-wrap: wrap; gap: 8px; }
.m-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--m-border); border-radius: 18px; font-size: 13px; margin: 0; cursor: pointer; }
.m-check .form-check-input { margin: 0; }
.m-check:has(input:checked) { border-color: var(--m-primary); background: var(--m-primary-soft); color: var(--m-primary); }
.m-upsell-search { display: flex; align-items: center; gap: 8px; background: var(--m-bg); border: 1px solid var(--m-border); border-radius: 12px; padding: 0 12px; margin-bottom: 8px; }
.m-upsell-search i { color: var(--m-muted); }
.m-upsell-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 0; color: var(--m-text); outline: 0; font-size: 14px; }
.m-upsell-scroll.is-many { max-height: 42vh; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--m-border); border-radius: 12px; padding: 0 10px 10px; }
.m-upsell-group + .m-upsell-group { margin-top: 10px; }
.m-upsell-group-title { position: sticky; top: 0; z-index: 1; background: var(--m-card); font-size: 12px; font-weight: 800; color: var(--m-muted); padding: 8px 0 6px; }
.m-upsell-scroll:not(.is-many) .m-upsell-group-title { position: static; padding-top: 0; }
.m-upsell-group-title small { background: var(--m-bg); border-radius: 999px; padding: 0 7px; margin-inline-start: 4px; }
.m-upsell-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.m-upsell-picked-title { font-size: 12px; font-weight: 700; color: var(--m-muted); }
.m-upsell-picked .m-chip { border: 0; }

/* ---------------- گیمیفیکیشن: انیمیشن سکه و ردیف سوئیچ ---------------- */
.m-coin-pop { position: fixed; left: 50%; bottom: calc(var(--m-tabbar-h, 64px) + var(--m-safe-bottom, 0px) + 22px); z-index: 3000; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #713f12; box-shadow: 0 12px 32px rgba(245, 158, 11, .45); white-space: nowrap; animation: mCoinPop 2.5s cubic-bezier(.2, .8, .2, 1) forwards; }
.m-coin-pop .m-coin { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #7c2d12; background: radial-gradient(circle at 35% 30%, #fff7cc, #fbbf24 45%, #d97706); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); animation: mCoinSpin .8s ease-in-out 2; }
.m-coin-pop b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.m-coin-pop small { display: block; font-size: 11px; font-weight: 600; opacity: .85; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.m-coin-spark { position: absolute; left: 28px; top: 16px; font-size: 11px; color: #f59e0b; animation: mCoinSpark 1.1s ease-out .15s forwards; opacity: 0; }
@keyframes mCoinPop { 0% { opacity: 0; transform: translate(-50%, 40px) scale(.6); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 20% { transform: translate(-50%, 0) scale(1); } 82% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -40px) scale(.92); } }
@keyframes mCoinSpin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
@keyframes mCoinSpark { 0% { opacity: 1; transform: translate(0, 0) scale(.5); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .m-coin-pop { animation: mCoinFade 2.5s linear forwards; } .m-coin-pop .m-coin { animation: none; } .m-coin-spark { display: none; } }
@keyframes mCoinFade { 0%, 100% { opacity: 0; transform: translate(-50%, 0); } 8%, 88% { opacity: 1; transform: translate(-50%, 0); } }
.m-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--m-border); border-radius: 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.m-switch-row .form-check-input { width: 2.6em; height: 1.4em; margin: 0; flex-shrink: 0; }

/* ---------------- دفتر ظرفیتی ---------------- */
.m-tc-chip.full { border-color: rgba(220, 38, 38, .45); }
.m-tc-chip.full small:last-child { color: var(--m-danger); }
.m-tc-chip.some small:last-child { color: #d97706; }
.m-tc-chip.closed { opacity: .5; }
.m-tc-chip.active small { color: #fff; }
.m-tc-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--m-muted); }
.m-tc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 4px; vertical-align: middle; }
.m-tc-res-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.m-tc-cap { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; direction: ltr; }
.m-tc-cap button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--m-border); background: var(--m-card); color: var(--m-text); font-weight: 800; line-height: 1; }
.m-tc-cap button:disabled { opacity: .35; }
.m-tc-box { border-inline-start: 4px solid var(--tc-color, var(--m-primary)); background: var(--m-bg); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.m-tc-box.done { opacity: .75; }
.m-tc-box.absent { text-decoration: line-through; opacity: .6; }
.m-tc-absent { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--m-border); }
.m-tc-absent:last-child { border-bottom: 0; }

/* دعوت‌نامه‌ها: داشبورد موبایل */
.invite-mobile-page{padding:10px 0 calc(var(--m-tabbar-h,64px) + var(--m-safe-bottom,0px) + 28px);overflow-x:hidden}.invite-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}.invite-mobile-head h1{margin:4px 0 0;font-size:24px;line-height:1.35;font-weight:800;letter-spacing:-.3px}.invite-mobile-head-badge{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;padding:7px 10px;border:1px solid var(--m-border);border-radius:999px;background:var(--m-card);color:var(--m-primary);font-size:12px;font-weight:800}.invite-mobile-hero{margin:0 0 12px;padding:13px 14px;border:1px solid #dce4fb;border-radius:16px;background:linear-gradient(135deg,#f6f8ff,#f2fbfa);box-shadow:0 4px 14px rgba(54,74,132,.05)}.invite-mobile-hero-icon{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:12px;background:#fff;color:var(--m-primary);font-size:19px;box-shadow:0 3px 10px rgba(54,74,132,.1)}.invite-mobile-hero .m-banner-body{font-size:11.5px;line-height:1.8}.invite-mobile-hero .m-banner-body b{display:block;margin-bottom:2px;color:var(--m-text);font-size:13px}.invite-mobile-stats{margin:0 0 18px}.invite-mobile-stat{min-width:0;padding:12px 10px!important;border-radius:14px!important}.invite-mobile-stat .m-stat-icon{width:32px;height:32px;border-radius:10px;font-size:16px}.invite-mobile-stat b{margin-top:7px;font-size:20px!important}.invite-mobile-stat span{display:block;overflow:hidden;font-size:10.5px!important;text-overflow:ellipsis;white-space:nowrap}.invite-mobile-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 9px}.invite-mobile-section-head h2{margin:3px 0 0;font-size:17px;font-weight:800}.invite-mobile-count{display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:29px;border-radius:9px;background:var(--m-soft);color:var(--m-muted);font-size:12px;font-weight:800}.invite-mobile-list{display:grid;gap:11px}.invite-mobile-card{padding:15px!important;border-radius:18px!important;overflow:hidden;box-shadow:0 5px 16px rgba(31,55,91,.06)!important}.invite-mobile-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.invite-mobile-card-title{display:flex;align-items:center;gap:9px;min-width:0}.invite-mobile-card-icon{display:grid;place-items:center;flex:0 0 auto;width:35px;height:35px;border-radius:11px;background:#eef1ff;color:#526ad2}.invite-mobile-card-head h2{overflow:hidden;margin:0 0 3px;font-size:17px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.invite-mobile-card-head>div>div>span{color:var(--m-muted);font-size:10px}.invite-mobile-card-head>div>div>span b{color:var(--m-text)}.invite-status{display:inline-flex!important;align-items:center;gap:4px;flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#edfaf4;color:#19835e!important;font-size:10px!important;font-weight:700}.invite-status i{width:5px;height:5px;border-radius:50%;background:#1cac78}.invite-mobile-progress{margin:13px 0 11px}.invite-mobile-progress-label{display:flex;justify-content:space-between;margin-bottom:5px;color:var(--m-muted);font-size:10px}.invite-mobile-progress-track{height:6px;overflow:hidden;border-radius:999px;background:#edf1f7}.invite-mobile-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5b72d8,#6cb9a5)}.invite-mobile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 13px}.invite-mobile-metrics>div{min-width:0;padding:8px 4px;text-align:center;border:1px solid var(--m-border);border-radius:11px;background:var(--m-bg)}.invite-mobile-metric-icon{display:grid;place-items:center;width:23px;height:23px;margin:0 auto 4px;border-radius:8px;font-size:11px}.invite-mobile-metric-icon.is-info{background:#eaf5fb;color:#187da5}.invite-mobile-metric-icon.is-primary{background:#eef1ff;color:#526ad2}.invite-mobile-metric-icon.is-warning{background:#fff5df;color:#b67800}.invite-mobile-metrics small{display:block;overflow:hidden;color:var(--m-muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.invite-mobile-metrics b{display:block;overflow:hidden;margin-top:2px;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.invite-mobile-send{padding-top:12px;border-top:1px solid var(--m-border)}.invite-mobile-send-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}.invite-mobile-send-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eef8f6;color:#238c73;font-size:12px}.invite-mobile-send-title strong{display:block;font-size:11px}.invite-mobile-send-title small{display:block;margin-top:2px;color:var(--m-muted);font-size:9px;line-height:1.5}.invite-mobile-send label{display:block;margin-bottom:5px;color:var(--m-muted);font-size:10px;font-weight:700}.invite-mobile-send-row{display:flex;align-items:stretch;gap:7px}.invite-mobile-send-row .form-control{height:40px;min-width:0;border-radius:11px;box-shadow:none;font-size:12px}.invite-mobile-send-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:116px;height:40px;padding:6px 10px;border-radius:11px!important;font-size:11px}.invite-mobile-card.is-sending .invite-mobile-send-button{opacity:.65;cursor:wait}.invite-link-output{display:none;align-items:center;justify-content:space-between;gap:7px;margin-top:8px;padding:7px 8px;border:1px solid var(--m-border);border-radius:9px;background:var(--m-bg);font-size:10px}.invite-link-output.is-visible{display:flex}.invite-link-output-text{min-width:0;overflow:hidden;color:#386582;direction:ltr;text-overflow:ellipsis;white-space:nowrap}.invite-copy-link{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;padding:5px 7px;border-radius:8px!important;font-size:10px}.invite-mobile-empty{padding:30px 18px}.invite-mobile-empty i{display:block;margin-bottom:8px;color:var(--m-muted);font-size:32px}@media(max-width:380px){.invite-mobile-send-row{flex-direction:column}.invite-mobile-send-button{width:100%}.invite-link-output{align-items:stretch;flex-direction:column}.invite-copy-link{justify-content:center}}@media(min-width:520px){.invite-mobile-stats{grid-template-columns:repeat(4,1fr)}.invite-mobile-send-row{max-width:500px}}
